sim: move UNUSED before TYPE in SIM_ENDIAN_INLINE's definition
[deliverable/binutils-gdb.git] / sim / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
6bddc3e8
MF
3# Generated by GNU Autoconf 2.69 for sim 0.
4#
5# Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
d0ac1c44
SM
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 9#
c906108c
SS
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
b7026657 16
81ecdfbb
RW
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
20 emulate sh
21 NULLCMD=:
81ecdfbb 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
b7026657 33fi
b7026657 34
81ecdfbb
RW
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
b7026657 52else
81ecdfbb
RW
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
b7026657
AC
81fi
82
83
81ecdfbb
RW
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 92as_myself=
81ecdfbb
RW
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
b7026657
AC
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
81ecdfbb
RW
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
d0ac1c44
SM
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
d0ac1c44
SM
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
81ecdfbb
RW
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
c2783492 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
b5689863
MF
201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b7026657 221do
81ecdfbb
RW
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
81ecdfbb
RW
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
b7026657 276 else
6bddc3e8
MF
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
b7026657 283 fi
81ecdfbb
RW
284 exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302 { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311 return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319 set +e
320 as_fn_set_status $1
321 exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
368
369
370} # as_fn_mkdir_p
d0ac1c44
SM
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377 test -f "$1" && test -x "$1"
378} # as_fn_executable_p
81ecdfbb
RW
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412fi # as_fn_arith
413
414
d0ac1c44
SM
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
81ecdfbb
RW
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 419# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
420as_fn_error ()
421{
d0ac1c44
SM
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 426 fi
d0ac1c44 427 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
428 as_fn_exit $as_status
429} # as_fn_error
b7026657 430
81ecdfbb
RW
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
433 as_expr=expr
434else
435 as_expr=false
436fi
437
81ecdfbb 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
439 as_basename=basename
440else
441 as_basename=false
442fi
443
81ecdfbb
RW
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446else
447 as_dirname=false
448fi
b7026657 449
81ecdfbb 450as_me=`$as_basename -- "$0" ||
b7026657
AC
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
b7026657 468
fdd6fa61
AG
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
df1756f4 475
b7026657 476
81ecdfbb
RW
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
b7026657 486 sed '
81ecdfbb
RW
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
b7026657 491 N
81ecdfbb
RW
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 494 t loop
81ecdfbb 495 s/-\n.*//
b7026657 496 ' >$as_me.lineno &&
81ecdfbb
RW
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b7026657 499
d0ac1c44
SM
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
b7026657
AC
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
b7026657
AC
508 # Exit status is that of the last command.
509 exit
510}
511
81ecdfbb
RW
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521*)
522 ECHO_N='-n';;
b7026657
AC
523esac
524
81ecdfbb
RW
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
b7026657 528else
81ecdfbb
RW
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
b7026657 531fi
81ecdfbb
RW
532if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
fdd6fa61 534 as_ln_s='ln -s'
81ecdfbb
RW
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 538 # In both cases, we have to default to `cp -pR'.
81ecdfbb 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 540 as_ln_s='cp -pR'
81ecdfbb
RW
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
d0ac1c44 544 as_ln_s='cp -pR'
fdd6fa61 545 fi
b7026657 546else
d0ac1c44 547 as_ln_s='cp -pR'
b7026657 548fi
81ecdfbb
RW
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
b7026657
AC
551
552if mkdir -p . 2>/dev/null; then
81ecdfbb 553 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
554else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557fi
c906108c 558
d0ac1c44
SM
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
b7026657
AC
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
b5689863
MF
568SHELL=${CONFIG_SHELL-/bin/sh}
569
b7026657 570
d0ac1c44
SM
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
b7026657
AC
573
574# Name of the host.
d0ac1c44 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b7026657
AC
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
b7026657
AC
579#
580# Initializations.
581#
c906108c 582ac_default_prefix=/usr/local
81ecdfbb 583ac_clean_files=
b7026657 584ac_config_libobj_dir=.
81ecdfbb 585LIBOBJS=
b7026657
AC
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
fdd6fa61 590
b7026657 591# Identity of this package.
6bddc3e8
MF
592PACKAGE_NAME='sim'
593PACKAGE_TARNAME='sim'
594PACKAGE_VERSION='0'
595PACKAGE_STRING='sim 0'
596PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
597PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/'
598
c2783492
MF
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
b15c5d7a
MF
635ac_header_list=
636ac_func_list=
81ecdfbb 637enable_option_checking=no
6bddc3e8
MF
638ac_subst_vars='am__EXEEXT_FALSE
639am__EXEEXT_TRUE
640LTLIBOBJS
b6b1c790
MF
641SIM_ENABLE_IGEN_FALSE
642SIM_ENABLE_IGEN_TRUE
81ecdfbb 643subdirs
a0e674c1 644SIM_PRIMARY_TARGET
c2783492
MF
645AM_BACKSLASH
646AM_DEFAULT_VERBOSITY
647AM_DEFAULT_V
648AM_V
6bddc3e8
MF
649am__fastdepCC_FALSE
650am__fastdepCC_TRUE
651CCDEPMODE
652am__nodep
653AMDEPBACKSLASH
654AMDEP_FALSE
655AMDEP_TRUE
656am__quote
657am__include
658DEPDIR
6bddc3e8
MF
659am__untar
660am__tar
661AMTAR
662am__leading_dot
663SET_MAKE
6bddc3e8
MF
664mkdir_p
665MKDIR_P
666INSTALL_STRIP_PROGRAM
6bddc3e8
MF
667install_sh
668MAKEINFO
669AUTOHEADER
670AUTOMAKE
671AUTOCONF
672ACLOCAL
673VERSION
674PACKAGE
675CYGPATH_W
676am__isrc
8c379db2
TT
677MAINT
678MAINTAINER_MODE_FALSE
679MAINTAINER_MODE_TRUE
b5689863
MF
680lt_cv_dlopen_libs
681OTOOL64
682OTOOL
683LIPO
684NMEDIT
685DSYMUTIL
686AWK
687STRIP
688OBJDUMP
689LN_S
690NM
691ac_ct_DUMPBIN
692DUMPBIN
693LD
694FGREP
695SED
696LIBTOOL
697PLUGINS_FALSE
698PLUGINS_TRUE
699zlibinc
700zlibdir
ce3ec98a
MF
701CATOBJEXT
702GENCAT
703INSTOBJEXT
704DATADIRNAME
705CATALOGS
706POSUB
707GMSGFMT
708XGETTEXT
709INCINTL
710LIBINTL_DEP
711LIBINTL
712USE_NLS
a48ff3ef 713LIBOBJS
c2783492
MF
714C_DIALECT
715RANLIB
716AR
717LDFLAGS_FOR_BUILD
718CFLAGS_FOR_BUILD
aa0fca16 719RANLIB_FOR_BUILD
c2783492 720CC_FOR_BUILD
aa0fca16 721AR_FOR_BUILD
a979f2a0 722DTC
c2783492
MF
723INSTALL_DATA
724INSTALL_SCRIPT
725INSTALL_PROGRAM
726EGREP
727GREP
728CPP
729OBJEXT
730EXEEXT
731ac_ct_CC
732CPPFLAGS
733LDFLAGS
734CFLAGS
735CC
81ecdfbb
RW
736target_os
737target_vendor
738target_cpu
739target
740host_os
741host_vendor
742host_cpu
743host
744build_os
745build_vendor
746build_cpu
747build
6dd65fc0
MF
748REPORT_BUGS_TEXI
749REPORT_BUGS_TO
750PKGVERSION
81ecdfbb
RW
751target_alias
752host_alias
753build_alias
754LIBS
755ECHO_T
756ECHO_N
757ECHO_C
758DEFS
759mandir
760localedir
761libdir
762psdir
763pdfdir
764dvidir
765htmldir
766infodir
767docdir
768oldincludedir
769includedir
770localstatedir
771sharedstatedir
772sysconfdir
773datadir
774datarootdir
775libexecdir
776sbindir
777bindir
778program_transform_name
779prefix
780exec_prefix
781PACKAGE_URL
782PACKAGE_BUGREPORT
783PACKAGE_STRING
784PACKAGE_VERSION
785PACKAGE_TARNAME
786PACKAGE_NAME
787PATH_SEPARATOR
47ce766a
MF
788SHELL
789WERROR_CFLAGS
790WARN_CFLAGS'
b7026657 791ac_subst_files=''
81ecdfbb
RW
792ac_user_opts='
793enable_option_checking
6dd65fc0
MF
794with_pkgversion
795with_bugurl
b5689863
MF
796with_system_zlib
797enable_plugins
798enable_shared
799enable_static
800with_pic
801enable_fast_install
802with_gnu_ld
803enable_libtool_lock
8c379db2 804enable_maintainer_mode
6bddc3e8 805enable_dependency_tracking
c2783492 806enable_silent_rules
81ecdfbb 807enable_sim
26da232c 808enable_example_sims
a0e674c1 809enable_targets
ba307cdd 810enable_sim_alignment
dba333c1 811enable_sim_assert
04381273 812enable_sim_debug
f9a4d543 813enable_sim_endian
5ea45474 814enable_sim_environment
04381273
MF
815enable_sim_profile
816enable_sim_stdio
817enable_sim_trace
47ce766a
MF
818enable_werror
819enable_build_warnings
820enable_sim_build_warnings
81ecdfbb
RW
821'
822 ac_precious_vars='build_alias
823host_alias
824target_alias
825CC
826CFLAGS
827LDFLAGS
828LIBS
5e25901f
MF
829CPPFLAGS
830CPP'
2e8cf49e
NC
831ac_subdirs_all='aarch64
832arm
81ecdfbb 833avr
ef016f83 834bfin
b26e2ae7 835bpf
81ecdfbb
RW
836cr16
837cris
838d10v
839frv
840h8300
841iq2000
842lm32
843m32c
844m32r
845m68hc11
846mcore
bd30e45a 847microblaze
81ecdfbb
RW
848mips
849mn10300
850moxie
3346cfda 851msp430
37f980dc 852or1k
ddd44b70 853pru
b9249c46 854riscv
87326c78 855rl78
4f8d4a38 856rx
81ecdfbb
RW
857sh
858erc32
859ppc
f46e4eb7 860ft32
26da232c
MF
861v850
862example-synacor'
c906108c
SS
863
864# Initialize some variables set by options.
b7026657
AC
865ac_init_help=
866ac_init_version=false
81ecdfbb
RW
867ac_unrecognized_opts=
868ac_unrecognized_sep=
c906108c
SS
869# The variables have the same names as the options, with
870# dashes changed to underlines.
b7026657 871cache_file=/dev/null
c906108c 872exec_prefix=NONE
c906108c 873no_create=
c906108c
SS
874no_recursion=
875prefix=NONE
876program_prefix=NONE
877program_suffix=NONE
878program_transform_name=s,x,x,
879silent=
880site=
881srcdir=
c906108c
SS
882verbose=
883x_includes=NONE
884x_libraries=NONE
b7026657
AC
885
886# Installation directory options.
887# These are left unexpanded so users can "make install exec_prefix=/foo"
888# and all the variables that are supposed to be based on exec_prefix
889# by default will actually change.
890# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 891# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
892bindir='${exec_prefix}/bin'
893sbindir='${exec_prefix}/sbin'
894libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
895datarootdir='${prefix}/share'
896datadir='${datarootdir}'
c906108c
SS
897sysconfdir='${prefix}/etc'
898sharedstatedir='${prefix}/com'
899localstatedir='${prefix}/var'
c906108c
SS
900includedir='${prefix}/include'
901oldincludedir='/usr/include'
6bddc3e8 902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
903infodir='${datarootdir}/info'
904htmldir='${docdir}'
905dvidir='${docdir}'
906pdfdir='${docdir}'
907psdir='${docdir}'
908libdir='${exec_prefix}/lib'
909localedir='${datarootdir}/locale'
910mandir='${datarootdir}/man'
c906108c 911
c906108c 912ac_prev=
81ecdfbb 913ac_dashdash=
c906108c
SS
914for ac_option
915do
c906108c
SS
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
81ecdfbb 918 eval $ac_prev=\$ac_option
c906108c
SS
919 ac_prev=
920 continue
921 fi
922
81ecdfbb 923 case $ac_option in
d0ac1c44
SM
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *=) ac_optarg= ;;
926 *) ac_optarg=yes ;;
81ecdfbb 927 esac
c906108c
SS
928
929 # Accept the important Cygnus configure options, so we can diagnose typos.
930
81ecdfbb
RW
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
c906108c
SS
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 938 bindir=$ac_optarg ;;
c906108c
SS
939
940 -build | --build | --buil | --bui | --bu)
b7026657 941 ac_prev=build_alias ;;
c906108c 942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 943 build_alias=$ac_optarg ;;
c906108c
SS
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
c906108c 954
81ecdfbb 955 -datadir | --datadir | --datadi | --datad)
c906108c 956 ac_prev=datadir ;;
81ecdfbb 957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 958 datadir=$ac_optarg ;;
c906108c 959
81ecdfbb
RW
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
c906108c 967 -disable-* | --disable-*)
81ecdfbb 968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 969 # Reject names that are not valid shell variable names.
81ecdfbb 970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 971 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976"enable_$ac_useropt"
977"*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
c906108c
SS
992
993 -enable-* | --enable-*)
81ecdfbb 994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 995 # Reject names that are not valid shell variable names.
81ecdfbb 996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 997 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002"enable_$ac_useropt"
1003"*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
fdd6fa61 1006 esac
81ecdfbb 1007 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
b7026657 1016 exec_prefix=$ac_optarg ;;
c906108c
SS
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
b7026657
AC
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
c906108c
SS
1028
1029 -host | --host | --hos | --ho)
b7026657 1030 ac_prev=host_alias ;;
c906108c 1031 -host=* | --host=* | --hos=* | --ho=*)
b7026657 1032 host_alias=$ac_optarg ;;
c906108c 1033
81ecdfbb
RW
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
c906108c
SS
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 1045 includedir=$ac_optarg ;;
c906108c
SS
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 1050 infodir=$ac_optarg ;;
c906108c
SS
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 1055 libdir=$ac_optarg ;;
c906108c
SS
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
b7026657 1062 libexecdir=$ac_optarg ;;
c906108c 1063
81ecdfbb
RW
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
c906108c 1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1070 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 1074 localstatedir=$ac_optarg ;;
c906108c
SS
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 1079 mandir=$ac_optarg ;;
c906108c
SS
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1086 | --no-cr | --no-c | -n)
c906108c
SS
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1100 oldincludedir=$ac_optarg ;;
c906108c
SS
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1105 prefix=$ac_optarg ;;
c906108c
SS
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1112 program_prefix=$ac_optarg ;;
c906108c
SS
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1119 program_suffix=$ac_optarg ;;
c906108c
SS
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1136 program_transform_name=$ac_optarg ;;
c906108c 1137
81ecdfbb
RW
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
c906108c
SS
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
b7026657 1156 sbindir=$ac_optarg ;;
c906108c
SS
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
b7026657 1167 sharedstatedir=$ac_optarg ;;
c906108c
SS
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
b7026657 1172 site=$ac_optarg ;;
0fda6bd2 1173
c906108c
SS
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1177 srcdir=$ac_optarg ;;
c906108c
SS
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1184 sysconfdir=$ac_optarg ;;
c906108c
SS
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1187 ac_prev=target_alias ;;
c906108c 1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1189 target_alias=$ac_optarg ;;
c906108c
SS
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
b7026657
AC
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
c906108c
SS
1196
1197 -with-* | --with-*)
81ecdfbb 1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1199 # Reject names that are not valid shell variable names.
81ecdfbb 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1201 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206"with_$ac_useropt"
1207"*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
fdd6fa61 1210 esac
81ecdfbb 1211 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1212
1213 -without-* | --without-*)
81ecdfbb 1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1215 # Reject names that are not valid shell variable names.
81ecdfbb 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1217 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222"with_$ac_useropt"
1223"*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
c906108c
SS
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1238 x_includes=$ac_optarg ;;
c906108c
SS
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1245 x_libraries=$ac_optarg ;;
c906108c 1246
d0ac1c44
SM
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248Try \`$0 --help' for more information"
c906108c
SS
1249 ;;
1250
b7026657
AC
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1257 esac
1258 eval $ac_envvar=\$ac_optarg
b7026657
AC
1259 export $ac_envvar ;;
1260
c906108c 1261 *)
b7026657 1262 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1267 ;;
1268
1269 esac
1270done
1271
1272if test -n "$ac_prev"; then
b7026657 1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1274 as_fn_error $? "missing argument to $ac_option"
c906108c 1275fi
c906108c 1276
81ecdfbb
RW
1277if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
d0ac1c44 1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
fdd6fa61 1282 esac
81ecdfbb 1283fi
fdd6fa61 1284
81ecdfbb
RW
1285# Check all directory arguments for consistency.
1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
c906108c 1290do
81ecdfbb
RW
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
b7026657 1299 case $ac_val in
81ecdfbb
RW
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1302 esac
d0ac1c44 1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1304done
1305
b7026657
AC
1306# There might be people who depend on the old broken behavior: `$host'
1307# used to hold the argument of --host etc.
1308# FIXME: To remove some day.
1309build=$build_alias
1310host=$host_alias
1311target=$target_alias
1312
1313# FIXME: To remove some day.
1314if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
b7026657
AC
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320fi
c906108c 1321
b7026657
AC
1322ac_tool_prefix=
1323test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325test "$silent" = yes && exec 6>/dev/null
c906108c 1326
c906108c 1327
81ecdfbb
RW
1328ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329ac_ls_di=`ls -di .` &&
1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1331 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1333 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1334
1335
c906108c
SS
1336# Find the source files, if location was not specified.
1337if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
81ecdfbb
RW
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345$as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\).*/{
1359 s//\1/
1360 q
1361 }
1362 s/.*/./; q'`
c906108c 1363 srcdir=$ac_confdir
81ecdfbb 1364 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1365 srcdir=..
1366 fi
1367else
1368 ac_srcdir_defaulted=no
1369fi
81ecdfbb
RW
1370if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1373fi
1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375ac_abs_confdir=`(
d0ac1c44 1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1377 pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
df1756f4
TG
1394
1395#
b7026657
AC
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
6bddc3e8 1402\`configure' configures sim 0 to adapt to many kinds of systems.
b7026657
AC
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE. See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410
1411Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
d0ac1c44 1416 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421
b7026657
AC
1422Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1424 [$ac_default_prefix]
b7026657 1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1426 [PREFIX]
b7026657
AC
1427
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
1432
1433For better control, use the options below.
1434
1435Fine tuning of the installation directories:
81ecdfbb
RW
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
6bddc3e8 1450 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
81ecdfbb
RW
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1455_ACEOF
1456
1457 cat <<\_ACEOF
1458
1459Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463
1464System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 --target=TARGET configure for building compilers for TARGET [HOST]
1468_ACEOF
1469fi
1470
1471if test -n "$ac_init_help"; then
6bddc3e8
MF
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of sim 0:";;
1474 esac
b7026657
AC
1475 cat <<\_ACEOF
1476
1477Optional Features:
81ecdfbb 1478 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b5689863
MF
1481 --enable-plugins Enable support for plugins
1482 --enable-shared[=PKGS] build shared libraries [default=yes]
1483 --enable-static[=PKGS] build static libraries [default=yes]
1484 --enable-fast-install[=PKGS]
1485 optimize for fast installation [default=yes]
1486 --disable-libtool-lock avoid locking (might break parallel builds)
8c379db2
TT
1487 --enable-maintainer-mode
1488 enable make rules and dependencies not useful (and
1489 sometimes confusing) to the casual installer
6bddc3e8
MF
1490 --enable-dependency-tracking
1491 do not reject slow dependency extractors
1492 --disable-dependency-tracking
1493 speeds up one-time build
c2783492
MF
1494 --enable-silent-rules less verbose build output (undo: "make V=1")
1495 --disable-silent-rules verbose build output (undo: "make V=0")
8d0978fb 1496 --enable-sim Enable the GNU simulator
26da232c 1497 --enable-example-sims enable example GNU simulators
a0e674c1 1498 --enable-targets alternative target configurations
ba307cdd
MF
1499 --enable-sim-alignment=align
1500 Specify strict, nonstrict or forced alignment of
1501 memory accesses
dba333c1 1502 --enable-sim-assert Specify whether to perform random assertions
04381273
MF
1503 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1504 itself)
f9a4d543
MF
1505 --enable-sim-endian=endian
1506 Specify target byte endian orientation
5ea45474
MF
1507 --enable-sim-environment=environment
1508 Specify mixed, user, virtual or operating
1509 environment
04381273
MF
1510 --enable-sim-profile=opts
1511 Enable profiling flags
1512 --enable-sim-stdio Specify whether to use stdio for console
1513 input/output
1514 --enable-sim-trace=opts Enable tracing of simulated programs
47ce766a
MF
1515 --enable-werror treat compile warnings as errors
1516 --enable-build-warnings enable build-time compiler warnings if gcc is used
1517 --enable-sim-build-warnings
1518 enable SIM specific build-time compiler warnings if
1519 gcc is used
b7026657 1520
6dd65fc0
MF
1521Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1525 --with-bugurl=URL Direct users to URL to report a bug
b5689863
MF
1526 --with-system-zlib use installed libz
1527 --with-pic try to use only PIC/non-PIC objects [default=use
1528 both]
1529 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
6dd65fc0 1530
b7026657
AC
1531Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
81ecdfbb 1536 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1538 you have headers in a nonstandard directory <include dir>
5e25901f 1539 CPP C preprocessor
b7026657
AC
1540
1541Use these variables to override the choices made by `configure' or to help
1542it to find libraries and programs with nonstandard names/locations.
1543
6bddc3e8
MF
1544Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
1545sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
b7026657 1546_ACEOF
81ecdfbb 1547ac_status=$?
b7026657
AC
1548fi
1549
1550if test "$ac_init_help" = "recursive"; then
1551 # If there are subdirs, report their specific --help.
b7026657 1552 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1553 test -d "$ac_dir" ||
1554 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1555 continue
b7026657
AC
1556 ac_builddir=.
1557
81ecdfbb
RW
1558case "$ac_dir" in
1559.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560*)
1561 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1562 # A ".." for each directory in $ac_dir_suffix.
1563 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1564 case $ac_top_builddir_sub in
1565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567 esac ;;
1568esac
1569ac_abs_top_builddir=$ac_pwd
1570ac_abs_builddir=$ac_pwd$ac_dir_suffix
1571# for backward compatibility:
1572ac_top_builddir=$ac_top_build_prefix
b7026657
AC
1573
1574case $srcdir in
81ecdfbb 1575 .) # We are building in place.
b7026657 1576 ac_srcdir=.
81ecdfbb
RW
1577 ac_top_srcdir=$ac_top_builddir_sub
1578 ac_abs_top_srcdir=$ac_pwd ;;
1579 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1580 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1581 ac_top_srcdir=$srcdir
1582 ac_abs_top_srcdir=$srcdir ;;
1583 *) # Relative name.
1584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1585 ac_top_srcdir=$ac_top_build_prefix$srcdir
1586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
fdd6fa61 1587esac
81ecdfbb 1588ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
fdd6fa61 1589
81ecdfbb
RW
1590 cd "$ac_dir" || { ac_status=$?; continue; }
1591 # Check for guested configure.
1592 if test -f "$ac_srcdir/configure.gnu"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1595 elif test -f "$ac_srcdir/configure"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure" --help=recursive
0fda6bd2 1598 else
81ecdfbb
RW
1599 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600 fi || ac_status=$?
1601 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1602 done
1603fi
1604
81ecdfbb 1605test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1606if $ac_init_version; then
1607 cat <<\_ACEOF
6bddc3e8 1608sim configure 0
d0ac1c44 1609generated by GNU Autoconf 2.69
b7026657 1610
d0ac1c44 1611Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1612This configure script is free software; the Free Software Foundation
1613gives unlimited permission to copy, distribute and modify it.
1614_ACEOF
81ecdfbb 1615 exit
b7026657 1616fi
81ecdfbb
RW
1617
1618## ------------------------ ##
1619## Autoconf initialization. ##
1620## ------------------------ ##
1621
1622# ac_fn_c_try_compile LINENO
1623# --------------------------
1624# Try to compile conftest.$ac_ext, and return whether this succeeded.
1625ac_fn_c_try_compile ()
1626{
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext
1629 if { { ac_try="$ac_compile"
1630case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635$as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1642 fi
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.$ac_objext; then :
1648 ac_retval=0
1649else
1650 $as_echo "$as_me: failed program was:" >&5
1651sed 's/^/| /' conftest.$ac_ext >&5
1652
1653 ac_retval=1
1654fi
d0ac1c44
SM
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
81ecdfbb
RW
1657
1658} # ac_fn_c_try_compile
5e25901f
MF
1659
1660# ac_fn_c_try_cpp LINENO
1661# ----------------------
1662# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_cpp ()
1664{
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if { { ac_try="$ac_cpp conftest.$ac_ext"
1667case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672$as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1679 fi
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } > conftest.i && {
1682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 }; then :
1685 ac_retval=0
1686else
1687 $as_echo "$as_me: failed program was:" >&5
1688sed 's/^/| /' conftest.$ac_ext >&5
1689
1690 ac_retval=1
1691fi
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 as_fn_set_status $ac_retval
1694
1695} # ac_fn_c_try_cpp
c2783492
MF
1696
1697# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1698# -------------------------------------------------------
1699# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1700# the include files in INCLUDES and setting the cache variable VAR
1701# accordingly.
1702ac_fn_c_check_header_mongrel ()
1703{
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if eval \${$3+:} false; then :
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707$as_echo_n "checking for $2... " >&6; }
1708if eval \${$3+:} false; then :
1709 $as_echo_n "(cached) " >&6
1710fi
1711eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713$as_echo "$ac_res" >&6; }
1714else
1715 # Is the header compilable?
1716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1717$as_echo_n "checking $2 usability... " >&6; }
1718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719/* end confdefs.h. */
1720$4
1721#include <$2>
1722_ACEOF
1723if ac_fn_c_try_compile "$LINENO"; then :
1724 ac_header_compiler=yes
1725else
1726 ac_header_compiler=no
1727fi
1728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1730$as_echo "$ac_header_compiler" >&6; }
1731
1732# Is the header present?
1733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1734$as_echo_n "checking $2 presence... " >&6; }
1735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736/* end confdefs.h. */
1737#include <$2>
1738_ACEOF
1739if ac_fn_c_try_cpp "$LINENO"; then :
1740 ac_header_preproc=yes
1741else
1742 ac_header_preproc=no
1743fi
1744rm -f conftest.err conftest.i conftest.$ac_ext
1745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1746$as_echo "$ac_header_preproc" >&6; }
1747
1748# So? What about this header?
1749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1750 yes:no: )
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1752$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1754$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1755 ;;
1756 no:yes:* )
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1758$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1760$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1762$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1764$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1766$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1767( $as_echo "## -------------------------------------------------------------------------------------- ##
1768## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
1769## -------------------------------------------------------------------------------------- ##"
1770 ) | sed "s/^/$as_me: WARNING: /" >&2
1771 ;;
1772esac
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774$as_echo_n "checking for $2... " >&6; }
1775if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1777else
1778 eval "$3=\$ac_header_compiler"
1779fi
1780eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782$as_echo "$ac_res" >&6; }
1783fi
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786} # ac_fn_c_check_header_mongrel
1787
1788# ac_fn_c_try_run LINENO
1789# ----------------------
1790# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1791# that executables *can* be run.
1792ac_fn_c_try_run ()
1793{
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 if { { ac_try="$ac_link"
1796case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>&5
1803 ac_status=$?
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1806 { { case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_try") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; }; }; then :
1816 ac_retval=0
1817else
1818 $as_echo "$as_me: program exited with status $ac_status" >&5
1819 $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=$ac_status
1823fi
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1827
1828} # ac_fn_c_try_run
1829
1830# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1831# -------------------------------------------------------
1832# Tests whether HEADER exists and can be compiled using the include files in
1833# INCLUDES, setting the cache variable VAR accordingly.
1834ac_fn_c_check_header_compile ()
1835{
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838$as_echo_n "checking for $2... " >&6; }
1839if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1841else
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h. */
1844$4
1845#include <$2>
1846_ACEOF
1847if ac_fn_c_try_compile "$LINENO"; then :
1848 eval "$3=yes"
1849else
1850 eval "$3=no"
1851fi
1852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853fi
1854eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856$as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859} # ac_fn_c_check_header_compile
b15c5d7a
MF
1860
1861# ac_fn_c_try_link LINENO
1862# -----------------------
1863# Try to link conftest.$ac_ext, and return whether this succeeded.
1864ac_fn_c_try_link ()
1865{
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 rm -f conftest.$ac_objext conftest$ac_exeext
1868 if { { ac_try="$ac_link"
1869case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872esac
1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874$as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>conftest.err
1876 ac_status=$?
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1881 fi
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_c_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest$ac_exeext && {
1887 test "$cross_compiling" = yes ||
1888 test -x conftest$ac_exeext
1889 }; then :
1890 ac_retval=0
1891else
1892 $as_echo "$as_me: failed program was:" >&5
1893sed 's/^/| /' conftest.$ac_ext >&5
1894
1895 ac_retval=1
1896fi
1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1899 # interfere with the next link command; also delete a directory that is
1900 # left behind by Apple's compiler. We do this before executing the actions.
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1904
1905} # ac_fn_c_try_link
1906
1907# ac_fn_c_check_func LINENO FUNC VAR
1908# ----------------------------------
1909# Tests whether FUNC exists, setting the cache variable VAR accordingly
1910ac_fn_c_check_func ()
1911{
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914$as_echo_n "checking for $2... " >&6; }
1915if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1917else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h. */
1920/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1922#define $2 innocuous_$2
1923
1924/* System header to define __stub macros and hopefully few prototypes,
1925 which can conflict with char $2 (); below.
1926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1927 <limits.h> exists even on freestanding compilers. */
1928
1929#ifdef __STDC__
1930# include <limits.h>
1931#else
1932# include <assert.h>
1933#endif
1934
1935#undef $2
1936
1937/* Override any GCC internal prototype to avoid an error.
1938 Use char because int might match the return type of a GCC
1939 builtin and then its argument prototype would still apply. */
1940#ifdef __cplusplus
1941extern "C"
1942#endif
1943char $2 ();
1944/* The GNU C library defines this for functions which it implements
1945 to always fail with ENOSYS. Some functions are actually named
1946 something starting with __ and the normal name is an alias. */
1947#if defined __stub_$2 || defined __stub___$2
1948choke me
1949#endif
1950
1951int
1952main ()
1953{
1954return $2 ();
1955 ;
1956 return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_link "$LINENO"; then :
1960 eval "$3=yes"
1961else
1962 eval "$3=no"
1963fi
1964rm -f core conftest.err conftest.$ac_objext \
1965 conftest$ac_exeext conftest.$ac_ext
1966fi
1967eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969$as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972} # ac_fn_c_check_func
1973
1974# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1975# ----------------------------------------------------
1976# Tries to find if the field MEMBER exists in type AGGR, after including
1977# INCLUDES, setting cache variable VAR accordingly.
1978ac_fn_c_check_member ()
1979{
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1982$as_echo_n "checking for $2.$3... " >&6; }
1983if eval \${$4+:} false; then :
1984 $as_echo_n "(cached) " >&6
1985else
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h. */
1988$5
1989int
1990main ()
1991{
1992static $2 ac_aggr;
1993if (ac_aggr.$3)
1994return 0;
1995 ;
1996 return 0;
1997}
1998_ACEOF
1999if ac_fn_c_try_compile "$LINENO"; then :
2000 eval "$4=yes"
2001else
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h. */
2004$5
2005int
2006main ()
2007{
2008static $2 ac_aggr;
2009if (sizeof ac_aggr.$3)
2010return 0;
2011 ;
2012 return 0;
2013}
2014_ACEOF
2015if ac_fn_c_try_compile "$LINENO"; then :
2016 eval "$4=yes"
2017else
2018 eval "$4=no"
2019fi
2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021fi
2022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023fi
2024eval ac_res=\$$4
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026$as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028
2029} # ac_fn_c_check_member
2030
a48ff3ef
MF
2031# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2032# ---------------------------------------------
2033# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2034# accordingly.
2035ac_fn_c_check_decl ()
2036{
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 as_decl_name=`echo $2|sed 's/ *(.*//'`
2039 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2041$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2042if eval \${$3+:} false; then :
2043 $as_echo_n "(cached) " >&6
2044else
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046/* end confdefs.h. */
2047$4
2048int
2049main ()
2050{
2051#ifndef $as_decl_name
2052#ifdef __cplusplus
2053 (void) $as_decl_use;
2054#else
2055 (void) $as_decl_name;
2056#endif
2057#endif
2058
2059 ;
2060 return 0;
2061}
2062_ACEOF
2063if ac_fn_c_try_compile "$LINENO"; then :
2064 eval "$3=yes"
2065else
2066 eval "$3=no"
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069fi
2070eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072$as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075} # ac_fn_c_check_decl
2076
b15c5d7a
MF
2077# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2078# -------------------------------------------
2079# Tests whether TYPE exists after having included INCLUDES, setting cache
2080# variable VAR accordingly.
2081ac_fn_c_check_type ()
2082{
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085$as_echo_n "checking for $2... " >&6; }
2086if eval \${$3+:} false; then :
2087 $as_echo_n "(cached) " >&6
2088else
2089 eval "$3=no"
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h. */
2092$4
2093int
2094main ()
2095{
2096if (sizeof ($2))
2097 return 0;
2098 ;
2099 return 0;
2100}
2101_ACEOF
2102if ac_fn_c_try_compile "$LINENO"; then :
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104/* end confdefs.h. */
2105$4
2106int
2107main ()
2108{
2109if (sizeof (($2)))
2110 return 0;
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115if ac_fn_c_try_compile "$LINENO"; then :
2116
2117else
2118 eval "$3=yes"
2119fi
2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121fi
2122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123fi
2124eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126$as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128
2129} # ac_fn_c_check_type
81ecdfbb 2130cat >config.log <<_ACEOF
b7026657
AC
2131This file contains any messages produced by compilers while
2132running configure, to aid debugging if configure makes a mistake.
2133
6bddc3e8 2134It was created by sim $as_me 0, which was
d0ac1c44 2135generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
2136
2137 $ $0 $@
2138
2139_ACEOF
81ecdfbb 2140exec 5>>config.log
b7026657
AC
2141{
2142cat <<_ASUNAME
2143## --------- ##
2144## Platform. ##
2145## --------- ##
2146
2147hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2148uname -m = `(uname -m) 2>/dev/null || echo unknown`
2149uname -r = `(uname -r) 2>/dev/null || echo unknown`
2150uname -s = `(uname -s) 2>/dev/null || echo unknown`
2151uname -v = `(uname -v) 2>/dev/null || echo unknown`
2152
2153/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2154/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2155
2156/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2157/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2158/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 2159/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b7026657
AC
2160/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2161/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2162/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2163
2164_ASUNAME
2165
2166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167for as_dir in $PATH
2168do
2169 IFS=$as_save_IFS
2170 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2171 $as_echo "PATH: $as_dir"
2172 done
2173IFS=$as_save_IFS
b7026657
AC
2174
2175} >&5
2176
2177cat >&5 <<_ACEOF
2178
2179
2180## ----------- ##
2181## Core tests. ##
2182## ----------- ##
2183
2184_ACEOF
2185
2186
2187# Keep a trace of the command line.
2188# Strip out --no-create and --no-recursion so they do not pile up.
2189# Strip out --silent because we don't want to record it for future runs.
2190# Also quote any args containing shell meta-characters.
2191# Make two passes to allow for proper duplicate-argument suppression.
2192ac_configure_args=
2193ac_configure_args0=
2194ac_configure_args1=
b7026657
AC
2195ac_must_keep_next=false
2196for ac_pass in 1 2
2197do
2198 for ac_arg
2199 do
2200 case $ac_arg in
2201 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2203 | -silent | --silent | --silen | --sile | --sil)
2204 continue ;;
81ecdfbb
RW
2205 *\'*)
2206 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2207 esac
2208 case $ac_pass in
81ecdfbb 2209 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 2210 2)
81ecdfbb 2211 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
2212 if test $ac_must_keep_next = true; then
2213 ac_must_keep_next=false # Got value, back to normal.
2214 else
2215 case $ac_arg in
2216 *=* | --config-cache | -C | -disable-* | --disable-* \
2217 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2218 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2219 | -with-* | --with-* | -without-* | --without-* | --x)
2220 case "$ac_configure_args0 " in
2221 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2222 esac
2223 ;;
2224 -* ) ac_must_keep_next=true ;;
2225 esac
2226 fi
81ecdfbb 2227 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
2228 ;;
2229 esac
2230 done
2231done
81ecdfbb
RW
2232{ ac_configure_args0=; unset ac_configure_args0;}
2233{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2234
2235# When interrupted or exit'd, cleanup temporary files, and complete
2236# config.log. We remove comments because anyway the quotes in there
2237# would cause problems or look ugly.
81ecdfbb
RW
2238# WARNING: Use '\'' to represent an apostrophe within the trap.
2239# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2240trap 'exit_status=$?
2241 # Save into config.log some information that might help in debugging.
2242 {
2243 echo
2244
d0ac1c44 2245 $as_echo "## ---------------- ##
b7026657 2246## Cache variables. ##
d0ac1c44 2247## ---------------- ##"
b7026657
AC
2248 echo
2249 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2250(
2251 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2252 eval ac_val=\$$ac_var
2253 case $ac_val in #(
2254 *${as_nl}*)
2255 case $ac_var in #(
2256 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2257$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2258 esac
2259 case $ac_var in #(
2260 _ | IFS | as_nl) ;; #(
2261 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2262 *) { eval $ac_var=; unset $ac_var;} ;;
2263 esac ;;
2264 esac
2265 done
b7026657 2266 (set) 2>&1 |
81ecdfbb
RW
2267 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2268 *${as_nl}ac_space=\ *)
b7026657 2269 sed -n \
81ecdfbb
RW
2270 "s/'\''/'\''\\\\'\'''\''/g;
2271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2272 ;; #(
b7026657 2273 *)
81ecdfbb 2274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2275 ;;
81ecdfbb
RW
2276 esac |
2277 sort
2278)
b7026657
AC
2279 echo
2280
d0ac1c44 2281 $as_echo "## ----------------- ##
b7026657 2282## Output variables. ##
d0ac1c44 2283## ----------------- ##"
b7026657
AC
2284 echo
2285 for ac_var in $ac_subst_vars
2286 do
81ecdfbb
RW
2287 eval ac_val=\$$ac_var
2288 case $ac_val in
2289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2290 esac
2291 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2292 done | sort
2293 echo
2294
2295 if test -n "$ac_subst_files"; then
d0ac1c44 2296 $as_echo "## ------------------- ##
81ecdfbb 2297## File substitutions. ##
d0ac1c44 2298## ------------------- ##"
b7026657
AC
2299 echo
2300 for ac_var in $ac_subst_files
2301 do
81ecdfbb
RW
2302 eval ac_val=\$$ac_var
2303 case $ac_val in
2304 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2305 esac
2306 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2307 done | sort
2308 echo
2309 fi
2310
2311 if test -s confdefs.h; then
d0ac1c44 2312 $as_echo "## ----------- ##
b7026657 2313## confdefs.h. ##
d0ac1c44 2314## ----------- ##"
b7026657 2315 echo
81ecdfbb 2316 cat confdefs.h
b7026657 2317 echo
0fda6bd2 2318 fi
b7026657 2319 test "$ac_signal" != 0 &&
81ecdfbb
RW
2320 $as_echo "$as_me: caught signal $ac_signal"
2321 $as_echo "$as_me: exit $exit_status"
b7026657 2322 } >&5
81ecdfbb
RW
2323 rm -f core *.core core.conftest.* &&
2324 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2325 exit $exit_status
81ecdfbb 2326' 0
b7026657 2327for ac_signal in 1 2 13 15; do
81ecdfbb 2328 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2329done
2330ac_signal=0
2331
2332# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2333rm -f -r conftest* confdefs.h
2334
2335$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2336
2337# Predefined preprocessor variables.
2338
2339cat >>confdefs.h <<_ACEOF
2340#define PACKAGE_NAME "$PACKAGE_NAME"
2341_ACEOF
2342
b7026657
AC
2343cat >>confdefs.h <<_ACEOF
2344#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2345_ACEOF
2346
b7026657
AC
2347cat >>confdefs.h <<_ACEOF
2348#define PACKAGE_VERSION "$PACKAGE_VERSION"
2349_ACEOF
2350
b7026657
AC
2351cat >>confdefs.h <<_ACEOF
2352#define PACKAGE_STRING "$PACKAGE_STRING"
2353_ACEOF
2354
b7026657
AC
2355cat >>confdefs.h <<_ACEOF
2356#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2357_ACEOF
2358
81ecdfbb
RW
2359cat >>confdefs.h <<_ACEOF
2360#define PACKAGE_URL "$PACKAGE_URL"
2361_ACEOF
2362
b7026657
AC
2363
2364# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2365# Prefer an explicitly selected file to automatically selected ones.
2366ac_site_file1=NONE
2367ac_site_file2=NONE
2368if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2369 # We do not want a PATH search for config.site.
2370 case $CONFIG_SITE in #((
2371 -*) ac_site_file1=./$CONFIG_SITE;;
2372 */*) ac_site_file1=$CONFIG_SITE;;
2373 *) ac_site_file1=./$CONFIG_SITE;;
2374 esac
81ecdfbb
RW
2375elif test "x$prefix" != xNONE; then
2376 ac_site_file1=$prefix/share/config.site
2377 ac_site_file2=$prefix/etc/config.site
2378else
2379 ac_site_file1=$ac_default_prefix/share/config.site
2380 ac_site_file2=$ac_default_prefix/etc/config.site
c906108c 2381fi
81ecdfbb
RW
2382for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2383do
2384 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2385 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2387$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 2388 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2389 . "$ac_site_file" \
2390 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2392as_fn_error $? "failed to load site script $ac_site_file
2393See \`config.log' for more details" "$LINENO" 5; }
c906108c
SS
2394 fi
2395done
2396
2397if test -r "$cache_file"; then
d0ac1c44
SM
2398 # Some versions of bash will fail to source /dev/null (special files
2399 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2400 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2402$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2403 case $cache_file in
81ecdfbb
RW
2404 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2405 *) . "./$cache_file";;
b7026657
AC
2406 esac
2407 fi
c906108c 2408else
81ecdfbb
RW
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2410$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657 2411 >$cache_file
c906108c
SS
2412fi
2413
b15c5d7a
MF
2414as_fn_append ac_header_list " dlfcn.h"
2415as_fn_append ac_header_list " fcntl.h"
2416as_fn_append ac_header_list " fpu_control.h"
2417as_fn_append ac_header_list " termios.h"
2418as_fn_append ac_header_list " unistd.h"
2419as_fn_append ac_header_list " utime.h"
2420as_fn_append ac_header_list " linux/if_tun.h"
2421as_fn_append ac_header_list " linux/mii.h"
2422as_fn_append ac_header_list " linux/types.h"
2423as_fn_append ac_header_list " net/if.h"
2424as_fn_append ac_header_list " netinet/in.h"
2425as_fn_append ac_header_list " netinet/tcp.h"
2426as_fn_append ac_header_list " sys/ioctl.h"
2427as_fn_append ac_header_list " sys/mman.h"
a48ff3ef 2428as_fn_append ac_header_list " sys/mount.h"
b15c5d7a
MF
2429as_fn_append ac_header_list " sys/param.h"
2430as_fn_append ac_header_list " sys/resource.h"
b15c5d7a
MF
2431as_fn_append ac_header_list " sys/socket.h"
2432as_fn_append ac_header_list " sys/stat.h"
a48ff3ef
MF
2433as_fn_append ac_header_list " sys/statfs.h"
2434as_fn_append ac_header_list " sys/termio.h"
2435as_fn_append ac_header_list " sys/termios.h"
2436as_fn_append ac_header_list " sys/types.h"
2437as_fn_append ac_header_list " sys/vfs.h"
b15c5d7a 2438as_fn_append ac_func_list " __setfpucw"
a48ff3ef 2439as_fn_append ac_func_list " access"
b15c5d7a
MF
2440as_fn_append ac_func_list " aint"
2441as_fn_append ac_func_list " anint"
a48ff3ef
MF
2442as_fn_append ac_func_list " cfgetispeed"
2443as_fn_append ac_func_list " cfgetospeed"
2444as_fn_append ac_func_list " cfsetispeed"
2445as_fn_append ac_func_list " cfsetospeed"
2446as_fn_append ac_func_list " chdir"
b15c5d7a 2447as_fn_append ac_func_list " chmod"
a48ff3ef
MF
2448as_fn_append ac_func_list " dup"
2449as_fn_append ac_func_list " dup2"
b15c5d7a
MF
2450as_fn_append ac_func_list " execv"
2451as_fn_append ac_func_list " execve"
a48ff3ef 2452as_fn_append ac_func_list " fcntl"
b15c5d7a 2453as_fn_append ac_func_list " fork"
a48ff3ef
MF
2454as_fn_append ac_func_list " fstat"
2455as_fn_append ac_func_list " fstatfs"
b15c5d7a 2456as_fn_append ac_func_list " ftruncate"
a48ff3ef 2457as_fn_append ac_func_list " getdirentries"
b15c5d7a 2458as_fn_append ac_func_list " getegid"
a48ff3ef 2459as_fn_append ac_func_list " geteuid"
b15c5d7a 2460as_fn_append ac_func_list " getgid"
a48ff3ef
MF
2461as_fn_append ac_func_list " getpid"
2462as_fn_append ac_func_list " getppid"
b15c5d7a 2463as_fn_append ac_func_list " getrusage"
a48ff3ef 2464as_fn_append ac_func_list " gettimeofday"
b15c5d7a 2465as_fn_append ac_func_list " getuid"
a48ff3ef 2466as_fn_append ac_func_list " ioctl"
b15c5d7a 2467as_fn_append ac_func_list " kill"
a48ff3ef
MF
2468as_fn_append ac_func_list " link"
2469as_fn_append ac_func_list " lseek"
b15c5d7a
MF
2470as_fn_append ac_func_list " mmap"
2471as_fn_append ac_func_list " munmap"
a48ff3ef 2472as_fn_append ac_func_list " pipe"
b15c5d7a
MF
2473as_fn_append ac_func_list " posix_fallocate"
2474as_fn_append ac_func_list " pread"
a48ff3ef
MF
2475as_fn_append ac_func_list " rmdir"
2476as_fn_append ac_func_list " setregid"
2477as_fn_append ac_func_list " setreuid"
b15c5d7a 2478as_fn_append ac_func_list " setgid"
a48ff3ef 2479as_fn_append ac_func_list " setuid"
b15c5d7a 2480as_fn_append ac_func_list " sigaction"
a48ff3ef 2481as_fn_append ac_func_list " sigprocmask"
b15c5d7a 2482as_fn_append ac_func_list " sqrt"
a48ff3ef 2483as_fn_append ac_func_list " stat"
b15c5d7a 2484as_fn_append ac_func_list " strsignal"
a48ff3ef
MF
2485as_fn_append ac_func_list " symlink"
2486as_fn_append ac_func_list " tcdrain"
2487as_fn_append ac_func_list " tcflow"
2488as_fn_append ac_func_list " tcflush"
2489as_fn_append ac_func_list " tcgetattr"
2490as_fn_append ac_func_list " tcgetpgrp"
2491as_fn_append ac_func_list " tcsendbreak"
2492as_fn_append ac_func_list " tcsetattr"
2493as_fn_append ac_func_list " tcsetpgrp"
b15c5d7a
MF
2494as_fn_append ac_func_list " time"
2495as_fn_append ac_func_list " truncate"
a48ff3ef
MF
2496as_fn_append ac_func_list " umask"
2497as_fn_append ac_func_list " unlink"
b15c5d7a 2498as_fn_append ac_func_list " utime"
b7026657
AC
2499# Check that the precious variables saved in the cache have kept the same
2500# value.
2501ac_cache_corrupted=false
81ecdfbb 2502for ac_var in $ac_precious_vars; do
b7026657
AC
2503 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2504 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2505 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2506 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2507 case $ac_old_set,$ac_new_set in
2508 set,)
81ecdfbb
RW
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2510$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2511 ac_cache_corrupted=: ;;
2512 ,set)
81ecdfbb
RW
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2514$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2515 ac_cache_corrupted=: ;;
2516 ,);;
2517 *)
2518 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2519 # differences in whitespace do not lead to failure.
2520 ac_old_val_w=`echo x $ac_old_val`
2521 ac_new_val_w=`echo x $ac_new_val`
2522 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2524$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2525 ac_cache_corrupted=:
2526 else
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2528$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2529 eval $ac_var=\$ac_old_val
2530 fi
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2532$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2534$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2535 fi;;
2536 esac
2537 # Pass precious variables to config.status.
2538 if test "$ac_new_set" = set; then
2539 case $ac_new_val in
81ecdfbb 2540 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2541 *) ac_arg=$ac_var=$ac_new_val ;;
2542 esac
2543 case " $ac_configure_args " in
2544 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2545 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657 2546 esac
c906108c 2547 fi
b7026657
AC
2548done
2549if $ac_cache_corrupted; then
81ecdfbb
RW
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2553$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2554 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c906108c 2555fi
81ecdfbb
RW
2556## -------------------- ##
2557## Main body of script. ##
2558## -------------------- ##
c906108c 2559
fdd6fa61
AG
2560ac_ext=c
2561ac_cpp='$CPP $CPPFLAGS'
2562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2564ac_compiler_gnu=$ac_cv_c_compiler_gnu
2565
c906108c
SS
2566
2567
8c379db2
TT
2568
2569
2570
6dd65fc0
MF
2571
2572
2573# Check whether --with-pkgversion was given.
2574if test "${with_pkgversion+set}" = set; then :
2575 withval=$with_pkgversion; case "$withval" in
2576 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2577 no) PKGVERSION= ;;
2578 *) PKGVERSION="($withval) " ;;
2579 esac
2580else
2581 PKGVERSION="(SIM) "
2582
2583fi
2584
2585
2586
2587
2588cat >>confdefs.h <<_ACEOF
2589#define PKGVERSION "$PKGVERSION"
2590_ACEOF
2591
2592
2593
2594# Check whether --with-bugurl was given.
2595if test "${with_bugurl+set}" = set; then :
2596 withval=$with_bugurl; case "$withval" in
2597 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2598 no) BUGURL=
2599 ;;
2600 *) BUGURL="$withval"
2601 ;;
2602 esac
2603else
2604 BUGURL="$PACKAGE_BUGREPORT"
2605
2606fi
2607
2608 case ${BUGURL} in
2609 "")
2610 REPORT_BUGS_TO=
2611 REPORT_BUGS_TEXI=
2612 ;;
2613 *)
2614 REPORT_BUGS_TO="<$BUGURL>"
2615 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2616 ;;
2617 esac;
2618
2619
2620
2621
2622cat >>confdefs.h <<_ACEOF
2623#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2624_ACEOF
2625
2626
b15c5d7a
MF
2627ac_config_headers="$ac_config_headers config.h"
2628
2629
6bddc3e8
MF
2630ac_aux_dir=
2631for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2632 if test -f "$ac_dir/install-sh"; then
2633 ac_aux_dir=$ac_dir
2634 ac_install_sh="$ac_aux_dir/install-sh -c"
2635 break
2636 elif test -f "$ac_dir/install.sh"; then
2637 ac_aux_dir=$ac_dir
2638 ac_install_sh="$ac_aux_dir/install.sh -c"
2639 break
2640 elif test -f "$ac_dir/shtool"; then
2641 ac_aux_dir=$ac_dir
2642 ac_install_sh="$ac_aux_dir/shtool install -c"
2643 break
b7026657
AC
2644 fi
2645done
6bddc3e8
MF
2646if test -z "$ac_aux_dir"; then
2647 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
c906108c
SS
2648fi
2649
6bddc3e8
MF
2650# These three variables are undocumented and unsupported,
2651# and are intended to be withdrawn in a future Autoconf release.
2652# They can cause serious problems if a builder's source tree is in a directory
2653# whose full name contains unusual characters.
2654ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2655ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2656ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
81ecdfbb 2657
6bddc3e8
MF
2658
2659# Make sure we can run config.sub.
2660$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2661 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2662
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2664$as_echo_n "checking build system type... " >&6; }
2665if ${ac_cv_build+:} false; then :
81ecdfbb 2666 $as_echo_n "(cached) " >&6
c906108c 2667else
6bddc3e8
MF
2668 ac_build_alias=$build_alias
2669test "x$ac_build_alias" = x &&
2670 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2671test "x$ac_build_alias" = x &&
2672 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2673ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2674 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b7026657
AC
2675
2676fi
6bddc3e8
MF
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2678$as_echo "$ac_cv_build" >&6; }
2679case $ac_cv_build in
2680*-*-*) ;;
2681*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2682esac
6bddc3e8
MF
2683build=$ac_cv_build
2684ac_save_IFS=$IFS; IFS='-'
2685set x $ac_cv_build
2686shift
2687build_cpu=$1
2688build_vendor=$2
2689shift; shift
2690# Remember, the first character of IFS is used to create $*,
2691# except with old shells:
2692build_os=$*
2693IFS=$ac_save_IFS
2694case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
b7026657 2695
6bddc3e8
MF
2696
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2698$as_echo_n "checking host system type... " >&6; }
2699if ${ac_cv_host+:} false; then :
81ecdfbb 2700 $as_echo_n "(cached) " >&6
b7026657 2701else
6bddc3e8
MF
2702 if test "x$host_alias" = x; then
2703 ac_cv_host=$ac_cv_build
b7026657 2704else
6bddc3e8
MF
2705 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2706 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b7026657 2707fi
6bddc3e8 2708
fdd6fa61 2709fi
6bddc3e8
MF
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2711$as_echo "$ac_cv_host" >&6; }
2712case $ac_cv_host in
2713*-*-*) ;;
2714*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2715esac
2716host=$ac_cv_host
2717ac_save_IFS=$IFS; IFS='-'
2718set x $ac_cv_host
2719shift
2720host_cpu=$1
2721host_vendor=$2
2722shift; shift
2723# Remember, the first character of IFS is used to create $*,
2724# except with old shells:
2725host_os=$*
2726IFS=$ac_save_IFS
2727case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
fdd6fa61 2728
fdd6fa61 2729
6bddc3e8
MF
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2731$as_echo_n "checking target system type... " >&6; }
2732if ${ac_cv_target+:} false; then :
81ecdfbb 2733 $as_echo_n "(cached) " >&6
b7026657 2734else
6bddc3e8
MF
2735 if test "x$target_alias" = x; then
2736 ac_cv_target=$ac_cv_host
c906108c 2737else
6bddc3e8
MF
2738 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2739 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2740fi
2741
2742fi
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2744$as_echo "$ac_cv_target" >&6; }
2745case $ac_cv_target in
2746*-*-*) ;;
2747*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2748esac
2749target=$ac_cv_target
2750ac_save_IFS=$IFS; IFS='-'
2751set x $ac_cv_target
2752shift
2753target_cpu=$1
2754target_vendor=$2
2755shift; shift
2756# Remember, the first character of IFS is used to create $*,
2757# except with old shells:
2758target_os=$*
2759IFS=$ac_save_IFS
2760case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2761
2762
2763# The aliases save the names the user supplied, while $host etc.
2764# will get canonicalized.
2765test -n "$target_alias" &&
2766 test "$program_prefix$program_suffix$program_transform_name" = \
2767 NONENONEs,x,x, &&
2768 program_prefix=${target_alias}-
c2783492
MF
2769# Expand $ac_aux_dir to an absolute path.
2770am_aux_dir=`cd "$ac_aux_dir" && pwd`
6bddc3e8 2771
c2783492
MF
2772ac_ext=c
2773ac_cpp='$CPP $CPPFLAGS'
2774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777if test -n "$ac_tool_prefix"; then
2778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2779set dummy ${ac_tool_prefix}gcc; ac_word=$2
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781$as_echo_n "checking for $ac_word... " >&6; }
2782if ${ac_cv_prog_CC+:} false; then :
2783 $as_echo_n "(cached) " >&6
8c379db2 2784else
c2783492
MF
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
2787else
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799done
2800 done
2801IFS=$as_save_IFS
8c379db2 2802
c2783492
MF
2803fi
2804fi
2805CC=$ac_cv_prog_CC
2806if test -n "$CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2808$as_echo "$CC" >&6; }
8c379db2 2809else
c2783492
MF
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811$as_echo "no" >&6; }
8c379db2
TT
2812fi
2813
6bddc3e8 2814
c2783492
MF
2815fi
2816if test -z "$ac_cv_prog_CC"; then
2817 ac_ct_CC=$CC
2818 # Extract the first word of "gcc", so it can be a program name with args.
2819set dummy gcc; ac_word=$2
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821$as_echo_n "checking for $ac_word... " >&6; }
2822if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bddc3e8
MF
2823 $as_echo_n "(cached) " >&6
2824else
c2783492
MF
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6bddc3e8
MF
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
c2783492
MF
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_CC="gcc"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839done
6bddc3e8
MF
2840 done
2841IFS=$as_save_IFS
2842
6bddc3e8 2843fi
6bddc3e8 2844fi
c2783492
MF
2845ac_ct_CC=$ac_cv_prog_ac_ct_CC
2846if test -n "$ac_ct_CC"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2848$as_echo "$ac_ct_CC" >&6; }
6bddc3e8 2849else
c2783492
MF
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851$as_echo "no" >&6; }
6bddc3e8
MF
2852fi
2853
c2783492
MF
2854 if test "x$ac_ct_CC" = x; then
2855 CC=""
2856 else
2857 case $cross_compiling:$ac_tool_warned in
2858yes:)
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2861ac_tool_warned=yes ;;
2862esac
2863 CC=$ac_ct_CC
2864 fi
6bddc3e8 2865else
c2783492 2866 CC="$ac_cv_prog_CC"
6bddc3e8
MF
2867fi
2868
c2783492
MF
2869if test -z "$CC"; then
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2872set dummy ${ac_tool_prefix}cc; ac_word=$2
6bddc3e8
MF
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874$as_echo_n "checking for $ac_word... " >&6; }
c2783492 2875if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2876 $as_echo_n "(cached) " >&6
2877else
c2783492
MF
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
6bddc3e8
MF
2880else
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 2888 ac_cv_prog_CC="${ac_tool_prefix}cc"
6bddc3e8
MF
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892done
2893 done
2894IFS=$as_save_IFS
2895
2896fi
2897fi
c2783492
MF
2898CC=$ac_cv_prog_CC
2899if test -n "$CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2901$as_echo "$CC" >&6; }
6bddc3e8
MF
2902else
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904$as_echo "no" >&6; }
2905fi
2906
2907
c2783492 2908 fi
6bddc3e8 2909fi
c2783492
MF
2910if test -z "$CC"; then
2911 # Extract the first word of "cc", so it can be a program name with args.
2912set dummy cc; ac_word=$2
6bddc3e8
MF
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914$as_echo_n "checking for $ac_word... " >&6; }
c2783492 2915if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2916 $as_echo_n "(cached) " >&6
2917else
c2783492
MF
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
6bddc3e8 2920else
c2783492 2921 ac_prog_rejected=no
6bddc3e8
MF
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492
MF
2929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2930 ac_prog_rejected=yes
2931 continue
2932 fi
2933 ac_cv_prog_CC="cc"
6bddc3e8
MF
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937done
2938 done
2939IFS=$as_save_IFS
2940
c2783492
MF
2941if test $ac_prog_rejected = yes; then
2942 # We found a bogon in the path, so make sure we never use it.
2943 set dummy $ac_cv_prog_CC
2944 shift
2945 if test $# != 0; then
2946 # We chose a different compiler from the bogus one.
2947 # However, it has the same basename, so the bogon will be chosen
2948 # first if we set CC to just the basename; use the full file name.
2949 shift
2950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2951 fi
6bddc3e8
MF
2952fi
2953fi
c2783492
MF
2954fi
2955CC=$ac_cv_prog_CC
2956if test -n "$CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958$as_echo "$CC" >&6; }
6bddc3e8
MF
2959else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961$as_echo "no" >&6; }
2962fi
2963
6bddc3e8
MF
2964
2965fi
c2783492
MF
2966if test -z "$CC"; then
2967 if test -n "$ac_tool_prefix"; then
2968 for ac_prog in cl.exe
2969 do
2970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2971set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973$as_echo_n "checking for $ac_word... " >&6; }
2974if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2975 $as_echo_n "(cached) " >&6
2976else
c2783492
MF
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2979else
2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH
6bddc3e8
MF
2982do
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
c2783492
MF
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2990 fi
2991done
6bddc3e8
MF
2992 done
2993IFS=$as_save_IFS
2994
2995fi
6bddc3e8 2996fi
c2783492
MF
2997CC=$ac_cv_prog_CC
2998if test -n "$CC"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3000$as_echo "$CC" >&6; }
3001else
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003$as_echo "no" >&6; }
3004fi
6bddc3e8 3005
c2783492
MF
3006
3007 test -n "$CC" && break
3008 done
3009fi
3010if test -z "$CC"; then
3011 ac_ct_CC=$CC
3012 for ac_prog in cl.exe
6bddc3e8
MF
3013do
3014 # Extract the first word of "$ac_prog", so it can be a program name with args.
3015set dummy $ac_prog; ac_word=$2
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017$as_echo_n "checking for $ac_word... " >&6; }
c2783492 3018if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bddc3e8
MF
3019 $as_echo_n "(cached) " >&6
3020else
c2783492
MF
3021 if test -n "$ac_ct_CC"; then
3022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6bddc3e8
MF
3023else
3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025for as_dir in $PATH
3026do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 3031 ac_cv_prog_ac_ct_CC="$ac_prog"
6bddc3e8
MF
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 break 2
3034 fi
3035done
3036 done
3037IFS=$as_save_IFS
3038
3039fi
3040fi
c2783492
MF
3041ac_ct_CC=$ac_cv_prog_ac_ct_CC
3042if test -n "$ac_ct_CC"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3044$as_echo "$ac_ct_CC" >&6; }
6bddc3e8
MF
3045else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047$as_echo "no" >&6; }
3048fi
3049
3050
c2783492 3051 test -n "$ac_ct_CC" && break
6bddc3e8
MF
3052done
3053
c2783492
MF
3054 if test "x$ac_ct_CC" = x; then
3055 CC=""
3056 else
3057 case $cross_compiling:$ac_tool_warned in
3058yes:)
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3061ac_tool_warned=yes ;;
6bddc3e8 3062esac
c2783492 3063 CC=$ac_ct_CC
6bddc3e8
MF
3064 fi
3065fi
3066
6bddc3e8
MF
3067fi
3068
3069
c2783492
MF
3070test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072as_fn_error $? "no acceptable C compiler found in \$PATH
3073See \`config.log' for more details" "$LINENO" 5; }
6bddc3e8 3074
c2783492
MF
3075# Provide some information about the compiler.
3076$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3077set X $ac_compile
3078ac_compiler=$2
3079for ac_option in --version -v -V -qversion; do
3080 { { ac_try="$ac_compiler $ac_option >&5"
3081case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
3085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086$as_echo "$ac_try_echo"; } >&5
3087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3088 ac_status=$?
3089 if test -s conftest.err; then
3090 sed '10a\
3091... rest of stderr output deleted ...
3092 10q' conftest.err >conftest.er1
3093 cat conftest.er1 >&5
3094 fi
3095 rm -f conftest.er1 conftest.err
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }
3098done
6bddc3e8 3099
c2783492
MF
3100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101/* end confdefs.h. */
6bddc3e8 3102
c2783492
MF
3103int
3104main ()
3105{
6bddc3e8 3106
c2783492
MF
3107 ;
3108 return 0;
3109}
6bddc3e8 3110_ACEOF
c2783492
MF
3111ac_clean_files_save=$ac_clean_files
3112ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3113# Try to create an executable without -o first, disregard a.out.
3114# It will help us diagnose broken compilers, and finding out an intuition
3115# of exeext.
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3117$as_echo_n "checking whether the C compiler works... " >&6; }
3118ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6bddc3e8 3119
c2783492
MF
3120# The possible output files:
3121ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
6bddc3e8 3122
c2783492
MF
3123ac_rmfiles=
3124for ac_file in $ac_files
3125do
3126 case $ac_file in
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3128 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3129 esac
3130done
3131rm -f $ac_rmfiles
81ecdfbb
RW
3132
3133if { { ac_try="$ac_link_default"
3134case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139$as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_link_default") 2>&5
b7026657 3141 ac_status=$?
81ecdfbb
RW
3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }; then :
3144 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3145# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3146# in a Makefile. We should not override ac_cv_exeext if it was cached,
3147# so that the user can short-circuit this test for compilers unknown to
3148# Autoconf.
3149for ac_file in $ac_files ''
b7026657
AC
3150do
3151 test -f "$ac_file" || continue
3152 case $ac_file in
81ecdfbb 3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b7026657
AC
3154 ;;
3155 [ab].out )
3156 # We found the default executable, but exeext='' is most
3157 # certainly right.
3158 break;;
3159 *.* )
81ecdfbb
RW
3160 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3161 then :; else
3162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3163 fi
3164 # We set ac_cv_exeext here because the later test for it is not
3165 # safe: cross compilers may not add the suffix if given an `-o'
3166 # argument, so we may need to know it at that point already.
3167 # Even if this section looks crufty: it has the advantage of
3168 # actually working.
b7026657
AC
3169 break;;
3170 * )
3171 break;;
3172 esac
3173done
81ecdfbb
RW
3174test "$ac_cv_exeext" = no && ac_cv_exeext=
3175
b7026657 3176else
81ecdfbb
RW
3177 ac_file=''
3178fi
81ecdfbb 3179if test -z "$ac_file"; then :
d0ac1c44
SM
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181$as_echo "no" >&6; }
3182$as_echo "$as_me: failed program was:" >&5
b7026657
AC
3183sed 's/^/| /' conftest.$ac_ext >&5
3184
81ecdfbb
RW
3185{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3187as_fn_error 77 "C compiler cannot create executables
3188See \`config.log' for more details" "$LINENO" 5; }
3189else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191$as_echo "yes" >&6; }
b7026657 3192fi
d0ac1c44
SM
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3194$as_echo_n "checking for C compiler default output file name... " >&6; }
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3196$as_echo "$ac_file" >&6; }
b7026657 3197ac_exeext=$ac_cv_exeext
b7026657 3198
d0ac1c44 3199rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b7026657 3200ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3202$as_echo_n "checking for suffix of executables... " >&6; }
3203if { { ac_try="$ac_link"
3204case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207esac
3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209$as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link") 2>&5
b7026657 3211 ac_status=$?
81ecdfbb
RW
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; then :
b7026657
AC
3214 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3215# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3216# work properly (i.e., refer to `conftest.exe'), while it won't with
3217# `rm'.
3218for ac_file in conftest.exe conftest conftest.*; do
3219 test -f "$ac_file" || continue
3220 case $ac_file in
81ecdfbb 3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b7026657 3222 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
3223 break;;
3224 * ) break;;
3225 esac
3226done
c906108c 3227else
81ecdfbb
RW
3228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3230as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3231See \`config.log' for more details" "$LINENO" 5; }
c906108c 3232fi
d0ac1c44 3233rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3235$as_echo "$ac_cv_exeext" >&6; }
b7026657
AC
3236
3237rm -f conftest.$ac_ext
3238EXEEXT=$ac_cv_exeext
3239ac_exeext=$EXEEXT
d0ac1c44
SM
3240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241/* end confdefs.h. */
3242#include <stdio.h>
3243int
3244main ()
3245{
3246FILE *f = fopen ("conftest.out", "w");
3247 return ferror (f) || fclose (f) != 0;
3248
3249 ;
3250 return 0;
3251}
3252_ACEOF
3253ac_clean_files="$ac_clean_files conftest.out"
3254# Check that the compiler produces executables we can run. If not, either
3255# the compiler is broken, or we cross compile.
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3257$as_echo_n "checking whether we are cross compiling... " >&6; }
3258if test "$cross_compiling" != yes; then
3259 { { ac_try="$ac_link"
3260case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263esac
3264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265$as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_link") 2>&5
3267 ac_status=$?
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }
3270 if { ac_try='./conftest$ac_cv_exeext'
3271 { { case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274esac
3275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276$as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_try") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; }; then
3281 cross_compiling=no
3282 else
3283 if test "$cross_compiling" = maybe; then
3284 cross_compiling=yes
3285 else
3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288as_fn_error $? "cannot run C compiled programs.
3289If you meant to cross compile, use \`--host'.
3290See \`config.log' for more details" "$LINENO" 5; }
3291 fi
3292 fi
3293fi
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3295$as_echo "$cross_compiling" >&6; }
3296
3297rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3298ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3300$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 3301if ${ac_cv_objext+:} false; then :
81ecdfbb 3302 $as_echo_n "(cached) " >&6
b7026657 3303else
81ecdfbb 3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3305/* end confdefs.h. */
3306
3307int
3308main ()
3309{
3310
3311 ;
3312 return 0;
3313}
3314_ACEOF
3315rm -f conftest.o conftest.obj
81ecdfbb
RW
3316if { { ac_try="$ac_compile"
3317case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320esac
3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322$as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_compile") 2>&5
b7026657 3324 ac_status=$?
81ecdfbb
RW
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
3327 for ac_file in conftest.o conftest.obj conftest.*; do
3328 test -f "$ac_file" || continue;
b7026657 3329 case $ac_file in
81ecdfbb 3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b7026657
AC
3331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3332 break;;
3333 esac
3334done
3335else
81ecdfbb 3336 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
81ecdfbb
RW
3339{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3341as_fn_error $? "cannot compute suffix of object files: cannot compile
3342See \`config.log' for more details" "$LINENO" 5; }
c906108c 3343fi
b7026657
AC
3344rm -f conftest.$ac_cv_objext conftest.$ac_ext
3345fi
81ecdfbb
RW
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3347$as_echo "$ac_cv_objext" >&6; }
b7026657
AC
3348OBJEXT=$ac_cv_objext
3349ac_objext=$OBJEXT
81ecdfbb
RW
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3351$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3352if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3353 $as_echo_n "(cached) " >&6
b7026657 3354else
81ecdfbb 3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3356/* end confdefs.h. */
3357
3358int
3359main ()
3360{
3361#ifndef __GNUC__
3362 choke me
3363#endif
c906108c 3364
b7026657
AC
3365 ;
3366 return 0;
3367}
3368_ACEOF
81ecdfbb 3369if ac_fn_c_try_compile "$LINENO"; then :
b7026657 3370 ac_compiler_gnu=yes
c906108c 3371else
81ecdfbb 3372 ac_compiler_gnu=no
c906108c 3373fi
81ecdfbb 3374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3375ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c 3376
b7026657 3377fi
81ecdfbb
RW
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3379$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3380if test $ac_compiler_gnu = yes; then
3381 GCC=yes
3382else
3383 GCC=
3384fi
b7026657
AC
3385ac_test_CFLAGS=${CFLAGS+set}
3386ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3388$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3389if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb 3390 $as_echo_n "(cached) " >&6
c906108c 3391else
81ecdfbb
RW
3392 ac_save_c_werror_flag=$ac_c_werror_flag
3393 ac_c_werror_flag=yes
3394 ac_cv_prog_cc_g=no
3395 CFLAGS="-g"
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3397/* end confdefs.h. */
3398
3399int
3400main ()
3401{
3402
3403 ;
3404 return 0;
3405}
3406_ACEOF
81ecdfbb 3407if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
3408 ac_cv_prog_cc_g=yes
3409else
81ecdfbb
RW
3410 CFLAGS=""
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412/* end confdefs.h. */
3413
3414int
3415main ()
3416{
3417
3418 ;
3419 return 0;
3420}
3421_ACEOF
3422if ac_fn_c_try_compile "$LINENO"; then :
3423
3424else
3425 ac_c_werror_flag=$ac_save_c_werror_flag
3426 CFLAGS="-g"
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428/* end confdefs.h. */
3429
3430int
3431main ()
3432{
c906108c 3433
81ecdfbb
RW
3434 ;
3435 return 0;
3436}
3437_ACEOF
3438if ac_fn_c_try_compile "$LINENO"; then :
3439 ac_cv_prog_cc_g=yes
3440fi
3441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3442fi
81ecdfbb 3443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3444fi
81ecdfbb
RW
3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_c_werror_flag=$ac_save_c_werror_flag
3447fi
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3449$as_echo "$ac_cv_prog_cc_g" >&6; }
c906108c 3450if test "$ac_test_CFLAGS" = set; then
b7026657 3451 CFLAGS=$ac_save_CFLAGS
c906108c
SS
3452elif test $ac_cv_prog_cc_g = yes; then
3453 if test "$GCC" = yes; then
3454 CFLAGS="-g -O2"
3455 else
3456 CFLAGS="-g"
3457 fi
3458else
3459 if test "$GCC" = yes; then
3460 CFLAGS="-O2"
3461 else
3462 CFLAGS=
3463 fi
3464fi
81ecdfbb
RW
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3466$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3467if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3468 $as_echo_n "(cached) " >&6
b7026657 3469else
81ecdfbb 3470 ac_cv_prog_cc_c89=no
b7026657 3471ac_save_CC=$CC
81ecdfbb 3472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3473/* end confdefs.h. */
3474#include <stdarg.h>
3475#include <stdio.h>
d0ac1c44 3476struct stat;
b7026657
AC
3477/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3478struct buf { int x; };
3479FILE * (*rcsopen) (struct buf *, struct stat *, int);
3480static char *e (p, i)
3481 char **p;
3482 int i;
3483{
3484 return p[i];
3485}
3486static char *f (char * (*g) (char **, int), char **p, ...)
3487{
3488 char *s;
3489 va_list v;
3490 va_start (v,p);
3491 s = g (p, va_arg (v,int));
3492 va_end (v);
3493 return s;
3494}
3495
3496/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3497 function prototypes and stuff, but not '\xHH' hex character constants.
3498 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3499 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
3500 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3501 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3502 that's true only with -std. */
b7026657
AC
3503int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3504
81ecdfbb
RW
3505/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3506 inside strings and character constants. */
3507#define FOO(x) 'x'
3508int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3509
b7026657
AC
3510int test (int i, double x);
3511struct s1 {int (*f) (int a);};
3512struct s2 {int (*f) (double a);};
3513int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3514int argc;
3515char **argv;
3516int
3517main ()
3518{
3519return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3520 ;
3521 return 0;
3522}
3523_ACEOF
81ecdfbb
RW
3524for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3525 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
3526do
3527 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529 ac_cv_prog_cc_c89=$ac_arg
b7026657 3530fi
81ecdfbb
RW
3531rm -f core conftest.err conftest.$ac_objext
3532 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 3533done
81ecdfbb 3534rm -f conftest.$ac_ext
b7026657
AC
3535CC=$ac_save_CC
3536
3537fi
81ecdfbb
RW
3538# AC_CACHE_VAL
3539case "x$ac_cv_prog_cc_c89" in
3540 x)
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3542$as_echo "none needed" >&6; } ;;
3543 xno)
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3545$as_echo "unsupported" >&6; } ;;
b7026657 3546 *)
81ecdfbb
RW
3547 CC="$CC $ac_cv_prog_cc_c89"
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3549$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b7026657 3550esac
81ecdfbb 3551if test "x$ac_cv_prog_cc_c89" != xno; then :
b7026657 3552
fdd6fa61
AG
3553fi
3554
fdd6fa61
AG
3555ac_ext=c
3556ac_cpp='$CPP $CPPFLAGS'
3557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560
c2783492
MF
3561ac_ext=c
3562ac_cpp='$CPP $CPPFLAGS'
3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3567$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3568if ${am_cv_prog_cc_c_o+:} false; then :
3569 $as_echo_n "(cached) " >&6
3570else
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h. */
3573
3574int
3575main ()
3576{
3577
3578 ;
3579 return 0;
3580}
3581_ACEOF
3582 # Make sure it works both with $CC and with simple cc.
3583 # Following AC_PROG_CC_C_O, we do the test twice because some
3584 # compilers refuse to overwrite an existing .o file with -o,
3585 # though they will create one.
3586 am_cv_prog_cc_c_o=yes
3587 for am_i in 1 2; do
3588 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3589 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } \
3593 && test -f conftest2.$ac_objext; then
3594 : OK
3595 else
3596 am_cv_prog_cc_c_o=no
3597 break
3598 fi
3599 done
3600 rm -f core conftest*
3601 unset am_i
3602fi
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3604$as_echo "$am_cv_prog_cc_c_o" >&6; }
3605if test "$am_cv_prog_cc_c_o" != yes; then
3606 # Losing compiler, so override with the script.
3607 # FIXME: It is wrong to rewrite CC.
3608 # But if we don't then we get into trouble of one sort or another.
3609 # A longer-term fix would be to have automake use am__CC in this case,
3610 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3611 CC="$am_aux_dir/compile $CC"
3612fi
3613ac_ext=c
3614ac_cpp='$CPP $CPPFLAGS'
3615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619
3620
3621ac_ext=c
3622ac_cpp='$CPP $CPPFLAGS'
3623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3627$as_echo_n "checking how to run the C preprocessor... " >&6; }
3628# On Suns, sometimes $CPP names a directory.
3629if test -n "$CPP" && test -d "$CPP"; then
3630 CPP=
3631fi
3632if test -z "$CPP"; then
3633 if ${ac_cv_prog_CPP+:} false; then :
3634 $as_echo_n "(cached) " >&6
3635else
3636 # Double quotes because CPP needs to be expanded
3637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3638 do
3639 ac_preproc_ok=false
3640for ac_c_preproc_warn_flag in '' yes
3641do
3642 # Use a header file that comes with gcc, so configuring glibc
3643 # with a fresh cross-compiler works.
3644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3645 # <limits.h> exists even on freestanding compilers.
3646 # On the NeXT, cc -E runs the code through the compiler's parser,
3647 # not just through cpp. "Syntax error" is here to catch this case.
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h. */
3650#ifdef __STDC__
3651# include <limits.h>
3652#else
3653# include <assert.h>
3654#endif
3655 Syntax error
3656_ACEOF
3657if ac_fn_c_try_cpp "$LINENO"; then :
3658
3659else
3660 # Broken: fails on valid input.
3661continue
3662fi
3663rm -f conftest.err conftest.i conftest.$ac_ext
3664
3665 # OK, works on sane cases. Now check whether nonexistent headers
3666 # can be detected and how.
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668/* end confdefs.h. */
3669#include <ac_nonexistent.h>
3670_ACEOF
3671if ac_fn_c_try_cpp "$LINENO"; then :
3672 # Broken: success on invalid input.
3673continue
3674else
3675 # Passes both tests.
3676ac_preproc_ok=:
3677break
3678fi
3679rm -f conftest.err conftest.i conftest.$ac_ext
3680
3681done
3682# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3683rm -f conftest.i conftest.err conftest.$ac_ext
3684if $ac_preproc_ok; then :
3685 break
3686fi
3687
3688 done
3689 ac_cv_prog_CPP=$CPP
3690
3691fi
3692 CPP=$ac_cv_prog_CPP
3693else
3694 ac_cv_prog_CPP=$CPP
3695fi
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3697$as_echo "$CPP" >&6; }
3698ac_preproc_ok=false
3699for ac_c_preproc_warn_flag in '' yes
3700do
3701 # Use a header file that comes with gcc, so configuring glibc
3702 # with a fresh cross-compiler works.
3703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3704 # <limits.h> exists even on freestanding compilers.
3705 # On the NeXT, cc -E runs the code through the compiler's parser,
3706 # not just through cpp. "Syntax error" is here to catch this case.
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708/* end confdefs.h. */
3709#ifdef __STDC__
3710# include <limits.h>
3711#else
3712# include <assert.h>
3713#endif
3714 Syntax error
3715_ACEOF
3716if ac_fn_c_try_cpp "$LINENO"; then :
3717
3718else
3719 # Broken: fails on valid input.
3720continue
3721fi
3722rm -f conftest.err conftest.i conftest.$ac_ext
3723
3724 # OK, works on sane cases. Now check whether nonexistent headers
3725 # can be detected and how.
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727/* end confdefs.h. */
3728#include <ac_nonexistent.h>
3729_ACEOF
3730if ac_fn_c_try_cpp "$LINENO"; then :
3731 # Broken: success on invalid input.
3732continue
3733else
3734 # Passes both tests.
3735ac_preproc_ok=:
3736break
3737fi
3738rm -f conftest.err conftest.i conftest.$ac_ext
3739
3740done
3741# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3742rm -f conftest.i conftest.err conftest.$ac_ext
3743if $ac_preproc_ok; then :
3744
3745else
3746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3749See \`config.log' for more details" "$LINENO" 5; }
3750fi
3751
3752ac_ext=c
3753ac_cpp='$CPP $CPPFLAGS'
3754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3756ac_compiler_gnu=$ac_cv_c_compiler_gnu
3757
3758
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3760$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3761if ${ac_cv_path_GREP+:} false; then :
3762 $as_echo_n "(cached) " >&6
3763else
3764 if test -z "$GREP"; then
3765 ac_path_GREP_found=false
3766 # Loop through the user's path and test for each of PROGNAME-LIST
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_prog in grep ggrep; do
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3775 as_fn_executable_p "$ac_path_GREP" || continue
3776# Check for GNU ac_path_GREP and select it if it is found.
3777 # Check for GNU $ac_path_GREP
3778case `"$ac_path_GREP" --version 2>&1` in
3779*GNU*)
3780 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3781*)
3782 ac_count=0
3783 $as_echo_n 0123456789 >"conftest.in"
3784 while :
3785 do
3786 cat "conftest.in" "conftest.in" >"conftest.tmp"
3787 mv "conftest.tmp" "conftest.in"
3788 cp "conftest.in" "conftest.nl"
3789 $as_echo 'GREP' >> "conftest.nl"
3790 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3792 as_fn_arith $ac_count + 1 && ac_count=$as_val
3793 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3794 # Best one so far, save it but keep looking for a better one
3795 ac_cv_path_GREP="$ac_path_GREP"
3796 ac_path_GREP_max=$ac_count
3797 fi
3798 # 10*(2^10) chars as input seems more than enough
3799 test $ac_count -gt 10 && break
3800 done
3801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3802esac
3803
3804 $ac_path_GREP_found && break 3
3805 done
3806 done
3807 done
3808IFS=$as_save_IFS
3809 if test -z "$ac_cv_path_GREP"; then
3810 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3811 fi
3812else
3813 ac_cv_path_GREP=$GREP
3814fi
3815
3816fi
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3818$as_echo "$ac_cv_path_GREP" >&6; }
3819 GREP="$ac_cv_path_GREP"
3820
3821
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3823$as_echo_n "checking for egrep... " >&6; }
3824if ${ac_cv_path_EGREP+:} false; then :
3825 $as_echo_n "(cached) " >&6
3826else
3827 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3828 then ac_cv_path_EGREP="$GREP -E"
3829 else
3830 if test -z "$EGREP"; then
3831 ac_path_EGREP_found=false
3832 # Loop through the user's path and test for each of PROGNAME-LIST
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3835do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_prog in egrep; do
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3841 as_fn_executable_p "$ac_path_EGREP" || continue
3842# Check for GNU ac_path_EGREP and select it if it is found.
3843 # Check for GNU $ac_path_EGREP
3844case `"$ac_path_EGREP" --version 2>&1` in
3845*GNU*)
3846 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3847*)
3848 ac_count=0
3849 $as_echo_n 0123456789 >"conftest.in"
3850 while :
3851 do
3852 cat "conftest.in" "conftest.in" >"conftest.tmp"
3853 mv "conftest.tmp" "conftest.in"
3854 cp "conftest.in" "conftest.nl"
3855 $as_echo 'EGREP' >> "conftest.nl"
3856 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3858 as_fn_arith $ac_count + 1 && ac_count=$as_val
3859 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3860 # Best one so far, save it but keep looking for a better one
3861 ac_cv_path_EGREP="$ac_path_EGREP"
3862 ac_path_EGREP_max=$ac_count
3863 fi
3864 # 10*(2^10) chars as input seems more than enough
3865 test $ac_count -gt 10 && break
3866 done
3867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3868esac
3869
3870 $ac_path_EGREP_found && break 3
3871 done
3872 done
3873 done
3874IFS=$as_save_IFS
3875 if test -z "$ac_cv_path_EGREP"; then
3876 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3877 fi
3878else
3879 ac_cv_path_EGREP=$EGREP
3880fi
3881
3882 fi
3883fi
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3885$as_echo "$ac_cv_path_EGREP" >&6; }
3886 EGREP="$ac_cv_path_EGREP"
3887
3888
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3890$as_echo_n "checking for ANSI C header files... " >&6; }
3891if ${ac_cv_header_stdc+:} false; then :
6bddc3e8
MF
3892 $as_echo_n "(cached) " >&6
3893else
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h. */
c2783492
MF
3896#include <stdlib.h>
3897#include <stdarg.h>
3898#include <string.h>
3899#include <float.h>
6bddc3e8
MF
3900
3901int
3902main ()
3903{
3904
3905 ;
3906 return 0;
3907}
3908_ACEOF
c2783492
MF
3909if ac_fn_c_try_compile "$LINENO"; then :
3910 ac_cv_header_stdc=yes
3911else
3912 ac_cv_header_stdc=no
fdd6fa61 3913fi
c2783492 3914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81ecdfbb 3915
c2783492
MF
3916if test $ac_cv_header_stdc = yes; then
3917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919/* end confdefs.h. */
3920#include <string.h>
6bddc3e8 3921
c2783492
MF
3922_ACEOF
3923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924 $EGREP "memchr" >/dev/null 2>&1; then :
6bddc3e8 3925
c2783492
MF
3926else
3927 ac_cv_header_stdc=no
3928fi
3929rm -f conftest*
6bddc3e8 3930
6bddc3e8 3931fi
81ecdfbb 3932
c2783492
MF
3933if test $ac_cv_header_stdc = yes; then
3934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936/* end confdefs.h. */
3937#include <stdlib.h>
fdd6fa61 3938
c2783492
MF
3939_ACEOF
3940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3941 $EGREP "free" >/dev/null 2>&1; then :
6bddc3e8 3942
c2783492
MF
3943else
3944 ac_cv_header_stdc=no
6bddc3e8 3945fi
c2783492 3946rm -f conftest*
6bddc3e8 3947
6bddc3e8 3948fi
c2783492
MF
3949
3950if test $ac_cv_header_stdc = yes; then
3951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3952 if test "$cross_compiling" = yes; then :
3953 :
6bddc3e8 3954else
c2783492
MF
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956/* end confdefs.h. */
3957#include <ctype.h>
3958#include <stdlib.h>
3959#if ((' ' & 0x0FF) == 0x020)
3960# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3961# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3962#else
3963# define ISLOWER(c) \
3964 (('a' <= (c) && (c) <= 'i') \
3965 || ('j' <= (c) && (c) <= 'r') \
3966 || ('s' <= (c) && (c) <= 'z'))
3967# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3968#endif
3969
3970#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3971int
3972main ()
3973{
3974 int i;
3975 for (i = 0; i < 256; i++)
3976 if (XOR (islower (i), ISLOWER (i))
3977 || toupper (i) != TOUPPER (i))
3978 return 2;
3979 return 0;
3980}
3981_ACEOF
3982if ac_fn_c_try_run "$LINENO"; then :
3983
3984else
3985 ac_cv_header_stdc=no
3986fi
3987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3988 conftest.$ac_objext conftest.beam conftest.$ac_ext
6bddc3e8
MF
3989fi
3990
c2783492
MF
3991fi
3992fi
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3994$as_echo "$ac_cv_header_stdc" >&6; }
3995if test $ac_cv_header_stdc = yes; then
6bddc3e8 3996
c2783492 3997$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6bddc3e8 3998
c2783492 3999fi
6bddc3e8 4000
c2783492
MF
4001# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4002for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4003 inttypes.h stdint.h unistd.h
4004do :
4005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4006ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4007"
4008if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4009 cat >>confdefs.h <<_ACEOF
4010#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4011_ACEOF
4012
4013fi
4014
4015done
4016
4017
4018
4019 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4020if test "x$ac_cv_header_minix_config_h" = xyes; then :
4021 MINIX=yes
fdd6fa61 4022else
c2783492
MF
4023 MINIX=
4024fi
4025
4026
4027 if test "$MINIX" = yes; then
4028
4029$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4030
4031
4032$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4033
4034
4035$as_echo "#define _MINIX 1" >>confdefs.h
6bddc3e8 4036
6bddc3e8 4037 fi
6bddc3e8 4038
6bddc3e8 4039
c2783492
MF
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4041$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4042if ${ac_cv_safe_to_define___extensions__+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044else
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046/* end confdefs.h. */
c906108c 4047
c2783492
MF
4048# define __EXTENSIONS__ 1
4049 $ac_includes_default
4050int
4051main ()
4052{
4053
4054 ;
4055 return 0;
4056}
4057_ACEOF
4058if ac_fn_c_try_compile "$LINENO"; then :
4059 ac_cv_safe_to_define___extensions__=yes
6bddc3e8 4060else
c2783492
MF
4061 ac_cv_safe_to_define___extensions__=no
4062fi
4063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4064fi
c2783492
MF
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4066$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4067 test $ac_cv_safe_to_define___extensions__ = yes &&
4068 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6bddc3e8 4069
c2783492 4070 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
c906108c 4071
c2783492 4072 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
c906108c 4073
c2783492 4074 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
c906108c 4075
c2783492 4076 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
c906108c 4077
c2783492
MF
4078
4079test "$program_prefix" != NONE &&
4080 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4081# Use a double $ so make ignores it.
4082test "$program_suffix" != NONE &&
4083 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4084# Double any \ or $.
4085# By default was `s,x,x', remove it if useless.
4086ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4087program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4088
4089# Find a good install program. We prefer a C program (faster),
4090# so one script is as good as another. But avoid the broken or
4091# incompatible versions:
4092# SysV /etc/install, /usr/sbin/install
4093# SunOS /usr/etc/install
4094# IRIX /sbin/install
4095# AIX /bin/install
4096# AmigaOS /C/install, which installs bootblocks on floppy discs
4097# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4098# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4099# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4100# OS/2's system install, which has a completely different semantic
4101# ./install, which can be erroneously created by make from ./install.sh.
4102# Reject install programs that cannot install multiple files.
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4104$as_echo_n "checking for a BSD-compatible install... " >&6; }
4105if test -z "$INSTALL"; then
4106if ${ac_cv_path_install+:} false; then :
81ecdfbb 4107 $as_echo_n "(cached) " >&6
c906108c 4108else
c2783492 4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b7026657
AC
4110for as_dir in $PATH
4111do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
c2783492
MF
4114 # Account for people who put trailing slashes in PATH elements.
4115case $as_dir/ in #((
4116 ./ | .// | /[cC]/* | \
4117 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4118 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4119 /usr/ucb/* ) ;;
4120 *)
4121 # OSF1 and SCO ODT 3.0 have their own names for install.
4122 # Don't use installbsd from OSF since it installs stuff as root
4123 # by default.
4124 for ac_prog in ginstall scoinst install; do
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4127 if test $ac_prog = install &&
4128 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4129 # AIX install. It has an incompatible calling convention.
4130 :
4131 elif test $ac_prog = install &&
4132 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4133 # program-specific install script used by HP pwplus--don't use.
4134 :
4135 else
4136 rm -rf conftest.one conftest.two conftest.dir
4137 echo one > conftest.one
4138 echo two > conftest.two
4139 mkdir conftest.dir
4140 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4141 test -s conftest.one && test -s conftest.two &&
4142 test -s conftest.dir/conftest.one &&
4143 test -s conftest.dir/conftest.two
4144 then
4145 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4146 break 3
4147 fi
4148 fi
4149 fi
4150 done
4151 done
4152 ;;
4153esac
4154
81ecdfbb
RW
4155 done
4156IFS=$as_save_IFS
b7026657 4157
c2783492
MF
4158rm -rf conftest.one conftest.two conftest.dir
4159
c906108c 4160fi
c2783492
MF
4161 if test "${ac_cv_path_install+set}" = set; then
4162 INSTALL=$ac_cv_path_install
4163 else
4164 # As a last resort, use the slow shell script. Don't cache a
4165 # value for INSTALL within a source directory, because that will
4166 # break other packages using the cache if that directory is
4167 # removed, or if the value is a relative name.
4168 INSTALL=$ac_install_sh
4169 fi
c906108c 4170fi
c2783492
MF
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4172$as_echo "$INSTALL" >&6; }
b7026657 4173
c2783492
MF
4174# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4175# It thinks the first close brace ends the variable substitution.
4176test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
81ecdfbb 4177
c2783492
MF
4178test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4179
4180test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4181
4182
4183
4184
4185
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4187$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4188if ${ac_cv_c_bigendian+:} false; then :
81ecdfbb 4189 $as_echo_n "(cached) " >&6
b7026657 4190else
c2783492
MF
4191 ac_cv_c_bigendian=unknown
4192 # See if we're dealing with a universal compiler.
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h. */
4195#ifndef __APPLE_CC__
4196 not a universal capable compiler
4197 #endif
4198 typedef int dummy;
c906108c 4199
c2783492
MF
4200_ACEOF
4201if ac_fn_c_try_compile "$LINENO"; then :
4202
4203 # Check for potential -arch flags. It is not universal unless
4204 # there are at least two -arch flags with different values.
4205 ac_arch=
4206 ac_prev=
4207 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4208 if test -n "$ac_prev"; then
4209 case $ac_word in
4210 i?86 | x86_64 | ppc | ppc64)
4211 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4212 ac_arch=$ac_word
4213 else
4214 ac_cv_c_bigendian=universal
4215 break
4216 fi
4217 ;;
4218 esac
4219 ac_prev=
4220 elif test "x$ac_word" = "x-arch"; then
4221 ac_prev=arch
4222 fi
4223 done
b7026657 4224fi
c2783492
MF
4225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 if test $ac_cv_c_bigendian = unknown; then
4227 # See if sys/param.h defines the BYTE_ORDER macro.
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229/* end confdefs.h. */
4230#include <sys/types.h>
4231 #include <sys/param.h>
c906108c 4232
c2783492
MF
4233int
4234main ()
4235{
4236#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4237 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4238 && LITTLE_ENDIAN)
4239 bogus endian macros
4240 #endif
4241
4242 ;
4243 return 0;
4244}
4245_ACEOF
4246if ac_fn_c_try_compile "$LINENO"; then :
4247 # It does; now see whether it defined to BIG_ENDIAN or not.
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249/* end confdefs.h. */
4250#include <sys/types.h>
4251 #include <sys/param.h>
4252
4253int
4254main ()
4255{
4256#if BYTE_ORDER != BIG_ENDIAN
4257 not big endian
4258 #endif
4259
4260 ;
4261 return 0;
4262}
4263_ACEOF
4264if ac_fn_c_try_compile "$LINENO"; then :
4265 ac_cv_c_bigendian=yes
b7026657 4266else
c2783492
MF
4267 ac_cv_c_bigendian=no
4268fi
4269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 4270fi
c2783492
MF
4271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272 fi
4273 if test $ac_cv_c_bigendian = unknown; then
4274 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276/* end confdefs.h. */
4277#include <limits.h>
c906108c 4278
c2783492
MF
4279int
4280main ()
4281{
4282#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4283 bogus endian macros
4284 #endif
4285
4286 ;
4287 return 0;
4288}
4289_ACEOF
4290if ac_fn_c_try_compile "$LINENO"; then :
4291 # It does; now see whether it defined to _BIG_ENDIAN or not.
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h. */
4294#include <limits.h>
4295
4296int
4297main ()
4298{
4299#ifndef _BIG_ENDIAN
4300 not big endian
4301 #endif
b7026657 4302
c2783492
MF
4303 ;
4304 return 0;
4305}
4306_ACEOF
4307if ac_fn_c_try_compile "$LINENO"; then :
4308 ac_cv_c_bigendian=yes
c906108c 4309else
c2783492 4310 ac_cv_c_bigendian=no
c906108c 4311fi
c2783492
MF
4312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313fi
4314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 fi
4316 if test $ac_cv_c_bigendian = unknown; then
4317 # Compile a test program.
4318 if test "$cross_compiling" = yes; then :
4319 # Try to guess by grepping values from an object file.
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321/* end confdefs.h. */
4322short int ascii_mm[] =
4323 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4324 short int ascii_ii[] =
4325 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4326 int use_ascii (int i) {
4327 return ascii_mm[i] + ascii_ii[i];
4328 }
4329 short int ebcdic_ii[] =
4330 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4331 short int ebcdic_mm[] =
4332 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4333 int use_ebcdic (int i) {
4334 return ebcdic_mm[i] + ebcdic_ii[i];
4335 }
4336 extern int foo;
c906108c 4337
c2783492
MF
4338int
4339main ()
4340{
4341return use_ascii (foo) == use_ebcdic (foo);
4342 ;
4343 return 0;
4344}
4345_ACEOF
4346if ac_fn_c_try_compile "$LINENO"; then :
4347 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4348 ac_cv_c_bigendian=yes
4349 fi
4350 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4351 if test "$ac_cv_c_bigendian" = unknown; then
4352 ac_cv_c_bigendian=no
4353 else
4354 # finding both strings is unlikely to happen, but who knows?
4355 ac_cv_c_bigendian=unknown
4356 fi
4357 fi
b7026657 4358fi
c2783492 4359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4360else
c2783492
MF
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362/* end confdefs.h. */
4363$ac_includes_default
4364int
4365main ()
4366{
4367
4368 /* Are we little or big endian? From Harbison&Steele. */
4369 union
4370 {
4371 long int l;
4372 char c[sizeof (long int)];
4373 } u;
4374 u.l = 1;
4375 return u.c[sizeof (long int) - 1] == 1;
b7026657 4376
c2783492
MF
4377 ;
4378 return 0;
4379}
4380_ACEOF
4381if ac_fn_c_try_run "$LINENO"; then :
4382 ac_cv_c_bigendian=no
4383else
4384 ac_cv_c_bigendian=yes
c906108c 4385fi
c2783492
MF
4386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4387 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 4388fi
c2783492
MF
4389
4390 fi
c906108c 4391fi
c2783492
MF
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4393$as_echo "$ac_cv_c_bigendian" >&6; }
4394 case $ac_cv_c_bigendian in #(
4395 yes)
4396 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4397;; #(
4398 no)
4399 ;; #(
4400 universal)
c906108c 4401
c2783492
MF
4402$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4403
4404 ;; #(
4405 *)
4406 as_fn_error $? "unknown endianness
4407 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4408 esac
4409
4410
4411
4412
a979f2a0
MF
4413if test -n "$ac_tool_prefix"; then
4414 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4415set dummy ${ac_tool_prefix}dtc; ac_word=$2
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417$as_echo_n "checking for $ac_word... " >&6; }
4418if ${ac_cv_prog_DTC+:} false; then :
4419 $as_echo_n "(cached) " >&6
4420else
4421 if test -n "$DTC"; then
4422 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4423else
4424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH
4426do
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4434 fi
4435done
4436 done
4437IFS=$as_save_IFS
4438
4439fi
4440fi
4441DTC=$ac_cv_prog_DTC
4442if test -n "$DTC"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4444$as_echo "$DTC" >&6; }
4445else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447$as_echo "no" >&6; }
4448fi
4449
4450
4451fi
4452if test -z "$ac_cv_prog_DTC"; then
4453 ac_ct_DTC=$DTC
4454 # Extract the first word of "dtc", so it can be a program name with args.
4455set dummy dtc; ac_word=$2
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457$as_echo_n "checking for $ac_word... " >&6; }
4458if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460else
4461 if test -n "$ac_ct_DTC"; then
4462 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4463else
4464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465for as_dir in $PATH
4466do
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471 ac_cv_prog_ac_ct_DTC="dtc"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4474 fi
4475done
4476 done
4477IFS=$as_save_IFS
4478
4479fi
4480fi
4481ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4482if test -n "$ac_ct_DTC"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4484$as_echo "$ac_ct_DTC" >&6; }
4485else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487$as_echo "no" >&6; }
4488fi
4489
4490 if test "x$ac_ct_DTC" = x; then
4491 DTC=""
4492 else
4493 case $cross_compiling:$ac_tool_warned in
4494yes:)
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4497ac_tool_warned=yes ;;
4498esac
4499 DTC=$ac_ct_DTC
4500 fi
4501else
4502 DTC="$ac_cv_prog_DTC"
4503fi
4504
4505
c2783492 4506if test "x$cross_compiling" = "xno"; then
aa0fca16 4507 : "${AR_FOR_BUILD:=\$(AR)}"
c2783492 4508 : "${CC_FOR_BUILD:=\$(CC)}"
aa0fca16 4509 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
c2783492
MF
4510 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4511 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
c906108c 4512else
aa0fca16 4513 : "${AR_FOR_BUILD:=ar}"
c2783492 4514 : "${CC_FOR_BUILD:=gcc}"
aa0fca16 4515 : "${RANLIB_FOR_BUILD:=ranlib}"
c2783492
MF
4516 : "${CFLAGS_FOR_BUILD:=-g -O}"
4517 : "${LDLFAGS_FOR_BUILD:=}"
c906108c
SS
4518fi
4519
4520
c906108c 4521
c2783492
MF
4522
4523
aa0fca16
MF
4524
4525
b7026657 4526if test -n "$ac_tool_prefix"; then
c2783492
MF
4527 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4528set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4531if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 4532 $as_echo_n "(cached) " >&6
c906108c 4533else
c2783492
MF
4534 if test -n "$AR"; then
4535 ac_cv_prog_AR="$AR" # Let the user override the test.
c906108c 4536else
b7026657
AC
4537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538for as_dir in $PATH
4539do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
81ecdfbb 4542 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4544 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4546 break 2
4547 fi
4548done
81ecdfbb
RW
4549 done
4550IFS=$as_save_IFS
b7026657
AC
4551
4552fi
4553fi
c2783492
MF
4554AR=$ac_cv_prog_AR
4555if test -n "$AR"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4557$as_echo "$AR" >&6; }
b7026657 4558else
81ecdfbb
RW
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560$as_echo "no" >&6; }
b7026657
AC
4561fi
4562
81ecdfbb 4563
b7026657 4564fi
c2783492
MF
4565if test -z "$ac_cv_prog_AR"; then
4566 ac_ct_AR=$AR
4567 # Extract the first word of "ar", so it can be a program name with args.
4568set dummy ar; ac_word=$2
81ecdfbb
RW
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4571if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 4572 $as_echo_n "(cached) " >&6
b7026657 4573else
c2783492
MF
4574 if test -n "$ac_ct_AR"; then
4575 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b7026657
AC
4576else
4577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH
4579do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
81ecdfbb 4582 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4584 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4586 break 2
4587 fi
4588done
81ecdfbb
RW
4589 done
4590IFS=$as_save_IFS
b7026657
AC
4591
4592fi
4593fi
c2783492
MF
4594ac_ct_AR=$ac_cv_prog_ac_ct_AR
4595if test -n "$ac_ct_AR"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4597$as_echo "$ac_ct_AR" >&6; }
b7026657 4598else
81ecdfbb
RW
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600$as_echo "no" >&6; }
c906108c 4601fi
b7026657 4602
c2783492
MF
4603 if test "x$ac_ct_AR" = x; then
4604 AR=""
81ecdfbb
RW
4605 else
4606 case $cross_compiling:$ac_tool_warned in
4607yes:)
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4610ac_tool_warned=yes ;;
4611esac
c2783492 4612 AR=$ac_ct_AR
c906108c 4613 fi
c906108c 4614else
c2783492 4615 AR="$ac_cv_prog_AR"
c906108c
SS
4616fi
4617
c2783492
MF
4618if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4620set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4623if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 4624 $as_echo_n "(cached) " >&6
c906108c 4625else
c2783492
MF
4626 if test -n "$RANLIB"; then
4627 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c906108c 4628else
b7026657
AC
4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
81ecdfbb 4634 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4636 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4638 break 2
4639 fi
4640done
81ecdfbb
RW
4641 done
4642IFS=$as_save_IFS
b7026657 4643
c906108c
SS
4644fi
4645fi
c2783492
MF
4646RANLIB=$ac_cv_prog_RANLIB
4647if test -n "$RANLIB"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4649$as_echo "$RANLIB" >&6; }
c906108c 4650else
81ecdfbb
RW
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652$as_echo "no" >&6; }
c906108c
SS
4653fi
4654
81ecdfbb 4655
b7026657 4656fi
c2783492
MF
4657if test -z "$ac_cv_prog_RANLIB"; then
4658 ac_ct_RANLIB=$RANLIB
4659 # Extract the first word of "ranlib", so it can be a program name with args.
4660set dummy ranlib; ac_word=$2
81ecdfbb
RW
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4663if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 4664 $as_echo_n "(cached) " >&6
c906108c 4665else
c2783492
MF
4666 if test -n "$ac_ct_RANLIB"; then
4667 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b7026657
AC
4668else
4669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670for as_dir in $PATH
4671do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
81ecdfbb 4674 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4676 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4678 break 2
4679 fi
4680done
81ecdfbb
RW
4681 done
4682IFS=$as_save_IFS
b7026657 4683
c906108c 4684fi
b7026657 4685fi
c2783492
MF
4686ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4687if test -n "$ac_ct_RANLIB"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4689$as_echo "$ac_ct_RANLIB" >&6; }
c906108c 4690else
81ecdfbb
RW
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692$as_echo "no" >&6; }
c906108c 4693fi
b7026657 4694
c2783492
MF
4695 if test "x$ac_ct_RANLIB" = x; then
4696 RANLIB=":"
81ecdfbb
RW
4697 else
4698 case $cross_compiling:$ac_tool_warned in
4699yes:)
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702ac_tool_warned=yes ;;
4703esac
c2783492 4704 RANLIB=$ac_ct_RANLIB
81ecdfbb 4705 fi
c2783492
MF
4706else
4707 RANLIB="$ac_cv_prog_RANLIB"
4708fi
4709
4710
4711# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
4712# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
4713# is C99. So handle it ourselves.
4714:
4715C_DIALECT=
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4717$as_echo_n "checking whether C11 is supported by default... " >&6; }
4718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719/* end confdefs.h. */
4720
4721#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4722# error "C11 support not found"
4723#endif
4724
4725_ACEOF
4726if ac_fn_c_try_compile "$LINENO"; then :
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4728$as_echo "yes" >&6; }
4729else
4730
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732$as_echo "no" >&6; }
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4734$as_echo_n "checking for -std=c11 support... " >&6; }
4735 ac_save_CC="$CC"
4736 CC="$CC -std=c11"
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738/* end confdefs.h. */
4739
4740#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4741# error "C11 support not found"
4742#endif
4743
4744_ACEOF
4745if ac_fn_c_try_compile "$LINENO"; then :
4746
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4748$as_echo "yes" >&6; }
4749 CC="$ac_save_CC"
4750 C_DIALECT="-std=c11"
4751
4752else
4753 as_fn_error $? "C11 is required" "$LINENO" 5
4754fi
4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756fi
4757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758
4759
4760
4761
c906108c 4762
b15c5d7a
MF
4763 for ac_header in $ac_header_list
4764do :
4765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4766ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4767"
4768if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4769 cat >>confdefs.h <<_ACEOF
4770#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4771_ACEOF
4772
b7026657
AC
4773fi
4774
b15c5d7a 4775done
b7026657 4776
b7026657 4777
c2783492 4778
c2783492 4779
c2783492 4780
c2783492 4781
c2783492 4782
b15c5d7a
MF
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
a48ff3ef
MF
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
b15c5d7a
MF
4817
4818
4819
4820
4821
4822
4823
4824
b15c5d7a
MF
4825
4826
4827
4828 for ac_func in $ac_func_list
4829do :
4830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4831ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4832if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4833 cat >>confdefs.h <<_ACEOF
4834#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4835_ACEOF
4836
4837fi
4838done
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
a48ff3ef
MF
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4963$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4964if ${ac_cv_struct_tm+:} false; then :
4965 $as_echo_n "(cached) " >&6
4966else
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968/* end confdefs.h. */
4969#include <sys/types.h>
4970#include <time.h>
4971
4972int
4973main ()
4974{
4975struct tm tm;
4976 int *p = &tm.tm_sec;
4977 return !p;
4978 ;
4979 return 0;
4980}
4981_ACEOF
4982if ac_fn_c_try_compile "$LINENO"; then :
4983 ac_cv_struct_tm=time.h
4984else
4985 ac_cv_struct_tm=sys/time.h
4986fi
4987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988fi
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4990$as_echo "$ac_cv_struct_tm" >&6; }
4991if test $ac_cv_struct_tm = sys/time.h; then
4992
4993$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4994
4995fi
4996
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4998$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4999if ${ac_cv_type_uid_t+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001else
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003/* end confdefs.h. */
5004#include <sys/types.h>
5005
5006_ACEOF
5007if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5008 $EGREP "uid_t" >/dev/null 2>&1; then :
5009 ac_cv_type_uid_t=yes
5010else
5011 ac_cv_type_uid_t=no
5012fi
5013rm -f conftest*
5014
5015fi
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5017$as_echo "$ac_cv_type_uid_t" >&6; }
5018if test $ac_cv_type_uid_t = no; then
5019
5020$as_echo "#define uid_t int" >>confdefs.h
5021
5022
5023$as_echo "#define gid_t int" >>confdefs.h
5024
5025fi
5026
b5689863
MF
5027case `pwd` in
5028 *\ * | *\ *)
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5030$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5031esac
a48ff3ef 5032
a48ff3ef 5033
a48ff3ef 5034
b5689863
MF
5035macro_version='2.2.7a'
5036macro_revision='1.3134'
a48ff3ef 5037
a48ff3ef 5038
a48ff3ef 5039
a48ff3ef 5040
a48ff3ef 5041
a48ff3ef 5042
a48ff3ef 5043
a48ff3ef 5044
a48ff3ef 5045
a48ff3ef
MF
5046
5047
5048
5049
b5689863 5050ltmain="$ac_aux_dir/ltmain.sh"
a48ff3ef 5051
b5689863
MF
5052# Backslashify metacharacters that are still active within
5053# double-quoted strings.
5054sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a48ff3ef 5055
b5689863
MF
5056# Same as above, but do not quote variable references.
5057double_quote_subst='s/\(["`\\]\)/\\\1/g'
a48ff3ef 5058
b5689863
MF
5059# Sed substitution to delay expansion of an escaped shell variable in a
5060# double_quote_subst'ed string.
5061delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5062
5063# Sed substitution to delay expansion of an escaped single quote.
5064delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5065
5066# Sed substitution to avoid accidental globbing in evaled expressions
5067no_glob_subst='s/\*/\\\*/g'
5068
5069ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5070ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5071ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
a48ff3ef 5072
b5689863
MF
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5074$as_echo_n "checking how to print strings... " >&6; }
5075# Test print first, because it will be a builtin if present.
5076if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5077 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5078 ECHO='print -r --'
5079elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5080 ECHO='printf %s\n'
5081else
5082 # Use this function as a fallback that always works.
5083 func_fallback_echo ()
5084 {
5085 eval 'cat <<_LTECHO_EOF
5086$1
5087_LTECHO_EOF'
5088 }
5089 ECHO='func_fallback_echo'
a48ff3ef
MF
5090fi
5091
b5689863
MF
5092# func_echo_all arg...
5093# Invoke $ECHO with all args, space-separated.
5094func_echo_all ()
5095{
5096 $ECHO ""
5097}
5098
5099case "$ECHO" in
5100 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5101$as_echo "printf" >&6; } ;;
5102 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5103$as_echo "print -r" >&6; } ;;
5104 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5105$as_echo "cat" >&6; } ;;
5106esac
5107
5108
a48ff3ef 5109
a48ff3ef 5110
a48ff3ef
MF
5111
5112
a48ff3ef 5113
a48ff3ef 5114
a48ff3ef
MF
5115
5116
a48ff3ef 5117
a48ff3ef
MF
5118
5119
a48ff3ef 5120
b5689863
MF
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5122$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5123if ${ac_cv_path_SED+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125else
5126 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5127 for ac_i in 1 2 3 4 5 6 7; do
5128 ac_script="$ac_script$as_nl$ac_script"
5129 done
5130 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5131 { ac_script=; unset ac_script;}
5132 if test -z "$SED"; then
5133 ac_path_SED_found=false
5134 # Loop through the user's path and test for each of PROGNAME-LIST
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136for as_dir in $PATH
5137do
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_prog in sed gsed; do
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5143 as_fn_executable_p "$ac_path_SED" || continue
5144# Check for GNU ac_path_SED and select it if it is found.
5145 # Check for GNU $ac_path_SED
5146case `"$ac_path_SED" --version 2>&1` in
5147*GNU*)
5148 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5149*)
5150 ac_count=0
5151 $as_echo_n 0123456789 >"conftest.in"
5152 while :
5153 do
5154 cat "conftest.in" "conftest.in" >"conftest.tmp"
5155 mv "conftest.tmp" "conftest.in"
5156 cp "conftest.in" "conftest.nl"
5157 $as_echo '' >> "conftest.nl"
5158 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5160 as_fn_arith $ac_count + 1 && ac_count=$as_val
5161 if test $ac_count -gt ${ac_path_SED_max-0}; then
5162 # Best one so far, save it but keep looking for a better one
5163 ac_cv_path_SED="$ac_path_SED"
5164 ac_path_SED_max=$ac_count
5165 fi
5166 # 10*(2^10) chars as input seems more than enough
5167 test $ac_count -gt 10 && break
5168 done
5169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5170esac
5171
5172 $ac_path_SED_found && break 3
5173 done
5174 done
5175 done
5176IFS=$as_save_IFS
5177 if test -z "$ac_cv_path_SED"; then
5178 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5179 fi
5180else
5181 ac_cv_path_SED=$SED
a48ff3ef
MF
5182fi
5183
b5689863
MF
5184fi
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5186$as_echo "$ac_cv_path_SED" >&6; }
5187 SED="$ac_cv_path_SED"
5188 rm -f conftest.sed
a48ff3ef 5189
b5689863
MF
5190test -z "$SED" && SED=sed
5191Xsed="$SED -e 1s/^X//"
a48ff3ef 5192
a48ff3ef 5193
a48ff3ef
MF
5194
5195
a48ff3ef 5196
a48ff3ef 5197
a48ff3ef 5198
a48ff3ef 5199
a48ff3ef 5200
b5689863
MF
5201
5202
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5204$as_echo_n "checking for fgrep... " >&6; }
5205if ${ac_cv_path_FGREP+:} false; then :
a48ff3ef
MF
5206 $as_echo_n "(cached) " >&6
5207else
b5689863
MF
5208 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5209 then ac_cv_path_FGREP="$GREP -F"
5210 else
5211 if test -z "$FGREP"; then
5212 ac_path_FGREP_found=false
5213 # Loop through the user's path and test for each of PROGNAME-LIST
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5216do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_prog in fgrep; do
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5222 as_fn_executable_p "$ac_path_FGREP" || continue
5223# Check for GNU ac_path_FGREP and select it if it is found.
5224 # Check for GNU $ac_path_FGREP
5225case `"$ac_path_FGREP" --version 2>&1` in
5226*GNU*)
5227 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5228*)
5229 ac_count=0
5230 $as_echo_n 0123456789 >"conftest.in"
5231 while :
5232 do
5233 cat "conftest.in" "conftest.in" >"conftest.tmp"
5234 mv "conftest.tmp" "conftest.in"
5235 cp "conftest.in" "conftest.nl"
5236 $as_echo 'FGREP' >> "conftest.nl"
5237 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5239 as_fn_arith $ac_count + 1 && ac_count=$as_val
5240 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5241 # Best one so far, save it but keep looking for a better one
5242 ac_cv_path_FGREP="$ac_path_FGREP"
5243 ac_path_FGREP_max=$ac_count
5244 fi
5245 # 10*(2^10) chars as input seems more than enough
5246 test $ac_count -gt 10 && break
5247 done
5248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5249esac
5250
5251 $ac_path_FGREP_found && break 3
5252 done
5253 done
5254 done
5255IFS=$as_save_IFS
5256 if test -z "$ac_cv_path_FGREP"; then
5257 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5258 fi
5259else
5260 ac_cv_path_FGREP=$FGREP
5261fi
5262
5263 fi
5264fi
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5266$as_echo "$ac_cv_path_FGREP" >&6; }
5267 FGREP="$ac_cv_path_FGREP"
5268
5269
5270test -z "$GREP" && GREP=grep
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290# Check whether --with-gnu-ld was given.
5291if test "${with_gnu_ld+set}" = set; then :
5292 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5293else
5294 with_gnu_ld=no
5295fi
5296
5297ac_prog=ld
5298if test "$GCC" = yes; then
5299 # Check if gcc -print-prog-name=ld gives a path.
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5301$as_echo_n "checking for ld used by $CC... " >&6; }
5302 case $host in
5303 *-*-mingw*)
5304 # gcc leaves a trailing carriage return which upsets mingw
5305 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5306 *)
5307 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5308 esac
5309 case $ac_prog in
5310 # Accept absolute paths.
5311 [\\/]* | ?:[\\/]*)
5312 re_direlt='/[^/][^/]*/\.\./'
5313 # Canonicalize the pathname of ld
5314 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5315 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5316 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5317 done
5318 test -z "$LD" && LD="$ac_prog"
5319 ;;
5320 "")
5321 # If it fails, then pretend we aren't using GCC.
5322 ac_prog=ld
5323 ;;
5324 *)
5325 # If it is relative, then search for the first ld in PATH.
5326 with_gnu_ld=unknown
5327 ;;
5328 esac
5329elif test "$with_gnu_ld" = yes; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5331$as_echo_n "checking for GNU ld... " >&6; }
5332else
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5334$as_echo_n "checking for non-GNU ld... " >&6; }
5335fi
5336if ${lt_cv_path_LD+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338else
5339 if test -z "$LD"; then
5340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5341 for ac_dir in $PATH; do
5342 IFS="$lt_save_ifs"
5343 test -z "$ac_dir" && ac_dir=.
5344 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5345 lt_cv_path_LD="$ac_dir/$ac_prog"
5346 # Check to see if the program is GNU ld. I'd rather use --version,
5347 # but apparently some variants of GNU ld only accept -v.
5348 # Break only if it was the GNU/non-GNU ld that we prefer.
5349 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5350 *GNU* | *'with BFD'*)
5351 test "$with_gnu_ld" != no && break
5352 ;;
5353 *)
5354 test "$with_gnu_ld" != yes && break
5355 ;;
5356 esac
5357 fi
5358 done
5359 IFS="$lt_save_ifs"
5360else
5361 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5362fi
5363fi
5364
5365LD="$lt_cv_path_LD"
5366if test -n "$LD"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5368$as_echo "$LD" >&6; }
5369else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371$as_echo "no" >&6; }
5372fi
5373test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5375$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5376if ${lt_cv_prog_gnu_ld+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378else
5379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5380case `$LD -v 2>&1 </dev/null` in
5381*GNU* | *'with BFD'*)
5382 lt_cv_prog_gnu_ld=yes
5383 ;;
5384*)
5385 lt_cv_prog_gnu_ld=no
5386 ;;
5387esac
5388fi
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5390$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5391with_gnu_ld=$lt_cv_prog_gnu_ld
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5402$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5403if ${lt_cv_path_NM+:} false; then :
5404 $as_echo_n "(cached) " >&6
5405else
5406 if test -n "$NM"; then
5407 # Let the user override the test.
5408 lt_cv_path_NM="$NM"
5409else
5410 lt_nm_to_check="${ac_tool_prefix}nm"
5411 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5412 lt_nm_to_check="$lt_nm_to_check nm"
5413 fi
5414 for lt_tmp_nm in $lt_nm_to_check; do
5415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5416 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5417 IFS="$lt_save_ifs"
5418 test -z "$ac_dir" && ac_dir=.
5419 tmp_nm="$ac_dir/$lt_tmp_nm"
5420 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5421 # Check to see if the nm accepts a BSD-compat flag.
5422 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5423 # nm: unknown option "B" ignored
5424 # Tru64's nm complains that /dev/null is an invalid object file
5425 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5426 */dev/null* | *'Invalid file or object type'*)
5427 lt_cv_path_NM="$tmp_nm -B"
5428 break
5429 ;;
5430 *)
5431 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5432 */dev/null*)
5433 lt_cv_path_NM="$tmp_nm -p"
5434 break
5435 ;;
5436 *)
5437 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5438 continue # so that we can try to find one that supports BSD flags
5439 ;;
5440 esac
5441 ;;
5442 esac
5443 fi
5444 done
5445 IFS="$lt_save_ifs"
5446 done
5447 : ${lt_cv_path_NM=no}
5448fi
5449fi
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5451$as_echo "$lt_cv_path_NM" >&6; }
5452if test "$lt_cv_path_NM" != "no"; then
5453 NM="$lt_cv_path_NM"
5454else
5455 # Didn't find any BSD compatible name lister, look for dumpbin.
5456 if test -n "$DUMPBIN"; then :
5457 # Let the user override the test.
5458 else
5459 if test -n "$ac_tool_prefix"; then
5460 for ac_prog in dumpbin "link -dump"
5461 do
5462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5463set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465$as_echo_n "checking for $ac_word... " >&6; }
5466if ${ac_cv_prog_DUMPBIN+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468else
5469 if test -n "$DUMPBIN"; then
5470 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5471else
5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 break 2
5482 fi
5483done
5484 done
5485IFS=$as_save_IFS
5486
5487fi
5488fi
5489DUMPBIN=$ac_cv_prog_DUMPBIN
5490if test -n "$DUMPBIN"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5492$as_echo "$DUMPBIN" >&6; }
5493else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495$as_echo "no" >&6; }
5496fi
5497
5498
5499 test -n "$DUMPBIN" && break
5500 done
5501fi
5502if test -z "$DUMPBIN"; then
5503 ac_ct_DUMPBIN=$DUMPBIN
5504 for ac_prog in dumpbin "link -dump"
5505do
5506 # Extract the first word of "$ac_prog", so it can be a program name with args.
5507set dummy $ac_prog; ac_word=$2
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509$as_echo_n "checking for $ac_word... " >&6; }
5510if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5511 $as_echo_n "(cached) " >&6
5512else
5513 if test -n "$ac_ct_DUMPBIN"; then
5514 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5515else
5516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517for as_dir in $PATH
5518do
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5526 fi
5527done
5528 done
5529IFS=$as_save_IFS
5530
5531fi
5532fi
5533ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5534if test -n "$ac_ct_DUMPBIN"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5536$as_echo "$ac_ct_DUMPBIN" >&6; }
5537else
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539$as_echo "no" >&6; }
5540fi
5541
5542
5543 test -n "$ac_ct_DUMPBIN" && break
5544done
5545
5546 if test "x$ac_ct_DUMPBIN" = x; then
5547 DUMPBIN=":"
5548 else
5549 case $cross_compiling:$ac_tool_warned in
5550yes:)
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5553ac_tool_warned=yes ;;
5554esac
5555 DUMPBIN=$ac_ct_DUMPBIN
5556 fi
5557fi
5558
5559 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5560 *COFF*)
5561 DUMPBIN="$DUMPBIN -symbols"
5562 ;;
5563 *)
5564 DUMPBIN=:
5565 ;;
5566 esac
5567 fi
5568
5569 if test "$DUMPBIN" != ":"; then
5570 NM="$DUMPBIN"
5571 fi
5572fi
5573test -z "$NM" && NM=nm
5574
5575
5576
5577
5578
5579
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5581$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5582if ${lt_cv_nm_interface+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584else
5585 lt_cv_nm_interface="BSD nm"
5586 echo "int some_variable = 0;" > conftest.$ac_ext
5587 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5588 (eval "$ac_compile" 2>conftest.err)
5589 cat conftest.err >&5
5590 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5591 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5592 cat conftest.err >&5
5593 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5594 cat conftest.out >&5
5595 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5596 lt_cv_nm_interface="MS dumpbin"
5597 fi
5598 rm -f conftest*
5599fi
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5601$as_echo "$lt_cv_nm_interface" >&6; }
5602
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5604$as_echo_n "checking whether ln -s works... " >&6; }
5605LN_S=$as_ln_s
5606if test "$LN_S" = "ln -s"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5608$as_echo "yes" >&6; }
5609else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5611$as_echo "no, using $LN_S" >&6; }
5612fi
5613
5614# find the maximum length of command line arguments
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5616$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5617if ${lt_cv_sys_max_cmd_len+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619else
5620 i=0
5621 teststring="ABCD"
5622
5623 case $build_os in
5624 msdosdjgpp*)
5625 # On DJGPP, this test can blow up pretty badly due to problems in libc
5626 # (any single argument exceeding 2000 bytes causes a buffer overrun
5627 # during glob expansion). Even if it were fixed, the result of this
5628 # check would be larger than it should be.
5629 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5630 ;;
5631
5632 gnu*)
5633 # Under GNU Hurd, this test is not required because there is
5634 # no limit to the length of command line arguments.
5635 # Libtool will interpret -1 as no limit whatsoever
5636 lt_cv_sys_max_cmd_len=-1;
5637 ;;
5638
5639 cygwin* | mingw* | cegcc*)
5640 # On Win9x/ME, this test blows up -- it succeeds, but takes
5641 # about 5 minutes as the teststring grows exponentially.
5642 # Worse, since 9x/ME are not pre-emptively multitasking,
5643 # you end up with a "frozen" computer, even though with patience
5644 # the test eventually succeeds (with a max line length of 256k).
5645 # Instead, let's just punt: use the minimum linelength reported by
5646 # all of the supported platforms: 8192 (on NT/2K/XP).
5647 lt_cv_sys_max_cmd_len=8192;
5648 ;;
5649
5650 mint*)
5651 # On MiNT this can take a long time and run out of memory.
5652 lt_cv_sys_max_cmd_len=8192;
5653 ;;
5654
5655 amigaos*)
5656 # On AmigaOS with pdksh, this test takes hours, literally.
5657 # So we just punt and use a minimum line length of 8192.
5658 lt_cv_sys_max_cmd_len=8192;
5659 ;;
5660
5661 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5662 # This has been around since 386BSD, at least. Likely further.
5663 if test -x /sbin/sysctl; then
5664 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5665 elif test -x /usr/sbin/sysctl; then
5666 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5667 else
5668 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5669 fi
5670 # And add a safety zone
5671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5673 ;;
5674
5675 interix*)
5676 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5677 lt_cv_sys_max_cmd_len=196608
5678 ;;
5679
5680 osf*)
5681 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5682 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5683 # nice to cause kernel panics so lets avoid the loop below.
5684 # First set a reasonable default.
5685 lt_cv_sys_max_cmd_len=16384
5686 #
5687 if test -x /sbin/sysconfig; then
5688 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5689 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5690 esac
5691 fi
5692 ;;
5693 sco3.2v5*)
5694 lt_cv_sys_max_cmd_len=102400
5695 ;;
5696 sysv5* | sco5v6* | sysv4.2uw2*)
5697 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5698 if test -n "$kargmax"; then
5699 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5700 else
5701 lt_cv_sys_max_cmd_len=32768
5702 fi
5703 ;;
5704 *)
5705 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5706 if test -n "$lt_cv_sys_max_cmd_len"; then
5707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5708 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5709 else
5710 # Make teststring a little bigger before we do anything with it.
5711 # a 1K string should be a reasonable start.
5712 for i in 1 2 3 4 5 6 7 8 ; do
5713 teststring=$teststring$teststring
5714 done
5715 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5716 # If test is not a shell built-in, we'll probably end up computing a
5717 # maximum length that is only half of the actual maximum length, but
5718 # we can't tell.
5719 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5720 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5721 test $i != 17 # 1/2 MB should be enough
5722 do
5723 i=`expr $i + 1`
5724 teststring=$teststring$teststring
5725 done
5726 # Only check the string length outside the loop.
5727 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5728 teststring=
5729 # Add a significant safety factor because C++ compilers can tack on
5730 # massive amounts of additional arguments before passing them to the
5731 # linker. It appears as though 1/2 is a usable value.
5732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5733 fi
5734 ;;
5735 esac
5736
5737fi
5738
5739if test -n $lt_cv_sys_max_cmd_len ; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5741$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5742else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5744$as_echo "none" >&6; }
5745fi
5746max_cmd_len=$lt_cv_sys_max_cmd_len
5747
5748
5749
5750
5751
5752
5753: ${CP="cp -f"}
5754: ${MV="mv -f"}
5755: ${RM="rm -f"}
5756
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5758$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5759# Try some XSI features
5760xsi_shell=no
5761( _lt_dummy="a/b/c"
5762 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5763 = c,a/b,, \
5764 && eval 'test $(( 1 + 1 )) -eq 2 \
5765 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5766 && xsi_shell=yes
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5768$as_echo "$xsi_shell" >&6; }
5769
5770
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5772$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5773lt_shell_append=no
5774( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5775 >/dev/null 2>&1 \
5776 && lt_shell_append=yes
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5778$as_echo "$lt_shell_append" >&6; }
5779
5780
5781if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5782 lt_unset=unset
5783else
5784 lt_unset=false
5785fi
5786
5787
5788
5789
5790
5791# test EBCDIC or ASCII
5792case `echo X|tr X '\101'` in
5793 A) # ASCII based system
5794 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5795 lt_SP2NL='tr \040 \012'
5796 lt_NL2SP='tr \015\012 \040\040'
5797 ;;
5798 *) # EBCDIC based system
5799 lt_SP2NL='tr \100 \n'
5800 lt_NL2SP='tr \r\n \100\100'
5801 ;;
5802esac
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5813$as_echo_n "checking for $LD option to reload object files... " >&6; }
5814if ${lt_cv_ld_reload_flag+:} false; then :
5815 $as_echo_n "(cached) " >&6
5816else
5817 lt_cv_ld_reload_flag='-r'
5818fi
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5820$as_echo "$lt_cv_ld_reload_flag" >&6; }
5821reload_flag=$lt_cv_ld_reload_flag
5822case $reload_flag in
5823"" | " "*) ;;
5824*) reload_flag=" $reload_flag" ;;
5825esac
5826reload_cmds='$LD$reload_flag -o $output$reload_objs'
5827case $host_os in
5828 darwin*)
5829 if test "$GCC" = yes; then
5830 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5831 else
5832 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5833 fi
5834 ;;
5835esac
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845if test -n "$ac_tool_prefix"; then
5846 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5847set dummy ${ac_tool_prefix}objdump; ac_word=$2
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849$as_echo_n "checking for $ac_word... " >&6; }
5850if ${ac_cv_prog_OBJDUMP+:} false; then :
5851 $as_echo_n "(cached) " >&6
5852else
5853 if test -n "$OBJDUMP"; then
5854 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5855else
5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857for as_dir in $PATH
5858do
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5866 fi
5867done
5868 done
5869IFS=$as_save_IFS
5870
5871fi
5872fi
5873OBJDUMP=$ac_cv_prog_OBJDUMP
5874if test -n "$OBJDUMP"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5876$as_echo "$OBJDUMP" >&6; }
5877else
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879$as_echo "no" >&6; }
5880fi
5881
5882
5883fi
5884if test -z "$ac_cv_prog_OBJDUMP"; then
5885 ac_ct_OBJDUMP=$OBJDUMP
5886 # Extract the first word of "objdump", so it can be a program name with args.
5887set dummy objdump; ac_word=$2
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889$as_echo_n "checking for $ac_word... " >&6; }
5890if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5891 $as_echo_n "(cached) " >&6
5892else
5893 if test -n "$ac_ct_OBJDUMP"; then
5894 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5895else
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907done
5908 done
5909IFS=$as_save_IFS
5910
5911fi
5912fi
5913ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5914if test -n "$ac_ct_OBJDUMP"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5916$as_echo "$ac_ct_OBJDUMP" >&6; }
5917else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919$as_echo "no" >&6; }
5920fi
5921
5922 if test "x$ac_ct_OBJDUMP" = x; then
5923 OBJDUMP="false"
5924 else
5925 case $cross_compiling:$ac_tool_warned in
5926yes:)
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5929ac_tool_warned=yes ;;
5930esac
5931 OBJDUMP=$ac_ct_OBJDUMP
5932 fi
5933else
5934 OBJDUMP="$ac_cv_prog_OBJDUMP"
5935fi
5936
5937test -z "$OBJDUMP" && OBJDUMP=objdump
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5948$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5949if ${lt_cv_deplibs_check_method+:} false; then :
5950 $as_echo_n "(cached) " >&6
5951else
5952 lt_cv_file_magic_cmd='$MAGIC_CMD'
5953lt_cv_file_magic_test_file=
5954lt_cv_deplibs_check_method='unknown'
5955# Need to set the preceding variable on all platforms that support
5956# interlibrary dependencies.
5957# 'none' -- dependencies not supported.
5958# `unknown' -- same as none, but documents that we really don't know.
5959# 'pass_all' -- all dependencies passed with no checks.
5960# 'test_compile' -- check by making test program.
5961# 'file_magic [[regex]]' -- check by looking for files in library path
5962# which responds to the $file_magic_cmd with a given extended regex.
5963# If you have `file' or equivalent on your system and you're not sure
5964# whether `pass_all' will *always* work, you probably want this one.
5965
5966case $host_os in
5967aix[4-9]*)
5968 lt_cv_deplibs_check_method=pass_all
5969 ;;
5970
5971beos*)
5972 lt_cv_deplibs_check_method=pass_all
5973 ;;
5974
5975bsdi[45]*)
5976 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5977 lt_cv_file_magic_cmd='/usr/bin/file -L'
5978 lt_cv_file_magic_test_file=/shlib/libc.so
5979 ;;
5980
5981cygwin*)
5982 # func_win32_libid is a shell function defined in ltmain.sh
5983 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5984 lt_cv_file_magic_cmd='func_win32_libid'
5985 ;;
5986
5987mingw* | pw32*)
5988 # Base MSYS/MinGW do not provide the 'file' command needed by
5989 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5990 # unless we find 'file', for example because we are cross-compiling.
5991 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5992 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5994 lt_cv_file_magic_cmd='func_win32_libid'
5995 else
5996 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5997 lt_cv_file_magic_cmd='$OBJDUMP -f'
5998 fi
5999 ;;
6000
6001cegcc*)
6002 # use the weaker test based on 'objdump'. See mingw*.
6003 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6004 lt_cv_file_magic_cmd='$OBJDUMP -f'
6005 ;;
6006
6007darwin* | rhapsody*)
6008 lt_cv_deplibs_check_method=pass_all
6009 ;;
6010
6011freebsd* | dragonfly*)
6012 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6013 case $host_cpu in
6014 i*86 )
6015 # Not sure whether the presence of OpenBSD here was a mistake.
6016 # Let's accept both of them until this is cleared up.
6017 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6018 lt_cv_file_magic_cmd=/usr/bin/file
6019 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6020 ;;
6021 esac
6022 else
6023 lt_cv_deplibs_check_method=pass_all
6024 fi
6025 ;;
6026
6027gnu*)
6028 lt_cv_deplibs_check_method=pass_all
6029 ;;
6030
6031haiku*)
6032 lt_cv_deplibs_check_method=pass_all
6033 ;;
6034
6035hpux10.20* | hpux11*)
6036 lt_cv_file_magic_cmd=/usr/bin/file
6037 case $host_cpu in
6038 ia64*)
6039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6040 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6041 ;;
6042 hppa*64*)
6043 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]'
6044 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6045 ;;
6046 *)
6047 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6048 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6049 ;;
6050 esac
6051 ;;
6052
6053interix[3-9]*)
6054 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6056 ;;
6057
6058irix5* | irix6* | nonstopux*)
6059 case $LD in
6060 *-32|*"-32 ") libmagic=32-bit;;
6061 *-n32|*"-n32 ") libmagic=N32;;
6062 *-64|*"-64 ") libmagic=64-bit;;
6063 *) libmagic=never-match;;
6064 esac
6065 lt_cv_deplibs_check_method=pass_all
6066 ;;
6067
6068# This must be Linux ELF.
6069linux* | k*bsd*-gnu | kopensolaris*-gnu)
6070 lt_cv_deplibs_check_method=pass_all
6071 ;;
6072
6073netbsd*)
6074 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6076 else
6077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6078 fi
6079 ;;
6080
6081newos6*)
6082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6083 lt_cv_file_magic_cmd=/usr/bin/file
6084 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6085 ;;
6086
6087*nto* | *qnx*)
6088 lt_cv_deplibs_check_method=pass_all
6089 ;;
6090
6091openbsd*)
6092 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6094 else
6095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6096 fi
6097 ;;
6098
6099osf3* | osf4* | osf5*)
6100 lt_cv_deplibs_check_method=pass_all
6101 ;;
6102
6103rdos*)
6104 lt_cv_deplibs_check_method=pass_all
6105 ;;
6106
6107solaris*)
6108 lt_cv_deplibs_check_method=pass_all
6109 ;;
6110
6111sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6112 lt_cv_deplibs_check_method=pass_all
6113 ;;
6114
6115sysv4 | sysv4.3*)
6116 case $host_vendor in
6117 motorola)
6118 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]'
6119 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6120 ;;
6121 ncr)
6122 lt_cv_deplibs_check_method=pass_all
6123 ;;
6124 sequent)
6125 lt_cv_file_magic_cmd='/bin/file'
6126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6127 ;;
6128 sni)
6129 lt_cv_file_magic_cmd='/bin/file'
6130 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6131 lt_cv_file_magic_test_file=/lib/libc.so
6132 ;;
6133 siemens)
6134 lt_cv_deplibs_check_method=pass_all
6135 ;;
6136 pc)
6137 lt_cv_deplibs_check_method=pass_all
6138 ;;
6139 esac
6140 ;;
6141
6142tpf*)
6143 lt_cv_deplibs_check_method=pass_all
6144 ;;
6145esac
6146
6147fi
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6149$as_echo "$lt_cv_deplibs_check_method" >&6; }
6150file_magic_cmd=$lt_cv_file_magic_cmd
6151deplibs_check_method=$lt_cv_deplibs_check_method
6152test -z "$deplibs_check_method" && deplibs_check_method=unknown
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165plugin_option=
6166plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6167for plugin in $plugin_names; do
6168 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6169 if test x$plugin_so = x$plugin; then
6170 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6171 fi
6172 if test x$plugin_so != x$plugin; then
6173 plugin_option="--plugin $plugin_so"
6174 break
6175 fi
6176done
6177
6178if test -n "$ac_tool_prefix"; then
6179 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6180set dummy ${ac_tool_prefix}ar; ac_word=$2
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182$as_echo_n "checking for $ac_word... " >&6; }
6183if ${ac_cv_prog_AR+:} false; then :
6184 $as_echo_n "(cached) " >&6
6185else
6186 if test -n "$AR"; then
6187 ac_cv_prog_AR="$AR" # Let the user override the test.
6188else
6189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190for as_dir in $PATH
6191do
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6196 ac_cv_prog_AR="${ac_tool_prefix}ar"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200done
6201 done
6202IFS=$as_save_IFS
6203
6204fi
6205fi
6206AR=$ac_cv_prog_AR
6207if test -n "$AR"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6209$as_echo "$AR" >&6; }
6210else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212$as_echo "no" >&6; }
6213fi
6214
6215
6216fi
6217if test -z "$ac_cv_prog_AR"; then
6218 ac_ct_AR=$AR
6219 # Extract the first word of "ar", so it can be a program name with args.
6220set dummy ar; ac_word=$2
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222$as_echo_n "checking for $ac_word... " >&6; }
6223if ${ac_cv_prog_ac_ct_AR+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225else
6226 if test -n "$ac_ct_AR"; then
6227 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6228else
6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230for as_dir in $PATH
6231do
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6236 ac_cv_prog_ac_ct_AR="ar"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6239 fi
6240done
6241 done
6242IFS=$as_save_IFS
6243
6244fi
6245fi
6246ac_ct_AR=$ac_cv_prog_ac_ct_AR
6247if test -n "$ac_ct_AR"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6249$as_echo "$ac_ct_AR" >&6; }
6250else
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252$as_echo "no" >&6; }
6253fi
6254
6255 if test "x$ac_ct_AR" = x; then
6256 AR="false"
6257 else
6258 case $cross_compiling:$ac_tool_warned in
6259yes:)
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6262ac_tool_warned=yes ;;
6263esac
6264 AR=$ac_ct_AR
6265 fi
6266else
6267 AR="$ac_cv_prog_AR"
6268fi
6269
6270test -z "$AR" && AR=ar
6271if test -n "$plugin_option"; then
6272 if $AR --help 2>&1 | grep -q "\--plugin"; then
6273 touch conftest.c
6274 $AR $plugin_option rc conftest.a conftest.c
6275 if test "$?" != 0; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6277$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6278 else
6279 AR="$AR $plugin_option"
6280 fi
6281 rm -f conftest.*
6282 fi
6283fi
6284test -z "$AR_FLAGS" && AR_FLAGS=cru
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296if test -n "$ac_tool_prefix"; then
6297 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6298set dummy ${ac_tool_prefix}strip; ac_word=$2
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300$as_echo_n "checking for $ac_word... " >&6; }
6301if ${ac_cv_prog_STRIP+:} false; then :
6302 $as_echo_n "(cached) " >&6
6303else
6304 if test -n "$STRIP"; then
6305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6306else
6307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308for as_dir in $PATH
6309do
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 break 2
6317 fi
6318done
6319 done
6320IFS=$as_save_IFS
6321
6322fi
6323fi
6324STRIP=$ac_cv_prog_STRIP
6325if test -n "$STRIP"; then
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6327$as_echo "$STRIP" >&6; }
6328else
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330$as_echo "no" >&6; }
6331fi
6332
6333
6334fi
6335if test -z "$ac_cv_prog_STRIP"; then
6336 ac_ct_STRIP=$STRIP
6337 # Extract the first word of "strip", so it can be a program name with args.
6338set dummy strip; ac_word=$2
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340$as_echo_n "checking for $ac_word... " >&6; }
6341if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343else
6344 if test -n "$ac_ct_STRIP"; then
6345 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6346else
6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348for as_dir in $PATH
6349do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354 ac_cv_prog_ac_ct_STRIP="strip"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6357 fi
6358done
6359 done
6360IFS=$as_save_IFS
6361
6362fi
6363fi
6364ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6365if test -n "$ac_ct_STRIP"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6367$as_echo "$ac_ct_STRIP" >&6; }
6368else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370$as_echo "no" >&6; }
6371fi
6372
6373 if test "x$ac_ct_STRIP" = x; then
6374 STRIP=":"
6375 else
6376 case $cross_compiling:$ac_tool_warned in
6377yes:)
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380ac_tool_warned=yes ;;
6381esac
6382 STRIP=$ac_ct_STRIP
6383 fi
6384else
6385 STRIP="$ac_cv_prog_STRIP"
6386fi
6387
6388test -z "$STRIP" && STRIP=:
6389
6390
6391
6392
6393
6394
6395if test -n "$ac_tool_prefix"; then
6396 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6397set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399$as_echo_n "checking for $ac_word... " >&6; }
6400if ${ac_cv_prog_RANLIB+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402else
6403 if test -n "$RANLIB"; then
6404 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6405else
6406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6416 fi
6417done
6418 done
6419IFS=$as_save_IFS
6420
6421fi
6422fi
6423RANLIB=$ac_cv_prog_RANLIB
6424if test -n "$RANLIB"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6426$as_echo "$RANLIB" >&6; }
6427else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429$as_echo "no" >&6; }
6430fi
6431
6432
6433fi
6434if test -z "$ac_cv_prog_RANLIB"; then
6435 ac_ct_RANLIB=$RANLIB
6436 # Extract the first word of "ranlib", so it can be a program name with args.
6437set dummy ranlib; ac_word=$2
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439$as_echo_n "checking for $ac_word... " >&6; }
6440if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442else
6443 if test -n "$ac_ct_RANLIB"; then
6444 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6445else
6446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447for as_dir in $PATH
6448do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6453 ac_cv_prog_ac_ct_RANLIB="ranlib"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457done
6458 done
6459IFS=$as_save_IFS
6460
6461fi
6462fi
6463ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6464if test -n "$ac_ct_RANLIB"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6466$as_echo "$ac_ct_RANLIB" >&6; }
6467else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469$as_echo "no" >&6; }
6470fi
6471
6472 if test "x$ac_ct_RANLIB" = x; then
6473 RANLIB=":"
6474 else
6475 case $cross_compiling:$ac_tool_warned in
6476yes:)
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6479ac_tool_warned=yes ;;
6480esac
6481 RANLIB=$ac_ct_RANLIB
6482 fi
6483else
6484 RANLIB="$ac_cv_prog_RANLIB"
6485fi
6486
6487test -z "$RANLIB" && RANLIB=:
6488if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6489 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6490 RANLIB="$RANLIB $plugin_option"
6491 fi
6492fi
6493
6494
6495
6496
6497
6498
6499# Determine commands to create old-style static archives.
6500old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6501old_postinstall_cmds='chmod 644 $oldlib'
6502old_postuninstall_cmds=
6503
6504if test -n "$RANLIB"; then
6505 case $host_os in
6506 openbsd*)
6507 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6508 ;;
6509 *)
6510 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6511 ;;
6512 esac
6513 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6514fi
6515
6516case $host_os in
6517 darwin*)
6518 lock_old_archive_extraction=yes ;;
6519 *)
6520 lock_old_archive_extraction=no ;;
6521esac
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543for ac_prog in gawk mawk nawk awk
6544do
6545 # Extract the first word of "$ac_prog", so it can be a program name with args.
6546set dummy $ac_prog; ac_word=$2
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548$as_echo_n "checking for $ac_word... " >&6; }
6549if ${ac_cv_prog_AWK+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551else
6552 if test -n "$AWK"; then
6553 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6554else
6555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_AWK="$ac_prog"
6563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 break 2
6565 fi
6566done
6567 done
6568IFS=$as_save_IFS
6569
6570fi
6571fi
6572AWK=$ac_cv_prog_AWK
6573if test -n "$AWK"; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6575$as_echo "$AWK" >&6; }
6576else
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578$as_echo "no" >&6; }
6579fi
6580
6581
6582 test -n "$AWK" && break
6583done
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603# If no C compiler was specified, use CC.
6604LTCC=${LTCC-"$CC"}
6605
6606# If no C compiler flags were specified, use CFLAGS.
6607LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6608
6609# Allow CC to be a program name with arguments.
6610compiler=$CC
6611
6612
6613# Check for command to grab the raw symbol name followed by C symbol from nm.
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6615$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6616if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618else
6619
6620# These are sane defaults that work on at least a few old systems.
6621# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6622
6623# Character class describing NM global symbol codes.
6624symcode='[BCDEGRST]'
6625
6626# Regexp to match symbols that can be accessed directly from C.
6627sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6628
6629# Define system-specific variables.
6630case $host_os in
6631aix*)
6632 symcode='[BCDT]'
6633 ;;
6634cygwin* | mingw* | pw32* | cegcc*)
6635 symcode='[ABCDGISTW]'
6636 ;;
6637hpux*)
6638 if test "$host_cpu" = ia64; then
6639 symcode='[ABCDEGRST]'
6640 fi
6641 ;;
6642irix* | nonstopux*)
6643 symcode='[BCDEGRST]'
6644 ;;
6645osf*)
6646 symcode='[BCDEGQRST]'
6647 ;;
6648solaris*)
6649 symcode='[BDRT]'
6650 ;;
6651sco3.2v5*)
6652 symcode='[DT]'
6653 ;;
6654sysv4.2uw2*)
6655 symcode='[DT]'
6656 ;;
6657sysv5* | sco5v6* | unixware* | OpenUNIX*)
6658 symcode='[ABDT]'
6659 ;;
6660sysv4)
6661 symcode='[DFNSTU]'
6662 ;;
6663esac
6664
6665# If we're using GNU nm, then use its standard symbol codes.
6666case `$NM -V 2>&1` in
6667*GNU* | *'with BFD'*)
6668 symcode='[ABCDGIRSTW]' ;;
6669esac
6670
6671# Transform an extracted symbol line into a proper C declaration.
6672# Some systems (esp. on ia64) link data and code symbols differently,
6673# so use this general approach.
6674lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6675
6676# Transform an extracted symbol line into symbol name and symbol address
6677lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6678lt_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'"
6679
6680# Handle CRLF in mingw tool chain
6681opt_cr=
6682case $build_os in
6683mingw*)
6684 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6685 ;;
6686esac
6687
6688# Try without a prefix underscore, then with it.
6689for ac_symprfx in "" "_"; do
6690
6691 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6692 symxfrm="\\1 $ac_symprfx\\2 \\2"
6693
6694 # Write the raw and C identifiers.
6695 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6696 # Fake it for dumpbin and say T for any non-static function
6697 # and D for any global variable.
6698 # Also find C++ and __fastcall symbols from MSVC++,
6699 # which start with @ or ?.
6700 lt_cv_sys_global_symbol_pipe="$AWK '"\
6701" {last_section=section; section=\$ 3};"\
6702" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6703" \$ 0!~/External *\|/{next};"\
6704" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6705" {if(hide[section]) next};"\
6706" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6707" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6708" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6709" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6710" ' prfx=^$ac_symprfx"
6711 else
6712 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6713 fi
6714
6715 # Check to see that the pipe works correctly.
6716 pipe_works=no
6717
6718 rm -f conftest*
6719 cat > conftest.$ac_ext <<_LT_EOF
6720#ifdef __cplusplus
6721extern "C" {
6722#endif
6723char nm_test_var;
6724void nm_test_func(void);
6725void nm_test_func(void){}
6726#ifdef __cplusplus
6727}
6728#endif
6729int main(){nm_test_var='a';nm_test_func();return(0);}
6730_LT_EOF
6731
6732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6733 (eval $ac_compile) 2>&5
6734 ac_status=$?
6735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6736 test $ac_status = 0; }; then
6737 # Now try to grab the symbols.
6738 nlist=conftest.nm
6739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6740 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6741 ac_status=$?
6742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6743 test $ac_status = 0; } && test -s "$nlist"; then
6744 # Try sorting and uniquifying the output.
6745 if sort "$nlist" | uniq > "$nlist"T; then
6746 mv -f "$nlist"T "$nlist"
6747 else
6748 rm -f "$nlist"T
6749 fi
6750
6751 # Make sure that we snagged all the symbols we need.
6752 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6753 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6754 cat <<_LT_EOF > conftest.$ac_ext
6755#ifdef __cplusplus
6756extern "C" {
6757#endif
6758
6759_LT_EOF
6760 # Now generate the symbol file.
6761 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6762
6763 cat <<_LT_EOF >> conftest.$ac_ext
6764
6765/* The mapping between symbol names and symbols. */
6766const struct {
6767 const char *name;
6768 void *address;
6769}
6770lt__PROGRAM__LTX_preloaded_symbols[] =
6771{
6772 { "@PROGRAM@", (void *) 0 },
6773_LT_EOF
6774 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6775 cat <<\_LT_EOF >> conftest.$ac_ext
6776 {0, (void *) 0}
6777};
6778
6779/* This works around a problem in FreeBSD linker */
6780#ifdef FREEBSD_WORKAROUND
6781static const void *lt_preloaded_setup() {
6782 return lt__PROGRAM__LTX_preloaded_symbols;
6783}
6784#endif
6785
6786#ifdef __cplusplus
6787}
6788#endif
6789_LT_EOF
6790 # Now try linking the two files.
6791 mv conftest.$ac_objext conftstm.$ac_objext
6792 lt_save_LIBS="$LIBS"
6793 lt_save_CFLAGS="$CFLAGS"
6794 LIBS="conftstm.$ac_objext"
6795 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6797 (eval $ac_link) 2>&5
6798 ac_status=$?
6799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6800 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6801 pipe_works=yes
6802 fi
6803 LIBS="$lt_save_LIBS"
6804 CFLAGS="$lt_save_CFLAGS"
6805 else
6806 echo "cannot find nm_test_func in $nlist" >&5
6807 fi
6808 else
6809 echo "cannot find nm_test_var in $nlist" >&5
6810 fi
6811 else
6812 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6813 fi
6814 else
6815 echo "$progname: failed program was:" >&5
6816 cat conftest.$ac_ext >&5
6817 fi
6818 rm -rf conftest* conftst*
6819
6820 # Do not use the global_symbol_pipe unless it works.
6821 if test "$pipe_works" = yes; then
6822 break
6823 else
6824 lt_cv_sys_global_symbol_pipe=
6825 fi
6826done
6827
6828fi
6829
6830if test -z "$lt_cv_sys_global_symbol_pipe"; then
6831 lt_cv_sys_global_symbol_to_cdecl=
6832fi
6833if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6835$as_echo "failed" >&6; }
6836else
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6838$as_echo "ok" >&6; }
6839fi
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862# Check whether --enable-libtool-lock was given.
6863if test "${enable_libtool_lock+set}" = set; then :
6864 enableval=$enable_libtool_lock;
6865fi
6866
6867test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6868
6869# Some flags need to be propagated to the compiler or linker for good
6870# libtool support.
6871case $host in
6872ia64-*-hpux*)
6873 # Find out which ABI we are using.
6874 echo 'int i;' > conftest.$ac_ext
6875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6876 (eval $ac_compile) 2>&5
6877 ac_status=$?
6878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6879 test $ac_status = 0; }; then
6880 case `/usr/bin/file conftest.$ac_objext` in
6881 *ELF-32*)
6882 HPUX_IA64_MODE="32"
6883 ;;
6884 *ELF-64*)
6885 HPUX_IA64_MODE="64"
6886 ;;
6887 esac
6888 fi
6889 rm -rf conftest*
6890 ;;
6891*-*-irix6*)
6892 # Find out which ABI we are using.
6893 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6895 (eval $ac_compile) 2>&5
6896 ac_status=$?
6897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6898 test $ac_status = 0; }; then
6899 if test "$lt_cv_prog_gnu_ld" = yes; then
6900 case `/usr/bin/file conftest.$ac_objext` in
6901 *32-bit*)
6902 LD="${LD-ld} -melf32bsmip"
6903 ;;
6904 *N32*)
6905 LD="${LD-ld} -melf32bmipn32"
6906 ;;
6907 *64-bit*)
6908 LD="${LD-ld} -melf64bmip"
6909 ;;
6910 esac
6911 else
6912 case `/usr/bin/file conftest.$ac_objext` in
6913 *32-bit*)
6914 LD="${LD-ld} -32"
6915 ;;
6916 *N32*)
6917 LD="${LD-ld} -n32"
6918 ;;
6919 *64-bit*)
6920 LD="${LD-ld} -64"
6921 ;;
6922 esac
6923 fi
6924 fi
6925 rm -rf conftest*
6926 ;;
6927
6928x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6929s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6930 # Find out which ABI we are using.
6931 echo 'int i;' > conftest.$ac_ext
6932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6933 (eval $ac_compile) 2>&5
6934 ac_status=$?
6935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6936 test $ac_status = 0; }; then
6937 case `/usr/bin/file conftest.o` in
6938 *32-bit*)
6939 case $host in
6940 x86_64-*kfreebsd*-gnu)
6941 LD="${LD-ld} -m elf_i386_fbsd"
6942 ;;
6943 x86_64-*linux*)
6944 case `/usr/bin/file conftest.o` in
6945 *x86-64*)
6946 LD="${LD-ld} -m elf32_x86_64"
6947 ;;
6948 *)
6949 LD="${LD-ld} -m elf_i386"
6950 ;;
6951 esac
6952 ;;
6953 powerpc64le-*linux*)
6954 LD="${LD-ld} -m elf32lppclinux"
6955 ;;
6956 powerpc64-*linux*)
6957 LD="${LD-ld} -m elf32ppclinux"
6958 ;;
6959 s390x-*linux*)
6960 LD="${LD-ld} -m elf_s390"
6961 ;;
6962 sparc64-*linux*)
6963 LD="${LD-ld} -m elf32_sparc"
6964 ;;
6965 esac
6966 ;;
6967 *64-bit*)
6968 case $host in
6969 x86_64-*kfreebsd*-gnu)
6970 LD="${LD-ld} -m elf_x86_64_fbsd"
6971 ;;
6972 x86_64-*linux*)
6973 LD="${LD-ld} -m elf_x86_64"
6974 ;;
6975 powerpcle-*linux*)
6976 LD="${LD-ld} -m elf64lppc"
6977 ;;
6978 powerpc-*linux*)
6979 LD="${LD-ld} -m elf64ppc"
6980 ;;
6981 s390*-*linux*|s390*-*tpf*)
6982 LD="${LD-ld} -m elf64_s390"
6983 ;;
6984 sparc*-*linux*)
6985 LD="${LD-ld} -m elf64_sparc"
6986 ;;
6987 esac
6988 ;;
6989 esac
6990 fi
6991 rm -rf conftest*
6992 ;;
6993
6994*-*-sco3.2v5*)
6995 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6996 SAVE_CFLAGS="$CFLAGS"
6997 CFLAGS="$CFLAGS -belf"
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6999$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7000if ${lt_cv_cc_needs_belf+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002else
7003 ac_ext=c
7004ac_cpp='$CPP $CPPFLAGS'
7005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7007ac_compiler_gnu=$ac_cv_c_compiler_gnu
7008
7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010/* end confdefs.h. */
7011
7012int
7013main ()
7014{
7015
7016 ;
7017 return 0;
7018}
7019_ACEOF
7020if ac_fn_c_try_link "$LINENO"; then :
7021 lt_cv_cc_needs_belf=yes
7022else
7023 lt_cv_cc_needs_belf=no
7024fi
7025rm -f core conftest.err conftest.$ac_objext \
7026 conftest$ac_exeext conftest.$ac_ext
7027 ac_ext=c
7028ac_cpp='$CPP $CPPFLAGS'
7029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7031ac_compiler_gnu=$ac_cv_c_compiler_gnu
7032
7033fi
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7035$as_echo "$lt_cv_cc_needs_belf" >&6; }
7036 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7037 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7038 CFLAGS="$SAVE_CFLAGS"
7039 fi
7040 ;;
7041sparc*-*solaris*)
7042 # Find out which ABI we are using.
7043 echo 'int i;' > conftest.$ac_ext
7044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7045 (eval $ac_compile) 2>&5
7046 ac_status=$?
7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048 test $ac_status = 0; }; then
7049 case `/usr/bin/file conftest.o` in
7050 *64-bit*)
7051 case $lt_cv_prog_gnu_ld in
7052 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7053 *)
7054 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7055 LD="${LD-ld} -64"
7056 fi
7057 ;;
7058 esac
7059 ;;
7060 esac
7061 fi
7062 rm -rf conftest*
7063 ;;
7064esac
7065
7066need_locks="$enable_libtool_lock"
7067
7068
7069 case $host_os in
7070 rhapsody* | darwin*)
7071 if test -n "$ac_tool_prefix"; then
7072 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7073set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075$as_echo_n "checking for $ac_word... " >&6; }
7076if ${ac_cv_prog_DSYMUTIL+:} false; then :
7077 $as_echo_n "(cached) " >&6
7078else
7079 if test -n "$DSYMUTIL"; then
7080 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 break 2
7092 fi
7093done
7094 done
7095IFS=$as_save_IFS
7096
7097fi
7098fi
7099DSYMUTIL=$ac_cv_prog_DSYMUTIL
7100if test -n "$DSYMUTIL"; then
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7102$as_echo "$DSYMUTIL" >&6; }
7103else
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105$as_echo "no" >&6; }
7106fi
7107
7108
7109fi
7110if test -z "$ac_cv_prog_DSYMUTIL"; then
7111 ac_ct_DSYMUTIL=$DSYMUTIL
7112 # Extract the first word of "dsymutil", so it can be a program name with args.
7113set dummy dsymutil; ac_word=$2
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115$as_echo_n "checking for $ac_word... " >&6; }
7116if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7117 $as_echo_n "(cached) " >&6
7118else
7119 if test -n "$ac_ct_DSYMUTIL"; then
7120 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7121else
7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125 IFS=$as_save_IFS
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 break 2
7132 fi
7133done
7134 done
7135IFS=$as_save_IFS
7136
7137fi
7138fi
7139ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7140if test -n "$ac_ct_DSYMUTIL"; then
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7142$as_echo "$ac_ct_DSYMUTIL" >&6; }
7143else
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145$as_echo "no" >&6; }
7146fi
7147
7148 if test "x$ac_ct_DSYMUTIL" = x; then
7149 DSYMUTIL=":"
7150 else
7151 case $cross_compiling:$ac_tool_warned in
7152yes:)
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7155ac_tool_warned=yes ;;
7156esac
7157 DSYMUTIL=$ac_ct_DSYMUTIL
7158 fi
7159else
7160 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7161fi
7162
7163 if test -n "$ac_tool_prefix"; then
7164 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7165set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167$as_echo_n "checking for $ac_word... " >&6; }
7168if ${ac_cv_prog_NMEDIT+:} false; then :
7169 $as_echo_n "(cached) " >&6
7170else
7171 if test -n "$NMEDIT"; then
7172 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7173else
7174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7184 fi
7185done
7186 done
7187IFS=$as_save_IFS
7188
7189fi
7190fi
7191NMEDIT=$ac_cv_prog_NMEDIT
7192if test -n "$NMEDIT"; then
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7194$as_echo "$NMEDIT" >&6; }
7195else
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197$as_echo "no" >&6; }
7198fi
7199
7200
7201fi
7202if test -z "$ac_cv_prog_NMEDIT"; then
7203 ac_ct_NMEDIT=$NMEDIT
7204 # Extract the first word of "nmedit", so it can be a program name with args.
7205set dummy nmedit; ac_word=$2
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207$as_echo_n "checking for $ac_word... " >&6; }
7208if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7209 $as_echo_n "(cached) " >&6
7210else
7211 if test -n "$ac_ct_NMEDIT"; then
7212 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7213else
7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7224 fi
7225done
7226 done
7227IFS=$as_save_IFS
7228
7229fi
7230fi
7231ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7232if test -n "$ac_ct_NMEDIT"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7234$as_echo "$ac_ct_NMEDIT" >&6; }
7235else
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237$as_echo "no" >&6; }
7238fi
7239
7240 if test "x$ac_ct_NMEDIT" = x; then
7241 NMEDIT=":"
7242 else
7243 case $cross_compiling:$ac_tool_warned in
7244yes:)
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7247ac_tool_warned=yes ;;
7248esac
7249 NMEDIT=$ac_ct_NMEDIT
7250 fi
7251else
7252 NMEDIT="$ac_cv_prog_NMEDIT"
7253fi
7254
7255 if test -n "$ac_tool_prefix"; then
7256 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7257set dummy ${ac_tool_prefix}lipo; ac_word=$2
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259$as_echo_n "checking for $ac_word... " >&6; }
7260if ${ac_cv_prog_LIPO+:} false; then :
7261 $as_echo_n "(cached) " >&6
7262else
7263 if test -n "$LIPO"; then
7264 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7265else
7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267for as_dir in $PATH
7268do
7269 IFS=$as_save_IFS
7270 test -z "$as_dir" && as_dir=.
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 break 2
7276 fi
7277done
7278 done
7279IFS=$as_save_IFS
7280
7281fi
7282fi
7283LIPO=$ac_cv_prog_LIPO
7284if test -n "$LIPO"; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7286$as_echo "$LIPO" >&6; }
7287else
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289$as_echo "no" >&6; }
7290fi
7291
7292
7293fi
7294if test -z "$ac_cv_prog_LIPO"; then
7295 ac_ct_LIPO=$LIPO
7296 # Extract the first word of "lipo", so it can be a program name with args.
7297set dummy lipo; ac_word=$2
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299$as_echo_n "checking for $ac_word... " >&6; }
7300if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7301 $as_echo_n "(cached) " >&6
7302else
7303 if test -n "$ac_ct_LIPO"; then
7304 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7305else
7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307for as_dir in $PATH
7308do
7309 IFS=$as_save_IFS
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313 ac_cv_prog_ac_ct_LIPO="lipo"
7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 break 2
7316 fi
7317done
7318 done
7319IFS=$as_save_IFS
7320
7321fi
7322fi
7323ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7324if test -n "$ac_ct_LIPO"; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7326$as_echo "$ac_ct_LIPO" >&6; }
7327else
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329$as_echo "no" >&6; }
7330fi
7331
7332 if test "x$ac_ct_LIPO" = x; then
7333 LIPO=":"
7334 else
7335 case $cross_compiling:$ac_tool_warned in
7336yes:)
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7339ac_tool_warned=yes ;;
7340esac
7341 LIPO=$ac_ct_LIPO
7342 fi
7343else
7344 LIPO="$ac_cv_prog_LIPO"
7345fi
7346
7347 if test -n "$ac_tool_prefix"; then
7348 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7349set dummy ${ac_tool_prefix}otool; ac_word=$2
7350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351$as_echo_n "checking for $ac_word... " >&6; }
7352if ${ac_cv_prog_OTOOL+:} false; then :
7353 $as_echo_n "(cached) " >&6
7354else
7355 if test -n "$OTOOL"; then
7356 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7357else
7358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359for as_dir in $PATH
7360do
7361 IFS=$as_save_IFS
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 break 2
7368 fi
7369done
7370 done
7371IFS=$as_save_IFS
7372
7373fi
7374fi
7375OTOOL=$ac_cv_prog_OTOOL
7376if test -n "$OTOOL"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7378$as_echo "$OTOOL" >&6; }
7379else
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381$as_echo "no" >&6; }
7382fi
7383
7384
7385fi
7386if test -z "$ac_cv_prog_OTOOL"; then
7387 ac_ct_OTOOL=$OTOOL
7388 # Extract the first word of "otool", so it can be a program name with args.
7389set dummy otool; ac_word=$2
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391$as_echo_n "checking for $ac_word... " >&6; }
7392if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7393 $as_echo_n "(cached) " >&6
7394else
7395 if test -n "$ac_ct_OTOOL"; then
7396 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7397else
7398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399for as_dir in $PATH
7400do
7401 IFS=$as_save_IFS
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405 ac_cv_prog_ac_ct_OTOOL="otool"
7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 break 2
7408 fi
7409done
7410 done
7411IFS=$as_save_IFS
7412
7413fi
7414fi
7415ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7416if test -n "$ac_ct_OTOOL"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7418$as_echo "$ac_ct_OTOOL" >&6; }
7419else
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421$as_echo "no" >&6; }
7422fi
7423
7424 if test "x$ac_ct_OTOOL" = x; then
7425 OTOOL=":"
7426 else
7427 case $cross_compiling:$ac_tool_warned in
7428yes:)
7429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431ac_tool_warned=yes ;;
7432esac
7433 OTOOL=$ac_ct_OTOOL
7434 fi
7435else
7436 OTOOL="$ac_cv_prog_OTOOL"
7437fi
7438
7439 if test -n "$ac_tool_prefix"; then
7440 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7441set dummy ${ac_tool_prefix}otool64; ac_word=$2
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443$as_echo_n "checking for $ac_word... " >&6; }
7444if ${ac_cv_prog_OTOOL64+:} false; then :
7445 $as_echo_n "(cached) " >&6
7446else
7447 if test -n "$OTOOL64"; then
7448 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7449else
7450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451for as_dir in $PATH
7452do
7453 IFS=$as_save_IFS
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7457 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 break 2
7460 fi
7461done
7462 done
7463IFS=$as_save_IFS
7464
7465fi
7466fi
7467OTOOL64=$ac_cv_prog_OTOOL64
7468if test -n "$OTOOL64"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7470$as_echo "$OTOOL64" >&6; }
7471else
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473$as_echo "no" >&6; }
7474fi
7475
7476
7477fi
7478if test -z "$ac_cv_prog_OTOOL64"; then
7479 ac_ct_OTOOL64=$OTOOL64
7480 # Extract the first word of "otool64", so it can be a program name with args.
7481set dummy otool64; ac_word=$2
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483$as_echo_n "checking for $ac_word... " >&6; }
7484if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7485 $as_echo_n "(cached) " >&6
7486else
7487 if test -n "$ac_ct_OTOOL64"; then
7488 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7489else
7490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491for as_dir in $PATH
7492do
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_ac_ct_OTOOL64="otool64"
7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 break 2
7500 fi
7501done
7502 done
7503IFS=$as_save_IFS
7504
7505fi
7506fi
7507ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7508if test -n "$ac_ct_OTOOL64"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7510$as_echo "$ac_ct_OTOOL64" >&6; }
7511else
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513$as_echo "no" >&6; }
7514fi
7515
7516 if test "x$ac_ct_OTOOL64" = x; then
7517 OTOOL64=":"
7518 else
7519 case $cross_compiling:$ac_tool_warned in
7520yes:)
7521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7523ac_tool_warned=yes ;;
7524esac
7525 OTOOL64=$ac_ct_OTOOL64
7526 fi
7527else
7528 OTOOL64="$ac_cv_prog_OTOOL64"
7529fi
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7558$as_echo_n "checking for -single_module linker flag... " >&6; }
7559if ${lt_cv_apple_cc_single_mod+:} false; then :
7560 $as_echo_n "(cached) " >&6
7561else
7562 lt_cv_apple_cc_single_mod=no
7563 if test -z "${LT_MULTI_MODULE}"; then
7564 # By default we will add the -single_module flag. You can override
7565 # by either setting the environment variable LT_MULTI_MODULE
7566 # non-empty at configure time, or by adding -multi_module to the
7567 # link flags.
7568 rm -rf libconftest.dylib*
7569 echo "int foo(void){return 1;}" > conftest.c
7570 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7571-dynamiclib -Wl,-single_module conftest.c" >&5
7572 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7573 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7574 _lt_result=$?
7575 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7576 lt_cv_apple_cc_single_mod=yes
7577 else
7578 cat conftest.err >&5
7579 fi
7580 rm -rf libconftest.dylib*
7581 rm -f conftest.*
7582 fi
7583fi
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7585$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7587$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7588if ${lt_cv_ld_exported_symbols_list+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590else
7591 lt_cv_ld_exported_symbols_list=no
7592 save_LDFLAGS=$LDFLAGS
7593 echo "_main" > conftest.sym
7594 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596/* end confdefs.h. */
7597
7598int
7599main ()
7600{
7601
7602 ;
7603 return 0;
7604}
7605_ACEOF
7606if ac_fn_c_try_link "$LINENO"; then :
7607 lt_cv_ld_exported_symbols_list=yes
7608else
7609 lt_cv_ld_exported_symbols_list=no
7610fi
7611rm -f core conftest.err conftest.$ac_objext \
7612 conftest$ac_exeext conftest.$ac_ext
7613 LDFLAGS="$save_LDFLAGS"
7614
7615fi
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7617$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7619$as_echo_n "checking for -force_load linker flag... " >&6; }
7620if ${lt_cv_ld_force_load+:} false; then :
7621 $as_echo_n "(cached) " >&6
7622else
7623 lt_cv_ld_force_load=no
7624 cat > conftest.c << _LT_EOF
7625int forced_loaded() { return 2;}
7626_LT_EOF
7627 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7628 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7629 echo "$AR cru libconftest.a conftest.o" >&5
7630 $AR cru libconftest.a conftest.o 2>&5
7631 cat > conftest.c << _LT_EOF
7632int main() { return 0;}
7633_LT_EOF
7634 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7635 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7636 _lt_result=$?
7637 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7638 lt_cv_ld_force_load=yes
7639 else
7640 cat conftest.err >&5
7641 fi
7642 rm -f conftest.err libconftest.a conftest conftest.c
7643 rm -rf conftest.dSYM
7644
7645fi
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7647$as_echo "$lt_cv_ld_force_load" >&6; }
7648 case $host_os in
7649 rhapsody* | darwin1.[012])
7650 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7651 darwin1.*)
7652 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7653 darwin*) # darwin 5.x on
7654 # if running on 10.5 or later, the deployment target defaults
7655 # to the OS version, if on x86, and 10.4, the deployment
7656 # target defaults to 10.4. Don't you love it?
7657 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7658 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7659 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7660 10.[012][,.]*)
7661 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7662 10.*)
7663 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7664 esac
7665 ;;
7666 esac
7667 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7668 _lt_dar_single_mod='$single_module'
7669 fi
7670 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7671 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7672 else
7673 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7674 fi
7675 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7676 _lt_dsymutil='~$DSYMUTIL $lib || :'
7677 else
7678 _lt_dsymutil=
7679 fi
7680 ;;
7681 esac
7682
7683for ac_header in dlfcn.h
7684do :
7685 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7686"
7687if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7688 cat >>confdefs.h <<_ACEOF
7689#define HAVE_DLFCN_H 1
7690_ACEOF
7691
7692fi
7693
7694done
7695
7696
7697ac_header_dirent=no
7698for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7699 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7701$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7702if eval \${$as_ac_Header+:} false; then :
7703 $as_echo_n "(cached) " >&6
7704else
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706/* end confdefs.h. */
7707#include <sys/types.h>
7708#include <$ac_hdr>
7709
7710int
7711main ()
7712{
7713if ((DIR *) 0)
7714return 0;
7715 ;
7716 return 0;
7717}
7718_ACEOF
7719if ac_fn_c_try_compile "$LINENO"; then :
7720 eval "$as_ac_Header=yes"
7721else
7722 eval "$as_ac_Header=no"
7723fi
7724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725fi
7726eval ac_res=\$$as_ac_Header
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7728$as_echo "$ac_res" >&6; }
7729if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7730 cat >>confdefs.h <<_ACEOF
7731#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7732_ACEOF
7733
7734ac_header_dirent=$ac_hdr; break
7735fi
7736
7737done
7738# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7739if test $ac_header_dirent = dirent.h; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7741$as_echo_n "checking for library containing opendir... " >&6; }
7742if ${ac_cv_search_opendir+:} false; then :
7743 $as_echo_n "(cached) " >&6
7744else
7745 ac_func_search_save_LIBS=$LIBS
7746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747/* end confdefs.h. */
7748
7749/* Override any GCC internal prototype to avoid an error.
7750 Use char because int might match the return type of a GCC
7751 builtin and then its argument prototype would still apply. */
7752#ifdef __cplusplus
7753extern "C"
7754#endif
7755char opendir ();
7756int
7757main ()
7758{
7759return opendir ();
7760 ;
7761 return 0;
7762}
7763_ACEOF
7764for ac_lib in '' dir; do
7765 if test -z "$ac_lib"; then
7766 ac_res="none required"
7767 else
7768 ac_res=-l$ac_lib
7769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7770 fi
7771 if ac_fn_c_try_link "$LINENO"; then :
7772 ac_cv_search_opendir=$ac_res
7773fi
7774rm -f core conftest.err conftest.$ac_objext \
7775 conftest$ac_exeext
7776 if ${ac_cv_search_opendir+:} false; then :
7777 break
7778fi
7779done
7780if ${ac_cv_search_opendir+:} false; then :
7781
7782else
7783 ac_cv_search_opendir=no
7784fi
7785rm conftest.$ac_ext
7786LIBS=$ac_func_search_save_LIBS
7787fi
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7789$as_echo "$ac_cv_search_opendir" >&6; }
7790ac_res=$ac_cv_search_opendir
7791if test "$ac_res" != no; then :
7792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7793
7794fi
7795
7796else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7798$as_echo_n "checking for library containing opendir... " >&6; }
7799if ${ac_cv_search_opendir+:} false; then :
7800 $as_echo_n "(cached) " >&6
7801else
7802 ac_func_search_save_LIBS=$LIBS
7803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804/* end confdefs.h. */
7805
7806/* Override any GCC internal prototype to avoid an error.
7807 Use char because int might match the return type of a GCC
7808 builtin and then its argument prototype would still apply. */
7809#ifdef __cplusplus
7810extern "C"
7811#endif
7812char opendir ();
7813int
7814main ()
7815{
7816return opendir ();
7817 ;
7818 return 0;
7819}
7820_ACEOF
7821for ac_lib in '' x; do
7822 if test -z "$ac_lib"; then
7823 ac_res="none required"
7824 else
7825 ac_res=-l$ac_lib
7826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7827 fi
7828 if ac_fn_c_try_link "$LINENO"; then :
7829 ac_cv_search_opendir=$ac_res
7830fi
7831rm -f core conftest.err conftest.$ac_objext \
7832 conftest$ac_exeext
7833 if ${ac_cv_search_opendir+:} false; then :
7834 break
7835fi
7836done
7837if ${ac_cv_search_opendir+:} false; then :
7838
7839else
7840 ac_cv_search_opendir=no
7841fi
7842rm conftest.$ac_ext
7843LIBS=$ac_func_search_save_LIBS
7844fi
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7846$as_echo "$ac_cv_search_opendir" >&6; }
7847ac_res=$ac_cv_search_opendir
7848if test "$ac_res" != no; then :
7849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7850
7851fi
7852
7853fi
7854
7855
7856
7857
7858ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7859if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7860
7861cat >>confdefs.h <<_ACEOF
7862#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7863_ACEOF
7864
7865
7866$as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7867
7868fi
7869
7870
7871ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7872if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7873
7874cat >>confdefs.h <<_ACEOF
7875#define HAVE_STRUCT_STAT_ST_BLOCKS 1
7876_ACEOF
7877
7878
7879$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7880
7881else
7882 case " $LIBOBJS " in
7883 *" fileblocks.$ac_objext "* ) ;;
7884 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7885 ;;
7886esac
7887
7888fi
7889
7890
7891ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7892if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7893
7894cat >>confdefs.h <<_ACEOF
7895#define HAVE_STRUCT_STAT_ST_RDEV 1
7896_ACEOF
7897
7898
7899$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7900
7901fi
7902
7903
7904ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7905#include <$ac_cv_struct_tm>
7906
7907"
7908if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7909
7910cat >>confdefs.h <<_ACEOF
7911#define HAVE_STRUCT_TM_TM_ZONE 1
7912_ACEOF
7913
7914
7915fi
7916
7917if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7918
7919$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7920
7921else
7922 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7923"
7924if test "x$ac_cv_have_decl_tzname" = xyes; then :
7925 ac_have_decl=1
7926else
7927 ac_have_decl=0
7928fi
7929
7930cat >>confdefs.h <<_ACEOF
7931#define HAVE_DECL_TZNAME $ac_have_decl
7932_ACEOF
7933
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7935$as_echo_n "checking for tzname... " >&6; }
7936if ${ac_cv_var_tzname+:} false; then :
7937 $as_echo_n "(cached) " >&6
7938else
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940/* end confdefs.h. */
7941#include <time.h>
a48ff3ef
MF
7942#if !HAVE_DECL_TZNAME
7943extern char *tzname[];
7944#endif
b5689863
MF
7945
7946int
7947main ()
7948{
7949return tzname[0][0];
7950 ;
7951 return 0;
7952}
7953_ACEOF
7954if ac_fn_c_try_link "$LINENO"; then :
7955 ac_cv_var_tzname=yes
7956else
7957 ac_cv_var_tzname=no
7958fi
7959rm -f core conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961fi
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7963$as_echo "$ac_cv_var_tzname" >&6; }
7964 if test $ac_cv_var_tzname = yes; then
7965
7966$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7967
7968 fi
7969fi
7970
7971
7972ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
7973#include <sys/types.h>
7974#endif
7975#ifdef HAVE_SYS_STAT_H
7976#include <sys/stat.h>
7977#endif
7978"
7979if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
7980
7981cat >>confdefs.h <<_ACEOF
7982#define HAVE_STRUCT_STAT_ST_DEV 1
7983_ACEOF
7984
7985
7986fi
7987ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
7988#include <sys/types.h>
7989#endif
7990#ifdef HAVE_SYS_STAT_H
7991#include <sys/stat.h>
7992#endif
7993"
7994if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
7995
7996cat >>confdefs.h <<_ACEOF
7997#define HAVE_STRUCT_STAT_ST_INO 1
7998_ACEOF
7999
8000
8001fi
8002ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8003#include <sys/types.h>
8004#endif
8005#ifdef HAVE_SYS_STAT_H
8006#include <sys/stat.h>
8007#endif
8008"
8009if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8010
8011cat >>confdefs.h <<_ACEOF
8012#define HAVE_STRUCT_STAT_ST_MODE 1
8013_ACEOF
8014
8015
8016fi
8017ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8018#include <sys/types.h>
8019#endif
8020#ifdef HAVE_SYS_STAT_H
8021#include <sys/stat.h>
8022#endif
8023"
8024if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8025
8026cat >>confdefs.h <<_ACEOF
8027#define HAVE_STRUCT_STAT_ST_NLINK 1
8028_ACEOF
8029
8030
8031fi
8032ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8033#include <sys/types.h>
8034#endif
8035#ifdef HAVE_SYS_STAT_H
8036#include <sys/stat.h>
8037#endif
8038"
8039if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8040
8041cat >>confdefs.h <<_ACEOF
8042#define HAVE_STRUCT_STAT_ST_UID 1
8043_ACEOF
8044
8045
8046fi
8047ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8048#include <sys/types.h>
8049#endif
8050#ifdef HAVE_SYS_STAT_H
8051#include <sys/stat.h>
8052#endif
8053"
8054if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8055
8056cat >>confdefs.h <<_ACEOF
8057#define HAVE_STRUCT_STAT_ST_GID 1
8058_ACEOF
8059
8060
8061fi
8062ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8063#include <sys/types.h>
8064#endif
8065#ifdef HAVE_SYS_STAT_H
8066#include <sys/stat.h>
8067#endif
8068"
8069if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8070
8071cat >>confdefs.h <<_ACEOF
8072#define HAVE_STRUCT_STAT_ST_RDEV 1
8073_ACEOF
8074
8075
8076fi
8077ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8078#include <sys/types.h>
8079#endif
8080#ifdef HAVE_SYS_STAT_H
8081#include <sys/stat.h>
8082#endif
8083"
8084if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8085
8086cat >>confdefs.h <<_ACEOF
8087#define HAVE_STRUCT_STAT_ST_SIZE 1
8088_ACEOF
8089
8090
8091fi
8092ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8093#include <sys/types.h>
8094#endif
8095#ifdef HAVE_SYS_STAT_H
8096#include <sys/stat.h>
8097#endif
8098"
8099if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8100
8101cat >>confdefs.h <<_ACEOF
8102#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8103_ACEOF
8104
8105
8106fi
8107ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8108#include <sys/types.h>
8109#endif
8110#ifdef HAVE_SYS_STAT_H
8111#include <sys/stat.h>
8112#endif
8113"
8114if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8115
8116cat >>confdefs.h <<_ACEOF
8117#define HAVE_STRUCT_STAT_ST_BLOCKS 1
8118_ACEOF
8119
8120
8121fi
8122ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8123#include <sys/types.h>
8124#endif
8125#ifdef HAVE_SYS_STAT_H
8126#include <sys/stat.h>
8127#endif
8128"
8129if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8130
8131cat >>confdefs.h <<_ACEOF
8132#define HAVE_STRUCT_STAT_ST_ATIME 1
8133_ACEOF
8134
8135
8136fi
8137ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8138#include <sys/types.h>
8139#endif
8140#ifdef HAVE_SYS_STAT_H
8141#include <sys/stat.h>
8142#endif
8143"
8144if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8145
8146cat >>confdefs.h <<_ACEOF
8147#define HAVE_STRUCT_STAT_ST_MTIME 1
8148_ACEOF
8149
8150
8151fi
8152ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8153#include <sys/types.h>
8154#endif
8155#ifdef HAVE_SYS_STAT_H
8156#include <sys/stat.h>
8157#endif
8158"
8159if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8160
8161cat >>confdefs.h <<_ACEOF
8162#define HAVE_STRUCT_STAT_ST_CTIME 1
8163_ACEOF
8164
8165
8166fi
8167
8168
8169ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8170if test "x$ac_cv_type___int128" = xyes; then :
8171
8172cat >>confdefs.h <<_ACEOF
8173#define HAVE___INT128 1
8174_ACEOF
8175
8176
8177fi
8178
8179ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8180#include <sys/socket.h>
8181
8182"
8183if test "x$ac_cv_type_socklen_t" = xyes; then :
8184
8185cat >>confdefs.h <<_ACEOF
8186#define HAVE_SOCKLEN_T 1
8187_ACEOF
8188
8189
8190fi
8191
8192
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8194$as_echo_n "checking type of array argument to getgroups... " >&6; }
8195if ${ac_cv_type_getgroups+:} false; then :
8196 $as_echo_n "(cached) " >&6
8197else
8198 if test "$cross_compiling" = yes; then :
8199 ac_cv_type_getgroups=cross
8200else
8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202/* end confdefs.h. */
8203/* Thanks to Mike Rendell for this test. */
8204$ac_includes_default
8205#define NGID 256
8206#undef MAX
8207#define MAX(x, y) ((x) > (y) ? (x) : (y))
8208
8209int
8210main ()
8211{
8212 gid_t gidset[NGID];
8213 int i, n;
8214 union { gid_t gval; long int lval; } val;
8215
8216 val.lval = -1;
8217 for (i = 0; i < NGID; i++)
8218 gidset[i] = val.gval;
8219 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8220 gidset);
8221 /* Exit non-zero if getgroups seems to require an array of ints. This
8222 happens when gid_t is short int but getgroups modifies an array
8223 of ints. */
8224 return n > 0 && gidset[n] != val.gval;
8225}
8226_ACEOF
8227if ac_fn_c_try_run "$LINENO"; then :
8228 ac_cv_type_getgroups=gid_t
8229else
8230 ac_cv_type_getgroups=int
8231fi
8232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8233 conftest.$ac_objext conftest.beam conftest.$ac_ext
8234fi
8235
8236if test $ac_cv_type_getgroups = cross; then
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238/* end confdefs.h. */
8239#include <unistd.h>
8240
8241_ACEOF
8242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8243 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8244 ac_cv_type_getgroups=gid_t
8245else
8246 ac_cv_type_getgroups=int
8247fi
8248rm -f conftest*
8249
8250fi
8251fi
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8253$as_echo "$ac_cv_type_getgroups" >&6; }
8254
8255cat >>confdefs.h <<_ACEOF
8256#define GETGROUPS_T $ac_cv_type_getgroups
8257_ACEOF
8258
8259
8260ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8261if test "x$ac_cv_type_mode_t" = xyes; then :
8262
8263else
8264
8265cat >>confdefs.h <<_ACEOF
8266#define mode_t int
8267_ACEOF
8268
8269fi
8270
8271ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8272if test "x$ac_cv_type_off_t" = xyes; then :
8273
8274else
8275
8276cat >>confdefs.h <<_ACEOF
8277#define off_t long int
8278_ACEOF
8279
8280fi
8281
8282ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8283if test "x$ac_cv_type_pid_t" = xyes; then :
8284
8285else
8286
8287cat >>confdefs.h <<_ACEOF
8288#define pid_t int
8289_ACEOF
8290
8291fi
8292
8293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8294$as_echo_n "checking return type of signal handlers... " >&6; }
8295if ${ac_cv_type_signal+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297else
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299/* end confdefs.h. */
8300#include <sys/types.h>
8301#include <signal.h>
8302
8303int
8304main ()
8305{
8306return *(signal (0, 0)) (0) == 1;
8307 ;
8308 return 0;
8309}
8310_ACEOF
8311if ac_fn_c_try_compile "$LINENO"; then :
8312 ac_cv_type_signal=int
8313else
8314 ac_cv_type_signal=void
8315fi
8316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317fi
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8319$as_echo "$ac_cv_type_signal" >&6; }
8320
8321cat >>confdefs.h <<_ACEOF
8322#define RETSIGTYPE $ac_cv_type_signal
8323_ACEOF
8324
8325
8326ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8327if test "x$ac_cv_type_size_t" = xyes; then :
8328
8329else
8330
8331cat >>confdefs.h <<_ACEOF
8332#define size_t unsigned int
8333_ACEOF
8334
8335fi
8336
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8338$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8339if ${ac_cv_type_uid_t+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341else
8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343/* end confdefs.h. */
8344#include <sys/types.h>
8345
8346_ACEOF
8347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8348 $EGREP "uid_t" >/dev/null 2>&1; then :
8349 ac_cv_type_uid_t=yes
8350else
8351 ac_cv_type_uid_t=no
8352fi
8353rm -f conftest*
8354
8355fi
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8357$as_echo "$ac_cv_type_uid_t" >&6; }
8358if test $ac_cv_type_uid_t = no; then
8359
8360$as_echo "#define uid_t int" >>confdefs.h
8361
8362
8363$as_echo "#define gid_t int" >>confdefs.h
8364
8365fi
8366
8367
ce3ec98a
MF
8368ALL_LINGUAS=
8369# If we haven't got the data from the intl directory,
8370# assume NLS is disabled.
8371USE_NLS=no
8372LIBINTL=
8373LIBINTL_DEP=
8374INCINTL=
8375XGETTEXT=
8376GMSGFMT=
8377POSUB=
8378
8379if test -f ../intl/config.intl; then
8380 . ../intl/config.intl
8381fi
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8383$as_echo_n "checking whether NLS is requested... " >&6; }
8384if test x"$USE_NLS" != xyes; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386$as_echo "no" >&6; }
8387else
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8389$as_echo "yes" >&6; }
8390
8391$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8392
8393
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8395$as_echo_n "checking for catalogs to be installed... " >&6; }
8396 # Look for .po and .gmo files in the source directory.
8397 CATALOGS=
8398 XLINGUAS=
8399 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8400 # If there aren't any .gmo files the shell will give us the
8401 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8402 # weeded out.
8403 case "$cat" in *\**)
8404 continue;;
8405 esac
8406 # The quadruple backslash is collapsed to a double backslash
8407 # by the backticks, then collapsed again by the double quotes,
8408 # leaving us with one backslash in the sed expression (right
8409 # before the dot that mustn't act as a wildcard).
8410 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8411 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8412 # The user is allowed to set LINGUAS to a list of languages to
8413 # install catalogs for. If it's empty that means "all of them."
8414 if test "x$LINGUAS" = x; then
8415 CATALOGS="$CATALOGS $cat"
8416 XLINGUAS="$XLINGUAS $lang"
8417 else
8418 case "$LINGUAS" in *$lang*)
8419 CATALOGS="$CATALOGS $cat"
8420 XLINGUAS="$XLINGUAS $lang"
8421 ;;
8422 esac
8423 fi
8424 done
8425 LINGUAS="$XLINGUAS"
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8427$as_echo "$LINGUAS" >&6; }
8428
8429
8430 DATADIRNAME=share
8431
8432 INSTOBJEXT=.mo
8433
8434 GENCAT=gencat
8435
8436 CATOBJEXT=.gmo
8437
8438fi
8439
b5689863
MF
8440
8441 # Use the system's zlib library.
8442 zlibdir="-L\$(top_builddir)/../zlib"
8443 zlibinc="-I\$(top_srcdir)/../zlib"
8444
8445# Check whether --with-system-zlib was given.
8446if test "${with_system_zlib+set}" = set; then :
8447 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8448 zlibdir=
8449 zlibinc=
8450 fi
8451
8452fi
8453
8454
8455
8456
8457
8458
8459 maybe_plugins=no
8460 for ac_header in dlfcn.h
8461do :
8462 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8463"
8464if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8465 cat >>confdefs.h <<_ACEOF
8466#define HAVE_DLFCN_H 1
8467_ACEOF
8468 maybe_plugins=yes
8469fi
8470
8471done
8472
8473 for ac_header in windows.h
8474do :
8475 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
8476"
8477if test "x$ac_cv_header_windows_h" = xyes; then :
8478 cat >>confdefs.h <<_ACEOF
8479#define HAVE_WINDOWS_H 1
8480_ACEOF
8481 maybe_plugins=yes
8482fi
8483
8484done
8485
8486
8487 # Check whether --enable-plugins was given.
8488if test "${enable_plugins+set}" = set; then :
8489 enableval=$enable_plugins; case "${enableval}" in
8490 no) plugins=no ;;
8491 *) plugins=yes
8492 if test "$maybe_plugins" != "yes" ; then
8493 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
8494 fi ;;
8495 esac
8496else
8497 plugins=$maybe_plugins
8498
8499fi
8500
8501 if test "$plugins" = "yes"; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
8503$as_echo_n "checking for library containing dlsym... " >&6; }
8504if ${ac_cv_search_dlsym+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506else
8507 ac_func_search_save_LIBS=$LIBS
8508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509/* end confdefs.h. */
8510
8511/* Override any GCC internal prototype to avoid an error.
8512 Use char because int might match the return type of a GCC
8513 builtin and then its argument prototype would still apply. */
8514#ifdef __cplusplus
8515extern "C"
8516#endif
8517char dlsym ();
8518int
8519main ()
8520{
8521return dlsym ();
8522 ;
8523 return 0;
8524}
8525_ACEOF
8526for ac_lib in '' dl; do
8527 if test -z "$ac_lib"; then
8528 ac_res="none required"
8529 else
8530 ac_res=-l$ac_lib
8531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8532 fi
8533 if ac_fn_c_try_link "$LINENO"; then :
8534 ac_cv_search_dlsym=$ac_res
8535fi
8536rm -f core conftest.err conftest.$ac_objext \
8537 conftest$ac_exeext
8538 if ${ac_cv_search_dlsym+:} false; then :
8539 break
8540fi
8541done
8542if ${ac_cv_search_dlsym+:} false; then :
8543
8544else
8545 ac_cv_search_dlsym=no
8546fi
8547rm conftest.$ac_ext
8548LIBS=$ac_func_search_save_LIBS
8549fi
8550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
8551$as_echo "$ac_cv_search_dlsym" >&6; }
8552ac_res=$ac_cv_search_dlsym
8553if test "$ac_res" != no; then :
8554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8555
8556fi
8557
8558 fi
8559
8560 if test "$plugins" = yes; then
8561 PLUGINS_TRUE=
8562 PLUGINS_FALSE='#'
8563else
8564 PLUGINS_TRUE='#'
8565 PLUGINS_FALSE=
8566fi
8567
8568
8569
8570
8571
8572# Set options
8573enable_dlopen=yes
8574
8575
8576
8577
8578 enable_win32_dll=no
8579
8580
8581 # Check whether --enable-shared was given.
8582if test "${enable_shared+set}" = set; then :
8583 enableval=$enable_shared; p=${PACKAGE-default}
8584 case $enableval in
8585 yes) enable_shared=yes ;;
8586 no) enable_shared=no ;;
8587 *)
8588 enable_shared=no
8589 # Look at the argument we got. We use all the common list separators.
8590 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8591 for pkg in $enableval; do
8592 IFS="$lt_save_ifs"
8593 if test "X$pkg" = "X$p"; then
8594 enable_shared=yes
8595 fi
8596 done
8597 IFS="$lt_save_ifs"
8598 ;;
8599 esac
8600else
8601 enable_shared=yes
8602fi
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612 # Check whether --enable-static was given.
8613if test "${enable_static+set}" = set; then :
8614 enableval=$enable_static; p=${PACKAGE-default}
8615 case $enableval in
8616 yes) enable_static=yes ;;
8617 no) enable_static=no ;;
8618 *)
8619 enable_static=no
8620 # Look at the argument we got. We use all the common list separators.
8621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8622 for pkg in $enableval; do
8623 IFS="$lt_save_ifs"
8624 if test "X$pkg" = "X$p"; then
8625 enable_static=yes
8626 fi
8627 done
8628 IFS="$lt_save_ifs"
8629 ;;
8630 esac
8631else
8632 enable_static=yes
8633fi
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644# Check whether --with-pic was given.
8645if test "${with_pic+set}" = set; then :
8646 withval=$with_pic; pic_mode="$withval"
8647else
8648 pic_mode=default
8649fi
8650
8651
8652test -z "$pic_mode" && pic_mode=default
8653
8654
8655
8656
8657
8658
8659
8660 # Check whether --enable-fast-install was given.
8661if test "${enable_fast_install+set}" = set; then :
8662 enableval=$enable_fast_install; p=${PACKAGE-default}
8663 case $enableval in
8664 yes) enable_fast_install=yes ;;
8665 no) enable_fast_install=no ;;
8666 *)
8667 enable_fast_install=no
8668 # Look at the argument we got. We use all the common list separators.
8669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8670 for pkg in $enableval; do
8671 IFS="$lt_save_ifs"
8672 if test "X$pkg" = "X$p"; then
8673 enable_fast_install=yes
8674 fi
8675 done
8676 IFS="$lt_save_ifs"
8677 ;;
8678 esac
8679else
8680 enable_fast_install=yes
8681fi
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693# This can be used to rebuild libtool when needed
8694LIBTOOL_DEPS="$ltmain"
8695
8696# Always use our own libtool.
8697LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724test -z "$LN_S" && LN_S="ln -s"
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739if test -n "${ZSH_VERSION+set}" ; then
8740 setopt NO_GLOB_SUBST
8741fi
8742
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8744$as_echo_n "checking for objdir... " >&6; }
8745if ${lt_cv_objdir+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747else
8748 rm -f .libs 2>/dev/null
8749mkdir .libs 2>/dev/null
8750if test -d .libs; then
8751 lt_cv_objdir=.libs
8752else
8753 # MS-DOS does not allow filenames that begin with a dot.
8754 lt_cv_objdir=_libs
8755fi
8756rmdir .libs 2>/dev/null
8757fi
8758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8759$as_echo "$lt_cv_objdir" >&6; }
8760objdir=$lt_cv_objdir
8761
8762
8763
8764
8765
8766cat >>confdefs.h <<_ACEOF
8767#define LT_OBJDIR "$lt_cv_objdir/"
8768_ACEOF
8769
8770
8771
8772
8773case $host_os in
8774aix3*)
8775 # AIX sometimes has problems with the GCC collect2 program. For some
8776 # reason, if we set the COLLECT_NAMES environment variable, the problems
8777 # vanish in a puff of smoke.
8778 if test "X${COLLECT_NAMES+set}" != Xset; then
8779 COLLECT_NAMES=
8780 export COLLECT_NAMES
8781 fi
8782 ;;
8783esac
8784
8785# Global variables:
8786ofile=libtool
8787can_build_shared=yes
8788
8789# All known linkers require a `.a' archive for static linking (except MSVC,
8790# which needs '.lib').
8791libext=a
8792
8793with_gnu_ld="$lt_cv_prog_gnu_ld"
8794
8795old_CC="$CC"
8796old_CFLAGS="$CFLAGS"
8797
8798# Set sane defaults for various variables
8799test -z "$CC" && CC=cc
8800test -z "$LTCC" && LTCC=$CC
8801test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8802test -z "$LD" && LD=ld
8803test -z "$ac_objext" && ac_objext=o
8804
8805for cc_temp in $compiler""; do
8806 case $cc_temp in
8807 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8808 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8809 \-*) ;;
8810 *) break;;
8811 esac
8812done
8813cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8814
8815
8816# Only perform the check for file, if the check method requires it
8817test -z "$MAGIC_CMD" && MAGIC_CMD=file
8818case $deplibs_check_method in
8819file_magic*)
8820 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8822$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8823if ${lt_cv_path_MAGIC_CMD+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825else
8826 case $MAGIC_CMD in
8827[\\/*] | ?:[\\/]*)
8828 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8829 ;;
8830*)
8831 lt_save_MAGIC_CMD="$MAGIC_CMD"
8832 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8833 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8834 for ac_dir in $ac_dummy; do
8835 IFS="$lt_save_ifs"
8836 test -z "$ac_dir" && ac_dir=.
8837 if test -f $ac_dir/${ac_tool_prefix}file; then
8838 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8839 if test -n "$file_magic_test_file"; then
8840 case $deplibs_check_method in
8841 "file_magic "*)
8842 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8843 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8844 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8845 $EGREP "$file_magic_regex" > /dev/null; then
8846 :
8847 else
8848 cat <<_LT_EOF 1>&2
8849
8850*** Warning: the command libtool uses to detect shared libraries,
8851*** $file_magic_cmd, produces output that libtool cannot recognize.
8852*** The result is that libtool may fail to recognize shared libraries
8853*** as such. This will affect the creation of libtool libraries that
8854*** depend on shared libraries, but programs linked with such libtool
8855*** libraries will work regardless of this problem. Nevertheless, you
8856*** may want to report the problem to your system manager and/or to
8857*** bug-libtool@gnu.org
8858
8859_LT_EOF
8860 fi ;;
8861 esac
8862 fi
8863 break
8864 fi
8865 done
8866 IFS="$lt_save_ifs"
8867 MAGIC_CMD="$lt_save_MAGIC_CMD"
8868 ;;
8869esac
8870fi
8871
8872MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8873if test -n "$MAGIC_CMD"; then
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8875$as_echo "$MAGIC_CMD" >&6; }
8876else
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878$as_echo "no" >&6; }
8879fi
8880
8881
8882
8883
8884
8885if test -z "$lt_cv_path_MAGIC_CMD"; then
8886 if test -n "$ac_tool_prefix"; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8888$as_echo_n "checking for file... " >&6; }
8889if ${lt_cv_path_MAGIC_CMD+:} false; then :
8890 $as_echo_n "(cached) " >&6
8891else
8892 case $MAGIC_CMD in
8893[\\/*] | ?:[\\/]*)
8894 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8895 ;;
8896*)
8897 lt_save_MAGIC_CMD="$MAGIC_CMD"
8898 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8899 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8900 for ac_dir in $ac_dummy; do
8901 IFS="$lt_save_ifs"
8902 test -z "$ac_dir" && ac_dir=.
8903 if test -f $ac_dir/file; then
8904 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8905 if test -n "$file_magic_test_file"; then
8906 case $deplibs_check_method in
8907 "file_magic "*)
8908 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8909 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8910 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8911 $EGREP "$file_magic_regex" > /dev/null; then
8912 :
8913 else
8914 cat <<_LT_EOF 1>&2
8915
8916*** Warning: the command libtool uses to detect shared libraries,
8917*** $file_magic_cmd, produces output that libtool cannot recognize.
8918*** The result is that libtool may fail to recognize shared libraries
8919*** as such. This will affect the creation of libtool libraries that
8920*** depend on shared libraries, but programs linked with such libtool
8921*** libraries will work regardless of this problem. Nevertheless, you
8922*** may want to report the problem to your system manager and/or to
8923*** bug-libtool@gnu.org
8924
8925_LT_EOF
8926 fi ;;
8927 esac
8928 fi
8929 break
8930 fi
8931 done
8932 IFS="$lt_save_ifs"
8933 MAGIC_CMD="$lt_save_MAGIC_CMD"
8934 ;;
8935esac
8936fi
8937
8938MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8939if test -n "$MAGIC_CMD"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8941$as_echo "$MAGIC_CMD" >&6; }
8942else
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944$as_echo "no" >&6; }
8945fi
8946
8947
8948 else
8949 MAGIC_CMD=:
8950 fi
8951fi
8952
8953 fi
8954 ;;
8955esac
8956
8957# Use C for the default configuration in the libtool script
8958
8959lt_save_CC="$CC"
8960ac_ext=c
8961ac_cpp='$CPP $CPPFLAGS'
8962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8964ac_compiler_gnu=$ac_cv_c_compiler_gnu
8965
8966
8967# Source file extension for C test sources.
8968ac_ext=c
8969
8970# Object file extension for compiled C test sources.
8971objext=o
8972objext=$objext
8973
8974# Code to be used in simple compile tests
8975lt_simple_compile_test_code="int some_variable = 0;"
8976
8977# Code to be used in simple link tests
8978lt_simple_link_test_code='int main(){return(0);}'
8979
8980
8981
8982
8983
8984
8985
8986# If no C compiler was specified, use CC.
8987LTCC=${LTCC-"$CC"}
8988
8989# If no C compiler flags were specified, use CFLAGS.
8990LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8991
8992# Allow CC to be a program name with arguments.
8993compiler=$CC
8994
8995# Save the default compiler, since it gets overwritten when the other
8996# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8997compiler_DEFAULT=$CC
8998
8999# save warnings/boilerplate of simple test code
9000ac_outfile=conftest.$ac_objext
9001echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9002eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9003_lt_compiler_boilerplate=`cat conftest.err`
9004$RM conftest*
9005
9006ac_outfile=conftest.$ac_objext
9007echo "$lt_simple_link_test_code" >conftest.$ac_ext
9008eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9009_lt_linker_boilerplate=`cat conftest.err`
9010$RM -r conftest*
9011
9012
9013## CAVEAT EMPTOR:
9014## There is no encapsulation within the following macros, do not change
9015## the running order or otherwise move them around unless you know exactly
9016## what you are doing...
9017if test -n "$compiler"; then
9018
9019lt_prog_compiler_no_builtin_flag=
9020
9021if test "$GCC" = yes; then
9022 case $cc_basename in
9023 nvcc*)
9024 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9025 *)
9026 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9027 esac
9028
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9030$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9031if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9032 $as_echo_n "(cached) " >&6
9033else
9034 lt_cv_prog_compiler_rtti_exceptions=no
9035 ac_outfile=conftest.$ac_objext
9036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9037 lt_compiler_flag="-fno-rtti -fno-exceptions"
9038 # Insert the option either (1) after the last *FLAGS variable, or
9039 # (2) before a word containing "conftest.", or (3) at the end.
9040 # Note that $ac_compile itself does not contain backslashes and begins
9041 # with a dollar sign (not a hyphen), so the echo should work correctly.
9042 # The option is referenced via a variable to avoid confusing sed.
9043 lt_compile=`echo "$ac_compile" | $SED \
9044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9046 -e 's:$: $lt_compiler_flag:'`
9047 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9048 (eval "$lt_compile" 2>conftest.err)
9049 ac_status=$?
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 if (exit $ac_status) && test -s "$ac_outfile"; then
9053 # The compiler can only warn and ignore the option if not recognized
9054 # So say no if there are warnings other than the usual output.
9055 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9057 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9058 lt_cv_prog_compiler_rtti_exceptions=yes
9059 fi
9060 fi
9061 $RM conftest*
9062
9063fi
9064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9065$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9066
9067if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9068 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9069else
9070 :
9071fi
9072
9073fi
9074
9075
9076
9077
9078
9079
9080 lt_prog_compiler_wl=
9081lt_prog_compiler_pic=
9082lt_prog_compiler_static=
9083
9084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9085$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9086
9087 if test "$GCC" = yes; then
9088 lt_prog_compiler_wl='-Wl,'
9089 lt_prog_compiler_static='-static'
9090
9091 case $host_os in
9092 aix*)
9093 # All AIX code is PIC.
9094 if test "$host_cpu" = ia64; then
9095 # AIX 5 now supports IA64 processor
9096 lt_prog_compiler_static='-Bstatic'
9097 fi
9098 lt_prog_compiler_pic='-fPIC'
9099 ;;
9100
9101 amigaos*)
9102 case $host_cpu in
9103 powerpc)
9104 # see comment about AmigaOS4 .so support
9105 lt_prog_compiler_pic='-fPIC'
9106 ;;
9107 m68k)
9108 # FIXME: we need at least 68020 code to build shared libraries, but
9109 # adding the `-m68020' flag to GCC prevents building anything better,
9110 # like `-m68040'.
9111 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9112 ;;
9113 esac
9114 ;;
9115
9116 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9117 # PIC is the default for these OSes.
9118 ;;
9119
9120 mingw* | cygwin* | pw32* | os2* | cegcc*)
9121 # This hack is so that the source file can tell whether it is being
9122 # built for inclusion in a dll (and should export symbols for example).
9123 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9124 # (--disable-auto-import) libraries
9125 lt_prog_compiler_pic='-DDLL_EXPORT'
9126 ;;
9127
9128 darwin* | rhapsody*)
9129 # PIC is the default on this platform
9130 # Common symbols not allowed in MH_DYLIB files
9131 lt_prog_compiler_pic='-fno-common'
9132 ;;
9133
9134 haiku*)
9135 # PIC is the default for Haiku.
9136 # The "-static" flag exists, but is broken.
9137 lt_prog_compiler_static=
9138 ;;
9139
9140 hpux*)
9141 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9142 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9143 # sets the default TLS model and affects inlining.
9144 case $host_cpu in
9145 hppa*64*)
9146 # +Z the default
9147 ;;
9148 *)
9149 lt_prog_compiler_pic='-fPIC'
9150 ;;
9151 esac
9152 ;;
9153
9154 interix[3-9]*)
9155 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9156 # Instead, we relocate shared libraries at runtime.
9157 ;;
9158
9159 msdosdjgpp*)
9160 # Just because we use GCC doesn't mean we suddenly get shared libraries
9161 # on systems that don't support them.
9162 lt_prog_compiler_can_build_shared=no
9163 enable_shared=no
9164 ;;
9165
9166 *nto* | *qnx*)
9167 # QNX uses GNU C++, but need to define -shared option too, otherwise
9168 # it will coredump.
9169 lt_prog_compiler_pic='-fPIC -shared'
9170 ;;
9171
9172 sysv4*MP*)
9173 if test -d /usr/nec; then
9174 lt_prog_compiler_pic=-Kconform_pic
9175 fi
9176 ;;
9177
9178 *)
9179 lt_prog_compiler_pic='-fPIC'
9180 ;;
9181 esac
9182
9183 case $cc_basename in
9184 nvcc*) # Cuda Compiler Driver 2.2
9185 lt_prog_compiler_wl='-Xlinker '
9186 lt_prog_compiler_pic='-Xcompiler -fPIC'
9187 ;;
9188 esac
9189 else
9190 # PORTME Check for flag to pass linker flags through the system compiler.
9191 case $host_os in
9192 aix*)
9193 lt_prog_compiler_wl='-Wl,'
9194 if test "$host_cpu" = ia64; then
9195 # AIX 5 now supports IA64 processor
9196 lt_prog_compiler_static='-Bstatic'
9197 else
9198 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9199 fi
9200 ;;
9201
9202 mingw* | cygwin* | pw32* | os2* | cegcc*)
9203 # This hack is so that the source file can tell whether it is being
9204 # built for inclusion in a dll (and should export symbols for example).
9205 lt_prog_compiler_pic='-DDLL_EXPORT'
9206 ;;
9207
9208 hpux9* | hpux10* | hpux11*)
9209 lt_prog_compiler_wl='-Wl,'
9210 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9211 # not for PA HP-UX.
9212 case $host_cpu in
9213 hppa*64*|ia64*)
9214 # +Z the default
9215 ;;
9216 *)
9217 lt_prog_compiler_pic='+Z'
9218 ;;
9219 esac
9220 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9221 lt_prog_compiler_static='${wl}-a ${wl}archive'
9222 ;;
9223
9224 irix5* | irix6* | nonstopux*)
9225 lt_prog_compiler_wl='-Wl,'
9226 # PIC (with -KPIC) is the default.
9227 lt_prog_compiler_static='-non_shared'
9228 ;;
9229
9230 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9231 case $cc_basename in
9232 # old Intel for x86_64 which still supported -KPIC.
9233 ecc*)
9234 lt_prog_compiler_wl='-Wl,'
9235 lt_prog_compiler_pic='-KPIC'
9236 lt_prog_compiler_static='-static'
9237 ;;
9238 # icc used to be incompatible with GCC.
9239 # ICC 10 doesn't accept -KPIC any more.
9240 icc* | ifort*)
9241 lt_prog_compiler_wl='-Wl,'
9242 lt_prog_compiler_pic='-fPIC'
9243 lt_prog_compiler_static='-static'
9244 ;;
9245 # Lahey Fortran 8.1.
9246 lf95*)
9247 lt_prog_compiler_wl='-Wl,'
9248 lt_prog_compiler_pic='--shared'
9249 lt_prog_compiler_static='--static'
9250 ;;
9251 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9252 # Portland Group compilers (*not* the Pentium gcc compiler,
9253 # which looks to be a dead project)
9254 lt_prog_compiler_wl='-Wl,'
9255 lt_prog_compiler_pic='-fpic'
9256 lt_prog_compiler_static='-Bstatic'
9257 ;;
9258 ccc*)
9259 lt_prog_compiler_wl='-Wl,'
9260 # All Alpha code is PIC.
9261 lt_prog_compiler_static='-non_shared'
9262 ;;
9263 xl* | bgxl* | bgf* | mpixl*)
9264 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9265 lt_prog_compiler_wl='-Wl,'
9266 lt_prog_compiler_pic='-qpic'
9267 lt_prog_compiler_static='-qstaticlink'
9268 ;;
9269 *)
9270 case `$CC -V 2>&1 | sed 5q` in
9271 *Sun\ F* | *Sun*Fortran*)
9272 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9273 lt_prog_compiler_pic='-KPIC'
9274 lt_prog_compiler_static='-Bstatic'
9275 lt_prog_compiler_wl=''
9276 ;;
9277 *Sun\ C*)
9278 # Sun C 5.9
9279 lt_prog_compiler_pic='-KPIC'
9280 lt_prog_compiler_static='-Bstatic'
9281 lt_prog_compiler_wl='-Wl,'
9282 ;;
9283 esac
9284 ;;
9285 esac
9286 ;;
9287
9288 newsos6)
9289 lt_prog_compiler_pic='-KPIC'
9290 lt_prog_compiler_static='-Bstatic'
9291 ;;
9292
9293 *nto* | *qnx*)
9294 # QNX uses GNU C++, but need to define -shared option too, otherwise
9295 # it will coredump.
9296 lt_prog_compiler_pic='-fPIC -shared'
9297 ;;
9298
9299 osf3* | osf4* | osf5*)
9300 lt_prog_compiler_wl='-Wl,'
9301 # All OSF/1 code is PIC.
9302 lt_prog_compiler_static='-non_shared'
9303 ;;
9304
9305 rdos*)
9306 lt_prog_compiler_static='-non_shared'
9307 ;;
9308
9309 solaris*)
9310 lt_prog_compiler_pic='-KPIC'
9311 lt_prog_compiler_static='-Bstatic'
9312 case $cc_basename in
9313 f77* | f90* | f95*)
9314 lt_prog_compiler_wl='-Qoption ld ';;
9315 *)
9316 lt_prog_compiler_wl='-Wl,';;
9317 esac
9318 ;;
9319
9320 sunos4*)
9321 lt_prog_compiler_wl='-Qoption ld '
9322 lt_prog_compiler_pic='-PIC'
9323 lt_prog_compiler_static='-Bstatic'
9324 ;;
9325
9326 sysv4 | sysv4.2uw2* | sysv4.3*)
9327 lt_prog_compiler_wl='-Wl,'
9328 lt_prog_compiler_pic='-KPIC'
9329 lt_prog_compiler_static='-Bstatic'
9330 ;;
9331
9332 sysv4*MP*)
9333 if test -d /usr/nec ;then
9334 lt_prog_compiler_pic='-Kconform_pic'
9335 lt_prog_compiler_static='-Bstatic'
9336 fi
9337 ;;
9338
9339 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9340 lt_prog_compiler_wl='-Wl,'
9341 lt_prog_compiler_pic='-KPIC'
9342 lt_prog_compiler_static='-Bstatic'
9343 ;;
9344
9345 unicos*)
9346 lt_prog_compiler_wl='-Wl,'
9347 lt_prog_compiler_can_build_shared=no
9348 ;;
9349
9350 uts4*)
9351 lt_prog_compiler_pic='-pic'
9352 lt_prog_compiler_static='-Bstatic'
9353 ;;
9354
9355 *)
9356 lt_prog_compiler_can_build_shared=no
9357 ;;
9358 esac
9359 fi
9360
9361case $host_os in
9362 # For platforms which do not support PIC, -DPIC is meaningless:
9363 *djgpp*)
9364 lt_prog_compiler_pic=
9365 ;;
9366 *)
9367 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9368 ;;
9369esac
9370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9371$as_echo "$lt_prog_compiler_pic" >&6; }
9372
9373
9374
9375
9376
9377
9378#
9379# Check to make sure the PIC flag actually works.
9380#
9381if test -n "$lt_prog_compiler_pic"; then
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9383$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9384if ${lt_cv_prog_compiler_pic_works+:} false; then :
9385 $as_echo_n "(cached) " >&6
9386else
9387 lt_cv_prog_compiler_pic_works=no
9388 ac_outfile=conftest.$ac_objext
9389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9390 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9391 # Insert the option either (1) after the last *FLAGS variable, or
9392 # (2) before a word containing "conftest.", or (3) at the end.
9393 # Note that $ac_compile itself does not contain backslashes and begins
9394 # with a dollar sign (not a hyphen), so the echo should work correctly.
9395 # The option is referenced via a variable to avoid confusing sed.
9396 lt_compile=`echo "$ac_compile" | $SED \
9397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9399 -e 's:$: $lt_compiler_flag:'`
9400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9401 (eval "$lt_compile" 2>conftest.err)
9402 ac_status=$?
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 if (exit $ac_status) && test -s "$ac_outfile"; then
9406 # The compiler can only warn and ignore the option if not recognized
9407 # So say no if there are warnings other than the usual output.
9408 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9410 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9411 lt_cv_prog_compiler_pic_works=yes
9412 fi
9413 fi
9414 $RM conftest*
9415
9416fi
9417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9418$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9419
9420if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9421 case $lt_prog_compiler_pic in
9422 "" | " "*) ;;
9423 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9424 esac
9425else
9426 lt_prog_compiler_pic=
9427 lt_prog_compiler_can_build_shared=no
9428fi
9429
9430fi
9431
9432
9433
9434
9435
9436
9437#
9438# Check to make sure the static flag actually works.
9439#
9440wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9442$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9443if ${lt_cv_prog_compiler_static_works+:} false; then :
9444 $as_echo_n "(cached) " >&6
9445else
9446 lt_cv_prog_compiler_static_works=no
9447 save_LDFLAGS="$LDFLAGS"
9448 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9449 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9450 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9451 # The linker can only warn and ignore the option if not recognized
9452 # So say no if there are warnings
9453 if test -s conftest.err; then
9454 # Append any errors to the config.log.
9455 cat conftest.err 1>&5
9456 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9458 if diff conftest.exp conftest.er2 >/dev/null; then
9459 lt_cv_prog_compiler_static_works=yes
9460 fi
9461 else
9462 lt_cv_prog_compiler_static_works=yes
9463 fi
9464 fi
9465 $RM -r conftest*
9466 LDFLAGS="$save_LDFLAGS"
9467
9468fi
9469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9470$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9471
9472if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9473 :
9474else
9475 lt_prog_compiler_static=
9476fi
9477
9478
9479
9480
9481
9482
9483
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9485$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9486if ${lt_cv_prog_compiler_c_o+:} false; then :
9487 $as_echo_n "(cached) " >&6
9488else
9489 lt_cv_prog_compiler_c_o=no
9490 $RM -r conftest 2>/dev/null
9491 mkdir conftest
9492 cd conftest
9493 mkdir out
9494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9495
9496 lt_compiler_flag="-o out/conftest2.$ac_objext"
9497 # Insert the option either (1) after the last *FLAGS variable, or
9498 # (2) before a word containing "conftest.", or (3) at the end.
9499 # Note that $ac_compile itself does not contain backslashes and begins
9500 # with a dollar sign (not a hyphen), so the echo should work correctly.
9501 lt_compile=`echo "$ac_compile" | $SED \
9502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9504 -e 's:$: $lt_compiler_flag:'`
9505 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9506 (eval "$lt_compile" 2>out/conftest.err)
9507 ac_status=$?
9508 cat out/conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9511 then
9512 # The compiler can only warn and ignore the option if not recognized
9513 # So say no if there are warnings
9514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9515 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9516 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9517 lt_cv_prog_compiler_c_o=yes
9518 fi
9519 fi
9520 chmod u+w . 2>&5
9521 $RM conftest*
9522 # SGI C++ compiler will create directory out/ii_files/ for
9523 # template instantiation
9524 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9525 $RM out/* && rmdir out
9526 cd ..
9527 $RM -r conftest
9528 $RM conftest*
9529
9530fi
9531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9532$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9533
9534
9535
9536
9537
9538
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9540$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9541if ${lt_cv_prog_compiler_c_o+:} false; then :
9542 $as_echo_n "(cached) " >&6
9543else
9544 lt_cv_prog_compiler_c_o=no
9545 $RM -r conftest 2>/dev/null
9546 mkdir conftest
9547 cd conftest
9548 mkdir out
9549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9550
9551 lt_compiler_flag="-o out/conftest2.$ac_objext"
9552 # Insert the option either (1) after the last *FLAGS variable, or
9553 # (2) before a word containing "conftest.", or (3) at the end.
9554 # Note that $ac_compile itself does not contain backslashes and begins
9555 # with a dollar sign (not a hyphen), so the echo should work correctly.
9556 lt_compile=`echo "$ac_compile" | $SED \
9557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9559 -e 's:$: $lt_compiler_flag:'`
9560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9561 (eval "$lt_compile" 2>out/conftest.err)
9562 ac_status=$?
9563 cat out/conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9566 then
9567 # The compiler can only warn and ignore the option if not recognized
9568 # So say no if there are warnings
9569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9572 lt_cv_prog_compiler_c_o=yes
9573 fi
9574 fi
9575 chmod u+w . 2>&5
9576 $RM conftest*
9577 # SGI C++ compiler will create directory out/ii_files/ for
9578 # template instantiation
9579 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9580 $RM out/* && rmdir out
9581 cd ..
9582 $RM -r conftest
9583 $RM conftest*
9584
9585fi
9586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9587$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9588
9589
9590
9591
9592hard_links="nottested"
9593if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9594 # do not overwrite the value of need_locks provided by the user
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9596$as_echo_n "checking if we can lock with hard links... " >&6; }
9597 hard_links=yes
9598 $RM conftest*
9599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9600 touch conftest.a
9601 ln conftest.a conftest.b 2>&5 || hard_links=no
9602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9604$as_echo "$hard_links" >&6; }
9605 if test "$hard_links" = no; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9607$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9608 need_locks=warn
9609 fi
9610else
9611 need_locks=no
9612fi
9613
9614
9615
9616
9617
9618
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9620$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9621
9622 runpath_var=
9623 allow_undefined_flag=
9624 always_export_symbols=no
9625 archive_cmds=
9626 archive_expsym_cmds=
9627 compiler_needs_object=no
9628 enable_shared_with_static_runtimes=no
9629 export_dynamic_flag_spec=
9630 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9631 hardcode_automatic=no
9632 hardcode_direct=no
9633 hardcode_direct_absolute=no
9634 hardcode_libdir_flag_spec=
9635 hardcode_libdir_flag_spec_ld=
9636 hardcode_libdir_separator=
9637 hardcode_minus_L=no
9638 hardcode_shlibpath_var=unsupported
9639 inherit_rpath=no
9640 link_all_deplibs=unknown
9641 module_cmds=
9642 module_expsym_cmds=
9643 old_archive_from_new_cmds=
9644 old_archive_from_expsyms_cmds=
9645 thread_safe_flag_spec=
9646 whole_archive_flag_spec=
9647 # include_expsyms should be a list of space-separated symbols to be *always*
9648 # included in the symbol list
9649 include_expsyms=
9650 # exclude_expsyms can be an extended regexp of symbols to exclude
9651 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9652 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9653 # as well as any symbol that contains `d'.
9654 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9655 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9656 # platforms (ab)use it in PIC code, but their linkers get confused if
9657 # the symbol is explicitly referenced. Since portable code cannot
9658 # rely on this symbol name, it's probably fine to never include it in
9659 # preloaded symbol tables.
9660 # Exclude shared library initialization/finalization symbols.
9661 extract_expsyms_cmds=
9662
9663 case $host_os in
9664 cygwin* | mingw* | pw32* | cegcc*)
9665 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9666 # When not using gcc, we currently assume that we are using
9667 # Microsoft Visual C++.
9668 if test "$GCC" != yes; then
9669 with_gnu_ld=no
9670 fi
9671 ;;
9672 interix*)
9673 # we just hope/assume this is gcc and not c89 (= MSVC++)
9674 with_gnu_ld=yes
9675 ;;
9676 openbsd*)
9677 with_gnu_ld=no
9678 ;;
9679 esac
9680
9681 ld_shlibs=yes
9682
9683 # On some targets, GNU ld is compatible enough with the native linker
9684 # that we're better off using the native interface for both.
9685 lt_use_gnu_ld_interface=no
9686 if test "$with_gnu_ld" = yes; then
9687 case $host_os in
9688 aix*)
9689 # The AIX port of GNU ld has always aspired to compatibility
9690 # with the native linker. However, as the warning in the GNU ld
9691 # block says, versions before 2.19.5* couldn't really create working
9692 # shared libraries, regardless of the interface used.
9693 case `$LD -v 2>&1` in
9694 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9695 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9696 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9697 *)
9698 lt_use_gnu_ld_interface=yes
9699 ;;
9700 esac
9701 ;;
9702 *)
9703 lt_use_gnu_ld_interface=yes
9704 ;;
9705 esac
9706 fi
9707
9708 if test "$lt_use_gnu_ld_interface" = yes; then
9709 # If archive_cmds runs LD, not CC, wlarc should be empty
9710 wlarc='${wl}'
9711
9712 # Set some defaults for GNU ld with shared library support. These
9713 # are reset later if shared libraries are not supported. Putting them
9714 # here allows them to be overridden if necessary.
9715 runpath_var=LD_RUN_PATH
9716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9717 export_dynamic_flag_spec='${wl}--export-dynamic'
9718 # ancient GNU ld didn't support --whole-archive et. al.
9719 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9720 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9721 else
9722 whole_archive_flag_spec=
9723 fi
9724 supports_anon_versioning=no
9725 case `$LD -v 2>&1` in
9726 *GNU\ gold*) supports_anon_versioning=yes ;;
9727 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9728 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9729 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9730 *\ 2.11.*) ;; # other 2.11 versions
9731 *) supports_anon_versioning=yes ;;
9732 esac
9733
9734 # See if GNU ld supports shared libraries.
9735 case $host_os in
9736 aix[3-9]*)
9737 # On AIX/PPC, the GNU linker is very broken
9738 if test "$host_cpu" != ia64; then
9739 ld_shlibs=no
9740 cat <<_LT_EOF 1>&2
9741
9742*** Warning: the GNU linker, at least up to release 2.19, is reported
9743*** to be unable to reliably create shared libraries on AIX.
9744*** Therefore, libtool is disabling shared libraries support. If you
9745*** really care for shared libraries, you may want to install binutils
9746*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9747*** You will then need to restart the configuration process.
9748
9749_LT_EOF
9750 fi
9751 ;;
9752
9753 amigaos*)
9754 case $host_cpu in
9755 powerpc)
9756 # see comment about AmigaOS4 .so support
9757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9758 archive_expsym_cmds=''
9759 ;;
9760 m68k)
9761 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)'
9762 hardcode_libdir_flag_spec='-L$libdir'
9763 hardcode_minus_L=yes
9764 ;;
9765 esac
9766 ;;
9767
9768 beos*)
9769 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9770 allow_undefined_flag=unsupported
9771 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9772 # support --undefined. This deserves some investigation. FIXME
9773 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9774 else
9775 ld_shlibs=no
9776 fi
9777 ;;
9778
9779 cygwin* | mingw* | pw32* | cegcc*)
9780 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9781 # as there is no search path for DLLs.
9782 hardcode_libdir_flag_spec='-L$libdir'
9783 export_dynamic_flag_spec='${wl}--export-all-symbols'
9784 allow_undefined_flag=unsupported
9785 always_export_symbols=no
9786 enable_shared_with_static_runtimes=yes
9787 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9788
9789 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9791 # If the export-symbols file already is a .def file (1st line
9792 # is EXPORTS), use it as is; otherwise, prepend...
9793 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9794 cp $export_symbols $output_objdir/$soname.def;
9795 else
9796 echo EXPORTS > $output_objdir/$soname.def;
9797 cat $export_symbols >> $output_objdir/$soname.def;
9798 fi~
9799 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9800 else
9801 ld_shlibs=no
9802 fi
9803 ;;
9804
9805 haiku*)
9806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9807 link_all_deplibs=yes
9808 ;;
9809
9810 interix[3-9]*)
9811 hardcode_direct=no
9812 hardcode_shlibpath_var=no
9813 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9814 export_dynamic_flag_spec='${wl}-E'
9815 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9816 # Instead, shared libraries are loaded at an image base (0x10000000 by
9817 # default) and relocated if they conflict, which is a slow very memory
9818 # consuming and fragmenting process. To avoid this, we pick a random,
9819 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9820 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9821 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9822 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'
9823 ;;
9824
9825 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9826 tmp_diet=no
9827 if test "$host_os" = linux-dietlibc; then
9828 case $cc_basename in
9829 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9830 esac
9831 fi
9832 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9833 && test "$tmp_diet" = no
9834 then
9835 tmp_addflag=' $pic_flag'
9836 tmp_sharedflag='-shared'
9837 case $cc_basename,$host_cpu in
9838 pgcc*) # Portland Group C compiler
9839 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'
9840 tmp_addflag=' $pic_flag'
9841 ;;
9842 pgf77* | pgf90* | pgf95* | pgfortran*)
9843 # Portland Group f77 and f90 compilers
9844 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'
9845 tmp_addflag=' $pic_flag -Mnomain' ;;
9846 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9847 tmp_addflag=' -i_dynamic' ;;
9848 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9849 tmp_addflag=' -i_dynamic -nofor_main' ;;
9850 ifc* | ifort*) # Intel Fortran compiler
9851 tmp_addflag=' -nofor_main' ;;
9852 lf95*) # Lahey Fortran 8.1
9853 whole_archive_flag_spec=
9854 tmp_sharedflag='--shared' ;;
9855 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9856 tmp_sharedflag='-qmkshrobj'
9857 tmp_addflag= ;;
9858 nvcc*) # Cuda Compiler Driver 2.2
9859 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'
9860 compiler_needs_object=yes
9861 ;;
9862 esac
9863 case `$CC -V 2>&1 | sed 5q` in
9864 *Sun\ C*) # Sun C 5.9
9865 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'
9866 compiler_needs_object=yes
9867 tmp_sharedflag='-G' ;;
9868 *Sun\ F*) # Sun Fortran 8.3
9869 tmp_sharedflag='-G' ;;
9870 esac
9871 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9872
9873 if test "x$supports_anon_versioning" = xyes; then
9874 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9875 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9876 echo "local: *; };" >> $output_objdir/$libname.ver~
9877 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9878 fi
9879
9880 case $cc_basename in
9881 xlf* | bgf* | bgxlf* | mpixlf*)
9882 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9883 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9884 hardcode_libdir_flag_spec=
9885 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9886 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9887 if test "x$supports_anon_versioning" = xyes; then
9888 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9889 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9890 echo "local: *; };" >> $output_objdir/$libname.ver~
9891 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9892 fi
9893 ;;
9894 esac
9895 else
9896 ld_shlibs=no
9897 fi
9898 ;;
9899
9900 netbsd*)
9901 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9902 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9903 wlarc=
9904 else
9905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9906 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9907 fi
9908 ;;
9909
9910 solaris*)
9911 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9912 ld_shlibs=no
9913 cat <<_LT_EOF 1>&2
9914
9915*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9916*** create shared libraries on Solaris systems. Therefore, libtool
9917*** is disabling shared libraries support. We urge you to upgrade GNU
9918*** binutils to release 2.9.1 or newer. Another option is to modify
9919*** your PATH or compiler configuration so that the native linker is
9920*** used, and then restart.
9921
9922_LT_EOF
9923 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9925 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9926 else
9927 ld_shlibs=no
9928 fi
9929 ;;
9930
9931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9932 case `$LD -v 2>&1` in
9933 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9934 ld_shlibs=no
9935 cat <<_LT_EOF 1>&2
9936
9937*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9938*** reliably create shared libraries on SCO systems. Therefore, libtool
9939*** is disabling shared libraries support. We urge you to upgrade GNU
9940*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9941*** your PATH or compiler configuration so that the native linker is
9942*** used, and then restart.
9943
9944_LT_EOF
9945 ;;
9946 *)
9947 # For security reasons, it is highly recommended that you always
9948 # use absolute paths for naming shared libraries, and exclude the
9949 # DT_RUNPATH tag from executables and libraries. But doing so
9950 # requires that you compile everything twice, which is a pain.
9951 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9952 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9955 else
9956 ld_shlibs=no
9957 fi
9958 ;;
9959 esac
9960 ;;
9961
9962 sunos4*)
9963 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9964 wlarc=
9965 hardcode_direct=yes
9966 hardcode_shlibpath_var=no
9967 ;;
9968
9969 *)
9970 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9972 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9973 else
9974 ld_shlibs=no
9975 fi
9976 ;;
9977 esac
9978
9979 if test "$ld_shlibs" = no; then
9980 runpath_var=
9981 hardcode_libdir_flag_spec=
9982 export_dynamic_flag_spec=
9983 whole_archive_flag_spec=
9984 fi
9985 else
9986 # PORTME fill in a description of your system's linker (not GNU ld)
9987 case $host_os in
9988 aix3*)
9989 allow_undefined_flag=unsupported
9990 always_export_symbols=yes
9991 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'
9992 # Note: this linker hardcodes the directories in LIBPATH if there
9993 # are no directories specified by -L.
9994 hardcode_minus_L=yes
9995 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9996 # Neither direct hardcoding nor static linking is supported with a
9997 # broken collect2.
9998 hardcode_direct=unsupported
9999 fi
10000 ;;
10001
10002 aix[4-9]*)
10003 if test "$host_cpu" = ia64; then
10004 # On IA64, the linker does run time linking by default, so we don't
10005 # have to do anything special.
10006 aix_use_runtimelinking=no
10007 exp_sym_flag='-Bexport'
10008 no_entry_flag=""
10009 else
10010 # If we're using GNU nm, then we don't want the "-C" option.
10011 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10012 # Also, AIX nm treats weak defined symbols like other global
10013 # defined symbols, whereas GNU nm marks them as "W".
10014 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10015 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'
10016 else
10017 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'
10018 fi
10019 aix_use_runtimelinking=no
10020
10021 # Test if we are trying to use run time linking or normal
10022 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10023 # need to do runtime linking.
10024 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10025 for ld_flag in $LDFLAGS; do
10026 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10027 aix_use_runtimelinking=yes
10028 break
10029 fi
10030 done
10031 ;;
10032 esac
10033
10034 exp_sym_flag='-bexport'
10035 no_entry_flag='-bnoentry'
10036 fi
10037
10038 # When large executables or shared objects are built, AIX ld can
10039 # have problems creating the table of contents. If linking a library
10040 # or program results in "error TOC overflow" add -mminimal-toc to
10041 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10042 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10043
10044 archive_cmds=''
10045 hardcode_direct=yes
10046 hardcode_direct_absolute=yes
10047 hardcode_libdir_separator=':'
10048 link_all_deplibs=yes
10049 file_list_spec='${wl}-f,'
10050
10051 if test "$GCC" = yes; then
10052 case $host_os in aix4.[012]|aix4.[012].*)
10053 # We only want to do this on AIX 4.2 and lower, the check
10054 # below for broken collect2 doesn't work under 4.3+
10055 collect2name=`${CC} -print-prog-name=collect2`
10056 if test -f "$collect2name" &&
10057 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10058 then
10059 # We have reworked collect2
10060 :
10061 else
10062 # We have old collect2
10063 hardcode_direct=unsupported
10064 # It fails to find uninstalled libraries when the uninstalled
10065 # path is not listed in the libpath. Setting hardcode_minus_L
10066 # to unsupported forces relinking
10067 hardcode_minus_L=yes
10068 hardcode_libdir_flag_spec='-L$libdir'
10069 hardcode_libdir_separator=
10070 fi
10071 ;;
10072 esac
10073 shared_flag='-shared'
10074 if test "$aix_use_runtimelinking" = yes; then
10075 shared_flag="$shared_flag "'${wl}-G'
10076 fi
10077 else
10078 # not using gcc
10079 if test "$host_cpu" = ia64; then
10080 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10081 # chokes on -Wl,-G. The following line is correct:
10082 shared_flag='-G'
10083 else
10084 if test "$aix_use_runtimelinking" = yes; then
10085 shared_flag='${wl}-G'
10086 else
10087 shared_flag='${wl}-bM:SRE'
10088 fi
10089 fi
10090 fi
10091
10092 export_dynamic_flag_spec='${wl}-bexpall'
10093 # It seems that -bexpall does not export symbols beginning with
10094 # underscore (_), so it is better to generate a list of symbols to export.
10095 always_export_symbols=yes
10096 if test "$aix_use_runtimelinking" = yes; then
10097 # Warning - without using the other runtime loading flags (-brtl),
10098 # -berok will link without error, but may produce a broken library.
10099 allow_undefined_flag='-berok'
10100 # Determine the default libpath from the value encoded in an
10101 # empty executable.
10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103/* end confdefs.h. */
10104
10105int
10106main ()
10107{
10108
10109 ;
10110 return 0;
10111}
10112_ACEOF
10113if ac_fn_c_try_link "$LINENO"; then :
10114
10115lt_aix_libpath_sed='
10116 /Import File Strings/,/^$/ {
10117 /^0/ {
10118 s/^0 *\(.*\)$/\1/
10119 p
10120 }
10121 }'
10122aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10123# Check for a 64-bit object if we didn't find anything.
10124if test -z "$aix_libpath"; then
10125 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10126fi
10127fi
10128rm -f core conftest.err conftest.$ac_objext \
10129 conftest$ac_exeext conftest.$ac_ext
10130if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10131
10132 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10133 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"
10134 else
10135 if test "$host_cpu" = ia64; then
10136 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10137 allow_undefined_flag="-z nodefs"
10138 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"
10139 else
10140 # Determine the default libpath from the value encoded in an
10141 # empty executable.
10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143/* end confdefs.h. */
10144
10145int
10146main ()
10147{
10148
10149 ;
10150 return 0;
10151}
10152_ACEOF
10153if ac_fn_c_try_link "$LINENO"; then :
10154
10155lt_aix_libpath_sed='
10156 /Import File Strings/,/^$/ {
10157 /^0/ {
10158 s/^0 *\(.*\)$/\1/
10159 p
10160 }
10161 }'
10162aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10163# Check for a 64-bit object if we didn't find anything.
10164if test -z "$aix_libpath"; then
10165 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10166fi
10167fi
10168rm -f core conftest.err conftest.$ac_objext \
10169 conftest$ac_exeext conftest.$ac_ext
10170if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10171
10172 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10173 # Warning - without using the other run time loading flags,
10174 # -berok will link without error, but may produce a broken library.
10175 no_undefined_flag=' ${wl}-bernotok'
10176 allow_undefined_flag=' ${wl}-berok'
10177 if test "$with_gnu_ld" = yes; then
10178 # We only use this code for GNU lds that support --whole-archive.
10179 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10180 else
10181 # Exported symbols can be pulled into shared objects from archives
10182 whole_archive_flag_spec='$convenience'
10183 fi
10184 archive_cmds_need_lc=yes
10185 # This is similar to how AIX traditionally builds its shared libraries.
10186 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'
10187 fi
10188 fi
10189 ;;
10190
10191 amigaos*)
10192 case $host_cpu in
10193 powerpc)
10194 # see comment about AmigaOS4 .so support
10195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10196 archive_expsym_cmds=''
10197 ;;
10198 m68k)
10199 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)'
10200 hardcode_libdir_flag_spec='-L$libdir'
10201 hardcode_minus_L=yes
10202 ;;
10203 esac
10204 ;;
10205
10206 bsdi[45]*)
10207 export_dynamic_flag_spec=-rdynamic
10208 ;;
10209
10210 cygwin* | mingw* | pw32* | cegcc*)
10211 # When not using gcc, we currently assume that we are using
10212 # Microsoft Visual C++.
10213 # hardcode_libdir_flag_spec is actually meaningless, as there is
10214 # no search path for DLLs.
10215 hardcode_libdir_flag_spec=' '
10216 allow_undefined_flag=unsupported
10217 # Tell ltmain to make .lib files, not .a files.
10218 libext=lib
10219 # Tell ltmain to make .dll files, not .so files.
10220 shrext_cmds=".dll"
10221 # FIXME: Setting linknames here is a bad hack.
10222 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10223 # The linker will automatically build a .lib file if we build a DLL.
10224 old_archive_from_new_cmds='true'
10225 # FIXME: Should let the user specify the lib program.
10226 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10227 fix_srcfile_path='`cygpath -w "$srcfile"`'
10228 enable_shared_with_static_runtimes=yes
10229 ;;
10230
10231 darwin* | rhapsody*)
10232
10233
10234 archive_cmds_need_lc=no
10235 hardcode_direct=no
10236 hardcode_automatic=yes
10237 hardcode_shlibpath_var=unsupported
10238 if test "$lt_cv_ld_force_load" = "yes"; then
10239 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\"`'
10240 else
10241 whole_archive_flag_spec=''
10242 fi
10243 link_all_deplibs=yes
10244 allow_undefined_flag="$_lt_dar_allow_undefined"
10245 case $cc_basename in
10246 ifort*) _lt_dar_can_shared=yes ;;
10247 *) _lt_dar_can_shared=$GCC ;;
10248 esac
10249 if test "$_lt_dar_can_shared" = "yes"; then
10250 output_verbose_link_cmd=func_echo_all
10251 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10252 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10253 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}"
10254 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}"
10255
10256 else
10257 ld_shlibs=no
10258 fi
10259
10260 ;;
10261
10262 dgux*)
10263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10264 hardcode_libdir_flag_spec='-L$libdir'
10265 hardcode_shlibpath_var=no
10266 ;;
10267
10268 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10269 # support. Future versions do this automatically, but an explicit c++rt0.o
10270 # does not break anything, and helps significantly (at the cost of a little
10271 # extra space).
10272 freebsd2.2*)
10273 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10274 hardcode_libdir_flag_spec='-R$libdir'
10275 hardcode_direct=yes
10276 hardcode_shlibpath_var=no
10277 ;;
10278
10279 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10280 freebsd2.*)
10281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10282 hardcode_direct=yes
10283 hardcode_minus_L=yes
10284 hardcode_shlibpath_var=no
10285 ;;
10286
10287 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10288 freebsd* | dragonfly*)
10289 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10290 hardcode_libdir_flag_spec='-R$libdir'
10291 hardcode_direct=yes
10292 hardcode_shlibpath_var=no
10293 ;;
10294
10295 hpux9*)
10296 if test "$GCC" = yes; then
10297 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'
10298 else
10299 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'
10300 fi
10301 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10302 hardcode_libdir_separator=:
10303 hardcode_direct=yes
10304
10305 # hardcode_minus_L: Not really in the search PATH,
10306 # but as the default location of the library.
10307 hardcode_minus_L=yes
10308 export_dynamic_flag_spec='${wl}-E'
10309 ;;
10310
10311 hpux10*)
10312 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10313 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10314 else
10315 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10316 fi
10317 if test "$with_gnu_ld" = no; then
10318 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10319 hardcode_libdir_flag_spec_ld='+b $libdir'
10320 hardcode_libdir_separator=:
10321 hardcode_direct=yes
10322 hardcode_direct_absolute=yes
10323 export_dynamic_flag_spec='${wl}-E'
10324 # hardcode_minus_L: Not really in the search PATH,
10325 # but as the default location of the library.
10326 hardcode_minus_L=yes
10327 fi
10328 ;;
10329
10330 hpux11*)
10331 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10332 case $host_cpu in
10333 hppa*64*)
10334 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10335 ;;
10336 ia64*)
10337 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10338 ;;
10339 *)
10340 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10341 ;;
10342 esac
10343 else
10344 case $host_cpu in
10345 hppa*64*)
10346 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10347 ;;
10348 ia64*)
10349 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10350 ;;
10351 *)
10352
10353 # Older versions of the 11.00 compiler do not understand -b yet
10354 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10356$as_echo_n "checking if $CC understands -b... " >&6; }
10357if ${lt_cv_prog_compiler__b+:} false; then :
10358 $as_echo_n "(cached) " >&6
10359else
10360 lt_cv_prog_compiler__b=no
10361 save_LDFLAGS="$LDFLAGS"
10362 LDFLAGS="$LDFLAGS -b"
10363 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10364 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10365 # The linker can only warn and ignore the option if not recognized
10366 # So say no if there are warnings
10367 if test -s conftest.err; then
10368 # Append any errors to the config.log.
10369 cat conftest.err 1>&5
10370 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10372 if diff conftest.exp conftest.er2 >/dev/null; then
10373 lt_cv_prog_compiler__b=yes
10374 fi
10375 else
10376 lt_cv_prog_compiler__b=yes
10377 fi
10378 fi
10379 $RM -r conftest*
10380 LDFLAGS="$save_LDFLAGS"
10381
10382fi
10383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10384$as_echo "$lt_cv_prog_compiler__b" >&6; }
10385
10386if test x"$lt_cv_prog_compiler__b" = xyes; then
10387 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10388else
10389 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10390fi
10391
10392 ;;
10393 esac
10394 fi
10395 if test "$with_gnu_ld" = no; then
10396 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10397 hardcode_libdir_separator=:
10398
10399 case $host_cpu in
10400 hppa*64*|ia64*)
10401 hardcode_direct=no
10402 hardcode_shlibpath_var=no
10403 ;;
10404 *)
10405 hardcode_direct=yes
10406 hardcode_direct_absolute=yes
10407 export_dynamic_flag_spec='${wl}-E'
10408
10409 # hardcode_minus_L: Not really in the search PATH,
10410 # but as the default location of the library.
10411 hardcode_minus_L=yes
10412 ;;
10413 esac
10414 fi
10415 ;;
10416
10417 irix5* | irix6* | nonstopux*)
10418 if test "$GCC" = yes; then
10419 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'
10420 # Try to use the -exported_symbol ld option, if it does not
10421 # work, assume that -exports_file does not work either and
10422 # implicitly export all symbols.
10423 save_LDFLAGS="$LDFLAGS"
10424 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426/* end confdefs.h. */
10427int foo(void) {}
10428_ACEOF
10429if ac_fn_c_try_link "$LINENO"; then :
10430 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'
10431
10432fi
10433rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10435 LDFLAGS="$save_LDFLAGS"
10436 else
10437 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'
10438 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'
10439 fi
10440 archive_cmds_need_lc='no'
10441 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10442 hardcode_libdir_separator=:
10443 inherit_rpath=yes
10444 link_all_deplibs=yes
10445 ;;
10446
10447 netbsd*)
10448 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10450 else
10451 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10452 fi
10453 hardcode_libdir_flag_spec='-R$libdir'
10454 hardcode_direct=yes
10455 hardcode_shlibpath_var=no
10456 ;;
10457
10458 newsos6)
10459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10460 hardcode_direct=yes
10461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10462 hardcode_libdir_separator=:
10463 hardcode_shlibpath_var=no
10464 ;;
10465
10466 *nto* | *qnx*)
10467 ;;
10468
10469 openbsd*)
10470 if test -f /usr/libexec/ld.so; then
10471 hardcode_direct=yes
10472 hardcode_shlibpath_var=no
10473 hardcode_direct_absolute=yes
10474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10475 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10476 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10477 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10478 export_dynamic_flag_spec='${wl}-E'
10479 else
10480 case $host_os in
10481 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10482 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10483 hardcode_libdir_flag_spec='-R$libdir'
10484 ;;
10485 *)
10486 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10487 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10488 ;;
10489 esac
10490 fi
10491 else
10492 ld_shlibs=no
10493 fi
10494 ;;
10495
10496 os2*)
10497 hardcode_libdir_flag_spec='-L$libdir'
10498 hardcode_minus_L=yes
10499 allow_undefined_flag=unsupported
10500 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'
10501 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10502 ;;
10503
10504 osf3*)
10505 if test "$GCC" = yes; then
10506 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10507 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'
10508 else
10509 allow_undefined_flag=' -expect_unresolved \*'
10510 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'
10511 fi
10512 archive_cmds_need_lc='no'
10513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10514 hardcode_libdir_separator=:
10515 ;;
10516
10517 osf4* | osf5*) # as osf3* with the addition of -msym flag
10518 if test "$GCC" = yes; then
10519 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10520 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'
10521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10522 else
10523 allow_undefined_flag=' -expect_unresolved \*'
10524 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'
10525 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~
10526 $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'
10527
10528 # Both c and cxx compiler support -rpath directly
10529 hardcode_libdir_flag_spec='-rpath $libdir'
10530 fi
10531 archive_cmds_need_lc='no'
10532 hardcode_libdir_separator=:
10533 ;;
10534
10535 solaris*)
10536 no_undefined_flag=' -z defs'
10537 if test "$GCC" = yes; then
10538 wlarc='${wl}'
10539 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10540 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10541 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10542 else
10543 case `$CC -V 2>&1` in
10544 *"Compilers 5.0"*)
10545 wlarc=''
10546 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10547 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10548 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10549 ;;
10550 *)
10551 wlarc='${wl}'
10552 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10553 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10554 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10555 ;;
10556 esac
10557 fi
10558 hardcode_libdir_flag_spec='-R$libdir'
10559 hardcode_shlibpath_var=no
10560 case $host_os in
10561 solaris2.[0-5] | solaris2.[0-5].*) ;;
10562 *)
10563 # The compiler driver will combine and reorder linker options,
10564 # but understands `-z linker_flag'. GCC discards it without `$wl',
10565 # but is careful enough not to reorder.
10566 # Supported since Solaris 2.6 (maybe 2.5.1?)
10567 if test "$GCC" = yes; then
10568 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10569 else
10570 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10571 fi
10572 ;;
10573 esac
10574 link_all_deplibs=yes
10575 ;;
10576
10577 sunos4*)
10578 if test "x$host_vendor" = xsequent; then
10579 # Use $CC to link under sequent, because it throws in some extra .o
10580 # files that make .init and .fini sections work.
10581 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10582 else
10583 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10584 fi
10585 hardcode_libdir_flag_spec='-L$libdir'
10586 hardcode_direct=yes
10587 hardcode_minus_L=yes
10588 hardcode_shlibpath_var=no
10589 ;;
10590
10591 sysv4)
10592 case $host_vendor in
10593 sni)
10594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10595 hardcode_direct=yes # is this really true???
10596 ;;
10597 siemens)
10598 ## LD is ld it makes a PLAMLIB
10599 ## CC just makes a GrossModule.
10600 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10601 reload_cmds='$CC -r -o $output$reload_objs'
10602 hardcode_direct=no
10603 ;;
10604 motorola)
10605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10606 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10607 ;;
10608 esac
10609 runpath_var='LD_RUN_PATH'
10610 hardcode_shlibpath_var=no
10611 ;;
10612
10613 sysv4.3*)
10614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10615 hardcode_shlibpath_var=no
10616 export_dynamic_flag_spec='-Bexport'
10617 ;;
10618
10619 sysv4*MP*)
10620 if test -d /usr/nec; then
10621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622 hardcode_shlibpath_var=no
10623 runpath_var=LD_RUN_PATH
10624 hardcode_runpath_var=yes
10625 ld_shlibs=yes
10626 fi
10627 ;;
10628
10629 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10630 no_undefined_flag='${wl}-z,text'
10631 archive_cmds_need_lc=no
10632 hardcode_shlibpath_var=no
10633 runpath_var='LD_RUN_PATH'
10634
10635 if test "$GCC" = yes; then
10636 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10637 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10638 else
10639 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10640 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10641 fi
10642 ;;
10643
10644 sysv5* | sco3.2v5* | sco5v6*)
10645 # Note: We can NOT use -z defs as we might desire, because we do not
10646 # link with -lc, and that would cause any symbols used from libc to
10647 # always be unresolved, which means just about no library would
10648 # ever link correctly. If we're not using GNU ld we use -z text
10649 # though, which does catch some bad symbols but isn't as heavy-handed
10650 # as -z defs.
10651 no_undefined_flag='${wl}-z,text'
10652 allow_undefined_flag='${wl}-z,nodefs'
10653 archive_cmds_need_lc=no
10654 hardcode_shlibpath_var=no
10655 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10656 hardcode_libdir_separator=':'
10657 link_all_deplibs=yes
10658 export_dynamic_flag_spec='${wl}-Bexport'
10659 runpath_var='LD_RUN_PATH'
10660
10661 if test "$GCC" = yes; then
10662 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10663 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10664 else
10665 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10666 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10667 fi
10668 ;;
10669
10670 uts4*)
10671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10672 hardcode_libdir_flag_spec='-L$libdir'
10673 hardcode_shlibpath_var=no
10674 ;;
10675
10676 *)
10677 ld_shlibs=no
10678 ;;
10679 esac
10680
10681 if test x$host_vendor = xsni; then
10682 case $host in
10683 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10684 export_dynamic_flag_spec='${wl}-Blargedynsym'
10685 ;;
10686 esac
10687 fi
10688 fi
10689
10690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10691$as_echo "$ld_shlibs" >&6; }
10692test "$ld_shlibs" = no && can_build_shared=no
10693
10694with_gnu_ld=$with_gnu_ld
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710#
10711# Do we need to explicitly link libc?
10712#
10713case "x$archive_cmds_need_lc" in
10714x|xyes)
10715 # Assume -lc should be added
10716 archive_cmds_need_lc=yes
10717
10718 if test "$enable_shared" = yes && test "$GCC" = yes; then
10719 case $archive_cmds in
10720 *'~'*)
10721 # FIXME: we may have to deal with multi-command sequences.
10722 ;;
10723 '$CC '*)
10724 # Test whether the compiler implicitly links with -lc since on some
10725 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10726 # to ld, don't add -lc before -lgcc.
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10728$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10729if ${lt_cv_archive_cmds_need_lc+:} false; then :
10730 $as_echo_n "(cached) " >&6
10731else
10732 $RM conftest*
10733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10734
10735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10736 (eval $ac_compile) 2>&5
10737 ac_status=$?
10738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10739 test $ac_status = 0; } 2>conftest.err; then
10740 soname=conftest
10741 lib=conftest
10742 libobjs=conftest.$ac_objext
10743 deplibs=
10744 wl=$lt_prog_compiler_wl
10745 pic_flag=$lt_prog_compiler_pic
10746 compiler_flags=-v
10747 linker_flags=-v
10748 verstring=
10749 output_objdir=.
10750 libname=conftest
10751 lt_save_allow_undefined_flag=$allow_undefined_flag
10752 allow_undefined_flag=
10753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10754 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10755 ac_status=$?
10756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10757 test $ac_status = 0; }
10758 then
10759 lt_cv_archive_cmds_need_lc=no
10760 else
10761 lt_cv_archive_cmds_need_lc=yes
10762 fi
10763 allow_undefined_flag=$lt_save_allow_undefined_flag
10764 else
10765 cat conftest.err 1>&5
10766 fi
10767 $RM conftest*
10768
10769fi
10770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10771$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10772 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10773 ;;
10774 esac
10775 fi
10776 ;;
10777esac
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10936$as_echo_n "checking dynamic linker characteristics... " >&6; }
10937
10938if test "$GCC" = yes; then
10939 case $host_os in
10940 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10941 *) lt_awk_arg="/^libraries:/" ;;
10942 esac
10943 case $host_os in
10944 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10945 *) lt_sed_strip_eq="s,=/,/,g" ;;
10946 esac
10947 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10948 case $lt_search_path_spec in
10949 *\;*)
10950 # if the path contains ";" then we assume it to be the separator
10951 # otherwise default to the standard path separator (i.e. ":") - it is
10952 # assumed that no part of a normal pathname contains ";" but that should
10953 # okay in the real world where ";" in dirpaths is itself problematic.
10954 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10955 ;;
10956 *)
10957 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10958 ;;
10959 esac
10960 # Ok, now we have the path, separated by spaces, we can step through it
10961 # and add multilib dir if necessary.
10962 lt_tmp_lt_search_path_spec=
10963 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10964 for lt_sys_path in $lt_search_path_spec; do
10965 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10966 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10967 else
10968 test -d "$lt_sys_path" && \
10969 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10970 fi
10971 done
10972 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10973BEGIN {RS=" "; FS="/|\n";} {
10974 lt_foo="";
10975 lt_count=0;
10976 for (lt_i = NF; lt_i > 0; lt_i--) {
10977 if ($lt_i != "" && $lt_i != ".") {
10978 if ($lt_i == "..") {
10979 lt_count++;
10980 } else {
10981 if (lt_count == 0) {
10982 lt_foo="/" $lt_i lt_foo;
10983 } else {
10984 lt_count--;
10985 }
10986 }
10987 }
10988 }
10989 if (lt_foo != "") { lt_freq[lt_foo]++; }
10990 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10991}'`
10992 # AWK program above erroneously prepends '/' to C:/dos/paths
10993 # for these hosts.
10994 case $host_os in
10995 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10996 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10997 esac
10998 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10999else
11000 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11001fi
11002library_names_spec=
11003libname_spec='lib$name'
11004soname_spec=
11005shrext_cmds=".so"
11006postinstall_cmds=
11007postuninstall_cmds=
11008finish_cmds=
11009finish_eval=
11010shlibpath_var=
11011shlibpath_overrides_runpath=unknown
11012version_type=none
11013dynamic_linker="$host_os ld.so"
11014sys_lib_dlsearch_path_spec="/lib /usr/lib"
11015need_lib_prefix=unknown
11016hardcode_into_libs=no
11017
11018# when you set need_version to no, make sure it does not cause -set_version
11019# flags to be left without arguments
11020need_version=unknown
11021
11022case $host_os in
11023aix3*)
11024 version_type=linux
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11026 shlibpath_var=LIBPATH
11027
11028 # AIX 3 has no versioning support, so we append a major version to the name.
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 ;;
11031
11032aix[4-9]*)
11033 version_type=linux
11034 need_lib_prefix=no
11035 need_version=no
11036 hardcode_into_libs=yes
11037 if test "$host_cpu" = ia64; then
11038 # AIX 5 supports IA64
11039 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11040 shlibpath_var=LD_LIBRARY_PATH
11041 else
11042 # With GCC up to 2.95.x, collect2 would create an import file
11043 # for dependence libraries. The import file would start with
11044 # the line `#! .'. This would cause the generated library to
11045 # depend on `.', always an invalid library. This was fixed in
11046 # development snapshots of GCC prior to 3.0.
11047 case $host_os in
11048 aix4 | aix4.[01] | aix4.[01].*)
11049 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11050 echo ' yes '
11051 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11052 :
11053 else
11054 can_build_shared=no
11055 fi
11056 ;;
11057 esac
11058 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11059 # soname into executable. Probably we can add versioning support to
11060 # collect2, so additional links can be useful in future.
11061 if test "$aix_use_runtimelinking" = yes; then
11062 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11063 # instead of lib<name>.a to let people know that these are not
11064 # typical AIX shared libraries.
11065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11066 else
11067 # We preserve .a as extension for shared libraries through AIX4.2
11068 # and later when we are not doing run time linking.
11069 library_names_spec='${libname}${release}.a $libname.a'
11070 soname_spec='${libname}${release}${shared_ext}$major'
11071 fi
11072 shlibpath_var=LIBPATH
11073 fi
11074 ;;
11075
11076amigaos*)
11077 case $host_cpu in
11078 powerpc)
11079 # Since July 2007 AmigaOS4 officially supports .so libraries.
11080 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082 ;;
11083 m68k)
11084 library_names_spec='$libname.ixlibrary $libname.a'
11085 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11086 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'
11087 ;;
11088 esac
11089 ;;
11090
11091beos*)
11092 library_names_spec='${libname}${shared_ext}'
11093 dynamic_linker="$host_os ld.so"
11094 shlibpath_var=LIBRARY_PATH
11095 ;;
11096
11097bsdi[45]*)
11098 version_type=linux
11099 need_version=no
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11101 soname_spec='${libname}${release}${shared_ext}$major'
11102 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11105 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11106 # the default ld.so.conf also contains /usr/contrib/lib and
11107 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11108 # libtool to hard-code these into programs
11109 ;;
11110
11111cygwin* | mingw* | pw32* | cegcc*)
11112 version_type=windows
11113 shrext_cmds=".dll"
11114 need_version=no
11115 need_lib_prefix=no
11116
11117 case $GCC,$host_os in
11118 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11119 library_names_spec='$libname.dll.a'
11120 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11121 postinstall_cmds='base_file=`basename \${file}`~
11122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11123 dldir=$destdir/`dirname \$dlpath`~
11124 test -d \$dldir || mkdir -p \$dldir~
11125 $install_prog $dir/$dlname \$dldir/$dlname~
11126 chmod a+x \$dldir/$dlname~
11127 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11128 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11129 fi'
11130 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11131 dlpath=$dir/\$dldll~
11132 $RM \$dlpath'
11133 shlibpath_overrides_runpath=yes
11134
11135 case $host_os in
11136 cygwin*)
11137 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11138 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11139
11140 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11141 ;;
11142 mingw* | cegcc*)
11143 # MinGW DLLs use traditional 'lib' prefix
11144 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11145 ;;
11146 pw32*)
11147 # pw32 DLLs use 'pw' prefix rather than 'lib'
11148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11149 ;;
11150 esac
11151 ;;
11152
11153 *)
11154 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11155 ;;
11156 esac
11157 dynamic_linker='Win32 ld.exe'
11158 # FIXME: first we should search . and the directory the executable is in
11159 shlibpath_var=PATH
11160 ;;
11161
11162darwin* | rhapsody*)
11163 dynamic_linker="$host_os dyld"
11164 version_type=darwin
11165 need_lib_prefix=no
11166 need_version=no
11167 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11168 soname_spec='${libname}${release}${major}$shared_ext'
11169 shlibpath_overrides_runpath=yes
11170 shlibpath_var=DYLD_LIBRARY_PATH
11171 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11172
11173 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11174 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11175 ;;
11176
11177dgux*)
11178 version_type=linux
11179 need_lib_prefix=no
11180 need_version=no
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 shlibpath_var=LD_LIBRARY_PATH
11184 ;;
11185
11186freebsd* | dragonfly*)
11187 # DragonFly does not have aout. When/if they implement a new
11188 # versioning mechanism, adjust this.
11189 if test -x /usr/bin/objformat; then
11190 objformat=`/usr/bin/objformat`
11191 else
11192 case $host_os in
11193 freebsd[23].*) objformat=aout ;;
11194 *) objformat=elf ;;
11195 esac
11196 fi
11197 version_type=freebsd-$objformat
11198 case $version_type in
11199 freebsd-elf*)
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11201 need_version=no
11202 need_lib_prefix=no
11203 ;;
11204 freebsd-*)
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11206 need_version=yes
11207 ;;
11208 esac
11209 shlibpath_var=LD_LIBRARY_PATH
11210 case $host_os in
11211 freebsd2.*)
11212 shlibpath_overrides_runpath=yes
11213 ;;
11214 freebsd3.[01]* | freebsdelf3.[01]*)
11215 shlibpath_overrides_runpath=yes
11216 hardcode_into_libs=yes
11217 ;;
11218 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11219 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11220 shlibpath_overrides_runpath=no
11221 hardcode_into_libs=yes
11222 ;;
11223 *) # from 4.6 on, and DragonFly
11224 shlibpath_overrides_runpath=yes
11225 hardcode_into_libs=yes
11226 ;;
11227 esac
11228 ;;
11229
11230haiku*)
11231 version_type=linux
11232 need_lib_prefix=no
11233 need_version=no
11234 dynamic_linker="$host_os runtime_loader"
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11236 soname_spec='${libname}${release}${shared_ext}$major'
11237 shlibpath_var=LIBRARY_PATH
11238 shlibpath_overrides_runpath=yes
11239 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11240 hardcode_into_libs=yes
11241 ;;
11242
11243hpux9* | hpux10* | hpux11*)
11244 # Give a soname corresponding to the major version so that dld.sl refuses to
11245 # link against other versions.
11246 version_type=sunos
11247 need_lib_prefix=no
11248 need_version=no
11249 case $host_cpu in
11250 ia64*)
11251 shrext_cmds='.so'
11252 hardcode_into_libs=yes
11253 dynamic_linker="$host_os dld.so"
11254 shlibpath_var=LD_LIBRARY_PATH
11255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 if test "X$HPUX_IA64_MODE" = X32; then
11259 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11260 else
11261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11262 fi
11263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11264 ;;
11265 hppa*64*)
11266 shrext_cmds='.sl'
11267 hardcode_into_libs=yes
11268 dynamic_linker="$host_os dld.sl"
11269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272 soname_spec='${libname}${release}${shared_ext}$major'
11273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11275 ;;
11276 *)
11277 shrext_cmds='.sl'
11278 dynamic_linker="$host_os dld.sl"
11279 shlibpath_var=SHLIB_PATH
11280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11282 soname_spec='${libname}${release}${shared_ext}$major'
11283 ;;
11284 esac
11285 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11286 postinstall_cmds='chmod 555 $lib'
11287 # or fails outright, so override atomically:
11288 install_override_mode=555
11289 ;;
11290
11291interix[3-9]*)
11292 version_type=linux
11293 need_lib_prefix=no
11294 need_version=no
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11296 soname_spec='${libname}${release}${shared_ext}$major'
11297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11298 shlibpath_var=LD_LIBRARY_PATH
11299 shlibpath_overrides_runpath=no
11300 hardcode_into_libs=yes
11301 ;;
11302
11303irix5* | irix6* | nonstopux*)
11304 case $host_os in
11305 nonstopux*) version_type=nonstopux ;;
11306 *)
11307 if test "$lt_cv_prog_gnu_ld" = yes; then
11308 version_type=linux
11309 else
11310 version_type=irix
11311 fi ;;
11312 esac
11313 need_lib_prefix=no
11314 need_version=no
11315 soname_spec='${libname}${release}${shared_ext}$major'
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11317 case $host_os in
11318 irix5* | nonstopux*)
11319 libsuff= shlibsuff=
11320 ;;
11321 *)
11322 case $LD in # libtool.m4 will add one of these switches to LD
11323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11324 libsuff= shlibsuff= libmagic=32-bit;;
11325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11326 libsuff=32 shlibsuff=N32 libmagic=N32;;
11327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11329 *) libsuff= shlibsuff= libmagic=never-match;;
11330 esac
11331 ;;
11332 esac
11333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11334 shlibpath_overrides_runpath=no
11335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11337 hardcode_into_libs=yes
11338 ;;
11339
11340# No shared lib support for Linux oldld, aout, or coff.
11341linux*oldld* | linux*aout* | linux*coff*)
11342 dynamic_linker=no
11343 ;;
11344
11345# This must be Linux ELF.
11346linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11347 version_type=linux
11348 need_lib_prefix=no
11349 need_version=no
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 shlibpath_overrides_runpath=no
11355
11356 # Some binutils ld are patched to set DT_RUNPATH
11357 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11358 $as_echo_n "(cached) " >&6
11359else
11360 lt_cv_shlibpath_overrides_runpath=no
11361 save_LDFLAGS=$LDFLAGS
11362 save_libdir=$libdir
11363 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11364 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366/* end confdefs.h. */
11367
11368int
11369main ()
11370{
11371
11372 ;
11373 return 0;
11374}
11375_ACEOF
11376if ac_fn_c_try_link "$LINENO"; then :
11377 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11378 lt_cv_shlibpath_overrides_runpath=yes
11379fi
11380fi
11381rm -f core conftest.err conftest.$ac_objext \
11382 conftest$ac_exeext conftest.$ac_ext
11383 LDFLAGS=$save_LDFLAGS
11384 libdir=$save_libdir
11385
11386fi
11387
11388 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11389
11390 # This implies no fast_install, which is unacceptable.
11391 # Some rework will be needed to allow for fast_install
11392 # before this can be enabled.
11393 hardcode_into_libs=yes
11394
11395 # Append ld.so.conf contents to the search path
11396 if test -f /etc/ld.so.conf; then
11397 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' ' '`
11398 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11399 fi
11400
11401 # We used to test for /lib/ld.so.1 and disable shared libraries on
11402 # powerpc, because MkLinux only supported shared libraries with the
11403 # GNU dynamic linker. Since this was broken with cross compilers,
11404 # most powerpc-linux boxes support dynamic linking these days and
11405 # people can always --disable-shared, the test was removed, and we
11406 # assume the GNU/Linux dynamic linker is in use.
11407 dynamic_linker='GNU/Linux ld.so'
11408 ;;
11409
11410netbsd*)
11411 version_type=sunos
11412 need_lib_prefix=no
11413 need_version=no
11414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11417 dynamic_linker='NetBSD (a.out) ld.so'
11418 else
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11420 soname_spec='${libname}${release}${shared_ext}$major'
11421 dynamic_linker='NetBSD ld.elf_so'
11422 fi
11423 shlibpath_var=LD_LIBRARY_PATH
11424 shlibpath_overrides_runpath=yes
11425 hardcode_into_libs=yes
11426 ;;
11427
11428newsos6)
11429 version_type=linux
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 shlibpath_var=LD_LIBRARY_PATH
11432 shlibpath_overrides_runpath=yes
11433 ;;
11434
11435*nto* | *qnx*)
11436 version_type=qnx
11437 need_lib_prefix=no
11438 need_version=no
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440 soname_spec='${libname}${release}${shared_ext}$major'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 shlibpath_overrides_runpath=no
11443 hardcode_into_libs=yes
11444 dynamic_linker='ldqnx.so'
11445 ;;
11446
11447openbsd*)
11448 version_type=sunos
11449 sys_lib_dlsearch_path_spec="/usr/lib"
11450 need_lib_prefix=no
11451 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11452 case $host_os in
11453 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11454 *) need_version=no ;;
11455 esac
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11460 case $host_os in
11461 openbsd2.[89] | openbsd2.[89].*)
11462 shlibpath_overrides_runpath=no
11463 ;;
11464 *)
11465 shlibpath_overrides_runpath=yes
11466 ;;
11467 esac
11468 else
11469 shlibpath_overrides_runpath=yes
11470 fi
11471 ;;
11472
11473os2*)
11474 libname_spec='$name'
11475 shrext_cmds=".dll"
11476 need_lib_prefix=no
11477 library_names_spec='$libname${shared_ext} $libname.a'
11478 dynamic_linker='OS/2 ld.exe'
11479 shlibpath_var=LIBPATH
11480 ;;
11481
11482osf3* | osf4* | osf5*)
11483 version_type=osf
11484 need_lib_prefix=no
11485 need_version=no
11486 soname_spec='${libname}${release}${shared_ext}$major'
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488 shlibpath_var=LD_LIBRARY_PATH
11489 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11490 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11491 ;;
11492
11493rdos*)
11494 dynamic_linker=no
11495 ;;
11496
11497solaris*)
11498 version_type=linux
11499 need_lib_prefix=no
11500 need_version=no
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11502 soname_spec='${libname}${release}${shared_ext}$major'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 shlibpath_overrides_runpath=yes
11505 hardcode_into_libs=yes
11506 # ldd complains unless libraries are executable
11507 postinstall_cmds='chmod +x $lib'
11508 ;;
11509
11510sunos4*)
11511 version_type=sunos
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11513 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 shlibpath_overrides_runpath=yes
11516 if test "$with_gnu_ld" = yes; then
11517 need_lib_prefix=no
11518 fi
11519 need_version=yes
11520 ;;
11521
11522sysv4 | sysv4.3*)
11523 version_type=linux
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 case $host_vendor in
11528 sni)
11529 shlibpath_overrides_runpath=no
11530 need_lib_prefix=no
11531 runpath_var=LD_RUN_PATH
11532 ;;
11533 siemens)
11534 need_lib_prefix=no
11535 ;;
11536 motorola)
11537 need_lib_prefix=no
11538 need_version=no
11539 shlibpath_overrides_runpath=no
11540 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11541 ;;
11542 esac
11543 ;;
11544
11545sysv4*MP*)
11546 if test -d /usr/nec ;then
11547 version_type=linux
11548 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11549 soname_spec='$libname${shared_ext}.$major'
11550 shlibpath_var=LD_LIBRARY_PATH
11551 fi
11552 ;;
11553
11554sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11555 version_type=freebsd-elf
11556 need_lib_prefix=no
11557 need_version=no
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 shlibpath_var=LD_LIBRARY_PATH
11561 shlibpath_overrides_runpath=yes
11562 hardcode_into_libs=yes
11563 if test "$with_gnu_ld" = yes; then
11564 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11565 else
11566 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11567 case $host_os in
11568 sco3.2v5*)
11569 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11570 ;;
11571 esac
11572 fi
11573 sys_lib_dlsearch_path_spec='/usr/lib'
11574 ;;
11575
11576tpf*)
11577 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11578 version_type=linux
11579 need_lib_prefix=no
11580 need_version=no
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 shlibpath_overrides_runpath=no
11584 hardcode_into_libs=yes
11585 ;;
11586
11587uts4*)
11588 version_type=linux
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11590 soname_spec='${libname}${release}${shared_ext}$major'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 ;;
11593
11594*)
11595 dynamic_linker=no
11596 ;;
11597esac
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11599$as_echo "$dynamic_linker" >&6; }
11600test "$dynamic_linker" = no && can_build_shared=no
11601
11602variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11603if test "$GCC" = yes; then
11604 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11605fi
11606
11607if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11608 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11609fi
11610if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11611 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11612fi
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11706$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11707hardcode_action=
11708if test -n "$hardcode_libdir_flag_spec" ||
11709 test -n "$runpath_var" ||
11710 test "X$hardcode_automatic" = "Xyes" ; then
11711
11712 # We can hardcode non-existent directories.
11713 if test "$hardcode_direct" != no &&
11714 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11715 # have to relink, otherwise we might link with an installed library
11716 # when we should be linking with a yet-to-be-installed one
11717 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11718 test "$hardcode_minus_L" != no; then
11719 # Linking always hardcodes the temporary library directory.
11720 hardcode_action=relink
11721 else
11722 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11723 hardcode_action=immediate
11724 fi
11725else
11726 # We cannot hardcode anything, or else we can only hardcode existing
11727 # directories.
11728 hardcode_action=unsupported
11729fi
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11731$as_echo "$hardcode_action" >&6; }
11732
11733if test "$hardcode_action" = relink ||
11734 test "$inherit_rpath" = yes; then
11735 # Fast installation is not supported
11736 enable_fast_install=no
11737elif test "$shlibpath_overrides_runpath" = yes ||
11738 test "$enable_shared" = no; then
11739 # Fast installation is not necessary
11740 enable_fast_install=needless
11741fi
11742
11743
11744
11745
11746
11747
11748 if test "x$enable_dlopen" != xyes; then
11749 enable_dlopen=unknown
11750 enable_dlopen_self=unknown
11751 enable_dlopen_self_static=unknown
11752else
11753 lt_cv_dlopen=no
11754 lt_cv_dlopen_libs=
11755
11756 case $host_os in
11757 beos*)
11758 lt_cv_dlopen="load_add_on"
11759 lt_cv_dlopen_libs=
11760 lt_cv_dlopen_self=yes
11761 ;;
11762
11763 mingw* | pw32* | cegcc*)
11764 lt_cv_dlopen="LoadLibrary"
11765 lt_cv_dlopen_libs=
11766 ;;
11767
11768 cygwin*)
11769 lt_cv_dlopen="dlopen"
11770 lt_cv_dlopen_libs=
11771 ;;
11772
11773 darwin*)
11774 # if libdl is installed we need to link against it
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11776$as_echo_n "checking for dlopen in -ldl... " >&6; }
11777if ${ac_cv_lib_dl_dlopen+:} false; then :
11778 $as_echo_n "(cached) " >&6
11779else
11780 ac_check_lib_save_LIBS=$LIBS
11781LIBS="-ldl $LIBS"
11782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783/* end confdefs.h. */
11784
11785/* Override any GCC internal prototype to avoid an error.
11786 Use char because int might match the return type of a GCC
11787 builtin and then its argument prototype would still apply. */
11788#ifdef __cplusplus
11789extern "C"
11790#endif
11791char dlopen ();
11792int
11793main ()
11794{
11795return dlopen ();
11796 ;
11797 return 0;
11798}
11799_ACEOF
11800if ac_fn_c_try_link "$LINENO"; then :
11801 ac_cv_lib_dl_dlopen=yes
11802else
11803 ac_cv_lib_dl_dlopen=no
11804fi
11805rm -f core conftest.err conftest.$ac_objext \
11806 conftest$ac_exeext conftest.$ac_ext
11807LIBS=$ac_check_lib_save_LIBS
11808fi
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11810$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11811if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11813else
11814
11815 lt_cv_dlopen="dyld"
11816 lt_cv_dlopen_libs=
11817 lt_cv_dlopen_self=yes
11818
11819fi
11820
11821 ;;
11822
11823 *)
11824 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11825if test "x$ac_cv_func_shl_load" = xyes; then :
11826 lt_cv_dlopen="shl_load"
11827else
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11829$as_echo_n "checking for shl_load in -ldld... " >&6; }
11830if ${ac_cv_lib_dld_shl_load+:} false; then :
11831 $as_echo_n "(cached) " >&6
11832else
11833 ac_check_lib_save_LIBS=$LIBS
11834LIBS="-ldld $LIBS"
11835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836/* end confdefs.h. */
11837
11838/* Override any GCC internal prototype to avoid an error.
11839 Use char because int might match the return type of a GCC
11840 builtin and then its argument prototype would still apply. */
11841#ifdef __cplusplus
11842extern "C"
11843#endif
11844char shl_load ();
a48ff3ef
MF
11845int
11846main ()
11847{
b5689863 11848return shl_load ();
a48ff3ef
MF
11849 ;
11850 return 0;
11851}
11852_ACEOF
11853if ac_fn_c_try_link "$LINENO"; then :
b5689863 11854 ac_cv_lib_dld_shl_load=yes
a48ff3ef 11855else
b5689863 11856 ac_cv_lib_dld_shl_load=no
a48ff3ef
MF
11857fi
11858rm -f core conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
b5689863 11860LIBS=$ac_check_lib_save_LIBS
a48ff3ef 11861fi
b5689863
MF
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11863$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11864if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11865 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11866else
11867 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11868if test "x$ac_cv_func_dlopen" = xyes; then :
11869 lt_cv_dlopen="dlopen"
11870else
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11872$as_echo_n "checking for dlopen in -ldl... " >&6; }
11873if ${ac_cv_lib_dl_dlopen+:} false; then :
11874 $as_echo_n "(cached) " >&6
11875else
11876 ac_check_lib_save_LIBS=$LIBS
11877LIBS="-ldl $LIBS"
11878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879/* end confdefs.h. */
a48ff3ef 11880
b5689863
MF
11881/* Override any GCC internal prototype to avoid an error.
11882 Use char because int might match the return type of a GCC
11883 builtin and then its argument prototype would still apply. */
11884#ifdef __cplusplus
11885extern "C"
11886#endif
11887char dlopen ();
11888int
11889main ()
11890{
11891return dlopen ();
11892 ;
11893 return 0;
11894}
11895_ACEOF
11896if ac_fn_c_try_link "$LINENO"; then :
11897 ac_cv_lib_dl_dlopen=yes
11898else
11899 ac_cv_lib_dl_dlopen=no
a48ff3ef 11900fi
b5689863
MF
11901rm -f core conftest.err conftest.$ac_objext \
11902 conftest$ac_exeext conftest.$ac_ext
11903LIBS=$ac_check_lib_save_LIBS
11904fi
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11906$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11907if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11909else
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11911$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11912if ${ac_cv_lib_svld_dlopen+:} false; then :
11913 $as_echo_n "(cached) " >&6
11914else
11915 ac_check_lib_save_LIBS=$LIBS
11916LIBS="-lsvld $LIBS"
11917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918/* end confdefs.h. */
a48ff3ef 11919
b5689863
MF
11920/* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11923#ifdef __cplusplus
11924extern "C"
b15c5d7a 11925#endif
b5689863
MF
11926char dlopen ();
11927int
11928main ()
11929{
11930return dlopen ();
11931 ;
11932 return 0;
11933}
b15c5d7a 11934_ACEOF
b5689863
MF
11935if ac_fn_c_try_link "$LINENO"; then :
11936 ac_cv_lib_svld_dlopen=yes
11937else
11938 ac_cv_lib_svld_dlopen=no
b15c5d7a 11939fi
b5689863
MF
11940rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11942LIBS=$ac_check_lib_save_LIBS
11943fi
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11945$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11946if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11948else
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11950$as_echo_n "checking for dld_link in -ldld... " >&6; }
11951if ${ac_cv_lib_dld_dld_link+:} false; then :
11952 $as_echo_n "(cached) " >&6
11953else
11954 ac_check_lib_save_LIBS=$LIBS
11955LIBS="-ldld $LIBS"
11956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957/* end confdefs.h. */
b15c5d7a 11958
b5689863
MF
11959/* Override any GCC internal prototype to avoid an error.
11960 Use char because int might match the return type of a GCC
11961 builtin and then its argument prototype would still apply. */
11962#ifdef __cplusplus
11963extern "C"
11964#endif
11965char dld_link ();
11966int
11967main ()
11968{
11969return dld_link ();
11970 ;
11971 return 0;
11972}
b15c5d7a 11973_ACEOF
b5689863
MF
11974if ac_fn_c_try_link "$LINENO"; then :
11975 ac_cv_lib_dld_dld_link=yes
11976else
11977 ac_cv_lib_dld_dld_link=no
11978fi
11979rm -f core conftest.err conftest.$ac_objext \
11980 conftest$ac_exeext conftest.$ac_ext
11981LIBS=$ac_check_lib_save_LIBS
11982fi
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11984$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11985if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11986 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11987fi
b15c5d7a
MF
11988
11989
11990fi
b15c5d7a 11991
b5689863
MF
11992
11993fi
b15c5d7a
MF
11994
11995
11996fi
b15c5d7a 11997
b5689863
MF
11998
11999fi
b15c5d7a
MF
12000
12001
12002fi
b15c5d7a 12003
b5689863
MF
12004 ;;
12005 esac
b15c5d7a 12006
b5689863
MF
12007 if test "x$lt_cv_dlopen" != xno; then
12008 enable_dlopen=yes
12009 else
12010 enable_dlopen=no
12011 fi
b15c5d7a 12012
b5689863
MF
12013 case $lt_cv_dlopen in
12014 dlopen)
12015 save_CPPFLAGS="$CPPFLAGS"
12016 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
b15c5d7a 12017
b5689863
MF
12018 save_LDFLAGS="$LDFLAGS"
12019 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
b15c5d7a 12020
b5689863
MF
12021 save_LIBS="$LIBS"
12022 LIBS="$lt_cv_dlopen_libs $LIBS"
b15c5d7a 12023
b5689863
MF
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12025$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12026if ${lt_cv_dlopen_self+:} false; then :
12027 $as_echo_n "(cached) " >&6
12028else
12029 if test "$cross_compiling" = yes; then :
12030 lt_cv_dlopen_self=cross
12031else
12032 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12033 lt_status=$lt_dlunknown
12034 cat > conftest.$ac_ext <<_LT_EOF
a979f2a0 12035#line 12035 "configure"
b5689863
MF
12036#include "confdefs.h"
12037
12038#if HAVE_DLFCN_H
12039#include <dlfcn.h>
b15c5d7a 12040#endif
b15c5d7a 12041
b5689863 12042#include <stdio.h>
b15c5d7a 12043
b5689863
MF
12044#ifdef RTLD_GLOBAL
12045# define LT_DLGLOBAL RTLD_GLOBAL
12046#else
12047# ifdef DL_GLOBAL
12048# define LT_DLGLOBAL DL_GLOBAL
12049# else
12050# define LT_DLGLOBAL 0
12051# endif
12052#endif
b15c5d7a 12053
b5689863
MF
12054/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12055 find out it does not work in some platform. */
12056#ifndef LT_DLLAZY_OR_NOW
12057# ifdef RTLD_LAZY
12058# define LT_DLLAZY_OR_NOW RTLD_LAZY
12059# else
12060# ifdef DL_LAZY
12061# define LT_DLLAZY_OR_NOW DL_LAZY
12062# else
12063# ifdef RTLD_NOW
12064# define LT_DLLAZY_OR_NOW RTLD_NOW
12065# else
12066# ifdef DL_NOW
12067# define LT_DLLAZY_OR_NOW DL_NOW
12068# else
12069# define LT_DLLAZY_OR_NOW 0
12070# endif
12071# endif
12072# endif
12073# endif
b15c5d7a 12074#endif
b5689863
MF
12075
12076/* When -fvisbility=hidden is used, assume the code has been annotated
12077 correspondingly for the symbols needed. */
12078#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12079void fnord () __attribute__((visibility("default")));
b15c5d7a 12080#endif
b15c5d7a 12081
b5689863
MF
12082void fnord () { int i=42; }
12083int main ()
12084{
12085 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12086 int status = $lt_dlunknown;
b15c5d7a 12087
b5689863
MF
12088 if (self)
12089 {
12090 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12091 else
12092 {
12093 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12094 else puts (dlerror ());
12095 }
12096 /* dlclose (self); */
12097 }
12098 else
12099 puts (dlerror ());
b15c5d7a 12100
b5689863
MF
12101 return status;
12102}
12103_LT_EOF
12104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12105 (eval $ac_link) 2>&5
12106 ac_status=$?
12107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12108 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12109 (./conftest; exit; ) >&5 2>/dev/null
12110 lt_status=$?
12111 case x$lt_status in
12112 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12113 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12114 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12115 esac
12116 else :
12117 # compilation failed
12118 lt_cv_dlopen_self=no
12119 fi
b15c5d7a 12120fi
b5689863 12121rm -fr conftest*
b15c5d7a
MF
12122
12123
12124fi
b5689863
MF
12125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12126$as_echo "$lt_cv_dlopen_self" >&6; }
12127
12128 if test "x$lt_cv_dlopen_self" = xyes; then
12129 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12131$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12132if ${lt_cv_dlopen_self_static+:} false; then :
12133 $as_echo_n "(cached) " >&6
12134else
12135 if test "$cross_compiling" = yes; then :
12136 lt_cv_dlopen_self_static=cross
12137else
12138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12139 lt_status=$lt_dlunknown
12140 cat > conftest.$ac_ext <<_LT_EOF
a979f2a0 12141#line 12141 "configure"
b5689863
MF
12142#include "confdefs.h"
12143
12144#if HAVE_DLFCN_H
12145#include <dlfcn.h>
b15c5d7a 12146#endif
b15c5d7a 12147
b5689863 12148#include <stdio.h>
b15c5d7a 12149
b5689863
MF
12150#ifdef RTLD_GLOBAL
12151# define LT_DLGLOBAL RTLD_GLOBAL
12152#else
12153# ifdef DL_GLOBAL
12154# define LT_DLGLOBAL DL_GLOBAL
12155# else
12156# define LT_DLGLOBAL 0
12157# endif
12158#endif
b15c5d7a 12159
b5689863
MF
12160/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12161 find out it does not work in some platform. */
12162#ifndef LT_DLLAZY_OR_NOW
12163# ifdef RTLD_LAZY
12164# define LT_DLLAZY_OR_NOW RTLD_LAZY
12165# else
12166# ifdef DL_LAZY
12167# define LT_DLLAZY_OR_NOW DL_LAZY
12168# else
12169# ifdef RTLD_NOW
12170# define LT_DLLAZY_OR_NOW RTLD_NOW
12171# else
12172# ifdef DL_NOW
12173# define LT_DLLAZY_OR_NOW DL_NOW
12174# else
12175# define LT_DLLAZY_OR_NOW 0
12176# endif
12177# endif
12178# endif
12179# endif
b15c5d7a 12180#endif
b5689863
MF
12181
12182/* When -fvisbility=hidden is used, assume the code has been annotated
12183 correspondingly for the symbols needed. */
12184#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12185void fnord () __attribute__((visibility("default")));
b15c5d7a 12186#endif
b15c5d7a 12187
b5689863
MF
12188void fnord () { int i=42; }
12189int main ()
12190{
12191 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12192 int status = $lt_dlunknown;
12193
12194 if (self)
12195 {
12196 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12197 else
12198 {
12199 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12200 else puts (dlerror ());
12201 }
12202 /* dlclose (self); */
12203 }
12204 else
12205 puts (dlerror ());
12206
12207 return status;
12208}
12209_LT_EOF
12210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12211 (eval $ac_link) 2>&5
12212 ac_status=$?
12213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12214 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12215 (./conftest; exit; ) >&5 2>/dev/null
12216 lt_status=$?
12217 case x$lt_status in
12218 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12219 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12220 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12221 esac
12222 else :
12223 # compilation failed
12224 lt_cv_dlopen_self_static=no
12225 fi
12226fi
12227rm -fr conftest*
b15c5d7a
MF
12228
12229
12230fi
b5689863
MF
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12232$as_echo "$lt_cv_dlopen_self_static" >&6; }
12233 fi
b15c5d7a 12234
b5689863
MF
12235 CPPFLAGS="$save_CPPFLAGS"
12236 LDFLAGS="$save_LDFLAGS"
12237 LIBS="$save_LIBS"
12238 ;;
12239 esac
b15c5d7a 12240
b5689863
MF
12241 case $lt_cv_dlopen_self in
12242 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12243 *) enable_dlopen_self=unknown ;;
12244 esac
b15c5d7a 12245
b5689863
MF
12246 case $lt_cv_dlopen_self_static in
12247 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12248 *) enable_dlopen_self_static=unknown ;;
12249 esac
b15c5d7a 12250fi
b15c5d7a 12251
b15c5d7a
MF
12252
12253
b15c5d7a
MF
12254
12255
b15c5d7a 12256
b15c5d7a
MF
12257
12258
b15c5d7a 12259
b15c5d7a 12260
b15c5d7a 12261
b15c5d7a
MF
12262
12263
b15c5d7a
MF
12264
12265
a48ff3ef 12266
a48ff3ef 12267
b5689863
MF
12268striplib=
12269old_striplib=
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12271$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12272if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12273 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12274 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12276$as_echo "yes" >&6; }
a48ff3ef 12277else
b5689863
MF
12278# FIXME - insert some real tests, host_os isn't really good enough
12279 case $host_os in
12280 darwin*)
12281 if test -n "$STRIP" ; then
12282 striplib="$STRIP -x"
12283 old_striplib="$STRIP -S"
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12285$as_echo "yes" >&6; }
12286 else
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288$as_echo "no" >&6; }
12289 fi
12290 ;;
12291 *)
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293$as_echo "no" >&6; }
12294 ;;
12295 esac
a48ff3ef
MF
12296fi
12297
a48ff3ef 12298
a48ff3ef 12299
a48ff3ef 12300
a48ff3ef
MF
12301
12302
a48ff3ef 12303
a48ff3ef 12304
a48ff3ef 12305
a48ff3ef 12306
a48ff3ef 12307
a48ff3ef 12308
b5689863
MF
12309 # Report which library types will actually be built
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12311$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12313$as_echo "$can_build_shared" >&6; }
a48ff3ef 12314
b5689863
MF
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12316$as_echo_n "checking whether to build shared libraries... " >&6; }
12317 test "$can_build_shared" = "no" && enable_shared=no
a48ff3ef 12318
b5689863
MF
12319 # On AIX, shared libraries and static libraries use the same namespace, and
12320 # are all built from PIC.
12321 case $host_os in
12322 aix3*)
12323 test "$enable_shared" = yes && enable_static=no
12324 if test -n "$RANLIB"; then
12325 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12326 postinstall_cmds='$RANLIB $lib'
12327 fi
12328 ;;
a48ff3ef 12329
b5689863
MF
12330 aix[4-9]*)
12331 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12332 test "$enable_shared" = yes && enable_static=no
12333 fi
12334 ;;
12335 esac
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12337$as_echo "$enable_shared" >&6; }
12338
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12340$as_echo_n "checking whether to build static libraries... " >&6; }
12341 # Make sure either enable_shared or enable_static is yes.
12342 test "$enable_shared" = yes || enable_static=yes
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12344$as_echo "$enable_static" >&6; }
a48ff3ef 12345
a48ff3ef 12346
a48ff3ef 12347
b15c5d7a 12348
b15c5d7a 12349fi
b5689863
MF
12350ac_ext=c
12351ac_cpp='$CPP $CPPFLAGS'
12352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12354ac_compiler_gnu=$ac_cv_c_compiler_gnu
b15c5d7a 12355
b5689863 12356CC="$lt_save_CC"
b15c5d7a
MF
12357
12358
a48ff3ef 12359
a48ff3ef 12360
a48ff3ef 12361
a48ff3ef 12362
a48ff3ef 12363
a48ff3ef 12364
a48ff3ef 12365
a48ff3ef
MF
12366
12367
a48ff3ef 12368
b5689863
MF
12369
12370 ac_config_commands="$ac_config_commands libtool"
12371
12372
12373
12374
12375# Only expand once:
12376
12377
a48ff3ef 12378
b15c5d7a 12379
07490bf8
MF
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
12381$as_echo_n "checking for bind in -lsocket... " >&6; }
12382if ${ac_cv_lib_socket_bind+:} false; then :
12383 $as_echo_n "(cached) " >&6
12384else
12385 ac_check_lib_save_LIBS=$LIBS
12386LIBS="-lsocket $LIBS"
12387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388/* end confdefs.h. */
12389
12390/* Override any GCC internal prototype to avoid an error.
12391 Use char because int might match the return type of a GCC
12392 builtin and then its argument prototype would still apply. */
12393#ifdef __cplusplus
12394extern "C"
12395#endif
12396char bind ();
12397int
12398main ()
12399{
12400return bind ();
12401 ;
12402 return 0;
12403}
12404_ACEOF
12405if ac_fn_c_try_link "$LINENO"; then :
12406 ac_cv_lib_socket_bind=yes
12407else
12408 ac_cv_lib_socket_bind=no
12409fi
12410rm -f core conftest.err conftest.$ac_objext \
12411 conftest$ac_exeext conftest.$ac_ext
12412LIBS=$ac_check_lib_save_LIBS
12413fi
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
12415$as_echo "$ac_cv_lib_socket_bind" >&6; }
12416if test "x$ac_cv_lib_socket_bind" = xyes; then :
12417 cat >>confdefs.h <<_ACEOF
12418#define HAVE_LIBSOCKET 1
12419_ACEOF
12420
12421 LIBS="-lsocket $LIBS"
12422
12423fi
12424
12425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12426$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12427if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12428 $as_echo_n "(cached) " >&6
12429else
12430 ac_check_lib_save_LIBS=$LIBS
12431LIBS="-lnsl $LIBS"
12432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433/* end confdefs.h. */
12434
12435/* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
12438#ifdef __cplusplus
12439extern "C"
12440#endif
12441char gethostbyname ();
12442int
12443main ()
12444{
12445return gethostbyname ();
12446 ;
12447 return 0;
12448}
12449_ACEOF
12450if ac_fn_c_try_link "$LINENO"; then :
12451 ac_cv_lib_nsl_gethostbyname=yes
12452else
12453 ac_cv_lib_nsl_gethostbyname=no
12454fi
12455rm -f core conftest.err conftest.$ac_objext \
12456 conftest$ac_exeext conftest.$ac_ext
12457LIBS=$ac_check_lib_save_LIBS
12458fi
12459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12460$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12461if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12462 cat >>confdefs.h <<_ACEOF
12463#define HAVE_LIBNSL 1
12464_ACEOF
12465
12466 LIBS="-lnsl $LIBS"
12467
12468fi
12469
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12471$as_echo_n "checking for fabs in -lm... " >&6; }
12472if ${ac_cv_lib_m_fabs+:} false; then :
12473 $as_echo_n "(cached) " >&6
12474else
12475 ac_check_lib_save_LIBS=$LIBS
12476LIBS="-lm $LIBS"
12477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478/* end confdefs.h. */
12479
12480/* Override any GCC internal prototype to avoid an error.
12481 Use char because int might match the return type of a GCC
12482 builtin and then its argument prototype would still apply. */
12483#ifdef __cplusplus
12484extern "C"
12485#endif
12486char fabs ();
12487int
12488main ()
12489{
12490return fabs ();
12491 ;
12492 return 0;
12493}
12494_ACEOF
12495if ac_fn_c_try_link "$LINENO"; then :
12496 ac_cv_lib_m_fabs=yes
12497else
12498 ac_cv_lib_m_fabs=no
12499fi
12500rm -f core conftest.err conftest.$ac_objext \
12501 conftest$ac_exeext conftest.$ac_ext
12502LIBS=$ac_check_lib_save_LIBS
12503fi
12504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12505$as_echo "$ac_cv_lib_m_fabs" >&6; }
12506if test "x$ac_cv_lib_m_fabs" = xyes; then :
12507 cat >>confdefs.h <<_ACEOF
12508#define HAVE_LIBM 1
12509_ACEOF
12510
12511 LIBS="-lm $LIBS"
12512
12513fi
12514
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
12516$as_echo_n "checking for log2 in -lm... " >&6; }
12517if ${ac_cv_lib_m_log2+:} false; then :
12518 $as_echo_n "(cached) " >&6
12519else
12520 ac_check_lib_save_LIBS=$LIBS
12521LIBS="-lm $LIBS"
12522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523/* end confdefs.h. */
12524
12525/* Override any GCC internal prototype to avoid an error.
12526 Use char because int might match the return type of a GCC
12527 builtin and then its argument prototype would still apply. */
12528#ifdef __cplusplus
12529extern "C"
12530#endif
12531char log2 ();
12532int
12533main ()
12534{
12535return log2 ();
12536 ;
12537 return 0;
12538}
12539_ACEOF
12540if ac_fn_c_try_link "$LINENO"; then :
12541 ac_cv_lib_m_log2=yes
12542else
12543 ac_cv_lib_m_log2=no
12544fi
12545rm -f core conftest.err conftest.$ac_objext \
12546 conftest$ac_exeext conftest.$ac_ext
12547LIBS=$ac_check_lib_save_LIBS
12548fi
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12550$as_echo "$ac_cv_lib_m_log2" >&6; }
12551if test "x$ac_cv_lib_m_log2" = xyes; then :
12552 cat >>confdefs.h <<_ACEOF
12553#define HAVE_LIBM 1
12554_ACEOF
12555
12556 LIBS="-lm $LIBS"
12557
12558fi
12559
12560
b15c5d7a
MF
12561
12562
12563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12564$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12565 # Check whether --enable-maintainer-mode was given.
12566if test "${enable_maintainer_mode+set}" = set; then :
12567 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12568else
12569 USE_MAINTAINER_MODE=no
12570fi
12571
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12573$as_echo "$USE_MAINTAINER_MODE" >&6; }
12574 if test $USE_MAINTAINER_MODE = yes; then
12575 MAINTAINER_MODE_TRUE=
12576 MAINTAINER_MODE_FALSE='#'
12577else
12578 MAINTAINER_MODE_TRUE='#'
12579 MAINTAINER_MODE_FALSE=
12580fi
12581
12582 MAINT=$MAINTAINER_MODE_TRUE
12583
12584
12585am__api_version='1.15'
12586
12587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12588$as_echo_n "checking whether build environment is sane... " >&6; }
12589# Reject unsafe characters in $srcdir or the absolute working directory
12590# name. Accept space and tab only in the latter.
12591am_lf='
12592'
12593case `pwd` in
12594 *[\\\"\#\$\&\'\`$am_lf]*)
12595 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12596esac
12597case $srcdir in
12598 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12599 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12600esac
12601
12602# Do 'set' in a subshell so we don't clobber the current shell's
12603# arguments. Must try -L first in case configure is actually a
12604# symlink; some systems play weird games with the mod time of symlinks
12605# (eg FreeBSD returns the mod time of the symlink's containing
12606# directory).
12607if (
12608 am_has_slept=no
12609 for am_try in 1 2; do
12610 echo "timestamp, slept: $am_has_slept" > conftest.file
12611 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12612 if test "$*" = "X"; then
12613 # -L didn't work.
12614 set X `ls -t "$srcdir/configure" conftest.file`
12615 fi
12616 if test "$*" != "X $srcdir/configure conftest.file" \
12617 && test "$*" != "X conftest.file $srcdir/configure"; then
12618
12619 # If neither matched, then we have a broken ls. This can happen
12620 # if, for instance, CONFIG_SHELL is bash and it inherits a
12621 # broken ls alias from the environment. This has actually
12622 # happened. Such a system could not be considered "sane".
12623 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
12624 alias in your environment" "$LINENO" 5
12625 fi
12626 if test "$2" = conftest.file || test $am_try -eq 2; then
12627 break
12628 fi
12629 # Just in case.
12630 sleep 1
12631 am_has_slept=yes
12632 done
12633 test "$2" = conftest.file
12634 )
12635then
12636 # Ok.
12637 :
12638else
12639 as_fn_error $? "newly created file is older than distributed files!
12640Check your system clock" "$LINENO" 5
12641fi
12642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12643$as_echo "yes" >&6; }
12644# If we didn't sleep, we still need to ensure time stamps of config.status and
12645# generated files are strictly newer.
12646am_sleep_pid=
12647if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12648 ( sleep 1 ) &
12649 am_sleep_pid=$!
12650fi
12651
12652rm -f conftest.file
12653
12654if test x"${MISSING+set}" != xset; then
12655 case $am_aux_dir in
12656 *\ * | *\ *)
12657 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
12658 *)
12659 MISSING="\${SHELL} $am_aux_dir/missing" ;;
12660 esac
12661fi
12662# Use eval to expand $SHELL
12663if eval "$MISSING --is-lightweight"; then
12664 am_missing_run="$MISSING "
c2783492
MF
12665else
12666 am_missing_run=
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12668$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12669fi
12670
12671if test x"${install_sh+set}" != xset; then
12672 case $am_aux_dir in
12673 *\ * | *\ *)
12674 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12675 *)
12676 install_sh="\${SHELL} $am_aux_dir/install-sh"
12677 esac
12678fi
12679
12680# Installed binaries are usually stripped using 'strip' when the user
12681# run "make install-strip". However 'strip' might not be the right
12682# tool to use in cross-compilation environments, therefore Automake
12683# will honor the 'STRIP' environment variable to overrule this program.
12684if test "$cross_compiling" != no; then
12685 if test -n "$ac_tool_prefix"; then
12686 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12687set dummy ${ac_tool_prefix}strip; ac_word=$2
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689$as_echo_n "checking for $ac_word... " >&6; }
12690if ${ac_cv_prog_STRIP+:} false; then :
12691 $as_echo_n "(cached) " >&6
12692else
12693 if test -n "$STRIP"; then
12694 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12695else
12696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697for as_dir in $PATH
12698do
12699 IFS=$as_save_IFS
12700 test -z "$as_dir" && as_dir=.
12701 for ac_exec_ext in '' $ac_executable_extensions; do
12702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12703 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12705 break 2
81ecdfbb 12706 fi
81ecdfbb 12707done
c2783492
MF
12708 done
12709IFS=$as_save_IFS
b7026657 12710
c906108c 12711fi
b7026657 12712fi
c2783492
MF
12713STRIP=$ac_cv_prog_STRIP
12714if test -n "$STRIP"; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12716$as_echo "$STRIP" >&6; }
81ecdfbb 12717else
c2783492
MF
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719$as_echo "no" >&6; }
81ecdfbb 12720fi
b7026657 12721
b7026657 12722
c2783492
MF
12723fi
12724if test -z "$ac_cv_prog_STRIP"; then
12725 ac_ct_STRIP=$STRIP
12726 # Extract the first word of "strip", so it can be a program name with args.
12727set dummy strip; ac_word=$2
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729$as_echo_n "checking for $ac_word... " >&6; }
12730if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12731 $as_echo_n "(cached) " >&6
c906108c 12732else
c2783492
MF
12733 if test -n "$ac_ct_STRIP"; then
12734 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
81ecdfbb 12735else
c2783492
MF
12736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737for as_dir in $PATH
12738do
12739 IFS=$as_save_IFS
12740 test -z "$as_dir" && as_dir=.
12741 for ac_exec_ext in '' $ac_executable_extensions; do
12742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12743 ac_cv_prog_ac_ct_STRIP="strip"
12744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12745 break 2
12746 fi
12747done
12748 done
12749IFS=$as_save_IFS
81ecdfbb 12750
81ecdfbb 12751fi
df1756f4 12752fi
c2783492
MF
12753ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12754if test -n "$ac_ct_STRIP"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12756$as_echo "$ac_ct_STRIP" >&6; }
12757else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759$as_echo "no" >&6; }
b7026657 12760fi
c2783492
MF
12761
12762 if test "x$ac_ct_STRIP" = x; then
12763 STRIP=":"
c906108c 12764 else
c2783492
MF
12765 case $cross_compiling:$ac_tool_warned in
12766yes:)
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12769ac_tool_warned=yes ;;
12770esac
12771 STRIP=$ac_ct_STRIP
c906108c
SS
12772 fi
12773else
c2783492 12774 STRIP="$ac_cv_prog_STRIP"
c906108c 12775fi
81ecdfbb 12776
b7026657 12777fi
c2783492 12778INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b7026657 12779
c2783492
MF
12780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12781$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12782if test -z "$MKDIR_P"; then
12783 if ${ac_cv_path_mkdir+:} false; then :
12784 $as_echo_n "(cached) " >&6
12785else
12786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12787for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12788do
12789 IFS=$as_save_IFS
12790 test -z "$as_dir" && as_dir=.
12791 for ac_prog in mkdir gmkdir; do
12792 for ac_exec_ext in '' $ac_executable_extensions; do
12793 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12794 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12795 'mkdir (GNU coreutils) '* | \
12796 'mkdir (coreutils) '* | \
12797 'mkdir (fileutils) '4.1*)
12798 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12799 break 3;;
12800 esac
12801 done
12802 done
12803 done
12804IFS=$as_save_IFS
b7026657 12805
fdd6fa61
AG
12806fi
12807
c2783492
MF
12808 test -d ./--version && rmdir ./--version
12809 if test "${ac_cv_path_mkdir+set}" = set; then
12810 MKDIR_P="$ac_cv_path_mkdir -p"
b5689863
MF
12811 else
12812 # As a last resort, use the slow shell script. Don't cache a
12813 # value for MKDIR_P within a source directory, because that will
12814 # break other packages using the cache if that directory is
12815 # removed, or if the value is a relative name.
12816 MKDIR_P="$ac_install_sh -d"
12817 fi
c2783492 12818fi
b5689863
MF
12819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12820$as_echo "$MKDIR_P" >&6; }
6bddc3e8 12821
c2783492
MF
12822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12823$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12824set x ${MAKE-make}
12825ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12826if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6bddc3e8
MF
12827 $as_echo_n "(cached) " >&6
12828else
c2783492
MF
12829 cat >conftest.make <<\_ACEOF
12830SHELL = /bin/sh
12831all:
12832 @echo '@@@%%%=$(MAKE)=@@@%%%'
12833_ACEOF
12834# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12835case `${MAKE-make} -f conftest.make 2>/dev/null` in
12836 *@@@%%%=?*=@@@%%%*)
12837 eval ac_cv_prog_make_${ac_make}_set=yes;;
12838 *)
12839 eval ac_cv_prog_make_${ac_make}_set=no;;
12840esac
12841rm -f conftest.make
12842fi
12843if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12845$as_echo "yes" >&6; }
12846 SET_MAKE=
12847else
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849$as_echo "no" >&6; }
12850 SET_MAKE="MAKE=${MAKE-make}"
12851fi
6bddc3e8 12852
c2783492
MF
12853rm -rf .tst 2>/dev/null
12854mkdir .tst 2>/dev/null
12855if test -d .tst; then
12856 am__leading_dot=.
12857else
12858 am__leading_dot=_
12859fi
12860rmdir .tst 2>/dev/null
6bddc3e8 12861
c2783492 12862DEPDIR="${am__leading_dot}deps"
6bddc3e8 12863
c2783492 12864ac_config_commands="$ac_config_commands depfiles"
6bddc3e8 12865
c2783492
MF
12866
12867am_make=${MAKE-make}
12868cat > confinc << 'END'
12869am__doit:
12870 @echo this is the am__doit target
12871.PHONY: am__doit
12872END
12873# If we don't find an include directive, just comment out the code.
12874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
12875$as_echo_n "checking for style of include used by $am_make... " >&6; }
12876am__include="#"
12877am__quote=
12878_am_result=none
12879# First try GNU make style include.
12880echo "include confinc" > confmf
12881# Ignore all kinds of additional output from 'make'.
12882case `$am_make -s -f confmf 2> /dev/null` in #(
12883*the\ am__doit\ target*)
12884 am__include=include
12885 am__quote=
12886 _am_result=GNU
12887 ;;
12888esac
12889# Now try BSD make style include.
12890if test "$am__include" = "#"; then
12891 echo '.include "confinc"' > confmf
12892 case `$am_make -s -f confmf 2> /dev/null` in #(
12893 *the\ am__doit\ target*)
12894 am__include=.include
12895 am__quote="\""
12896 _am_result=BSD
12897 ;;
12898 esac
6bddc3e8
MF
12899fi
12900
c2783492
MF
12901
12902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
12903$as_echo "$_am_result" >&6; }
12904rm -f confinc confmf
12905
12906# Check whether --enable-dependency-tracking was given.
12907if test "${enable_dependency_tracking+set}" = set; then :
12908 enableval=$enable_dependency_tracking;
6bddc3e8 12909fi
6bddc3e8 12910
c2783492
MF
12911if test "x$enable_dependency_tracking" != xno; then
12912 am_depcomp="$ac_aux_dir/depcomp"
12913 AMDEPBACKSLASH='\'
12914 am__nodep='_no'
12915fi
12916 if test "x$enable_dependency_tracking" != xno; then
12917 AMDEP_TRUE=
12918 AMDEP_FALSE='#'
6bddc3e8 12919else
c2783492
MF
12920 AMDEP_TRUE='#'
12921 AMDEP_FALSE=
6bddc3e8
MF
12922fi
12923
12924
c2783492
MF
12925# Check whether --enable-silent-rules was given.
12926if test "${enable_silent_rules+set}" = set; then :
12927 enableval=$enable_silent_rules;
5e25901f 12928fi
c2783492
MF
12929
12930case $enable_silent_rules in # (((
12931 yes) AM_DEFAULT_VERBOSITY=0;;
12932 no) AM_DEFAULT_VERBOSITY=1;;
12933 *) AM_DEFAULT_VERBOSITY=1;;
12934esac
12935am_make=${MAKE-make}
12936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12937$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12938if ${am_cv_make_support_nested_variables+:} false; then :
5e25901f
MF
12939 $as_echo_n "(cached) " >&6
12940else
c2783492
MF
12941 if $as_echo 'TRUE=$(BAR$(V))
12942BAR0=false
12943BAR1=true
12944V=1
12945am__doit:
12946 @$(TRUE)
12947.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12948 am_cv_make_support_nested_variables=yes
5e25901f 12949else
c2783492 12950 am_cv_make_support_nested_variables=no
5e25901f 12951fi
c2783492
MF
12952fi
12953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12954$as_echo "$am_cv_make_support_nested_variables" >&6; }
12955if test $am_cv_make_support_nested_variables = yes; then
12956 AM_V='$(V)'
12957 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5e25901f 12958else
c2783492
MF
12959 AM_V=$AM_DEFAULT_VERBOSITY
12960 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5e25901f 12961fi
c2783492 12962AM_BACKSLASH='\'
5e25901f 12963
c2783492
MF
12964if test "`cd $srcdir && pwd`" != "`pwd`"; then
12965 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12966 # is not polluted with repeated "-I."
12967 am__isrc=' -I$(srcdir)'
12968 # test to see if srcdir already configured
12969 if test -f $srcdir/config.status; then
12970 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12971 fi
5e25901f
MF
12972fi
12973
c2783492
MF
12974# test whether we have cygpath
12975if test -z "$CYGPATH_W"; then
12976 if (cygpath --version) >/dev/null 2>/dev/null; then
12977 CYGPATH_W='cygpath -w'
12978 else
12979 CYGPATH_W=echo
12980 fi
5e25901f 12981fi
c2783492
MF
12982
12983
12984# Define the identity of the package.
12985 PACKAGE='sim'
12986 VERSION='0'
12987
12988
12989cat >>confdefs.h <<_ACEOF
12990#define PACKAGE "$PACKAGE"
5e25901f 12991_ACEOF
5e25901f 12992
5e25901f 12993
c2783492
MF
12994cat >>confdefs.h <<_ACEOF
12995#define VERSION "$VERSION"
5e25901f 12996_ACEOF
5e25901f 12997
c2783492 12998# Some tools Automake needs.
5e25901f 12999
c2783492
MF
13000ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13001
13002
13003AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13004
13005
13006AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13007
13008
13009AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13010
13011
13012MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13013
13014# For better backward compatibility. To be removed once Automake 1.9.x
13015# dies out for good. For more background, see:
13016# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13017# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13018mkdir_p='$(MKDIR_P)'
13019
13020# We need awk for the "check" target (and possibly the TAP driver). The
13021# system "awk" is bad on some platforms.
13022# Always define AMTAR for backward compatibility. Yes, it's still used
13023# in the wild :-( We should find a proper way to deprecate it ...
13024AMTAR='$${TAR-tar}'
13025
13026
13027# We'll loop over all known methods to create a tar archive until one works.
13028_am_tools='gnutar pax cpio none'
13029
13030am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5e25901f 13031
5e25901f 13032
c906108c 13033
c906108c 13034
c2783492
MF
13035
13036depcc="$CC" am_compiler_list=
13037
13038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13039$as_echo_n "checking dependency style of $depcc... " >&6; }
13040if ${am_cv_CC_dependencies_compiler_type+:} false; then :
81ecdfbb 13041 $as_echo_n "(cached) " >&6
c906108c 13042else
c2783492
MF
13043 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13044 # We make a subdir and do the tests there. Otherwise we can end up
13045 # making bogus files that we don't know about and never remove. For
13046 # instance it was reported that on HP-UX the gcc test will end up
13047 # making a dummy file named 'D' -- because '-MD' means "put the output
13048 # in D".
13049 rm -rf conftest.dir
13050 mkdir conftest.dir
13051 # Copy depcomp to subdir because otherwise we won't find it if we're
13052 # using a relative directory.
13053 cp "$am_depcomp" conftest.dir
13054 cd conftest.dir
13055 # We will build objects and dependencies in a subdirectory because
13056 # it helps to detect inapplicable dependency modes. For instance
13057 # both Tru64's cc and ICC support -MD to output dependencies as a
13058 # side effect of compilation, but ICC will put the dependencies in
13059 # the current directory while Tru64 will put them in the object
13060 # directory.
13061 mkdir sub
13062
13063 am_cv_CC_dependencies_compiler_type=none
13064 if test "$am_compiler_list" = ""; then
13065 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
b7026657 13066 fi
c2783492
MF
13067 am__universal=false
13068 case " $depcc " in #(
13069 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13070 esac
13071
13072 for depmode in $am_compiler_list; do
13073 # Setup a source with many dependencies, because some compilers
13074 # like to wrap large dependency lists on column 80 (with \), and
13075 # we should not choose a depcomp mode which is confused by this.
13076 #
13077 # We need to recreate these files for each test, as the compiler may
13078 # overwrite some of them when testing with obscure command lines.
13079 # This happens at least with the AIX C compiler.
13080 : > sub/conftest.c
13081 for i in 1 2 3 4 5 6; do
13082 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13083 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13084 # Solaris 10 /bin/sh.
13085 echo '/* dummy */' > sub/conftst$i.h
13086 done
13087 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13088
13089 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13090 # mode. It turns out that the SunPro C++ compiler does not properly
13091 # handle '-M -o', and we need to detect this. Also, some Intel
13092 # versions had trouble with output in subdirs.
13093 am__obj=sub/conftest.${OBJEXT-o}
13094 am__minus_obj="-o $am__obj"
13095 case $depmode in
13096 gcc)
13097 # This depmode causes a compiler race in universal mode.
13098 test "$am__universal" = false || continue
13099 ;;
13100 nosideeffect)
13101 # After this tag, mechanisms are not by side-effect, so they'll
13102 # only be used when explicitly requested.
13103 if test "x$enable_dependency_tracking" = xyes; then
13104 continue
13105 else
13106 break
13107 fi
13108 ;;
13109 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13110 # This compiler won't grok '-c -o', but also, the minuso test has
13111 # not run yet. These depmodes are late enough in the game, and
13112 # so weak that their functioning should not be impacted.
13113 am__obj=conftest.${OBJEXT-o}
13114 am__minus_obj=
13115 ;;
13116 none) break ;;
13117 esac
13118 if depmode=$depmode \
13119 source=sub/conftest.c object=$am__obj \
13120 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13121 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13122 >/dev/null 2>conftest.err &&
13123 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13124 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13125 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13126 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13127 # icc doesn't choke on unknown options, it will just issue warnings
13128 # or remarks (even with -Werror). So we grep stderr for any message
13129 # that says an option was ignored or not supported.
13130 # When given -MP, icc 7.0 and 7.1 complain thusly:
13131 # icc: Command line warning: ignoring option '-M'; no argument required
13132 # The diagnosis changed in icc 8.0:
13133 # icc: Command line remark: option '-MP' not supported
13134 if (grep 'ignoring option' conftest.err ||
13135 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13136 am_cv_CC_dependencies_compiler_type=$depmode
13137 break
13138 fi
13139 fi
81ecdfbb 13140 done
b7026657 13141
c2783492
MF
13142 cd ..
13143 rm -rf conftest.dir
b7026657 13144else
c2783492 13145 am_cv_CC_dependencies_compiler_type=none
b7026657
AC
13146fi
13147
13148fi
c2783492
MF
13149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13150$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13151CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
b7026657 13152
c2783492
MF
13153 if
13154 test "x$enable_dependency_tracking" != xno \
13155 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13156 am__fastdepCC_TRUE=
13157 am__fastdepCC_FALSE='#'
c906108c 13158else
c2783492
MF
13159 am__fastdepCC_TRUE='#'
13160 am__fastdepCC_FALSE=
b7026657
AC
13161fi
13162
c906108c
SS
13163
13164
c2783492
MF
13165# POSIX will say in a future version that running "rm -f" with no argument
13166# is OK; and we want to be able to make that assumption in our Makefile
13167# recipes. So use an aggressive probe to check that the usage we want is
13168# actually supported "in the wild" to an acceptable degree.
13169# See automake bug#10828.
13170# To make any issue more visible, cause the running configure to be aborted
13171# by default if the 'rm' program in use doesn't match our expectations; the
13172# user can still override this though.
13173if rm -f && rm -fr && rm -rf; then : OK; else
13174 cat >&2 <<'END'
13175Oops!
13176
13177Your 'rm' program seems unable to run without file operands specified
13178on the command line, even when the '-f' option is present. This is contrary
13179to the behaviour of most rm programs out there, and not conforming with
13180the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13181
13182Please tell bug-automake@gnu.org about your system, including the value
13183of your $PATH and any error possibly output before this message. This
13184can help us improve future automake versions.
13185
13186END
13187 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13188 echo 'Configuration will proceed anyway, since you have set the' >&2
13189 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13190 echo >&2
5c887dd5 13191 else
c2783492
MF
13192 cat >&2 <<'END'
13193Aborting the configuration process, to ensure you take notice of the issue.
13194
13195You can download and install GNU coreutils to get an 'rm' implementation
13196that behaves properly: <http://www.gnu.org/software/coreutils/>.
13197
13198If you want to complete the configuration process using your problematic
13199'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13200to "yes", and re-run configure.
13201
13202END
13203 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5c887dd5 13204 fi
c906108c
SS
13205fi
13206
fbe8d1cf
MF
13207# Check whether --enable-silent-rules was given.
13208if test "${enable_silent_rules+set}" = set; then :
13209 enableval=$enable_silent_rules;
13210fi
13211
13212case $enable_silent_rules in # (((
13213 yes) AM_DEFAULT_VERBOSITY=0;;
13214 no) AM_DEFAULT_VERBOSITY=1;;
13215 *) AM_DEFAULT_VERBOSITY=0;;
13216esac
13217am_make=${MAKE-make}
13218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13219$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13220if ${am_cv_make_support_nested_variables+:} false; then :
13221 $as_echo_n "(cached) " >&6
13222else
13223 if $as_echo 'TRUE=$(BAR$(V))
13224BAR0=false
13225BAR1=true
13226V=1
13227am__doit:
13228 @$(TRUE)
13229.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13230 am_cv_make_support_nested_variables=yes
13231else
13232 am_cv_make_support_nested_variables=no
13233fi
13234fi
13235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13236$as_echo "$am_cv_make_support_nested_variables" >&6; }
13237if test $am_cv_make_support_nested_variables = yes; then
13238 AM_V='$(V)'
13239 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13240else
13241 AM_V=$AM_DEFAULT_VERBOSITY
13242 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13243fi
13244AM_BACKSLASH='\'
13245
c906108c
SS
13246
13247# If a cpu ever has more than one simulator to choose from, use
13248# --enable-sim=... to choose.
81ecdfbb
RW
13249# Check whether --enable-sim was given.
13250if test "${enable_sim+set}" = set; then :
13251 enableval=$enable_sim; case "${enableval}" in
c906108c 13252yes | no) ;;
d0ac1c44 13253*) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
c906108c 13254esac
81ecdfbb
RW
13255fi
13256
c906108c 13257
26da232c
MF
13258# Check whether --enable-example-sims was given.
13259if test "${enable_example_sims+set}" = set; then :
13260 enableval=$enable_example_sims;
13261fi
13262
13263
a0e674c1
MF
13264# Check whether --enable-targets was given.
13265if test "${enable_targets+set}" = set; then :
13266 enableval=$enable_targets; case "${enableval}" in
13267 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
13268 ;;
13269 no) enable_targets= ;;
13270 *) enable_targets=$enableval ;;
13271esac
13272fi
13273
13274
13275SIM_PRIMARY_TARGET=
13276
13277
13278
13279
bc56166f 13280
119da465 13281if test "${enable_sim}" != no; then
3e8bb3e9 13282 sim_igen=no
a0e674c1
MF
13283 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
13284 do
bc56166f 13285 case "${targ}" in
a0e674c1
MF
13286 all|aarch64*-*-*)
13287 if test "${targ}" = "${target}"; then
13288 SIM_PRIMARY_TARGET=aarch64
13289 fi
2e8cf49e
NC
13290
13291
13292subdirs="$subdirs aarch64"
fdd6fa61 13293
bc56166f
MF
13294 ac_config_commands="$ac_config_commands depdir-aarch64"
13295
13296
a0e674c1 13297
3e8bb3e9 13298 ;;
a0e674c1
MF
13299 esac
13300
bc56166f 13301 case "${targ}" in
a0e674c1
MF
13302 all|arm*-*-*)
13303 if test "${targ}" = "${target}"; then
13304 SIM_PRIMARY_TARGET=arm
13305 fi
bc56166f
MF
13306 subdirs="$subdirs arm"
13307
13308 ac_config_commands="$ac_config_commands depdir-arm"
13309
fdd6fa61 13310
a0e674c1 13311
3e8bb3e9 13312 ;;
a0e674c1
MF
13313 esac
13314
bc56166f 13315 case "${targ}" in
a0e674c1
MF
13316 all|avr*-*-*)
13317 if test "${targ}" = "${target}"; then
13318 SIM_PRIMARY_TARGET=avr
13319 fi
bc56166f
MF
13320 subdirs="$subdirs avr"
13321
13322 ac_config_commands="$ac_config_commands depdir-avr"
13323
0cd79707 13324
a0e674c1 13325
3e8bb3e9 13326 ;;
a0e674c1
MF
13327 esac
13328
bc56166f 13329 case "${targ}" in
a0e674c1
MF
13330 all|bfin-*-*)
13331 if test "${targ}" = "${target}"; then
13332 SIM_PRIMARY_TARGET=bfin
13333 fi
bc56166f
MF
13334 subdirs="$subdirs bfin"
13335
13336 ac_config_commands="$ac_config_commands depdir-bfin"
13337
ddd44b70 13338
a0e674c1 13339
3e8bb3e9 13340 ;;
a0e674c1
MF
13341 esac
13342
bc56166f 13343 case "${targ}" in
a0e674c1
MF
13344 all|bpf-*-*)
13345 if test "${targ}" = "${target}"; then
13346 SIM_PRIMARY_TARGET=bpf
13347 fi
bc56166f
MF
13348 subdirs="$subdirs bpf"
13349
13350 ac_config_commands="$ac_config_commands depdir-bpf"
13351
ddd44b70 13352
a0e674c1 13353
3e8bb3e9 13354 ;;
a0e674c1
MF
13355 esac
13356
bc56166f 13357 case "${targ}" in
a0e674c1
MF
13358 all|cr16*-*-*)
13359 if test "${targ}" = "${target}"; then
13360 SIM_PRIMARY_TARGET=cr16
13361 fi
bc56166f
MF
13362 subdirs="$subdirs cr16"
13363
13364 ac_config_commands="$ac_config_commands depdir-cr16"
13365
ddd44b70 13366
a0e674c1 13367
3e8bb3e9 13368 ;;
a0e674c1
MF
13369 esac
13370
bc56166f 13371 case "${targ}" in
a0e674c1
MF
13372 all|cris-*-* | crisv32-*-*)
13373 if test "${targ}" = "${target}"; then
13374 SIM_PRIMARY_TARGET=cris
13375 fi
bc56166f
MF
13376 subdirs="$subdirs cris"
13377
13378 ac_config_commands="$ac_config_commands depdir-cris"
13379
b9249c46 13380
a0e674c1 13381
3e8bb3e9 13382 ;;
a0e674c1
MF
13383 esac
13384
bc56166f 13385 case "${targ}" in
a0e674c1
MF
13386 all|d10v-*-*)
13387 if test "${targ}" = "${target}"; then
13388 SIM_PRIMARY_TARGET=d10v
13389 fi
bc56166f
MF
13390 subdirs="$subdirs d10v"
13391
13392 ac_config_commands="$ac_config_commands depdir-d10v"
13393
b9249c46 13394
a0e674c1 13395
3e8bb3e9 13396 ;;
a0e674c1
MF
13397 esac
13398
bc56166f 13399 case "${targ}" in
a0e674c1
MF
13400 all|frv-*-*)
13401 if test "${targ}" = "${target}"; then
13402 SIM_PRIMARY_TARGET=frv
13403 fi
bc56166f
MF
13404 subdirs="$subdirs frv"
13405
13406 ac_config_commands="$ac_config_commands depdir-frv"
13407
b9249c46 13408
a0e674c1 13409
3e8bb3e9 13410 ;;
a0e674c1
MF
13411 esac
13412
bc56166f 13413 case "${targ}" in
a0e674c1
MF
13414 all|h8300*-*-*)
13415 if test "${targ}" = "${target}"; then
13416 SIM_PRIMARY_TARGET=h8300
13417 fi
bc56166f
MF
13418 subdirs="$subdirs h8300"
13419
13420 ac_config_commands="$ac_config_commands depdir-h8300"
13421
119da465 13422
a0e674c1 13423
3e8bb3e9 13424 ;;
a0e674c1
MF
13425 esac
13426
bc56166f 13427 case "${targ}" in
a0e674c1
MF
13428 all|iq2000-*-*)
13429 if test "${targ}" = "${target}"; then
13430 SIM_PRIMARY_TARGET=iq2000
13431 fi
bc56166f
MF
13432 subdirs="$subdirs iq2000"
13433
13434 ac_config_commands="$ac_config_commands depdir-iq2000"
13435
119da465 13436
a0e674c1 13437
3e8bb3e9 13438 ;;
a0e674c1
MF
13439 esac
13440
bc56166f 13441 case "${targ}" in
a0e674c1
MF
13442 all|lm32-*-*)
13443 if test "${targ}" = "${target}"; then
13444 SIM_PRIMARY_TARGET=lm32
13445 fi
bc56166f
MF
13446 subdirs="$subdirs lm32"
13447
13448 ac_config_commands="$ac_config_commands depdir-lm32"
13449
119da465 13450
a0e674c1 13451
3e8bb3e9 13452 ;;
a0e674c1
MF
13453 esac
13454
bc56166f 13455 case "${targ}" in
a0e674c1
MF
13456 all|m32c-*-*)
13457 if test "${targ}" = "${target}"; then
13458 SIM_PRIMARY_TARGET=m32c
13459 fi
bc56166f
MF
13460 subdirs="$subdirs m32c"
13461
13462 ac_config_commands="$ac_config_commands depdir-m32c"
13463
87326c78 13464
a0e674c1 13465
3e8bb3e9 13466 ;;
a0e674c1
MF
13467 esac
13468
bc56166f 13469 case "${targ}" in
a0e674c1
MF
13470 all|m32r-*-*)
13471 if test "${targ}" = "${target}"; then
13472 SIM_PRIMARY_TARGET=m32r
13473 fi
bc56166f
MF
13474 subdirs="$subdirs m32r"
13475
13476 ac_config_commands="$ac_config_commands depdir-m32r"
13477
87326c78 13478
a0e674c1 13479
3e8bb3e9 13480 ;;
a0e674c1
MF
13481 esac
13482
bc56166f 13483 case "${targ}" in
a0e674c1
MF
13484 all|m68hc11-*-*|m6811-*-*)
13485 if test "${targ}" = "${target}"; then
13486 SIM_PRIMARY_TARGET=m68hc11
13487 fi
bc56166f
MF
13488 subdirs="$subdirs m68hc11"
13489
13490 ac_config_commands="$ac_config_commands depdir-m68hc11"
13491
87326c78 13492
a0e674c1 13493
3e8bb3e9 13494 ;;
a0e674c1
MF
13495 esac
13496
bc56166f 13497 case "${targ}" in
a0e674c1
MF
13498 all|mcore-*-*)
13499 if test "${targ}" = "${target}"; then
13500 SIM_PRIMARY_TARGET=mcore
13501 fi
bc56166f
MF
13502 subdirs="$subdirs mcore"
13503
13504 ac_config_commands="$ac_config_commands depdir-mcore"
13505
119da465 13506
a0e674c1 13507
3e8bb3e9 13508 ;;
a0e674c1
MF
13509 esac
13510
bc56166f 13511 case "${targ}" in
a0e674c1
MF
13512 all|microblaze-*-*)
13513 if test "${targ}" = "${target}"; then
13514 SIM_PRIMARY_TARGET=microblaze
13515 fi
bc56166f
MF
13516 subdirs="$subdirs microblaze"
13517
13518 ac_config_commands="$ac_config_commands depdir-microblaze"
13519
119da465 13520
a0e674c1 13521
3e8bb3e9 13522 ;;
a0e674c1
MF
13523 esac
13524
bc56166f 13525 case "${targ}" in
a0e674c1
MF
13526 all|mips*-*-*)
13527 if test "${targ}" = "${target}"; then
13528 SIM_PRIMARY_TARGET=mips
13529 fi
bc56166f
MF
13530 subdirs="$subdirs mips"
13531
13532 ac_config_commands="$ac_config_commands depdir-mips"
13533
119da465 13534
3e8bb3e9
MF
13535 sim_igen=yes
13536 ;;
a0e674c1
MF
13537 esac
13538
bc56166f 13539 case "${targ}" in
a0e674c1
MF
13540 all|mn10300*-*-*)
13541 if test "${targ}" = "${target}"; then
13542 SIM_PRIMARY_TARGET=mn10300
13543 fi
bc56166f
MF
13544 subdirs="$subdirs mn10300"
13545
13546 ac_config_commands="$ac_config_commands depdir-mn10300"
13547
119da465 13548
3e8bb3e9
MF
13549 sim_igen=yes
13550 ;;
a0e674c1
MF
13551 esac
13552
bc56166f 13553 case "${targ}" in
a0e674c1
MF
13554 all|moxie-*-*)
13555 if test "${targ}" = "${target}"; then
13556 SIM_PRIMARY_TARGET=moxie
13557 fi
bc56166f
MF
13558 subdirs="$subdirs moxie"
13559
13560 ac_config_commands="$ac_config_commands depdir-moxie"
13561
119da465 13562
a0e674c1 13563
3e8bb3e9 13564 ;;
a0e674c1
MF
13565 esac
13566
bc56166f 13567 case "${targ}" in
a0e674c1
MF
13568 all|msp430*-*-*)
13569 if test "${targ}" = "${target}"; then
13570 SIM_PRIMARY_TARGET=msp430
13571 fi
bc56166f
MF
13572 subdirs="$subdirs msp430"
13573
13574 ac_config_commands="$ac_config_commands depdir-msp430"
13575
119da465 13576
a0e674c1 13577
3e8bb3e9 13578 ;;
a0e674c1
MF
13579 esac
13580
bc56166f 13581 case "${targ}" in
a0e674c1
MF
13582 all|or1k-*-* | or1knd-*-*)
13583 if test "${targ}" = "${target}"; then
13584 SIM_PRIMARY_TARGET=or1k
13585 fi
bc56166f
MF
13586 subdirs="$subdirs or1k"
13587
13588 ac_config_commands="$ac_config_commands depdir-or1k"
13589
119da465 13590
a0e674c1 13591
3e8bb3e9 13592 ;;
a0e674c1
MF
13593 esac
13594
bc56166f 13595 case "${targ}" in
a0e674c1
MF
13596 all|pru*-*-*)
13597 if test "${targ}" = "${target}"; then
13598 SIM_PRIMARY_TARGET=pru
13599 fi
bc56166f
MF
13600 subdirs="$subdirs pru"
13601
13602 ac_config_commands="$ac_config_commands depdir-pru"
13603
119da465 13604
a0e674c1 13605
3e8bb3e9 13606 ;;
a0e674c1
MF
13607 esac
13608
bc56166f 13609 case "${targ}" in
a0e674c1
MF
13610 all|riscv*-*-*)
13611 if test "${targ}" = "${target}"; then
13612 SIM_PRIMARY_TARGET=riscv
13613 fi
bc56166f
MF
13614 subdirs="$subdirs riscv"
13615
13616 ac_config_commands="$ac_config_commands depdir-riscv"
13617
119da465 13618
a0e674c1 13619
3e8bb3e9 13620 ;;
a0e674c1
MF
13621 esac
13622
bc56166f 13623 case "${targ}" in
a0e674c1
MF
13624 all|rl78-*-*)
13625 if test "${targ}" = "${target}"; then
13626 SIM_PRIMARY_TARGET=rl78
13627 fi
bc56166f
MF
13628 subdirs="$subdirs rl78"
13629
13630 ac_config_commands="$ac_config_commands depdir-rl78"
13631
f46e4eb7 13632
a0e674c1 13633
3e8bb3e9 13634 ;;
a0e674c1
MF
13635 esac
13636
bc56166f 13637 case "${targ}" in
a0e674c1
MF
13638 all|rx-*-*)
13639 if test "${targ}" = "${target}"; then
13640 SIM_PRIMARY_TARGET=rx
13641 fi
bc56166f
MF
13642 subdirs="$subdirs rx"
13643
13644 ac_config_commands="$ac_config_commands depdir-rx"
13645
f46e4eb7 13646
a0e674c1 13647
3e8bb3e9 13648 ;;
a0e674c1
MF
13649 esac
13650
bc56166f 13651 case "${targ}" in
a0e674c1
MF
13652 all|sh*-*-*)
13653 if test "${targ}" = "${target}"; then
13654 SIM_PRIMARY_TARGET=sh
13655 fi
bc56166f
MF
13656 subdirs="$subdirs sh"
13657
13658 ac_config_commands="$ac_config_commands depdir-sh"
13659
f46e4eb7 13660
a0e674c1 13661
3e8bb3e9 13662 ;;
a0e674c1
MF
13663 esac
13664
bc56166f 13665 case "${targ}" in
a0e674c1
MF
13666 all|sparc-*-rtems*|sparc-*-elf*)
13667 if test "${targ}" = "${target}"; then
13668 SIM_PRIMARY_TARGET=erc32
13669 fi
bc56166f
MF
13670 subdirs="$subdirs erc32"
13671
13672 ac_config_commands="$ac_config_commands depdir-erc32"
13673
119da465 13674
a0e674c1 13675
3e8bb3e9 13676 ;;
a0e674c1
MF
13677 esac
13678
bc56166f 13679 case "${targ}" in
a0e674c1
MF
13680 all|powerpc*-*-*)
13681 if test "${targ}" = "${target}"; then
13682 SIM_PRIMARY_TARGET=ppc
13683 fi
bc56166f
MF
13684 subdirs="$subdirs ppc"
13685
13686 ac_config_commands="$ac_config_commands depdir-ppc"
13687
119da465 13688
a0e674c1 13689
3e8bb3e9 13690 ;;
a0e674c1
MF
13691 esac
13692
bc56166f 13693 case "${targ}" in
a0e674c1
MF
13694 all|ft32-*-*)
13695 if test "${targ}" = "${target}"; then
13696 SIM_PRIMARY_TARGET=ft32
13697 fi
bc56166f
MF
13698 subdirs="$subdirs ft32"
13699
13700 ac_config_commands="$ac_config_commands depdir-ft32"
13701
119da465 13702
a0e674c1 13703
3e8bb3e9 13704 ;;
a0e674c1
MF
13705 esac
13706
bc56166f 13707 case "${targ}" in
a0e674c1
MF
13708 all|v850*-*-*)
13709 if test "${targ}" = "${target}"; then
13710 SIM_PRIMARY_TARGET=v850
13711 fi
bc56166f
MF
13712 subdirs="$subdirs v850"
13713
13714 ac_config_commands="$ac_config_commands depdir-v850"
13715
119da465 13716
3e8bb3e9
MF
13717 sim_igen=yes
13718 ;;
13719 esac
a0e674c1
MF
13720
13721 done
26da232c
MF
13722
13723 if test "x${enable_example_sims}" = xyes; then
bc56166f
MF
13724 subdirs="$subdirs example-synacor"
13725
13726 ac_config_commands="$ac_config_commands depdir-example-synacor"
13727
26da232c
MF
13728
13729 fi
b6b1c790
MF
13730fi
13731 if test "$sim_igen" = "yes"; then
13732 SIM_ENABLE_IGEN_TRUE=
13733 SIM_ENABLE_IGEN_FALSE='#'
13734else
13735 SIM_ENABLE_IGEN_TRUE='#'
13736 SIM_ENABLE_IGEN_FALSE=
c906108c
SS
13737fi
13738
b6b1c790 13739
ba307cdd
MF
13740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
13741$as_echo_n "checking whether to force sim alignment... " >&6; }
13742sim_alignment=
13743# Check whether --enable-sim-alignment was given.
13744if test "${enable_sim_alignment+set}" = set; then :
13745 enableval=$enable_sim_alignment; case "${enableval}" in
13746 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
13747 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
13748 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
13749 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
13750esac
13751fi
13752
13753cat >>confdefs.h <<_ACEOF
13754#define WITH_ALIGNMENT ${sim_alignment:-0}
13755_ACEOF
13756
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13758$as_echo "${sim_alignment:-no}" >&6; }
13759
dba333c1
MF
13760
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
13762$as_echo_n "checking whether to enable sim asserts... " >&6; }
13763sim_assert="1"
13764# Check whether --enable-sim-assert was given.
13765if test "${enable_sim_assert+set}" = set; then :
13766 enableval=$enable_sim_assert; case "${enableval}" in
13767 yes) sim_assert="1";;
13768 no) sim_assert="0";;
13769 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
13770esac
13771fi
13772
13773cat >>confdefs.h <<_ACEOF
13774#define WITH_ASSERT $sim_assert
13775_ACEOF
13776
13777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
13778$as_echo "$sim_assert" >&6; }
13779
04381273
MF
13780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
13781$as_echo_n "checking for sim debug setting... " >&6; }
13782sim_debug="0"
13783# Check whether --enable-sim-debug was given.
13784if test "${enable_sim_debug+set}" = set; then :
13785 enableval=$enable_sim_debug; case "${enableval}" in
13786 yes) sim_debug="7";;
13787 no) sim_debug="0";;
13788 *) sim_debug="($enableval)";;
13789esac
13790fi
13791if test "$sim_debug" != "0"; then
13792
13793cat >>confdefs.h <<_ACEOF
13794#define DEBUG $sim_debug
13795_ACEOF
13796
13797fi
13798
13799cat >>confdefs.h <<_ACEOF
13800#define WITH_DEBUG $sim_debug
13801_ACEOF
13802
13803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
13804$as_echo "$sim_debug" >&6; }
f9a4d543
MF
13805
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
13807$as_echo_n "checking whether to force sim endianness... " >&6; }
13808sim_endian=
13809# Check whether --enable-sim-endian was given.
13810if test "${enable_sim_endian+set}" = set; then :
13811 enableval=$enable_sim_endian; case "${enableval}" in
13812 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
13813 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
13814 yes | no) ;;
13815 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
13816esac
13817fi
13818
13819cat >>confdefs.h <<_ACEOF
13820#define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
13821_ACEOF
13822
13823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13824$as_echo "${sim_alignment:-no}" >&6; }
04381273 13825
dba333c1 13826
5ea45474
MF
13827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
13828$as_echo_n "checking default sim environment setting... " >&6; }
13829sim_environment="ALL_ENVIRONMENT"
13830# Check whether --enable-sim-environment was given.
13831if test "${enable_sim_environment+set}" = set; then :
13832 enableval=$enable_sim_environment; case "${enableval}" in
13833 all | ALL) sim_environment="ALL_ENVIRONMENT";;
13834 user | USER) sim_environment="USER_ENVIRONMENT";;
13835 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
13836 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
13837 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
13838esac
13839fi
13840
13841cat >>confdefs.h <<_ACEOF
13842#define WITH_ENVIRONMENT $sim_environment
13843_ACEOF
13844
13845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
13846$as_echo "$sim_environment" >&6; }
13847
04381273
MF
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
13849$as_echo_n "checking for sim profile settings... " >&6; }
13850profile="1"
13851sim_profile="-1"
13852# Check whether --enable-sim-profile was given.
13853if test "${enable_sim_profile+set}" = set; then :
13854 enableval=$enable_sim_profile; case "${enableval}" in
13855 yes) profile="1" sim_profile="-1";;
13856 no) profile="0" sim_profile="0";;
13857 [-0-9]*)
13858 profile="(${enableval})" sim_profile="(${enableval})";;
13859 [a-z]*)
13860 profile="1"
13861 sim_profile=""
13862 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13863 if test x"$sim_profile" = x; then
13864 sim_profile="(PROFILE_$x"
13865 else
13866 sim_profile="${sim_profile}|PROFILE_$x"
13867 fi
13868 done
13869 sim_profile="$sim_profile)" ;;
13870esac
13871fi
13872
13873cat >>confdefs.h <<_ACEOF
13874#define PROFILE $profile
13875_ACEOF
13876
13877
13878cat >>confdefs.h <<_ACEOF
13879#define WITH_PROFILE $sim_profile
13880_ACEOF
13881
13882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
13883$as_echo "$sim_profile" >&6; }
13884
13885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
13886$as_echo_n "checking for sim stdio debug behavior... " >&6; }
13887sim_stdio="0"
13888# Check whether --enable-sim-stdio was given.
13889if test "${enable_sim_stdio+set}" = set; then :
13890 enableval=$enable_sim_stdio; case "${enableval}" in
13891 yes) sim_stdio="DO_USE_STDIO";;
13892 no) sim_stdio="DONT_USE_STDIO";;
13893 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
13894esac
13895fi
13896
13897cat >>confdefs.h <<_ACEOF
13898#define WITH_STDIO $sim_stdio
13899_ACEOF
13900
13901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
13902$as_echo "$sim_stdio" >&6; }
13903
13904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
13905$as_echo_n "checking for sim trace settings... " >&6; }
13906sim_trace="~TRACE_debug"
13907# Check whether --enable-sim-trace was given.
13908if test "${enable_sim_trace+set}" = set; then :
13909 enableval=$enable_sim_trace; case "${enableval}" in
13910 yes) sim_trace="-1";;
13911 no) sim_trace="0";;
13912 [-0-9]*)
13913 sim_trace="'(${enableval})'";;
13914 [[:lower:]]*)
13915 sim_trace=""
13916 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13917 if test x"$sim_trace" = x; then
13918 sim_trace="(TRACE_$x"
13919 else
13920 sim_trace="${sim_trace}|TRACE_$x"
13921 fi
13922 done
13923 sim_trace="$sim_trace)" ;;
13924esac
13925fi
13926
13927cat >>confdefs.h <<_ACEOF
13928#define WITH_TRACE $sim_trace
13929_ACEOF
13930
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
13932$as_echo "$sim_trace" >&6; }
13933
5ea45474 13934
47ce766a
MF
13935# Check whether --enable-werror was given.
13936if test "${enable_werror+set}" = set; then :
13937 enableval=$enable_werror; case "${enableval}" in
13938 yes | y) ERROR_ON_WARNING="yes" ;;
13939 no | n) ERROR_ON_WARNING="no" ;;
13940 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13941 esac
13942fi
13943
13944
13945if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13946 ERROR_ON_WARNING=yes
13947fi
13948
13949WERROR_CFLAGS=""
13950if test "${ERROR_ON_WARNING}" = yes ; then
13951 WERROR_CFLAGS="-Werror"
13952fi
13953
13954build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13955-Wpointer-sign \
13956-Wno-unused -Wunused-value -Wunused-function \
13957-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
13958-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
13959-Wold-style-declaration -Wold-style-definition"
13960
13961# Enable -Wno-format by default when using gcc on mingw since many
13962# GCC versions complain about %I64.
13963case "${host}" in
13964 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
13965 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
13966esac
13967
13968# Check whether --enable-build-warnings was given.
13969if test "${enable_build_warnings+set}" = set; then :
13970 enableval=$enable_build_warnings; case "${enableval}" in
13971 yes) ;;
13972 no) build_warnings="-w";;
13973 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13974 build_warnings="${build_warnings} ${t}";;
13975 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13976 build_warnings="${t} ${build_warnings}";;
13977 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13978esac
13979if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13980 echo "Setting compiler warning flags = $build_warnings" 6>&1
13981fi
13982fi
13983# Check whether --enable-sim-build-warnings was given.
13984if test "${enable_sim_build_warnings+set}" = set; then :
13985 enableval=$enable_sim_build_warnings; case "${enableval}" in
13986 yes) ;;
13987 no) build_warnings="-w";;
13988 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13989 build_warnings="${build_warnings} ${t}";;
13990 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13991 build_warnings="${t} ${build_warnings}";;
13992 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13993esac
13994if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13995 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13996fi
13997fi
13998WARN_CFLAGS=""
13999if test "x${build_warnings}" != x -a "x$GCC" = xyes
14000then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14002$as_echo_n "checking compiler warning flags... " >&6; }
14003 # Separate out the -Werror flag as some files just cannot be
14004 # compiled with it enabled.
14005 for w in ${build_warnings}; do
14006 case $w in
14007 -Werr*) WERROR_CFLAGS=-Werror ;;
14008 *) # Check that GCC accepts it
14009 saved_CFLAGS="$CFLAGS"
14010 CFLAGS="$CFLAGS -Werror $w"
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012/* end confdefs.h. */
14013
14014int
14015main ()
14016{
14017
14018 ;
14019 return 0;
14020}
14021_ACEOF
14022if ac_fn_c_try_compile "$LINENO"; then :
14023 WARN_CFLAGS="${WARN_CFLAGS} $w"
14024fi
14025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026 CFLAGS="$saved_CFLAGS"
14027 esac
14028 done
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14030$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14031fi
14032
14033
3f8414df 14034ac_config_files="$ac_config_files arch-subdir.mk Makefile"
81ecdfbb 14035
b7026657 14036cat >confcache <<\_ACEOF
c906108c
SS
14037# This file is a shell script that caches the results of configure
14038# tests run on this system so they can be shared between configure
b7026657
AC
14039# scripts and configure runs, see configure's option --config-cache.
14040# It is not useful on other systems. If it contains results you don't
14041# want to keep, you may remove or edit it.
c906108c 14042#
b7026657
AC
14043# config.status only pays attention to the cache file if you give it
14044# the --recheck option to rerun configure.
c906108c 14045#
b7026657
AC
14046# `ac_cv_env_foo' variables (set or unset) will be overridden when
14047# loading this file, other *unset* `ac_cv_foo' will be assigned the
14048# following values.
14049
14050_ACEOF
14051
c906108c
SS
14052# The following way of writing the cache mishandles newlines in values,
14053# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14054# So, we kill variables containing newlines.
c906108c
SS
14055# Ultrix sh set writes to stderr and can't be redirected directly,
14056# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14057(
14058 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14059 eval ac_val=\$$ac_var
14060 case $ac_val in #(
14061 *${as_nl}*)
14062 case $ac_var in #(
14063 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14064$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14065 esac
14066 case $ac_var in #(
14067 _ | IFS | as_nl) ;; #(
14068 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14069 *) { eval $ac_var=; unset $ac_var;} ;;
14070 esac ;;
14071 esac
14072 done
14073
b7026657 14074 (set) 2>&1 |
81ecdfbb
RW
14075 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14076 *${as_nl}ac_space=\ *)
14077 # `set' does not quote correctly, so add quotes: double-quote
14078 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
14079 sed -n \
14080 "s/'/'\\\\''/g;
14081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14082 ;; #(
b7026657
AC
14083 *)
14084 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 14086 ;;
81ecdfbb
RW
14087 esac |
14088 sort
14089) |
b7026657 14090 sed '
81ecdfbb 14091 /^ac_cv_env_/b end
b7026657 14092 t clear
81ecdfbb 14093 :clear
b7026657
AC
14094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14095 t end
81ecdfbb
RW
14096 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14097 :end' >>confcache
14098if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14099 if test -w "$cache_file"; then
d0ac1c44 14100 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14102$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
14103 if test ! -f "$cache_file" || test -h "$cache_file"; then
14104 cat confcache >"$cache_file"
14105 else
14106 case $cache_file in #(
14107 */* | ?:*)
14108 mv -f confcache "$cache_file"$$ &&
14109 mv -f "$cache_file"$$ "$cache_file" ;; #(
14110 *)
14111 mv -f confcache "$cache_file" ;;
14112 esac
14113 fi
14114 fi
c906108c 14115 else
81ecdfbb
RW
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14117$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
14118 fi
14119fi
14120rm -f confcache
14121
c906108c
SS
14122test "x$prefix" = xNONE && prefix=$ac_default_prefix
14123# Let make expand exec_prefix.
14124test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14125
b15c5d7a 14126DEFS=-DHAVE_CONFIG_H
b7026657
AC
14127
14128ac_libobjs=
14129ac_ltlibobjs=
d0ac1c44 14130U=
b7026657
AC
14131for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14132 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14133 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14134 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14135 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14136 # will be set to the directory where LIBOBJS objects are built.
14137 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14138 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
14139done
14140LIBOBJS=$ac_libobjs
c906108c 14141
b7026657
AC
14142LTLIBOBJS=$ac_ltlibobjs
14143
14144
c2783492 14145
b5689863
MF
14146if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
14147 as_fn_error $? "conditional \"PLUGINS\" was never defined.
14148Usually this means the macro was only invoked conditionally." "$LINENO" 5
14149fi
8c379db2
TT
14150if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14151 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14152Usually this means the macro was only invoked conditionally." "$LINENO" 5
14153fi
6bddc3e8
MF
14154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14155$as_echo_n "checking that generated files are newer than configure... " >&6; }
14156 if test -n "$am_sleep_pid"; then
14157 # Hide warnings about reused PIDs.
14158 wait $am_sleep_pid 2>/dev/null
14159 fi
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14161$as_echo "done" >&6; }
6bddc3e8
MF
14162if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14163 as_fn_error $? "conditional \"AMDEP\" was never defined.
14164Usually this means the macro was only invoked conditionally." "$LINENO" 5
14165fi
14166if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14167 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14168Usually this means the macro was only invoked conditionally." "$LINENO" 5
14169fi
c2783492
MF
14170 if test -n "$EXEEXT"; then
14171 am__EXEEXT_TRUE=
14172 am__EXEEXT_FALSE='#'
14173else
14174 am__EXEEXT_TRUE='#'
14175 am__EXEEXT_FALSE=
6bddc3e8 14176fi
b7026657 14177
b6b1c790
MF
14178if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
14179 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
14180Usually this means the macro was only invoked conditionally." "$LINENO" 5
14181fi
c2783492 14182
d0ac1c44 14183: "${CONFIG_STATUS=./config.status}"
81ecdfbb 14184ac_write_fail=0
b7026657
AC
14185ac_clean_files_save=$ac_clean_files
14186ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14187{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14188$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14189as_write_fail=0
14190cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
14191#! $SHELL
14192# Generated by $as_me.
c906108c 14193# Run this file to recreate the current configuration.
c906108c 14194# Compiler output produced by configure, useful for debugging
b7026657
AC
14195# configure, is in config.log if it exists.
14196
14197debug=false
14198ac_cs_recheck=false
14199ac_cs_silent=false
b7026657 14200
81ecdfbb
RW
14201SHELL=\${CONFIG_SHELL-$SHELL}
14202export SHELL
14203_ASEOF
14204cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14205## -------------------- ##
14206## M4sh Initialization. ##
14207## -------------------- ##
14208
14209# Be more Bourne compatible
14210DUALCASE=1; export DUALCASE # for MKS sh
14211if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
14212 emulate sh
14213 NULLCMD=:
81ecdfbb 14214 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
14215 # is contrary to our usage. Disable this feature.
14216 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14217 setopt NO_GLOB_SUBST
14218else
14219 case `(set -o) 2>/dev/null` in #(
14220 *posix*) :
14221 set -o posix ;; #(
14222 *) :
14223 ;;
14224esac
b7026657 14225fi
c906108c 14226
81ecdfbb
RW
14227
14228as_nl='
14229'
14230export as_nl
14231# Printing a long string crashes Solaris 7 /usr/bin/printf.
14232as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14233as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14234as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14235# Prefer a ksh shell builtin over an external printf program on Solaris,
14236# but without wasting forks for bash or zsh.
14237if test -z "$BASH_VERSION$ZSH_VERSION" \
14238 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14239 as_echo='print -r --'
14240 as_echo_n='print -rn --'
14241elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14242 as_echo='printf %s\n'
14243 as_echo_n='printf %s'
b7026657 14244else
81ecdfbb
RW
14245 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14246 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14247 as_echo_n='/usr/ucb/echo -n'
14248 else
14249 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14250 as_echo_n_body='eval
14251 arg=$1;
14252 case $arg in #(
14253 *"$as_nl"*)
14254 expr "X$arg" : "X\\(.*\\)$as_nl";
14255 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14256 esac;
14257 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14258 '
14259 export as_echo_n_body
14260 as_echo_n='sh -c $as_echo_n_body as_echo'
14261 fi
14262 export as_echo_body
14263 as_echo='sh -c $as_echo_body as_echo'
14264fi
14265
14266# The user is always right.
14267if test "${PATH_SEPARATOR+set}" != set; then
14268 PATH_SEPARATOR=:
14269 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14270 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14271 PATH_SEPARATOR=';'
14272 }
b7026657
AC
14273fi
14274
14275
81ecdfbb
RW
14276# IFS
14277# We need space, tab and new line, in precisely that order. Quoting is
14278# there to prevent editors from complaining about space-tab.
14279# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14280# splitting by setting IFS to empty value.)
14281IFS=" "" $as_nl"
14282
14283# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 14284as_myself=
81ecdfbb
RW
14285case $0 in #((
14286 *[\\/]* ) as_myself=$0 ;;
14287 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14288for as_dir in $PATH
14289do
14290 IFS=$as_save_IFS
14291 test -z "$as_dir" && as_dir=.
14292 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14293 done
14294IFS=$as_save_IFS
14295
14296 ;;
14297esac
14298# We did not find ourselves, most probably we were run as `sh COMMAND'
14299# in which case we are not to be found in the path.
14300if test "x$as_myself" = x; then
14301 as_myself=$0
14302fi
14303if test ! -f "$as_myself"; then
14304 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14305 exit 1
14306fi
14307
14308# Unset variables that we do not need and which cause bugs (e.g. in
14309# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14310# suppresses any "Segmentation fault" message there. '((' could
14311# trigger a bug in pdksh 5.2.14.
14312for as_var in BASH_ENV ENV MAIL MAILPATH
14313do eval test x\${$as_var+set} = xset \
14314 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14315done
b7026657
AC
14316PS1='$ '
14317PS2='> '
14318PS4='+ '
14319
14320# NLS nuisances.
81ecdfbb
RW
14321LC_ALL=C
14322export LC_ALL
14323LANGUAGE=C
14324export LANGUAGE
14325
14326# CDPATH.
14327(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14328
14329
d0ac1c44
SM
14330# as_fn_error STATUS ERROR [LINENO LOG_FD]
14331# ----------------------------------------
81ecdfbb
RW
14332# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14333# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 14334# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
14335as_fn_error ()
14336{
d0ac1c44
SM
14337 as_status=$1; test $as_status -eq 0 && as_status=1
14338 if test "$4"; then
14339 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14340 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 14341 fi
d0ac1c44 14342 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
14343 as_fn_exit $as_status
14344} # as_fn_error
c906108c 14345
81ecdfbb
RW
14346
14347# as_fn_set_status STATUS
14348# -----------------------
14349# Set $? to STATUS, without forking.
14350as_fn_set_status ()
14351{
14352 return $1
14353} # as_fn_set_status
14354
14355# as_fn_exit STATUS
14356# -----------------
14357# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14358as_fn_exit ()
14359{
14360 set +e
14361 as_fn_set_status $1
14362 exit $1
14363} # as_fn_exit
14364
14365# as_fn_unset VAR
14366# ---------------
14367# Portably unset VAR.
14368as_fn_unset ()
14369{
14370 { eval $1=; unset $1;}
14371}
14372as_unset=as_fn_unset
14373# as_fn_append VAR VALUE
14374# ----------------------
14375# Append the text in VALUE to the end of the definition contained in VAR. Take
14376# advantage of any shell optimizations that allow amortized linear growth over
14377# repeated appends, instead of the typical quadratic growth present in naive
14378# implementations.
14379if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14380 eval 'as_fn_append ()
14381 {
14382 eval $1+=\$2
14383 }'
14384else
14385 as_fn_append ()
14386 {
14387 eval $1=\$$1\$2
14388 }
14389fi # as_fn_append
14390
14391# as_fn_arith ARG...
14392# ------------------
14393# Perform arithmetic evaluation on the ARGs, and store the result in the
14394# global $as_val. Take advantage of shells that can avoid forks. The arguments
14395# must be portable across $(()) and expr.
14396if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14397 eval 'as_fn_arith ()
14398 {
14399 as_val=$(( $* ))
14400 }'
14401else
14402 as_fn_arith ()
14403 {
14404 as_val=`expr "$@" || test $? -eq 1`
14405 }
14406fi # as_fn_arith
14407
14408
14409if expr a : '\(a\)' >/dev/null 2>&1 &&
14410 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
14411 as_expr=expr
14412else
14413 as_expr=false
14414fi
c906108c 14415
81ecdfbb 14416if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
14417 as_basename=basename
14418else
14419 as_basename=false
14420fi
c906108c 14421
81ecdfbb
RW
14422if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14423 as_dirname=dirname
14424else
14425 as_dirname=false
14426fi
c906108c 14427
81ecdfbb 14428as_me=`$as_basename -- "$0" ||
b7026657
AC
14429$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14430 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14431 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14432$as_echo X/"$0" |
14433 sed '/^.*\/\([^/][^/]*\)\/*$/{
14434 s//\1/
14435 q
14436 }
14437 /^X\/\(\/\/\)$/{
14438 s//\1/
14439 q
14440 }
14441 /^X\/\(\/\).*/{
14442 s//\1/
14443 q
14444 }
14445 s/.*/./; q'`
b7026657 14446
fdd6fa61
AG
14447# Avoid depending upon Character Ranges.
14448as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14449as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14450as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14451as_cr_digits='0123456789'
14452as_cr_alnum=$as_cr_Letters$as_cr_digits
14453
81ecdfbb
RW
14454ECHO_C= ECHO_N= ECHO_T=
14455case `echo -n x` in #(((((
14456-n*)
14457 case `echo 'xy\c'` in
14458 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14459 xy) ECHO_C='\c';;
14460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14461 ECHO_T=' ';;
14462 esac;;
14463*)
14464 ECHO_N='-n';;
b7026657
AC
14465esac
14466
81ecdfbb
RW
14467rm -f conf$$ conf$$.exe conf$$.file
14468if test -d conf$$.dir; then
14469 rm -f conf$$.dir/conf$$.file
b7026657 14470else
81ecdfbb
RW
14471 rm -f conf$$.dir
14472 mkdir conf$$.dir 2>/dev/null
b7026657 14473fi
81ecdfbb
RW
14474if (echo >conf$$.file) 2>/dev/null; then
14475 if ln -s conf$$.file conf$$ 2>/dev/null; then
fdd6fa61 14476 as_ln_s='ln -s'
81ecdfbb
RW
14477 # ... but there are two gotchas:
14478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 14480 # In both cases, we have to default to `cp -pR'.
81ecdfbb 14481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 14482 as_ln_s='cp -pR'
81ecdfbb
RW
14483 elif ln conf$$.file conf$$ 2>/dev/null; then
14484 as_ln_s=ln
14485 else
d0ac1c44 14486 as_ln_s='cp -pR'
fdd6fa61 14487 fi
b7026657 14488else
d0ac1c44 14489 as_ln_s='cp -pR'
b7026657 14490fi
81ecdfbb
RW
14491rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14492rmdir conf$$.dir 2>/dev/null
14493
14494
14495# as_fn_mkdir_p
14496# -------------
14497# Create "$as_dir" as a directory, including parents if necessary.
14498as_fn_mkdir_p ()
14499{
b7026657 14500
81ecdfbb
RW
14501 case $as_dir in #(
14502 -*) as_dir=./$as_dir;;
14503 esac
14504 test -d "$as_dir" || eval $as_mkdir_p || {
14505 as_dirs=
14506 while :; do
14507 case $as_dir in #(
14508 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14509 *) as_qdir=$as_dir;;
14510 esac
14511 as_dirs="'$as_qdir' $as_dirs"
14512 as_dir=`$as_dirname -- "$as_dir" ||
14513$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14514 X"$as_dir" : 'X\(//\)[^/]' \| \
14515 X"$as_dir" : 'X\(//\)$' \| \
14516 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14517$as_echo X"$as_dir" |
14518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14519 s//\1/
14520 q
14521 }
14522 /^X\(\/\/\)[^/].*/{
14523 s//\1/
14524 q
14525 }
14526 /^X\(\/\/\)$/{
14527 s//\1/
14528 q
14529 }
14530 /^X\(\/\).*/{
14531 s//\1/
14532 q
14533 }
14534 s/.*/./; q'`
14535 test -d "$as_dir" && break
14536 done
14537 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 14538 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
14539
14540
14541} # as_fn_mkdir_p
b7026657 14542if mkdir -p . 2>/dev/null; then
81ecdfbb 14543 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
14544else
14545 test -d ./-p && rmdir ./-p
14546 as_mkdir_p=false
14547fi
14548
d0ac1c44
SM
14549
14550# as_fn_executable_p FILE
14551# -----------------------
14552# Test if FILE is an executable regular file.
14553as_fn_executable_p ()
14554{
14555 test -f "$1" && test -x "$1"
14556} # as_fn_executable_p
14557as_test_x='test -x'
14558as_executable_p=as_fn_executable_p
b7026657
AC
14559
14560# Sed expression to map a string onto a valid CPP name.
14561as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14562
14563# Sed expression to map a string onto a valid variable name.
14564as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14565
14566
b7026657 14567exec 6>&1
81ecdfbb
RW
14568## ----------------------------------- ##
14569## Main body of $CONFIG_STATUS script. ##
14570## ----------------------------------- ##
14571_ASEOF
14572test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14573
14574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14575# Save the log message, to keep $0 and so on meaningful, and to
b7026657 14576# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14577# values after options handling.
14578ac_log="
6bddc3e8 14579This file was extended by sim $as_me 0, which was
d0ac1c44 14580generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
14581
14582 CONFIG_FILES = $CONFIG_FILES
14583 CONFIG_HEADERS = $CONFIG_HEADERS
14584 CONFIG_LINKS = $CONFIG_LINKS
14585 CONFIG_COMMANDS = $CONFIG_COMMANDS
14586 $ $0 $@
14587
81ecdfbb
RW
14588on `(hostname || uname -n) 2>/dev/null | sed 1q`
14589"
14590
b7026657
AC
14591_ACEOF
14592
81ecdfbb
RW
14593case $ac_config_files in *"
14594"*) set x $ac_config_files; shift; ac_config_files=$*;;
14595esac
b7026657 14596
b15c5d7a
MF
14597case $ac_config_headers in *"
14598"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14599esac
fdd6fa61 14600
fdd6fa61 14601
81ecdfbb
RW
14602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14603# Files that config.status was made for.
14604config_files="$ac_config_files"
b15c5d7a 14605config_headers="$ac_config_headers"
6bddc3e8 14606config_commands="$ac_config_commands"
b7026657 14607
81ecdfbb 14608_ACEOF
fdd6fa61 14609
81ecdfbb 14610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 14611ac_cs_usage="\
81ecdfbb
RW
14612\`$as_me' instantiates files and other configuration actions
14613from templates according to the current configuration. Unless the files
14614and actions are specified as TAGs, all are instantiated by default.
b7026657 14615
81ecdfbb 14616Usage: $0 [OPTION]... [TAG]...
b7026657
AC
14617
14618 -h, --help print this help, then exit
81ecdfbb 14619 -V, --version print version number and configuration settings, then exit
d0ac1c44 14620 --config print configuration, then exit
81ecdfbb
RW
14621 -q, --quiet, --silent
14622 do not print progress messages
b7026657
AC
14623 -d, --debug don't remove temporary files
14624 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14625 --file=FILE[:TEMPLATE]
14626 instantiate the configuration file FILE
b15c5d7a
MF
14627 --header=FILE[:TEMPLATE]
14628 instantiate the configuration header FILE
b7026657
AC
14629
14630Configuration files:
14631$config_files
14632
b15c5d7a
MF
14633Configuration headers:
14634$config_headers
14635
6bddc3e8
MF
14636Configuration commands:
14637$config_commands
14638
14639Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
14640sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
fdd6fa61 14641
81ecdfbb
RW
14642_ACEOF
14643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 14644ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657 14645ac_cs_version="\\
6bddc3e8 14646sim config.status 0
d0ac1c44
SM
14647configured by $0, generated by GNU Autoconf 2.69,
14648 with options \\"\$ac_cs_config\\"
b7026657 14649
d0ac1c44 14650Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
14651This config.status script is free software; the Free Software Foundation
14652gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14653
14654ac_pwd='$ac_pwd'
14655srcdir='$srcdir'
14656INSTALL='$INSTALL'
6bddc3e8
MF
14657MKDIR_P='$MKDIR_P'
14658AWK='$AWK'
81ecdfbb 14659test -n "\$AWK" || AWK=awk
b7026657
AC
14660_ACEOF
14661
81ecdfbb
RW
14662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14663# The default lists apply if the user does not specify any file.
b7026657
AC
14664ac_need_defaults=:
14665while test $# != 0
14666do
14667 case $1 in
d0ac1c44 14668 --*=?*)
81ecdfbb
RW
14669 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14670 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
14671 ac_shift=:
14672 ;;
d0ac1c44
SM
14673 --*=)
14674 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14675 ac_optarg=
14676 ac_shift=:
14677 ;;
81ecdfbb 14678 *)
b7026657
AC
14679 ac_option=$1
14680 ac_optarg=$2
14681 ac_shift=shift
14682 ;;
b7026657
AC
14683 esac
14684
14685 case $ac_option in
14686 # Handling of the options.
b7026657
AC
14687 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14688 ac_cs_recheck=: ;;
81ecdfbb
RW
14689 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14690 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
14691 --config | --confi | --conf | --con | --co | --c )
14692 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 14693 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
14694 debug=: ;;
14695 --file | --fil | --fi | --f )
14696 $ac_shift
81ecdfbb
RW
14697 case $ac_optarg in
14698 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 14699 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
14700 esac
14701 as_fn_append CONFIG_FILES " '$ac_optarg'"
fdd6fa61 14702 ac_need_defaults=false;;
b15c5d7a
MF
14703 --header | --heade | --head | --hea )
14704 $ac_shift
14705 case $ac_optarg in
14706 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14707 esac
14708 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14709 ac_need_defaults=false;;
14710 --he | --h)
14711 # Conflict between --help and --header
14712 as_fn_error $? "ambiguous option: \`$1'
14713Try \`$0 --help' for more information.";;
14714 --help | --hel | -h )
81ecdfbb 14715 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
14716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14717 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14718 ac_cs_silent=: ;;
14719
14720 # This is an error.
d0ac1c44 14721 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 14722Try \`$0 --help' for more information." ;;
b7026657 14723
81ecdfbb
RW
14724 *) as_fn_append ac_config_targets " $1"
14725 ac_need_defaults=false ;;
b7026657
AC
14726
14727 esac
14728 shift
c906108c 14729done
b7026657
AC
14730
14731ac_configure_extra_args=
14732
14733if $ac_cs_silent; then
14734 exec 6>/dev/null
14735 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c 14736fi
c906108c 14737
b7026657 14738_ACEOF
81ecdfbb 14739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 14740if \$ac_cs_recheck; then
d0ac1c44 14741 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
14742 shift
14743 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14744 CONFIG_SHELL='$SHELL'
14745 export CONFIG_SHELL
14746 exec "\$@"
b7026657 14747fi
c906108c 14748
b7026657 14749_ACEOF
81ecdfbb
RW
14750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14751exec 5>>config.log
14752{
14753 echo
14754 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14755## Running $as_me. ##
14756_ASBOX
14757 $as_echo "$ac_log"
14758} >&5
b7026657 14759
81ecdfbb
RW
14760_ACEOF
14761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bddc3e8
MF
14762#
14763# INIT-COMMANDS
14764#
b5689863
MF
14765
14766
14767# The HP-UX ksh and POSIX shell print the target directory to stdout
14768# if CDPATH is set.
14769(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14770
14771sed_quote_subst='$sed_quote_subst'
14772double_quote_subst='$double_quote_subst'
14773delay_variable_subst='$delay_variable_subst'
14774macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14775macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14776enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14777enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14778pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14779enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14780SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14781ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14782host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14783host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14784host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14785build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14786build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14787build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14788SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14789Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14790GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14791EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14792FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14793LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14794NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14795LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14796max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14797ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14798exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14799lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14800lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14801lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14802reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14803reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14804OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14805deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14806file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14807AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14808AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14809STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14810RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14811old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14812old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14813old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14814lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14815CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14816CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14817compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14818GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14819lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14820lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14821lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14822lt_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"`'
14823objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14824MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14825lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14826lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14827lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14828lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14829lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14830need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14831DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14832NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14833LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14834OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14835OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14836libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14837shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14838extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14839archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14840enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14841export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14842whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14843compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14844old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14845old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14846archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14847archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14848module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14849module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14850with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14851allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14852no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14853hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14854hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14855hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14856hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14857hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14858hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14859hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14860hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14861inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14862link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14863fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14864always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14865export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14866exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14867include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14868prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14869file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14870variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14871need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14872need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14873version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14874runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14875shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14876shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14877libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14878library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14879soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14880install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14881postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14882postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14883finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14884finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14885hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14886sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14887sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14888hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14889enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14890enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14891enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14892old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14893striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14894
14895LTCC='$LTCC'
14896LTCFLAGS='$LTCFLAGS'
14897compiler='$compiler_DEFAULT'
14898
14899# A function that is used when there is no print builtin or printf.
14900func_fallback_echo ()
14901{
14902 eval 'cat <<_LTECHO_EOF
14903\$1
14904_LTECHO_EOF'
14905}
14906
14907# Quote evaled strings.
14908for var in SHELL \
14909ECHO \
14910SED \
14911GREP \
14912EGREP \
14913FGREP \
14914LD \
14915NM \
14916LN_S \
14917lt_SP2NL \
14918lt_NL2SP \
14919reload_flag \
14920OBJDUMP \
14921deplibs_check_method \
14922file_magic_cmd \
14923AR \
14924AR_FLAGS \
14925STRIP \
14926RANLIB \
14927CC \
14928CFLAGS \
14929compiler \
14930lt_cv_sys_global_symbol_pipe \
14931lt_cv_sys_global_symbol_to_cdecl \
14932lt_cv_sys_global_symbol_to_c_name_address \
14933lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14934lt_prog_compiler_no_builtin_flag \
14935lt_prog_compiler_wl \
14936lt_prog_compiler_pic \
14937lt_prog_compiler_static \
14938lt_cv_prog_compiler_c_o \
14939need_locks \
14940DSYMUTIL \
14941NMEDIT \
14942LIPO \
14943OTOOL \
14944OTOOL64 \
14945shrext_cmds \
14946export_dynamic_flag_spec \
14947whole_archive_flag_spec \
14948compiler_needs_object \
14949with_gnu_ld \
14950allow_undefined_flag \
14951no_undefined_flag \
14952hardcode_libdir_flag_spec \
14953hardcode_libdir_flag_spec_ld \
14954hardcode_libdir_separator \
14955fix_srcfile_path \
14956exclude_expsyms \
14957include_expsyms \
14958file_list_spec \
14959variables_saved_for_relink \
14960libname_spec \
14961library_names_spec \
14962soname_spec \
14963install_override_mode \
14964finish_eval \
14965old_striplib \
14966striplib; do
14967 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14968 *[\\\\\\\`\\"\\\$]*)
14969 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14970 ;;
14971 *)
14972 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14973 ;;
14974 esac
14975done
14976
14977# Double-quote double-evaled strings.
14978for var in reload_cmds \
14979old_postinstall_cmds \
14980old_postuninstall_cmds \
14981old_archive_cmds \
14982extract_expsyms_cmds \
14983old_archive_from_new_cmds \
14984old_archive_from_expsyms_cmds \
14985archive_cmds \
14986archive_expsym_cmds \
14987module_cmds \
14988module_expsym_cmds \
14989export_symbols_cmds \
14990prelink_cmds \
14991postinstall_cmds \
14992postuninstall_cmds \
14993finish_cmds \
14994sys_lib_search_path_spec \
14995sys_lib_dlsearch_path_spec; do
14996 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14997 *[\\\\\\\`\\"\\\$]*)
14998 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14999 ;;
15000 *)
15001 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15002 ;;
15003 esac
15004done
15005
15006ac_aux_dir='$ac_aux_dir'
15007xsi_shell='$xsi_shell'
15008lt_shell_append='$lt_shell_append'
15009
15010# See if we are running on zsh, and set the options which allow our
15011# commands through without removal of \ escapes INIT.
15012if test -n "\${ZSH_VERSION+set}" ; then
15013 setopt NO_GLOB_SUBST
15014fi
15015
15016
15017 PACKAGE='$PACKAGE'
15018 VERSION='$VERSION'
15019 TIMESTAMP='$TIMESTAMP'
15020 RM='$RM'
15021 ofile='$ofile'
15022
15023
15024
6bddc3e8 15025AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
bc56166f
MF
15026ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15027ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15028ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15029ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15030ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15031ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15032ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15033ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15034ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15035ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15036ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15037ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15038ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15039ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15040ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15041ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15042ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15043ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15044ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15045ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15046ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15047ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15048ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15049ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15050ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15051ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15052ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15053ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15054ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15055ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15056ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15057ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6bddc3e8 15058
81ecdfbb 15059_ACEOF
b7026657 15060
81ecdfbb 15061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
df1756f4 15062
81ecdfbb 15063# Handling of arguments.
b7026657
AC
15064for ac_config_target in $ac_config_targets
15065do
81ecdfbb 15066 case $ac_config_target in
b15c5d7a 15067 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
b5689863 15068 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
6bddc3e8 15069 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
bc56166f
MF
15070 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
15071 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
15072 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
15073 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
15074 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
15075 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
15076 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
15077 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
15078 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
15079 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
15080 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
15081 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
15082 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
15083 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
15084 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
15085 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
15086 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
15087 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
15088 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
15089 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
15090 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
15091 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
15092 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
15093 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
15094 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
15095 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
15096 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
15097 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
15098 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
15099 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
15100 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
15101 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
3f8414df 15102 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
81ecdfbb
RW
15103 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15104
d0ac1c44 15105 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 15106 esac
b7026657 15107done
c906108c 15108
81ecdfbb 15109
b7026657
AC
15110# If the user did not use the arguments to specify the items to instantiate,
15111# then the envvar interface is used. Set only those that are not.
15112# We use the long form for the default assignment because of an extremely
15113# bizarre bug on SunOS 4.1.3.
15114if $ac_need_defaults; then
15115 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
b15c5d7a 15116 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6bddc3e8 15117 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b7026657 15118fi
c906108c 15119
b7026657 15120# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15121# simply because there is no reason against having it here, and in addition,
b7026657 15122# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15123# Hook for its removal unless debugging.
15124# Note that there is a small window in which the directory will not be cleaned:
15125# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
15126$debug ||
15127{
d0ac1c44 15128 tmp= ac_tmp=
81ecdfbb 15129 trap 'exit_status=$?
d0ac1c44
SM
15130 : "${ac_tmp:=$tmp}"
15131 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15132' 0
15133 trap 'as_fn_exit 1' 1 2 13 15
b7026657 15134}
b7026657
AC
15135# Create a (secure) tmp directory for tmp files.
15136
15137{
81ecdfbb 15138 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15139 test -d "$tmp"
b7026657
AC
15140} ||
15141{
81ecdfbb
RW
15142 tmp=./conf$$-$RANDOM
15143 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15144} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15145ac_tmp=$tmp
81ecdfbb
RW
15146
15147# Set up the scripts for CONFIG_FILES section.
15148# No need to generate them if there are no CONFIG_FILES.
15149# This happens for instance with `./config.status config.h'.
15150if test -n "$CONFIG_FILES"; then
15151
15152
15153ac_cr=`echo X | tr X '\015'`
15154# On cygwin, bash can eat \r inside `` if the user requested igncr.
15155# But we know of no other shell where ac_cr would be empty at this
15156# point, so we can use a bashism as a fallback.
15157if test "x$ac_cr" = x; then
15158 eval ac_cr=\$\'\\r\'
15159fi
15160ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15161if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 15162 ac_cs_awk_cr='\\r'
81ecdfbb
RW
15163else
15164 ac_cs_awk_cr=$ac_cr
15165fi
15166
d0ac1c44 15167echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
15168_ACEOF
15169
15170
15171{
15172 echo "cat >conf$$subs.awk <<_ACEOF" &&
15173 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15174 echo "_ACEOF"
15175} >conf$$subs.sh ||
d0ac1c44
SM
15176 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15177ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
15178ac_delim='%!_!# '
15179for ac_last_try in false false false false false :; do
15180 . ./conf$$subs.sh ||
d0ac1c44 15181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15182
15183 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15184 if test $ac_delim_n = $ac_delim_num; then
15185 break
15186 elif $ac_last_try; then
d0ac1c44 15187 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15188 else
15189 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15190 fi
15191done
15192rm -f conf$$subs.sh
15193
15194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15195cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
15196_ACEOF
15197sed -n '
15198h
15199s/^/S["/; s/!.*/"]=/
15200p
15201g
15202s/^[^!]*!//
15203:repl
15204t repl
15205s/'"$ac_delim"'$//
15206t delim
15207:nl
15208h
d0ac1c44 15209s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15210t more1
15211s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15212p
15213n
15214b repl
15215:more1
15216s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15217p
15218g
15219s/.\{148\}//
15220t nl
15221:delim
15222h
d0ac1c44 15223s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15224t more2
15225s/["\\]/\\&/g; s/^/"/; s/$/"/
15226p
15227b
15228:more2
15229s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15230p
15231g
15232s/.\{148\}//
15233t delim
15234' <conf$$subs.awk | sed '
15235/^[^""]/{
15236 N
15237 s/\n//
15238}
15239' >>$CONFIG_STATUS || ac_write_fail=1
15240rm -f conf$$subs.awk
15241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15242_ACAWK
d0ac1c44 15243cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
15244 for (key in S) S_is_set[key] = 1
15245 FS = "\a"
15246
15247}
b7026657 15248{
81ecdfbb
RW
15249 line = $ 0
15250 nfields = split(line, field, "@")
15251 substed = 0
15252 len = length(field[1])
15253 for (i = 2; i < nfields; i++) {
15254 key = field[i]
15255 keylen = length(key)
15256 if (S_is_set[key]) {
15257 value = S[key]
15258 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15259 len += length(value) + length(field[++i])
15260 substed = 1
15261 } else
15262 len += 1 + keylen
15263 }
15264
15265 print line
b7026657
AC
15266}
15267
81ecdfbb
RW
15268_ACAWK
15269_ACEOF
15270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15271if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15272 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15273else
15274 cat
d0ac1c44
SM
15275fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15276 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
fdd6fa61
AG
15277_ACEOF
15278
d0ac1c44
SM
15279# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15280# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
15281# trailing colons and then remove the whole line if VPATH becomes empty
15282# (actually we leave an empty line to preserve line numbers).
15283if test "x$srcdir" = x.; then
d0ac1c44
SM
15284 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15285h
15286s///
15287s/^/:/
15288s/[ ]*$/:/
15289s/:\$(srcdir):/:/g
15290s/:\${srcdir}:/:/g
15291s/:@srcdir@:/:/g
15292s/^:*//
81ecdfbb 15293s/:*$//
d0ac1c44
SM
15294x
15295s/\(=[ ]*\).*/\1/
15296G
15297s/\n//
81ecdfbb
RW
15298s/^[^=]*=[ ]*$//
15299}'
15300fi
fdd6fa61 15301
81ecdfbb
RW
15302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15303fi # test -n "$CONFIG_FILES"
b7026657 15304
b15c5d7a
MF
15305# Set up the scripts for CONFIG_HEADERS section.
15306# No need to generate them if there are no CONFIG_HEADERS.
15307# This happens for instance with `./config.status Makefile'.
15308if test -n "$CONFIG_HEADERS"; then
15309cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15310BEGIN {
15311_ACEOF
15312
15313# Transform confdefs.h into an awk script `defines.awk', embedded as
15314# here-document in config.status, that substitutes the proper values into
15315# config.h.in to produce config.h.
15316
15317# Create a delimiter string that does not exist in confdefs.h, to ease
15318# handling of long lines.
15319ac_delim='%!_!# '
15320for ac_last_try in false false :; do
15321 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15322 if test -z "$ac_tt"; then
15323 break
15324 elif $ac_last_try; then
15325 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15326 else
15327 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15328 fi
15329done
15330
15331# For the awk script, D is an array of macro values keyed by name,
15332# likewise P contains macro parameters if any. Preserve backslash
15333# newline sequences.
15334
15335ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15336sed -n '
15337s/.\{148\}/&'"$ac_delim"'/g
15338t rset
15339:rset
15340s/^[ ]*#[ ]*define[ ][ ]*/ /
15341t def
15342d
15343:def
15344s/\\$//
15345t bsnl
15346s/["\\]/\\&/g
15347s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15348D["\1"]=" \3"/p
15349s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15350d
15351:bsnl
15352s/["\\]/\\&/g
15353s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15354D["\1"]=" \3\\\\\\n"\\/p
15355t cont
15356s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15357t cont
15358d
15359:cont
15360n
15361s/.\{148\}/&'"$ac_delim"'/g
15362t clear
15363:clear
15364s/\\$//
15365t bsnlc
15366s/["\\]/\\&/g; s/^/"/; s/$/"/p
15367d
15368:bsnlc
15369s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15370b cont
15371' <confdefs.h | sed '
15372s/'"$ac_delim"'/"\\\
15373"/g' >>$CONFIG_STATUS || ac_write_fail=1
15374
15375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15376 for (key in D) D_is_set[key] = 1
15377 FS = "\a"
15378}
15379/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15380 line = \$ 0
15381 split(line, arg, " ")
15382 if (arg[1] == "#") {
15383 defundef = arg[2]
15384 mac1 = arg[3]
15385 } else {
15386 defundef = substr(arg[1], 2)
15387 mac1 = arg[2]
15388 }
15389 split(mac1, mac2, "(") #)
15390 macro = mac2[1]
15391 prefix = substr(line, 1, index(line, defundef) - 1)
15392 if (D_is_set[macro]) {
15393 # Preserve the white space surrounding the "#".
15394 print prefix "define", macro P[macro] D[macro]
15395 next
15396 } else {
15397 # Replace #undef with comments. This is necessary, for example,
15398 # in the case of _POSIX_SOURCE, which is predefined and required
15399 # on some systems where configure will not decide to define it.
15400 if (defundef == "undef") {
15401 print "/*", prefix defundef, macro, "*/"
15402 next
15403 }
15404 }
15405}
15406{ print }
15407_ACAWK
15408_ACEOF
15409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15410 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15411fi # test -n "$CONFIG_HEADERS"
b7026657 15412
b15c5d7a
MF
15413
15414eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
81ecdfbb
RW
15415shift
15416for ac_tag
15417do
15418 case $ac_tag in
15419 :[FHLC]) ac_mode=$ac_tag; continue;;
15420 esac
15421 case $ac_mode$ac_tag in
15422 :[FHL]*:*);;
d0ac1c44 15423 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
15424 :[FH]-) ac_tag=-:-;;
15425 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15426 esac
15427 ac_save_IFS=$IFS
15428 IFS=:
15429 set x $ac_tag
15430 IFS=$ac_save_IFS
15431 shift
15432 ac_file=$1
15433 shift
b7026657 15434
81ecdfbb
RW
15435 case $ac_mode in
15436 :L) ac_source=$1;;
15437 :[FH])
15438 ac_file_inputs=
15439 for ac_f
15440 do
15441 case $ac_f in
d0ac1c44 15442 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
15443 *) # Look for the file first in the build tree, then in the source tree
15444 # (if the path is not absolute). The absolute path cannot be DOS-style,
15445 # because $ac_f cannot contain `:'.
15446 test -f "$ac_f" ||
15447 case $ac_f in
15448 [\\/$]*) false;;
15449 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15450 esac ||
d0ac1c44 15451 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
15452 esac
15453 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15454 as_fn_append ac_file_inputs " '$ac_f'"
15455 done
15456
15457 # Let's still pretend it is `configure' which instantiates (i.e., don't
15458 # use $as_me), people would be surprised to read:
15459 # /* config.h. Generated by config.status. */
15460 configure_input='Generated from '`
15461 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15462 `' by configure.'
15463 if test x"$ac_file" != x-; then
15464 configure_input="$ac_file. $configure_input"
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15466$as_echo "$as_me: creating $ac_file" >&6;}
fdd6fa61 15467 fi
81ecdfbb
RW
15468 # Neutralize special characters interpreted by sed in replacement strings.
15469 case $configure_input in #(
15470 *\&* | *\|* | *\\* )
15471 ac_sed_conf_input=`$as_echo "$configure_input" |
15472 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15473 *) ac_sed_conf_input=$configure_input;;
15474 esac
df1756f4 15475
81ecdfbb 15476 case $ac_tag in
d0ac1c44
SM
15477 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
15479 esac
15480 ;;
df1756f4
TG
15481 esac
15482
81ecdfbb 15483 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
15484$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15485 X"$ac_file" : 'X\(//\)[^/]' \| \
15486 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15487 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15488$as_echo X"$ac_file" |
15489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15490 s//\1/
15491 q
15492 }
15493 /^X\(\/\/\)[^/].*/{
15494 s//\1/
15495 q
15496 }
15497 /^X\(\/\/\)$/{
15498 s//\1/
15499 q
15500 }
15501 /^X\(\/\).*/{
15502 s//\1/
15503 q
15504 }
15505 s/.*/./; q'`
15506 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
15507 ac_builddir=.
15508
81ecdfbb
RW
15509case "$ac_dir" in
15510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15511*)
15512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15513 # A ".." for each directory in $ac_dir_suffix.
15514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15515 case $ac_top_builddir_sub in
15516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15518 esac ;;
15519esac
15520ac_abs_top_builddir=$ac_pwd
15521ac_abs_builddir=$ac_pwd$ac_dir_suffix
15522# for backward compatibility:
15523ac_top_builddir=$ac_top_build_prefix
b7026657
AC
15524
15525case $srcdir in
81ecdfbb 15526 .) # We are building in place.
b7026657 15527 ac_srcdir=.
81ecdfbb
RW
15528 ac_top_srcdir=$ac_top_builddir_sub
15529 ac_abs_top_srcdir=$ac_pwd ;;
15530 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 15531 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15532 ac_top_srcdir=$srcdir
15533 ac_abs_top_srcdir=$srcdir ;;
15534 *) # Relative name.
15535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15536 ac_top_srcdir=$ac_top_build_prefix$srcdir
15537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 15538esac
81ecdfbb 15539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 15540
b7026657 15541
81ecdfbb
RW
15542 case $ac_mode in
15543 :F)
15544 #
15545 # CONFIG_FILE
15546 #
c906108c 15547
b7026657
AC
15548 case $INSTALL in
15549 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15550 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 15551 esac
6bddc3e8
MF
15552 ac_MKDIR_P=$MKDIR_P
15553 case $MKDIR_P in
15554 [\\/$]* | ?:[\\/]* ) ;;
15555 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15556 esac
81ecdfbb 15557_ACEOF
c906108c 15558
81ecdfbb
RW
15559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15560# If the template does not know about datarootdir, expand it.
15561# FIXME: This hack should be removed a few years after 2.60.
15562ac_datarootdir_hack=; ac_datarootdir_seen=
15563ac_sed_dataroot='
15564/datarootdir/ {
15565 p
15566 q
15567}
15568/@datadir@/p
15569/@docdir@/p
15570/@infodir@/p
15571/@localedir@/p
15572/@mandir@/p'
15573case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15574*datarootdir*) ac_datarootdir_seen=yes;;
15575*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15577$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15578_ACEOF
15579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15580 ac_datarootdir_hack='
15581 s&@datadir@&$datadir&g
15582 s&@docdir@&$docdir&g
15583 s&@infodir@&$infodir&g
15584 s&@localedir@&$localedir&g
15585 s&@mandir@&$mandir&g
15586 s&\\\${datarootdir}&$datarootdir&g' ;;
15587esac
b7026657 15588_ACEOF
81ecdfbb
RW
15589
15590# Neutralize VPATH when `$srcdir' = `.'.
15591# Shell code in configure.ac might set extrasub.
15592# FIXME: do we really want to maintain this feature?
15593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15594ac_sed_extra="$ac_vpsub
b7026657
AC
15595$extrasub
15596_ACEOF
81ecdfbb 15597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
15598:t
15599/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15600s|@configure_input@|$ac_sed_conf_input|;t t
15601s&@top_builddir@&$ac_top_builddir_sub&;t t
15602s&@top_build_prefix@&$ac_top_build_prefix&;t t
15603s&@srcdir@&$ac_srcdir&;t t
15604s&@abs_srcdir@&$ac_abs_srcdir&;t t
15605s&@top_srcdir@&$ac_top_srcdir&;t t
15606s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15607s&@builddir@&$ac_builddir&;t t
15608s&@abs_builddir@&$ac_abs_builddir&;t t
15609s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15610s&@INSTALL@&$ac_INSTALL&;t t
6bddc3e8 15611s&@MKDIR_P@&$ac_MKDIR_P&;t t
81ecdfbb
RW
15612$ac_datarootdir_hack
15613"
d0ac1c44
SM
15614eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15615 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
15616
15617test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
15618 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15619 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15620 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 15621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15622which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 15623$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15624which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 15625
d0ac1c44 15626 rm -f "$ac_tmp/stdin"
81ecdfbb 15627 case $ac_file in
d0ac1c44
SM
15628 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15629 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 15630 esac \
d0ac1c44 15631 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 15632 ;;
b15c5d7a
MF
15633 :H)
15634 #
15635 # CONFIG_HEADER
15636 #
15637 if test x"$ac_file" != x-; then
15638 {
15639 $as_echo "/* $configure_input */" \
15640 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15641 } >"$ac_tmp/config.h" \
15642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15643 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15645$as_echo "$as_me: $ac_file is unchanged" >&6;}
15646 else
15647 rm -f "$ac_file"
15648 mv "$ac_tmp/config.h" "$ac_file" \
15649 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15650 fi
15651 else
15652 $as_echo "/* $configure_input */" \
15653 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15654 || as_fn_error $? "could not create -" "$LINENO" 5
15655 fi
15656# Compute "$ac_file"'s index in $config_headers.
15657_am_arg="$ac_file"
15658_am_stamp_count=1
15659for _am_header in $config_headers :; do
15660 case $_am_header in
15661 $_am_arg | $_am_arg:* )
15662 break ;;
15663 * )
15664 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15665 esac
15666done
15667echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15668$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15669 X"$_am_arg" : 'X\(//\)[^/]' \| \
15670 X"$_am_arg" : 'X\(//\)$' \| \
15671 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15672$as_echo X"$_am_arg" |
15673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15674 s//\1/
15675 q
15676 }
15677 /^X\(\/\/\)[^/].*/{
15678 s//\1/
15679 q
15680 }
15681 /^X\(\/\/\)$/{
15682 s//\1/
15683 q
15684 }
15685 /^X\(\/\).*/{
15686 s//\1/
15687 q
15688 }
15689 s/.*/./; q'`/stamp-h$_am_stamp_count
15690 ;;
df1756f4 15691
6bddc3e8
MF
15692 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15693$as_echo "$as_me: executing $ac_file commands" >&6;}
15694 ;;
15695 esac
15696
c906108c 15697
6bddc3e8 15698 case $ac_file$ac_mode in
b5689863
MF
15699 "libtool":C)
15700
15701 # See if we are running on zsh, and set the options which allow our
15702 # commands through without removal of \ escapes.
15703 if test -n "${ZSH_VERSION+set}" ; then
15704 setopt NO_GLOB_SUBST
15705 fi
15706
15707 cfgfile="${ofile}T"
15708 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15709 $RM "$cfgfile"
15710
15711 cat <<_LT_EOF >> "$cfgfile"
15712#! $SHELL
15713
15714# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15715# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15716# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15717# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15718#
15719# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15720# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15721# Written by Gordon Matzigkeit, 1996
15722#
15723# This file is part of GNU Libtool.
15724#
15725# GNU Libtool is free software; you can redistribute it and/or
15726# modify it under the terms of the GNU General Public License as
15727# published by the Free Software Foundation; either version 2 of
15728# the License, or (at your option) any later version.
15729#
15730# As a special exception to the GNU General Public License,
15731# if you distribute this file as part of a program or library that
15732# is built using GNU Libtool, you may include this file under the
15733# same distribution terms that you use for the rest of that program.
15734#
15735# GNU Libtool is distributed in the hope that it will be useful,
15736# but WITHOUT ANY WARRANTY; without even the implied warranty of
15737# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15738# GNU General Public License for more details.
15739#
15740# You should have received a copy of the GNU General Public License
15741# along with GNU Libtool; see the file COPYING. If not, a copy
15742# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15743# obtained by writing to the Free Software Foundation, Inc.,
15744# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15745
15746
15747# The names of the tagged configurations supported by this script.
15748available_tags=""
15749
15750# ### BEGIN LIBTOOL CONFIG
15751
15752# Which release of libtool.m4 was used?
15753macro_version=$macro_version
15754macro_revision=$macro_revision
15755
15756# Whether or not to build shared libraries.
15757build_libtool_libs=$enable_shared
15758
15759# Whether or not to build static libraries.
15760build_old_libs=$enable_static
15761
15762# What type of objects to build.
15763pic_mode=$pic_mode
15764
15765# Whether or not to optimize for fast installation.
15766fast_install=$enable_fast_install
15767
15768# Shell to use when invoking shell scripts.
15769SHELL=$lt_SHELL
15770
15771# An echo program that protects backslashes.
15772ECHO=$lt_ECHO
15773
15774# The host system.
15775host_alias=$host_alias
15776host=$host
15777host_os=$host_os
15778
15779# The build system.
15780build_alias=$build_alias
15781build=$build
15782build_os=$build_os
15783
15784# A sed program that does not truncate output.
15785SED=$lt_SED
15786
15787# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15788Xsed="\$SED -e 1s/^X//"
15789
15790# A grep program that handles long lines.
15791GREP=$lt_GREP
15792
15793# An ERE matcher.
15794EGREP=$lt_EGREP
15795
15796# A literal string matcher.
15797FGREP=$lt_FGREP
15798
15799# A BSD- or MS-compatible name lister.
15800NM=$lt_NM
15801
15802# Whether we need soft or hard links.
15803LN_S=$lt_LN_S
15804
15805# What is the maximum length of a command?
15806max_cmd_len=$max_cmd_len
15807
15808# Object file suffix (normally "o").
15809objext=$ac_objext
15810
15811# Executable file suffix (normally "").
15812exeext=$exeext
15813
15814# whether the shell understands "unset".
15815lt_unset=$lt_unset
15816
15817# turn spaces into newlines.
15818SP2NL=$lt_lt_SP2NL
15819
15820# turn newlines into spaces.
15821NL2SP=$lt_lt_NL2SP
15822
15823# An object symbol dumper.
15824OBJDUMP=$lt_OBJDUMP
15825
15826# Method to check whether dependent libraries are shared objects.
15827deplibs_check_method=$lt_deplibs_check_method
15828
15829# Command to use when deplibs_check_method == "file_magic".
15830file_magic_cmd=$lt_file_magic_cmd
15831
15832# The archiver.
15833AR=$lt_AR
15834AR_FLAGS=$lt_AR_FLAGS
15835
15836# A symbol stripping program.
15837STRIP=$lt_STRIP
15838
15839# Commands used to install an old-style archive.
15840RANLIB=$lt_RANLIB
15841old_postinstall_cmds=$lt_old_postinstall_cmds
15842old_postuninstall_cmds=$lt_old_postuninstall_cmds
15843
15844# Whether to use a lock for old archive extraction.
15845lock_old_archive_extraction=$lock_old_archive_extraction
15846
15847# A C compiler.
15848LTCC=$lt_CC
15849
15850# LTCC compiler flags.
15851LTCFLAGS=$lt_CFLAGS
15852
15853# Take the output of nm and produce a listing of raw symbols and C names.
15854global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15855
15856# Transform the output of nm in a proper C declaration.
15857global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15858
15859# Transform the output of nm in a C name address pair.
15860global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15861
15862# Transform the output of nm in a C name address pair when lib prefix is needed.
15863global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15864
15865# The name of the directory that contains temporary libtool files.
15866objdir=$objdir
15867
15868# Used to examine libraries when file_magic_cmd begins with "file".
15869MAGIC_CMD=$MAGIC_CMD
15870
15871# Must we lock files when doing compilation?
15872need_locks=$lt_need_locks
15873
15874# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15875DSYMUTIL=$lt_DSYMUTIL
15876
15877# Tool to change global to local symbols on Mac OS X.
15878NMEDIT=$lt_NMEDIT
15879
15880# Tool to manipulate fat objects and archives on Mac OS X.
15881LIPO=$lt_LIPO
15882
15883# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15884OTOOL=$lt_OTOOL
15885
15886# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15887OTOOL64=$lt_OTOOL64
15888
15889# Old archive suffix (normally "a").
15890libext=$libext
15891
15892# Shared library suffix (normally ".so").
15893shrext_cmds=$lt_shrext_cmds
15894
15895# The commands to extract the exported symbol list from a shared archive.
15896extract_expsyms_cmds=$lt_extract_expsyms_cmds
15897
15898# Variables whose values should be saved in libtool wrapper scripts and
15899# restored at link time.
15900variables_saved_for_relink=$lt_variables_saved_for_relink
15901
15902# Do we need the "lib" prefix for modules?
15903need_lib_prefix=$need_lib_prefix
15904
15905# Do we need a version for libraries?
15906need_version=$need_version
15907
15908# Library versioning type.
15909version_type=$version_type
15910
15911# Shared library runtime path variable.
15912runpath_var=$runpath_var
15913
15914# Shared library path variable.
15915shlibpath_var=$shlibpath_var
15916
15917# Is shlibpath searched before the hard-coded library search path?
15918shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15919
15920# Format of library name prefix.
15921libname_spec=$lt_libname_spec
15922
15923# List of archive names. First name is the real one, the rest are links.
15924# The last name is the one that the linker finds with -lNAME
15925library_names_spec=$lt_library_names_spec
15926
15927# The coded name of the library, if different from the real name.
15928soname_spec=$lt_soname_spec
15929
15930# Permission mode override for installation of shared libraries.
15931install_override_mode=$lt_install_override_mode
15932
15933# Command to use after installation of a shared archive.
15934postinstall_cmds=$lt_postinstall_cmds
15935
15936# Command to use after uninstallation of a shared archive.
15937postuninstall_cmds=$lt_postuninstall_cmds
15938
15939# Commands used to finish a libtool library installation in a directory.
15940finish_cmds=$lt_finish_cmds
15941
15942# As "finish_cmds", except a single script fragment to be evaled but
15943# not shown.
15944finish_eval=$lt_finish_eval
15945
15946# Whether we should hardcode library paths into libraries.
15947hardcode_into_libs=$hardcode_into_libs
15948
15949# Compile-time system search path for libraries.
15950sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15951
15952# Run-time system search path for libraries.
15953sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15954
15955# Whether dlopen is supported.
15956dlopen_support=$enable_dlopen
15957
15958# Whether dlopen of programs is supported.
15959dlopen_self=$enable_dlopen_self
15960
15961# Whether dlopen of statically linked programs is supported.
15962dlopen_self_static=$enable_dlopen_self_static
15963
15964# Commands to strip libraries.
15965old_striplib=$lt_old_striplib
15966striplib=$lt_striplib
15967
15968
15969# The linker used to build libraries.
15970LD=$lt_LD
15971
15972# How to create reloadable object files.
15973reload_flag=$lt_reload_flag
15974reload_cmds=$lt_reload_cmds
15975
15976# Commands used to build an old-style archive.
15977old_archive_cmds=$lt_old_archive_cmds
15978
15979# A language specific compiler.
15980CC=$lt_compiler
15981
15982# Is the compiler the GNU compiler?
15983with_gcc=$GCC
15984
15985# Compiler flag to turn off builtin functions.
15986no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15987
15988# How to pass a linker flag through the compiler.
15989wl=$lt_lt_prog_compiler_wl
15990
15991# Additional compiler flags for building library objects.
15992pic_flag=$lt_lt_prog_compiler_pic
15993
15994# Compiler flag to prevent dynamic linking.
15995link_static_flag=$lt_lt_prog_compiler_static
15996
15997# Does compiler simultaneously support -c and -o options?
15998compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15999
16000# Whether or not to add -lc for building shared libraries.
16001build_libtool_need_lc=$archive_cmds_need_lc
16002
16003# Whether or not to disallow shared libs when runtime libs are static.
16004allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16005
16006# Compiler flag to allow reflexive dlopens.
16007export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16008
16009# Compiler flag to generate shared objects directly from archives.
16010whole_archive_flag_spec=$lt_whole_archive_flag_spec
16011
16012# Whether the compiler copes with passing no objects directly.
16013compiler_needs_object=$lt_compiler_needs_object
16014
16015# Create an old-style archive from a shared archive.
16016old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16017
16018# Create a temporary old-style archive to link instead of a shared archive.
16019old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16020
16021# Commands used to build a shared archive.
16022archive_cmds=$lt_archive_cmds
16023archive_expsym_cmds=$lt_archive_expsym_cmds
16024
16025# Commands used to build a loadable module if different from building
16026# a shared archive.
16027module_cmds=$lt_module_cmds
16028module_expsym_cmds=$lt_module_expsym_cmds
16029
16030# Whether we are building with GNU ld or not.
16031with_gnu_ld=$lt_with_gnu_ld
16032
16033# Flag that allows shared libraries with undefined symbols to be built.
16034allow_undefined_flag=$lt_allow_undefined_flag
16035
16036# Flag that enforces no undefined symbols.
16037no_undefined_flag=$lt_no_undefined_flag
16038
16039# Flag to hardcode \$libdir into a binary during linking.
16040# This must work even if \$libdir does not exist
16041hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16042
16043# If ld is used when linking, flag to hardcode \$libdir into a binary
16044# during linking. This must work even if \$libdir does not exist.
16045hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16046
16047# Whether we need a single "-rpath" flag with a separated argument.
16048hardcode_libdir_separator=$lt_hardcode_libdir_separator
16049
16050# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16051# DIR into the resulting binary.
16052hardcode_direct=$hardcode_direct
16053
16054# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16055# DIR into the resulting binary and the resulting library dependency is
16056# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16057# library is relocated.
16058hardcode_direct_absolute=$hardcode_direct_absolute
16059
16060# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16061# into the resulting binary.
16062hardcode_minus_L=$hardcode_minus_L
16063
16064# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16065# into the resulting binary.
16066hardcode_shlibpath_var=$hardcode_shlibpath_var
16067
16068# Set to "yes" if building a shared library automatically hardcodes DIR
16069# into the library and all subsequent libraries and executables linked
16070# against it.
16071hardcode_automatic=$hardcode_automatic
16072
16073# Set to yes if linker adds runtime paths of dependent libraries
16074# to runtime path list.
16075inherit_rpath=$inherit_rpath
16076
16077# Whether libtool must link a program against all its dependency libraries.
16078link_all_deplibs=$link_all_deplibs
16079
16080# Fix the shell variable \$srcfile for the compiler.
16081fix_srcfile_path=$lt_fix_srcfile_path
16082
16083# Set to "yes" if exported symbols are required.
16084always_export_symbols=$always_export_symbols
16085
16086# The commands to list exported symbols.
16087export_symbols_cmds=$lt_export_symbols_cmds
16088
16089# Symbols that should not be listed in the preloaded symbols.
16090exclude_expsyms=$lt_exclude_expsyms
16091
16092# Symbols that must always be exported.
16093include_expsyms=$lt_include_expsyms
16094
16095# Commands necessary for linking programs (against libraries) with templates.
16096prelink_cmds=$lt_prelink_cmds
16097
16098# Specify filename containing input files.
16099file_list_spec=$lt_file_list_spec
16100
16101# How to hardcode a shared library path into an executable.
16102hardcode_action=$hardcode_action
16103
16104# ### END LIBTOOL CONFIG
16105
16106_LT_EOF
16107
16108 case $host_os in
16109 aix3*)
16110 cat <<\_LT_EOF >> "$cfgfile"
16111# AIX sometimes has problems with the GCC collect2 program. For some
16112# reason, if we set the COLLECT_NAMES environment variable, the problems
16113# vanish in a puff of smoke.
16114if test "X${COLLECT_NAMES+set}" != Xset; then
16115 COLLECT_NAMES=
16116 export COLLECT_NAMES
16117fi
16118_LT_EOF
16119 ;;
16120 esac
16121
16122
16123ltmain="$ac_aux_dir/ltmain.sh"
16124
16125
16126 # We use sed instead of cat because bash on DJGPP gets confused if
16127 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16128 # text mode, it properly converts lines to CR/LF. This bash problem
16129 # is reportedly fixed, but why not run on old versions too?
16130 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16131 || (rm -f "$cfgfile"; exit 1)
16132
16133 case $xsi_shell in
16134 yes)
16135 cat << \_LT_EOF >> "$cfgfile"
16136
16137# func_dirname file append nondir_replacement
16138# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16139# otherwise set result to NONDIR_REPLACEMENT.
16140func_dirname ()
16141{
16142 case ${1} in
16143 */*) func_dirname_result="${1%/*}${2}" ;;
16144 * ) func_dirname_result="${3}" ;;
16145 esac
16146}
16147
16148# func_basename file
16149func_basename ()
16150{
16151 func_basename_result="${1##*/}"
16152}
16153
16154# func_dirname_and_basename file append nondir_replacement
16155# perform func_basename and func_dirname in a single function
16156# call:
16157# dirname: Compute the dirname of FILE. If nonempty,
16158# add APPEND to the result, otherwise set result
16159# to NONDIR_REPLACEMENT.
16160# value returned in "$func_dirname_result"
16161# basename: Compute filename of FILE.
16162# value retuned in "$func_basename_result"
16163# Implementation must be kept synchronized with func_dirname
16164# and func_basename. For efficiency, we do not delegate to
16165# those functions but instead duplicate the functionality here.
16166func_dirname_and_basename ()
16167{
16168 case ${1} in
16169 */*) func_dirname_result="${1%/*}${2}" ;;
16170 * ) func_dirname_result="${3}" ;;
16171 esac
16172 func_basename_result="${1##*/}"
16173}
16174
16175# func_stripname prefix suffix name
16176# strip PREFIX and SUFFIX off of NAME.
16177# PREFIX and SUFFIX must not contain globbing or regex special
16178# characters, hashes, percent signs, but SUFFIX may contain a leading
16179# dot (in which case that matches only a dot).
16180func_stripname ()
16181{
16182 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16183 # positional parameters, so assign one to ordinary parameter first.
16184 func_stripname_result=${3}
16185 func_stripname_result=${func_stripname_result#"${1}"}
16186 func_stripname_result=${func_stripname_result%"${2}"}
16187}
16188
16189# func_opt_split
16190func_opt_split ()
16191{
16192 func_opt_split_opt=${1%%=*}
16193 func_opt_split_arg=${1#*=}
16194}
16195
16196# func_lo2o object
16197func_lo2o ()
16198{
16199 case ${1} in
16200 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16201 *) func_lo2o_result=${1} ;;
16202 esac
16203}
16204
16205# func_xform libobj-or-source
16206func_xform ()
16207{
16208 func_xform_result=${1%.*}.lo
16209}
16210
16211# func_arith arithmetic-term...
16212func_arith ()
16213{
16214 func_arith_result=$(( $* ))
16215}
16216
16217# func_len string
16218# STRING may not start with a hyphen.
16219func_len ()
16220{
16221 func_len_result=${#1}
16222}
16223
16224_LT_EOF
16225 ;;
16226 *) # Bourne compatible functions.
16227 cat << \_LT_EOF >> "$cfgfile"
16228
16229# func_dirname file append nondir_replacement
16230# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16231# otherwise set result to NONDIR_REPLACEMENT.
16232func_dirname ()
16233{
16234 # Extract subdirectory from the argument.
16235 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16236 if test "X$func_dirname_result" = "X${1}"; then
16237 func_dirname_result="${3}"
16238 else
16239 func_dirname_result="$func_dirname_result${2}"
16240 fi
16241}
16242
16243# func_basename file
16244func_basename ()
16245{
16246 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16247}
16248
16249
16250# func_stripname prefix suffix name
16251# strip PREFIX and SUFFIX off of NAME.
16252# PREFIX and SUFFIX must not contain globbing or regex special
16253# characters, hashes, percent signs, but SUFFIX may contain a leading
16254# dot (in which case that matches only a dot).
16255# func_strip_suffix prefix name
16256func_stripname ()
16257{
16258 case ${2} in
16259 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16260 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16261 esac
16262}
16263
16264# sed scripts:
16265my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16266my_sed_long_arg='1s/^-[^=]*=//'
16267
16268# func_opt_split
16269func_opt_split ()
16270{
16271 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16272 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16273}
16274
16275# func_lo2o object
16276func_lo2o ()
16277{
16278 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16279}
16280
16281# func_xform libobj-or-source
16282func_xform ()
16283{
16284 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16285}
16286
16287# func_arith arithmetic-term...
16288func_arith ()
16289{
16290 func_arith_result=`expr "$@"`
16291}
16292
16293# func_len string
16294# STRING may not start with a hyphen.
16295func_len ()
16296{
16297 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16298}
16299
16300_LT_EOF
16301esac
16302
16303case $lt_shell_append in
16304 yes)
16305 cat << \_LT_EOF >> "$cfgfile"
16306
16307# func_append var value
16308# Append VALUE to the end of shell variable VAR.
16309func_append ()
16310{
16311 eval "$1+=\$2"
16312}
16313_LT_EOF
16314 ;;
16315 *)
16316 cat << \_LT_EOF >> "$cfgfile"
16317
16318# func_append var value
16319# Append VALUE to the end of shell variable VAR.
16320func_append ()
16321{
16322 eval "$1=\$$1\$2"
16323}
16324
16325_LT_EOF
16326 ;;
16327 esac
16328
16329
16330 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16331 || (rm -f "$cfgfile"; exit 1)
16332
16333 mv -f "$cfgfile" "$ofile" ||
16334 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16335 chmod +x "$ofile"
16336
16337 ;;
6bddc3e8
MF
16338 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16339 # Older Autoconf quotes --file arguments for eval, but not when files
16340 # are listed without --file. Let's play safe and only enable the eval
16341 # if we detect the quoting.
16342 case $CONFIG_FILES in
16343 *\'*) eval set x "$CONFIG_FILES" ;;
16344 *) set x $CONFIG_FILES ;;
81ecdfbb 16345 esac
6bddc3e8
MF
16346 shift
16347 for mf
16348 do
16349 # Strip MF so we end up with the name of the file.
16350 mf=`echo "$mf" | sed -e 's/:.*$//'`
16351 # Check whether this is an Automake generated Makefile or not.
16352 # We used to match only the files named 'Makefile.in', but
16353 # some people rename them; so instead we look at the file content.
16354 # Grep'ing the first line is not enough: some people post-process
16355 # each Makefile.in and add a new line on top of each file to say so.
16356 # Grep'ing the whole file is not good either: AIX grep has a line
16357 # limit of 2048, but all sed's we know have understand at least 4000.
16358 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16359 dirpart=`$as_dirname -- "$mf" ||
16360$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16361 X"$mf" : 'X\(//\)[^/]' \| \
16362 X"$mf" : 'X\(//\)$' \| \
16363 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16364$as_echo X"$mf" |
16365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16366 s//\1/
16367 q
16368 }
16369 /^X\(\/\/\)[^/].*/{
16370 s//\1/
16371 q
16372 }
16373 /^X\(\/\/\)$/{
16374 s//\1/
16375 q
16376 }
16377 /^X\(\/\).*/{
16378 s//\1/
16379 q
16380 }
16381 s/.*/./; q'`
16382 else
16383 continue
16384 fi
16385 # Extract the definition of DEPDIR, am__include, and am__quote
16386 # from the Makefile without running 'make'.
16387 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16388 test -z "$DEPDIR" && continue
16389 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16390 test -z "$am__include" && continue
16391 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16392 # Find all dependency output files, they are included files with
16393 # $(DEPDIR) in their names. We invoke sed twice because it is the
16394 # simplest approach to changing $(DEPDIR) to its actual value in the
16395 # expansion.
16396 for file in `sed -n "
16397 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16398 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16399 # Make sure the directory exists.
16400 test -f "$dirpart/$file" && continue
16401 fdir=`$as_dirname -- "$file" ||
16402$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16403 X"$file" : 'X\(//\)[^/]' \| \
16404 X"$file" : 'X\(//\)$' \| \
16405 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16406$as_echo X"$file" |
16407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16408 s//\1/
16409 q
16410 }
16411 /^X\(\/\/\)[^/].*/{
16412 s//\1/
16413 q
16414 }
16415 /^X\(\/\/\)$/{
16416 s//\1/
16417 q
16418 }
16419 /^X\(\/\).*/{
16420 s//\1/
16421 q
16422 }
16423 s/.*/./; q'`
16424 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16425 # echo "creating $dirpart/$file"
16426 echo '# dummy' > "$dirpart/$file"
16427 done
16428 done
16429}
16430 ;;
bc56166f
MF
16431 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
16432 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
16433 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
16434 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
16435 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
16436 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
16437 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
16438 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
16439 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
16440 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
16441 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
16442 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
16443 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
16444 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
16445 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
16446 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
16447 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
16448 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
16449 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
16450 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
16451 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
16452 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
16453 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
16454 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
16455 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
16456 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
16457 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
16458 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
16459 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
16460 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
16461 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
16462 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
81ecdfbb 16463
6bddc3e8 16464 esac
81ecdfbb
RW
16465done # for ac_tag
16466
16467
16468as_fn_exit 0
b7026657 16469_ACEOF
b7026657
AC
16470ac_clean_files=$ac_clean_files_save
16471
81ecdfbb 16472test $ac_write_fail = 0 ||
d0ac1c44 16473 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 16474
b7026657
AC
16475
16476# configure is writing to config.log, and then calls config.status.
16477# config.status does its own redirection, appending to config.log.
16478# Unfortunately, on DOS this fails, as config.log is still kept open
16479# by configure, so config.status won't be able to write to it; its
16480# output is simply discarded. So we exec the FD to /dev/null,
16481# effectively closing config.log, so it can be properly (re)opened and
16482# appended to by config.status. When coming back to configure, we
16483# need to make the FD available again.
16484if test "$no_create" != yes; then
16485 ac_cs_success=:
16486 ac_config_status_args=
16487 test "$silent" = yes &&
16488 ac_config_status_args="$ac_config_status_args --quiet"
16489 exec 5>/dev/null
16490 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16491 exec 5>>config.log
16492 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16493 # would make configure fail if this is the last instruction.
d0ac1c44 16494 $ac_cs_success || as_fn_exit 1
b7026657 16495fi
c906108c 16496
b7026657 16497#
81ecdfbb 16498# CONFIG_SUBDIRS section.
b7026657 16499#
c906108c
SS
16500if test "$no_recursion" != yes; then
16501
81ecdfbb
RW
16502 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16503 # so they do not pile up.
c906108c
SS
16504 ac_sub_configure_args=
16505 ac_prev=
d6416cdc
RW
16506 eval "set x $ac_configure_args"
16507 shift
16508 for ac_arg
16509 do
c906108c
SS
16510 if test -n "$ac_prev"; then
16511 ac_prev=
16512 continue
16513 fi
b7026657 16514 case $ac_arg in
c906108c
SS
16515 -cache-file | --cache-file | --cache-fil | --cache-fi \
16516 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16517 ac_prev=cache_file ;;
16518 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
b7026657
AC
16519 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16520 | --c=*)
16521 ;;
16522 --config-cache | -C)
c906108c
SS
16523 ;;
16524 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16525 ac_prev=srcdir ;;
16526 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16527 ;;
b7026657
AC
16528 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16529 ac_prev=prefix ;;
16530 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16531 ;;
81ecdfbb
RW
16532 --disable-option-checking)
16533 ;;
d6416cdc
RW
16534 *)
16535 case $ac_arg in
81ecdfbb 16536 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6416cdc 16537 esac
81ecdfbb 16538 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
c906108c
SS
16539 esac
16540 done
16541
b7026657
AC
16542 # Always prepend --prefix to ensure using the same prefix
16543 # in subdir configurations.
d6416cdc
RW
16544 ac_arg="--prefix=$prefix"
16545 case $ac_arg in
81ecdfbb 16546 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6416cdc 16547 esac
81ecdfbb
RW
16548 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16549
16550 # Pass --silent
16551 if test "$silent" = yes; then
16552 ac_sub_configure_args="--silent $ac_sub_configure_args"
16553 fi
16554
16555 # Always prepend --disable-option-checking to silence warnings, since
16556 # different subdirs can have different --enable and --with options.
16557 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
b7026657
AC
16558
16559 ac_popdir=`pwd`
16560 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
16561
16562 # Do not complain, so a configure script can configure whichever
16563 # parts of a large source tree are present.
d6416cdc 16564 test -d "$srcdir/$ac_dir" || continue
fdd6fa61 16565
81ecdfbb
RW
16566 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16567 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16568 $as_echo "$ac_msg" >&6
16569 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
16570 ac_builddir=.
16571
81ecdfbb
RW
16572case "$ac_dir" in
16573.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16574*)
16575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16576 # A ".." for each directory in $ac_dir_suffix.
16577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16578 case $ac_top_builddir_sub in
16579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16581 esac ;;
16582esac
16583ac_abs_top_builddir=$ac_pwd
16584ac_abs_builddir=$ac_pwd$ac_dir_suffix
16585# for backward compatibility:
16586ac_top_builddir=$ac_top_build_prefix
c906108c 16587
b7026657 16588case $srcdir in
81ecdfbb 16589 .) # We are building in place.
b7026657 16590 ac_srcdir=.
81ecdfbb
RW
16591 ac_top_srcdir=$ac_top_builddir_sub
16592 ac_abs_top_srcdir=$ac_pwd ;;
16593 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 16594 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
16595 ac_top_srcdir=$srcdir
16596 ac_abs_top_srcdir=$srcdir ;;
16597 *) # Relative name.
16598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16599 ac_top_srcdir=$ac_top_build_prefix$srcdir
16600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 16601esac
81ecdfbb 16602ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
c906108c 16603
c906108c 16604
d6416cdc 16605 cd "$ac_dir"
c906108c
SS
16606
16607 # Check for guested configure; otherwise get Cygnus style configure.
d6416cdc
RW
16608 if test -f "$ac_srcdir/configure.gnu"; then
16609 ac_sub_configure=$ac_srcdir/configure.gnu
16610 elif test -f "$ac_srcdir/configure"; then
16611 ac_sub_configure=$ac_srcdir/configure
16612 elif test -f "$ac_srcdir/configure.in"; then
16613 # This should be Cygnus configure.
16614 ac_sub_configure=$ac_aux_dir/configure
c906108c 16615 else
81ecdfbb
RW
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16617$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
16618 ac_sub_configure=
16619 fi
16620
16621 # The recursion is here.
16622 if test -n "$ac_sub_configure"; then
c906108c 16623 # Make the cache file name correct relative to the subdirectory.
b7026657
AC
16624 case $cache_file in
16625 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
81ecdfbb
RW
16626 *) # Relative name.
16627 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
c906108c 16628 esac
c906108c 16629
81ecdfbb
RW
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16631$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 16632 # The eval makes quoting arguments work.
d6416cdc
RW
16633 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16634 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
d0ac1c44 16635 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
c906108c
SS
16636 fi
16637
d6416cdc 16638 cd "$ac_popdir"
c906108c
SS
16639 done
16640fi
81ecdfbb
RW
16641if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16643$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16644fi
c906108c 16645
This page took 1.87502 seconds and 4 git commands to generate.