]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/configure
libsframe: bump version to 2.0
[thirdparty/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=
6bddc3e8
MF
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
3960e5b8 640LIBOBJS
e173c80f 641SIM_RX_CYCLE_ACCURATE_FLAGS
1787fcc4 642SIM_RISCV_BITSIZE
5f7e03a6
MF
643sim_ppc_model_issue
644sim_ppc_default_model
645sim_ppc_model
646sim_ppc_monitor
647sim_ppc_float
648sim_ppc_timebase
649sim_ppc_bitsize
650sim_ppc_igen_smp
651sim_ppc_smp
652sim_ppc_xor_endian
653sim_ppc_hw_obj
654sim_ppc_hw_src
655sim_ppc_icache
656sim_ppc_filter
657sim_ppc_jump
658sim_ppc_decode_mechanism
659sim_ppc_dup
660sim_ppc_switch
661sim_ppc_opcode
662sim_ppc_line_nr
f12c3c63
MF
663SIM_MIPS_GEN_MODE_MULTI_FALSE
664SIM_MIPS_GEN_MODE_MULTI_TRUE
f6d58d40
MF
665SIM_MIPS_GEN_MODE_M16_FALSE
666SIM_MIPS_GEN_MODE_M16_TRUE
3a31051b
MF
667SIM_MIPS_GEN_MODE_SINGLE_FALSE
668SIM_MIPS_GEN_MODE_SINGLE_TRUE
abc494c6
MF
669SIM_MIPS_MULTI_OBJ
670SIM_MIPS_MULTI_SRC
671SIM_MIPS_MULTI_IGEN_CONFIGS
4c45662c 672SIM_MIPS_IGEN_ITABLE_FLAGS
abc494c6 673SIM_MIPS_GEN
abc494c6 674SIM_MIPS_M16_FLAGS
07f60ed8 675SIM_MIPS_SINGLE_FLAGS
d455df98 676SIM_MIPS_FPU_BITSIZE
19b11256 677SIM_MIPS_BITSIZE
2d5700ad 678SIM_MIPS_SUBTARGET
408a44aa 679SIM_FRV_TRAPDUMP_FLAGS
4da6be3f
MF
680SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE
681SIM_CFLAG_WNO_SHADOW_LOCAL
111b1cf9 682IGEN_FLAGS_SMP
d73f39ee 683SIM_INLINE
682a2a82
MF
684SIM_HW_SOCKSER
685SIM_HW_CFLAGS
456ef1c1
MF
686SIM_ENABLE_HW_FALSE
687SIM_ENABLE_HW_TRUE
1bf5c342
MF
688cgen
689cgendir
690CGEN_MAINT
fb2c495f
MF
691ENABLE_SIM_FALSE
692ENABLE_SIM_TRUE
c0c25232
MF
693SIM_ENABLE_ARCH_examples_FALSE
694SIM_ENABLE_ARCH_examples_TRUE
8996c210
MF
695CC_FOR_TARGET_EXAMPLE_SYNACOR
696LD_FOR_TARGET_EXAMPLE_SYNACOR
697AS_FOR_TARGET_EXAMPLE_SYNACOR
65dcce8f
MF
698SIM_ENABLE_ARCH_v850_FALSE
699SIM_ENABLE_ARCH_v850_TRUE
8996c210
MF
700CC_FOR_TARGET_V850
701LD_FOR_TARGET_V850
702AS_FOR_TARGET_V850
65dcce8f
MF
703SIM_ENABLE_ARCH_erc32_FALSE
704SIM_ENABLE_ARCH_erc32_TRUE
8996c210
MF
705CC_FOR_TARGET_ERC32
706LD_FOR_TARGET_ERC32
707AS_FOR_TARGET_ERC32
65dcce8f
MF
708SIM_ENABLE_ARCH_sh_FALSE
709SIM_ENABLE_ARCH_sh_TRUE
8996c210
MF
710CC_FOR_TARGET_SH
711LD_FOR_TARGET_SH
712AS_FOR_TARGET_SH
65dcce8f
MF
713SIM_ENABLE_ARCH_rx_FALSE
714SIM_ENABLE_ARCH_rx_TRUE
8996c210
MF
715CC_FOR_TARGET_RX
716LD_FOR_TARGET_RX
717AS_FOR_TARGET_RX
65dcce8f
MF
718SIM_ENABLE_ARCH_rl78_FALSE
719SIM_ENABLE_ARCH_rl78_TRUE
8996c210
MF
720CC_FOR_TARGET_RL78
721LD_FOR_TARGET_RL78
722AS_FOR_TARGET_RL78
65dcce8f
MF
723SIM_ENABLE_ARCH_riscv_FALSE
724SIM_ENABLE_ARCH_riscv_TRUE
8996c210
MF
725CC_FOR_TARGET_RISCV
726LD_FOR_TARGET_RISCV
727AS_FOR_TARGET_RISCV
65dcce8f
MF
728SIM_ENABLE_ARCH_pru_FALSE
729SIM_ENABLE_ARCH_pru_TRUE
8996c210
MF
730CC_FOR_TARGET_PRU
731LD_FOR_TARGET_PRU
732AS_FOR_TARGET_PRU
65dcce8f
MF
733SIM_ENABLE_ARCH_ppc_FALSE
734SIM_ENABLE_ARCH_ppc_TRUE
8996c210
MF
735CC_FOR_TARGET_PPC
736LD_FOR_TARGET_PPC
737AS_FOR_TARGET_PPC
65dcce8f
MF
738SIM_ENABLE_ARCH_or1k_FALSE
739SIM_ENABLE_ARCH_or1k_TRUE
8996c210
MF
740CC_FOR_TARGET_OR1K
741LD_FOR_TARGET_OR1K
742AS_FOR_TARGET_OR1K
65dcce8f
MF
743SIM_ENABLE_ARCH_msp430_FALSE
744SIM_ENABLE_ARCH_msp430_TRUE
8996c210
MF
745CC_FOR_TARGET_MSP430
746LD_FOR_TARGET_MSP430
747AS_FOR_TARGET_MSP430
65dcce8f
MF
748SIM_ENABLE_ARCH_moxie_FALSE
749SIM_ENABLE_ARCH_moxie_TRUE
8996c210
MF
750CC_FOR_TARGET_MOXIE
751LD_FOR_TARGET_MOXIE
752AS_FOR_TARGET_MOXIE
65dcce8f
MF
753SIM_ENABLE_ARCH_mn10300_FALSE
754SIM_ENABLE_ARCH_mn10300_TRUE
8996c210
MF
755CC_FOR_TARGET_MN10300
756LD_FOR_TARGET_MN10300
757AS_FOR_TARGET_MN10300
65dcce8f
MF
758SIM_ENABLE_ARCH_mips_FALSE
759SIM_ENABLE_ARCH_mips_TRUE
8996c210
MF
760CC_FOR_TARGET_MIPS
761LD_FOR_TARGET_MIPS
762AS_FOR_TARGET_MIPS
65dcce8f
MF
763SIM_ENABLE_ARCH_microblaze_FALSE
764SIM_ENABLE_ARCH_microblaze_TRUE
8996c210
MF
765CC_FOR_TARGET_MICROBLAZE
766LD_FOR_TARGET_MICROBLAZE
767AS_FOR_TARGET_MICROBLAZE
65dcce8f
MF
768SIM_ENABLE_ARCH_mcore_FALSE
769SIM_ENABLE_ARCH_mcore_TRUE
8996c210
MF
770CC_FOR_TARGET_MCORE
771LD_FOR_TARGET_MCORE
772AS_FOR_TARGET_MCORE
65dcce8f
MF
773SIM_ENABLE_ARCH_m68hc11_FALSE
774SIM_ENABLE_ARCH_m68hc11_TRUE
8996c210
MF
775CC_FOR_TARGET_M68HC11
776LD_FOR_TARGET_M68HC11
777AS_FOR_TARGET_M68HC11
65dcce8f
MF
778SIM_ENABLE_ARCH_m32r_FALSE
779SIM_ENABLE_ARCH_m32r_TRUE
8996c210
MF
780CC_FOR_TARGET_M32R
781LD_FOR_TARGET_M32R
782AS_FOR_TARGET_M32R
65dcce8f
MF
783SIM_ENABLE_ARCH_m32c_FALSE
784SIM_ENABLE_ARCH_m32c_TRUE
8996c210
MF
785CC_FOR_TARGET_M32C
786LD_FOR_TARGET_M32C
787AS_FOR_TARGET_M32C
65dcce8f
MF
788SIM_ENABLE_ARCH_lm32_FALSE
789SIM_ENABLE_ARCH_lm32_TRUE
8996c210
MF
790CC_FOR_TARGET_LM32
791LD_FOR_TARGET_LM32
792AS_FOR_TARGET_LM32
65dcce8f
MF
793SIM_ENABLE_ARCH_iq2000_FALSE
794SIM_ENABLE_ARCH_iq2000_TRUE
8996c210
MF
795CC_FOR_TARGET_IQ2000
796LD_FOR_TARGET_IQ2000
797AS_FOR_TARGET_IQ2000
65dcce8f
MF
798SIM_ENABLE_ARCH_h8300_FALSE
799SIM_ENABLE_ARCH_h8300_TRUE
8996c210
MF
800CC_FOR_TARGET_H8300
801LD_FOR_TARGET_H8300
802AS_FOR_TARGET_H8300
65dcce8f
MF
803SIM_ENABLE_ARCH_ft32_FALSE
804SIM_ENABLE_ARCH_ft32_TRUE
8996c210
MF
805CC_FOR_TARGET_FT32
806LD_FOR_TARGET_FT32
807AS_FOR_TARGET_FT32
65dcce8f
MF
808SIM_ENABLE_ARCH_frv_FALSE
809SIM_ENABLE_ARCH_frv_TRUE
8996c210
MF
810CC_FOR_TARGET_FRV
811LD_FOR_TARGET_FRV
812AS_FOR_TARGET_FRV
65dcce8f
MF
813SIM_ENABLE_ARCH_d10v_FALSE
814SIM_ENABLE_ARCH_d10v_TRUE
8996c210
MF
815CC_FOR_TARGET_D10V
816LD_FOR_TARGET_D10V
817AS_FOR_TARGET_D10V
65dcce8f
MF
818SIM_ENABLE_ARCH_cris_FALSE
819SIM_ENABLE_ARCH_cris_TRUE
8996c210
MF
820CC_FOR_TARGET_CRIS
821LD_FOR_TARGET_CRIS
822AS_FOR_TARGET_CRIS
65dcce8f
MF
823SIM_ENABLE_ARCH_cr16_FALSE
824SIM_ENABLE_ARCH_cr16_TRUE
8996c210
MF
825CC_FOR_TARGET_CR16
826LD_FOR_TARGET_CR16
827AS_FOR_TARGET_CR16
65dcce8f
MF
828SIM_ENABLE_ARCH_bpf_FALSE
829SIM_ENABLE_ARCH_bpf_TRUE
8996c210
MF
830CC_FOR_TARGET_BPF
831LD_FOR_TARGET_BPF
832AS_FOR_TARGET_BPF
65dcce8f
MF
833SIM_ENABLE_ARCH_bfin_FALSE
834SIM_ENABLE_ARCH_bfin_TRUE
8996c210
MF
835CC_FOR_TARGET_BFIN
836LD_FOR_TARGET_BFIN
837AS_FOR_TARGET_BFIN
65dcce8f
MF
838SIM_ENABLE_ARCH_avr_FALSE
839SIM_ENABLE_ARCH_avr_TRUE
8996c210
MF
840CC_FOR_TARGET_AVR
841LD_FOR_TARGET_AVR
842AS_FOR_TARGET_AVR
65dcce8f
MF
843SIM_ENABLE_ARCH_aarch64_FALSE
844SIM_ENABLE_ARCH_aarch64_TRUE
8996c210
MF
845CC_FOR_TARGET_AARCH64
846LD_FOR_TARGET_AARCH64
847AS_FOR_TARGET_AARCH64
dc4e1fde
HPN
848LD_FOR_TARGET
849AS_FOR_TARGET
850CC_FOR_TARGET
2ba09f42 851SIM_ENABLED_ARCHES
a0e674c1 852SIM_PRIMARY_TARGET
c2783492
MF
853AM_BACKSLASH
854AM_DEFAULT_VERBOSITY
855AM_DEFAULT_V
856AM_V
6bddc3e8
MF
857am__fastdepCC_FALSE
858am__fastdepCC_TRUE
859CCDEPMODE
860am__nodep
861AMDEPBACKSLASH
862AMDEP_FALSE
863AMDEP_TRUE
864am__quote
865am__include
866DEPDIR
6bddc3e8
MF
867am__untar
868am__tar
869AMTAR
870am__leading_dot
871SET_MAKE
6bddc3e8
MF
872mkdir_p
873MKDIR_P
874INSTALL_STRIP_PROGRAM
6bddc3e8
MF
875install_sh
876MAKEINFO
877AUTOHEADER
878AUTOMAKE
879AUTOCONF
880ACLOCAL
881VERSION
882PACKAGE
883CYGPATH_W
884am__isrc
8c379db2
TT
885MAINT
886MAINTAINER_MODE_FALSE
887MAINTAINER_MODE_TRUE
5d0b3088
MF
888READLINE_CFLAGS
889READLINE_LIB
890TERMCAP_LIB
d57b6533
MF
891SDL_LIBS
892SDL_CFLAGS
b5689863
MF
893OTOOL64
894OTOOL
895LIPO
896NMEDIT
897DSYMUTIL
898AWK
899STRIP
900OBJDUMP
901LN_S
902NM
903ac_ct_DUMPBIN
904DUMPBIN
905LD
906FGREP
907SED
908LIBTOOL
c2783492 909C_DIALECT
d57b6533
MF
910PKG_CONFIG_LIBDIR
911PKG_CONFIG_PATH
912PKG_CONFIG
c2783492
MF
913RANLIB
914AR
915LDFLAGS_FOR_BUILD
fde7c6bf 916CPPFLAGS_FOR_BUILD
c2783492 917CFLAGS_FOR_BUILD
aa0fca16 918RANLIB_FOR_BUILD
c2783492 919CC_FOR_BUILD
aa0fca16 920AR_FOR_BUILD
a979f2a0 921DTC
c2783492
MF
922INSTALL_DATA
923INSTALL_SCRIPT
924INSTALL_PROGRAM
925EGREP
926GREP
927CPP
928OBJEXT
929EXEEXT
930ac_ct_CC
931CPPFLAGS
932LDFLAGS
933CFLAGS
934CC
81ecdfbb
RW
935target_os
936target_vendor
937target_cpu
938target
939host_os
940host_vendor
941host_cpu
942host
943build_os
944build_vendor
945build_cpu
946build
6dd65fc0
MF
947REPORT_BUGS_TEXI
948REPORT_BUGS_TO
949PKGVERSION
81ecdfbb
RW
950target_alias
951host_alias
952build_alias
953LIBS
954ECHO_T
955ECHO_N
956ECHO_C
957DEFS
958mandir
959localedir
960libdir
961psdir
962pdfdir
963dvidir
964htmldir
965infodir
966docdir
967oldincludedir
968includedir
969localstatedir
970sharedstatedir
971sysconfdir
972datadir
973datarootdir
974libexecdir
975sbindir
976bindir
977program_transform_name
978prefix
979exec_prefix
980PACKAGE_URL
981PACKAGE_BUGREPORT
982PACKAGE_STRING
983PACKAGE_VERSION
984PACKAGE_TARNAME
985PACKAGE_NAME
986PATH_SEPARATOR
47ce766a 987SHELL
8996c210 988SIM_TOOLCHAIN_VARS
435ad222
MF
989BUILD_WERROR_CFLAGS
990BUILD_WARN_CFLAGS
47ce766a
MF
991WERROR_CFLAGS
992WARN_CFLAGS'
b7026657 993ac_subst_files=''
81ecdfbb
RW
994ac_user_opts='
995enable_option_checking
6dd65fc0
MF
996with_pkgversion
997with_bugurl
b5689863
MF
998enable_shared
999enable_static
1000with_pic
1001enable_fast_install
1002with_gnu_ld
1003enable_libtool_lock
8c379db2 1004enable_maintainer_mode
6bddc3e8 1005enable_dependency_tracking
c2783492 1006enable_silent_rules
81ecdfbb 1007enable_sim
26da232c 1008enable_example_sims
a0e674c1 1009enable_targets
ba307cdd 1010enable_sim_alignment
dba333c1 1011enable_sim_assert
1bf5c342 1012enable_cgen_maint
04381273 1013enable_sim_debug
f9a4d543 1014enable_sim_endian
5ea45474 1015enable_sim_environment
456ef1c1 1016enable_sim_hardware
d73f39ee 1017enable_sim_inline
04381273 1018enable_sim_profile
7eb1f99a 1019enable_sim_reserved_bits
b79efe26 1020enable_sim_scache
20b579ba 1021enable_sim_smp
04381273
MF
1022enable_sim_stdio
1023enable_sim_trace
47ce766a
MF
1024enable_werror
1025enable_build_warnings
1026enable_sim_build_warnings
408a44aa 1027enable_sim_frv_trapdump
5f7e03a6
MF
1028enable_sim_ppc_bitsize
1029enable_sim_ppc_decode_mechanism
1030enable_sim_ppc_default_model
1031enable_sim_ppc_duplicate
1032enable_sim_ppc_filter
1033enable_sim_ppc_float
1034enable_sim_ppc_hardware
1035enable_sim_ppc_icache
1036enable_sim_ppc_jump
1037enable_sim_ppc_line_nr
1038enable_sim_ppc_model
1039enable_sim_ppc_model_issue
1040enable_sim_ppc_monitor
1041enable_sim_ppc_opcode
1042enable_sim_ppc_smp
1043enable_sim_ppc_switch
1044enable_sim_ppc_timebase
1045enable_sim_ppc_xor_endian
e173c80f 1046enable_sim_rx_cycle_accurate
81ecdfbb
RW
1047'
1048 ac_precious_vars='build_alias
1049host_alias
1050target_alias
1051CC
1052CFLAGS
1053LDFLAGS
1054LIBS
5e25901f 1055CPPFLAGS
d57b6533
MF
1056CPP
1057PKG_CONFIG
1058PKG_CONFIG_PATH
1059PKG_CONFIG_LIBDIR
1060SDL_CFLAGS
8996c210
MF
1061SDL_LIBS
1062AS_FOR_TARGET_AARCH64
1063LD_FOR_TARGET_AARCH64
1064CC_FOR_TARGET_AARCH64
8996c210
MF
1065AS_FOR_TARGET_AVR
1066LD_FOR_TARGET_AVR
1067CC_FOR_TARGET_AVR
1068AS_FOR_TARGET_BFIN
1069LD_FOR_TARGET_BFIN
1070CC_FOR_TARGET_BFIN
1071AS_FOR_TARGET_BPF
1072LD_FOR_TARGET_BPF
1073CC_FOR_TARGET_BPF
1074AS_FOR_TARGET_CR16
1075LD_FOR_TARGET_CR16
1076CC_FOR_TARGET_CR16
1077AS_FOR_TARGET_CRIS
1078LD_FOR_TARGET_CRIS
1079CC_FOR_TARGET_CRIS
1080AS_FOR_TARGET_D10V
1081LD_FOR_TARGET_D10V
1082CC_FOR_TARGET_D10V
1083AS_FOR_TARGET_FRV
1084LD_FOR_TARGET_FRV
1085CC_FOR_TARGET_FRV
1086AS_FOR_TARGET_FT32
1087LD_FOR_TARGET_FT32
1088CC_FOR_TARGET_FT32
1089AS_FOR_TARGET_H8300
1090LD_FOR_TARGET_H8300
1091CC_FOR_TARGET_H8300
1092AS_FOR_TARGET_IQ2000
1093LD_FOR_TARGET_IQ2000
1094CC_FOR_TARGET_IQ2000
1095AS_FOR_TARGET_LM32
1096LD_FOR_TARGET_LM32
1097CC_FOR_TARGET_LM32
1098AS_FOR_TARGET_M32C
1099LD_FOR_TARGET_M32C
1100CC_FOR_TARGET_M32C
1101AS_FOR_TARGET_M32R
1102LD_FOR_TARGET_M32R
1103CC_FOR_TARGET_M32R
1104AS_FOR_TARGET_M68HC11
1105LD_FOR_TARGET_M68HC11
1106CC_FOR_TARGET_M68HC11
1107AS_FOR_TARGET_MCORE
1108LD_FOR_TARGET_MCORE
1109CC_FOR_TARGET_MCORE
1110AS_FOR_TARGET_MICROBLAZE
1111LD_FOR_TARGET_MICROBLAZE
1112CC_FOR_TARGET_MICROBLAZE
1113AS_FOR_TARGET_MIPS
1114LD_FOR_TARGET_MIPS
1115CC_FOR_TARGET_MIPS
1116AS_FOR_TARGET_MN10300
1117LD_FOR_TARGET_MN10300
1118CC_FOR_TARGET_MN10300
1119AS_FOR_TARGET_MOXIE
1120LD_FOR_TARGET_MOXIE
1121CC_FOR_TARGET_MOXIE
1122AS_FOR_TARGET_MSP430
1123LD_FOR_TARGET_MSP430
1124CC_FOR_TARGET_MSP430
1125AS_FOR_TARGET_OR1K
1126LD_FOR_TARGET_OR1K
1127CC_FOR_TARGET_OR1K
1128AS_FOR_TARGET_PPC
1129LD_FOR_TARGET_PPC
1130CC_FOR_TARGET_PPC
1131AS_FOR_TARGET_PRU
1132LD_FOR_TARGET_PRU
1133CC_FOR_TARGET_PRU
1134AS_FOR_TARGET_RISCV
1135LD_FOR_TARGET_RISCV
1136CC_FOR_TARGET_RISCV
1137AS_FOR_TARGET_RL78
1138LD_FOR_TARGET_RL78
1139CC_FOR_TARGET_RL78
1140AS_FOR_TARGET_RX
1141LD_FOR_TARGET_RX
1142CC_FOR_TARGET_RX
1143AS_FOR_TARGET_SH
1144LD_FOR_TARGET_SH
1145CC_FOR_TARGET_SH
1146AS_FOR_TARGET_ERC32
1147LD_FOR_TARGET_ERC32
1148CC_FOR_TARGET_ERC32
1149AS_FOR_TARGET_V850
1150LD_FOR_TARGET_V850
1151CC_FOR_TARGET_V850
1152AS_FOR_TARGET_EXAMPLE_SYNACOR
1153LD_FOR_TARGET_EXAMPLE_SYNACOR
1154CC_FOR_TARGET_EXAMPLE_SYNACOR'
5f7e03a6 1155
c906108c
SS
1156
1157# Initialize some variables set by options.
b7026657
AC
1158ac_init_help=
1159ac_init_version=false
81ecdfbb
RW
1160ac_unrecognized_opts=
1161ac_unrecognized_sep=
c906108c
SS
1162# The variables have the same names as the options, with
1163# dashes changed to underlines.
b7026657 1164cache_file=/dev/null
c906108c 1165exec_prefix=NONE
c906108c 1166no_create=
c906108c
SS
1167no_recursion=
1168prefix=NONE
1169program_prefix=NONE
1170program_suffix=NONE
1171program_transform_name=s,x,x,
1172silent=
1173site=
1174srcdir=
c906108c
SS
1175verbose=
1176x_includes=NONE
1177x_libraries=NONE
b7026657
AC
1178
1179# Installation directory options.
1180# These are left unexpanded so users can "make install exec_prefix=/foo"
1181# and all the variables that are supposed to be based on exec_prefix
1182# by default will actually change.
1183# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 1184# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
1185bindir='${exec_prefix}/bin'
1186sbindir='${exec_prefix}/sbin'
1187libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
1188datarootdir='${prefix}/share'
1189datadir='${datarootdir}'
c906108c
SS
1190sysconfdir='${prefix}/etc'
1191sharedstatedir='${prefix}/com'
1192localstatedir='${prefix}/var'
c906108c
SS
1193includedir='${prefix}/include'
1194oldincludedir='/usr/include'
6bddc3e8 1195docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
1196infodir='${datarootdir}/info'
1197htmldir='${docdir}'
1198dvidir='${docdir}'
1199pdfdir='${docdir}'
1200psdir='${docdir}'
1201libdir='${exec_prefix}/lib'
1202localedir='${datarootdir}/locale'
1203mandir='${datarootdir}/man'
c906108c 1204
c906108c 1205ac_prev=
81ecdfbb 1206ac_dashdash=
c906108c
SS
1207for ac_option
1208do
c906108c
SS
1209 # If the previous option needs an argument, assign it.
1210 if test -n "$ac_prev"; then
81ecdfbb 1211 eval $ac_prev=\$ac_option
c906108c
SS
1212 ac_prev=
1213 continue
1214 fi
1215
81ecdfbb 1216 case $ac_option in
d0ac1c44
SM
1217 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1218 *=) ac_optarg= ;;
1219 *) ac_optarg=yes ;;
81ecdfbb 1220 esac
c906108c
SS
1221
1222 # Accept the important Cygnus configure options, so we can diagnose typos.
1223
81ecdfbb
RW
1224 case $ac_dashdash$ac_option in
1225 --)
1226 ac_dashdash=yes ;;
c906108c
SS
1227
1228 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1229 ac_prev=bindir ;;
1230 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 1231 bindir=$ac_optarg ;;
c906108c
SS
1232
1233 -build | --build | --buil | --bui | --bu)
b7026657 1234 ac_prev=build_alias ;;
c906108c 1235 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 1236 build_alias=$ac_optarg ;;
c906108c
SS
1237
1238 -cache-file | --cache-file | --cache-fil | --cache-fi \
1239 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1240 ac_prev=cache_file ;;
1241 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1242 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
1243 cache_file=$ac_optarg ;;
1244
1245 --config-cache | -C)
1246 cache_file=config.cache ;;
c906108c 1247
81ecdfbb 1248 -datadir | --datadir | --datadi | --datad)
c906108c 1249 ac_prev=datadir ;;
81ecdfbb 1250 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 1251 datadir=$ac_optarg ;;
c906108c 1252
81ecdfbb
RW
1253 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1254 | --dataroo | --dataro | --datar)
1255 ac_prev=datarootdir ;;
1256 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1257 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1258 datarootdir=$ac_optarg ;;
1259
c906108c 1260 -disable-* | --disable-*)
81ecdfbb 1261 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 1262 # Reject names that are not valid shell variable names.
81ecdfbb 1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1264 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1265 ac_useropt_orig=$ac_useropt
1266 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1268 *"
1269"enable_$ac_useropt"
1270"*) ;;
1271 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1272 ac_unrecognized_sep=', ';;
1273 esac
1274 eval enable_$ac_useropt=no ;;
1275
1276 -docdir | --docdir | --docdi | --doc | --do)
1277 ac_prev=docdir ;;
1278 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1279 docdir=$ac_optarg ;;
1280
1281 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1282 ac_prev=dvidir ;;
1283 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1284 dvidir=$ac_optarg ;;
c906108c
SS
1285
1286 -enable-* | --enable-*)
81ecdfbb 1287 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 1288 # Reject names that are not valid shell variable names.
81ecdfbb 1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1290 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1294 *"
1295"enable_$ac_useropt"
1296"*) ;;
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
fdd6fa61 1299 esac
81ecdfbb 1300 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1301
1302 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1303 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1304 | --exec | --exe | --ex)
1305 ac_prev=exec_prefix ;;
1306 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1307 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1308 | --exec=* | --exe=* | --ex=*)
b7026657 1309 exec_prefix=$ac_optarg ;;
c906108c
SS
1310
1311 -gas | --gas | --ga | --g)
1312 # Obsolete; use --with-gas.
1313 with_gas=yes ;;
1314
b7026657
AC
1315 -help | --help | --hel | --he | -h)
1316 ac_init_help=long ;;
1317 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1318 ac_init_help=recursive ;;
1319 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1320 ac_init_help=short ;;
c906108c
SS
1321
1322 -host | --host | --hos | --ho)
b7026657 1323 ac_prev=host_alias ;;
c906108c 1324 -host=* | --host=* | --hos=* | --ho=*)
b7026657 1325 host_alias=$ac_optarg ;;
c906108c 1326
81ecdfbb
RW
1327 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1328 ac_prev=htmldir ;;
1329 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1330 | --ht=*)
1331 htmldir=$ac_optarg ;;
1332
c906108c
SS
1333 -includedir | --includedir | --includedi | --included | --include \
1334 | --includ | --inclu | --incl | --inc)
1335 ac_prev=includedir ;;
1336 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1337 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 1338 includedir=$ac_optarg ;;
c906108c
SS
1339
1340 -infodir | --infodir | --infodi | --infod | --info | --inf)
1341 ac_prev=infodir ;;
1342 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 1343 infodir=$ac_optarg ;;
c906108c
SS
1344
1345 -libdir | --libdir | --libdi | --libd)
1346 ac_prev=libdir ;;
1347 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 1348 libdir=$ac_optarg ;;
c906108c
SS
1349
1350 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1351 | --libexe | --libex | --libe)
1352 ac_prev=libexecdir ;;
1353 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1354 | --libexe=* | --libex=* | --libe=*)
b7026657 1355 libexecdir=$ac_optarg ;;
c906108c 1356
81ecdfbb
RW
1357 -localedir | --localedir | --localedi | --localed | --locale)
1358 ac_prev=localedir ;;
1359 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1360 localedir=$ac_optarg ;;
1361
c906108c 1362 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1363 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
1364 ac_prev=localstatedir ;;
1365 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1366 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 1367 localstatedir=$ac_optarg ;;
c906108c
SS
1368
1369 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1370 ac_prev=mandir ;;
1371 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 1372 mandir=$ac_optarg ;;
c906108c
SS
1373
1374 -nfp | --nfp | --nf)
1375 # Obsolete; use --without-fp.
1376 with_fp=no ;;
1377
1378 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1379 | --no-cr | --no-c | -n)
c906108c
SS
1380 no_create=yes ;;
1381
1382 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1383 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1384 no_recursion=yes ;;
1385
1386 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1387 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1388 | --oldin | --oldi | --old | --ol | --o)
1389 ac_prev=oldincludedir ;;
1390 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1391 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1392 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1393 oldincludedir=$ac_optarg ;;
c906108c
SS
1394
1395 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1396 ac_prev=prefix ;;
1397 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1398 prefix=$ac_optarg ;;
c906108c
SS
1399
1400 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1401 | --program-pre | --program-pr | --program-p)
1402 ac_prev=program_prefix ;;
1403 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1404 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1405 program_prefix=$ac_optarg ;;
c906108c
SS
1406
1407 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1408 | --program-suf | --program-su | --program-s)
1409 ac_prev=program_suffix ;;
1410 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1411 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1412 program_suffix=$ac_optarg ;;
c906108c
SS
1413
1414 -program-transform-name | --program-transform-name \
1415 | --program-transform-nam | --program-transform-na \
1416 | --program-transform-n | --program-transform- \
1417 | --program-transform | --program-transfor \
1418 | --program-transfo | --program-transf \
1419 | --program-trans | --program-tran \
1420 | --progr-tra | --program-tr | --program-t)
1421 ac_prev=program_transform_name ;;
1422 -program-transform-name=* | --program-transform-name=* \
1423 | --program-transform-nam=* | --program-transform-na=* \
1424 | --program-transform-n=* | --program-transform-=* \
1425 | --program-transform=* | --program-transfor=* \
1426 | --program-transfo=* | --program-transf=* \
1427 | --program-trans=* | --program-tran=* \
1428 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1429 program_transform_name=$ac_optarg ;;
c906108c 1430
81ecdfbb
RW
1431 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1432 ac_prev=pdfdir ;;
1433 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1434 pdfdir=$ac_optarg ;;
1435
1436 -psdir | --psdir | --psdi | --psd | --ps)
1437 ac_prev=psdir ;;
1438 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1439 psdir=$ac_optarg ;;
1440
c906108c
SS
1441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1442 | -silent | --silent | --silen | --sile | --sil)
1443 silent=yes ;;
1444
1445 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1446 ac_prev=sbindir ;;
1447 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1448 | --sbi=* | --sb=*)
b7026657 1449 sbindir=$ac_optarg ;;
c906108c
SS
1450
1451 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1452 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1453 | --sharedst | --shareds | --shared | --share | --shar \
1454 | --sha | --sh)
1455 ac_prev=sharedstatedir ;;
1456 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1457 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1458 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1459 | --sha=* | --sh=*)
b7026657 1460 sharedstatedir=$ac_optarg ;;
c906108c
SS
1461
1462 -site | --site | --sit)
1463 ac_prev=site ;;
1464 -site=* | --site=* | --sit=*)
b7026657 1465 site=$ac_optarg ;;
0fda6bd2 1466
c906108c
SS
1467 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1468 ac_prev=srcdir ;;
1469 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1470 srcdir=$ac_optarg ;;
c906108c
SS
1471
1472 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1473 | --syscon | --sysco | --sysc | --sys | --sy)
1474 ac_prev=sysconfdir ;;
1475 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1476 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1477 sysconfdir=$ac_optarg ;;
c906108c
SS
1478
1479 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1480 ac_prev=target_alias ;;
c906108c 1481 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1482 target_alias=$ac_optarg ;;
c906108c
SS
1483
1484 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1485 verbose=yes ;;
1486
b7026657
AC
1487 -version | --version | --versio | --versi | --vers | -V)
1488 ac_init_version=: ;;
c906108c
SS
1489
1490 -with-* | --with-*)
81ecdfbb 1491 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1492 # Reject names that are not valid shell variable names.
81ecdfbb 1493 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1494 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1495 ac_useropt_orig=$ac_useropt
1496 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1497 case $ac_user_opts in
1498 *"
1499"with_$ac_useropt"
1500"*) ;;
1501 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1502 ac_unrecognized_sep=', ';;
fdd6fa61 1503 esac
81ecdfbb 1504 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1505
1506 -without-* | --without-*)
81ecdfbb 1507 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1508 # Reject names that are not valid shell variable names.
81ecdfbb 1509 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1510 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1511 ac_useropt_orig=$ac_useropt
1512 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1513 case $ac_user_opts in
1514 *"
1515"with_$ac_useropt"
1516"*) ;;
1517 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1518 ac_unrecognized_sep=', ';;
1519 esac
1520 eval with_$ac_useropt=no ;;
c906108c
SS
1521
1522 --x)
1523 # Obsolete; use --with-x.
1524 with_x=yes ;;
1525
1526 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1527 | --x-incl | --x-inc | --x-in | --x-i)
1528 ac_prev=x_includes ;;
1529 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1530 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1531 x_includes=$ac_optarg ;;
c906108c
SS
1532
1533 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1534 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1535 ac_prev=x_libraries ;;
1536 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1537 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1538 x_libraries=$ac_optarg ;;
c906108c 1539
d0ac1c44
SM
1540 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1541Try \`$0 --help' for more information"
c906108c
SS
1542 ;;
1543
b7026657
AC
1544 *=*)
1545 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1546 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1547 case $ac_envvar in #(
1548 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1549 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1550 esac
1551 eval $ac_envvar=\$ac_optarg
b7026657
AC
1552 export $ac_envvar ;;
1553
c906108c 1554 *)
b7026657 1555 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1556 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1557 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1558 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1559 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1560 ;;
1561
1562 esac
1563done
1564
1565if test -n "$ac_prev"; then
b7026657 1566 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1567 as_fn_error $? "missing argument to $ac_option"
c906108c 1568fi
c906108c 1569
81ecdfbb
RW
1570if test -n "$ac_unrecognized_opts"; then
1571 case $enable_option_checking in
1572 no) ;;
d0ac1c44 1573 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1574 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
fdd6fa61 1575 esac
81ecdfbb 1576fi
fdd6fa61 1577
81ecdfbb
RW
1578# Check all directory arguments for consistency.
1579for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1580 datadir sysconfdir sharedstatedir localstatedir includedir \
1581 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1582 libdir localedir mandir
c906108c 1583do
81ecdfbb
RW
1584 eval ac_val=\$$ac_var
1585 # Remove trailing slashes.
1586 case $ac_val in
1587 */ )
1588 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1589 eval $ac_var=\$ac_val;;
1590 esac
1591 # Be sure to have absolute directory names.
b7026657 1592 case $ac_val in
81ecdfbb
RW
1593 [\\/$]* | ?:[\\/]* ) continue;;
1594 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1595 esac
d0ac1c44 1596 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1597done
1598
b7026657
AC
1599# There might be people who depend on the old broken behavior: `$host'
1600# used to hold the argument of --host etc.
1601# FIXME: To remove some day.
1602build=$build_alias
1603host=$host_alias
1604target=$target_alias
1605
1606# FIXME: To remove some day.
1607if test "x$host_alias" != x; then
1608 if test "x$build_alias" = x; then
1609 cross_compiling=maybe
b7026657
AC
1610 elif test "x$build_alias" != "x$host_alias"; then
1611 cross_compiling=yes
1612 fi
1613fi
c906108c 1614
b7026657
AC
1615ac_tool_prefix=
1616test -n "$host_alias" && ac_tool_prefix=$host_alias-
1617
1618test "$silent" = yes && exec 6>/dev/null
c906108c 1619
c906108c 1620
81ecdfbb
RW
1621ac_pwd=`pwd` && test -n "$ac_pwd" &&
1622ac_ls_di=`ls -di .` &&
1623ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1624 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1625test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1626 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1627
1628
c906108c
SS
1629# Find the source files, if location was not specified.
1630if test -z "$srcdir"; then
1631 ac_srcdir_defaulted=yes
81ecdfbb
RW
1632 # Try the directory containing this script, then the parent directory.
1633 ac_confdir=`$as_dirname -- "$as_myself" ||
1634$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1635 X"$as_myself" : 'X\(//\)[^/]' \| \
1636 X"$as_myself" : 'X\(//\)$' \| \
1637 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1638$as_echo X"$as_myself" |
1639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1640 s//\1/
1641 q
1642 }
1643 /^X\(\/\/\)[^/].*/{
1644 s//\1/
1645 q
1646 }
1647 /^X\(\/\/\)$/{
1648 s//\1/
1649 q
1650 }
1651 /^X\(\/\).*/{
1652 s//\1/
1653 q
1654 }
1655 s/.*/./; q'`
c906108c 1656 srcdir=$ac_confdir
81ecdfbb 1657 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1658 srcdir=..
1659 fi
1660else
1661 ac_srcdir_defaulted=no
1662fi
81ecdfbb
RW
1663if test ! -r "$srcdir/$ac_unique_file"; then
1664 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1665 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1666fi
1667ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1668ac_abs_confdir=`(
d0ac1c44 1669 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1670 pwd)`
1671# When building in place, set srcdir=.
1672if test "$ac_abs_confdir" = "$ac_pwd"; then
1673 srcdir=.
1674fi
1675# Remove unnecessary trailing slashes from srcdir.
1676# Double slashes in file names in object file debugging info
1677# mess up M-x gdb in Emacs.
1678case $srcdir in
1679*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1680esac
1681for ac_var in $ac_precious_vars; do
1682 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1683 eval ac_env_${ac_var}_value=\$${ac_var}
1684 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1685 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1686done
df1756f4
TG
1687
1688#
b7026657
AC
1689# Report the --help message.
1690#
1691if test "$ac_init_help" = "long"; then
1692 # Omit some internal or obsolete options to make the list less imposing.
1693 # This message is too long to be a string in the A/UX 3.1 sh.
1694 cat <<_ACEOF
6bddc3e8 1695\`configure' configures sim 0 to adapt to many kinds of systems.
b7026657
AC
1696
1697Usage: $0 [OPTION]... [VAR=VALUE]...
1698
1699To assign environment variables (e.g., CC, CFLAGS...), specify them as
1700VAR=VALUE. See below for descriptions of some of the useful variables.
1701
1702Defaults for the options are specified in brackets.
1703
1704Configuration:
1705 -h, --help display this help and exit
1706 --help=short display options specific to this package
1707 --help=recursive display the short help of all the included packages
1708 -V, --version display version information and exit
d0ac1c44 1709 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1710 --cache-file=FILE cache test results in FILE [disabled]
1711 -C, --config-cache alias for \`--cache-file=config.cache'
1712 -n, --no-create do not create output files
1713 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1714
b7026657
AC
1715Installation directories:
1716 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1717 [$ac_default_prefix]
b7026657 1718 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1719 [PREFIX]
b7026657
AC
1720
1721By default, \`make install' will install all the files in
1722\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1723an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1724for instance \`--prefix=\$HOME'.
1725
1726For better control, use the options below.
1727
1728Fine tuning of the installation directories:
81ecdfbb
RW
1729 --bindir=DIR user executables [EPREFIX/bin]
1730 --sbindir=DIR system admin executables [EPREFIX/sbin]
1731 --libexecdir=DIR program executables [EPREFIX/libexec]
1732 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1733 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1734 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1735 --libdir=DIR object code libraries [EPREFIX/lib]
1736 --includedir=DIR C header files [PREFIX/include]
1737 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1738 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1739 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1740 --infodir=DIR info documentation [DATAROOTDIR/info]
1741 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1742 --mandir=DIR man documentation [DATAROOTDIR/man]
6bddc3e8 1743 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
81ecdfbb
RW
1744 --htmldir=DIR html documentation [DOCDIR]
1745 --dvidir=DIR dvi documentation [DOCDIR]
1746 --pdfdir=DIR pdf documentation [DOCDIR]
1747 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1748_ACEOF
1749
1750 cat <<\_ACEOF
1751
1752Program names:
1753 --program-prefix=PREFIX prepend PREFIX to installed program names
1754 --program-suffix=SUFFIX append SUFFIX to installed program names
1755 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1756
1757System types:
1758 --build=BUILD configure for building on BUILD [guessed]
1759 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1760 --target=TARGET configure for building compilers for TARGET [HOST]
1761_ACEOF
1762fi
1763
1764if test -n "$ac_init_help"; then
6bddc3e8
MF
1765 case $ac_init_help in
1766 short | recursive ) echo "Configuration of sim 0:";;
1767 esac
b7026657
AC
1768 cat <<\_ACEOF
1769
1770Optional Features:
81ecdfbb 1771 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1772 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1773 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b5689863
MF
1774 --enable-shared[=PKGS] build shared libraries [default=yes]
1775 --enable-static[=PKGS] build static libraries [default=yes]
1776 --enable-fast-install[=PKGS]
1777 optimize for fast installation [default=yes]
1778 --disable-libtool-lock avoid locking (might break parallel builds)
8c379db2
TT
1779 --enable-maintainer-mode
1780 enable make rules and dependencies not useful (and
1781 sometimes confusing) to the casual installer
6bddc3e8
MF
1782 --enable-dependency-tracking
1783 do not reject slow dependency extractors
1784 --disable-dependency-tracking
1785 speeds up one-time build
c2783492
MF
1786 --enable-silent-rules less verbose build output (undo: "make V=1")
1787 --disable-silent-rules verbose build output (undo: "make V=0")
8d0978fb 1788 --enable-sim Enable the GNU simulator
26da232c 1789 --enable-example-sims enable example GNU simulators
a0e674c1 1790 --enable-targets alternative target configurations
ba307cdd
MF
1791 --enable-sim-alignment=align
1792 Specify strict, nonstrict or forced alignment of
1793 memory accesses
dba333c1 1794 --enable-sim-assert Specify whether to perform random assertions
1bf5c342 1795 --enable-cgen-maint=DIR build cgen generated files
04381273
MF
1796 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1797 itself)
f9a4d543
MF
1798 --enable-sim-endian=endian
1799 Specify target byte endian orientation
5ea45474
MF
1800 --enable-sim-environment=environment
1801 Specify mixed, user, virtual or operating
1802 environment
456ef1c1 1803 --enable-sim-hardware Whether to enable hardware/device simulation
d73f39ee
MF
1804 --enable-sim-inline=inlines
1805 Specify which functions should be inlined
04381273
MF
1806 --enable-sim-profile=opts
1807 Enable profiling flags
7eb1f99a
MF
1808 --enable-sim-reserved-bits
1809 Specify whether to check reserved bits in
1810 instruction
b79efe26
MF
1811 --enable-sim-scache=size
1812 Specify simulator execution cache size
20b579ba
MF
1813 --enable-sim-smp=n Specify number of processors to configure for
1814 (default 1)
04381273
MF
1815 --enable-sim-stdio Specify whether to use stdio for console
1816 input/output
1817 --enable-sim-trace=opts Enable tracing of simulated programs
47ce766a
MF
1818 --enable-werror treat compile warnings as errors
1819 --enable-build-warnings enable build-time compiler warnings if gcc is used
1820 --enable-sim-build-warnings
1821 enable SIM specific build-time compiler warnings if
1822 gcc is used
408a44aa
MF
1823 --enable-sim-frv-trapdump
1824 Make unknown traps dump the registers
5f7e03a6
MF
1825 --enable-sim-ppc-bitsize=n
1826 Specify target bitsize (32 or 64).
1827 --enable-sim-ppc-decode-mechanism=which
1828 Specify the instruction decode mechanism.
1829 --enable-sim-ppc-default-model=which
1830 Specify default PowerPC to model.
1831 --enable-sim-ppc-duplicate
1832 Expand (duplicate) semantic functions.
1833 --enable-sim-ppc-filter=rule
1834 Specify filter rules.
1835 --enable-sim-ppc-float Specify whether the target has hard, soft, altivec
1836 or e500 floating point.
1837 --enable-sim-ppc-hardware=list
1838 Specify the hardware to be included in the build.
1839 --enable-sim-ppc-icache=size
1840 Specify instruction-decode cache size and type.
1841 --enable-sim-ppc-jump Jump between semantic code (instead of call/return).
1842 --enable-sim-ppc-line-nr=opts
1843 Generate extra CPP code that references source
1844 rather than generated code
1845 --enable-sim-ppc-model=which
1846 Specify PowerPC to model.
1847 --enable-sim-ppc-model-issue
1848 Specify whether to simulate model specific actions
1849 --enable-sim-ppc-monitor=mon
1850 Specify whether to enable monitoring events.
1851 --enable-sim-ppc-opcode=which
1852 Override default opcode lookup.
1853 --enable-sim-ppc-smp=n Specify number of processors to configure for.
1854 --enable-sim-ppc-switch Use a switch instead of a table for instruction
1855 call.
1856 --enable-sim-ppc-timebase
1857 Specify whether the PPC timebase is supported.
1858 --enable-sim-ppc-xor-endian=n
1859 Specify number bytes involved in PowerPC XOR
1860 bi-endian mode (default 8).
e173c80f
MF
1861 --disable-sim-rx-cycle-accurate
1862 Disable cycle accurate simulation (faster runtime)
b7026657 1863
6dd65fc0
MF
1864Optional Packages:
1865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1867 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1868 --with-bugurl=URL Direct users to URL to report a bug
b5689863
MF
1869 --with-pic try to use only PIC/non-PIC objects [default=use
1870 both]
1871 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
6dd65fc0 1872
b7026657
AC
1873Some influential environment variables:
1874 CC C compiler command
1875 CFLAGS C compiler flags
1876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1877 nonstandard directory <lib dir>
81ecdfbb 1878 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1879 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1880 you have headers in a nonstandard directory <include dir>
5e25901f 1881 CPP C preprocessor
d57b6533
MF
1882 PKG_CONFIG path to pkg-config utility
1883 PKG_CONFIG_PATH
1884 directories to add to pkg-config's search path
1885 PKG_CONFIG_LIBDIR
1886 path overriding pkg-config's built-in search path
1887 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1888 SDL_LIBS linker flags for SDL, overriding pkg-config
8996c210
MF
1889 AS_FOR_TARGET_AARCH64
1890 Assembler for aarch64 tests
1891 LD_FOR_TARGET_AARCH64
1892 Linker for aarch64 tests
1893 CC_FOR_TARGET_AARCH64
1894 C compiler for aarch64 tests
8996c210
MF
1895 AS_FOR_TARGET_AVR
1896 Assembler for avr tests
1897 LD_FOR_TARGET_AVR
1898 Linker for avr tests
1899 CC_FOR_TARGET_AVR
1900 C compiler for avr tests
1901 AS_FOR_TARGET_BFIN
1902 Assembler for bfin tests
1903 LD_FOR_TARGET_BFIN
1904 Linker for bfin tests
1905 CC_FOR_TARGET_BFIN
1906 C compiler for bfin tests
1907 AS_FOR_TARGET_BPF
1908 Assembler for bpf tests
1909 LD_FOR_TARGET_BPF
1910 Linker for bpf tests
1911 CC_FOR_TARGET_BPF
1912 C compiler for bpf tests
1913 AS_FOR_TARGET_CR16
1914 Assembler for cr16 tests
1915 LD_FOR_TARGET_CR16
1916 Linker for cr16 tests
1917 CC_FOR_TARGET_CR16
1918 C compiler for cr16 tests
1919 AS_FOR_TARGET_CRIS
1920 Assembler for cris tests
1921 LD_FOR_TARGET_CRIS
1922 Linker for cris tests
1923 CC_FOR_TARGET_CRIS
1924 C compiler for cris tests
1925 AS_FOR_TARGET_D10V
1926 Assembler for d10v tests
1927 LD_FOR_TARGET_D10V
1928 Linker for d10v tests
1929 CC_FOR_TARGET_D10V
1930 C compiler for d10v tests
1931 AS_FOR_TARGET_FRV
1932 Assembler for frv tests
1933 LD_FOR_TARGET_FRV
1934 Linker for frv tests
1935 CC_FOR_TARGET_FRV
1936 C compiler for frv tests
1937 AS_FOR_TARGET_FT32
1938 Assembler for ft32 tests
1939 LD_FOR_TARGET_FT32
1940 Linker for ft32 tests
1941 CC_FOR_TARGET_FT32
1942 C compiler for ft32 tests
1943 AS_FOR_TARGET_H8300
1944 Assembler for h8300 tests
1945 LD_FOR_TARGET_H8300
1946 Linker for h8300 tests
1947 CC_FOR_TARGET_H8300
1948 C compiler for h8300 tests
1949 AS_FOR_TARGET_IQ2000
1950 Assembler for iq2000 tests
1951 LD_FOR_TARGET_IQ2000
1952 Linker for iq2000 tests
1953 CC_FOR_TARGET_IQ2000
1954 C compiler for iq2000 tests
1955 AS_FOR_TARGET_LM32
1956 Assembler for lm32 tests
1957 LD_FOR_TARGET_LM32
1958 Linker for lm32 tests
1959 CC_FOR_TARGET_LM32
1960 C compiler for lm32 tests
1961 AS_FOR_TARGET_M32C
1962 Assembler for m32c tests
1963 LD_FOR_TARGET_M32C
1964 Linker for m32c tests
1965 CC_FOR_TARGET_M32C
1966 C compiler for m32c tests
1967 AS_FOR_TARGET_M32R
1968 Assembler for m32r tests
1969 LD_FOR_TARGET_M32R
1970 Linker for m32r tests
1971 CC_FOR_TARGET_M32R
1972 C compiler for m32r tests
1973 AS_FOR_TARGET_M68HC11
1974 Assembler for m68hc11 tests
1975 LD_FOR_TARGET_M68HC11
1976 Linker for m68hc11 tests
1977 CC_FOR_TARGET_M68HC11
1978 C compiler for m68hc11 tests
1979 AS_FOR_TARGET_MCORE
1980 Assembler for mcore tests
1981 LD_FOR_TARGET_MCORE
1982 Linker for mcore tests
1983 CC_FOR_TARGET_MCORE
1984 C compiler for mcore tests
1985 AS_FOR_TARGET_MICROBLAZE
1986 Assembler for microblaze tests
1987 LD_FOR_TARGET_MICROBLAZE
1988 Linker for microblaze tests
1989 CC_FOR_TARGET_MICROBLAZE
1990 C compiler for microblaze tests
1991 AS_FOR_TARGET_MIPS
1992 Assembler for mips tests
1993 LD_FOR_TARGET_MIPS
1994 Linker for mips tests
1995 CC_FOR_TARGET_MIPS
1996 C compiler for mips tests
1997 AS_FOR_TARGET_MN10300
1998 Assembler for mn10300 tests
1999 LD_FOR_TARGET_MN10300
2000 Linker for mn10300 tests
2001 CC_FOR_TARGET_MN10300
2002 C compiler for mn10300 tests
2003 AS_FOR_TARGET_MOXIE
2004 Assembler for moxie tests
2005 LD_FOR_TARGET_MOXIE
2006 Linker for moxie tests
2007 CC_FOR_TARGET_MOXIE
2008 C compiler for moxie tests
2009 AS_FOR_TARGET_MSP430
2010 Assembler for msp430 tests
2011 LD_FOR_TARGET_MSP430
2012 Linker for msp430 tests
2013 CC_FOR_TARGET_MSP430
2014 C compiler for msp430 tests
2015 AS_FOR_TARGET_OR1K
2016 Assembler for or1k tests
2017 LD_FOR_TARGET_OR1K
2018 Linker for or1k tests
2019 CC_FOR_TARGET_OR1K
2020 C compiler for or1k tests
2021 AS_FOR_TARGET_PPC
2022 Assembler for ppc tests
2023 LD_FOR_TARGET_PPC
2024 Linker for ppc tests
2025 CC_FOR_TARGET_PPC
2026 C compiler for ppc tests
2027 AS_FOR_TARGET_PRU
2028 Assembler for pru tests
2029 LD_FOR_TARGET_PRU
2030 Linker for pru tests
2031 CC_FOR_TARGET_PRU
2032 C compiler for pru tests
2033 AS_FOR_TARGET_RISCV
2034 Assembler for riscv tests
2035 LD_FOR_TARGET_RISCV
2036 Linker for riscv tests
2037 CC_FOR_TARGET_RISCV
2038 C compiler for riscv tests
2039 AS_FOR_TARGET_RL78
2040 Assembler for rl78 tests
2041 LD_FOR_TARGET_RL78
2042 Linker for rl78 tests
2043 CC_FOR_TARGET_RL78
2044 C compiler for rl78 tests
2045 AS_FOR_TARGET_RX
2046 Assembler for rx tests
2047 LD_FOR_TARGET_RX
2048 Linker for rx tests
2049 CC_FOR_TARGET_RX
2050 C compiler for rx tests
2051 AS_FOR_TARGET_SH
2052 Assembler for sh tests
2053 LD_FOR_TARGET_SH
2054 Linker for sh tests
2055 CC_FOR_TARGET_SH
2056 C compiler for sh tests
2057 AS_FOR_TARGET_ERC32
2058 Assembler for erc32 tests
2059 LD_FOR_TARGET_ERC32
2060 Linker for erc32 tests
2061 CC_FOR_TARGET_ERC32
2062 C compiler for erc32 tests
2063 AS_FOR_TARGET_V850
2064 Assembler for v850 tests
2065 LD_FOR_TARGET_V850
2066 Linker for v850 tests
2067 CC_FOR_TARGET_V850
2068 C compiler for v850 tests
2069 AS_FOR_TARGET_EXAMPLE_SYNACOR
2070 Assembler for example-synacor tests
2071 LD_FOR_TARGET_EXAMPLE_SYNACOR
2072 Linker for example-synacor tests
2073 CC_FOR_TARGET_EXAMPLE_SYNACOR
2074 C compiler for example-synacor tests
b7026657
AC
2075
2076Use these variables to override the choices made by `configure' or to help
2077it to find libraries and programs with nonstandard names/locations.
2078
6bddc3e8
MF
2079Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
2080sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
b7026657 2081_ACEOF
81ecdfbb 2082ac_status=$?
b7026657
AC
2083fi
2084
2085if test "$ac_init_help" = "recursive"; then
2086 # If there are subdirs, report their specific --help.
b7026657 2087 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
2088 test -d "$ac_dir" ||
2089 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2090 continue
b7026657
AC
2091 ac_builddir=.
2092
81ecdfbb
RW
2093case "$ac_dir" in
2094.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2095*)
2096 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2097 # A ".." for each directory in $ac_dir_suffix.
2098 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2099 case $ac_top_builddir_sub in
2100 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2101 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2102 esac ;;
2103esac
2104ac_abs_top_builddir=$ac_pwd
2105ac_abs_builddir=$ac_pwd$ac_dir_suffix
2106# for backward compatibility:
2107ac_top_builddir=$ac_top_build_prefix
b7026657
AC
2108
2109case $srcdir in
81ecdfbb 2110 .) # We are building in place.
b7026657 2111 ac_srcdir=.
81ecdfbb
RW
2112 ac_top_srcdir=$ac_top_builddir_sub
2113 ac_abs_top_srcdir=$ac_pwd ;;
2114 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 2115 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
2116 ac_top_srcdir=$srcdir
2117 ac_abs_top_srcdir=$srcdir ;;
2118 *) # Relative name.
2119 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2120 ac_top_srcdir=$ac_top_build_prefix$srcdir
2121 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
fdd6fa61 2122esac
81ecdfbb 2123ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
fdd6fa61 2124
81ecdfbb
RW
2125 cd "$ac_dir" || { ac_status=$?; continue; }
2126 # Check for guested configure.
2127 if test -f "$ac_srcdir/configure.gnu"; then
2128 echo &&
2129 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2130 elif test -f "$ac_srcdir/configure"; then
2131 echo &&
2132 $SHELL "$ac_srcdir/configure" --help=recursive
0fda6bd2 2133 else
81ecdfbb
RW
2134 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2135 fi || ac_status=$?
2136 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
2137 done
2138fi
2139
81ecdfbb 2140test -n "$ac_init_help" && exit $ac_status
b7026657
AC
2141if $ac_init_version; then
2142 cat <<\_ACEOF
6bddc3e8 2143sim configure 0
d0ac1c44 2144generated by GNU Autoconf 2.69
b7026657 2145
d0ac1c44 2146Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
2147This configure script is free software; the Free Software Foundation
2148gives unlimited permission to copy, distribute and modify it.
2149_ACEOF
81ecdfbb 2150 exit
b7026657 2151fi
81ecdfbb
RW
2152
2153## ------------------------ ##
2154## Autoconf initialization. ##
2155## ------------------------ ##
2156
2157# ac_fn_c_try_compile LINENO
2158# --------------------------
2159# Try to compile conftest.$ac_ext, and return whether this succeeded.
2160ac_fn_c_try_compile ()
2161{
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 rm -f conftest.$ac_objext
2164 if { { ac_try="$ac_compile"
2165case "(($ac_try" in
2166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167 *) ac_try_echo=$ac_try;;
2168esac
2169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2170$as_echo "$ac_try_echo"; } >&5
2171 (eval "$ac_compile") 2>conftest.err
2172 ac_status=$?
2173 if test -s conftest.err; then
2174 grep -v '^ *+' conftest.err >conftest.er1
2175 cat conftest.er1 >&5
2176 mv -f conftest.er1 conftest.err
2177 fi
2178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2179 test $ac_status = 0; } && {
2180 test -z "$ac_c_werror_flag" ||
2181 test ! -s conftest.err
2182 } && test -s conftest.$ac_objext; then :
2183 ac_retval=0
2184else
2185 $as_echo "$as_me: failed program was:" >&5
2186sed 's/^/| /' conftest.$ac_ext >&5
2187
2188 ac_retval=1
2189fi
d0ac1c44
SM
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 as_fn_set_status $ac_retval
81ecdfbb
RW
2192
2193} # ac_fn_c_try_compile
5e25901f
MF
2194
2195# ac_fn_c_try_cpp LINENO
2196# ----------------------
2197# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2198ac_fn_c_try_cpp ()
2199{
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 if { { ac_try="$ac_cpp conftest.$ac_ext"
2202case "(($ac_try" in
2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204 *) ac_try_echo=$ac_try;;
2205esac
2206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2207$as_echo "$ac_try_echo"; } >&5
2208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2209 ac_status=$?
2210 if test -s conftest.err; then
2211 grep -v '^ *+' conftest.err >conftest.er1
2212 cat conftest.er1 >&5
2213 mv -f conftest.er1 conftest.err
2214 fi
2215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2216 test $ac_status = 0; } > conftest.i && {
2217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2218 test ! -s conftest.err
2219 }; then :
2220 ac_retval=0
2221else
2222 $as_echo "$as_me: failed program was:" >&5
2223sed 's/^/| /' conftest.$ac_ext >&5
2224
2225 ac_retval=1
2226fi
2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228 as_fn_set_status $ac_retval
2229
2230} # ac_fn_c_try_cpp
c2783492 2231
c2783492
MF
2232# ac_fn_c_try_run LINENO
2233# ----------------------
2234# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2235# that executables *can* be run.
2236ac_fn_c_try_run ()
2237{
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 if { { ac_try="$ac_link"
2240case "(($ac_try" in
2241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2242 *) ac_try_echo=$ac_try;;
2243esac
2244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2245$as_echo "$ac_try_echo"; } >&5
2246 (eval "$ac_link") 2>&5
2247 ac_status=$?
2248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2250 { { case "(($ac_try" in
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2253esac
2254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2255$as_echo "$ac_try_echo"; } >&5
2256 (eval "$ac_try") 2>&5
2257 ac_status=$?
2258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2259 test $ac_status = 0; }; }; then :
2260 ac_retval=0
2261else
2262 $as_echo "$as_me: program exited with status $ac_status" >&5
2263 $as_echo "$as_me: failed program was:" >&5
2264sed 's/^/| /' conftest.$ac_ext >&5
2265
2266 ac_retval=$ac_status
2267fi
2268 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270 as_fn_set_status $ac_retval
2271
2272} # ac_fn_c_try_run
2273
2274# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2275# -------------------------------------------------------
2276# Tests whether HEADER exists and can be compiled using the include files in
2277# INCLUDES, setting the cache variable VAR accordingly.
2278ac_fn_c_check_header_compile ()
2279{
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282$as_echo_n "checking for $2... " >&6; }
2283if eval \${$3+:} false; then :
2284 $as_echo_n "(cached) " >&6
2285else
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287/* end confdefs.h. */
2288$4
2289#include <$2>
2290_ACEOF
2291if ac_fn_c_try_compile "$LINENO"; then :
2292 eval "$3=yes"
2293else
2294 eval "$3=no"
2295fi
2296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297fi
2298eval ac_res=\$$3
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300$as_echo "$ac_res" >&6; }
2301 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2302
2303} # ac_fn_c_check_header_compile
b15c5d7a
MF
2304
2305# ac_fn_c_try_link LINENO
2306# -----------------------
2307# Try to link conftest.$ac_ext, and return whether this succeeded.
2308ac_fn_c_try_link ()
2309{
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 rm -f conftest.$ac_objext conftest$ac_exeext
2312 if { { ac_try="$ac_link"
2313case "(($ac_try" in
2314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2315 *) ac_try_echo=$ac_try;;
2316esac
2317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2318$as_echo "$ac_try_echo"; } >&5
2319 (eval "$ac_link") 2>conftest.err
2320 ac_status=$?
2321 if test -s conftest.err; then
2322 grep -v '^ *+' conftest.err >conftest.er1
2323 cat conftest.er1 >&5
2324 mv -f conftest.er1 conftest.err
2325 fi
2326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2327 test $ac_status = 0; } && {
2328 test -z "$ac_c_werror_flag" ||
2329 test ! -s conftest.err
2330 } && test -s conftest$ac_exeext && {
2331 test "$cross_compiling" = yes ||
2332 test -x conftest$ac_exeext
2333 }; then :
2334 ac_retval=0
2335else
2336 $as_echo "$as_me: failed program was:" >&5
2337sed 's/^/| /' conftest.$ac_ext >&5
2338
2339 ac_retval=1
2340fi
2341 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2342 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2343 # interfere with the next link command; also delete a directory that is
2344 # left behind by Apple's compiler. We do this before executing the actions.
2345 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2346 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2347 as_fn_set_status $ac_retval
2348
2349} # ac_fn_c_try_link
2350
2351# ac_fn_c_check_func LINENO FUNC VAR
2352# ----------------------------------
2353# Tests whether FUNC exists, setting the cache variable VAR accordingly
2354ac_fn_c_check_func ()
2355{
2356 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2358$as_echo_n "checking for $2... " >&6; }
2359if eval \${$3+:} false; then :
2360 $as_echo_n "(cached) " >&6
2361else
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363/* end confdefs.h. */
2364/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2366#define $2 innocuous_$2
2367
2368/* System header to define __stub macros and hopefully few prototypes,
2369 which can conflict with char $2 (); below.
2370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2371 <limits.h> exists even on freestanding compilers. */
2372
2373#ifdef __STDC__
2374# include <limits.h>
2375#else
2376# include <assert.h>
2377#endif
2378
2379#undef $2
2380
2381/* Override any GCC internal prototype to avoid an error.
2382 Use char because int might match the return type of a GCC
2383 builtin and then its argument prototype would still apply. */
2384#ifdef __cplusplus
2385extern "C"
2386#endif
2387char $2 ();
2388/* The GNU C library defines this for functions which it implements
2389 to always fail with ENOSYS. Some functions are actually named
2390 something starting with __ and the normal name is an alias. */
2391#if defined __stub_$2 || defined __stub___$2
2392choke me
2393#endif
2394
2395int
2396main ()
2397{
2398return $2 ();
2399 ;
2400 return 0;
2401}
2402_ACEOF
2403if ac_fn_c_try_link "$LINENO"; then :
2404 eval "$3=yes"
2405else
2406 eval "$3=no"
2407fi
2408rm -f core conftest.err conftest.$ac_objext \
2409 conftest$ac_exeext conftest.$ac_ext
2410fi
2411eval ac_res=\$$3
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2413$as_echo "$ac_res" >&6; }
2414 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2415
2416} # ac_fn_c_check_func
2417
2418# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2419# ----------------------------------------------------
2420# Tries to find if the field MEMBER exists in type AGGR, after including
2421# INCLUDES, setting cache variable VAR accordingly.
2422ac_fn_c_check_member ()
2423{
2424 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2426$as_echo_n "checking for $2.$3... " >&6; }
2427if eval \${$4+:} false; then :
2428 $as_echo_n "(cached) " >&6
2429else
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431/* end confdefs.h. */
2432$5
2433int
2434main ()
2435{
2436static $2 ac_aggr;
2437if (ac_aggr.$3)
2438return 0;
2439 ;
2440 return 0;
2441}
2442_ACEOF
2443if ac_fn_c_try_compile "$LINENO"; then :
2444 eval "$4=yes"
2445else
2446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447/* end confdefs.h. */
2448$5
2449int
2450main ()
2451{
2452static $2 ac_aggr;
2453if (sizeof ac_aggr.$3)
2454return 0;
2455 ;
2456 return 0;
2457}
2458_ACEOF
2459if ac_fn_c_try_compile "$LINENO"; then :
2460 eval "$4=yes"
2461else
2462 eval "$4=no"
2463fi
2464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465fi
2466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467fi
2468eval ac_res=\$$4
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470$as_echo "$ac_res" >&6; }
2471 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2472
2473} # ac_fn_c_check_member
2474
a48ff3ef
MF
2475# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2476# ---------------------------------------------
2477# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2478# accordingly.
2479ac_fn_c_check_decl ()
2480{
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 as_decl_name=`echo $2|sed 's/ *(.*//'`
2483 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2485$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2486if eval \${$3+:} false; then :
2487 $as_echo_n "(cached) " >&6
2488else
2489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490/* end confdefs.h. */
2491$4
2492int
2493main ()
2494{
2495#ifndef $as_decl_name
2496#ifdef __cplusplus
2497 (void) $as_decl_use;
2498#else
2499 (void) $as_decl_name;
2500#endif
2501#endif
2502
2503 ;
2504 return 0;
2505}
2506_ACEOF
2507if ac_fn_c_try_compile "$LINENO"; then :
2508 eval "$3=yes"
2509else
2510 eval "$3=no"
2511fi
2512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2513fi
2514eval ac_res=\$$3
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516$as_echo "$ac_res" >&6; }
2517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2518
2519} # ac_fn_c_check_decl
2520
b15c5d7a
MF
2521# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2522# -------------------------------------------
2523# Tests whether TYPE exists after having included INCLUDES, setting cache
2524# variable VAR accordingly.
2525ac_fn_c_check_type ()
2526{
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2529$as_echo_n "checking for $2... " >&6; }
2530if eval \${$3+:} false; then :
2531 $as_echo_n "(cached) " >&6
2532else
2533 eval "$3=no"
2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535/* end confdefs.h. */
2536$4
2537int
2538main ()
2539{
2540if (sizeof ($2))
2541 return 0;
2542 ;
2543 return 0;
2544}
2545_ACEOF
2546if ac_fn_c_try_compile "$LINENO"; then :
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548/* end confdefs.h. */
2549$4
2550int
2551main ()
2552{
2553if (sizeof (($2)))
2554 return 0;
2555 ;
2556 return 0;
2557}
2558_ACEOF
2559if ac_fn_c_try_compile "$LINENO"; then :
2560
2561else
2562 eval "$3=yes"
2563fi
2564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565fi
2566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567fi
2568eval ac_res=\$$3
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2570$as_echo "$ac_res" >&6; }
2571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2572
2573} # ac_fn_c_check_type
72d711c1
MF
2574
2575# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2576# --------------------------------------------
2577# Tries to find the compile-time value of EXPR in a program that includes
2578# INCLUDES, setting VAR accordingly. Returns whether the value could be
2579# computed
2580ac_fn_c_compute_int ()
2581{
2582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2583 if test "$cross_compiling" = yes; then
2584 # Depending upon the size, compute the lo and hi bounds.
2585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586/* end confdefs.h. */
2587$4
2588int
2589main ()
2590{
2591static int test_array [1 - 2 * !(($2) >= 0)];
2592test_array [0] = 0;
2593return test_array [0];
2594
2595 ;
2596 return 0;
2597}
2598_ACEOF
2599if ac_fn_c_try_compile "$LINENO"; then :
2600 ac_lo=0 ac_mid=0
2601 while :; do
2602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2603/* end confdefs.h. */
2604$4
2605int
2606main ()
2607{
2608static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2609test_array [0] = 0;
2610return test_array [0];
2611
2612 ;
2613 return 0;
2614}
2615_ACEOF
2616if ac_fn_c_try_compile "$LINENO"; then :
2617 ac_hi=$ac_mid; break
2618else
2619 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2620 if test $ac_lo -le $ac_mid; then
2621 ac_lo= ac_hi=
2622 break
2623 fi
2624 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2625fi
2626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627 done
2628else
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630/* end confdefs.h. */
2631$4
2632int
2633main ()
2634{
2635static int test_array [1 - 2 * !(($2) < 0)];
2636test_array [0] = 0;
2637return test_array [0];
2638
2639 ;
2640 return 0;
2641}
2642_ACEOF
2643if ac_fn_c_try_compile "$LINENO"; then :
2644 ac_hi=-1 ac_mid=-1
2645 while :; do
2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647/* end confdefs.h. */
2648$4
2649int
2650main ()
2651{
2652static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2653test_array [0] = 0;
2654return test_array [0];
2655
2656 ;
2657 return 0;
2658}
2659_ACEOF
2660if ac_fn_c_try_compile "$LINENO"; then :
2661 ac_lo=$ac_mid; break
2662else
2663 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2664 if test $ac_mid -le $ac_hi; then
2665 ac_lo= ac_hi=
2666 break
2667 fi
2668 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2669fi
2670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671 done
2672else
2673 ac_lo= ac_hi=
2674fi
2675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2676fi
2677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678# Binary search between lo and hi bounds.
2679while test "x$ac_lo" != "x$ac_hi"; do
2680 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682/* end confdefs.h. */
2683$4
2684int
2685main ()
2686{
2687static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2688test_array [0] = 0;
2689return test_array [0];
2690
2691 ;
2692 return 0;
2693}
2694_ACEOF
2695if ac_fn_c_try_compile "$LINENO"; then :
2696 ac_hi=$ac_mid
2697else
2698 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2699fi
2700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701done
2702case $ac_lo in #((
2703?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2704'') ac_retval=1 ;;
2705esac
2706 else
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708/* end confdefs.h. */
2709$4
2710static long int longval () { return $2; }
2711static unsigned long int ulongval () { return $2; }
2712#include <stdio.h>
2713#include <stdlib.h>
2714int
2715main ()
2716{
2717
2718 FILE *f = fopen ("conftest.val", "w");
2719 if (! f)
2720 return 1;
2721 if (($2) < 0)
2722 {
2723 long int i = longval ();
2724 if (i != ($2))
2725 return 1;
2726 fprintf (f, "%ld", i);
2727 }
2728 else
2729 {
2730 unsigned long int i = ulongval ();
2731 if (i != ($2))
2732 return 1;
2733 fprintf (f, "%lu", i);
2734 }
2735 /* Do not output a trailing newline, as this causes \r\n confusion
2736 on some platforms. */
2737 return ferror (f) || fclose (f) != 0;
2738
2739 ;
2740 return 0;
2741}
2742_ACEOF
2743if ac_fn_c_try_run "$LINENO"; then :
2744 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2745else
2746 ac_retval=1
2747fi
2748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2749 conftest.$ac_objext conftest.beam conftest.$ac_ext
2750rm -f conftest.val
2751
2752 fi
2753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2754 as_fn_set_status $ac_retval
2755
2756} # ac_fn_c_compute_int
81ecdfbb 2757cat >config.log <<_ACEOF
b7026657
AC
2758This file contains any messages produced by compilers while
2759running configure, to aid debugging if configure makes a mistake.
2760
6bddc3e8 2761It was created by sim $as_me 0, which was
d0ac1c44 2762generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
2763
2764 $ $0 $@
2765
2766_ACEOF
81ecdfbb 2767exec 5>>config.log
b7026657
AC
2768{
2769cat <<_ASUNAME
2770## --------- ##
2771## Platform. ##
2772## --------- ##
2773
2774hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2775uname -m = `(uname -m) 2>/dev/null || echo unknown`
2776uname -r = `(uname -r) 2>/dev/null || echo unknown`
2777uname -s = `(uname -s) 2>/dev/null || echo unknown`
2778uname -v = `(uname -v) 2>/dev/null || echo unknown`
2779
2780/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2781/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2782
2783/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2784/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2785/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 2786/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b7026657
AC
2787/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2788/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2789/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2790
2791_ASUNAME
2792
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2798 $as_echo "PATH: $as_dir"
2799 done
2800IFS=$as_save_IFS
b7026657
AC
2801
2802} >&5
2803
2804cat >&5 <<_ACEOF
2805
2806
2807## ----------- ##
2808## Core tests. ##
2809## ----------- ##
2810
2811_ACEOF
2812
2813
2814# Keep a trace of the command line.
2815# Strip out --no-create and --no-recursion so they do not pile up.
2816# Strip out --silent because we don't want to record it for future runs.
2817# Also quote any args containing shell meta-characters.
2818# Make two passes to allow for proper duplicate-argument suppression.
2819ac_configure_args=
2820ac_configure_args0=
2821ac_configure_args1=
b7026657
AC
2822ac_must_keep_next=false
2823for ac_pass in 1 2
2824do
2825 for ac_arg
2826 do
2827 case $ac_arg in
2828 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2829 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2830 | -silent | --silent | --silen | --sile | --sil)
2831 continue ;;
81ecdfbb
RW
2832 *\'*)
2833 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2834 esac
2835 case $ac_pass in
81ecdfbb 2836 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 2837 2)
81ecdfbb 2838 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
2839 if test $ac_must_keep_next = true; then
2840 ac_must_keep_next=false # Got value, back to normal.
2841 else
2842 case $ac_arg in
2843 *=* | --config-cache | -C | -disable-* | --disable-* \
2844 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2845 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2846 | -with-* | --with-* | -without-* | --without-* | --x)
2847 case "$ac_configure_args0 " in
2848 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2849 esac
2850 ;;
2851 -* ) ac_must_keep_next=true ;;
2852 esac
2853 fi
81ecdfbb 2854 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
2855 ;;
2856 esac
2857 done
2858done
81ecdfbb
RW
2859{ ac_configure_args0=; unset ac_configure_args0;}
2860{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2861
2862# When interrupted or exit'd, cleanup temporary files, and complete
2863# config.log. We remove comments because anyway the quotes in there
2864# would cause problems or look ugly.
81ecdfbb
RW
2865# WARNING: Use '\'' to represent an apostrophe within the trap.
2866# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2867trap 'exit_status=$?
2868 # Save into config.log some information that might help in debugging.
2869 {
2870 echo
2871
d0ac1c44 2872 $as_echo "## ---------------- ##
b7026657 2873## Cache variables. ##
d0ac1c44 2874## ---------------- ##"
b7026657
AC
2875 echo
2876 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2877(
2878 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2879 eval ac_val=\$$ac_var
2880 case $ac_val in #(
2881 *${as_nl}*)
2882 case $ac_var in #(
2883 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2884$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2885 esac
2886 case $ac_var in #(
2887 _ | IFS | as_nl) ;; #(
2888 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2889 *) { eval $ac_var=; unset $ac_var;} ;;
2890 esac ;;
2891 esac
2892 done
b7026657 2893 (set) 2>&1 |
81ecdfbb
RW
2894 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2895 *${as_nl}ac_space=\ *)
b7026657 2896 sed -n \
81ecdfbb
RW
2897 "s/'\''/'\''\\\\'\'''\''/g;
2898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2899 ;; #(
b7026657 2900 *)
81ecdfbb 2901 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2902 ;;
81ecdfbb
RW
2903 esac |
2904 sort
2905)
b7026657
AC
2906 echo
2907
d0ac1c44 2908 $as_echo "## ----------------- ##
b7026657 2909## Output variables. ##
d0ac1c44 2910## ----------------- ##"
b7026657
AC
2911 echo
2912 for ac_var in $ac_subst_vars
2913 do
81ecdfbb
RW
2914 eval ac_val=\$$ac_var
2915 case $ac_val in
2916 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2917 esac
2918 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2919 done | sort
2920 echo
2921
2922 if test -n "$ac_subst_files"; then
d0ac1c44 2923 $as_echo "## ------------------- ##
81ecdfbb 2924## File substitutions. ##
d0ac1c44 2925## ------------------- ##"
b7026657
AC
2926 echo
2927 for ac_var in $ac_subst_files
2928 do
81ecdfbb
RW
2929 eval ac_val=\$$ac_var
2930 case $ac_val in
2931 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2932 esac
2933 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2934 done | sort
2935 echo
2936 fi
2937
2938 if test -s confdefs.h; then
d0ac1c44 2939 $as_echo "## ----------- ##
b7026657 2940## confdefs.h. ##
d0ac1c44 2941## ----------- ##"
b7026657 2942 echo
81ecdfbb 2943 cat confdefs.h
b7026657 2944 echo
0fda6bd2 2945 fi
b7026657 2946 test "$ac_signal" != 0 &&
81ecdfbb
RW
2947 $as_echo "$as_me: caught signal $ac_signal"
2948 $as_echo "$as_me: exit $exit_status"
b7026657 2949 } >&5
81ecdfbb
RW
2950 rm -f core *.core core.conftest.* &&
2951 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2952 exit $exit_status
81ecdfbb 2953' 0
b7026657 2954for ac_signal in 1 2 13 15; do
81ecdfbb 2955 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2956done
2957ac_signal=0
2958
2959# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2960rm -f -r conftest* confdefs.h
2961
2962$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2963
2964# Predefined preprocessor variables.
2965
2966cat >>confdefs.h <<_ACEOF
2967#define PACKAGE_NAME "$PACKAGE_NAME"
2968_ACEOF
2969
b7026657
AC
2970cat >>confdefs.h <<_ACEOF
2971#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2972_ACEOF
2973
b7026657
AC
2974cat >>confdefs.h <<_ACEOF
2975#define PACKAGE_VERSION "$PACKAGE_VERSION"
2976_ACEOF
2977
b7026657
AC
2978cat >>confdefs.h <<_ACEOF
2979#define PACKAGE_STRING "$PACKAGE_STRING"
2980_ACEOF
2981
b7026657
AC
2982cat >>confdefs.h <<_ACEOF
2983#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2984_ACEOF
2985
81ecdfbb
RW
2986cat >>confdefs.h <<_ACEOF
2987#define PACKAGE_URL "$PACKAGE_URL"
2988_ACEOF
2989
b7026657
AC
2990
2991# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2992# Prefer an explicitly selected file to automatically selected ones.
2993ac_site_file1=NONE
2994ac_site_file2=NONE
2995if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2996 # We do not want a PATH search for config.site.
2997 case $CONFIG_SITE in #((
2998 -*) ac_site_file1=./$CONFIG_SITE;;
2999 */*) ac_site_file1=$CONFIG_SITE;;
3000 *) ac_site_file1=./$CONFIG_SITE;;
3001 esac
81ecdfbb
RW
3002elif test "x$prefix" != xNONE; then
3003 ac_site_file1=$prefix/share/config.site
3004 ac_site_file2=$prefix/etc/config.site
3005else
3006 ac_site_file1=$ac_default_prefix/share/config.site
3007 ac_site_file2=$ac_default_prefix/etc/config.site
c906108c 3008fi
81ecdfbb
RW
3009for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3010do
3011 test "x$ac_site_file" = xNONE && continue
d0ac1c44 3012 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3014$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 3015 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
3016 . "$ac_site_file" \
3017 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019as_fn_error $? "failed to load site script $ac_site_file
3020See \`config.log' for more details" "$LINENO" 5; }
c906108c
SS
3021 fi
3022done
3023
3024if test -r "$cache_file"; then
d0ac1c44
SM
3025 # Some versions of bash will fail to source /dev/null (special files
3026 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3027 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3029$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 3030 case $cache_file in
81ecdfbb
RW
3031 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3032 *) . "./$cache_file";;
b7026657
AC
3033 esac
3034 fi
c906108c 3035else
81ecdfbb
RW
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3037$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657 3038 >$cache_file
c906108c
SS
3039fi
3040
b15c5d7a
MF
3041as_fn_append ac_header_list " dlfcn.h"
3042as_fn_append ac_header_list " fcntl.h"
3043as_fn_append ac_header_list " fpu_control.h"
3044as_fn_append ac_header_list " termios.h"
b15c5d7a
MF
3045as_fn_append ac_header_list " utime.h"
3046as_fn_append ac_header_list " linux/if_tun.h"
3047as_fn_append ac_header_list " linux/mii.h"
3048as_fn_append ac_header_list " linux/types.h"
3049as_fn_append ac_header_list " net/if.h"
3050as_fn_append ac_header_list " netinet/in.h"
3051as_fn_append ac_header_list " netinet/tcp.h"
3052as_fn_append ac_header_list " sys/ioctl.h"
3053as_fn_append ac_header_list " sys/mman.h"
a48ff3ef 3054as_fn_append ac_header_list " sys/mount.h"
b15c5d7a
MF
3055as_fn_append ac_header_list " sys/param.h"
3056as_fn_append ac_header_list " sys/resource.h"
b15c5d7a 3057as_fn_append ac_header_list " sys/socket.h"
a48ff3ef
MF
3058as_fn_append ac_header_list " sys/statfs.h"
3059as_fn_append ac_header_list " sys/termio.h"
3060as_fn_append ac_header_list " sys/termios.h"
3061as_fn_append ac_header_list " sys/types.h"
3062as_fn_append ac_header_list " sys/vfs.h"
b15c5d7a 3063as_fn_append ac_func_list " __setfpucw"
a48ff3ef 3064as_fn_append ac_func_list " access"
b15c5d7a
MF
3065as_fn_append ac_func_list " aint"
3066as_fn_append ac_func_list " anint"
a48ff3ef
MF
3067as_fn_append ac_func_list " cfgetispeed"
3068as_fn_append ac_func_list " cfgetospeed"
3069as_fn_append ac_func_list " cfsetispeed"
3070as_fn_append ac_func_list " cfsetospeed"
3071as_fn_append ac_func_list " chdir"
b15c5d7a 3072as_fn_append ac_func_list " chmod"
a48ff3ef
MF
3073as_fn_append ac_func_list " dup"
3074as_fn_append ac_func_list " dup2"
b15c5d7a
MF
3075as_fn_append ac_func_list " execv"
3076as_fn_append ac_func_list " execve"
a48ff3ef 3077as_fn_append ac_func_list " fcntl"
b15c5d7a 3078as_fn_append ac_func_list " fork"
a48ff3ef
MF
3079as_fn_append ac_func_list " fstat"
3080as_fn_append ac_func_list " fstatfs"
b15c5d7a 3081as_fn_append ac_func_list " ftruncate"
a48ff3ef 3082as_fn_append ac_func_list " getdirentries"
b15c5d7a 3083as_fn_append ac_func_list " getegid"
a48ff3ef 3084as_fn_append ac_func_list " geteuid"
b15c5d7a 3085as_fn_append ac_func_list " getgid"
a48ff3ef
MF
3086as_fn_append ac_func_list " getpid"
3087as_fn_append ac_func_list " getppid"
b15c5d7a 3088as_fn_append ac_func_list " getrusage"
a48ff3ef 3089as_fn_append ac_func_list " gettimeofday"
b15c5d7a 3090as_fn_append ac_func_list " getuid"
a48ff3ef 3091as_fn_append ac_func_list " ioctl"
b15c5d7a 3092as_fn_append ac_func_list " kill"
a48ff3ef
MF
3093as_fn_append ac_func_list " link"
3094as_fn_append ac_func_list " lseek"
95955095
MF
3095as_fn_append ac_func_list " lstat"
3096as_fn_append ac_func_list " mkdir"
b15c5d7a
MF
3097as_fn_append ac_func_list " mmap"
3098as_fn_append ac_func_list " munmap"
a48ff3ef 3099as_fn_append ac_func_list " pipe"
b15c5d7a
MF
3100as_fn_append ac_func_list " posix_fallocate"
3101as_fn_append ac_func_list " pread"
a48ff3ef
MF
3102as_fn_append ac_func_list " rmdir"
3103as_fn_append ac_func_list " setregid"
3104as_fn_append ac_func_list " setreuid"
b15c5d7a 3105as_fn_append ac_func_list " setgid"
a48ff3ef 3106as_fn_append ac_func_list " setuid"
b15c5d7a 3107as_fn_append ac_func_list " sigaction"
a48ff3ef 3108as_fn_append ac_func_list " sigprocmask"
b15c5d7a 3109as_fn_append ac_func_list " sqrt"
a48ff3ef 3110as_fn_append ac_func_list " stat"
b15c5d7a 3111as_fn_append ac_func_list " strsignal"
a48ff3ef
MF
3112as_fn_append ac_func_list " symlink"
3113as_fn_append ac_func_list " tcdrain"
3114as_fn_append ac_func_list " tcflow"
3115as_fn_append ac_func_list " tcflush"
3116as_fn_append ac_func_list " tcgetattr"
3117as_fn_append ac_func_list " tcgetpgrp"
3118as_fn_append ac_func_list " tcsendbreak"
3119as_fn_append ac_func_list " tcsetattr"
3120as_fn_append ac_func_list " tcsetpgrp"
b15c5d7a
MF
3121as_fn_append ac_func_list " time"
3122as_fn_append ac_func_list " truncate"
a48ff3ef
MF
3123as_fn_append ac_func_list " umask"
3124as_fn_append ac_func_list " unlink"
b15c5d7a 3125as_fn_append ac_func_list " utime"
b7026657
AC
3126# Check that the precious variables saved in the cache have kept the same
3127# value.
3128ac_cache_corrupted=false
81ecdfbb 3129for ac_var in $ac_precious_vars; do
b7026657
AC
3130 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3131 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
3132 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3133 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
3134 case $ac_old_set,$ac_new_set in
3135 set,)
81ecdfbb
RW
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3137$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
3138 ac_cache_corrupted=: ;;
3139 ,set)
81ecdfbb
RW
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3141$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
3142 ac_cache_corrupted=: ;;
3143 ,);;
3144 *)
3145 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
3146 # differences in whitespace do not lead to failure.
3147 ac_old_val_w=`echo x $ac_old_val`
3148 ac_new_val_w=`echo x $ac_new_val`
3149 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3151$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3152 ac_cache_corrupted=:
3153 else
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3155$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3156 eval $ac_var=\$ac_old_val
3157 fi
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3159$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3161$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
3162 fi;;
3163 esac
3164 # Pass precious variables to config.status.
3165 if test "$ac_new_set" = set; then
3166 case $ac_new_val in
81ecdfbb 3167 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
3168 *) ac_arg=$ac_var=$ac_new_val ;;
3169 esac
3170 case " $ac_configure_args " in
3171 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 3172 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657 3173 esac
c906108c 3174 fi
b7026657
AC
3175done
3176if $ac_cache_corrupted; then
81ecdfbb
RW
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3180$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 3181 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c906108c 3182fi
81ecdfbb
RW
3183## -------------------- ##
3184## Main body of script. ##
3185## -------------------- ##
c906108c 3186
fdd6fa61
AG
3187ac_ext=c
3188ac_cpp='$CPP $CPPFLAGS'
3189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192
c906108c
SS
3193
3194
8c379db2
TT
3195
3196
3197
6dd65fc0
MF
3198
3199
3200# Check whether --with-pkgversion was given.
3201if test "${with_pkgversion+set}" = set; then :
3202 withval=$with_pkgversion; case "$withval" in
3203 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
3204 no) PKGVERSION= ;;
3205 *) PKGVERSION="($withval) " ;;
3206 esac
3207else
3208 PKGVERSION="(SIM) "
3209
3210fi
3211
3212
3213
3214
3215cat >>confdefs.h <<_ACEOF
3216#define PKGVERSION "$PKGVERSION"
3217_ACEOF
3218
3219
3220
3221# Check whether --with-bugurl was given.
3222if test "${with_bugurl+set}" = set; then :
3223 withval=$with_bugurl; case "$withval" in
3224 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
3225 no) BUGURL=
3226 ;;
3227 *) BUGURL="$withval"
3228 ;;
3229 esac
3230else
3231 BUGURL="$PACKAGE_BUGREPORT"
3232
3233fi
3234
3235 case ${BUGURL} in
3236 "")
3237 REPORT_BUGS_TO=
3238 REPORT_BUGS_TEXI=
3239 ;;
3240 *)
3241 REPORT_BUGS_TO="<$BUGURL>"
3242 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3243 ;;
3244 esac;
3245
3246
3247
3248
3249cat >>confdefs.h <<_ACEOF
3250#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3251_ACEOF
3252
3253
b15c5d7a
MF
3254ac_config_headers="$ac_config_headers config.h"
3255
3256
ab18008e
MF
3257. $srcdir/../bfd/development.sh
3258
6bddc3e8
MF
3259ac_aux_dir=
3260for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3261 if test -f "$ac_dir/install-sh"; then
3262 ac_aux_dir=$ac_dir
3263 ac_install_sh="$ac_aux_dir/install-sh -c"
3264 break
3265 elif test -f "$ac_dir/install.sh"; then
3266 ac_aux_dir=$ac_dir
3267 ac_install_sh="$ac_aux_dir/install.sh -c"
3268 break
3269 elif test -f "$ac_dir/shtool"; then
3270 ac_aux_dir=$ac_dir
3271 ac_install_sh="$ac_aux_dir/shtool install -c"
3272 break
b7026657
AC
3273 fi
3274done
6bddc3e8
MF
3275if test -z "$ac_aux_dir"; then
3276 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
c906108c
SS
3277fi
3278
6bddc3e8
MF
3279# These three variables are undocumented and unsupported,
3280# and are intended to be withdrawn in a future Autoconf release.
3281# They can cause serious problems if a builder's source tree is in a directory
3282# whose full name contains unusual characters.
3283ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3284ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3285ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
81ecdfbb 3286
6bddc3e8
MF
3287
3288# Make sure we can run config.sub.
3289$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3290 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3291
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3293$as_echo_n "checking build system type... " >&6; }
3294if ${ac_cv_build+:} false; then :
81ecdfbb 3295 $as_echo_n "(cached) " >&6
c906108c 3296else
6bddc3e8
MF
3297 ac_build_alias=$build_alias
3298test "x$ac_build_alias" = x &&
3299 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3300test "x$ac_build_alias" = x &&
3301 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3302ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3303 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b7026657
AC
3304
3305fi
6bddc3e8
MF
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3307$as_echo "$ac_cv_build" >&6; }
3308case $ac_cv_build in
3309*-*-*) ;;
3310*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 3311esac
6bddc3e8
MF
3312build=$ac_cv_build
3313ac_save_IFS=$IFS; IFS='-'
3314set x $ac_cv_build
3315shift
3316build_cpu=$1
3317build_vendor=$2
3318shift; shift
3319# Remember, the first character of IFS is used to create $*,
3320# except with old shells:
3321build_os=$*
3322IFS=$ac_save_IFS
3323case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
b7026657 3324
6bddc3e8
MF
3325
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3327$as_echo_n "checking host system type... " >&6; }
3328if ${ac_cv_host+:} false; then :
81ecdfbb 3329 $as_echo_n "(cached) " >&6
b7026657 3330else
6bddc3e8
MF
3331 if test "x$host_alias" = x; then
3332 ac_cv_host=$ac_cv_build
b7026657 3333else
6bddc3e8
MF
3334 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3335 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b7026657 3336fi
6bddc3e8 3337
fdd6fa61 3338fi
6bddc3e8
MF
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3340$as_echo "$ac_cv_host" >&6; }
3341case $ac_cv_host in
3342*-*-*) ;;
3343*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3344esac
3345host=$ac_cv_host
3346ac_save_IFS=$IFS; IFS='-'
3347set x $ac_cv_host
3348shift
3349host_cpu=$1
3350host_vendor=$2
3351shift; shift
3352# Remember, the first character of IFS is used to create $*,
3353# except with old shells:
3354host_os=$*
3355IFS=$ac_save_IFS
3356case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
fdd6fa61 3357
fdd6fa61 3358
6bddc3e8
MF
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3360$as_echo_n "checking target system type... " >&6; }
3361if ${ac_cv_target+:} false; then :
81ecdfbb 3362 $as_echo_n "(cached) " >&6
b7026657 3363else
6bddc3e8
MF
3364 if test "x$target_alias" = x; then
3365 ac_cv_target=$ac_cv_host
c906108c 3366else
6bddc3e8
MF
3367 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3368 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3369fi
3370
3371fi
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3373$as_echo "$ac_cv_target" >&6; }
3374case $ac_cv_target in
3375*-*-*) ;;
3376*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3377esac
3378target=$ac_cv_target
3379ac_save_IFS=$IFS; IFS='-'
3380set x $ac_cv_target
3381shift
3382target_cpu=$1
3383target_vendor=$2
3384shift; shift
3385# Remember, the first character of IFS is used to create $*,
3386# except with old shells:
3387target_os=$*
3388IFS=$ac_save_IFS
3389case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3390
3391
3392# The aliases save the names the user supplied, while $host etc.
3393# will get canonicalized.
3394test -n "$target_alias" &&
3395 test "$program_prefix$program_suffix$program_transform_name" = \
3396 NONENONEs,x,x, &&
3397 program_prefix=${target_alias}-
c2783492
MF
3398# Expand $ac_aux_dir to an absolute path.
3399am_aux_dir=`cd "$ac_aux_dir" && pwd`
6bddc3e8 3400
c2783492
MF
3401ac_ext=c
3402ac_cpp='$CPP $CPPFLAGS'
3403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406if test -n "$ac_tool_prefix"; then
3407 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3408set dummy ${ac_tool_prefix}gcc; ac_word=$2
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410$as_echo_n "checking for $ac_word... " >&6; }
3411if ${ac_cv_prog_CC+:} false; then :
3412 $as_echo_n "(cached) " >&6
8c379db2 3413else
c2783492
MF
3414 if test -n "$CC"; then
3415 ac_cv_prog_CC="$CC" # Let the user override the test.
3416else
3417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418for as_dir in $PATH
3419do
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428done
3429 done
3430IFS=$as_save_IFS
8c379db2 3431
c2783492
MF
3432fi
3433fi
3434CC=$ac_cv_prog_CC
3435if test -n "$CC"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3437$as_echo "$CC" >&6; }
8c379db2 3438else
c2783492
MF
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440$as_echo "no" >&6; }
8c379db2
TT
3441fi
3442
6bddc3e8 3443
c2783492
MF
3444fi
3445if test -z "$ac_cv_prog_CC"; then
3446 ac_ct_CC=$CC
3447 # Extract the first word of "gcc", so it can be a program name with args.
3448set dummy gcc; ac_word=$2
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450$as_echo_n "checking for $ac_word... " >&6; }
3451if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bddc3e8
MF
3452 $as_echo_n "(cached) " >&6
3453else
c2783492
MF
3454 if test -n "$ac_ct_CC"; then
3455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3456else
3457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6bddc3e8
MF
3458for as_dir in $PATH
3459do
3460 IFS=$as_save_IFS
3461 test -z "$as_dir" && as_dir=.
c2783492
MF
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3464 ac_cv_prog_ac_ct_CC="gcc"
3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 break 2
3467 fi
3468done
6bddc3e8
MF
3469 done
3470IFS=$as_save_IFS
3471
6bddc3e8 3472fi
6bddc3e8 3473fi
c2783492
MF
3474ac_ct_CC=$ac_cv_prog_ac_ct_CC
3475if test -n "$ac_ct_CC"; then
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3477$as_echo "$ac_ct_CC" >&6; }
6bddc3e8 3478else
c2783492
MF
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480$as_echo "no" >&6; }
6bddc3e8
MF
3481fi
3482
c2783492
MF
3483 if test "x$ac_ct_CC" = x; then
3484 CC=""
3485 else
3486 case $cross_compiling:$ac_tool_warned in
3487yes:)
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3490ac_tool_warned=yes ;;
3491esac
3492 CC=$ac_ct_CC
3493 fi
6bddc3e8 3494else
c2783492 3495 CC="$ac_cv_prog_CC"
6bddc3e8
MF
3496fi
3497
c2783492
MF
3498if test -z "$CC"; then
3499 if test -n "$ac_tool_prefix"; then
3500 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3501set dummy ${ac_tool_prefix}cc; ac_word=$2
6bddc3e8
MF
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503$as_echo_n "checking for $ac_word... " >&6; }
c2783492 3504if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
3505 $as_echo_n "(cached) " >&6
3506else
c2783492
MF
3507 if test -n "$CC"; then
3508 ac_cv_prog_CC="$CC" # Let the user override the test.
6bddc3e8
MF
3509else
3510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511for as_dir in $PATH
3512do
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 3517 ac_cv_prog_CC="${ac_tool_prefix}cc"
6bddc3e8
MF
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3520 fi
3521done
3522 done
3523IFS=$as_save_IFS
3524
3525fi
3526fi
c2783492
MF
3527CC=$ac_cv_prog_CC
3528if test -n "$CC"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3530$as_echo "$CC" >&6; }
6bddc3e8
MF
3531else
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533$as_echo "no" >&6; }
3534fi
3535
3536
c2783492 3537 fi
6bddc3e8 3538fi
c2783492
MF
3539if test -z "$CC"; then
3540 # Extract the first word of "cc", so it can be a program name with args.
3541set dummy cc; ac_word=$2
6bddc3e8
MF
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543$as_echo_n "checking for $ac_word... " >&6; }
c2783492 3544if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
3545 $as_echo_n "(cached) " >&6
3546else
c2783492
MF
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
6bddc3e8 3549else
c2783492 3550 ac_prog_rejected=no
6bddc3e8
MF
3551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552for as_dir in $PATH
3553do
3554 IFS=$as_save_IFS
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492
MF
3558 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3559 ac_prog_rejected=yes
3560 continue
3561 fi
3562 ac_cv_prog_CC="cc"
6bddc3e8
MF
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 break 2
3565 fi
3566done
3567 done
3568IFS=$as_save_IFS
3569
c2783492
MF
3570if test $ac_prog_rejected = yes; then
3571 # We found a bogon in the path, so make sure we never use it.
3572 set dummy $ac_cv_prog_CC
3573 shift
3574 if test $# != 0; then
3575 # We chose a different compiler from the bogus one.
3576 # However, it has the same basename, so the bogon will be chosen
3577 # first if we set CC to just the basename; use the full file name.
3578 shift
3579 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3580 fi
6bddc3e8
MF
3581fi
3582fi
c2783492
MF
3583fi
3584CC=$ac_cv_prog_CC
3585if test -n "$CC"; then
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3587$as_echo "$CC" >&6; }
6bddc3e8
MF
3588else
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590$as_echo "no" >&6; }
3591fi
3592
6bddc3e8
MF
3593
3594fi
c2783492
MF
3595if test -z "$CC"; then
3596 if test -n "$ac_tool_prefix"; then
3597 for ac_prog in cl.exe
3598 do
3599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3600set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602$as_echo_n "checking for $ac_word... " >&6; }
3603if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
3604 $as_echo_n "(cached) " >&6
3605else
c2783492
MF
3606 if test -n "$CC"; then
3607 ac_cv_prog_CC="$CC" # Let the user override the test.
3608else
3609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610for as_dir in $PATH
6bddc3e8
MF
3611do
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
c2783492
MF
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3616 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3619 fi
3620done
6bddc3e8
MF
3621 done
3622IFS=$as_save_IFS
3623
3624fi
6bddc3e8 3625fi
c2783492
MF
3626CC=$ac_cv_prog_CC
3627if test -n "$CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3629$as_echo "$CC" >&6; }
3630else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632$as_echo "no" >&6; }
3633fi
6bddc3e8 3634
c2783492
MF
3635
3636 test -n "$CC" && break
3637 done
3638fi
3639if test -z "$CC"; then
3640 ac_ct_CC=$CC
3641 for ac_prog in cl.exe
6bddc3e8
MF
3642do
3643 # Extract the first word of "$ac_prog", so it can be a program name with args.
3644set dummy $ac_prog; ac_word=$2
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646$as_echo_n "checking for $ac_word... " >&6; }
c2783492 3647if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bddc3e8
MF
3648 $as_echo_n "(cached) " >&6
3649else
c2783492
MF
3650 if test -n "$ac_ct_CC"; then
3651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6bddc3e8
MF
3652else
3653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654for as_dir in $PATH
3655do
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 3660 ac_cv_prog_ac_ct_CC="$ac_prog"
6bddc3e8
MF
3661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 break 2
3663 fi
3664done
3665 done
3666IFS=$as_save_IFS
3667
3668fi
3669fi
c2783492
MF
3670ac_ct_CC=$ac_cv_prog_ac_ct_CC
3671if test -n "$ac_ct_CC"; then
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3673$as_echo "$ac_ct_CC" >&6; }
6bddc3e8
MF
3674else
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676$as_echo "no" >&6; }
3677fi
3678
3679
c2783492 3680 test -n "$ac_ct_CC" && break
6bddc3e8
MF
3681done
3682
c2783492
MF
3683 if test "x$ac_ct_CC" = x; then
3684 CC=""
3685 else
3686 case $cross_compiling:$ac_tool_warned in
3687yes:)
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3690ac_tool_warned=yes ;;
6bddc3e8 3691esac
c2783492 3692 CC=$ac_ct_CC
6bddc3e8
MF
3693 fi
3694fi
3695
6bddc3e8
MF
3696fi
3697
3698
c2783492
MF
3699test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701as_fn_error $? "no acceptable C compiler found in \$PATH
3702See \`config.log' for more details" "$LINENO" 5; }
6bddc3e8 3703
c2783492
MF
3704# Provide some information about the compiler.
3705$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3706set X $ac_compile
3707ac_compiler=$2
3708for ac_option in --version -v -V -qversion; do
3709 { { ac_try="$ac_compiler $ac_option >&5"
3710case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713esac
3714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3715$as_echo "$ac_try_echo"; } >&5
3716 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3717 ac_status=$?
3718 if test -s conftest.err; then
3719 sed '10a\
3720... rest of stderr output deleted ...
3721 10q' conftest.err >conftest.er1
3722 cat conftest.er1 >&5
3723 fi
3724 rm -f conftest.er1 conftest.err
3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; }
3727done
6bddc3e8 3728
c2783492
MF
3729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730/* end confdefs.h. */
6bddc3e8 3731
c2783492
MF
3732int
3733main ()
3734{
6bddc3e8 3735
c2783492
MF
3736 ;
3737 return 0;
3738}
6bddc3e8 3739_ACEOF
c2783492
MF
3740ac_clean_files_save=$ac_clean_files
3741ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3742# Try to create an executable without -o first, disregard a.out.
3743# It will help us diagnose broken compilers, and finding out an intuition
3744# of exeext.
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3746$as_echo_n "checking whether the C compiler works... " >&6; }
3747ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6bddc3e8 3748
c2783492
MF
3749# The possible output files:
3750ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
6bddc3e8 3751
c2783492
MF
3752ac_rmfiles=
3753for ac_file in $ac_files
3754do
3755 case $ac_file in
3756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3757 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3758 esac
3759done
3760rm -f $ac_rmfiles
81ecdfbb
RW
3761
3762if { { ac_try="$ac_link_default"
3763case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766esac
3767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768$as_echo "$ac_try_echo"; } >&5
3769 (eval "$ac_link_default") 2>&5
b7026657 3770 ac_status=$?
81ecdfbb
RW
3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3772 test $ac_status = 0; }; then :
3773 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3774# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3775# in a Makefile. We should not override ac_cv_exeext if it was cached,
3776# so that the user can short-circuit this test for compilers unknown to
3777# Autoconf.
3778for ac_file in $ac_files ''
b7026657
AC
3779do
3780 test -f "$ac_file" || continue
3781 case $ac_file in
81ecdfbb 3782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b7026657
AC
3783 ;;
3784 [ab].out )
3785 # We found the default executable, but exeext='' is most
3786 # certainly right.
3787 break;;
3788 *.* )
81ecdfbb
RW
3789 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3790 then :; else
3791 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3792 fi
3793 # We set ac_cv_exeext here because the later test for it is not
3794 # safe: cross compilers may not add the suffix if given an `-o'
3795 # argument, so we may need to know it at that point already.
3796 # Even if this section looks crufty: it has the advantage of
3797 # actually working.
b7026657
AC
3798 break;;
3799 * )
3800 break;;
3801 esac
3802done
81ecdfbb
RW
3803test "$ac_cv_exeext" = no && ac_cv_exeext=
3804
b7026657 3805else
81ecdfbb
RW
3806 ac_file=''
3807fi
81ecdfbb 3808if test -z "$ac_file"; then :
d0ac1c44
SM
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810$as_echo "no" >&6; }
3811$as_echo "$as_me: failed program was:" >&5
b7026657
AC
3812sed 's/^/| /' conftest.$ac_ext >&5
3813
81ecdfbb
RW
3814{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3816as_fn_error 77 "C compiler cannot create executables
3817See \`config.log' for more details" "$LINENO" 5; }
3818else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3820$as_echo "yes" >&6; }
b7026657 3821fi
d0ac1c44
SM
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3823$as_echo_n "checking for C compiler default output file name... " >&6; }
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3825$as_echo "$ac_file" >&6; }
b7026657 3826ac_exeext=$ac_cv_exeext
b7026657 3827
d0ac1c44 3828rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b7026657 3829ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3831$as_echo_n "checking for suffix of executables... " >&6; }
3832if { { ac_try="$ac_link"
3833case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3836esac
3837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3838$as_echo "$ac_try_echo"; } >&5
3839 (eval "$ac_link") 2>&5
b7026657 3840 ac_status=$?
81ecdfbb
RW
3841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3842 test $ac_status = 0; }; then :
b7026657
AC
3843 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3844# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3845# work properly (i.e., refer to `conftest.exe'), while it won't with
3846# `rm'.
3847for ac_file in conftest.exe conftest conftest.*; do
3848 test -f "$ac_file" || continue
3849 case $ac_file in
81ecdfbb 3850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b7026657 3851 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
3852 break;;
3853 * ) break;;
3854 esac
3855done
c906108c 3856else
81ecdfbb
RW
3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3859as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3860See \`config.log' for more details" "$LINENO" 5; }
c906108c 3861fi
d0ac1c44 3862rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3864$as_echo "$ac_cv_exeext" >&6; }
b7026657
AC
3865
3866rm -f conftest.$ac_ext
3867EXEEXT=$ac_cv_exeext
3868ac_exeext=$EXEEXT
d0ac1c44
SM
3869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870/* end confdefs.h. */
3871#include <stdio.h>
3872int
3873main ()
3874{
3875FILE *f = fopen ("conftest.out", "w");
3876 return ferror (f) || fclose (f) != 0;
3877
3878 ;
3879 return 0;
3880}
3881_ACEOF
3882ac_clean_files="$ac_clean_files conftest.out"
3883# Check that the compiler produces executables we can run. If not, either
3884# the compiler is broken, or we cross compile.
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3886$as_echo_n "checking whether we are cross compiling... " >&6; }
3887if test "$cross_compiling" != yes; then
3888 { { ac_try="$ac_link"
3889case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3892esac
3893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894$as_echo "$ac_try_echo"; } >&5
3895 (eval "$ac_link") 2>&5
3896 ac_status=$?
3897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898 test $ac_status = 0; }
3899 if { ac_try='./conftest$ac_cv_exeext'
3900 { { case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903esac
3904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3905$as_echo "$ac_try_echo"; } >&5
3906 (eval "$ac_try") 2>&5
3907 ac_status=$?
3908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3909 test $ac_status = 0; }; }; then
3910 cross_compiling=no
3911 else
3912 if test "$cross_compiling" = maybe; then
3913 cross_compiling=yes
3914 else
3915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917as_fn_error $? "cannot run C compiled programs.
3918If you meant to cross compile, use \`--host'.
3919See \`config.log' for more details" "$LINENO" 5; }
3920 fi
3921 fi
3922fi
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3924$as_echo "$cross_compiling" >&6; }
3925
3926rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3927ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3929$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 3930if ${ac_cv_objext+:} false; then :
81ecdfbb 3931 $as_echo_n "(cached) " >&6
b7026657 3932else
81ecdfbb 3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3934/* end confdefs.h. */
3935
3936int
3937main ()
3938{
3939
3940 ;
3941 return 0;
3942}
3943_ACEOF
3944rm -f conftest.o conftest.obj
81ecdfbb
RW
3945if { { ac_try="$ac_compile"
3946case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949esac
3950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3951$as_echo "$ac_try_echo"; } >&5
3952 (eval "$ac_compile") 2>&5
b7026657 3953 ac_status=$?
81ecdfbb
RW
3954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3955 test $ac_status = 0; }; then :
3956 for ac_file in conftest.o conftest.obj conftest.*; do
3957 test -f "$ac_file" || continue;
b7026657 3958 case $ac_file in
81ecdfbb 3959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b7026657
AC
3960 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3961 break;;
3962 esac
3963done
3964else
81ecdfbb 3965 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
3966sed 's/^/| /' conftest.$ac_ext >&5
3967
81ecdfbb
RW
3968{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3970as_fn_error $? "cannot compute suffix of object files: cannot compile
3971See \`config.log' for more details" "$LINENO" 5; }
c906108c 3972fi
b7026657
AC
3973rm -f conftest.$ac_cv_objext conftest.$ac_ext
3974fi
81ecdfbb
RW
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3976$as_echo "$ac_cv_objext" >&6; }
b7026657
AC
3977OBJEXT=$ac_cv_objext
3978ac_objext=$OBJEXT
81ecdfbb
RW
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3980$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3981if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3982 $as_echo_n "(cached) " >&6
b7026657 3983else
81ecdfbb 3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3985/* end confdefs.h. */
3986
3987int
3988main ()
3989{
3990#ifndef __GNUC__
3991 choke me
3992#endif
c906108c 3993
b7026657
AC
3994 ;
3995 return 0;
3996}
3997_ACEOF
81ecdfbb 3998if ac_fn_c_try_compile "$LINENO"; then :
b7026657 3999 ac_compiler_gnu=yes
c906108c 4000else
81ecdfbb 4001 ac_compiler_gnu=no
c906108c 4002fi
81ecdfbb 4003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 4004ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c 4005
b7026657 4006fi
81ecdfbb
RW
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4008$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4009if test $ac_compiler_gnu = yes; then
4010 GCC=yes
4011else
4012 GCC=
4013fi
b7026657
AC
4014ac_test_CFLAGS=${CFLAGS+set}
4015ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4017$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4018if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb 4019 $as_echo_n "(cached) " >&6
c906108c 4020else
81ecdfbb
RW
4021 ac_save_c_werror_flag=$ac_c_werror_flag
4022 ac_c_werror_flag=yes
4023 ac_cv_prog_cc_g=no
4024 CFLAGS="-g"
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4026/* end confdefs.h. */
4027
4028int
4029main ()
4030{
4031
4032 ;
4033 return 0;
4034}
4035_ACEOF
81ecdfbb 4036if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
4037 ac_cv_prog_cc_g=yes
4038else
81ecdfbb
RW
4039 CFLAGS=""
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041/* end confdefs.h. */
4042
4043int
4044main ()
4045{
4046
4047 ;
4048 return 0;
4049}
4050_ACEOF
4051if ac_fn_c_try_compile "$LINENO"; then :
4052
4053else
4054 ac_c_werror_flag=$ac_save_c_werror_flag
4055 CFLAGS="-g"
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057/* end confdefs.h. */
4058
4059int
4060main ()
4061{
c906108c 4062
81ecdfbb
RW
4063 ;
4064 return 0;
4065}
4066_ACEOF
4067if ac_fn_c_try_compile "$LINENO"; then :
4068 ac_cv_prog_cc_g=yes
4069fi
4070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4071fi
81ecdfbb 4072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 4073fi
81ecdfbb
RW
4074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_c_werror_flag=$ac_save_c_werror_flag
4076fi
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4078$as_echo "$ac_cv_prog_cc_g" >&6; }
c906108c 4079if test "$ac_test_CFLAGS" = set; then
b7026657 4080 CFLAGS=$ac_save_CFLAGS
c906108c
SS
4081elif test $ac_cv_prog_cc_g = yes; then
4082 if test "$GCC" = yes; then
4083 CFLAGS="-g -O2"
4084 else
4085 CFLAGS="-g"
4086 fi
4087else
4088 if test "$GCC" = yes; then
4089 CFLAGS="-O2"
4090 else
4091 CFLAGS=
4092 fi
4093fi
81ecdfbb
RW
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4095$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4096if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4097 $as_echo_n "(cached) " >&6
b7026657 4098else
81ecdfbb 4099 ac_cv_prog_cc_c89=no
b7026657 4100ac_save_CC=$CC
81ecdfbb 4101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4102/* end confdefs.h. */
4103#include <stdarg.h>
4104#include <stdio.h>
d0ac1c44 4105struct stat;
b7026657
AC
4106/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4107struct buf { int x; };
4108FILE * (*rcsopen) (struct buf *, struct stat *, int);
4109static char *e (p, i)
4110 char **p;
4111 int i;
4112{
4113 return p[i];
4114}
4115static char *f (char * (*g) (char **, int), char **p, ...)
4116{
4117 char *s;
4118 va_list v;
4119 va_start (v,p);
4120 s = g (p, va_arg (v,int));
4121 va_end (v);
4122 return s;
4123}
4124
4125/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4126 function prototypes and stuff, but not '\xHH' hex character constants.
4127 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4128 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
4129 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4130 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4131 that's true only with -std. */
b7026657
AC
4132int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4133
81ecdfbb
RW
4134/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4135 inside strings and character constants. */
4136#define FOO(x) 'x'
4137int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4138
b7026657
AC
4139int test (int i, double x);
4140struct s1 {int (*f) (int a);};
4141struct s2 {int (*f) (double a);};
4142int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4143int argc;
4144char **argv;
4145int
4146main ()
4147{
4148return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4149 ;
4150 return 0;
4151}
4152_ACEOF
81ecdfbb
RW
4153for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4154 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
4155do
4156 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4157 if ac_fn_c_try_compile "$LINENO"; then :
4158 ac_cv_prog_cc_c89=$ac_arg
b7026657 4159fi
81ecdfbb
RW
4160rm -f core conftest.err conftest.$ac_objext
4161 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 4162done
81ecdfbb 4163rm -f conftest.$ac_ext
b7026657
AC
4164CC=$ac_save_CC
4165
4166fi
81ecdfbb
RW
4167# AC_CACHE_VAL
4168case "x$ac_cv_prog_cc_c89" in
4169 x)
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4171$as_echo "none needed" >&6; } ;;
4172 xno)
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4174$as_echo "unsupported" >&6; } ;;
b7026657 4175 *)
81ecdfbb
RW
4176 CC="$CC $ac_cv_prog_cc_c89"
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4178$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b7026657 4179esac
81ecdfbb 4180if test "x$ac_cv_prog_cc_c89" != xno; then :
b7026657 4181
fdd6fa61
AG
4182fi
4183
fdd6fa61
AG
4184ac_ext=c
4185ac_cpp='$CPP $CPPFLAGS'
4186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189
c2783492
MF
4190ac_ext=c
4191ac_cpp='$CPP $CPPFLAGS'
4192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4196$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4197if ${am_cv_prog_cc_c_o+:} false; then :
4198 $as_echo_n "(cached) " >&6
4199else
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201/* end confdefs.h. */
4202
4203int
4204main ()
4205{
4206
4207 ;
4208 return 0;
4209}
4210_ACEOF
4211 # Make sure it works both with $CC and with simple cc.
4212 # Following AC_PROG_CC_C_O, we do the test twice because some
4213 # compilers refuse to overwrite an existing .o file with -o,
4214 # though they will create one.
4215 am_cv_prog_cc_c_o=yes
4216 for am_i in 1 2; do
4217 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4218 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } \
4222 && test -f conftest2.$ac_objext; then
4223 : OK
4224 else
4225 am_cv_prog_cc_c_o=no
4226 break
4227 fi
4228 done
4229 rm -f core conftest*
4230 unset am_i
4231fi
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4233$as_echo "$am_cv_prog_cc_c_o" >&6; }
4234if test "$am_cv_prog_cc_c_o" != yes; then
4235 # Losing compiler, so override with the script.
4236 # FIXME: It is wrong to rewrite CC.
4237 # But if we don't then we get into trouble of one sort or another.
4238 # A longer-term fix would be to have automake use am__CC in this case,
4239 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4240 CC="$am_aux_dir/compile $CC"
4241fi
4242ac_ext=c
4243ac_cpp='$CPP $CPPFLAGS'
4244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247
4248
c2783492
MF
4249ac_ext=c
4250ac_cpp='$CPP $CPPFLAGS'
4251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4255$as_echo_n "checking how to run the C preprocessor... " >&6; }
4256# On Suns, sometimes $CPP names a directory.
4257if test -n "$CPP" && test -d "$CPP"; then
4258 CPP=
4259fi
4260if test -z "$CPP"; then
4261 if ${ac_cv_prog_CPP+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263else
4264 # Double quotes because CPP needs to be expanded
4265 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4266 do
4267 ac_preproc_ok=false
4268for ac_c_preproc_warn_flag in '' yes
4269do
4270 # Use a header file that comes with gcc, so configuring glibc
4271 # with a fresh cross-compiler works.
4272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4273 # <limits.h> exists even on freestanding compilers.
4274 # On the NeXT, cc -E runs the code through the compiler's parser,
4275 # not just through cpp. "Syntax error" is here to catch this case.
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277/* end confdefs.h. */
4278#ifdef __STDC__
4279# include <limits.h>
4280#else
4281# include <assert.h>
4282#endif
4283 Syntax error
4284_ACEOF
4285if ac_fn_c_try_cpp "$LINENO"; then :
4286
4287else
4288 # Broken: fails on valid input.
4289continue
4290fi
4291rm -f conftest.err conftest.i conftest.$ac_ext
4292
4293 # OK, works on sane cases. Now check whether nonexistent headers
4294 # can be detected and how.
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296/* end confdefs.h. */
4297#include <ac_nonexistent.h>
4298_ACEOF
4299if ac_fn_c_try_cpp "$LINENO"; then :
4300 # Broken: success on invalid input.
4301continue
4302else
4303 # Passes both tests.
4304ac_preproc_ok=:
4305break
4306fi
4307rm -f conftest.err conftest.i conftest.$ac_ext
4308
4309done
4310# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4311rm -f conftest.i conftest.err conftest.$ac_ext
4312if $ac_preproc_ok; then :
4313 break
4314fi
4315
4316 done
4317 ac_cv_prog_CPP=$CPP
4318
4319fi
4320 CPP=$ac_cv_prog_CPP
4321else
4322 ac_cv_prog_CPP=$CPP
4323fi
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4325$as_echo "$CPP" >&6; }
4326ac_preproc_ok=false
4327for ac_c_preproc_warn_flag in '' yes
4328do
4329 # Use a header file that comes with gcc, so configuring glibc
4330 # with a fresh cross-compiler works.
4331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4332 # <limits.h> exists even on freestanding compilers.
4333 # On the NeXT, cc -E runs the code through the compiler's parser,
4334 # not just through cpp. "Syntax error" is here to catch this case.
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336/* end confdefs.h. */
4337#ifdef __STDC__
4338# include <limits.h>
4339#else
4340# include <assert.h>
4341#endif
4342 Syntax error
4343_ACEOF
4344if ac_fn_c_try_cpp "$LINENO"; then :
4345
4346else
4347 # Broken: fails on valid input.
4348continue
4349fi
4350rm -f conftest.err conftest.i conftest.$ac_ext
4351
4352 # OK, works on sane cases. Now check whether nonexistent headers
4353 # can be detected and how.
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355/* end confdefs.h. */
4356#include <ac_nonexistent.h>
4357_ACEOF
4358if ac_fn_c_try_cpp "$LINENO"; then :
4359 # Broken: success on invalid input.
4360continue
4361else
4362 # Passes both tests.
4363ac_preproc_ok=:
4364break
4365fi
4366rm -f conftest.err conftest.i conftest.$ac_ext
4367
4368done
4369# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4370rm -f conftest.i conftest.err conftest.$ac_ext
4371if $ac_preproc_ok; then :
4372
4373else
4374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4376as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4377See \`config.log' for more details" "$LINENO" 5; }
4378fi
4379
4380ac_ext=c
4381ac_cpp='$CPP $CPPFLAGS'
4382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385
4386
e9bf6a4a 4387
c2783492
MF
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4389$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4390if ${ac_cv_path_GREP+:} false; then :
4391 $as_echo_n "(cached) " >&6
4392else
4393 if test -z "$GREP"; then
4394 ac_path_GREP_found=false
4395 # Loop through the user's path and test for each of PROGNAME-LIST
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4398do
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_prog in grep ggrep; do
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4404 as_fn_executable_p "$ac_path_GREP" || continue
4405# Check for GNU ac_path_GREP and select it if it is found.
4406 # Check for GNU $ac_path_GREP
4407case `"$ac_path_GREP" --version 2>&1` in
4408*GNU*)
4409 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4410*)
4411 ac_count=0
4412 $as_echo_n 0123456789 >"conftest.in"
4413 while :
4414 do
4415 cat "conftest.in" "conftest.in" >"conftest.tmp"
4416 mv "conftest.tmp" "conftest.in"
4417 cp "conftest.in" "conftest.nl"
4418 $as_echo 'GREP' >> "conftest.nl"
4419 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4420 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4421 as_fn_arith $ac_count + 1 && ac_count=$as_val
4422 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4423 # Best one so far, save it but keep looking for a better one
4424 ac_cv_path_GREP="$ac_path_GREP"
4425 ac_path_GREP_max=$ac_count
4426 fi
4427 # 10*(2^10) chars as input seems more than enough
4428 test $ac_count -gt 10 && break
4429 done
4430 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4431esac
4432
4433 $ac_path_GREP_found && break 3
4434 done
4435 done
4436 done
4437IFS=$as_save_IFS
4438 if test -z "$ac_cv_path_GREP"; then
4439 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4440 fi
4441else
4442 ac_cv_path_GREP=$GREP
4443fi
4444
4445fi
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4447$as_echo "$ac_cv_path_GREP" >&6; }
4448 GREP="$ac_cv_path_GREP"
4449
4450
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4452$as_echo_n "checking for egrep... " >&6; }
4453if ${ac_cv_path_EGREP+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455else
4456 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4457 then ac_cv_path_EGREP="$GREP -E"
4458 else
4459 if test -z "$EGREP"; then
4460 ac_path_EGREP_found=false
4461 # Loop through the user's path and test for each of PROGNAME-LIST
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4464do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_prog in egrep; do
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4470 as_fn_executable_p "$ac_path_EGREP" || continue
4471# Check for GNU ac_path_EGREP and select it if it is found.
4472 # Check for GNU $ac_path_EGREP
4473case `"$ac_path_EGREP" --version 2>&1` in
4474*GNU*)
4475 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4476*)
4477 ac_count=0
4478 $as_echo_n 0123456789 >"conftest.in"
4479 while :
4480 do
4481 cat "conftest.in" "conftest.in" >"conftest.tmp"
4482 mv "conftest.tmp" "conftest.in"
4483 cp "conftest.in" "conftest.nl"
4484 $as_echo 'EGREP' >> "conftest.nl"
4485 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4486 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4487 as_fn_arith $ac_count + 1 && ac_count=$as_val
4488 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4489 # Best one so far, save it but keep looking for a better one
4490 ac_cv_path_EGREP="$ac_path_EGREP"
4491 ac_path_EGREP_max=$ac_count
4492 fi
4493 # 10*(2^10) chars as input seems more than enough
4494 test $ac_count -gt 10 && break
4495 done
4496 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4497esac
4498
4499 $ac_path_EGREP_found && break 3
4500 done
4501 done
4502 done
4503IFS=$as_save_IFS
4504 if test -z "$ac_cv_path_EGREP"; then
4505 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4506 fi
4507else
4508 ac_cv_path_EGREP=$EGREP
4509fi
4510
4511 fi
4512fi
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4514$as_echo "$ac_cv_path_EGREP" >&6; }
4515 EGREP="$ac_cv_path_EGREP"
4516
4517
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4519$as_echo_n "checking for ANSI C header files... " >&6; }
4520if ${ac_cv_header_stdc+:} false; then :
6bddc3e8
MF
4521 $as_echo_n "(cached) " >&6
4522else
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524/* end confdefs.h. */
c2783492
MF
4525#include <stdlib.h>
4526#include <stdarg.h>
4527#include <string.h>
4528#include <float.h>
6bddc3e8
MF
4529
4530int
4531main ()
4532{
4533
4534 ;
4535 return 0;
4536}
4537_ACEOF
c2783492
MF
4538if ac_fn_c_try_compile "$LINENO"; then :
4539 ac_cv_header_stdc=yes
4540else
4541 ac_cv_header_stdc=no
fdd6fa61 4542fi
c2783492 4543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81ecdfbb 4544
c2783492
MF
4545if test $ac_cv_header_stdc = yes; then
4546 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548/* end confdefs.h. */
4549#include <string.h>
6bddc3e8 4550
c2783492
MF
4551_ACEOF
4552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4553 $EGREP "memchr" >/dev/null 2>&1; then :
6bddc3e8 4554
c2783492
MF
4555else
4556 ac_cv_header_stdc=no
4557fi
4558rm -f conftest*
6bddc3e8 4559
6bddc3e8 4560fi
81ecdfbb 4561
c2783492
MF
4562if test $ac_cv_header_stdc = yes; then
4563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565/* end confdefs.h. */
4566#include <stdlib.h>
fdd6fa61 4567
c2783492
MF
4568_ACEOF
4569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4570 $EGREP "free" >/dev/null 2>&1; then :
6bddc3e8 4571
c2783492
MF
4572else
4573 ac_cv_header_stdc=no
6bddc3e8 4574fi
c2783492 4575rm -f conftest*
6bddc3e8 4576
6bddc3e8 4577fi
c2783492
MF
4578
4579if test $ac_cv_header_stdc = yes; then
4580 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4581 if test "$cross_compiling" = yes; then :
4582 :
6bddc3e8 4583else
c2783492
MF
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585/* end confdefs.h. */
4586#include <ctype.h>
4587#include <stdlib.h>
4588#if ((' ' & 0x0FF) == 0x020)
4589# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4590# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4591#else
4592# define ISLOWER(c) \
4593 (('a' <= (c) && (c) <= 'i') \
4594 || ('j' <= (c) && (c) <= 'r') \
4595 || ('s' <= (c) && (c) <= 'z'))
4596# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4597#endif
4598
4599#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4600int
4601main ()
4602{
4603 int i;
4604 for (i = 0; i < 256; i++)
4605 if (XOR (islower (i), ISLOWER (i))
4606 || toupper (i) != TOUPPER (i))
4607 return 2;
4608 return 0;
4609}
4610_ACEOF
4611if ac_fn_c_try_run "$LINENO"; then :
4612
4613else
4614 ac_cv_header_stdc=no
4615fi
4616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4617 conftest.$ac_objext conftest.beam conftest.$ac_ext
6bddc3e8
MF
4618fi
4619
c2783492
MF
4620fi
4621fi
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4623$as_echo "$ac_cv_header_stdc" >&6; }
4624if test $ac_cv_header_stdc = yes; then
6bddc3e8 4625
c2783492 4626$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6bddc3e8 4627
c2783492 4628fi
6bddc3e8 4629
c2783492
MF
4630# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4631for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4632 inttypes.h stdint.h unistd.h
4633do :
4634 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4635ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4636"
4637if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4638 cat >>confdefs.h <<_ACEOF
4639#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4640_ACEOF
4641
4642fi
4643
4644done
4645
4646
c2783492
MF
4647test "$program_prefix" != NONE &&
4648 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4649# Use a double $ so make ignores it.
4650test "$program_suffix" != NONE &&
4651 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4652# Double any \ or $.
4653# By default was `s,x,x', remove it if useless.
4654ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4655program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4656
4657# Find a good install program. We prefer a C program (faster),
4658# so one script is as good as another. But avoid the broken or
4659# incompatible versions:
4660# SysV /etc/install, /usr/sbin/install
4661# SunOS /usr/etc/install
4662# IRIX /sbin/install
4663# AIX /bin/install
4664# AmigaOS /C/install, which installs bootblocks on floppy discs
4665# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4666# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4667# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4668# OS/2's system install, which has a completely different semantic
4669# ./install, which can be erroneously created by make from ./install.sh.
4670# Reject install programs that cannot install multiple files.
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4672$as_echo_n "checking for a BSD-compatible install... " >&6; }
4673if test -z "$INSTALL"; then
4674if ${ac_cv_path_install+:} false; then :
81ecdfbb 4675 $as_echo_n "(cached) " >&6
c906108c 4676else
c2783492 4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b7026657
AC
4678for as_dir in $PATH
4679do
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
c2783492
MF
4682 # Account for people who put trailing slashes in PATH elements.
4683case $as_dir/ in #((
4684 ./ | .// | /[cC]/* | \
4685 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4686 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4687 /usr/ucb/* ) ;;
4688 *)
4689 # OSF1 and SCO ODT 3.0 have their own names for install.
4690 # Don't use installbsd from OSF since it installs stuff as root
4691 # by default.
4692 for ac_prog in ginstall scoinst install; do
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4695 if test $ac_prog = install &&
4696 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4697 # AIX install. It has an incompatible calling convention.
4698 :
4699 elif test $ac_prog = install &&
4700 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4701 # program-specific install script used by HP pwplus--don't use.
4702 :
4703 else
4704 rm -rf conftest.one conftest.two conftest.dir
4705 echo one > conftest.one
4706 echo two > conftest.two
4707 mkdir conftest.dir
4708 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4709 test -s conftest.one && test -s conftest.two &&
4710 test -s conftest.dir/conftest.one &&
4711 test -s conftest.dir/conftest.two
4712 then
4713 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4714 break 3
4715 fi
4716 fi
4717 fi
4718 done
4719 done
4720 ;;
4721esac
4722
81ecdfbb
RW
4723 done
4724IFS=$as_save_IFS
b7026657 4725
c2783492
MF
4726rm -rf conftest.one conftest.two conftest.dir
4727
c906108c 4728fi
c2783492
MF
4729 if test "${ac_cv_path_install+set}" = set; then
4730 INSTALL=$ac_cv_path_install
4731 else
4732 # As a last resort, use the slow shell script. Don't cache a
4733 # value for INSTALL within a source directory, because that will
4734 # break other packages using the cache if that directory is
4735 # removed, or if the value is a relative name.
4736 INSTALL=$ac_install_sh
4737 fi
c906108c 4738fi
c2783492
MF
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4740$as_echo "$INSTALL" >&6; }
b7026657 4741
c2783492
MF
4742# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4743# It thinks the first close brace ends the variable substitution.
4744test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
81ecdfbb 4745
c2783492
MF
4746test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4747
4748test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4749
4750
4751
4752
c2783492
MF
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4754$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4755if ${ac_cv_c_bigendian+:} false; then :
81ecdfbb 4756 $as_echo_n "(cached) " >&6
b7026657 4757else
c2783492
MF
4758 ac_cv_c_bigendian=unknown
4759 # See if we're dealing with a universal compiler.
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761/* end confdefs.h. */
4762#ifndef __APPLE_CC__
4763 not a universal capable compiler
4764 #endif
4765 typedef int dummy;
c906108c 4766
c2783492
MF
4767_ACEOF
4768if ac_fn_c_try_compile "$LINENO"; then :
4769
4770 # Check for potential -arch flags. It is not universal unless
4771 # there are at least two -arch flags with different values.
4772 ac_arch=
4773 ac_prev=
4774 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4775 if test -n "$ac_prev"; then
4776 case $ac_word in
4777 i?86 | x86_64 | ppc | ppc64)
4778 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4779 ac_arch=$ac_word
4780 else
4781 ac_cv_c_bigendian=universal
4782 break
4783 fi
4784 ;;
4785 esac
4786 ac_prev=
4787 elif test "x$ac_word" = "x-arch"; then
4788 ac_prev=arch
4789 fi
4790 done
b7026657 4791fi
c2783492
MF
4792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 if test $ac_cv_c_bigendian = unknown; then
4794 # See if sys/param.h defines the BYTE_ORDER macro.
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796/* end confdefs.h. */
4797#include <sys/types.h>
4798 #include <sys/param.h>
c906108c 4799
c2783492
MF
4800int
4801main ()
4802{
4803#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4804 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4805 && LITTLE_ENDIAN)
4806 bogus endian macros
4807 #endif
4808
4809 ;
4810 return 0;
4811}
4812_ACEOF
4813if ac_fn_c_try_compile "$LINENO"; then :
4814 # It does; now see whether it defined to BIG_ENDIAN or not.
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816/* end confdefs.h. */
4817#include <sys/types.h>
4818 #include <sys/param.h>
4819
4820int
4821main ()
4822{
4823#if BYTE_ORDER != BIG_ENDIAN
4824 not big endian
4825 #endif
4826
4827 ;
4828 return 0;
4829}
4830_ACEOF
4831if ac_fn_c_try_compile "$LINENO"; then :
4832 ac_cv_c_bigendian=yes
b7026657 4833else
c2783492
MF
4834 ac_cv_c_bigendian=no
4835fi
4836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 4837fi
c2783492
MF
4838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 fi
4840 if test $ac_cv_c_bigendian = unknown; then
4841 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843/* end confdefs.h. */
4844#include <limits.h>
c906108c 4845
c2783492
MF
4846int
4847main ()
4848{
4849#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4850 bogus endian macros
4851 #endif
4852
4853 ;
4854 return 0;
4855}
4856_ACEOF
4857if ac_fn_c_try_compile "$LINENO"; then :
4858 # It does; now see whether it defined to _BIG_ENDIAN or not.
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860/* end confdefs.h. */
4861#include <limits.h>
4862
4863int
4864main ()
4865{
4866#ifndef _BIG_ENDIAN
4867 not big endian
4868 #endif
b7026657 4869
c2783492
MF
4870 ;
4871 return 0;
4872}
4873_ACEOF
4874if ac_fn_c_try_compile "$LINENO"; then :
4875 ac_cv_c_bigendian=yes
c906108c 4876else
c2783492 4877 ac_cv_c_bigendian=no
c906108c 4878fi
c2783492
MF
4879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880fi
4881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 fi
4883 if test $ac_cv_c_bigendian = unknown; then
4884 # Compile a test program.
4885 if test "$cross_compiling" = yes; then :
4886 # Try to guess by grepping values from an object file.
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888/* end confdefs.h. */
4889short int ascii_mm[] =
4890 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4891 short int ascii_ii[] =
4892 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4893 int use_ascii (int i) {
4894 return ascii_mm[i] + ascii_ii[i];
4895 }
4896 short int ebcdic_ii[] =
4897 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4898 short int ebcdic_mm[] =
4899 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4900 int use_ebcdic (int i) {
4901 return ebcdic_mm[i] + ebcdic_ii[i];
4902 }
4903 extern int foo;
c906108c 4904
c2783492
MF
4905int
4906main ()
4907{
4908return use_ascii (foo) == use_ebcdic (foo);
4909 ;
4910 return 0;
4911}
4912_ACEOF
4913if ac_fn_c_try_compile "$LINENO"; then :
4914 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4915 ac_cv_c_bigendian=yes
4916 fi
4917 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4918 if test "$ac_cv_c_bigendian" = unknown; then
4919 ac_cv_c_bigendian=no
4920 else
4921 # finding both strings is unlikely to happen, but who knows?
4922 ac_cv_c_bigendian=unknown
4923 fi
4924 fi
b7026657 4925fi
c2783492 4926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4927else
c2783492
MF
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929/* end confdefs.h. */
4930$ac_includes_default
4931int
4932main ()
4933{
4934
4935 /* Are we little or big endian? From Harbison&Steele. */
4936 union
4937 {
4938 long int l;
4939 char c[sizeof (long int)];
4940 } u;
4941 u.l = 1;
4942 return u.c[sizeof (long int) - 1] == 1;
b7026657 4943
c2783492
MF
4944 ;
4945 return 0;
4946}
4947_ACEOF
4948if ac_fn_c_try_run "$LINENO"; then :
4949 ac_cv_c_bigendian=no
4950else
4951 ac_cv_c_bigendian=yes
c906108c 4952fi
c2783492
MF
4953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4954 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 4955fi
c2783492
MF
4956
4957 fi
c906108c 4958fi
c2783492
MF
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4960$as_echo "$ac_cv_c_bigendian" >&6; }
4961 case $ac_cv_c_bigendian in #(
4962 yes)
4963 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4964;; #(
4965 no)
4966 ;; #(
4967 universal)
c906108c 4968
c2783492
MF
4969$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4970
4971 ;; #(
4972 *)
4973 as_fn_error $? "unknown endianness
4974 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4975 esac
4976
4977
4978
4979
a979f2a0
MF
4980if test -n "$ac_tool_prefix"; then
4981 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4982set dummy ${ac_tool_prefix}dtc; ac_word=$2
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984$as_echo_n "checking for $ac_word... " >&6; }
4985if ${ac_cv_prog_DTC+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987else
4988 if test -n "$DTC"; then
4989 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4990else
4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992for as_dir in $PATH
4993do
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5001 fi
5002done
5003 done
5004IFS=$as_save_IFS
5005
5006fi
5007fi
5008DTC=$ac_cv_prog_DTC
5009if test -n "$DTC"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
5011$as_echo "$DTC" >&6; }
5012else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014$as_echo "no" >&6; }
5015fi
5016
5017
5018fi
5019if test -z "$ac_cv_prog_DTC"; then
5020 ac_ct_DTC=$DTC
5021 # Extract the first word of "dtc", so it can be a program name with args.
5022set dummy dtc; ac_word=$2
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024$as_echo_n "checking for $ac_word... " >&6; }
5025if ${ac_cv_prog_ac_ct_DTC+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027else
5028 if test -n "$ac_ct_DTC"; then
5029 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
5030else
5031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032for as_dir in $PATH
5033do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_prog_ac_ct_DTC="dtc"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5041 fi
5042done
5043 done
5044IFS=$as_save_IFS
5045
5046fi
5047fi
5048ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
5049if test -n "$ac_ct_DTC"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
5051$as_echo "$ac_ct_DTC" >&6; }
5052else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054$as_echo "no" >&6; }
5055fi
5056
5057 if test "x$ac_ct_DTC" = x; then
5058 DTC=""
5059 else
5060 case $cross_compiling:$ac_tool_warned in
5061yes:)
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5064ac_tool_warned=yes ;;
5065esac
5066 DTC=$ac_ct_DTC
5067 fi
5068else
5069 DTC="$ac_cv_prog_DTC"
5070fi
5071
5072
c2783492 5073if test "x$cross_compiling" = "xno"; then
aa0fca16 5074 : "${AR_FOR_BUILD:=\$(AR)}"
c2783492 5075 : "${CC_FOR_BUILD:=\$(CC)}"
aa0fca16 5076 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
c2783492 5077 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
fde7c6bf 5078 : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}"
c2783492 5079 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
c906108c 5080else
aa0fca16 5081 : "${AR_FOR_BUILD:=ar}"
c2783492 5082 : "${CC_FOR_BUILD:=gcc}"
aa0fca16 5083 : "${RANLIB_FOR_BUILD:=ranlib}"
c2783492 5084 : "${CFLAGS_FOR_BUILD:=-g -O}"
fde7c6bf 5085 : "${CPPFLAGS_FOR_BUILD:=}"
c2783492 5086 : "${LDLFAGS_FOR_BUILD:=}"
c906108c
SS
5087fi
5088
5089
c906108c 5090
c2783492
MF
5091
5092
aa0fca16
MF
5093
5094
fde7c6bf 5095
b7026657 5096if test -n "$ac_tool_prefix"; then
c2783492
MF
5097 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5098set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100$as_echo_n "checking for $ac_word... " >&6; }
c2783492 5101if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 5102 $as_echo_n "(cached) " >&6
c906108c 5103else
c2783492
MF
5104 if test -n "$AR"; then
5105 ac_cv_prog_AR="$AR" # Let the user override the test.
c906108c 5106else
b7026657
AC
5107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108for as_dir in $PATH
5109do
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
81ecdfbb 5112 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 5114 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
5116 break 2
5117 fi
5118done
81ecdfbb
RW
5119 done
5120IFS=$as_save_IFS
b7026657
AC
5121
5122fi
5123fi
c2783492
MF
5124AR=$ac_cv_prog_AR
5125if test -n "$AR"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5127$as_echo "$AR" >&6; }
b7026657 5128else
81ecdfbb
RW
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130$as_echo "no" >&6; }
b7026657
AC
5131fi
5132
81ecdfbb 5133
b7026657 5134fi
c2783492
MF
5135if test -z "$ac_cv_prog_AR"; then
5136 ac_ct_AR=$AR
5137 # Extract the first word of "ar", so it can be a program name with args.
5138set dummy ar; ac_word=$2
81ecdfbb
RW
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140$as_echo_n "checking for $ac_word... " >&6; }
c2783492 5141if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 5142 $as_echo_n "(cached) " >&6
b7026657 5143else
c2783492
MF
5144 if test -n "$ac_ct_AR"; then
5145 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b7026657
AC
5146else
5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
81ecdfbb 5152 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 5154 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
5156 break 2
5157 fi
5158done
81ecdfbb
RW
5159 done
5160IFS=$as_save_IFS
b7026657
AC
5161
5162fi
5163fi
c2783492
MF
5164ac_ct_AR=$ac_cv_prog_ac_ct_AR
5165if test -n "$ac_ct_AR"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5167$as_echo "$ac_ct_AR" >&6; }
b7026657 5168else
81ecdfbb
RW
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170$as_echo "no" >&6; }
c906108c 5171fi
b7026657 5172
c2783492
MF
5173 if test "x$ac_ct_AR" = x; then
5174 AR=""
81ecdfbb
RW
5175 else
5176 case $cross_compiling:$ac_tool_warned in
5177yes:)
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180ac_tool_warned=yes ;;
5181esac
c2783492 5182 AR=$ac_ct_AR
c906108c 5183 fi
c906108c 5184else
c2783492 5185 AR="$ac_cv_prog_AR"
c906108c
SS
5186fi
5187
c2783492
MF
5188if test -n "$ac_tool_prefix"; then
5189 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5190set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192$as_echo_n "checking for $ac_word... " >&6; }
c2783492 5193if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 5194 $as_echo_n "(cached) " >&6
c906108c 5195else
c2783492
MF
5196 if test -n "$RANLIB"; then
5197 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c906108c 5198else
b7026657
AC
5199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200for as_dir in $PATH
5201do
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
81ecdfbb 5204 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 5206 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
5208 break 2
5209 fi
5210done
81ecdfbb
RW
5211 done
5212IFS=$as_save_IFS
b7026657 5213
c906108c
SS
5214fi
5215fi
c2783492
MF
5216RANLIB=$ac_cv_prog_RANLIB
5217if test -n "$RANLIB"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5219$as_echo "$RANLIB" >&6; }
c906108c 5220else
81ecdfbb
RW
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222$as_echo "no" >&6; }
c906108c
SS
5223fi
5224
81ecdfbb 5225
b7026657 5226fi
c2783492
MF
5227if test -z "$ac_cv_prog_RANLIB"; then
5228 ac_ct_RANLIB=$RANLIB
5229 # Extract the first word of "ranlib", so it can be a program name with args.
5230set dummy ranlib; ac_word=$2
81ecdfbb
RW
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232$as_echo_n "checking for $ac_word... " >&6; }
c2783492 5233if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 5234 $as_echo_n "(cached) " >&6
c906108c 5235else
c2783492
MF
5236 if test -n "$ac_ct_RANLIB"; then
5237 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b7026657
AC
5238else
5239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240for as_dir in $PATH
5241do
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
81ecdfbb 5244 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 5246 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
5248 break 2
5249 fi
5250done
81ecdfbb
RW
5251 done
5252IFS=$as_save_IFS
b7026657 5253
c906108c 5254fi
b7026657 5255fi
c2783492
MF
5256ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5257if test -n "$ac_ct_RANLIB"; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5259$as_echo "$ac_ct_RANLIB" >&6; }
c906108c 5260else
81ecdfbb
RW
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262$as_echo "no" >&6; }
c906108c 5263fi
b7026657 5264
c2783492
MF
5265 if test "x$ac_ct_RANLIB" = x; then
5266 RANLIB=":"
81ecdfbb
RW
5267 else
5268 case $cross_compiling:$ac_tool_warned in
5269yes:)
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5272ac_tool_warned=yes ;;
5273esac
c2783492 5274 RANLIB=$ac_ct_RANLIB
81ecdfbb 5275 fi
c2783492
MF
5276else
5277 RANLIB="$ac_cv_prog_RANLIB"
5278fi
5279
5280
d57b6533
MF
5281
5282
5283
5284
5285
5286
5287if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5288 if test -n "$ac_tool_prefix"; then
5289 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5290set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292$as_echo_n "checking for $ac_word... " >&6; }
5293if ${ac_cv_path_PKG_CONFIG+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295else
5296 case $PKG_CONFIG in
5297 [\\/]* | ?:[\\/]*)
5298 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5299 ;;
5300 *)
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302for as_dir in $PATH
5303do
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5311 fi
5312done
5313 done
5314IFS=$as_save_IFS
5315
5316 ;;
5317esac
5318fi
5319PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5320if test -n "$PKG_CONFIG"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5322$as_echo "$PKG_CONFIG" >&6; }
5323else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325$as_echo "no" >&6; }
5326fi
5327
5328
5329fi
5330if test -z "$ac_cv_path_PKG_CONFIG"; then
5331 ac_pt_PKG_CONFIG=$PKG_CONFIG
5332 # Extract the first word of "pkg-config", so it can be a program name with args.
5333set dummy pkg-config; ac_word=$2
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335$as_echo_n "checking for $ac_word... " >&6; }
5336if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338else
5339 case $ac_pt_PKG_CONFIG in
5340 [\\/]* | ?:[\\/]*)
5341 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5342 ;;
5343 *)
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345for as_dir in $PATH
5346do
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5354 fi
5355done
5356 done
5357IFS=$as_save_IFS
5358
5359 ;;
5360esac
5361fi
5362ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5363if test -n "$ac_pt_PKG_CONFIG"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5365$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5366else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368$as_echo "no" >&6; }
5369fi
5370
5371 if test "x$ac_pt_PKG_CONFIG" = x; then
5372 PKG_CONFIG=""
5373 else
5374 case $cross_compiling:$ac_tool_warned in
5375yes:)
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5378ac_tool_warned=yes ;;
5379esac
5380 PKG_CONFIG=$ac_pt_PKG_CONFIG
5381 fi
5382else
5383 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5384fi
5385
5386fi
5387if test -n "$PKG_CONFIG"; then
5388 _pkg_min_version=0.9.0
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5390$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5391 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5393$as_echo "yes" >&6; }
5394 else
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396$as_echo "no" >&6; }
5397 PKG_CONFIG=""
5398 fi
5399fi
5400
c2783492
MF
5401# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5402# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5403# is C99. So handle it ourselves.
5404:
5405C_DIALECT=
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5407$as_echo_n "checking whether C11 is supported by default... " >&6; }
5408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409/* end confdefs.h. */
5410
5411#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5412# error "C11 support not found"
5413#endif
5414
5415_ACEOF
5416if ac_fn_c_try_compile "$LINENO"; then :
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5418$as_echo "yes" >&6; }
5419else
5420
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422$as_echo "no" >&6; }
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5424$as_echo_n "checking for -std=c11 support... " >&6; }
5425 ac_save_CC="$CC"
5426 CC="$CC -std=c11"
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428/* end confdefs.h. */
5429
5430#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5431# error "C11 support not found"
5432#endif
5433
5434_ACEOF
5435if ac_fn_c_try_compile "$LINENO"; then :
5436
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5438$as_echo "yes" >&6; }
5439 CC="$ac_save_CC"
5440 C_DIALECT="-std=c11"
5441
5442else
5443 as_fn_error $? "C11 is required" "$LINENO" 5
5444fi
5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446fi
5447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448
5449
5450
5451
c906108c 5452
b15c5d7a
MF
5453 for ac_header in $ac_header_list
5454do :
5455 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5456ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5457"
5458if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5459 cat >>confdefs.h <<_ACEOF
5460#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5461_ACEOF
5462
b7026657
AC
5463fi
5464
b15c5d7a 5465done
b7026657 5466
b7026657 5467
c2783492 5468
c2783492 5469
c2783492 5470
c2783492 5471
c2783492 5472
b15c5d7a
MF
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
a48ff3ef
MF
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
b15c5d7a
MF
5507
5508
5509
5510
b15c5d7a
MF
5511
5512
5513
5514 for ac_func in $ac_func_list
5515do :
5516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5517ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5518if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5519 cat >>confdefs.h <<_ACEOF
5520#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5521_ACEOF
5522
5523fi
5524done
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
a48ff3ef
MF
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
95955095
MF
5643
5644
5645
5646
a48ff3ef
MF
5647
5648
5649
5650
5651
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5653$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5654if ${ac_cv_struct_tm+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656else
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658/* end confdefs.h. */
5659#include <sys/types.h>
5660#include <time.h>
5661
5662int
5663main ()
5664{
5665struct tm tm;
5666 int *p = &tm.tm_sec;
5667 return !p;
5668 ;
5669 return 0;
5670}
5671_ACEOF
5672if ac_fn_c_try_compile "$LINENO"; then :
5673 ac_cv_struct_tm=time.h
5674else
5675 ac_cv_struct_tm=sys/time.h
5676fi
5677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678fi
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5680$as_echo "$ac_cv_struct_tm" >&6; }
5681if test $ac_cv_struct_tm = sys/time.h; then
5682
5683$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5684
5685fi
5686
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5688$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5689if ${ac_cv_type_uid_t+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691else
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h. */
5694#include <sys/types.h>
5695
5696_ACEOF
5697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5698 $EGREP "uid_t" >/dev/null 2>&1; then :
5699 ac_cv_type_uid_t=yes
5700else
5701 ac_cv_type_uid_t=no
5702fi
5703rm -f conftest*
5704
5705fi
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5707$as_echo "$ac_cv_type_uid_t" >&6; }
5708if test $ac_cv_type_uid_t = no; then
5709
5710$as_echo "#define uid_t int" >>confdefs.h
5711
5712
5713$as_echo "#define gid_t int" >>confdefs.h
5714
5715fi
5716
b5689863
MF
5717case `pwd` in
5718 *\ * | *\ *)
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5720$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5721esac
a48ff3ef 5722
a48ff3ef 5723
a48ff3ef 5724
b5689863
MF
5725macro_version='2.2.7a'
5726macro_revision='1.3134'
a48ff3ef 5727
a48ff3ef 5728
a48ff3ef 5729
a48ff3ef 5730
a48ff3ef 5731
a48ff3ef 5732
a48ff3ef 5733
a48ff3ef 5734
a48ff3ef 5735
a48ff3ef
MF
5736
5737
5738
5739
b5689863 5740ltmain="$ac_aux_dir/ltmain.sh"
a48ff3ef 5741
b5689863
MF
5742# Backslashify metacharacters that are still active within
5743# double-quoted strings.
5744sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a48ff3ef 5745
b5689863
MF
5746# Same as above, but do not quote variable references.
5747double_quote_subst='s/\(["`\\]\)/\\\1/g'
a48ff3ef 5748
b5689863
MF
5749# Sed substitution to delay expansion of an escaped shell variable in a
5750# double_quote_subst'ed string.
5751delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5752
5753# Sed substitution to delay expansion of an escaped single quote.
5754delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5755
5756# Sed substitution to avoid accidental globbing in evaled expressions
5757no_glob_subst='s/\*/\\\*/g'
5758
5759ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5760ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5761ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
a48ff3ef 5762
b5689863
MF
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5764$as_echo_n "checking how to print strings... " >&6; }
5765# Test print first, because it will be a builtin if present.
5766if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5767 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5768 ECHO='print -r --'
5769elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5770 ECHO='printf %s\n'
5771else
5772 # Use this function as a fallback that always works.
5773 func_fallback_echo ()
5774 {
5775 eval 'cat <<_LTECHO_EOF
5776$1
5777_LTECHO_EOF'
5778 }
5779 ECHO='func_fallback_echo'
a48ff3ef
MF
5780fi
5781
b5689863
MF
5782# func_echo_all arg...
5783# Invoke $ECHO with all args, space-separated.
5784func_echo_all ()
5785{
5786 $ECHO ""
5787}
5788
5789case "$ECHO" in
5790 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5791$as_echo "printf" >&6; } ;;
5792 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5793$as_echo "print -r" >&6; } ;;
5794 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5795$as_echo "cat" >&6; } ;;
5796esac
5797
5798
a48ff3ef 5799
a48ff3ef 5800
a48ff3ef
MF
5801
5802
a48ff3ef 5803
a48ff3ef 5804
a48ff3ef
MF
5805
5806
a48ff3ef 5807
a48ff3ef
MF
5808
5809
a48ff3ef 5810
b5689863
MF
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5812$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5813if ${ac_cv_path_SED+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815else
5816 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5817 for ac_i in 1 2 3 4 5 6 7; do
5818 ac_script="$ac_script$as_nl$ac_script"
5819 done
5820 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5821 { ac_script=; unset ac_script;}
5822 if test -z "$SED"; then
5823 ac_path_SED_found=false
5824 # Loop through the user's path and test for each of PROGNAME-LIST
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_prog in sed gsed; do
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5833 as_fn_executable_p "$ac_path_SED" || continue
5834# Check for GNU ac_path_SED and select it if it is found.
5835 # Check for GNU $ac_path_SED
5836case `"$ac_path_SED" --version 2>&1` in
5837*GNU*)
5838 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5839*)
5840 ac_count=0
5841 $as_echo_n 0123456789 >"conftest.in"
5842 while :
5843 do
5844 cat "conftest.in" "conftest.in" >"conftest.tmp"
5845 mv "conftest.tmp" "conftest.in"
5846 cp "conftest.in" "conftest.nl"
5847 $as_echo '' >> "conftest.nl"
5848 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5850 as_fn_arith $ac_count + 1 && ac_count=$as_val
5851 if test $ac_count -gt ${ac_path_SED_max-0}; then
5852 # Best one so far, save it but keep looking for a better one
5853 ac_cv_path_SED="$ac_path_SED"
5854 ac_path_SED_max=$ac_count
5855 fi
5856 # 10*(2^10) chars as input seems more than enough
5857 test $ac_count -gt 10 && break
5858 done
5859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5860esac
5861
5862 $ac_path_SED_found && break 3
5863 done
5864 done
5865 done
5866IFS=$as_save_IFS
5867 if test -z "$ac_cv_path_SED"; then
5868 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5869 fi
5870else
5871 ac_cv_path_SED=$SED
a48ff3ef
MF
5872fi
5873
b5689863
MF
5874fi
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5876$as_echo "$ac_cv_path_SED" >&6; }
5877 SED="$ac_cv_path_SED"
5878 rm -f conftest.sed
a48ff3ef 5879
b5689863
MF
5880test -z "$SED" && SED=sed
5881Xsed="$SED -e 1s/^X//"
a48ff3ef 5882
a48ff3ef 5883
a48ff3ef
MF
5884
5885
a48ff3ef 5886
a48ff3ef 5887
a48ff3ef 5888
a48ff3ef 5889
a48ff3ef 5890
b5689863
MF
5891
5892
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5894$as_echo_n "checking for fgrep... " >&6; }
5895if ${ac_cv_path_FGREP+:} false; then :
a48ff3ef
MF
5896 $as_echo_n "(cached) " >&6
5897else
b5689863
MF
5898 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5899 then ac_cv_path_FGREP="$GREP -F"
5900 else
5901 if test -z "$FGREP"; then
5902 ac_path_FGREP_found=false
5903 # Loop through the user's path and test for each of PROGNAME-LIST
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5906do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_prog in fgrep; do
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5912 as_fn_executable_p "$ac_path_FGREP" || continue
5913# Check for GNU ac_path_FGREP and select it if it is found.
5914 # Check for GNU $ac_path_FGREP
5915case `"$ac_path_FGREP" --version 2>&1` in
5916*GNU*)
5917 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5918*)
5919 ac_count=0
5920 $as_echo_n 0123456789 >"conftest.in"
5921 while :
5922 do
5923 cat "conftest.in" "conftest.in" >"conftest.tmp"
5924 mv "conftest.tmp" "conftest.in"
5925 cp "conftest.in" "conftest.nl"
5926 $as_echo 'FGREP' >> "conftest.nl"
5927 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5929 as_fn_arith $ac_count + 1 && ac_count=$as_val
5930 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5931 # Best one so far, save it but keep looking for a better one
5932 ac_cv_path_FGREP="$ac_path_FGREP"
5933 ac_path_FGREP_max=$ac_count
5934 fi
5935 # 10*(2^10) chars as input seems more than enough
5936 test $ac_count -gt 10 && break
5937 done
5938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5939esac
5940
5941 $ac_path_FGREP_found && break 3
5942 done
5943 done
5944 done
5945IFS=$as_save_IFS
5946 if test -z "$ac_cv_path_FGREP"; then
5947 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5948 fi
5949else
5950 ac_cv_path_FGREP=$FGREP
5951fi
5952
5953 fi
5954fi
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5956$as_echo "$ac_cv_path_FGREP" >&6; }
5957 FGREP="$ac_cv_path_FGREP"
5958
5959
5960test -z "$GREP" && GREP=grep
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980# Check whether --with-gnu-ld was given.
5981if test "${with_gnu_ld+set}" = set; then :
5982 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5983else
5984 with_gnu_ld=no
5985fi
5986
5987ac_prog=ld
5988if test "$GCC" = yes; then
5989 # Check if gcc -print-prog-name=ld gives a path.
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5991$as_echo_n "checking for ld used by $CC... " >&6; }
5992 case $host in
5993 *-*-mingw*)
5994 # gcc leaves a trailing carriage return which upsets mingw
5995 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5996 *)
5997 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5998 esac
5999 case $ac_prog in
6000 # Accept absolute paths.
6001 [\\/]* | ?:[\\/]*)
6002 re_direlt='/[^/][^/]*/\.\./'
6003 # Canonicalize the pathname of ld
6004 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6005 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6006 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6007 done
6008 test -z "$LD" && LD="$ac_prog"
6009 ;;
6010 "")
6011 # If it fails, then pretend we aren't using GCC.
6012 ac_prog=ld
6013 ;;
6014 *)
6015 # If it is relative, then search for the first ld in PATH.
6016 with_gnu_ld=unknown
6017 ;;
6018 esac
6019elif test "$with_gnu_ld" = yes; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6021$as_echo_n "checking for GNU ld... " >&6; }
6022else
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6024$as_echo_n "checking for non-GNU ld... " >&6; }
6025fi
6026if ${lt_cv_path_LD+:} false; then :
6027 $as_echo_n "(cached) " >&6
6028else
6029 if test -z "$LD"; then
6030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6031 for ac_dir in $PATH; do
6032 IFS="$lt_save_ifs"
6033 test -z "$ac_dir" && ac_dir=.
6034 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6035 lt_cv_path_LD="$ac_dir/$ac_prog"
6036 # Check to see if the program is GNU ld. I'd rather use --version,
6037 # but apparently some variants of GNU ld only accept -v.
6038 # Break only if it was the GNU/non-GNU ld that we prefer.
6039 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6040 *GNU* | *'with BFD'*)
6041 test "$with_gnu_ld" != no && break
6042 ;;
6043 *)
6044 test "$with_gnu_ld" != yes && break
6045 ;;
6046 esac
6047 fi
6048 done
6049 IFS="$lt_save_ifs"
6050else
6051 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6052fi
6053fi
6054
6055LD="$lt_cv_path_LD"
6056if test -n "$LD"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6058$as_echo "$LD" >&6; }
6059else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061$as_echo "no" >&6; }
6062fi
6063test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6065$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6066if ${lt_cv_prog_gnu_ld+:} false; then :
6067 $as_echo_n "(cached) " >&6
6068else
6069 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6070case `$LD -v 2>&1 </dev/null` in
6071*GNU* | *'with BFD'*)
6072 lt_cv_prog_gnu_ld=yes
6073 ;;
6074*)
6075 lt_cv_prog_gnu_ld=no
6076 ;;
6077esac
6078fi
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6080$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6081with_gnu_ld=$lt_cv_prog_gnu_ld
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6092$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6093if ${lt_cv_path_NM+:} false; then :
6094 $as_echo_n "(cached) " >&6
6095else
6096 if test -n "$NM"; then
b9004024
NA
6097 # Let the user override the nm to test.
6098 lt_nm_to_check="$NM"
6099 else
6100 lt_nm_to_check="${ac_tool_prefix}nm"
6101 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6102 lt_nm_to_check="$lt_nm_to_check nm"
6103 fi
6104 fi
caf606c9 6105 for lt_tmp_nm in "$lt_nm_to_check"; do
b9004024
NA
6106 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6107 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6108 IFS="$lt_save_ifs"
6109 test -z "$ac_dir" && ac_dir=.
caf606c9
NA
6110 # Strip out any user-provided options from the nm to test twice,
6111 # the first time to test to see if nm (rather than its options) has
6112 # an explicit path, the second time to yield a file which can be
6113 # nm'ed itself.
6114 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6115 case "$tmp_nm_path" in
b9004024
NA
6116 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6117 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6118 esac
caf606c9
NA
6119 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6120 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
b9004024
NA
6121 # Check to see if the nm accepts a BSD-compat flag.
6122 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6123 # nm: unknown option "B" ignored
caf606c9 6124 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
b9004024
NA
6125 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6126 break
6127 ;;
6128 *)
caf606c9 6129 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
b9004024
NA
6130 *$tmp_nm*)
6131 lt_cv_path_NM="$tmp_nm -p"
6132 break
6133 ;;
6134 *)
6135 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6136 continue # so that we can try to find one that supports BSD flags
6137 ;;
6138 esac
6139 ;;
6140 esac
6141 fi
6142 done
6143 IFS="$lt_save_ifs"
6144 done
6145 : ${lt_cv_path_NM=no}
b5689863
MF
6146fi
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6148$as_echo "$lt_cv_path_NM" >&6; }
6149if test "$lt_cv_path_NM" != "no"; then
6150 NM="$lt_cv_path_NM"
6151else
6152 # Didn't find any BSD compatible name lister, look for dumpbin.
6153 if test -n "$DUMPBIN"; then :
6154 # Let the user override the test.
6155 else
6156 if test -n "$ac_tool_prefix"; then
6157 for ac_prog in dumpbin "link -dump"
6158 do
6159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6160set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162$as_echo_n "checking for $ac_word... " >&6; }
6163if ${ac_cv_prog_DUMPBIN+:} false; then :
6164 $as_echo_n "(cached) " >&6
6165else
6166 if test -n "$DUMPBIN"; then
6167 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6168else
6169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170for as_dir in $PATH
6171do
6172 IFS=$as_save_IFS
6173 test -z "$as_dir" && as_dir=.
6174 for ac_exec_ext in '' $ac_executable_extensions; do
6175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6176 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 break 2
6179 fi
6180done
6181 done
6182IFS=$as_save_IFS
6183
6184fi
6185fi
6186DUMPBIN=$ac_cv_prog_DUMPBIN
6187if test -n "$DUMPBIN"; then
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6189$as_echo "$DUMPBIN" >&6; }
6190else
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192$as_echo "no" >&6; }
6193fi
6194
6195
6196 test -n "$DUMPBIN" && break
6197 done
6198fi
6199if test -z "$DUMPBIN"; then
6200 ac_ct_DUMPBIN=$DUMPBIN
6201 for ac_prog in dumpbin "link -dump"
6202do
6203 # Extract the first word of "$ac_prog", so it can be a program name with args.
6204set dummy $ac_prog; ac_word=$2
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206$as_echo_n "checking for $ac_word... " >&6; }
6207if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6208 $as_echo_n "(cached) " >&6
6209else
6210 if test -n "$ac_ct_DUMPBIN"; then
6211 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6212else
6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 break 2
6223 fi
6224done
6225 done
6226IFS=$as_save_IFS
6227
6228fi
6229fi
6230ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6231if test -n "$ac_ct_DUMPBIN"; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6233$as_echo "$ac_ct_DUMPBIN" >&6; }
6234else
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236$as_echo "no" >&6; }
6237fi
6238
6239
6240 test -n "$ac_ct_DUMPBIN" && break
6241done
6242
6243 if test "x$ac_ct_DUMPBIN" = x; then
6244 DUMPBIN=":"
6245 else
6246 case $cross_compiling:$ac_tool_warned in
6247yes:)
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6250ac_tool_warned=yes ;;
6251esac
6252 DUMPBIN=$ac_ct_DUMPBIN
6253 fi
6254fi
6255
6256 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6257 *COFF*)
6258 DUMPBIN="$DUMPBIN -symbols"
6259 ;;
6260 *)
6261 DUMPBIN=:
6262 ;;
6263 esac
6264 fi
6265
6266 if test "$DUMPBIN" != ":"; then
6267 NM="$DUMPBIN"
6268 fi
6269fi
6270test -z "$NM" && NM=nm
6271
6272
6273
6274
6275
6276
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6278$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6279if ${lt_cv_nm_interface+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281else
6282 lt_cv_nm_interface="BSD nm"
6283 echo "int some_variable = 0;" > conftest.$ac_ext
6284 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6285 (eval "$ac_compile" 2>conftest.err)
6286 cat conftest.err >&5
6287 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6288 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6289 cat conftest.err >&5
6290 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6291 cat conftest.out >&5
6292 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6293 lt_cv_nm_interface="MS dumpbin"
6294 fi
6295 rm -f conftest*
6296fi
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6298$as_echo "$lt_cv_nm_interface" >&6; }
6299
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6301$as_echo_n "checking whether ln -s works... " >&6; }
6302LN_S=$as_ln_s
6303if test "$LN_S" = "ln -s"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6305$as_echo "yes" >&6; }
6306else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6308$as_echo "no, using $LN_S" >&6; }
6309fi
6310
6311# find the maximum length of command line arguments
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6313$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6314if ${lt_cv_sys_max_cmd_len+:} false; then :
6315 $as_echo_n "(cached) " >&6
6316else
6317 i=0
6318 teststring="ABCD"
6319
6320 case $build_os in
6321 msdosdjgpp*)
6322 # On DJGPP, this test can blow up pretty badly due to problems in libc
6323 # (any single argument exceeding 2000 bytes causes a buffer overrun
6324 # during glob expansion). Even if it were fixed, the result of this
6325 # check would be larger than it should be.
6326 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6327 ;;
6328
6329 gnu*)
6330 # Under GNU Hurd, this test is not required because there is
6331 # no limit to the length of command line arguments.
6332 # Libtool will interpret -1 as no limit whatsoever
6333 lt_cv_sys_max_cmd_len=-1;
6334 ;;
6335
6336 cygwin* | mingw* | cegcc*)
6337 # On Win9x/ME, this test blows up -- it succeeds, but takes
6338 # about 5 minutes as the teststring grows exponentially.
6339 # Worse, since 9x/ME are not pre-emptively multitasking,
6340 # you end up with a "frozen" computer, even though with patience
6341 # the test eventually succeeds (with a max line length of 256k).
6342 # Instead, let's just punt: use the minimum linelength reported by
6343 # all of the supported platforms: 8192 (on NT/2K/XP).
6344 lt_cv_sys_max_cmd_len=8192;
6345 ;;
6346
6347 mint*)
6348 # On MiNT this can take a long time and run out of memory.
6349 lt_cv_sys_max_cmd_len=8192;
6350 ;;
6351
6352 amigaos*)
6353 # On AmigaOS with pdksh, this test takes hours, literally.
6354 # So we just punt and use a minimum line length of 8192.
6355 lt_cv_sys_max_cmd_len=8192;
6356 ;;
6357
6358 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6359 # This has been around since 386BSD, at least. Likely further.
6360 if test -x /sbin/sysctl; then
6361 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6362 elif test -x /usr/sbin/sysctl; then
6363 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6364 else
6365 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6366 fi
6367 # And add a safety zone
6368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6370 ;;
6371
6372 interix*)
6373 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6374 lt_cv_sys_max_cmd_len=196608
6375 ;;
6376
6377 osf*)
6378 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6379 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6380 # nice to cause kernel panics so lets avoid the loop below.
6381 # First set a reasonable default.
6382 lt_cv_sys_max_cmd_len=16384
6383 #
6384 if test -x /sbin/sysconfig; then
6385 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6386 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6387 esac
6388 fi
6389 ;;
6390 sco3.2v5*)
6391 lt_cv_sys_max_cmd_len=102400
6392 ;;
6393 sysv5* | sco5v6* | sysv4.2uw2*)
6394 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6395 if test -n "$kargmax"; then
6396 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6397 else
6398 lt_cv_sys_max_cmd_len=32768
6399 fi
6400 ;;
6401 *)
6402 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6403 if test -n "$lt_cv_sys_max_cmd_len"; then
6404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6406 else
6407 # Make teststring a little bigger before we do anything with it.
6408 # a 1K string should be a reasonable start.
6409 for i in 1 2 3 4 5 6 7 8 ; do
6410 teststring=$teststring$teststring
6411 done
6412 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6413 # If test is not a shell built-in, we'll probably end up computing a
6414 # maximum length that is only half of the actual maximum length, but
6415 # we can't tell.
6416 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6417 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6418 test $i != 17 # 1/2 MB should be enough
6419 do
6420 i=`expr $i + 1`
6421 teststring=$teststring$teststring
6422 done
6423 # Only check the string length outside the loop.
6424 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6425 teststring=
6426 # Add a significant safety factor because C++ compilers can tack on
6427 # massive amounts of additional arguments before passing them to the
6428 # linker. It appears as though 1/2 is a usable value.
6429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6430 fi
6431 ;;
6432 esac
6433
6434fi
6435
6436if test -n $lt_cv_sys_max_cmd_len ; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6438$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6439else
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6441$as_echo "none" >&6; }
6442fi
6443max_cmd_len=$lt_cv_sys_max_cmd_len
6444
6445
6446
6447
6448
6449
6450: ${CP="cp -f"}
6451: ${MV="mv -f"}
6452: ${RM="rm -f"}
6453
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6455$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6456# Try some XSI features
6457xsi_shell=no
6458( _lt_dummy="a/b/c"
6459 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6460 = c,a/b,, \
6461 && eval 'test $(( 1 + 1 )) -eq 2 \
6462 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6463 && xsi_shell=yes
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6465$as_echo "$xsi_shell" >&6; }
6466
6467
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6469$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6470lt_shell_append=no
6471( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6472 >/dev/null 2>&1 \
6473 && lt_shell_append=yes
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6475$as_echo "$lt_shell_append" >&6; }
6476
6477
6478if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6479 lt_unset=unset
6480else
6481 lt_unset=false
6482fi
6483
6484
6485
6486
6487
6488# test EBCDIC or ASCII
6489case `echo X|tr X '\101'` in
6490 A) # ASCII based system
6491 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6492 lt_SP2NL='tr \040 \012'
6493 lt_NL2SP='tr \015\012 \040\040'
6494 ;;
6495 *) # EBCDIC based system
6496 lt_SP2NL='tr \100 \n'
6497 lt_NL2SP='tr \r\n \100\100'
6498 ;;
6499esac
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6510$as_echo_n "checking for $LD option to reload object files... " >&6; }
6511if ${lt_cv_ld_reload_flag+:} false; then :
6512 $as_echo_n "(cached) " >&6
6513else
6514 lt_cv_ld_reload_flag='-r'
6515fi
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6517$as_echo "$lt_cv_ld_reload_flag" >&6; }
6518reload_flag=$lt_cv_ld_reload_flag
6519case $reload_flag in
6520"" | " "*) ;;
6521*) reload_flag=" $reload_flag" ;;
6522esac
6523reload_cmds='$LD$reload_flag -o $output$reload_objs'
6524case $host_os in
6525 darwin*)
6526 if test "$GCC" = yes; then
6527 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6528 else
6529 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6530 fi
6531 ;;
6532esac
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542if test -n "$ac_tool_prefix"; then
6543 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6544set dummy ${ac_tool_prefix}objdump; ac_word=$2
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546$as_echo_n "checking for $ac_word... " >&6; }
6547if ${ac_cv_prog_OBJDUMP+:} false; then :
6548 $as_echo_n "(cached) " >&6
6549else
6550 if test -n "$OBJDUMP"; then
6551 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6552else
6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554for as_dir in $PATH
6555do
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6560 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 break 2
6563 fi
6564done
6565 done
6566IFS=$as_save_IFS
6567
6568fi
6569fi
6570OBJDUMP=$ac_cv_prog_OBJDUMP
6571if test -n "$OBJDUMP"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6573$as_echo "$OBJDUMP" >&6; }
6574else
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576$as_echo "no" >&6; }
6577fi
6578
6579
6580fi
6581if test -z "$ac_cv_prog_OBJDUMP"; then
6582 ac_ct_OBJDUMP=$OBJDUMP
6583 # Extract the first word of "objdump", so it can be a program name with args.
6584set dummy objdump; ac_word=$2
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586$as_echo_n "checking for $ac_word... " >&6; }
6587if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589else
6590 if test -n "$ac_ct_OBJDUMP"; then
6591 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6592else
6593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6600 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6603 fi
6604done
6605 done
6606IFS=$as_save_IFS
6607
6608fi
6609fi
6610ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6611if test -n "$ac_ct_OBJDUMP"; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6613$as_echo "$ac_ct_OBJDUMP" >&6; }
6614else
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616$as_echo "no" >&6; }
6617fi
6618
6619 if test "x$ac_ct_OBJDUMP" = x; then
6620 OBJDUMP="false"
6621 else
6622 case $cross_compiling:$ac_tool_warned in
6623yes:)
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6626ac_tool_warned=yes ;;
6627esac
6628 OBJDUMP=$ac_ct_OBJDUMP
6629 fi
6630else
6631 OBJDUMP="$ac_cv_prog_OBJDUMP"
6632fi
6633
6634test -z "$OBJDUMP" && OBJDUMP=objdump
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6645$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6646if ${lt_cv_deplibs_check_method+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648else
6649 lt_cv_file_magic_cmd='$MAGIC_CMD'
6650lt_cv_file_magic_test_file=
6651lt_cv_deplibs_check_method='unknown'
6652# Need to set the preceding variable on all platforms that support
6653# interlibrary dependencies.
6654# 'none' -- dependencies not supported.
6655# `unknown' -- same as none, but documents that we really don't know.
6656# 'pass_all' -- all dependencies passed with no checks.
6657# 'test_compile' -- check by making test program.
6658# 'file_magic [[regex]]' -- check by looking for files in library path
6659# which responds to the $file_magic_cmd with a given extended regex.
6660# If you have `file' or equivalent on your system and you're not sure
6661# whether `pass_all' will *always* work, you probably want this one.
6662
6663case $host_os in
6664aix[4-9]*)
6665 lt_cv_deplibs_check_method=pass_all
6666 ;;
6667
6668beos*)
6669 lt_cv_deplibs_check_method=pass_all
6670 ;;
6671
6672bsdi[45]*)
6673 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6674 lt_cv_file_magic_cmd='/usr/bin/file -L'
6675 lt_cv_file_magic_test_file=/shlib/libc.so
6676 ;;
6677
6678cygwin*)
6679 # func_win32_libid is a shell function defined in ltmain.sh
6680 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6681 lt_cv_file_magic_cmd='func_win32_libid'
6682 ;;
6683
6684mingw* | pw32*)
6685 # Base MSYS/MinGW do not provide the 'file' command needed by
6686 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6687 # unless we find 'file', for example because we are cross-compiling.
6688 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6689 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6690 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6691 lt_cv_file_magic_cmd='func_win32_libid'
6692 else
6693 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6694 lt_cv_file_magic_cmd='$OBJDUMP -f'
6695 fi
6696 ;;
6697
6698cegcc*)
6699 # use the weaker test based on 'objdump'. See mingw*.
6700 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6701 lt_cv_file_magic_cmd='$OBJDUMP -f'
6702 ;;
6703
6704darwin* | rhapsody*)
6705 lt_cv_deplibs_check_method=pass_all
6706 ;;
6707
6708freebsd* | dragonfly*)
6709 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6710 case $host_cpu in
6711 i*86 )
6712 # Not sure whether the presence of OpenBSD here was a mistake.
6713 # Let's accept both of them until this is cleared up.
6714 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6715 lt_cv_file_magic_cmd=/usr/bin/file
6716 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6717 ;;
6718 esac
6719 else
6720 lt_cv_deplibs_check_method=pass_all
6721 fi
6722 ;;
6723
6724gnu*)
6725 lt_cv_deplibs_check_method=pass_all
6726 ;;
6727
6728haiku*)
6729 lt_cv_deplibs_check_method=pass_all
6730 ;;
6731
6732hpux10.20* | hpux11*)
6733 lt_cv_file_magic_cmd=/usr/bin/file
6734 case $host_cpu in
6735 ia64*)
6736 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6737 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6738 ;;
6739 hppa*64*)
6740 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]'
6741 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6742 ;;
6743 *)
6744 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6745 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6746 ;;
6747 esac
6748 ;;
6749
6750interix[3-9]*)
6751 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6753 ;;
6754
6755irix5* | irix6* | nonstopux*)
6756 case $LD in
6757 *-32|*"-32 ") libmagic=32-bit;;
6758 *-n32|*"-n32 ") libmagic=N32;;
6759 *-64|*"-64 ") libmagic=64-bit;;
6760 *) libmagic=never-match;;
6761 esac
6762 lt_cv_deplibs_check_method=pass_all
6763 ;;
6764
6765# This must be Linux ELF.
6a6859cb 6766linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
b5689863
MF
6767 lt_cv_deplibs_check_method=pass_all
6768 ;;
6769
6770netbsd*)
6771 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6773 else
6774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6775 fi
6776 ;;
6777
6778newos6*)
6779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6780 lt_cv_file_magic_cmd=/usr/bin/file
6781 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6782 ;;
6783
6784*nto* | *qnx*)
6785 lt_cv_deplibs_check_method=pass_all
6786 ;;
6787
6788openbsd*)
6789 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6790 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6791 else
6792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6793 fi
6794 ;;
6795
6796osf3* | osf4* | osf5*)
6797 lt_cv_deplibs_check_method=pass_all
6798 ;;
6799
6800rdos*)
6801 lt_cv_deplibs_check_method=pass_all
6802 ;;
6803
6804solaris*)
6805 lt_cv_deplibs_check_method=pass_all
6806 ;;
6807
6808sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6809 lt_cv_deplibs_check_method=pass_all
6810 ;;
6811
6812sysv4 | sysv4.3*)
6813 case $host_vendor in
6814 motorola)
6815 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]'
6816 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6817 ;;
6818 ncr)
6819 lt_cv_deplibs_check_method=pass_all
6820 ;;
6821 sequent)
6822 lt_cv_file_magic_cmd='/bin/file'
6823 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6824 ;;
6825 sni)
6826 lt_cv_file_magic_cmd='/bin/file'
6827 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6828 lt_cv_file_magic_test_file=/lib/libc.so
6829 ;;
6830 siemens)
6831 lt_cv_deplibs_check_method=pass_all
6832 ;;
6833 pc)
6834 lt_cv_deplibs_check_method=pass_all
6835 ;;
6836 esac
6837 ;;
6838
6839tpf*)
6840 lt_cv_deplibs_check_method=pass_all
6841 ;;
6a6859cb
AM
6842vxworks*)
6843 # Assume VxWorks cross toolchains are built on Linux, possibly
6844 # as canadian for Windows hosts.
6845 lt_cv_deplibs_check_method=pass_all
6846 ;;
b5689863
MF
6847esac
6848
6849fi
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6851$as_echo "$lt_cv_deplibs_check_method" >&6; }
6852file_magic_cmd=$lt_cv_file_magic_cmd
6853deplibs_check_method=$lt_cv_deplibs_check_method
6854test -z "$deplibs_check_method" && deplibs_check_method=unknown
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867plugin_option=
6868plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6869for plugin in $plugin_names; do
6870 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6871 if test x$plugin_so = x$plugin; then
6872 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6873 fi
6874 if test x$plugin_so != x$plugin; then
6875 plugin_option="--plugin $plugin_so"
6876 break
6877 fi
6878done
6879
6880if test -n "$ac_tool_prefix"; then
6881 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6882set dummy ${ac_tool_prefix}ar; ac_word=$2
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884$as_echo_n "checking for $ac_word... " >&6; }
6885if ${ac_cv_prog_AR+:} false; then :
6886 $as_echo_n "(cached) " >&6
6887else
6888 if test -n "$AR"; then
6889 ac_cv_prog_AR="$AR" # Let the user override the test.
6890else
6891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892for as_dir in $PATH
6893do
6894 IFS=$as_save_IFS
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898 ac_cv_prog_AR="${ac_tool_prefix}ar"
6899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 break 2
6901 fi
6902done
6903 done
6904IFS=$as_save_IFS
6905
6906fi
6907fi
6908AR=$ac_cv_prog_AR
6909if test -n "$AR"; then
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6911$as_echo "$AR" >&6; }
6912else
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914$as_echo "no" >&6; }
6915fi
6916
6917
6918fi
6919if test -z "$ac_cv_prog_AR"; then
6920 ac_ct_AR=$AR
6921 # Extract the first word of "ar", so it can be a program name with args.
6922set dummy ar; ac_word=$2
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924$as_echo_n "checking for $ac_word... " >&6; }
6925if ${ac_cv_prog_ac_ct_AR+:} false; then :
6926 $as_echo_n "(cached) " >&6
6927else
6928 if test -n "$ac_ct_AR"; then
6929 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6930else
6931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6938 ac_cv_prog_ac_ct_AR="ar"
6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6941 fi
6942done
6943 done
6944IFS=$as_save_IFS
6945
6946fi
6947fi
6948ac_ct_AR=$ac_cv_prog_ac_ct_AR
6949if test -n "$ac_ct_AR"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6951$as_echo "$ac_ct_AR" >&6; }
6952else
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954$as_echo "no" >&6; }
6955fi
6956
6957 if test "x$ac_ct_AR" = x; then
6958 AR="false"
6959 else
6960 case $cross_compiling:$ac_tool_warned in
6961yes:)
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964ac_tool_warned=yes ;;
6965esac
6966 AR=$ac_ct_AR
6967 fi
6968else
6969 AR="$ac_cv_prog_AR"
6970fi
6971
6972test -z "$AR" && AR=ar
6973if test -n "$plugin_option"; then
6974 if $AR --help 2>&1 | grep -q "\--plugin"; then
6975 touch conftest.c
6976 $AR $plugin_option rc conftest.a conftest.c
6977 if test "$?" != 0; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6979$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6980 else
6981 AR="$AR $plugin_option"
6982 fi
6983 rm -f conftest.*
6984 fi
6985fi
6986test -z "$AR_FLAGS" && AR_FLAGS=cru
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998if test -n "$ac_tool_prefix"; then
6999 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7000set dummy ${ac_tool_prefix}strip; ac_word=$2
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7002$as_echo_n "checking for $ac_word... " >&6; }
7003if ${ac_cv_prog_STRIP+:} false; then :
7004 $as_echo_n "(cached) " >&6
7005else
7006 if test -n "$STRIP"; then
7007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7008else
7009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010for as_dir in $PATH
7011do
7012 IFS=$as_save_IFS
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7016 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 break 2
7019 fi
7020done
7021 done
7022IFS=$as_save_IFS
7023
7024fi
7025fi
7026STRIP=$ac_cv_prog_STRIP
7027if test -n "$STRIP"; then
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7029$as_echo "$STRIP" >&6; }
7030else
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032$as_echo "no" >&6; }
7033fi
7034
7035
7036fi
7037if test -z "$ac_cv_prog_STRIP"; then
7038 ac_ct_STRIP=$STRIP
7039 # Extract the first word of "strip", so it can be a program name with args.
7040set dummy strip; ac_word=$2
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042$as_echo_n "checking for $ac_word... " >&6; }
7043if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7044 $as_echo_n "(cached) " >&6
7045else
7046 if test -n "$ac_ct_STRIP"; then
7047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7048else
7049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050for as_dir in $PATH
7051do
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7056 ac_cv_prog_ac_ct_STRIP="strip"
7057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 break 2
7059 fi
7060done
7061 done
7062IFS=$as_save_IFS
7063
7064fi
7065fi
7066ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7067if test -n "$ac_ct_STRIP"; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7069$as_echo "$ac_ct_STRIP" >&6; }
7070else
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072$as_echo "no" >&6; }
7073fi
7074
7075 if test "x$ac_ct_STRIP" = x; then
7076 STRIP=":"
7077 else
7078 case $cross_compiling:$ac_tool_warned in
7079yes:)
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7082ac_tool_warned=yes ;;
7083esac
7084 STRIP=$ac_ct_STRIP
7085 fi
7086else
7087 STRIP="$ac_cv_prog_STRIP"
7088fi
7089
7090test -z "$STRIP" && STRIP=:
7091
7092
7093
7094
7095
7096
7097if test -n "$ac_tool_prefix"; then
7098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7099set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101$as_echo_n "checking for $ac_word... " >&6; }
7102if ${ac_cv_prog_RANLIB+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104else
7105 if test -n "$RANLIB"; then
7106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7107else
7108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119done
7120 done
7121IFS=$as_save_IFS
7122
7123fi
7124fi
7125RANLIB=$ac_cv_prog_RANLIB
7126if test -n "$RANLIB"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7128$as_echo "$RANLIB" >&6; }
7129else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131$as_echo "no" >&6; }
7132fi
7133
7134
7135fi
7136if test -z "$ac_cv_prog_RANLIB"; then
7137 ac_ct_RANLIB=$RANLIB
7138 # Extract the first word of "ranlib", so it can be a program name with args.
7139set dummy ranlib; ac_word=$2
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141$as_echo_n "checking for $ac_word... " >&6; }
7142if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7143 $as_echo_n "(cached) " >&6
7144else
7145 if test -n "$ac_ct_RANLIB"; then
7146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7147else
7148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149for as_dir in $PATH
7150do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7155 ac_cv_prog_ac_ct_RANLIB="ranlib"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7158 fi
7159done
7160 done
7161IFS=$as_save_IFS
7162
7163fi
7164fi
7165ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7166if test -n "$ac_ct_RANLIB"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7168$as_echo "$ac_ct_RANLIB" >&6; }
7169else
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171$as_echo "no" >&6; }
7172fi
7173
7174 if test "x$ac_ct_RANLIB" = x; then
7175 RANLIB=":"
7176 else
7177 case $cross_compiling:$ac_tool_warned in
7178yes:)
7179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7181ac_tool_warned=yes ;;
7182esac
7183 RANLIB=$ac_ct_RANLIB
7184 fi
7185else
7186 RANLIB="$ac_cv_prog_RANLIB"
7187fi
7188
7189test -z "$RANLIB" && RANLIB=:
7190if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7191 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7192 RANLIB="$RANLIB $plugin_option"
7193 fi
7194fi
7195
7196
7197
7198
7199
7200
7201# Determine commands to create old-style static archives.
7202old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7203old_postinstall_cmds='chmod 644 $oldlib'
7204old_postuninstall_cmds=
7205
7206if test -n "$RANLIB"; then
7207 case $host_os in
7208 openbsd*)
7209 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7210 ;;
7211 *)
7212 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7213 ;;
7214 esac
7215 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7216fi
7217
7218case $host_os in
7219 darwin*)
7220 lock_old_archive_extraction=yes ;;
7221 *)
7222 lock_old_archive_extraction=no ;;
7223esac
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245for ac_prog in gawk mawk nawk awk
7246do
7247 # Extract the first word of "$ac_prog", so it can be a program name with args.
7248set dummy $ac_prog; ac_word=$2
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250$as_echo_n "checking for $ac_word... " >&6; }
7251if ${ac_cv_prog_AWK+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253else
7254 if test -n "$AWK"; then
7255 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7256else
7257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258for as_dir in $PATH
7259do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264 ac_cv_prog_AWK="$ac_prog"
7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 break 2
7267 fi
7268done
7269 done
7270IFS=$as_save_IFS
7271
7272fi
7273fi
7274AWK=$ac_cv_prog_AWK
7275if test -n "$AWK"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7277$as_echo "$AWK" >&6; }
7278else
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280$as_echo "no" >&6; }
7281fi
7282
7283
7284 test -n "$AWK" && break
7285done
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305# If no C compiler was specified, use CC.
7306LTCC=${LTCC-"$CC"}
7307
7308# If no C compiler flags were specified, use CFLAGS.
7309LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7310
7311# Allow CC to be a program name with arguments.
7312compiler=$CC
7313
7314
7315# Check for command to grab the raw symbol name followed by C symbol from nm.
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7317$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7318if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7319 $as_echo_n "(cached) " >&6
7320else
7321
7322# These are sane defaults that work on at least a few old systems.
7323# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7324
7325# Character class describing NM global symbol codes.
7326symcode='[BCDEGRST]'
7327
7328# Regexp to match symbols that can be accessed directly from C.
7329sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7330
7331# Define system-specific variables.
7332case $host_os in
7333aix*)
7334 symcode='[BCDT]'
7335 ;;
7336cygwin* | mingw* | pw32* | cegcc*)
7337 symcode='[ABCDGISTW]'
7338 ;;
7339hpux*)
7340 if test "$host_cpu" = ia64; then
7341 symcode='[ABCDEGRST]'
7342 fi
7343 ;;
7344irix* | nonstopux*)
7345 symcode='[BCDEGRST]'
7346 ;;
7347osf*)
7348 symcode='[BCDEGQRST]'
7349 ;;
7350solaris*)
b9004024 7351 symcode='[BCDRT]'
b5689863
MF
7352 ;;
7353sco3.2v5*)
7354 symcode='[DT]'
7355 ;;
7356sysv4.2uw2*)
7357 symcode='[DT]'
7358 ;;
7359sysv5* | sco5v6* | unixware* | OpenUNIX*)
7360 symcode='[ABDT]'
7361 ;;
7362sysv4)
7363 symcode='[DFNSTU]'
7364 ;;
7365esac
7366
7367# If we're using GNU nm, then use its standard symbol codes.
7368case `$NM -V 2>&1` in
7369*GNU* | *'with BFD'*)
7370 symcode='[ABCDGIRSTW]' ;;
7371esac
7372
7373# Transform an extracted symbol line into a proper C declaration.
7374# Some systems (esp. on ia64) link data and code symbols differently,
7375# so use this general approach.
7376lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7377
7378# Transform an extracted symbol line into symbol name and symbol address
7379lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7380lt_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'"
7381
7382# Handle CRLF in mingw tool chain
7383opt_cr=
7384case $build_os in
7385mingw*)
7386 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7387 ;;
7388esac
7389
7390# Try without a prefix underscore, then with it.
7391for ac_symprfx in "" "_"; do
7392
7393 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7394 symxfrm="\\1 $ac_symprfx\\2 \\2"
7395
7396 # Write the raw and C identifiers.
7397 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7398 # Fake it for dumpbin and say T for any non-static function
7399 # and D for any global variable.
7400 # Also find C++ and __fastcall symbols from MSVC++,
7401 # which start with @ or ?.
7402 lt_cv_sys_global_symbol_pipe="$AWK '"\
7403" {last_section=section; section=\$ 3};"\
7404" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7405" \$ 0!~/External *\|/{next};"\
7406" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7407" {if(hide[section]) next};"\
7408" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7409" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7410" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7411" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7412" ' prfx=^$ac_symprfx"
7413 else
7414 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7415 fi
7416
7417 # Check to see that the pipe works correctly.
7418 pipe_works=no
7419
7420 rm -f conftest*
7421 cat > conftest.$ac_ext <<_LT_EOF
7422#ifdef __cplusplus
7423extern "C" {
7424#endif
7425char nm_test_var;
7426void nm_test_func(void);
7427void nm_test_func(void){}
7428#ifdef __cplusplus
7429}
7430#endif
7431int main(){nm_test_var='a';nm_test_func();return(0);}
7432_LT_EOF
7433
7434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7435 (eval $ac_compile) 2>&5
7436 ac_status=$?
7437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438 test $ac_status = 0; }; then
7439 # Now try to grab the symbols.
7440 nlist=conftest.nm
7441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7442 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7443 ac_status=$?
7444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445 test $ac_status = 0; } && test -s "$nlist"; then
7446 # Try sorting and uniquifying the output.
7447 if sort "$nlist" | uniq > "$nlist"T; then
7448 mv -f "$nlist"T "$nlist"
7449 else
7450 rm -f "$nlist"T
7451 fi
7452
7453 # Make sure that we snagged all the symbols we need.
7454 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7455 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7456 cat <<_LT_EOF > conftest.$ac_ext
7457#ifdef __cplusplus
7458extern "C" {
7459#endif
7460
7461_LT_EOF
7462 # Now generate the symbol file.
7463 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7464
7465 cat <<_LT_EOF >> conftest.$ac_ext
7466
7467/* The mapping between symbol names and symbols. */
7468const struct {
7469 const char *name;
7470 void *address;
7471}
7472lt__PROGRAM__LTX_preloaded_symbols[] =
7473{
7474 { "@PROGRAM@", (void *) 0 },
7475_LT_EOF
7476 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7477 cat <<\_LT_EOF >> conftest.$ac_ext
7478 {0, (void *) 0}
7479};
7480
7481/* This works around a problem in FreeBSD linker */
7482#ifdef FREEBSD_WORKAROUND
7483static const void *lt_preloaded_setup() {
7484 return lt__PROGRAM__LTX_preloaded_symbols;
7485}
7486#endif
7487
7488#ifdef __cplusplus
7489}
7490#endif
7491_LT_EOF
7492 # Now try linking the two files.
7493 mv conftest.$ac_objext conftstm.$ac_objext
7494 lt_save_LIBS="$LIBS"
7495 lt_save_CFLAGS="$CFLAGS"
7496 LIBS="conftstm.$ac_objext"
7497 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7499 (eval $ac_link) 2>&5
7500 ac_status=$?
7501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7502 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7503 pipe_works=yes
7504 fi
7505 LIBS="$lt_save_LIBS"
7506 CFLAGS="$lt_save_CFLAGS"
7507 else
7508 echo "cannot find nm_test_func in $nlist" >&5
7509 fi
7510 else
7511 echo "cannot find nm_test_var in $nlist" >&5
7512 fi
7513 else
7514 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7515 fi
7516 else
7517 echo "$progname: failed program was:" >&5
7518 cat conftest.$ac_ext >&5
7519 fi
7520 rm -rf conftest* conftst*
7521
7522 # Do not use the global_symbol_pipe unless it works.
7523 if test "$pipe_works" = yes; then
7524 break
7525 else
7526 lt_cv_sys_global_symbol_pipe=
7527 fi
7528done
7529
7530fi
7531
7532if test -z "$lt_cv_sys_global_symbol_pipe"; then
7533 lt_cv_sys_global_symbol_to_cdecl=
7534fi
7535if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7537$as_echo "failed" >&6; }
7538else
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7540$as_echo "ok" >&6; }
7541fi
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564# Check whether --enable-libtool-lock was given.
7565if test "${enable_libtool_lock+set}" = set; then :
7566 enableval=$enable_libtool_lock;
7567fi
7568
7569test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7570
7571# Some flags need to be propagated to the compiler or linker for good
7572# libtool support.
7573case $host in
7574ia64-*-hpux*)
7575 # Find out which ABI we are using.
7576 echo 'int i;' > conftest.$ac_ext
7577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7578 (eval $ac_compile) 2>&5
7579 ac_status=$?
7580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7581 test $ac_status = 0; }; then
7582 case `/usr/bin/file conftest.$ac_objext` in
7583 *ELF-32*)
7584 HPUX_IA64_MODE="32"
7585 ;;
7586 *ELF-64*)
7587 HPUX_IA64_MODE="64"
7588 ;;
7589 esac
7590 fi
7591 rm -rf conftest*
7592 ;;
7593*-*-irix6*)
7594 # Find out which ABI we are using.
7595 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7597 (eval $ac_compile) 2>&5
7598 ac_status=$?
7599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7600 test $ac_status = 0; }; then
7601 if test "$lt_cv_prog_gnu_ld" = yes; then
7602 case `/usr/bin/file conftest.$ac_objext` in
7603 *32-bit*)
7604 LD="${LD-ld} -melf32bsmip"
7605 ;;
7606 *N32*)
7607 LD="${LD-ld} -melf32bmipn32"
7608 ;;
7609 *64-bit*)
7610 LD="${LD-ld} -melf64bmip"
7611 ;;
7612 esac
7613 else
7614 case `/usr/bin/file conftest.$ac_objext` in
7615 *32-bit*)
7616 LD="${LD-ld} -32"
7617 ;;
7618 *N32*)
7619 LD="${LD-ld} -n32"
7620 ;;
7621 *64-bit*)
7622 LD="${LD-ld} -64"
7623 ;;
7624 esac
7625 fi
7626 fi
7627 rm -rf conftest*
7628 ;;
7629
7630x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7631s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7632 # Find out which ABI we are using.
7633 echo 'int i;' > conftest.$ac_ext
7634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7635 (eval $ac_compile) 2>&5
7636 ac_status=$?
7637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7638 test $ac_status = 0; }; then
7639 case `/usr/bin/file conftest.o` in
7640 *32-bit*)
7641 case $host in
7642 x86_64-*kfreebsd*-gnu)
7643 LD="${LD-ld} -m elf_i386_fbsd"
7644 ;;
7645 x86_64-*linux*)
7646 case `/usr/bin/file conftest.o` in
7647 *x86-64*)
7648 LD="${LD-ld} -m elf32_x86_64"
7649 ;;
7650 *)
7651 LD="${LD-ld} -m elf_i386"
7652 ;;
7653 esac
7654 ;;
7655 powerpc64le-*linux*)
7656 LD="${LD-ld} -m elf32lppclinux"
7657 ;;
7658 powerpc64-*linux*)
7659 LD="${LD-ld} -m elf32ppclinux"
7660 ;;
7661 s390x-*linux*)
7662 LD="${LD-ld} -m elf_s390"
7663 ;;
7664 sparc64-*linux*)
7665 LD="${LD-ld} -m elf32_sparc"
7666 ;;
7667 esac
7668 ;;
7669 *64-bit*)
7670 case $host in
7671 x86_64-*kfreebsd*-gnu)
7672 LD="${LD-ld} -m elf_x86_64_fbsd"
7673 ;;
7674 x86_64-*linux*)
7675 LD="${LD-ld} -m elf_x86_64"
7676 ;;
7677 powerpcle-*linux*)
7678 LD="${LD-ld} -m elf64lppc"
7679 ;;
7680 powerpc-*linux*)
7681 LD="${LD-ld} -m elf64ppc"
7682 ;;
7683 s390*-*linux*|s390*-*tpf*)
7684 LD="${LD-ld} -m elf64_s390"
7685 ;;
7686 sparc*-*linux*)
7687 LD="${LD-ld} -m elf64_sparc"
7688 ;;
7689 esac
7690 ;;
7691 esac
7692 fi
7693 rm -rf conftest*
7694 ;;
7695
7696*-*-sco3.2v5*)
7697 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7698 SAVE_CFLAGS="$CFLAGS"
7699 CFLAGS="$CFLAGS -belf"
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7701$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7702if ${lt_cv_cc_needs_belf+:} false; then :
7703 $as_echo_n "(cached) " >&6
7704else
7705 ac_ext=c
7706ac_cpp='$CPP $CPPFLAGS'
7707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7709ac_compiler_gnu=$ac_cv_c_compiler_gnu
7710
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712/* end confdefs.h. */
7713
7714int
7715main ()
7716{
7717
7718 ;
7719 return 0;
7720}
7721_ACEOF
7722if ac_fn_c_try_link "$LINENO"; then :
7723 lt_cv_cc_needs_belf=yes
7724else
7725 lt_cv_cc_needs_belf=no
7726fi
7727rm -f core conftest.err conftest.$ac_objext \
7728 conftest$ac_exeext conftest.$ac_ext
7729 ac_ext=c
7730ac_cpp='$CPP $CPPFLAGS'
7731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7733ac_compiler_gnu=$ac_cv_c_compiler_gnu
7734
7735fi
7736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7737$as_echo "$lt_cv_cc_needs_belf" >&6; }
7738 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7739 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7740 CFLAGS="$SAVE_CFLAGS"
7741 fi
7742 ;;
7743sparc*-*solaris*)
7744 # Find out which ABI we are using.
7745 echo 'int i;' > conftest.$ac_ext
7746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7747 (eval $ac_compile) 2>&5
7748 ac_status=$?
7749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7750 test $ac_status = 0; }; then
7751 case `/usr/bin/file conftest.o` in
7752 *64-bit*)
7753 case $lt_cv_prog_gnu_ld in
7754 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7755 *)
7756 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7757 LD="${LD-ld} -64"
7758 fi
7759 ;;
7760 esac
7761 ;;
7762 esac
7763 fi
7764 rm -rf conftest*
7765 ;;
7766esac
7767
7768need_locks="$enable_libtool_lock"
7769
7770
7771 case $host_os in
7772 rhapsody* | darwin*)
7773 if test -n "$ac_tool_prefix"; then
7774 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7775set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777$as_echo_n "checking for $ac_word... " >&6; }
7778if ${ac_cv_prog_DSYMUTIL+:} false; then :
7779 $as_echo_n "(cached) " >&6
7780else
7781 if test -n "$DSYMUTIL"; then
7782 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7783else
7784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7791 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 break 2
7794 fi
7795done
7796 done
7797IFS=$as_save_IFS
7798
7799fi
7800fi
7801DSYMUTIL=$ac_cv_prog_DSYMUTIL
7802if test -n "$DSYMUTIL"; then
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7804$as_echo "$DSYMUTIL" >&6; }
7805else
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807$as_echo "no" >&6; }
7808fi
7809
7810
7811fi
7812if test -z "$ac_cv_prog_DSYMUTIL"; then
7813 ac_ct_DSYMUTIL=$DSYMUTIL
7814 # Extract the first word of "dsymutil", so it can be a program name with args.
7815set dummy dsymutil; ac_word=$2
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817$as_echo_n "checking for $ac_word... " >&6; }
7818if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7819 $as_echo_n "(cached) " >&6
7820else
7821 if test -n "$ac_ct_DSYMUTIL"; then
7822 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7823else
7824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825for as_dir in $PATH
7826do
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7831 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 break 2
7834 fi
7835done
7836 done
7837IFS=$as_save_IFS
7838
7839fi
7840fi
7841ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7842if test -n "$ac_ct_DSYMUTIL"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7844$as_echo "$ac_ct_DSYMUTIL" >&6; }
7845else
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847$as_echo "no" >&6; }
7848fi
7849
7850 if test "x$ac_ct_DSYMUTIL" = x; then
7851 DSYMUTIL=":"
7852 else
7853 case $cross_compiling:$ac_tool_warned in
7854yes:)
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7857ac_tool_warned=yes ;;
7858esac
7859 DSYMUTIL=$ac_ct_DSYMUTIL
7860 fi
7861else
7862 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7863fi
7864
7865 if test -n "$ac_tool_prefix"; then
7866 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7867set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869$as_echo_n "checking for $ac_word... " >&6; }
7870if ${ac_cv_prog_NMEDIT+:} false; then :
7871 $as_echo_n "(cached) " >&6
7872else
7873 if test -n "$NMEDIT"; then
7874 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7875else
7876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877for as_dir in $PATH
7878do
7879 IFS=$as_save_IFS
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7883 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 break 2
7886 fi
7887done
7888 done
7889IFS=$as_save_IFS
7890
7891fi
7892fi
7893NMEDIT=$ac_cv_prog_NMEDIT
7894if test -n "$NMEDIT"; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7896$as_echo "$NMEDIT" >&6; }
7897else
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899$as_echo "no" >&6; }
7900fi
7901
7902
7903fi
7904if test -z "$ac_cv_prog_NMEDIT"; then
7905 ac_ct_NMEDIT=$NMEDIT
7906 # Extract the first word of "nmedit", so it can be a program name with args.
7907set dummy nmedit; ac_word=$2
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909$as_echo_n "checking for $ac_word... " >&6; }
7910if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7911 $as_echo_n "(cached) " >&6
7912else
7913 if test -n "$ac_ct_NMEDIT"; then
7914 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7915else
7916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917for as_dir in $PATH
7918do
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 break 2
7926 fi
7927done
7928 done
7929IFS=$as_save_IFS
7930
7931fi
7932fi
7933ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7934if test -n "$ac_ct_NMEDIT"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7936$as_echo "$ac_ct_NMEDIT" >&6; }
7937else
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939$as_echo "no" >&6; }
7940fi
7941
7942 if test "x$ac_ct_NMEDIT" = x; then
7943 NMEDIT=":"
7944 else
7945 case $cross_compiling:$ac_tool_warned in
7946yes:)
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7949ac_tool_warned=yes ;;
7950esac
7951 NMEDIT=$ac_ct_NMEDIT
7952 fi
7953else
7954 NMEDIT="$ac_cv_prog_NMEDIT"
7955fi
7956
7957 if test -n "$ac_tool_prefix"; then
7958 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7959set dummy ${ac_tool_prefix}lipo; ac_word=$2
7960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961$as_echo_n "checking for $ac_word... " >&6; }
7962if ${ac_cv_prog_LIPO+:} false; then :
7963 $as_echo_n "(cached) " >&6
7964else
7965 if test -n "$LIPO"; then
7966 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7967else
7968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969for as_dir in $PATH
7970do
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7975 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7978 fi
7979done
7980 done
7981IFS=$as_save_IFS
7982
7983fi
7984fi
7985LIPO=$ac_cv_prog_LIPO
7986if test -n "$LIPO"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7988$as_echo "$LIPO" >&6; }
7989else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991$as_echo "no" >&6; }
7992fi
7993
7994
7995fi
7996if test -z "$ac_cv_prog_LIPO"; then
7997 ac_ct_LIPO=$LIPO
7998 # Extract the first word of "lipo", so it can be a program name with args.
7999set dummy lipo; ac_word=$2
8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001$as_echo_n "checking for $ac_word... " >&6; }
8002if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8003 $as_echo_n "(cached) " >&6
8004else
8005 if test -n "$ac_ct_LIPO"; then
8006 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8007else
8008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009for as_dir in $PATH
8010do
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8015 ac_cv_prog_ac_ct_LIPO="lipo"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 break 2
8018 fi
8019done
8020 done
8021IFS=$as_save_IFS
8022
8023fi
8024fi
8025ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8026if test -n "$ac_ct_LIPO"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8028$as_echo "$ac_ct_LIPO" >&6; }
8029else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031$as_echo "no" >&6; }
8032fi
8033
8034 if test "x$ac_ct_LIPO" = x; then
8035 LIPO=":"
8036 else
8037 case $cross_compiling:$ac_tool_warned in
8038yes:)
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8041ac_tool_warned=yes ;;
8042esac
8043 LIPO=$ac_ct_LIPO
8044 fi
8045else
8046 LIPO="$ac_cv_prog_LIPO"
8047fi
8048
8049 if test -n "$ac_tool_prefix"; then
8050 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8051set dummy ${ac_tool_prefix}otool; ac_word=$2
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053$as_echo_n "checking for $ac_word... " >&6; }
8054if ${ac_cv_prog_OTOOL+:} false; then :
8055 $as_echo_n "(cached) " >&6
8056else
8057 if test -n "$OTOOL"; then
8058 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8059else
8060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061for as_dir in $PATH
8062do
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8067 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8070 fi
8071done
8072 done
8073IFS=$as_save_IFS
8074
8075fi
8076fi
8077OTOOL=$ac_cv_prog_OTOOL
8078if test -n "$OTOOL"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8080$as_echo "$OTOOL" >&6; }
8081else
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083$as_echo "no" >&6; }
8084fi
8085
8086
8087fi
8088if test -z "$ac_cv_prog_OTOOL"; then
8089 ac_ct_OTOOL=$OTOOL
8090 # Extract the first word of "otool", so it can be a program name with args.
8091set dummy otool; ac_word=$2
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093$as_echo_n "checking for $ac_word... " >&6; }
8094if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8095 $as_echo_n "(cached) " >&6
8096else
8097 if test -n "$ac_ct_OTOOL"; then
8098 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8099else
8100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101for as_dir in $PATH
8102do
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107 ac_cv_prog_ac_ct_OTOOL="otool"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8110 fi
8111done
8112 done
8113IFS=$as_save_IFS
8114
8115fi
8116fi
8117ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8118if test -n "$ac_ct_OTOOL"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8120$as_echo "$ac_ct_OTOOL" >&6; }
8121else
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123$as_echo "no" >&6; }
8124fi
8125
8126 if test "x$ac_ct_OTOOL" = x; then
8127 OTOOL=":"
8128 else
8129 case $cross_compiling:$ac_tool_warned in
8130yes:)
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8133ac_tool_warned=yes ;;
8134esac
8135 OTOOL=$ac_ct_OTOOL
8136 fi
8137else
8138 OTOOL="$ac_cv_prog_OTOOL"
8139fi
8140
8141 if test -n "$ac_tool_prefix"; then
8142 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8143set dummy ${ac_tool_prefix}otool64; ac_word=$2
8144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8145$as_echo_n "checking for $ac_word... " >&6; }
8146if ${ac_cv_prog_OTOOL64+:} false; then :
8147 $as_echo_n "(cached) " >&6
8148else
8149 if test -n "$OTOOL64"; then
8150 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8151else
8152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153for as_dir in $PATH
8154do
8155 IFS=$as_save_IFS
8156 test -z "$as_dir" && as_dir=.
8157 for ac_exec_ext in '' $ac_executable_extensions; do
8158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8159 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8161 break 2
8162 fi
8163done
8164 done
8165IFS=$as_save_IFS
8166
8167fi
8168fi
8169OTOOL64=$ac_cv_prog_OTOOL64
8170if test -n "$OTOOL64"; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8172$as_echo "$OTOOL64" >&6; }
8173else
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175$as_echo "no" >&6; }
8176fi
8177
8178
8179fi
8180if test -z "$ac_cv_prog_OTOOL64"; then
8181 ac_ct_OTOOL64=$OTOOL64
8182 # Extract the first word of "otool64", so it can be a program name with args.
8183set dummy otool64; ac_word=$2
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185$as_echo_n "checking for $ac_word... " >&6; }
8186if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8187 $as_echo_n "(cached) " >&6
8188else
8189 if test -n "$ac_ct_OTOOL64"; then
8190 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8191else
8192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193for as_dir in $PATH
8194do
8195 IFS=$as_save_IFS
8196 test -z "$as_dir" && as_dir=.
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8199 ac_cv_prog_ac_ct_OTOOL64="otool64"
8200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201 break 2
8202 fi
8203done
8204 done
8205IFS=$as_save_IFS
8206
8207fi
8208fi
8209ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8210if test -n "$ac_ct_OTOOL64"; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8212$as_echo "$ac_ct_OTOOL64" >&6; }
8213else
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215$as_echo "no" >&6; }
8216fi
8217
8218 if test "x$ac_ct_OTOOL64" = x; then
8219 OTOOL64=":"
8220 else
8221 case $cross_compiling:$ac_tool_warned in
8222yes:)
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8225ac_tool_warned=yes ;;
8226esac
8227 OTOOL64=$ac_ct_OTOOL64
8228 fi
8229else
8230 OTOOL64="$ac_cv_prog_OTOOL64"
8231fi
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8260$as_echo_n "checking for -single_module linker flag... " >&6; }
8261if ${lt_cv_apple_cc_single_mod+:} false; then :
8262 $as_echo_n "(cached) " >&6
8263else
8264 lt_cv_apple_cc_single_mod=no
8265 if test -z "${LT_MULTI_MODULE}"; then
8266 # By default we will add the -single_module flag. You can override
8267 # by either setting the environment variable LT_MULTI_MODULE
8268 # non-empty at configure time, or by adding -multi_module to the
8269 # link flags.
8270 rm -rf libconftest.dylib*
8271 echo "int foo(void){return 1;}" > conftest.c
8272 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8273-dynamiclib -Wl,-single_module conftest.c" >&5
8274 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8275 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8276 _lt_result=$?
8277 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8278 lt_cv_apple_cc_single_mod=yes
8279 else
8280 cat conftest.err >&5
8281 fi
8282 rm -rf libconftest.dylib*
8283 rm -f conftest.*
8284 fi
8285fi
8286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8287$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8289$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8290if ${lt_cv_ld_exported_symbols_list+:} false; then :
8291 $as_echo_n "(cached) " >&6
8292else
8293 lt_cv_ld_exported_symbols_list=no
8294 save_LDFLAGS=$LDFLAGS
8295 echo "_main" > conftest.sym
8296 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298/* end confdefs.h. */
8299
8300int
8301main ()
8302{
8303
8304 ;
8305 return 0;
8306}
8307_ACEOF
8308if ac_fn_c_try_link "$LINENO"; then :
8309 lt_cv_ld_exported_symbols_list=yes
8310else
8311 lt_cv_ld_exported_symbols_list=no
8312fi
8313rm -f core conftest.err conftest.$ac_objext \
8314 conftest$ac_exeext conftest.$ac_ext
8315 LDFLAGS="$save_LDFLAGS"
8316
8317fi
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8319$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8321$as_echo_n "checking for -force_load linker flag... " >&6; }
8322if ${lt_cv_ld_force_load+:} false; then :
8323 $as_echo_n "(cached) " >&6
8324else
8325 lt_cv_ld_force_load=no
8326 cat > conftest.c << _LT_EOF
8327int forced_loaded() { return 2;}
8328_LT_EOF
8329 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8330 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8331 echo "$AR cru libconftest.a conftest.o" >&5
8332 $AR cru libconftest.a conftest.o 2>&5
8333 cat > conftest.c << _LT_EOF
8334int main() { return 0;}
8335_LT_EOF
8336 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8337 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8338 _lt_result=$?
8339 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8340 lt_cv_ld_force_load=yes
8341 else
8342 cat conftest.err >&5
8343 fi
8344 rm -f conftest.err libconftest.a conftest conftest.c
8345 rm -rf conftest.dSYM
8346
8347fi
8348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8349$as_echo "$lt_cv_ld_force_load" >&6; }
6a6859cb
AM
8350 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8351 # build without first building modern cctools / linker.
8352 case $host_cpu-$host_os in
8353 *-rhapsody* | *-darwin1.[012])
b5689863 8354 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6a6859cb 8355 *-darwin1.*)
b5689863 8356 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6a6859cb
AM
8357 *-darwin*)
8358 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8359 # deployment target is forced to an earlier version.
8360 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8361 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8362 ;;
b5689863 8363 10.[012][,.]*)
6a6859cb
AM
8364 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8365 ;;
8366 *)
8367 ;;
8368 esac
b5689863
MF
8369 ;;
8370 esac
8371 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8372 _lt_dar_single_mod='$single_module'
8373 fi
8374 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8375 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8376 else
8377 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8378 fi
8379 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8380 _lt_dsymutil='~$DSYMUTIL $lib || :'
8381 else
8382 _lt_dsymutil=
8383 fi
8384 ;;
8385 esac
8386
8387for ac_header in dlfcn.h
8388do :
8389 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8390"
8391if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8392 cat >>confdefs.h <<_ACEOF
8393#define HAVE_DLFCN_H 1
8394_ACEOF
8395
8396fi
8397
8398done
8399
8400
8401ac_header_dirent=no
8402for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8403 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8405$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8406if eval \${$as_ac_Header+:} false; then :
8407 $as_echo_n "(cached) " >&6
8408else
8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410/* end confdefs.h. */
8411#include <sys/types.h>
8412#include <$ac_hdr>
8413
8414int
8415main ()
8416{
8417if ((DIR *) 0)
8418return 0;
8419 ;
8420 return 0;
8421}
8422_ACEOF
8423if ac_fn_c_try_compile "$LINENO"; then :
8424 eval "$as_ac_Header=yes"
8425else
8426 eval "$as_ac_Header=no"
8427fi
8428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429fi
8430eval ac_res=\$$as_ac_Header
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8432$as_echo "$ac_res" >&6; }
8433if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8434 cat >>confdefs.h <<_ACEOF
8435#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8436_ACEOF
8437
8438ac_header_dirent=$ac_hdr; break
8439fi
8440
8441done
8442# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8443if test $ac_header_dirent = dirent.h; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8445$as_echo_n "checking for library containing opendir... " >&6; }
8446if ${ac_cv_search_opendir+:} false; then :
8447 $as_echo_n "(cached) " >&6
8448else
8449 ac_func_search_save_LIBS=$LIBS
8450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451/* end confdefs.h. */
8452
8453/* Override any GCC internal prototype to avoid an error.
8454 Use char because int might match the return type of a GCC
8455 builtin and then its argument prototype would still apply. */
8456#ifdef __cplusplus
8457extern "C"
8458#endif
8459char opendir ();
8460int
8461main ()
8462{
8463return opendir ();
8464 ;
8465 return 0;
8466}
8467_ACEOF
8468for ac_lib in '' dir; do
8469 if test -z "$ac_lib"; then
8470 ac_res="none required"
8471 else
8472 ac_res=-l$ac_lib
8473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8474 fi
8475 if ac_fn_c_try_link "$LINENO"; then :
8476 ac_cv_search_opendir=$ac_res
8477fi
8478rm -f core conftest.err conftest.$ac_objext \
8479 conftest$ac_exeext
8480 if ${ac_cv_search_opendir+:} false; then :
8481 break
8482fi
8483done
8484if ${ac_cv_search_opendir+:} false; then :
8485
8486else
8487 ac_cv_search_opendir=no
8488fi
8489rm conftest.$ac_ext
8490LIBS=$ac_func_search_save_LIBS
8491fi
8492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8493$as_echo "$ac_cv_search_opendir" >&6; }
8494ac_res=$ac_cv_search_opendir
8495if test "$ac_res" != no; then :
8496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8497
8498fi
8499
8500else
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8502$as_echo_n "checking for library containing opendir... " >&6; }
8503if ${ac_cv_search_opendir+:} false; then :
8504 $as_echo_n "(cached) " >&6
8505else
8506 ac_func_search_save_LIBS=$LIBS
8507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508/* end confdefs.h. */
8509
8510/* Override any GCC internal prototype to avoid an error.
8511 Use char because int might match the return type of a GCC
8512 builtin and then its argument prototype would still apply. */
8513#ifdef __cplusplus
8514extern "C"
8515#endif
8516char opendir ();
8517int
8518main ()
8519{
8520return opendir ();
8521 ;
8522 return 0;
8523}
8524_ACEOF
8525for ac_lib in '' x; do
8526 if test -z "$ac_lib"; then
8527 ac_res="none required"
8528 else
8529 ac_res=-l$ac_lib
8530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8531 fi
8532 if ac_fn_c_try_link "$LINENO"; then :
8533 ac_cv_search_opendir=$ac_res
8534fi
8535rm -f core conftest.err conftest.$ac_objext \
8536 conftest$ac_exeext
8537 if ${ac_cv_search_opendir+:} false; then :
8538 break
8539fi
8540done
8541if ${ac_cv_search_opendir+:} false; then :
8542
8543else
8544 ac_cv_search_opendir=no
8545fi
8546rm conftest.$ac_ext
8547LIBS=$ac_func_search_save_LIBS
8548fi
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8550$as_echo "$ac_cv_search_opendir" >&6; }
8551ac_res=$ac_cv_search_opendir
8552if test "$ac_res" != no; then :
8553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8554
8555fi
8556
8557fi
8558
8559
8560
8561
b5689863
MF
8562ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8563#include <$ac_cv_struct_tm>
8564
8565"
8566if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8567
8568cat >>confdefs.h <<_ACEOF
8569#define HAVE_STRUCT_TM_TM_ZONE 1
8570_ACEOF
8571
8572
8573fi
8574
8575if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8576
8577$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8578
8579else
8580 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8581"
8582if test "x$ac_cv_have_decl_tzname" = xyes; then :
8583 ac_have_decl=1
8584else
8585 ac_have_decl=0
8586fi
8587
8588cat >>confdefs.h <<_ACEOF
8589#define HAVE_DECL_TZNAME $ac_have_decl
8590_ACEOF
8591
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8593$as_echo_n "checking for tzname... " >&6; }
8594if ${ac_cv_var_tzname+:} false; then :
8595 $as_echo_n "(cached) " >&6
8596else
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598/* end confdefs.h. */
8599#include <time.h>
a48ff3ef
MF
8600#if !HAVE_DECL_TZNAME
8601extern char *tzname[];
8602#endif
b5689863
MF
8603
8604int
8605main ()
8606{
8607return tzname[0][0];
8608 ;
8609 return 0;
8610}
8611_ACEOF
8612if ac_fn_c_try_link "$LINENO"; then :
8613 ac_cv_var_tzname=yes
8614else
8615 ac_cv_var_tzname=no
8616fi
8617rm -f core conftest.err conftest.$ac_objext \
8618 conftest$ac_exeext conftest.$ac_ext
8619fi
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8621$as_echo "$ac_cv_var_tzname" >&6; }
8622 if test $ac_cv_var_tzname = yes; then
8623
8624$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8625
8626 fi
8627fi
8628
8629
8630ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8631#include <sys/types.h>
8632#endif
b5689863 8633#include <sys/stat.h>
b5689863
MF
8634"
8635if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8636
8637cat >>confdefs.h <<_ACEOF
8638#define HAVE_STRUCT_STAT_ST_DEV 1
8639_ACEOF
8640
8641
8642fi
8643ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8644#include <sys/types.h>
8645#endif
b5689863 8646#include <sys/stat.h>
b5689863
MF
8647"
8648if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8649
8650cat >>confdefs.h <<_ACEOF
8651#define HAVE_STRUCT_STAT_ST_INO 1
8652_ACEOF
8653
8654
8655fi
8656ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8657#include <sys/types.h>
8658#endif
b5689863 8659#include <sys/stat.h>
b5689863
MF
8660"
8661if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8662
8663cat >>confdefs.h <<_ACEOF
8664#define HAVE_STRUCT_STAT_ST_MODE 1
8665_ACEOF
8666
8667
8668fi
8669ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8670#include <sys/types.h>
8671#endif
b5689863 8672#include <sys/stat.h>
b5689863
MF
8673"
8674if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8675
8676cat >>confdefs.h <<_ACEOF
8677#define HAVE_STRUCT_STAT_ST_NLINK 1
8678_ACEOF
8679
8680
8681fi
8682ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8683#include <sys/types.h>
8684#endif
b5689863 8685#include <sys/stat.h>
b5689863
MF
8686"
8687if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8688
8689cat >>confdefs.h <<_ACEOF
8690#define HAVE_STRUCT_STAT_ST_UID 1
8691_ACEOF
8692
8693
8694fi
8695ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8696#include <sys/types.h>
8697#endif
b5689863 8698#include <sys/stat.h>
b5689863
MF
8699"
8700if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8701
8702cat >>confdefs.h <<_ACEOF
8703#define HAVE_STRUCT_STAT_ST_GID 1
8704_ACEOF
8705
8706
8707fi
8708ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8709#include <sys/types.h>
8710#endif
b5689863 8711#include <sys/stat.h>
b5689863
MF
8712"
8713if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8714
8715cat >>confdefs.h <<_ACEOF
8716#define HAVE_STRUCT_STAT_ST_RDEV 1
8717_ACEOF
8718
8719
8720fi
8721ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8722#include <sys/types.h>
8723#endif
b5689863 8724#include <sys/stat.h>
b5689863
MF
8725"
8726if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8727
8728cat >>confdefs.h <<_ACEOF
8729#define HAVE_STRUCT_STAT_ST_SIZE 1
8730_ACEOF
8731
8732
8733fi
8734ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8735#include <sys/types.h>
8736#endif
b5689863 8737#include <sys/stat.h>
b5689863
MF
8738"
8739if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8740
8741cat >>confdefs.h <<_ACEOF
8742#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8743_ACEOF
8744
8745
8746fi
8747ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8748#include <sys/types.h>
8749#endif
b5689863 8750#include <sys/stat.h>
b5689863
MF
8751"
8752if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8753
8754cat >>confdefs.h <<_ACEOF
8755#define HAVE_STRUCT_STAT_ST_BLOCKS 1
8756_ACEOF
8757
8758
8759fi
8760ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8761#include <sys/types.h>
8762#endif
b5689863 8763#include <sys/stat.h>
b5689863
MF
8764"
8765if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8766
8767cat >>confdefs.h <<_ACEOF
8768#define HAVE_STRUCT_STAT_ST_ATIME 1
8769_ACEOF
8770
8771
8772fi
8773ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8774#include <sys/types.h>
8775#endif
b5689863 8776#include <sys/stat.h>
b5689863
MF
8777"
8778if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8779
8780cat >>confdefs.h <<_ACEOF
8781#define HAVE_STRUCT_STAT_ST_MTIME 1
8782_ACEOF
8783
8784
8785fi
8786ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8787#include <sys/types.h>
8788#endif
b5689863 8789#include <sys/stat.h>
b5689863
MF
8790"
8791if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8792
8793cat >>confdefs.h <<_ACEOF
8794#define HAVE_STRUCT_STAT_ST_CTIME 1
8795_ACEOF
8796
8797
8798fi
8799
8800
8801ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8802if test "x$ac_cv_type___int128" = xyes; then :
8803
8804cat >>confdefs.h <<_ACEOF
8805#define HAVE___INT128 1
8806_ACEOF
8807
8808
8809fi
8810
8811ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8812#include <sys/socket.h>
8813
8814"
8815if test "x$ac_cv_type_socklen_t" = xyes; then :
8816
8817cat >>confdefs.h <<_ACEOF
8818#define HAVE_SOCKLEN_T 1
8819_ACEOF
8820
8821
8822fi
8823
8824
08a7937f
MF
8825# The cast to long int works around a bug in the HP C Compiler
8826# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8827# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8828# This bug is HP SR number 8606223364.
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8830$as_echo_n "checking size of void *... " >&6; }
8831if ${ac_cv_sizeof_void_p+:} false; then :
8832 $as_echo_n "(cached) " >&6
8833else
8834 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
8835
8836else
8837 if test "$ac_cv_type_void_p" = yes; then
8838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8840as_fn_error 77 "cannot compute sizeof (void *)
8841See \`config.log' for more details" "$LINENO" 5; }
8842 else
8843 ac_cv_sizeof_void_p=0
8844 fi
8845fi
8846
8847fi
8848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8849$as_echo "$ac_cv_sizeof_void_p" >&6; }
8850
8851
8852
8853cat >>confdefs.h <<_ACEOF
8854#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8855_ACEOF
8856
8857
8858
d43207b0
MF
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
8860$as_echo_n "checking for struct statfs... " >&6; }
8861if ${sim_cv_struct_statfs+:} false; then :
8862 $as_echo_n "(cached) " >&6
8863else
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865/* end confdefs.h. */
8866
8867#include <sys/types.h>
8868#ifdef HAVE_SYS_PARAM_H
8869#include <sys/param.h>
8870#endif
8871#ifdef HAVE_SYS_MOUNT_H
8872#include <sys/mount.h>
8873#endif
8874#ifdef HAVE_SYS_VFS_H
8875#include <sys/vfs.h>
8876#endif
8877#ifdef HAVE_SYS_STATFS_H
8878#include <sys/statfs.h>
8879#endif
8880int
8881main ()
8882{
8883
8884 struct statfs s;
8885
8886 ;
8887 return 0;
8888}
8889_ACEOF
8890if ac_fn_c_try_compile "$LINENO"; then :
8891 sim_cv_struct_statfs="yes"
8892else
8893 sim_cv_struct_statfs="no"
8894fi
8895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8896fi
8897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_struct_statfs" >&5
8898$as_echo "$sim_cv_struct_statfs" >&6; }
8899if test x"sim_cv_struct_statfs" = x"yes"; then :
8900
8901$as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
8902
8903
8904fi
8905
d4720664
MF
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
8907$as_echo_n "checking if union semun defined... " >&6; }
8908if ${sim_cv_has_union_semun+:} false; then :
8909 $as_echo_n "(cached) " >&6
8910else
8911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912/* end confdefs.h. */
8913
8914#include <sys/types.h>
8915#include <sys/ipc.h>
8916#include <sys/sem.h>
8917int
8918main ()
8919{
8920
8921 union semun arg;
8922
8923 ;
8924 return 0;
8925}
8926_ACEOF
8927if ac_fn_c_try_compile "$LINENO"; then :
8928 sim_cv_has_union_semun="yes"
8929else
8930 sim_cv_has_union_semun="no"
8931fi
8932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933fi
8934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_has_union_semun" >&5
8935$as_echo "$sim_cv_has_union_semun" >&6; }
8936if test x"$sim_cv_has_union_semun" = x"yes"; then :
8937
8938$as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
8939
8940
8941fi
8942
8943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
8944$as_echo_n "checking whether System V semaphores are supported... " >&6; }
8945if ${sim_cv_sysv_sem+:} false; then :
8946 $as_echo_n "(cached) " >&6
8947else
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949/* end confdefs.h. */
8950
8951 #include <sys/types.h>
8952 #include <sys/ipc.h>
8953 #include <sys/sem.h>
8954#ifndef HAVE_UNION_SEMUN
8955 union semun {
8956 int val;
8957 struct semid_ds *buf;
8958 ushort *array;
8959 };
8960#endif
8961int
8962main ()
8963{
8964
8965 union semun arg;
8966 int id = semget(IPC_PRIVATE, 1, IPC_CREAT|0400);
8967 if (id == -1)
8968 return 1;
8969 arg.val = 0; /* avoid implicit type cast to union */
8970 if (semctl(id, 0, IPC_RMID, arg) == -1)
8971 return 1;
8972
8973 ;
8974 return 0;
8975}
8976_ACEOF
8977if ac_fn_c_try_compile "$LINENO"; then :
8978 sim_cv_sysv_sem="yes"
8979else
8980 sim_cv_sysv_sem="no"
8981fi
8982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983fi
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_sem" >&5
8985$as_echo "$sim_cv_sysv_sem" >&6; }
8986if test x"$sim_cv_sysv_sem" = x"yes"; then :
8987
8988$as_echo "#define HAVE_SYSV_SEM 1" >>confdefs.h
8989
8990
8991fi
8992
8993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
8994$as_echo_n "checking whether System V shared memory is supported... " >&6; }
8995if ${sim_cv_sysv_shm+:} false; then :
8996 $as_echo_n "(cached) " >&6
8997else
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999/* end confdefs.h. */
9000
9001#include <sys/types.h>
9002#include <sys/ipc.h>
9003#include <sys/shm.h>
9004int
9005main ()
9006{
9007
9008 int id = shmget(IPC_PRIVATE, 1, IPC_CREAT|0400);
9009 if (id == -1)
9010 return 1;
9011 if (shmctl(id, IPC_RMID, 0) == -1)
9012 return 1;
9013
9014 ;
9015 return 0;
9016}
9017_ACEOF
9018if ac_fn_c_try_compile "$LINENO"; then :
9019 sim_cv_sysv_shm="yes"
9020else
9021 sim_cv_sysv_shm="no"
9022fi
9023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024fi
9025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_shm" >&5
9026$as_echo "$sim_cv_sysv_shm" >&6; }
9027if test x"$sim_cv_sysv_shm" = x"yes"; then :
9028
9029$as_echo "#define HAVE_SYSV_SHM 1" >>confdefs.h
9030
9031
9032fi
9033
6bf212a8
MF
9034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
9035$as_echo_n "checking for struct termios... " >&6; }
9036if ${sim_cv_termios_struct+:} false; then :
9037 $as_echo_n "(cached) " >&6
9038else
9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040/* end confdefs.h. */
9041
9042#include <sys/types.h>
9043#include <sys/termios.h>
9044int
9045main ()
9046{
9047
9048 static struct termios x;
9049 x.c_iflag = 0;
9050 x.c_oflag = 0;
9051 x.c_cflag = 0;
9052 x.c_lflag = 0;
9053 x.c_cc[NCCS] = 0;
9054
9055 ;
9056 return 0;
9057}
9058_ACEOF
9059if ac_fn_c_try_compile "$LINENO"; then :
9060 sim_cv_termios_struct="yes"
9061else
9062 sim_cv_termios_struct="no"
9063fi
9064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065fi
9066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termios_struct" >&5
9067$as_echo "$sim_cv_termios_struct" >&6; }
9068if test $sim_cv_termios_struct = yes; then
9069
9070$as_echo "#define HAVE_TERMIOS_STRUCTURE 1" >>confdefs.h
9071
9072fi
9073
9074if test "$sim_cv_termios_struct" = "yes"; then
9075 if ${sim_cv_termios_cline+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077fi
9078
9079 ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
9080#include <sys/types.h>
9081#include <sys/termios.h>
9082
9083"
9084if test "x$ac_cv_member_struct_termios_c_line" = xyes; then :
9085 sim_cv_termios_cline="yes"
9086else
9087 sim_cv_termios_cline="no"
9088fi
9089
9090 if test $sim_cv_termios_cline = yes; then
9091
9092$as_echo "#define HAVE_TERMIOS_CLINE 1" >>confdefs.h
9093
9094 fi
9095else
9096 sim_cv_termios_cline=no
9097fi
9098
9099if test "$sim_cv_termios_struct" != "yes"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
9101$as_echo_n "checking for struct termio... " >&6; }
9102if ${sim_cv_termio_struct+:} false; then :
9103 $as_echo_n "(cached) " >&6
9104else
9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106/* end confdefs.h. */
9107
9108#include <sys/types.h>
9109#include <sys/termio.h>
9110int
9111main ()
9112{
9113
9114 static struct termio x;
9115 x.c_iflag = 0;
9116 x.c_oflag = 0;
9117 x.c_cflag = 0;
9118 x.c_lflag = 0;
9119 x.c_cc[NCC] = 0;
9120
9121 ;
9122 return 0;
9123}
9124_ACEOF
9125if ac_fn_c_try_compile "$LINENO"; then :
9126 sim_cv_termio_struct="yes"
9127else
9128 sim_cv_termio_struct="no"
9129fi
9130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9131fi
9132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termio_struct" >&5
9133$as_echo "$sim_cv_termio_struct" >&6; }
9134 if test $sim_cv_termio_struct = yes; then
9135
9136$as_echo "#define HAVE_TERMIO_STRUCTURE 1" >>confdefs.h
9137
9138 fi
9139else
9140 sim_cv_termio_struct=no
9141fi
9142
9143if test "$sim_cv_termio_struct" = "yes"; then
9144 if ${sim_cv_termio_cline+:} false; then :
9145 $as_echo_n "(cached) " >&6
9146fi
9147
9148 ac_fn_c_check_member "$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
9149#include <sys/types.h>
9150#include <sys/termio.h>
9151
9152"
9153if test "x$ac_cv_member_struct_termio_c_line" = xyes; then :
9154 sim_cv_termio_cline="yes"
9155else
9156 sim_cv_termio_cline="no"
9157fi
9158
9159 if test $sim_cv_termio_cline = yes; then
9160
9161$as_echo "#define HAVE_TERMIO_CLINE 1" >>confdefs.h
9162
9163 fi
9164else
9165 sim_cv_termio_cline=no
9166fi
9167
b5689863
MF
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
9169$as_echo_n "checking type of array argument to getgroups... " >&6; }
9170if ${ac_cv_type_getgroups+:} false; then :
9171 $as_echo_n "(cached) " >&6
9172else
9173 if test "$cross_compiling" = yes; then :
9174 ac_cv_type_getgroups=cross
9175else
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177/* end confdefs.h. */
9178/* Thanks to Mike Rendell for this test. */
9179$ac_includes_default
9180#define NGID 256
9181#undef MAX
9182#define MAX(x, y) ((x) > (y) ? (x) : (y))
9183
9184int
9185main ()
9186{
9187 gid_t gidset[NGID];
9188 int i, n;
9189 union { gid_t gval; long int lval; } val;
9190
9191 val.lval = -1;
9192 for (i = 0; i < NGID; i++)
9193 gidset[i] = val.gval;
9194 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9195 gidset);
9196 /* Exit non-zero if getgroups seems to require an array of ints. This
9197 happens when gid_t is short int but getgroups modifies an array
9198 of ints. */
9199 return n > 0 && gidset[n] != val.gval;
9200}
9201_ACEOF
9202if ac_fn_c_try_run "$LINENO"; then :
9203 ac_cv_type_getgroups=gid_t
9204else
9205 ac_cv_type_getgroups=int
9206fi
9207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9208 conftest.$ac_objext conftest.beam conftest.$ac_ext
9209fi
9210
9211if test $ac_cv_type_getgroups = cross; then
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213/* end confdefs.h. */
9214#include <unistd.h>
9215
9216_ACEOF
9217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9218 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
9219 ac_cv_type_getgroups=gid_t
9220else
9221 ac_cv_type_getgroups=int
9222fi
9223rm -f conftest*
9224
9225fi
9226fi
9227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
9228$as_echo "$ac_cv_type_getgroups" >&6; }
9229
9230cat >>confdefs.h <<_ACEOF
9231#define GETGROUPS_T $ac_cv_type_getgroups
9232_ACEOF
9233
9234
9235ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9236if test "x$ac_cv_type_mode_t" = xyes; then :
9237
9238else
9239
9240cat >>confdefs.h <<_ACEOF
9241#define mode_t int
9242_ACEOF
9243
9244fi
9245
9246ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9247if test "x$ac_cv_type_off_t" = xyes; then :
9248
9249else
9250
9251cat >>confdefs.h <<_ACEOF
9252#define off_t long int
9253_ACEOF
9254
9255fi
9256
9257ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9258if test "x$ac_cv_type_pid_t" = xyes; then :
9259
9260else
9261
9262cat >>confdefs.h <<_ACEOF
9263#define pid_t int
9264_ACEOF
9265
9266fi
9267
b5689863
MF
9268ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9269if test "x$ac_cv_type_size_t" = xyes; then :
9270
9271else
9272
9273cat >>confdefs.h <<_ACEOF
9274#define size_t unsigned int
9275_ACEOF
9276
9277fi
9278
9279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9280$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9281if ${ac_cv_type_uid_t+:} false; then :
9282 $as_echo_n "(cached) " >&6
9283else
9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285/* end confdefs.h. */
9286#include <sys/types.h>
9287
9288_ACEOF
9289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9290 $EGREP "uid_t" >/dev/null 2>&1; then :
9291 ac_cv_type_uid_t=yes
9292else
9293 ac_cv_type_uid_t=no
9294fi
9295rm -f conftest*
9296
9297fi
9298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9299$as_echo "$ac_cv_type_uid_t" >&6; }
9300if test $ac_cv_type_uid_t = no; then
9301
9302$as_echo "#define uid_t int" >>confdefs.h
9303
9304
9305$as_echo "#define gid_t int" >>confdefs.h
9306
9307fi
9308
9309
b5689863
MF
9310
9311
9312
9313
9314# Set options
b5689863
MF
9315
9316
9317
89cf99a9
MF
9318 enable_dlopen=no
9319
b5689863
MF
9320
9321 enable_win32_dll=no
9322
9323
9324 # Check whether --enable-shared was given.
9325if test "${enable_shared+set}" = set; then :
9326 enableval=$enable_shared; p=${PACKAGE-default}
9327 case $enableval in
9328 yes) enable_shared=yes ;;
9329 no) enable_shared=no ;;
9330 *)
9331 enable_shared=no
9332 # Look at the argument we got. We use all the common list separators.
9333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9334 for pkg in $enableval; do
9335 IFS="$lt_save_ifs"
9336 if test "X$pkg" = "X$p"; then
9337 enable_shared=yes
9338 fi
9339 done
9340 IFS="$lt_save_ifs"
9341 ;;
9342 esac
9343else
9344 enable_shared=yes
9345fi
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355 # Check whether --enable-static was given.
9356if test "${enable_static+set}" = set; then :
9357 enableval=$enable_static; p=${PACKAGE-default}
9358 case $enableval in
9359 yes) enable_static=yes ;;
9360 no) enable_static=no ;;
9361 *)
9362 enable_static=no
9363 # Look at the argument we got. We use all the common list separators.
9364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9365 for pkg in $enableval; do
9366 IFS="$lt_save_ifs"
9367 if test "X$pkg" = "X$p"; then
9368 enable_static=yes
9369 fi
9370 done
9371 IFS="$lt_save_ifs"
9372 ;;
9373 esac
9374else
9375 enable_static=yes
9376fi
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387# Check whether --with-pic was given.
9388if test "${with_pic+set}" = set; then :
9389 withval=$with_pic; pic_mode="$withval"
9390else
9391 pic_mode=default
9392fi
9393
9394
9395test -z "$pic_mode" && pic_mode=default
9396
9397
9398
9399
9400
9401
9402
9403 # Check whether --enable-fast-install was given.
9404if test "${enable_fast_install+set}" = set; then :
9405 enableval=$enable_fast_install; p=${PACKAGE-default}
9406 case $enableval in
9407 yes) enable_fast_install=yes ;;
9408 no) enable_fast_install=no ;;
9409 *)
9410 enable_fast_install=no
9411 # Look at the argument we got. We use all the common list separators.
9412 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9413 for pkg in $enableval; do
9414 IFS="$lt_save_ifs"
9415 if test "X$pkg" = "X$p"; then
9416 enable_fast_install=yes
9417 fi
9418 done
9419 IFS="$lt_save_ifs"
9420 ;;
9421 esac
9422else
9423 enable_fast_install=yes
9424fi
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436# This can be used to rebuild libtool when needed
9437LIBTOOL_DEPS="$ltmain"
9438
9439# Always use our own libtool.
9440LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467test -z "$LN_S" && LN_S="ln -s"
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482if test -n "${ZSH_VERSION+set}" ; then
9483 setopt NO_GLOB_SUBST
9484fi
9485
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9487$as_echo_n "checking for objdir... " >&6; }
9488if ${lt_cv_objdir+:} false; then :
9489 $as_echo_n "(cached) " >&6
9490else
9491 rm -f .libs 2>/dev/null
9492mkdir .libs 2>/dev/null
9493if test -d .libs; then
9494 lt_cv_objdir=.libs
9495else
9496 # MS-DOS does not allow filenames that begin with a dot.
9497 lt_cv_objdir=_libs
9498fi
9499rmdir .libs 2>/dev/null
9500fi
9501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9502$as_echo "$lt_cv_objdir" >&6; }
9503objdir=$lt_cv_objdir
9504
9505
9506
9507
9508
9509cat >>confdefs.h <<_ACEOF
9510#define LT_OBJDIR "$lt_cv_objdir/"
9511_ACEOF
9512
9513
9514
9515
9516case $host_os in
9517aix3*)
9518 # AIX sometimes has problems with the GCC collect2 program. For some
9519 # reason, if we set the COLLECT_NAMES environment variable, the problems
9520 # vanish in a puff of smoke.
9521 if test "X${COLLECT_NAMES+set}" != Xset; then
9522 COLLECT_NAMES=
9523 export COLLECT_NAMES
9524 fi
9525 ;;
9526esac
9527
9528# Global variables:
9529ofile=libtool
9530can_build_shared=yes
9531
9532# All known linkers require a `.a' archive for static linking (except MSVC,
9533# which needs '.lib').
9534libext=a
9535
9536with_gnu_ld="$lt_cv_prog_gnu_ld"
9537
9538old_CC="$CC"
9539old_CFLAGS="$CFLAGS"
9540
9541# Set sane defaults for various variables
9542test -z "$CC" && CC=cc
9543test -z "$LTCC" && LTCC=$CC
9544test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9545test -z "$LD" && LD=ld
9546test -z "$ac_objext" && ac_objext=o
9547
9548for cc_temp in $compiler""; do
9549 case $cc_temp in
9550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9552 \-*) ;;
9553 *) break;;
9554 esac
9555done
9556cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9557
9558
9559# Only perform the check for file, if the check method requires it
9560test -z "$MAGIC_CMD" && MAGIC_CMD=file
9561case $deplibs_check_method in
9562file_magic*)
9563 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9565$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9566if ${lt_cv_path_MAGIC_CMD+:} false; then :
9567 $as_echo_n "(cached) " >&6
9568else
9569 case $MAGIC_CMD in
9570[\\/*] | ?:[\\/]*)
9571 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9572 ;;
9573*)
9574 lt_save_MAGIC_CMD="$MAGIC_CMD"
9575 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9576 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9577 for ac_dir in $ac_dummy; do
9578 IFS="$lt_save_ifs"
9579 test -z "$ac_dir" && ac_dir=.
9580 if test -f $ac_dir/${ac_tool_prefix}file; then
9581 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9582 if test -n "$file_magic_test_file"; then
9583 case $deplibs_check_method in
9584 "file_magic "*)
9585 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9587 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9588 $EGREP "$file_magic_regex" > /dev/null; then
9589 :
9590 else
9591 cat <<_LT_EOF 1>&2
9592
9593*** Warning: the command libtool uses to detect shared libraries,
9594*** $file_magic_cmd, produces output that libtool cannot recognize.
9595*** The result is that libtool may fail to recognize shared libraries
9596*** as such. This will affect the creation of libtool libraries that
9597*** depend on shared libraries, but programs linked with such libtool
9598*** libraries will work regardless of this problem. Nevertheless, you
9599*** may want to report the problem to your system manager and/or to
9600*** bug-libtool@gnu.org
9601
9602_LT_EOF
9603 fi ;;
9604 esac
9605 fi
9606 break
9607 fi
9608 done
9609 IFS="$lt_save_ifs"
9610 MAGIC_CMD="$lt_save_MAGIC_CMD"
9611 ;;
9612esac
9613fi
9614
9615MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9616if test -n "$MAGIC_CMD"; then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9618$as_echo "$MAGIC_CMD" >&6; }
9619else
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9621$as_echo "no" >&6; }
9622fi
9623
9624
9625
9626
9627
9628if test -z "$lt_cv_path_MAGIC_CMD"; then
9629 if test -n "$ac_tool_prefix"; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9631$as_echo_n "checking for file... " >&6; }
9632if ${lt_cv_path_MAGIC_CMD+:} false; then :
9633 $as_echo_n "(cached) " >&6
9634else
9635 case $MAGIC_CMD in
9636[\\/*] | ?:[\\/]*)
9637 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9638 ;;
9639*)
9640 lt_save_MAGIC_CMD="$MAGIC_CMD"
9641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9642 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9643 for ac_dir in $ac_dummy; do
9644 IFS="$lt_save_ifs"
9645 test -z "$ac_dir" && ac_dir=.
9646 if test -f $ac_dir/file; then
9647 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9648 if test -n "$file_magic_test_file"; then
9649 case $deplibs_check_method in
9650 "file_magic "*)
9651 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9652 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9653 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9654 $EGREP "$file_magic_regex" > /dev/null; then
9655 :
9656 else
9657 cat <<_LT_EOF 1>&2
9658
9659*** Warning: the command libtool uses to detect shared libraries,
9660*** $file_magic_cmd, produces output that libtool cannot recognize.
9661*** The result is that libtool may fail to recognize shared libraries
9662*** as such. This will affect the creation of libtool libraries that
9663*** depend on shared libraries, but programs linked with such libtool
9664*** libraries will work regardless of this problem. Nevertheless, you
9665*** may want to report the problem to your system manager and/or to
9666*** bug-libtool@gnu.org
9667
9668_LT_EOF
9669 fi ;;
9670 esac
9671 fi
9672 break
9673 fi
9674 done
9675 IFS="$lt_save_ifs"
9676 MAGIC_CMD="$lt_save_MAGIC_CMD"
9677 ;;
9678esac
9679fi
9680
9681MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9682if test -n "$MAGIC_CMD"; then
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9684$as_echo "$MAGIC_CMD" >&6; }
9685else
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687$as_echo "no" >&6; }
9688fi
9689
9690
9691 else
9692 MAGIC_CMD=:
9693 fi
9694fi
9695
9696 fi
9697 ;;
9698esac
9699
9700# Use C for the default configuration in the libtool script
9701
9702lt_save_CC="$CC"
9703ac_ext=c
9704ac_cpp='$CPP $CPPFLAGS'
9705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9707ac_compiler_gnu=$ac_cv_c_compiler_gnu
9708
9709
9710# Source file extension for C test sources.
9711ac_ext=c
9712
9713# Object file extension for compiled C test sources.
9714objext=o
9715objext=$objext
9716
9717# Code to be used in simple compile tests
9718lt_simple_compile_test_code="int some_variable = 0;"
9719
9720# Code to be used in simple link tests
9721lt_simple_link_test_code='int main(){return(0);}'
9722
9723
9724
9725
9726
9727
9728
9729# If no C compiler was specified, use CC.
9730LTCC=${LTCC-"$CC"}
9731
9732# If no C compiler flags were specified, use CFLAGS.
9733LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9734
9735# Allow CC to be a program name with arguments.
9736compiler=$CC
9737
9738# Save the default compiler, since it gets overwritten when the other
9739# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9740compiler_DEFAULT=$CC
9741
9742# save warnings/boilerplate of simple test code
9743ac_outfile=conftest.$ac_objext
9744echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9745eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9746_lt_compiler_boilerplate=`cat conftest.err`
9747$RM conftest*
9748
9749ac_outfile=conftest.$ac_objext
9750echo "$lt_simple_link_test_code" >conftest.$ac_ext
9751eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9752_lt_linker_boilerplate=`cat conftest.err`
9753$RM -r conftest*
9754
9755
9756## CAVEAT EMPTOR:
9757## There is no encapsulation within the following macros, do not change
9758## the running order or otherwise move them around unless you know exactly
9759## what you are doing...
9760if test -n "$compiler"; then
9761
9762lt_prog_compiler_no_builtin_flag=
9763
9764if test "$GCC" = yes; then
9765 case $cc_basename in
9766 nvcc*)
9767 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9768 *)
9769 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9770 esac
9771
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9773$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9774if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9775 $as_echo_n "(cached) " >&6
9776else
9777 lt_cv_prog_compiler_rtti_exceptions=no
9778 ac_outfile=conftest.$ac_objext
9779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9780 lt_compiler_flag="-fno-rtti -fno-exceptions"
9781 # Insert the option either (1) after the last *FLAGS variable, or
9782 # (2) before a word containing "conftest.", or (3) at the end.
9783 # Note that $ac_compile itself does not contain backslashes and begins
9784 # with a dollar sign (not a hyphen), so the echo should work correctly.
9785 # The option is referenced via a variable to avoid confusing sed.
9786 lt_compile=`echo "$ac_compile" | $SED \
9787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9789 -e 's:$: $lt_compiler_flag:'`
9790 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9791 (eval "$lt_compile" 2>conftest.err)
9792 ac_status=$?
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 if (exit $ac_status) && test -s "$ac_outfile"; then
9796 # The compiler can only warn and ignore the option if not recognized
9797 # So say no if there are warnings other than the usual output.
9798 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9800 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9801 lt_cv_prog_compiler_rtti_exceptions=yes
9802 fi
9803 fi
9804 $RM conftest*
9805
9806fi
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9808$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9809
9810if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9811 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9812else
9813 :
9814fi
9815
9816fi
9817
9818
9819
9820
9821
9822
9823 lt_prog_compiler_wl=
9824lt_prog_compiler_pic=
9825lt_prog_compiler_static=
9826
9827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9828$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9829
9830 if test "$GCC" = yes; then
9831 lt_prog_compiler_wl='-Wl,'
9832 lt_prog_compiler_static='-static'
9833
9834 case $host_os in
9835 aix*)
9836 # All AIX code is PIC.
9837 if test "$host_cpu" = ia64; then
9838 # AIX 5 now supports IA64 processor
9839 lt_prog_compiler_static='-Bstatic'
9840 fi
9841 lt_prog_compiler_pic='-fPIC'
9842 ;;
9843
9844 amigaos*)
9845 case $host_cpu in
9846 powerpc)
9847 # see comment about AmigaOS4 .so support
9848 lt_prog_compiler_pic='-fPIC'
9849 ;;
9850 m68k)
9851 # FIXME: we need at least 68020 code to build shared libraries, but
9852 # adding the `-m68020' flag to GCC prevents building anything better,
9853 # like `-m68040'.
9854 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9855 ;;
9856 esac
9857 ;;
9858
9859 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9860 # PIC is the default for these OSes.
9861 ;;
9862
9863 mingw* | cygwin* | pw32* | os2* | cegcc*)
9864 # This hack is so that the source file can tell whether it is being
9865 # built for inclusion in a dll (and should export symbols for example).
9866 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9867 # (--disable-auto-import) libraries
9868 lt_prog_compiler_pic='-DDLL_EXPORT'
9869 ;;
9870
9871 darwin* | rhapsody*)
9872 # PIC is the default on this platform
9873 # Common symbols not allowed in MH_DYLIB files
9874 lt_prog_compiler_pic='-fno-common'
9875 ;;
9876
9877 haiku*)
9878 # PIC is the default for Haiku.
9879 # The "-static" flag exists, but is broken.
9880 lt_prog_compiler_static=
9881 ;;
9882
9883 hpux*)
9884 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9885 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9886 # sets the default TLS model and affects inlining.
9887 case $host_cpu in
9888 hppa*64*)
9889 # +Z the default
9890 ;;
9891 *)
9892 lt_prog_compiler_pic='-fPIC'
9893 ;;
9894 esac
9895 ;;
9896
9897 interix[3-9]*)
9898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9899 # Instead, we relocate shared libraries at runtime.
9900 ;;
9901
9902 msdosdjgpp*)
9903 # Just because we use GCC doesn't mean we suddenly get shared libraries
9904 # on systems that don't support them.
9905 lt_prog_compiler_can_build_shared=no
9906 enable_shared=no
9907 ;;
9908
9909 *nto* | *qnx*)
9910 # QNX uses GNU C++, but need to define -shared option too, otherwise
9911 # it will coredump.
9912 lt_prog_compiler_pic='-fPIC -shared'
9913 ;;
9914
9915 sysv4*MP*)
9916 if test -d /usr/nec; then
9917 lt_prog_compiler_pic=-Kconform_pic
9918 fi
9919 ;;
9920
9921 *)
9922 lt_prog_compiler_pic='-fPIC'
9923 ;;
9924 esac
9925
9926 case $cc_basename in
9927 nvcc*) # Cuda Compiler Driver 2.2
9928 lt_prog_compiler_wl='-Xlinker '
9929 lt_prog_compiler_pic='-Xcompiler -fPIC'
9930 ;;
9931 esac
9932 else
9933 # PORTME Check for flag to pass linker flags through the system compiler.
9934 case $host_os in
9935 aix*)
9936 lt_prog_compiler_wl='-Wl,'
9937 if test "$host_cpu" = ia64; then
9938 # AIX 5 now supports IA64 processor
9939 lt_prog_compiler_static='-Bstatic'
9940 else
9941 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9942 fi
9943 ;;
9944
9945 mingw* | cygwin* | pw32* | os2* | cegcc*)
9946 # This hack is so that the source file can tell whether it is being
9947 # built for inclusion in a dll (and should export symbols for example).
9948 lt_prog_compiler_pic='-DDLL_EXPORT'
9949 ;;
9950
9951 hpux9* | hpux10* | hpux11*)
9952 lt_prog_compiler_wl='-Wl,'
9953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9954 # not for PA HP-UX.
9955 case $host_cpu in
9956 hppa*64*|ia64*)
9957 # +Z the default
9958 ;;
9959 *)
9960 lt_prog_compiler_pic='+Z'
9961 ;;
9962 esac
9963 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9964 lt_prog_compiler_static='${wl}-a ${wl}archive'
9965 ;;
9966
9967 irix5* | irix6* | nonstopux*)
9968 lt_prog_compiler_wl='-Wl,'
9969 # PIC (with -KPIC) is the default.
9970 lt_prog_compiler_static='-non_shared'
9971 ;;
9972
9973 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9974 case $cc_basename in
9975 # old Intel for x86_64 which still supported -KPIC.
9976 ecc*)
9977 lt_prog_compiler_wl='-Wl,'
9978 lt_prog_compiler_pic='-KPIC'
9979 lt_prog_compiler_static='-static'
9980 ;;
9981 # icc used to be incompatible with GCC.
9982 # ICC 10 doesn't accept -KPIC any more.
9983 icc* | ifort*)
9984 lt_prog_compiler_wl='-Wl,'
9985 lt_prog_compiler_pic='-fPIC'
9986 lt_prog_compiler_static='-static'
9987 ;;
9988 # Lahey Fortran 8.1.
9989 lf95*)
9990 lt_prog_compiler_wl='-Wl,'
9991 lt_prog_compiler_pic='--shared'
9992 lt_prog_compiler_static='--static'
9993 ;;
9994 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9995 # Portland Group compilers (*not* the Pentium gcc compiler,
9996 # which looks to be a dead project)
9997 lt_prog_compiler_wl='-Wl,'
9998 lt_prog_compiler_pic='-fpic'
9999 lt_prog_compiler_static='-Bstatic'
10000 ;;
10001 ccc*)
10002 lt_prog_compiler_wl='-Wl,'
10003 # All Alpha code is PIC.
10004 lt_prog_compiler_static='-non_shared'
10005 ;;
10006 xl* | bgxl* | bgf* | mpixl*)
10007 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10008 lt_prog_compiler_wl='-Wl,'
10009 lt_prog_compiler_pic='-qpic'
10010 lt_prog_compiler_static='-qstaticlink'
10011 ;;
10012 *)
10013 case `$CC -V 2>&1 | sed 5q` in
10014 *Sun\ F* | *Sun*Fortran*)
10015 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10016 lt_prog_compiler_pic='-KPIC'
10017 lt_prog_compiler_static='-Bstatic'
10018 lt_prog_compiler_wl=''
10019 ;;
10020 *Sun\ C*)
10021 # Sun C 5.9
10022 lt_prog_compiler_pic='-KPIC'
10023 lt_prog_compiler_static='-Bstatic'
10024 lt_prog_compiler_wl='-Wl,'
10025 ;;
10026 esac
10027 ;;
10028 esac
10029 ;;
10030
10031 newsos6)
10032 lt_prog_compiler_pic='-KPIC'
10033 lt_prog_compiler_static='-Bstatic'
10034 ;;
10035
10036 *nto* | *qnx*)
10037 # QNX uses GNU C++, but need to define -shared option too, otherwise
10038 # it will coredump.
10039 lt_prog_compiler_pic='-fPIC -shared'
10040 ;;
10041
10042 osf3* | osf4* | osf5*)
10043 lt_prog_compiler_wl='-Wl,'
10044 # All OSF/1 code is PIC.
10045 lt_prog_compiler_static='-non_shared'
10046 ;;
10047
10048 rdos*)
10049 lt_prog_compiler_static='-non_shared'
10050 ;;
10051
10052 solaris*)
10053 lt_prog_compiler_pic='-KPIC'
10054 lt_prog_compiler_static='-Bstatic'
10055 case $cc_basename in
10056 f77* | f90* | f95*)
10057 lt_prog_compiler_wl='-Qoption ld ';;
10058 *)
10059 lt_prog_compiler_wl='-Wl,';;
10060 esac
10061 ;;
10062
10063 sunos4*)
10064 lt_prog_compiler_wl='-Qoption ld '
10065 lt_prog_compiler_pic='-PIC'
10066 lt_prog_compiler_static='-Bstatic'
10067 ;;
10068
10069 sysv4 | sysv4.2uw2* | sysv4.3*)
10070 lt_prog_compiler_wl='-Wl,'
10071 lt_prog_compiler_pic='-KPIC'
10072 lt_prog_compiler_static='-Bstatic'
10073 ;;
10074
10075 sysv4*MP*)
10076 if test -d /usr/nec ;then
10077 lt_prog_compiler_pic='-Kconform_pic'
10078 lt_prog_compiler_static='-Bstatic'
10079 fi
10080 ;;
10081
10082 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10083 lt_prog_compiler_wl='-Wl,'
10084 lt_prog_compiler_pic='-KPIC'
10085 lt_prog_compiler_static='-Bstatic'
10086 ;;
10087
10088 unicos*)
10089 lt_prog_compiler_wl='-Wl,'
10090 lt_prog_compiler_can_build_shared=no
10091 ;;
10092
10093 uts4*)
10094 lt_prog_compiler_pic='-pic'
10095 lt_prog_compiler_static='-Bstatic'
10096 ;;
10097
10098 *)
10099 lt_prog_compiler_can_build_shared=no
10100 ;;
10101 esac
10102 fi
10103
10104case $host_os in
10105 # For platforms which do not support PIC, -DPIC is meaningless:
10106 *djgpp*)
10107 lt_prog_compiler_pic=
10108 ;;
10109 *)
10110 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10111 ;;
10112esac
10113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10114$as_echo "$lt_prog_compiler_pic" >&6; }
10115
10116
10117
10118
10119
10120
10121#
10122# Check to make sure the PIC flag actually works.
10123#
10124if test -n "$lt_prog_compiler_pic"; then
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10126$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10127if ${lt_cv_prog_compiler_pic_works+:} false; then :
10128 $as_echo_n "(cached) " >&6
10129else
10130 lt_cv_prog_compiler_pic_works=no
10131 ac_outfile=conftest.$ac_objext
10132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10133 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10134 # Insert the option either (1) after the last *FLAGS variable, or
10135 # (2) before a word containing "conftest.", or (3) at the end.
10136 # Note that $ac_compile itself does not contain backslashes and begins
10137 # with a dollar sign (not a hyphen), so the echo should work correctly.
10138 # The option is referenced via a variable to avoid confusing sed.
10139 lt_compile=`echo "$ac_compile" | $SED \
10140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10142 -e 's:$: $lt_compiler_flag:'`
10143 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10144 (eval "$lt_compile" 2>conftest.err)
10145 ac_status=$?
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 if (exit $ac_status) && test -s "$ac_outfile"; then
10149 # The compiler can only warn and ignore the option if not recognized
10150 # So say no if there are warnings other than the usual output.
10151 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10153 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10154 lt_cv_prog_compiler_pic_works=yes
10155 fi
10156 fi
10157 $RM conftest*
10158
10159fi
10160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10161$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10162
10163if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10164 case $lt_prog_compiler_pic in
10165 "" | " "*) ;;
10166 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10167 esac
10168else
10169 lt_prog_compiler_pic=
10170 lt_prog_compiler_can_build_shared=no
10171fi
10172
10173fi
10174
10175
10176
10177
10178
10179
10180#
10181# Check to make sure the static flag actually works.
10182#
10183wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10185$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10186if ${lt_cv_prog_compiler_static_works+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188else
10189 lt_cv_prog_compiler_static_works=no
10190 save_LDFLAGS="$LDFLAGS"
10191 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10192 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10193 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10194 # The linker can only warn and ignore the option if not recognized
10195 # So say no if there are warnings
10196 if test -s conftest.err; then
10197 # Append any errors to the config.log.
10198 cat conftest.err 1>&5
10199 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10201 if diff conftest.exp conftest.er2 >/dev/null; then
10202 lt_cv_prog_compiler_static_works=yes
10203 fi
10204 else
10205 lt_cv_prog_compiler_static_works=yes
10206 fi
10207 fi
10208 $RM -r conftest*
10209 LDFLAGS="$save_LDFLAGS"
10210
10211fi
10212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10213$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10214
10215if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10216 :
10217else
10218 lt_prog_compiler_static=
10219fi
10220
10221
10222
10223
10224
10225
10226
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10228$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10229if ${lt_cv_prog_compiler_c_o+:} false; then :
10230 $as_echo_n "(cached) " >&6
10231else
10232 lt_cv_prog_compiler_c_o=no
10233 $RM -r conftest 2>/dev/null
10234 mkdir conftest
10235 cd conftest
10236 mkdir out
10237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10238
10239 lt_compiler_flag="-o out/conftest2.$ac_objext"
10240 # Insert the option either (1) after the last *FLAGS variable, or
10241 # (2) before a word containing "conftest.", or (3) at the end.
10242 # Note that $ac_compile itself does not contain backslashes and begins
10243 # with a dollar sign (not a hyphen), so the echo should work correctly.
10244 lt_compile=`echo "$ac_compile" | $SED \
10245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10247 -e 's:$: $lt_compiler_flag:'`
10248 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10249 (eval "$lt_compile" 2>out/conftest.err)
10250 ac_status=$?
10251 cat out/conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10254 then
10255 # The compiler can only warn and ignore the option if not recognized
10256 # So say no if there are warnings
10257 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10258 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10259 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10260 lt_cv_prog_compiler_c_o=yes
10261 fi
10262 fi
10263 chmod u+w . 2>&5
10264 $RM conftest*
10265 # SGI C++ compiler will create directory out/ii_files/ for
10266 # template instantiation
10267 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10268 $RM out/* && rmdir out
10269 cd ..
10270 $RM -r conftest
10271 $RM conftest*
10272
10273fi
10274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10275$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10276
10277
10278
10279
10280
10281
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10283$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10284if ${lt_cv_prog_compiler_c_o+:} false; then :
10285 $as_echo_n "(cached) " >&6
10286else
10287 lt_cv_prog_compiler_c_o=no
10288 $RM -r conftest 2>/dev/null
10289 mkdir conftest
10290 cd conftest
10291 mkdir out
10292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10293
10294 lt_compiler_flag="-o out/conftest2.$ac_objext"
10295 # Insert the option either (1) after the last *FLAGS variable, or
10296 # (2) before a word containing "conftest.", or (3) at the end.
10297 # Note that $ac_compile itself does not contain backslashes and begins
10298 # with a dollar sign (not a hyphen), so the echo should work correctly.
10299 lt_compile=`echo "$ac_compile" | $SED \
10300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10302 -e 's:$: $lt_compiler_flag:'`
10303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10304 (eval "$lt_compile" 2>out/conftest.err)
10305 ac_status=$?
10306 cat out/conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10309 then
10310 # The compiler can only warn and ignore the option if not recognized
10311 # So say no if there are warnings
10312 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10313 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10314 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10315 lt_cv_prog_compiler_c_o=yes
10316 fi
10317 fi
10318 chmod u+w . 2>&5
10319 $RM conftest*
10320 # SGI C++ compiler will create directory out/ii_files/ for
10321 # template instantiation
10322 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10323 $RM out/* && rmdir out
10324 cd ..
10325 $RM -r conftest
10326 $RM conftest*
10327
10328fi
10329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10330$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10331
10332
10333
10334
10335hard_links="nottested"
10336if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10337 # do not overwrite the value of need_locks provided by the user
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10339$as_echo_n "checking if we can lock with hard links... " >&6; }
10340 hard_links=yes
10341 $RM conftest*
10342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10343 touch conftest.a
10344 ln conftest.a conftest.b 2>&5 || hard_links=no
10345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10347$as_echo "$hard_links" >&6; }
10348 if test "$hard_links" = no; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10350$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10351 need_locks=warn
10352 fi
10353else
10354 need_locks=no
10355fi
10356
10357
10358
10359
10360
10361
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10363$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10364
10365 runpath_var=
10366 allow_undefined_flag=
10367 always_export_symbols=no
10368 archive_cmds=
10369 archive_expsym_cmds=
10370 compiler_needs_object=no
10371 enable_shared_with_static_runtimes=no
10372 export_dynamic_flag_spec=
10373 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10374 hardcode_automatic=no
10375 hardcode_direct=no
10376 hardcode_direct_absolute=no
10377 hardcode_libdir_flag_spec=
10378 hardcode_libdir_flag_spec_ld=
10379 hardcode_libdir_separator=
10380 hardcode_minus_L=no
10381 hardcode_shlibpath_var=unsupported
10382 inherit_rpath=no
10383 link_all_deplibs=unknown
10384 module_cmds=
10385 module_expsym_cmds=
10386 old_archive_from_new_cmds=
10387 old_archive_from_expsyms_cmds=
10388 thread_safe_flag_spec=
10389 whole_archive_flag_spec=
10390 # include_expsyms should be a list of space-separated symbols to be *always*
10391 # included in the symbol list
10392 include_expsyms=
10393 # exclude_expsyms can be an extended regexp of symbols to exclude
10394 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10395 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10396 # as well as any symbol that contains `d'.
10397 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10398 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10399 # platforms (ab)use it in PIC code, but their linkers get confused if
10400 # the symbol is explicitly referenced. Since portable code cannot
10401 # rely on this symbol name, it's probably fine to never include it in
10402 # preloaded symbol tables.
10403 # Exclude shared library initialization/finalization symbols.
10404 extract_expsyms_cmds=
10405
10406 case $host_os in
10407 cygwin* | mingw* | pw32* | cegcc*)
10408 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10409 # When not using gcc, we currently assume that we are using
10410 # Microsoft Visual C++.
10411 if test "$GCC" != yes; then
10412 with_gnu_ld=no
10413 fi
10414 ;;
10415 interix*)
10416 # we just hope/assume this is gcc and not c89 (= MSVC++)
10417 with_gnu_ld=yes
10418 ;;
10419 openbsd*)
10420 with_gnu_ld=no
10421 ;;
10422 esac
10423
10424 ld_shlibs=yes
10425
10426 # On some targets, GNU ld is compatible enough with the native linker
10427 # that we're better off using the native interface for both.
10428 lt_use_gnu_ld_interface=no
10429 if test "$with_gnu_ld" = yes; then
10430 case $host_os in
10431 aix*)
10432 # The AIX port of GNU ld has always aspired to compatibility
10433 # with the native linker. However, as the warning in the GNU ld
10434 # block says, versions before 2.19.5* couldn't really create working
10435 # shared libraries, regardless of the interface used.
10436 case `$LD -v 2>&1` in
10437 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10438 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10439 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10440 *)
10441 lt_use_gnu_ld_interface=yes
10442 ;;
10443 esac
10444 ;;
10445 *)
10446 lt_use_gnu_ld_interface=yes
10447 ;;
10448 esac
10449 fi
10450
10451 if test "$lt_use_gnu_ld_interface" = yes; then
10452 # If archive_cmds runs LD, not CC, wlarc should be empty
10453 wlarc='${wl}'
10454
10455 # Set some defaults for GNU ld with shared library support. These
10456 # are reset later if shared libraries are not supported. Putting them
10457 # here allows them to be overridden if necessary.
10458 runpath_var=LD_RUN_PATH
10459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10460 export_dynamic_flag_spec='${wl}--export-dynamic'
10461 # ancient GNU ld didn't support --whole-archive et. al.
10462 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10463 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10464 else
10465 whole_archive_flag_spec=
10466 fi
10467 supports_anon_versioning=no
10468 case `$LD -v 2>&1` in
10469 *GNU\ gold*) supports_anon_versioning=yes ;;
10470 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10471 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10472 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10473 *\ 2.11.*) ;; # other 2.11 versions
10474 *) supports_anon_versioning=yes ;;
10475 esac
10476
10477 # See if GNU ld supports shared libraries.
10478 case $host_os in
10479 aix[3-9]*)
10480 # On AIX/PPC, the GNU linker is very broken
10481 if test "$host_cpu" != ia64; then
10482 ld_shlibs=no
10483 cat <<_LT_EOF 1>&2
10484
10485*** Warning: the GNU linker, at least up to release 2.19, is reported
10486*** to be unable to reliably create shared libraries on AIX.
10487*** Therefore, libtool is disabling shared libraries support. If you
10488*** really care for shared libraries, you may want to install binutils
10489*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10490*** You will then need to restart the configuration process.
10491
10492_LT_EOF
10493 fi
10494 ;;
10495
10496 amigaos*)
10497 case $host_cpu in
10498 powerpc)
10499 # see comment about AmigaOS4 .so support
10500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10501 archive_expsym_cmds=''
10502 ;;
10503 m68k)
10504 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)'
10505 hardcode_libdir_flag_spec='-L$libdir'
10506 hardcode_minus_L=yes
10507 ;;
10508 esac
10509 ;;
10510
10511 beos*)
10512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10513 allow_undefined_flag=unsupported
10514 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10515 # support --undefined. This deserves some investigation. FIXME
10516 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10517 else
10518 ld_shlibs=no
10519 fi
10520 ;;
10521
10522 cygwin* | mingw* | pw32* | cegcc*)
10523 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10524 # as there is no search path for DLLs.
10525 hardcode_libdir_flag_spec='-L$libdir'
10526 export_dynamic_flag_spec='${wl}--export-all-symbols'
10527 allow_undefined_flag=unsupported
10528 always_export_symbols=no
10529 enable_shared_with_static_runtimes=yes
10530 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10531
10532 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10534 # If the export-symbols file already is a .def file (1st line
10535 # is EXPORTS), use it as is; otherwise, prepend...
10536 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10537 cp $export_symbols $output_objdir/$soname.def;
10538 else
10539 echo EXPORTS > $output_objdir/$soname.def;
10540 cat $export_symbols >> $output_objdir/$soname.def;
10541 fi~
10542 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10543 else
10544 ld_shlibs=no
10545 fi
10546 ;;
10547
10548 haiku*)
10549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10550 link_all_deplibs=yes
10551 ;;
10552
10553 interix[3-9]*)
10554 hardcode_direct=no
10555 hardcode_shlibpath_var=no
10556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10557 export_dynamic_flag_spec='${wl}-E'
10558 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10559 # Instead, shared libraries are loaded at an image base (0x10000000 by
10560 # default) and relocated if they conflict, which is a slow very memory
10561 # consuming and fragmenting process. To avoid this, we pick a random,
10562 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10563 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10565 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'
10566 ;;
10567
6a6859cb 10568 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
b5689863
MF
10569 tmp_diet=no
10570 if test "$host_os" = linux-dietlibc; then
10571 case $cc_basename in
10572 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10573 esac
10574 fi
10575 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10576 && test "$tmp_diet" = no
10577 then
10578 tmp_addflag=' $pic_flag'
10579 tmp_sharedflag='-shared'
10580 case $cc_basename,$host_cpu in
10581 pgcc*) # Portland Group C compiler
10582 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'
10583 tmp_addflag=' $pic_flag'
10584 ;;
10585 pgf77* | pgf90* | pgf95* | pgfortran*)
10586 # Portland Group f77 and f90 compilers
10587 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'
10588 tmp_addflag=' $pic_flag -Mnomain' ;;
10589 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10590 tmp_addflag=' -i_dynamic' ;;
10591 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10592 tmp_addflag=' -i_dynamic -nofor_main' ;;
10593 ifc* | ifort*) # Intel Fortran compiler
10594 tmp_addflag=' -nofor_main' ;;
10595 lf95*) # Lahey Fortran 8.1
10596 whole_archive_flag_spec=
10597 tmp_sharedflag='--shared' ;;
10598 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10599 tmp_sharedflag='-qmkshrobj'
10600 tmp_addflag= ;;
10601 nvcc*) # Cuda Compiler Driver 2.2
10602 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'
10603 compiler_needs_object=yes
10604 ;;
10605 esac
10606 case `$CC -V 2>&1 | sed 5q` in
10607 *Sun\ C*) # Sun C 5.9
10608 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'
10609 compiler_needs_object=yes
10610 tmp_sharedflag='-G' ;;
10611 *Sun\ F*) # Sun Fortran 8.3
10612 tmp_sharedflag='-G' ;;
10613 esac
10614 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10615
10616 if test "x$supports_anon_versioning" = xyes; then
10617 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10619 echo "local: *; };" >> $output_objdir/$libname.ver~
10620 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10621 fi
10622
10623 case $cc_basename in
10624 xlf* | bgf* | bgxlf* | mpixlf*)
10625 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10626 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10627 hardcode_libdir_flag_spec=
10628 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10629 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10630 if test "x$supports_anon_versioning" = xyes; then
10631 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10633 echo "local: *; };" >> $output_objdir/$libname.ver~
10634 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10635 fi
10636 ;;
10637 esac
10638 else
10639 ld_shlibs=no
10640 fi
10641 ;;
10642
10643 netbsd*)
10644 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10645 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10646 wlarc=
10647 else
10648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10650 fi
10651 ;;
10652
10653 solaris*)
10654 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10655 ld_shlibs=no
10656 cat <<_LT_EOF 1>&2
10657
10658*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10659*** create shared libraries on Solaris systems. Therefore, libtool
10660*** is disabling shared libraries support. We urge you to upgrade GNU
10661*** binutils to release 2.9.1 or newer. Another option is to modify
10662*** your PATH or compiler configuration so that the native linker is
10663*** used, and then restart.
10664
10665_LT_EOF
10666 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10668 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10669 else
10670 ld_shlibs=no
10671 fi
10672 ;;
10673
10674 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10675 case `$LD -v 2>&1` in
10676 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10677 ld_shlibs=no
10678 cat <<_LT_EOF 1>&2
10679
10680*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10681*** reliably create shared libraries on SCO systems. Therefore, libtool
10682*** is disabling shared libraries support. We urge you to upgrade GNU
10683*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10684*** your PATH or compiler configuration so that the native linker is
10685*** used, and then restart.
10686
10687_LT_EOF
10688 ;;
10689 *)
10690 # For security reasons, it is highly recommended that you always
10691 # use absolute paths for naming shared libraries, and exclude the
10692 # DT_RUNPATH tag from executables and libraries. But doing so
10693 # requires that you compile everything twice, which is a pain.
10694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10697 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10698 else
10699 ld_shlibs=no
10700 fi
10701 ;;
10702 esac
10703 ;;
10704
10705 sunos4*)
10706 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10707 wlarc=
10708 hardcode_direct=yes
10709 hardcode_shlibpath_var=no
10710 ;;
10711
10712 *)
10713 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10715 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10716 else
10717 ld_shlibs=no
10718 fi
10719 ;;
10720 esac
10721
10722 if test "$ld_shlibs" = no; then
10723 runpath_var=
10724 hardcode_libdir_flag_spec=
10725 export_dynamic_flag_spec=
10726 whole_archive_flag_spec=
10727 fi
10728 else
10729 # PORTME fill in a description of your system's linker (not GNU ld)
10730 case $host_os in
10731 aix3*)
10732 allow_undefined_flag=unsupported
10733 always_export_symbols=yes
10734 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'
10735 # Note: this linker hardcodes the directories in LIBPATH if there
10736 # are no directories specified by -L.
10737 hardcode_minus_L=yes
10738 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10739 # Neither direct hardcoding nor static linking is supported with a
10740 # broken collect2.
10741 hardcode_direct=unsupported
10742 fi
10743 ;;
10744
10745 aix[4-9]*)
10746 if test "$host_cpu" = ia64; then
10747 # On IA64, the linker does run time linking by default, so we don't
10748 # have to do anything special.
10749 aix_use_runtimelinking=no
10750 exp_sym_flag='-Bexport'
10751 no_entry_flag=""
10752 else
10753 # If we're using GNU nm, then we don't want the "-C" option.
10754 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10755 # Also, AIX nm treats weak defined symbols like other global
10756 # defined symbols, whereas GNU nm marks them as "W".
10757 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10758 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'
10759 else
10760 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'
10761 fi
10762 aix_use_runtimelinking=no
10763
10764 # Test if we are trying to use run time linking or normal
10765 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10766 # need to do runtime linking.
10767 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10768 for ld_flag in $LDFLAGS; do
10769 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10770 aix_use_runtimelinking=yes
10771 break
10772 fi
10773 done
10774 ;;
10775 esac
10776
10777 exp_sym_flag='-bexport'
10778 no_entry_flag='-bnoentry'
10779 fi
10780
10781 # When large executables or shared objects are built, AIX ld can
10782 # have problems creating the table of contents. If linking a library
10783 # or program results in "error TOC overflow" add -mminimal-toc to
10784 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10785 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10786
10787 archive_cmds=''
10788 hardcode_direct=yes
10789 hardcode_direct_absolute=yes
10790 hardcode_libdir_separator=':'
10791 link_all_deplibs=yes
10792 file_list_spec='${wl}-f,'
10793
10794 if test "$GCC" = yes; then
10795 case $host_os in aix4.[012]|aix4.[012].*)
10796 # We only want to do this on AIX 4.2 and lower, the check
10797 # below for broken collect2 doesn't work under 4.3+
10798 collect2name=`${CC} -print-prog-name=collect2`
10799 if test -f "$collect2name" &&
10800 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10801 then
10802 # We have reworked collect2
10803 :
10804 else
10805 # We have old collect2
10806 hardcode_direct=unsupported
10807 # It fails to find uninstalled libraries when the uninstalled
10808 # path is not listed in the libpath. Setting hardcode_minus_L
10809 # to unsupported forces relinking
10810 hardcode_minus_L=yes
10811 hardcode_libdir_flag_spec='-L$libdir'
10812 hardcode_libdir_separator=
10813 fi
10814 ;;
10815 esac
10816 shared_flag='-shared'
10817 if test "$aix_use_runtimelinking" = yes; then
10818 shared_flag="$shared_flag "'${wl}-G'
10819 fi
10820 else
10821 # not using gcc
10822 if test "$host_cpu" = ia64; then
10823 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10824 # chokes on -Wl,-G. The following line is correct:
10825 shared_flag='-G'
10826 else
10827 if test "$aix_use_runtimelinking" = yes; then
10828 shared_flag='${wl}-G'
10829 else
10830 shared_flag='${wl}-bM:SRE'
10831 fi
10832 fi
10833 fi
10834
10835 export_dynamic_flag_spec='${wl}-bexpall'
10836 # It seems that -bexpall does not export symbols beginning with
10837 # underscore (_), so it is better to generate a list of symbols to export.
10838 always_export_symbols=yes
10839 if test "$aix_use_runtimelinking" = yes; then
10840 # Warning - without using the other runtime loading flags (-brtl),
10841 # -berok will link without error, but may produce a broken library.
10842 allow_undefined_flag='-berok'
10843 # Determine the default libpath from the value encoded in an
10844 # empty executable.
10845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10846/* end confdefs.h. */
10847
10848int
10849main ()
10850{
10851
10852 ;
10853 return 0;
10854}
10855_ACEOF
10856if ac_fn_c_try_link "$LINENO"; then :
10857
10858lt_aix_libpath_sed='
10859 /Import File Strings/,/^$/ {
10860 /^0/ {
10861 s/^0 *\(.*\)$/\1/
10862 p
10863 }
10864 }'
10865aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10866# Check for a 64-bit object if we didn't find anything.
10867if test -z "$aix_libpath"; then
10868 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10869fi
10870fi
10871rm -f core conftest.err conftest.$ac_objext \
10872 conftest$ac_exeext conftest.$ac_ext
10873if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10874
10875 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10876 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"
10877 else
10878 if test "$host_cpu" = ia64; then
10879 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10880 allow_undefined_flag="-z nodefs"
10881 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"
10882 else
10883 # Determine the default libpath from the value encoded in an
10884 # empty executable.
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886/* end confdefs.h. */
10887
10888int
10889main ()
10890{
10891
10892 ;
10893 return 0;
10894}
10895_ACEOF
10896if ac_fn_c_try_link "$LINENO"; then :
10897
10898lt_aix_libpath_sed='
10899 /Import File Strings/,/^$/ {
10900 /^0/ {
10901 s/^0 *\(.*\)$/\1/
10902 p
10903 }
10904 }'
10905aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10906# Check for a 64-bit object if we didn't find anything.
10907if test -z "$aix_libpath"; then
10908 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10909fi
10910fi
10911rm -f core conftest.err conftest.$ac_objext \
10912 conftest$ac_exeext conftest.$ac_ext
10913if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10914
10915 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10916 # Warning - without using the other run time loading flags,
10917 # -berok will link without error, but may produce a broken library.
10918 no_undefined_flag=' ${wl}-bernotok'
10919 allow_undefined_flag=' ${wl}-berok'
10920 if test "$with_gnu_ld" = yes; then
10921 # We only use this code for GNU lds that support --whole-archive.
10922 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10923 else
10924 # Exported symbols can be pulled into shared objects from archives
10925 whole_archive_flag_spec='$convenience'
10926 fi
10927 archive_cmds_need_lc=yes
10928 # This is similar to how AIX traditionally builds its shared libraries.
10929 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'
10930 fi
10931 fi
10932 ;;
10933
10934 amigaos*)
10935 case $host_cpu in
10936 powerpc)
10937 # see comment about AmigaOS4 .so support
10938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10939 archive_expsym_cmds=''
10940 ;;
10941 m68k)
10942 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)'
10943 hardcode_libdir_flag_spec='-L$libdir'
10944 hardcode_minus_L=yes
10945 ;;
10946 esac
10947 ;;
10948
10949 bsdi[45]*)
10950 export_dynamic_flag_spec=-rdynamic
10951 ;;
10952
10953 cygwin* | mingw* | pw32* | cegcc*)
10954 # When not using gcc, we currently assume that we are using
10955 # Microsoft Visual C++.
10956 # hardcode_libdir_flag_spec is actually meaningless, as there is
10957 # no search path for DLLs.
10958 hardcode_libdir_flag_spec=' '
10959 allow_undefined_flag=unsupported
10960 # Tell ltmain to make .lib files, not .a files.
10961 libext=lib
10962 # Tell ltmain to make .dll files, not .so files.
10963 shrext_cmds=".dll"
10964 # FIXME: Setting linknames here is a bad hack.
10965 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10966 # The linker will automatically build a .lib file if we build a DLL.
10967 old_archive_from_new_cmds='true'
10968 # FIXME: Should let the user specify the lib program.
10969 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10970 fix_srcfile_path='`cygpath -w "$srcfile"`'
10971 enable_shared_with_static_runtimes=yes
10972 ;;
10973
10974 darwin* | rhapsody*)
10975
10976
10977 archive_cmds_need_lc=no
10978 hardcode_direct=no
10979 hardcode_automatic=yes
10980 hardcode_shlibpath_var=unsupported
10981 if test "$lt_cv_ld_force_load" = "yes"; then
10982 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\"`'
10983 else
10984 whole_archive_flag_spec=''
10985 fi
10986 link_all_deplibs=yes
10987 allow_undefined_flag="$_lt_dar_allow_undefined"
10988 case $cc_basename in
10989 ifort*) _lt_dar_can_shared=yes ;;
10990 *) _lt_dar_can_shared=$GCC ;;
10991 esac
10992 if test "$_lt_dar_can_shared" = "yes"; then
10993 output_verbose_link_cmd=func_echo_all
10994 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10995 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10996 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}"
10997 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}"
10998
10999 else
11000 ld_shlibs=no
11001 fi
11002
11003 ;;
11004
11005 dgux*)
11006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11007 hardcode_libdir_flag_spec='-L$libdir'
11008 hardcode_shlibpath_var=no
11009 ;;
11010
11011 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11012 # support. Future versions do this automatically, but an explicit c++rt0.o
11013 # does not break anything, and helps significantly (at the cost of a little
11014 # extra space).
11015 freebsd2.2*)
11016 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11017 hardcode_libdir_flag_spec='-R$libdir'
11018 hardcode_direct=yes
11019 hardcode_shlibpath_var=no
11020 ;;
11021
11022 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11023 freebsd2.*)
11024 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11025 hardcode_direct=yes
11026 hardcode_minus_L=yes
11027 hardcode_shlibpath_var=no
11028 ;;
11029
11030 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11031 freebsd* | dragonfly*)
11032 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11033 hardcode_libdir_flag_spec='-R$libdir'
11034 hardcode_direct=yes
11035 hardcode_shlibpath_var=no
11036 ;;
11037
11038 hpux9*)
11039 if test "$GCC" = yes; then
11040 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'
11041 else
11042 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'
11043 fi
11044 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11045 hardcode_libdir_separator=:
11046 hardcode_direct=yes
11047
11048 # hardcode_minus_L: Not really in the search PATH,
11049 # but as the default location of the library.
11050 hardcode_minus_L=yes
11051 export_dynamic_flag_spec='${wl}-E'
11052 ;;
11053
11054 hpux10*)
11055 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11056 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11057 else
11058 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11059 fi
11060 if test "$with_gnu_ld" = no; then
11061 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11062 hardcode_libdir_flag_spec_ld='+b $libdir'
11063 hardcode_libdir_separator=:
11064 hardcode_direct=yes
11065 hardcode_direct_absolute=yes
11066 export_dynamic_flag_spec='${wl}-E'
11067 # hardcode_minus_L: Not really in the search PATH,
11068 # but as the default location of the library.
11069 hardcode_minus_L=yes
11070 fi
11071 ;;
11072
11073 hpux11*)
11074 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11075 case $host_cpu in
11076 hppa*64*)
6a6859cb 11077 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
b5689863
MF
11078 ;;
11079 ia64*)
11080 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11081 ;;
11082 *)
11083 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11084 ;;
11085 esac
11086 else
11087 case $host_cpu in
11088 hppa*64*)
6a6859cb 11089 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
b5689863
MF
11090 ;;
11091 ia64*)
11092 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11093 ;;
11094 *)
11095
11096 # Older versions of the 11.00 compiler do not understand -b yet
11097 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11099$as_echo_n "checking if $CC understands -b... " >&6; }
11100if ${lt_cv_prog_compiler__b+:} false; then :
11101 $as_echo_n "(cached) " >&6
11102else
11103 lt_cv_prog_compiler__b=no
11104 save_LDFLAGS="$LDFLAGS"
11105 LDFLAGS="$LDFLAGS -b"
11106 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11108 # The linker can only warn and ignore the option if not recognized
11109 # So say no if there are warnings
11110 if test -s conftest.err; then
11111 # Append any errors to the config.log.
11112 cat conftest.err 1>&5
11113 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11115 if diff conftest.exp conftest.er2 >/dev/null; then
11116 lt_cv_prog_compiler__b=yes
11117 fi
11118 else
11119 lt_cv_prog_compiler__b=yes
11120 fi
11121 fi
11122 $RM -r conftest*
11123 LDFLAGS="$save_LDFLAGS"
11124
11125fi
11126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11127$as_echo "$lt_cv_prog_compiler__b" >&6; }
11128
11129if test x"$lt_cv_prog_compiler__b" = xyes; then
11130 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11131else
11132 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11133fi
11134
11135 ;;
11136 esac
11137 fi
11138 if test "$with_gnu_ld" = no; then
11139 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11140 hardcode_libdir_separator=:
11141
11142 case $host_cpu in
11143 hppa*64*|ia64*)
11144 hardcode_direct=no
11145 hardcode_shlibpath_var=no
11146 ;;
11147 *)
11148 hardcode_direct=yes
11149 hardcode_direct_absolute=yes
11150 export_dynamic_flag_spec='${wl}-E'
11151
11152 # hardcode_minus_L: Not really in the search PATH,
11153 # but as the default location of the library.
11154 hardcode_minus_L=yes
11155 ;;
11156 esac
11157 fi
11158 ;;
11159
11160 irix5* | irix6* | nonstopux*)
11161 if test "$GCC" = yes; then
11162 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'
11163 # Try to use the -exported_symbol ld option, if it does not
11164 # work, assume that -exports_file does not work either and
11165 # implicitly export all symbols.
11166 save_LDFLAGS="$LDFLAGS"
11167 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11169/* end confdefs.h. */
11170int foo(void) {}
11171_ACEOF
11172if ac_fn_c_try_link "$LINENO"; then :
11173 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'
11174
11175fi
11176rm -f core conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11178 LDFLAGS="$save_LDFLAGS"
11179 else
11180 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'
11181 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'
11182 fi
11183 archive_cmds_need_lc='no'
11184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11185 hardcode_libdir_separator=:
11186 inherit_rpath=yes
11187 link_all_deplibs=yes
11188 ;;
11189
11190 netbsd*)
11191 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11192 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11193 else
11194 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11195 fi
11196 hardcode_libdir_flag_spec='-R$libdir'
11197 hardcode_direct=yes
11198 hardcode_shlibpath_var=no
11199 ;;
11200
11201 newsos6)
11202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11203 hardcode_direct=yes
11204 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11205 hardcode_libdir_separator=:
11206 hardcode_shlibpath_var=no
11207 ;;
11208
11209 *nto* | *qnx*)
11210 ;;
11211
11212 openbsd*)
11213 if test -f /usr/libexec/ld.so; then
11214 hardcode_direct=yes
11215 hardcode_shlibpath_var=no
11216 hardcode_direct_absolute=yes
11217 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11218 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11219 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11220 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11221 export_dynamic_flag_spec='${wl}-E'
11222 else
11223 case $host_os in
11224 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11225 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11226 hardcode_libdir_flag_spec='-R$libdir'
11227 ;;
11228 *)
11229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11230 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11231 ;;
11232 esac
11233 fi
11234 else
11235 ld_shlibs=no
11236 fi
11237 ;;
11238
11239 os2*)
11240 hardcode_libdir_flag_spec='-L$libdir'
11241 hardcode_minus_L=yes
11242 allow_undefined_flag=unsupported
11243 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'
11244 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11245 ;;
11246
11247 osf3*)
11248 if test "$GCC" = yes; then
11249 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11250 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'
11251 else
11252 allow_undefined_flag=' -expect_unresolved \*'
11253 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'
11254 fi
11255 archive_cmds_need_lc='no'
11256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11257 hardcode_libdir_separator=:
11258 ;;
11259
11260 osf4* | osf5*) # as osf3* with the addition of -msym flag
11261 if test "$GCC" = yes; then
11262 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11263 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'
11264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11265 else
11266 allow_undefined_flag=' -expect_unresolved \*'
11267 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'
11268 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~
11269 $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'
11270
11271 # Both c and cxx compiler support -rpath directly
11272 hardcode_libdir_flag_spec='-rpath $libdir'
11273 fi
11274 archive_cmds_need_lc='no'
11275 hardcode_libdir_separator=:
11276 ;;
11277
11278 solaris*)
11279 no_undefined_flag=' -z defs'
11280 if test "$GCC" = yes; then
11281 wlarc='${wl}'
11282 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11283 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11284 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11285 else
11286 case `$CC -V 2>&1` in
11287 *"Compilers 5.0"*)
11288 wlarc=''
11289 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11290 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11291 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11292 ;;
11293 *)
11294 wlarc='${wl}'
11295 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11297 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11298 ;;
11299 esac
11300 fi
11301 hardcode_libdir_flag_spec='-R$libdir'
11302 hardcode_shlibpath_var=no
11303 case $host_os in
11304 solaris2.[0-5] | solaris2.[0-5].*) ;;
11305 *)
11306 # The compiler driver will combine and reorder linker options,
11307 # but understands `-z linker_flag'. GCC discards it without `$wl',
11308 # but is careful enough not to reorder.
11309 # Supported since Solaris 2.6 (maybe 2.5.1?)
11310 if test "$GCC" = yes; then
11311 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11312 else
11313 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11314 fi
11315 ;;
11316 esac
11317 link_all_deplibs=yes
11318 ;;
11319
11320 sunos4*)
11321 if test "x$host_vendor" = xsequent; then
11322 # Use $CC to link under sequent, because it throws in some extra .o
11323 # files that make .init and .fini sections work.
11324 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11325 else
11326 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11327 fi
11328 hardcode_libdir_flag_spec='-L$libdir'
11329 hardcode_direct=yes
11330 hardcode_minus_L=yes
11331 hardcode_shlibpath_var=no
11332 ;;
11333
11334 sysv4)
11335 case $host_vendor in
11336 sni)
11337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11338 hardcode_direct=yes # is this really true???
11339 ;;
11340 siemens)
11341 ## LD is ld it makes a PLAMLIB
11342 ## CC just makes a GrossModule.
11343 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11344 reload_cmds='$CC -r -o $output$reload_objs'
11345 hardcode_direct=no
11346 ;;
11347 motorola)
11348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11349 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11350 ;;
11351 esac
11352 runpath_var='LD_RUN_PATH'
11353 hardcode_shlibpath_var=no
11354 ;;
11355
11356 sysv4.3*)
11357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11358 hardcode_shlibpath_var=no
11359 export_dynamic_flag_spec='-Bexport'
11360 ;;
11361
11362 sysv4*MP*)
11363 if test -d /usr/nec; then
11364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11365 hardcode_shlibpath_var=no
11366 runpath_var=LD_RUN_PATH
11367 hardcode_runpath_var=yes
11368 ld_shlibs=yes
11369 fi
11370 ;;
11371
11372 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11373 no_undefined_flag='${wl}-z,text'
11374 archive_cmds_need_lc=no
11375 hardcode_shlibpath_var=no
11376 runpath_var='LD_RUN_PATH'
11377
11378 if test "$GCC" = yes; then
11379 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11380 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11381 else
11382 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11383 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11384 fi
11385 ;;
11386
11387 sysv5* | sco3.2v5* | sco5v6*)
11388 # Note: We can NOT use -z defs as we might desire, because we do not
11389 # link with -lc, and that would cause any symbols used from libc to
11390 # always be unresolved, which means just about no library would
11391 # ever link correctly. If we're not using GNU ld we use -z text
11392 # though, which does catch some bad symbols but isn't as heavy-handed
11393 # as -z defs.
11394 no_undefined_flag='${wl}-z,text'
11395 allow_undefined_flag='${wl}-z,nodefs'
11396 archive_cmds_need_lc=no
11397 hardcode_shlibpath_var=no
11398 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11399 hardcode_libdir_separator=':'
11400 link_all_deplibs=yes
11401 export_dynamic_flag_spec='${wl}-Bexport'
11402 runpath_var='LD_RUN_PATH'
11403
11404 if test "$GCC" = yes; then
11405 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11406 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11407 else
11408 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11409 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11410 fi
11411 ;;
11412
11413 uts4*)
11414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11415 hardcode_libdir_flag_spec='-L$libdir'
11416 hardcode_shlibpath_var=no
11417 ;;
11418
11419 *)
11420 ld_shlibs=no
11421 ;;
11422 esac
11423
11424 if test x$host_vendor = xsni; then
11425 case $host in
11426 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11427 export_dynamic_flag_spec='${wl}-Blargedynsym'
11428 ;;
11429 esac
11430 fi
11431 fi
11432
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11434$as_echo "$ld_shlibs" >&6; }
11435test "$ld_shlibs" = no && can_build_shared=no
11436
11437with_gnu_ld=$with_gnu_ld
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453#
11454# Do we need to explicitly link libc?
11455#
11456case "x$archive_cmds_need_lc" in
11457x|xyes)
11458 # Assume -lc should be added
11459 archive_cmds_need_lc=yes
11460
11461 if test "$enable_shared" = yes && test "$GCC" = yes; then
11462 case $archive_cmds in
11463 *'~'*)
11464 # FIXME: we may have to deal with multi-command sequences.
11465 ;;
11466 '$CC '*)
11467 # Test whether the compiler implicitly links with -lc since on some
11468 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11469 # to ld, don't add -lc before -lgcc.
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11471$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11472if ${lt_cv_archive_cmds_need_lc+:} false; then :
11473 $as_echo_n "(cached) " >&6
11474else
11475 $RM conftest*
11476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11477
11478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11479 (eval $ac_compile) 2>&5
11480 ac_status=$?
11481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11482 test $ac_status = 0; } 2>conftest.err; then
11483 soname=conftest
11484 lib=conftest
11485 libobjs=conftest.$ac_objext
11486 deplibs=
11487 wl=$lt_prog_compiler_wl
11488 pic_flag=$lt_prog_compiler_pic
11489 compiler_flags=-v
11490 linker_flags=-v
11491 verstring=
11492 output_objdir=.
11493 libname=conftest
11494 lt_save_allow_undefined_flag=$allow_undefined_flag
11495 allow_undefined_flag=
11496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11497 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11498 ac_status=$?
11499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11500 test $ac_status = 0; }
11501 then
11502 lt_cv_archive_cmds_need_lc=no
11503 else
11504 lt_cv_archive_cmds_need_lc=yes
11505 fi
11506 allow_undefined_flag=$lt_save_allow_undefined_flag
11507 else
11508 cat conftest.err 1>&5
11509 fi
11510 $RM conftest*
11511
11512fi
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11514$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11515 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11516 ;;
11517 esac
11518 fi
11519 ;;
11520esac
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11679$as_echo_n "checking dynamic linker characteristics... " >&6; }
11680
11681if test "$GCC" = yes; then
11682 case $host_os in
11683 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11684 *) lt_awk_arg="/^libraries:/" ;;
11685 esac
11686 case $host_os in
11687 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11688 *) lt_sed_strip_eq="s,=/,/,g" ;;
11689 esac
11690 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11691 case $lt_search_path_spec in
11692 *\;*)
11693 # if the path contains ";" then we assume it to be the separator
11694 # otherwise default to the standard path separator (i.e. ":") - it is
11695 # assumed that no part of a normal pathname contains ";" but that should
11696 # okay in the real world where ";" in dirpaths is itself problematic.
11697 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11698 ;;
11699 *)
11700 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11701 ;;
11702 esac
11703 # Ok, now we have the path, separated by spaces, we can step through it
11704 # and add multilib dir if necessary.
11705 lt_tmp_lt_search_path_spec=
11706 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11707 for lt_sys_path in $lt_search_path_spec; do
11708 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11709 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11710 else
11711 test -d "$lt_sys_path" && \
11712 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11713 fi
11714 done
11715 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11716BEGIN {RS=" "; FS="/|\n";} {
11717 lt_foo="";
11718 lt_count=0;
11719 for (lt_i = NF; lt_i > 0; lt_i--) {
11720 if ($lt_i != "" && $lt_i != ".") {
11721 if ($lt_i == "..") {
11722 lt_count++;
11723 } else {
11724 if (lt_count == 0) {
11725 lt_foo="/" $lt_i lt_foo;
11726 } else {
11727 lt_count--;
11728 }
11729 }
11730 }
11731 }
11732 if (lt_foo != "") { lt_freq[lt_foo]++; }
11733 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11734}'`
11735 # AWK program above erroneously prepends '/' to C:/dos/paths
11736 # for these hosts.
11737 case $host_os in
11738 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11739 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11740 esac
11741 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11742else
11743 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11744fi
11745library_names_spec=
11746libname_spec='lib$name'
11747soname_spec=
11748shrext_cmds=".so"
11749postinstall_cmds=
11750postuninstall_cmds=
11751finish_cmds=
11752finish_eval=
11753shlibpath_var=
11754shlibpath_overrides_runpath=unknown
11755version_type=none
11756dynamic_linker="$host_os ld.so"
11757sys_lib_dlsearch_path_spec="/lib /usr/lib"
11758need_lib_prefix=unknown
11759hardcode_into_libs=no
11760
11761# when you set need_version to no, make sure it does not cause -set_version
11762# flags to be left without arguments
11763need_version=unknown
11764
11765case $host_os in
11766aix3*)
11767 version_type=linux
11768 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11769 shlibpath_var=LIBPATH
11770
11771 # AIX 3 has no versioning support, so we append a major version to the name.
11772 soname_spec='${libname}${release}${shared_ext}$major'
11773 ;;
11774
11775aix[4-9]*)
11776 version_type=linux
11777 need_lib_prefix=no
11778 need_version=no
11779 hardcode_into_libs=yes
11780 if test "$host_cpu" = ia64; then
11781 # AIX 5 supports IA64
11782 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11783 shlibpath_var=LD_LIBRARY_PATH
11784 else
11785 # With GCC up to 2.95.x, collect2 would create an import file
11786 # for dependence libraries. The import file would start with
11787 # the line `#! .'. This would cause the generated library to
11788 # depend on `.', always an invalid library. This was fixed in
11789 # development snapshots of GCC prior to 3.0.
11790 case $host_os in
11791 aix4 | aix4.[01] | aix4.[01].*)
11792 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11793 echo ' yes '
11794 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11795 :
11796 else
11797 can_build_shared=no
11798 fi
11799 ;;
11800 esac
11801 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11802 # soname into executable. Probably we can add versioning support to
11803 # collect2, so additional links can be useful in future.
11804 if test "$aix_use_runtimelinking" = yes; then
11805 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11806 # instead of lib<name>.a to let people know that these are not
11807 # typical AIX shared libraries.
11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809 else
11810 # We preserve .a as extension for shared libraries through AIX4.2
11811 # and later when we are not doing run time linking.
11812 library_names_spec='${libname}${release}.a $libname.a'
11813 soname_spec='${libname}${release}${shared_ext}$major'
11814 fi
11815 shlibpath_var=LIBPATH
11816 fi
11817 ;;
11818
11819amigaos*)
11820 case $host_cpu in
11821 powerpc)
11822 # Since July 2007 AmigaOS4 officially supports .so libraries.
11823 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11825 ;;
11826 m68k)
11827 library_names_spec='$libname.ixlibrary $libname.a'
11828 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11829 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'
11830 ;;
11831 esac
11832 ;;
11833
11834beos*)
11835 library_names_spec='${libname}${shared_ext}'
11836 dynamic_linker="$host_os ld.so"
11837 shlibpath_var=LIBRARY_PATH
11838 ;;
11839
11840bsdi[45]*)
11841 version_type=linux
11842 need_version=no
11843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11844 soname_spec='${libname}${release}${shared_ext}$major'
11845 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11846 shlibpath_var=LD_LIBRARY_PATH
11847 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11848 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11849 # the default ld.so.conf also contains /usr/contrib/lib and
11850 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11851 # libtool to hard-code these into programs
11852 ;;
11853
11854cygwin* | mingw* | pw32* | cegcc*)
11855 version_type=windows
11856 shrext_cmds=".dll"
11857 need_version=no
11858 need_lib_prefix=no
11859
11860 case $GCC,$host_os in
11861 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11862 library_names_spec='$libname.dll.a'
11863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11864 postinstall_cmds='base_file=`basename \${file}`~
11865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11866 dldir=$destdir/`dirname \$dlpath`~
11867 test -d \$dldir || mkdir -p \$dldir~
11868 $install_prog $dir/$dlname \$dldir/$dlname~
11869 chmod a+x \$dldir/$dlname~
11870 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11871 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11872 fi'
11873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11874 dlpath=$dir/\$dldll~
11875 $RM \$dlpath'
11876 shlibpath_overrides_runpath=yes
11877
11878 case $host_os in
11879 cygwin*)
11880 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11881 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11882
11883 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11884 ;;
11885 mingw* | cegcc*)
11886 # MinGW DLLs use traditional 'lib' prefix
11887 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11888 ;;
11889 pw32*)
11890 # pw32 DLLs use 'pw' prefix rather than 'lib'
11891 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11892 ;;
11893 esac
11894 ;;
11895
11896 *)
11897 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11898 ;;
11899 esac
11900 dynamic_linker='Win32 ld.exe'
11901 # FIXME: first we should search . and the directory the executable is in
11902 shlibpath_var=PATH
11903 ;;
11904
11905darwin* | rhapsody*)
11906 dynamic_linker="$host_os dyld"
11907 version_type=darwin
11908 need_lib_prefix=no
11909 need_version=no
11910 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11911 soname_spec='${libname}${release}${major}$shared_ext'
11912 shlibpath_overrides_runpath=yes
11913 shlibpath_var=DYLD_LIBRARY_PATH
11914 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11915
11916 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11917 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11918 ;;
11919
11920dgux*)
11921 version_type=linux
11922 need_lib_prefix=no
11923 need_version=no
11924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11925 soname_spec='${libname}${release}${shared_ext}$major'
11926 shlibpath_var=LD_LIBRARY_PATH
11927 ;;
11928
11929freebsd* | dragonfly*)
11930 # DragonFly does not have aout. When/if they implement a new
11931 # versioning mechanism, adjust this.
11932 if test -x /usr/bin/objformat; then
11933 objformat=`/usr/bin/objformat`
11934 else
11935 case $host_os in
11936 freebsd[23].*) objformat=aout ;;
11937 *) objformat=elf ;;
11938 esac
11939 fi
11940 version_type=freebsd-$objformat
11941 case $version_type in
11942 freebsd-elf*)
11943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11944 need_version=no
11945 need_lib_prefix=no
11946 ;;
11947 freebsd-*)
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11949 need_version=yes
11950 ;;
11951 esac
11952 shlibpath_var=LD_LIBRARY_PATH
11953 case $host_os in
11954 freebsd2.*)
11955 shlibpath_overrides_runpath=yes
11956 ;;
11957 freebsd3.[01]* | freebsdelf3.[01]*)
11958 shlibpath_overrides_runpath=yes
11959 hardcode_into_libs=yes
11960 ;;
11961 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11962 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11963 shlibpath_overrides_runpath=no
11964 hardcode_into_libs=yes
11965 ;;
11966 *) # from 4.6 on, and DragonFly
11967 shlibpath_overrides_runpath=yes
11968 hardcode_into_libs=yes
11969 ;;
11970 esac
11971 ;;
11972
11973haiku*)
11974 version_type=linux
11975 need_lib_prefix=no
11976 need_version=no
11977 dynamic_linker="$host_os runtime_loader"
11978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11979 soname_spec='${libname}${release}${shared_ext}$major'
11980 shlibpath_var=LIBRARY_PATH
11981 shlibpath_overrides_runpath=yes
99aedb62 11982 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
b5689863
MF
11983 hardcode_into_libs=yes
11984 ;;
11985
11986hpux9* | hpux10* | hpux11*)
11987 # Give a soname corresponding to the major version so that dld.sl refuses to
11988 # link against other versions.
11989 version_type=sunos
11990 need_lib_prefix=no
11991 need_version=no
11992 case $host_cpu in
11993 ia64*)
11994 shrext_cmds='.so'
11995 hardcode_into_libs=yes
11996 dynamic_linker="$host_os dld.so"
11997 shlibpath_var=LD_LIBRARY_PATH
11998 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12000 soname_spec='${libname}${release}${shared_ext}$major'
12001 if test "X$HPUX_IA64_MODE" = X32; then
12002 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12003 else
12004 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12005 fi
12006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12007 ;;
12008 hppa*64*)
12009 shrext_cmds='.sl'
12010 hardcode_into_libs=yes
12011 dynamic_linker="$host_os dld.sl"
12012 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12015 soname_spec='${libname}${release}${shared_ext}$major'
12016 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12018 ;;
12019 *)
12020 shrext_cmds='.sl'
12021 dynamic_linker="$host_os dld.sl"
12022 shlibpath_var=SHLIB_PATH
12023 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12025 soname_spec='${libname}${release}${shared_ext}$major'
12026 ;;
12027 esac
12028 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12029 postinstall_cmds='chmod 555 $lib'
12030 # or fails outright, so override atomically:
12031 install_override_mode=555
12032 ;;
12033
12034interix[3-9]*)
12035 version_type=linux
12036 need_lib_prefix=no
12037 need_version=no
12038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12039 soname_spec='${libname}${release}${shared_ext}$major'
12040 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12041 shlibpath_var=LD_LIBRARY_PATH
12042 shlibpath_overrides_runpath=no
12043 hardcode_into_libs=yes
12044 ;;
12045
12046irix5* | irix6* | nonstopux*)
12047 case $host_os in
12048 nonstopux*) version_type=nonstopux ;;
12049 *)
12050 if test "$lt_cv_prog_gnu_ld" = yes; then
12051 version_type=linux
12052 else
12053 version_type=irix
12054 fi ;;
12055 esac
12056 need_lib_prefix=no
12057 need_version=no
12058 soname_spec='${libname}${release}${shared_ext}$major'
12059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12060 case $host_os in
12061 irix5* | nonstopux*)
12062 libsuff= shlibsuff=
12063 ;;
12064 *)
12065 case $LD in # libtool.m4 will add one of these switches to LD
12066 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12067 libsuff= shlibsuff= libmagic=32-bit;;
12068 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12069 libsuff=32 shlibsuff=N32 libmagic=N32;;
12070 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12071 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12072 *) libsuff= shlibsuff= libmagic=never-match;;
12073 esac
12074 ;;
12075 esac
12076 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12077 shlibpath_overrides_runpath=no
12078 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12079 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12080 hardcode_into_libs=yes
12081 ;;
12082
12083# No shared lib support for Linux oldld, aout, or coff.
12084linux*oldld* | linux*aout* | linux*coff*)
12085 dynamic_linker=no
12086 ;;
12087
12088# This must be Linux ELF.
6a6859cb
AM
12089
12090# uclinux* changes (here and below) have been submitted to the libtool
12091# project, but have not yet been accepted: they are GCC-local changes
12092# for the time being. (See
12093# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
12094linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
b5689863
MF
12095 version_type=linux
12096 need_lib_prefix=no
12097 need_version=no
12098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12099 soname_spec='${libname}${release}${shared_ext}$major'
12100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12101 shlibpath_var=LD_LIBRARY_PATH
12102 shlibpath_overrides_runpath=no
12103
12104 # Some binutils ld are patched to set DT_RUNPATH
12105 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12106 $as_echo_n "(cached) " >&6
12107else
12108 lt_cv_shlibpath_overrides_runpath=no
12109 save_LDFLAGS=$LDFLAGS
12110 save_libdir=$libdir
12111 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12112 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114/* end confdefs.h. */
12115
12116int
12117main ()
12118{
12119
12120 ;
12121 return 0;
12122}
12123_ACEOF
12124if ac_fn_c_try_link "$LINENO"; then :
12125 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12126 lt_cv_shlibpath_overrides_runpath=yes
12127fi
12128fi
12129rm -f core conftest.err conftest.$ac_objext \
12130 conftest$ac_exeext conftest.$ac_ext
12131 LDFLAGS=$save_LDFLAGS
12132 libdir=$save_libdir
12133
12134fi
12135
12136 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12137
12138 # This implies no fast_install, which is unacceptable.
12139 # Some rework will be needed to allow for fast_install
12140 # before this can be enabled.
12141 hardcode_into_libs=yes
12142
12143 # Append ld.so.conf contents to the search path
12144 if test -f /etc/ld.so.conf; then
12145 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' ' '`
12146 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12147 fi
12148
12149 # We used to test for /lib/ld.so.1 and disable shared libraries on
12150 # powerpc, because MkLinux only supported shared libraries with the
12151 # GNU dynamic linker. Since this was broken with cross compilers,
12152 # most powerpc-linux boxes support dynamic linking these days and
12153 # people can always --disable-shared, the test was removed, and we
12154 # assume the GNU/Linux dynamic linker is in use.
12155 dynamic_linker='GNU/Linux ld.so'
12156 ;;
12157
12158netbsd*)
12159 version_type=sunos
12160 need_lib_prefix=no
12161 need_version=no
12162 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12165 dynamic_linker='NetBSD (a.out) ld.so'
12166 else
12167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12168 soname_spec='${libname}${release}${shared_ext}$major'
12169 dynamic_linker='NetBSD ld.elf_so'
12170 fi
12171 shlibpath_var=LD_LIBRARY_PATH
12172 shlibpath_overrides_runpath=yes
12173 hardcode_into_libs=yes
12174 ;;
12175
12176newsos6)
12177 version_type=linux
12178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12179 shlibpath_var=LD_LIBRARY_PATH
12180 shlibpath_overrides_runpath=yes
12181 ;;
12182
12183*nto* | *qnx*)
12184 version_type=qnx
12185 need_lib_prefix=no
12186 need_version=no
12187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12188 soname_spec='${libname}${release}${shared_ext}$major'
12189 shlibpath_var=LD_LIBRARY_PATH
12190 shlibpath_overrides_runpath=no
12191 hardcode_into_libs=yes
12192 dynamic_linker='ldqnx.so'
12193 ;;
12194
12195openbsd*)
12196 version_type=sunos
12197 sys_lib_dlsearch_path_spec="/usr/lib"
12198 need_lib_prefix=no
12199 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12200 case $host_os in
12201 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12202 *) need_version=no ;;
12203 esac
12204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12206 shlibpath_var=LD_LIBRARY_PATH
12207 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12208 case $host_os in
12209 openbsd2.[89] | openbsd2.[89].*)
12210 shlibpath_overrides_runpath=no
12211 ;;
12212 *)
12213 shlibpath_overrides_runpath=yes
12214 ;;
12215 esac
12216 else
12217 shlibpath_overrides_runpath=yes
12218 fi
12219 ;;
12220
12221os2*)
12222 libname_spec='$name'
12223 shrext_cmds=".dll"
12224 need_lib_prefix=no
12225 library_names_spec='$libname${shared_ext} $libname.a'
12226 dynamic_linker='OS/2 ld.exe'
12227 shlibpath_var=LIBPATH
12228 ;;
12229
12230osf3* | osf4* | osf5*)
12231 version_type=osf
12232 need_lib_prefix=no
12233 need_version=no
12234 soname_spec='${libname}${release}${shared_ext}$major'
12235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12236 shlibpath_var=LD_LIBRARY_PATH
12237 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12238 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12239 ;;
12240
12241rdos*)
12242 dynamic_linker=no
12243 ;;
12244
12245solaris*)
12246 version_type=linux
12247 need_lib_prefix=no
12248 need_version=no
12249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12250 soname_spec='${libname}${release}${shared_ext}$major'
12251 shlibpath_var=LD_LIBRARY_PATH
12252 shlibpath_overrides_runpath=yes
12253 hardcode_into_libs=yes
12254 # ldd complains unless libraries are executable
12255 postinstall_cmds='chmod +x $lib'
12256 ;;
12257
12258sunos4*)
12259 version_type=sunos
12260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12261 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12262 shlibpath_var=LD_LIBRARY_PATH
12263 shlibpath_overrides_runpath=yes
12264 if test "$with_gnu_ld" = yes; then
12265 need_lib_prefix=no
12266 fi
12267 need_version=yes
12268 ;;
12269
12270sysv4 | sysv4.3*)
12271 version_type=linux
12272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12273 soname_spec='${libname}${release}${shared_ext}$major'
12274 shlibpath_var=LD_LIBRARY_PATH
12275 case $host_vendor in
12276 sni)
12277 shlibpath_overrides_runpath=no
12278 need_lib_prefix=no
12279 runpath_var=LD_RUN_PATH
12280 ;;
12281 siemens)
12282 need_lib_prefix=no
12283 ;;
12284 motorola)
12285 need_lib_prefix=no
12286 need_version=no
12287 shlibpath_overrides_runpath=no
12288 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12289 ;;
12290 esac
12291 ;;
12292
12293sysv4*MP*)
12294 if test -d /usr/nec ;then
12295 version_type=linux
12296 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12297 soname_spec='$libname${shared_ext}.$major'
12298 shlibpath_var=LD_LIBRARY_PATH
12299 fi
12300 ;;
12301
12302sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12303 version_type=freebsd-elf
12304 need_lib_prefix=no
12305 need_version=no
12306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12307 soname_spec='${libname}${release}${shared_ext}$major'
12308 shlibpath_var=LD_LIBRARY_PATH
12309 shlibpath_overrides_runpath=yes
12310 hardcode_into_libs=yes
12311 if test "$with_gnu_ld" = yes; then
12312 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12313 else
12314 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12315 case $host_os in
12316 sco3.2v5*)
12317 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12318 ;;
12319 esac
12320 fi
12321 sys_lib_dlsearch_path_spec='/usr/lib'
12322 ;;
12323
12324tpf*)
12325 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12326 version_type=linux
12327 need_lib_prefix=no
12328 need_version=no
12329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12330 shlibpath_var=LD_LIBRARY_PATH
12331 shlibpath_overrides_runpath=no
12332 hardcode_into_libs=yes
12333 ;;
12334
12335uts4*)
12336 version_type=linux
12337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12338 soname_spec='${libname}${release}${shared_ext}$major'
12339 shlibpath_var=LD_LIBRARY_PATH
12340 ;;
12341
6a6859cb
AM
12342# Shared libraries for VwWorks, >= 7 only at this stage
12343# and (fpic) still incompatible with "large" code models
12344# in a few configurations. Only for RTP mode in any case,
12345# and upon explicit request at configure time.
12346vxworks7*)
12347 dynamic_linker=no
12348 case ${with_multisubdir}-${enable_shared} in
12349 *large*)
12350 ;;
12351 *mrtp*-yes)
12352 version_type=linux
12353 need_lib_prefix=no
12354 need_version=no
12355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12356 soname_spec='${libname}${release}${shared_ext}$major'
12357 dynamic_linker="$host_os module_loader"
12358 ;;
12359 esac
12360 ;;
b5689863
MF
12361*)
12362 dynamic_linker=no
12363 ;;
12364esac
12365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12366$as_echo "$dynamic_linker" >&6; }
12367test "$dynamic_linker" = no && can_build_shared=no
12368
12369variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12370if test "$GCC" = yes; then
12371 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12372fi
12373
12374if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12375 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12376fi
12377if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12378 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12379fi
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12473$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12474hardcode_action=
12475if test -n "$hardcode_libdir_flag_spec" ||
12476 test -n "$runpath_var" ||
12477 test "X$hardcode_automatic" = "Xyes" ; then
12478
12479 # We can hardcode non-existent directories.
12480 if test "$hardcode_direct" != no &&
12481 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12482 # have to relink, otherwise we might link with an installed library
12483 # when we should be linking with a yet-to-be-installed one
12484 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12485 test "$hardcode_minus_L" != no; then
12486 # Linking always hardcodes the temporary library directory.
12487 hardcode_action=relink
12488 else
12489 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12490 hardcode_action=immediate
12491 fi
12492else
12493 # We cannot hardcode anything, or else we can only hardcode existing
12494 # directories.
12495 hardcode_action=unsupported
12496fi
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12498$as_echo "$hardcode_action" >&6; }
12499
12500if test "$hardcode_action" = relink ||
12501 test "$inherit_rpath" = yes; then
12502 # Fast installation is not supported
12503 enable_fast_install=no
12504elif test "$shlibpath_overrides_runpath" = yes ||
12505 test "$enable_shared" = no; then
12506 # Fast installation is not necessary
12507 enable_fast_install=needless
12508fi
12509
12510
12511
12512
12513
12514
12515 if test "x$enable_dlopen" != xyes; then
12516 enable_dlopen=unknown
12517 enable_dlopen_self=unknown
12518 enable_dlopen_self_static=unknown
12519else
12520 lt_cv_dlopen=no
12521 lt_cv_dlopen_libs=
12522
12523 case $host_os in
12524 beos*)
12525 lt_cv_dlopen="load_add_on"
12526 lt_cv_dlopen_libs=
12527 lt_cv_dlopen_self=yes
12528 ;;
12529
12530 mingw* | pw32* | cegcc*)
12531 lt_cv_dlopen="LoadLibrary"
12532 lt_cv_dlopen_libs=
12533 ;;
12534
12535 cygwin*)
12536 lt_cv_dlopen="dlopen"
12537 lt_cv_dlopen_libs=
12538 ;;
12539
12540 darwin*)
12541 # if libdl is installed we need to link against it
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12543$as_echo_n "checking for dlopen in -ldl... " >&6; }
12544if ${ac_cv_lib_dl_dlopen+:} false; then :
12545 $as_echo_n "(cached) " >&6
12546else
12547 ac_check_lib_save_LIBS=$LIBS
12548LIBS="-ldl $LIBS"
12549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550/* end confdefs.h. */
12551
12552/* Override any GCC internal prototype to avoid an error.
12553 Use char because int might match the return type of a GCC
12554 builtin and then its argument prototype would still apply. */
12555#ifdef __cplusplus
12556extern "C"
12557#endif
12558char dlopen ();
12559int
12560main ()
12561{
12562return dlopen ();
12563 ;
12564 return 0;
12565}
12566_ACEOF
12567if ac_fn_c_try_link "$LINENO"; then :
12568 ac_cv_lib_dl_dlopen=yes
12569else
12570 ac_cv_lib_dl_dlopen=no
12571fi
12572rm -f core conftest.err conftest.$ac_objext \
12573 conftest$ac_exeext conftest.$ac_ext
12574LIBS=$ac_check_lib_save_LIBS
12575fi
12576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12577$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12578if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12580else
12581
12582 lt_cv_dlopen="dyld"
12583 lt_cv_dlopen_libs=
12584 lt_cv_dlopen_self=yes
12585
12586fi
12587
12588 ;;
12589
12590 *)
12591 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12592if test "x$ac_cv_func_shl_load" = xyes; then :
12593 lt_cv_dlopen="shl_load"
12594else
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12596$as_echo_n "checking for shl_load in -ldld... " >&6; }
12597if ${ac_cv_lib_dld_shl_load+:} false; then :
12598 $as_echo_n "(cached) " >&6
12599else
12600 ac_check_lib_save_LIBS=$LIBS
12601LIBS="-ldld $LIBS"
12602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603/* end confdefs.h. */
12604
12605/* Override any GCC internal prototype to avoid an error.
12606 Use char because int might match the return type of a GCC
12607 builtin and then its argument prototype would still apply. */
12608#ifdef __cplusplus
12609extern "C"
12610#endif
12611char shl_load ();
a48ff3ef
MF
12612int
12613main ()
12614{
b5689863 12615return shl_load ();
a48ff3ef
MF
12616 ;
12617 return 0;
12618}
12619_ACEOF
12620if ac_fn_c_try_link "$LINENO"; then :
b5689863 12621 ac_cv_lib_dld_shl_load=yes
a48ff3ef 12622else
b5689863 12623 ac_cv_lib_dld_shl_load=no
a48ff3ef
MF
12624fi
12625rm -f core conftest.err conftest.$ac_objext \
12626 conftest$ac_exeext conftest.$ac_ext
b5689863 12627LIBS=$ac_check_lib_save_LIBS
a48ff3ef 12628fi
b5689863
MF
12629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12630$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12631if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12632 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12633else
12634 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12635if test "x$ac_cv_func_dlopen" = xyes; then :
12636 lt_cv_dlopen="dlopen"
12637else
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12639$as_echo_n "checking for dlopen in -ldl... " >&6; }
12640if ${ac_cv_lib_dl_dlopen+:} false; then :
12641 $as_echo_n "(cached) " >&6
12642else
12643 ac_check_lib_save_LIBS=$LIBS
12644LIBS="-ldl $LIBS"
12645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646/* end confdefs.h. */
a48ff3ef 12647
b5689863
MF
12648/* Override any GCC internal prototype to avoid an error.
12649 Use char because int might match the return type of a GCC
12650 builtin and then its argument prototype would still apply. */
12651#ifdef __cplusplus
12652extern "C"
12653#endif
12654char dlopen ();
12655int
12656main ()
12657{
12658return dlopen ();
12659 ;
12660 return 0;
12661}
12662_ACEOF
12663if ac_fn_c_try_link "$LINENO"; then :
12664 ac_cv_lib_dl_dlopen=yes
12665else
12666 ac_cv_lib_dl_dlopen=no
a48ff3ef 12667fi
b5689863
MF
12668rm -f core conftest.err conftest.$ac_objext \
12669 conftest$ac_exeext conftest.$ac_ext
12670LIBS=$ac_check_lib_save_LIBS
12671fi
12672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12673$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12674if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12675 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12676else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12678$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12679if ${ac_cv_lib_svld_dlopen+:} false; then :
12680 $as_echo_n "(cached) " >&6
12681else
12682 ac_check_lib_save_LIBS=$LIBS
12683LIBS="-lsvld $LIBS"
12684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685/* end confdefs.h. */
a48ff3ef 12686
b5689863
MF
12687/* Override any GCC internal prototype to avoid an error.
12688 Use char because int might match the return type of a GCC
12689 builtin and then its argument prototype would still apply. */
12690#ifdef __cplusplus
12691extern "C"
b15c5d7a 12692#endif
b5689863
MF
12693char dlopen ();
12694int
12695main ()
12696{
12697return dlopen ();
12698 ;
12699 return 0;
12700}
b15c5d7a 12701_ACEOF
b5689863
MF
12702if ac_fn_c_try_link "$LINENO"; then :
12703 ac_cv_lib_svld_dlopen=yes
12704else
12705 ac_cv_lib_svld_dlopen=no
b15c5d7a 12706fi
b5689863
MF
12707rm -f core conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
12709LIBS=$ac_check_lib_save_LIBS
12710fi
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12712$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12713if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12714 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12715else
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12717$as_echo_n "checking for dld_link in -ldld... " >&6; }
12718if ${ac_cv_lib_dld_dld_link+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720else
12721 ac_check_lib_save_LIBS=$LIBS
12722LIBS="-ldld $LIBS"
12723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724/* end confdefs.h. */
b15c5d7a 12725
b5689863
MF
12726/* Override any GCC internal prototype to avoid an error.
12727 Use char because int might match the return type of a GCC
12728 builtin and then its argument prototype would still apply. */
12729#ifdef __cplusplus
12730extern "C"
12731#endif
12732char dld_link ();
12733int
12734main ()
12735{
12736return dld_link ();
12737 ;
12738 return 0;
12739}
b15c5d7a 12740_ACEOF
b5689863
MF
12741if ac_fn_c_try_link "$LINENO"; then :
12742 ac_cv_lib_dld_dld_link=yes
12743else
12744 ac_cv_lib_dld_dld_link=no
12745fi
12746rm -f core conftest.err conftest.$ac_objext \
12747 conftest$ac_exeext conftest.$ac_ext
12748LIBS=$ac_check_lib_save_LIBS
12749fi
12750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12751$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12752if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12753 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12754fi
b15c5d7a
MF
12755
12756
12757fi
b15c5d7a 12758
b5689863
MF
12759
12760fi
b15c5d7a
MF
12761
12762
12763fi
b15c5d7a 12764
b5689863
MF
12765
12766fi
b15c5d7a
MF
12767
12768
12769fi
b15c5d7a 12770
b5689863
MF
12771 ;;
12772 esac
b15c5d7a 12773
b5689863
MF
12774 if test "x$lt_cv_dlopen" != xno; then
12775 enable_dlopen=yes
12776 else
12777 enable_dlopen=no
12778 fi
b15c5d7a 12779
b5689863
MF
12780 case $lt_cv_dlopen in
12781 dlopen)
12782 save_CPPFLAGS="$CPPFLAGS"
12783 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
b15c5d7a 12784
b5689863
MF
12785 save_LDFLAGS="$LDFLAGS"
12786 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
b15c5d7a 12787
b5689863
MF
12788 save_LIBS="$LIBS"
12789 LIBS="$lt_cv_dlopen_libs $LIBS"
b15c5d7a 12790
b5689863
MF
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12792$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12793if ${lt_cv_dlopen_self+:} false; then :
12794 $as_echo_n "(cached) " >&6
12795else
12796 if test "$cross_compiling" = yes; then :
12797 lt_cv_dlopen_self=cross
12798else
12799 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12800 lt_status=$lt_dlunknown
12801 cat > conftest.$ac_ext <<_LT_EOF
3960e5b8 12802#line 12802 "configure"
b5689863
MF
12803#include "confdefs.h"
12804
12805#if HAVE_DLFCN_H
12806#include <dlfcn.h>
b15c5d7a 12807#endif
b15c5d7a 12808
b5689863 12809#include <stdio.h>
b15c5d7a 12810
b5689863
MF
12811#ifdef RTLD_GLOBAL
12812# define LT_DLGLOBAL RTLD_GLOBAL
12813#else
12814# ifdef DL_GLOBAL
12815# define LT_DLGLOBAL DL_GLOBAL
12816# else
12817# define LT_DLGLOBAL 0
12818# endif
12819#endif
b15c5d7a 12820
b5689863
MF
12821/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12822 find out it does not work in some platform. */
12823#ifndef LT_DLLAZY_OR_NOW
12824# ifdef RTLD_LAZY
12825# define LT_DLLAZY_OR_NOW RTLD_LAZY
12826# else
12827# ifdef DL_LAZY
12828# define LT_DLLAZY_OR_NOW DL_LAZY
12829# else
12830# ifdef RTLD_NOW
12831# define LT_DLLAZY_OR_NOW RTLD_NOW
12832# else
12833# ifdef DL_NOW
12834# define LT_DLLAZY_OR_NOW DL_NOW
12835# else
12836# define LT_DLLAZY_OR_NOW 0
12837# endif
12838# endif
12839# endif
12840# endif
b15c5d7a 12841#endif
b5689863
MF
12842
12843/* When -fvisbility=hidden is used, assume the code has been annotated
12844 correspondingly for the symbols needed. */
12845#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12846void fnord () __attribute__((visibility("default")));
b15c5d7a 12847#endif
b15c5d7a 12848
b5689863
MF
12849void fnord () { int i=42; }
12850int main ()
12851{
12852 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12853 int status = $lt_dlunknown;
b15c5d7a 12854
b5689863
MF
12855 if (self)
12856 {
12857 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12858 else
12859 {
12860 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12861 else puts (dlerror ());
12862 }
12863 /* dlclose (self); */
12864 }
12865 else
12866 puts (dlerror ());
b15c5d7a 12867
b5689863
MF
12868 return status;
12869}
12870_LT_EOF
12871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12872 (eval $ac_link) 2>&5
12873 ac_status=$?
12874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12875 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12876 (./conftest; exit; ) >&5 2>/dev/null
12877 lt_status=$?
12878 case x$lt_status in
12879 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12880 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12881 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12882 esac
12883 else :
12884 # compilation failed
12885 lt_cv_dlopen_self=no
12886 fi
b15c5d7a 12887fi
b5689863 12888rm -fr conftest*
b15c5d7a
MF
12889
12890
12891fi
b5689863
MF
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12893$as_echo "$lt_cv_dlopen_self" >&6; }
12894
12895 if test "x$lt_cv_dlopen_self" = xyes; then
12896 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12898$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12899if ${lt_cv_dlopen_self_static+:} false; then :
12900 $as_echo_n "(cached) " >&6
12901else
12902 if test "$cross_compiling" = yes; then :
12903 lt_cv_dlopen_self_static=cross
12904else
12905 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12906 lt_status=$lt_dlunknown
12907 cat > conftest.$ac_ext <<_LT_EOF
3960e5b8 12908#line 12908 "configure"
b5689863
MF
12909#include "confdefs.h"
12910
12911#if HAVE_DLFCN_H
12912#include <dlfcn.h>
b15c5d7a 12913#endif
b15c5d7a 12914
b5689863 12915#include <stdio.h>
b15c5d7a 12916
b5689863
MF
12917#ifdef RTLD_GLOBAL
12918# define LT_DLGLOBAL RTLD_GLOBAL
12919#else
12920# ifdef DL_GLOBAL
12921# define LT_DLGLOBAL DL_GLOBAL
12922# else
12923# define LT_DLGLOBAL 0
12924# endif
12925#endif
b15c5d7a 12926
b5689863
MF
12927/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12928 find out it does not work in some platform. */
12929#ifndef LT_DLLAZY_OR_NOW
12930# ifdef RTLD_LAZY
12931# define LT_DLLAZY_OR_NOW RTLD_LAZY
12932# else
12933# ifdef DL_LAZY
12934# define LT_DLLAZY_OR_NOW DL_LAZY
12935# else
12936# ifdef RTLD_NOW
12937# define LT_DLLAZY_OR_NOW RTLD_NOW
12938# else
12939# ifdef DL_NOW
12940# define LT_DLLAZY_OR_NOW DL_NOW
12941# else
12942# define LT_DLLAZY_OR_NOW 0
12943# endif
12944# endif
12945# endif
12946# endif
b15c5d7a 12947#endif
b5689863
MF
12948
12949/* When -fvisbility=hidden is used, assume the code has been annotated
12950 correspondingly for the symbols needed. */
12951#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12952void fnord () __attribute__((visibility("default")));
b15c5d7a 12953#endif
b15c5d7a 12954
b5689863
MF
12955void fnord () { int i=42; }
12956int main ()
12957{
12958 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12959 int status = $lt_dlunknown;
12960
12961 if (self)
12962 {
12963 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12964 else
12965 {
12966 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12967 else puts (dlerror ());
12968 }
12969 /* dlclose (self); */
12970 }
12971 else
12972 puts (dlerror ());
12973
12974 return status;
12975}
12976_LT_EOF
12977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12978 (eval $ac_link) 2>&5
12979 ac_status=$?
12980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12981 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12982 (./conftest; exit; ) >&5 2>/dev/null
12983 lt_status=$?
12984 case x$lt_status in
12985 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12986 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12987 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12988 esac
12989 else :
12990 # compilation failed
12991 lt_cv_dlopen_self_static=no
12992 fi
12993fi
12994rm -fr conftest*
b15c5d7a
MF
12995
12996
12997fi
b5689863
MF
12998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12999$as_echo "$lt_cv_dlopen_self_static" >&6; }
13000 fi
b15c5d7a 13001
b5689863
MF
13002 CPPFLAGS="$save_CPPFLAGS"
13003 LDFLAGS="$save_LDFLAGS"
13004 LIBS="$save_LIBS"
13005 ;;
13006 esac
b15c5d7a 13007
b5689863
MF
13008 case $lt_cv_dlopen_self in
13009 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13010 *) enable_dlopen_self=unknown ;;
13011 esac
b15c5d7a 13012
b5689863
MF
13013 case $lt_cv_dlopen_self_static in
13014 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13015 *) enable_dlopen_self_static=unknown ;;
13016 esac
b15c5d7a 13017fi
b15c5d7a 13018
b15c5d7a
MF
13019
13020
b15c5d7a
MF
13021
13022
b15c5d7a 13023
b15c5d7a
MF
13024
13025
b15c5d7a 13026
b15c5d7a 13027
b15c5d7a 13028
b15c5d7a
MF
13029
13030
b15c5d7a
MF
13031
13032
a48ff3ef 13033
a48ff3ef 13034
b5689863
MF
13035striplib=
13036old_striplib=
13037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13038$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13039if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13040 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13041 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13043$as_echo "yes" >&6; }
a48ff3ef 13044else
b5689863
MF
13045# FIXME - insert some real tests, host_os isn't really good enough
13046 case $host_os in
13047 darwin*)
13048 if test -n "$STRIP" ; then
13049 striplib="$STRIP -x"
13050 old_striplib="$STRIP -S"
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13052$as_echo "yes" >&6; }
13053 else
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055$as_echo "no" >&6; }
13056 fi
13057 ;;
13058 *)
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060$as_echo "no" >&6; }
13061 ;;
13062 esac
a48ff3ef
MF
13063fi
13064
a48ff3ef 13065
a48ff3ef 13066
a48ff3ef 13067
a48ff3ef
MF
13068
13069
a48ff3ef 13070
a48ff3ef 13071
a48ff3ef 13072
a48ff3ef 13073
a48ff3ef 13074
a48ff3ef 13075
b5689863
MF
13076 # Report which library types will actually be built
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13078$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13080$as_echo "$can_build_shared" >&6; }
a48ff3ef 13081
b5689863
MF
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13083$as_echo_n "checking whether to build shared libraries... " >&6; }
13084 test "$can_build_shared" = "no" && enable_shared=no
a48ff3ef 13085
b5689863
MF
13086 # On AIX, shared libraries and static libraries use the same namespace, and
13087 # are all built from PIC.
13088 case $host_os in
13089 aix3*)
13090 test "$enable_shared" = yes && enable_static=no
13091 if test -n "$RANLIB"; then
13092 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13093 postinstall_cmds='$RANLIB $lib'
13094 fi
13095 ;;
a48ff3ef 13096
b5689863
MF
13097 aix[4-9]*)
13098 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13099 test "$enable_shared" = yes && enable_static=no
13100 fi
13101 ;;
13102 esac
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13104$as_echo "$enable_shared" >&6; }
13105
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13107$as_echo_n "checking whether to build static libraries... " >&6; }
13108 # Make sure either enable_shared or enable_static is yes.
13109 test "$enable_shared" = yes || enable_static=yes
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13111$as_echo "$enable_static" >&6; }
a48ff3ef 13112
a48ff3ef 13113
a48ff3ef 13114
b15c5d7a 13115
b15c5d7a 13116fi
b5689863
MF
13117ac_ext=c
13118ac_cpp='$CPP $CPPFLAGS'
13119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13121ac_compiler_gnu=$ac_cv_c_compiler_gnu
b15c5d7a 13122
b5689863 13123CC="$lt_save_CC"
b15c5d7a
MF
13124
13125
a48ff3ef 13126
a48ff3ef 13127
a48ff3ef 13128
a48ff3ef 13129
a48ff3ef 13130
a48ff3ef 13131
a48ff3ef 13132
a48ff3ef
MF
13133
13134
a48ff3ef 13135
b5689863
MF
13136
13137 ac_config_commands="$ac_config_commands libtool"
13138
13139
13140
13141
13142# Only expand once:
13143
13144
a48ff3ef 13145
05108158
MF
13146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
13147$as_echo_n "checking for library containing bind... " >&6; }
13148if ${ac_cv_search_bind+:} false; then :
07490bf8
MF
13149 $as_echo_n "(cached) " >&6
13150else
05108158 13151 ac_func_search_save_LIBS=$LIBS
07490bf8
MF
13152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153/* end confdefs.h. */
13154
13155/* Override any GCC internal prototype to avoid an error.
13156 Use char because int might match the return type of a GCC
13157 builtin and then its argument prototype would still apply. */
13158#ifdef __cplusplus
13159extern "C"
13160#endif
13161char bind ();
13162int
13163main ()
13164{
13165return bind ();
13166 ;
13167 return 0;
13168}
13169_ACEOF
05108158
MF
13170for ac_lib in '' socket; do
13171 if test -z "$ac_lib"; then
13172 ac_res="none required"
13173 else
13174 ac_res=-l$ac_lib
13175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13176 fi
13177 if ac_fn_c_try_link "$LINENO"; then :
13178 ac_cv_search_bind=$ac_res
07490bf8
MF
13179fi
13180rm -f core conftest.err conftest.$ac_objext \
05108158
MF
13181 conftest$ac_exeext
13182 if ${ac_cv_search_bind+:} false; then :
13183 break
07490bf8 13184fi
05108158
MF
13185done
13186if ${ac_cv_search_bind+:} false; then :
07490bf8 13187
05108158
MF
13188else
13189 ac_cv_search_bind=no
13190fi
13191rm conftest.$ac_ext
13192LIBS=$ac_func_search_save_LIBS
13193fi
13194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
13195$as_echo "$ac_cv_search_bind" >&6; }
13196ac_res=$ac_cv_search_bind
13197if test "$ac_res" != no; then :
13198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
07490bf8
MF
13199
13200fi
13201
05108158
MF
13202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13203$as_echo_n "checking for library containing gethostbyname... " >&6; }
13204if ${ac_cv_search_gethostbyname+:} false; then :
07490bf8
MF
13205 $as_echo_n "(cached) " >&6
13206else
05108158 13207 ac_func_search_save_LIBS=$LIBS
07490bf8
MF
13208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209/* end confdefs.h. */
13210
13211/* Override any GCC internal prototype to avoid an error.
13212 Use char because int might match the return type of a GCC
13213 builtin and then its argument prototype would still apply. */
13214#ifdef __cplusplus
13215extern "C"
13216#endif
13217char gethostbyname ();
13218int
13219main ()
13220{
13221return gethostbyname ();
13222 ;
13223 return 0;
13224}
13225_ACEOF
05108158
MF
13226for ac_lib in '' nsl; do
13227 if test -z "$ac_lib"; then
13228 ac_res="none required"
13229 else
13230 ac_res=-l$ac_lib
13231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13232 fi
13233 if ac_fn_c_try_link "$LINENO"; then :
13234 ac_cv_search_gethostbyname=$ac_res
07490bf8
MF
13235fi
13236rm -f core conftest.err conftest.$ac_objext \
05108158
MF
13237 conftest$ac_exeext
13238 if ${ac_cv_search_gethostbyname+:} false; then :
13239 break
07490bf8 13240fi
05108158
MF
13241done
13242if ${ac_cv_search_gethostbyname+:} false; then :
07490bf8 13243
05108158
MF
13244else
13245 ac_cv_search_gethostbyname=no
13246fi
13247rm conftest.$ac_ext
13248LIBS=$ac_func_search_save_LIBS
13249fi
13250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13251$as_echo "$ac_cv_search_gethostbyname" >&6; }
13252ac_res=$ac_cv_search_gethostbyname
13253if test "$ac_res" != no; then :
13254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
07490bf8
MF
13255
13256fi
13257
05108158
MF
13258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
13259$as_echo_n "checking for library containing fabs... " >&6; }
13260if ${ac_cv_search_fabs+:} false; then :
07490bf8
MF
13261 $as_echo_n "(cached) " >&6
13262else
05108158 13263 ac_func_search_save_LIBS=$LIBS
07490bf8
MF
13264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265/* end confdefs.h. */
13266
13267/* Override any GCC internal prototype to avoid an error.
13268 Use char because int might match the return type of a GCC
13269 builtin and then its argument prototype would still apply. */
13270#ifdef __cplusplus
13271extern "C"
13272#endif
13273char fabs ();
13274int
13275main ()
13276{
13277return fabs ();
13278 ;
13279 return 0;
13280}
13281_ACEOF
05108158
MF
13282for ac_lib in '' m; do
13283 if test -z "$ac_lib"; then
13284 ac_res="none required"
13285 else
13286 ac_res=-l$ac_lib
13287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13288 fi
13289 if ac_fn_c_try_link "$LINENO"; then :
13290 ac_cv_search_fabs=$ac_res
07490bf8
MF
13291fi
13292rm -f core conftest.err conftest.$ac_objext \
05108158
MF
13293 conftest$ac_exeext
13294 if ${ac_cv_search_fabs+:} false; then :
13295 break
07490bf8 13296fi
05108158
MF
13297done
13298if ${ac_cv_search_fabs+:} false; then :
07490bf8 13299
05108158
MF
13300else
13301 ac_cv_search_fabs=no
13302fi
13303rm conftest.$ac_ext
13304LIBS=$ac_func_search_save_LIBS
13305fi
13306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
13307$as_echo "$ac_cv_search_fabs" >&6; }
13308ac_res=$ac_cv_search_fabs
13309if test "$ac_res" != no; then :
13310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
07490bf8
MF
13311
13312fi
13313
05108158
MF
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5
13315$as_echo_n "checking for library containing log2... " >&6; }
13316if ${ac_cv_search_log2+:} false; then :
07490bf8
MF
13317 $as_echo_n "(cached) " >&6
13318else
05108158 13319 ac_func_search_save_LIBS=$LIBS
07490bf8
MF
13320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321/* end confdefs.h. */
13322
13323/* Override any GCC internal prototype to avoid an error.
13324 Use char because int might match the return type of a GCC
13325 builtin and then its argument prototype would still apply. */
13326#ifdef __cplusplus
13327extern "C"
13328#endif
13329char log2 ();
13330int
13331main ()
13332{
13333return log2 ();
13334 ;
13335 return 0;
13336}
13337_ACEOF
05108158
MF
13338for ac_lib in '' m; do
13339 if test -z "$ac_lib"; then
13340 ac_res="none required"
13341 else
13342 ac_res=-l$ac_lib
13343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13344 fi
13345 if ac_fn_c_try_link "$LINENO"; then :
13346 ac_cv_search_log2=$ac_res
07490bf8
MF
13347fi
13348rm -f core conftest.err conftest.$ac_objext \
05108158
MF
13349 conftest$ac_exeext
13350 if ${ac_cv_search_log2+:} false; then :
13351 break
07490bf8 13352fi
05108158
MF
13353done
13354if ${ac_cv_search_log2+:} false; then :
07490bf8 13355
05108158
MF
13356else
13357 ac_cv_search_log2=no
13358fi
13359rm conftest.$ac_ext
13360LIBS=$ac_func_search_save_LIBS
13361fi
13362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5
13363$as_echo "$ac_cv_search_log2" >&6; }
13364ac_res=$ac_cv_search_log2
13365if test "$ac_res" != no; then :
13366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
07490bf8
MF
13367
13368fi
13369
13370
05108158
MF
13371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13372$as_echo_n "checking for library containing dlopen... " >&6; }
13373if ${ac_cv_search_dlopen+:} false; then :
f050cfdd
MF
13374 $as_echo_n "(cached) " >&6
13375else
05108158 13376 ac_func_search_save_LIBS=$LIBS
f050cfdd
MF
13377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378/* end confdefs.h. */
13379
13380/* Override any GCC internal prototype to avoid an error.
13381 Use char because int might match the return type of a GCC
13382 builtin and then its argument prototype would still apply. */
13383#ifdef __cplusplus
13384extern "C"
13385#endif
13386char dlopen ();
13387int
13388main ()
13389{
13390return dlopen ();
13391 ;
13392 return 0;
13393}
13394_ACEOF
05108158
MF
13395for ac_lib in '' dl; do
13396 if test -z "$ac_lib"; then
13397 ac_res="none required"
13398 else
13399 ac_res=-l$ac_lib
13400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13401 fi
13402 if ac_fn_c_try_link "$LINENO"; then :
13403 ac_cv_search_dlopen=$ac_res
f050cfdd
MF
13404fi
13405rm -f core conftest.err conftest.$ac_objext \
05108158
MF
13406 conftest$ac_exeext
13407 if ${ac_cv_search_dlopen+:} false; then :
13408 break
f050cfdd 13409fi
05108158
MF
13410done
13411if ${ac_cv_search_dlopen+:} false; then :
f050cfdd 13412
05108158
MF
13413else
13414 ac_cv_search_dlopen=no
13415fi
13416rm conftest.$ac_ext
13417LIBS=$ac_func_search_save_LIBS
13418fi
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13420$as_echo "$ac_cv_search_dlopen" >&6; }
13421ac_res=$ac_cv_search_dlopen
13422if test "$ac_res" != no; then :
13423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
f050cfdd
MF
13424
13425fi
13426
708aee5e 13427if test "${ac_cv_search_dlopen}" = "none required" || test "${ac_cv_lib_dl_dlopen}" = "yes"; then
f050cfdd
MF
13428
13429pkg_failed=no
13430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
13431$as_echo_n "checking for sdl2... " >&6; }
13432
13433if test -n "$SDL_CFLAGS"; then
13434 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13435 elif test -n "$PKG_CONFIG"; then
13436 if test -n "$PKG_CONFIG" && \
13437 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13438 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13439 ac_status=$?
13440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13441 test $ac_status = 0; }; then
13442 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
13443 test "x$?" != "x0" && pkg_failed=yes
13444else
13445 pkg_failed=yes
13446fi
13447 else
13448 pkg_failed=untried
13449fi
13450if test -n "$SDL_LIBS"; then
13451 pkg_cv_SDL_LIBS="$SDL_LIBS"
13452 elif test -n "$PKG_CONFIG"; then
13453 if test -n "$PKG_CONFIG" && \
13454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13455 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13456 ac_status=$?
13457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13458 test $ac_status = 0; }; then
13459 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
13460 test "x$?" != "x0" && pkg_failed=yes
13461else
13462 pkg_failed=yes
13463fi
13464 else
13465 pkg_failed=untried
13466fi
13467
13468if test $pkg_failed = no; then
13469 pkg_save_LDFLAGS="$LDFLAGS"
13470 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472/* end confdefs.h. */
13473
13474int
13475main ()
13476{
13477
13478 ;
13479 return 0;
13480}
13481_ACEOF
13482if ac_fn_c_try_link "$LINENO"; then :
13483
13484else
13485 pkg_failed=yes
13486fi
13487rm -f core conftest.err conftest.$ac_objext \
13488 conftest$ac_exeext conftest.$ac_ext
13489 LDFLAGS=$pkg_save_LDFLAGS
13490fi
13491
13492
13493
13494if test $pkg_failed = yes; then
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496$as_echo "no" >&6; }
13497
13498if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13499 _pkg_short_errors_supported=yes
13500else
13501 _pkg_short_errors_supported=no
13502fi
13503 if test $_pkg_short_errors_supported = yes; then
13504 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
13505 else
13506 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
13507 fi
13508 # Put the nasty error message in config.log where it belongs
13509 echo "$SDL_PKG_ERRORS" >&5
13510
13511
b15c5d7a 13512
d57b6533
MF
13513pkg_failed=no
13514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13515$as_echo_n "checking for sdl... " >&6; }
13516
13517if test -n "$SDL_CFLAGS"; then
13518 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13519 elif test -n "$PKG_CONFIG"; then
13520 if test -n "$PKG_CONFIG" && \
13521 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13522 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13523 ac_status=$?
13524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13525 test $ac_status = 0; }; then
13526 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13527 test "x$?" != "x0" && pkg_failed=yes
13528else
13529 pkg_failed=yes
13530fi
13531 else
13532 pkg_failed=untried
13533fi
13534if test -n "$SDL_LIBS"; then
13535 pkg_cv_SDL_LIBS="$SDL_LIBS"
13536 elif test -n "$PKG_CONFIG"; then
13537 if test -n "$PKG_CONFIG" && \
13538 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13539 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13540 ac_status=$?
13541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13542 test $ac_status = 0; }; then
13543 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13544 test "x$?" != "x0" && pkg_failed=yes
13545else
13546 pkg_failed=yes
13547fi
13548 else
13549 pkg_failed=untried
13550fi
13551
13552if test $pkg_failed = no; then
13553 pkg_save_LDFLAGS="$LDFLAGS"
13554 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556/* end confdefs.h. */
13557
13558int
13559main ()
13560{
13561
13562 ;
13563 return 0;
13564}
13565_ACEOF
13566if ac_fn_c_try_link "$LINENO"; then :
13567
13568else
13569 pkg_failed=yes
13570fi
13571rm -f core conftest.err conftest.$ac_objext \
13572 conftest$ac_exeext conftest.$ac_ext
13573 LDFLAGS=$pkg_save_LDFLAGS
13574fi
13575
13576
13577
13578if test $pkg_failed = yes; then
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580$as_echo "no" >&6; }
13581
13582if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13583 _pkg_short_errors_supported=yes
13584else
13585 _pkg_short_errors_supported=no
13586fi
13587 if test $_pkg_short_errors_supported = yes; then
13588 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13589 else
13590 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13591 fi
13592 # Put the nasty error message in config.log where it belongs
13593 echo "$SDL_PKG_ERRORS" >&5
13594
13595 :
13596elif test $pkg_failed = untried; then
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13598$as_echo "no" >&6; }
13599 :
13600else
13601 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13602 SDL_LIBS=$pkg_cv_SDL_LIBS
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13604$as_echo "yes" >&6; }
f050cfdd 13605 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
f050cfdd
MF
13606
13607fi
13608
13609elif test $pkg_failed = untried; then
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611$as_echo "no" >&6; }
13612
13613
13614pkg_failed=no
13615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13616$as_echo_n "checking for sdl... " >&6; }
13617
13618if test -n "$SDL_CFLAGS"; then
13619 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13620 elif test -n "$PKG_CONFIG"; then
13621 if test -n "$PKG_CONFIG" && \
13622 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13623 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13624 ac_status=$?
13625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13626 test $ac_status = 0; }; then
13627 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13628 test "x$?" != "x0" && pkg_failed=yes
d57b6533 13629else
f050cfdd
MF
13630 pkg_failed=yes
13631fi
13632 else
13633 pkg_failed=untried
13634fi
13635if test -n "$SDL_LIBS"; then
13636 pkg_cv_SDL_LIBS="$SDL_LIBS"
13637 elif test -n "$PKG_CONFIG"; then
13638 if test -n "$PKG_CONFIG" && \
13639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13640 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13641 ac_status=$?
13642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13643 test $ac_status = 0; }; then
13644 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13645 test "x$?" != "x0" && pkg_failed=yes
13646else
13647 pkg_failed=yes
13648fi
13649 else
13650 pkg_failed=untried
13651fi
13652
13653if test $pkg_failed = no; then
13654 pkg_save_LDFLAGS="$LDFLAGS"
13655 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d57b6533
MF
13657/* end confdefs.h. */
13658
d57b6533
MF
13659int
13660main ()
13661{
f050cfdd 13662
d57b6533
MF
13663 ;
13664 return 0;
13665}
13666_ACEOF
13667if ac_fn_c_try_link "$LINENO"; then :
f050cfdd 13668
d57b6533 13669else
f050cfdd 13670 pkg_failed=yes
d57b6533
MF
13671fi
13672rm -f core conftest.err conftest.$ac_objext \
13673 conftest$ac_exeext conftest.$ac_ext
f050cfdd 13674 LDFLAGS=$pkg_save_LDFLAGS
d57b6533 13675fi
d57b6533 13676
f050cfdd
MF
13677
13678
13679if test $pkg_failed = yes; then
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13681$as_echo "no" >&6; }
13682
13683if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13684 _pkg_short_errors_supported=yes
d57b6533 13685else
f050cfdd 13686 _pkg_short_errors_supported=no
d57b6533 13687fi
f050cfdd
MF
13688 if test $_pkg_short_errors_supported = yes; then
13689 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13690 else
13691 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13692 fi
13693 # Put the nasty error message in config.log where it belongs
13694 echo "$SDL_PKG_ERRORS" >&5
13695
13696 :
13697elif test $pkg_failed = untried; then
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699$as_echo "no" >&6; }
13700 :
13701else
13702 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13703 SDL_LIBS=$pkg_cv_SDL_LIBS
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13705$as_echo "yes" >&6; }
13706 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
d57b6533 13707
f050cfdd
MF
13708fi
13709
13710else
13711 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13712 SDL_LIBS=$pkg_cv_SDL_LIBS
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13714$as_echo "yes" >&6; }
13715 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
c55c1f6e
MF
13716
13717fi
13718 if test -n "$SDL_CFLAGS"; then :
13719 if test "$ac_cv_search_dlopen" = no; then :
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5
13721$as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;}
13722
13723fi
d57b6533
MF
13724
13725fi
f050cfdd
MF
13726else
13727 SDL_CFLAGS=
f050cfdd 13728fi
c55c1f6e 13729SDL_LIBS=
d57b6533
MF
13730
13731
5d0b3088
MF
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13733$as_echo_n "checking for cygwin... " >&6; }
13734if ${sim_cv_os_cygwin+:} false; then :
13735 $as_echo_n "(cached) " >&6
13736else
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738/* end confdefs.h. */
13739
13740#ifdef __CYGWIN__
13741lose
13742#endif
13743_ACEOF
13744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13745 $EGREP "lose" >/dev/null 2>&1; then :
13746 sim_cv_os_cygwin=yes
13747else
13748 sim_cv_os_cygwin=no
13749fi
13750rm -f conftest*
13751
13752fi
13753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13754$as_echo "$sim_cv_os_cygwin" >&6; }
13755
13756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13757$as_echo_n "checking for library containing tgetent... " >&6; }
13758if ${ac_cv_search_tgetent+:} false; then :
13759 $as_echo_n "(cached) " >&6
13760else
13761 ac_func_search_save_LIBS=$LIBS
13762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763/* end confdefs.h. */
13764
13765/* Override any GCC internal prototype to avoid an error.
13766 Use char because int might match the return type of a GCC
13767 builtin and then its argument prototype would still apply. */
13768#ifdef __cplusplus
13769extern "C"
13770#endif
13771char tgetent ();
13772int
13773main ()
13774{
13775return tgetent ();
13776 ;
13777 return 0;
13778}
13779_ACEOF
13780for ac_lib in '' termcap tinfo curses ncurses; do
13781 if test -z "$ac_lib"; then
13782 ac_res="none required"
13783 else
13784 ac_res=-l$ac_lib
13785 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13786 fi
13787 if ac_fn_c_try_link "$LINENO"; then :
13788 ac_cv_search_tgetent=$ac_res
13789fi
13790rm -f core conftest.err conftest.$ac_objext \
13791 conftest$ac_exeext
13792 if ${ac_cv_search_tgetent+:} false; then :
13793 break
13794fi
13795done
13796if ${ac_cv_search_tgetent+:} false; then :
13797
13798else
13799 ac_cv_search_tgetent=no
13800fi
13801rm conftest.$ac_ext
13802LIBS=$ac_func_search_save_LIBS
13803fi
13804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13805$as_echo "$ac_cv_search_tgetent" >&6; }
13806ac_res=$ac_cv_search_tgetent
13807if test "$ac_res" != no; then :
13808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13809 TERMCAP_LIB=$ac_cv_search_tgetent
13810else
13811 TERMCAP_LIB=""
13812fi
13813
13814if test x$sim_cv_os_cygwin = xyes; then
13815 TERMCAP_LIB="${TERMCAP_LIB} -luser32"
13816fi
13817
13818
13819if test -r ../readline/Makefile; then
5a988617 13820 READLINE_LIB=../readline/readline/libreadline.a
5d0b3088
MF
13821 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
13822else
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13824$as_echo_n "checking for readline in -lreadline... " >&6; }
13825if ${ac_cv_lib_readline_readline+:} false; then :
13826 $as_echo_n "(cached) " >&6
13827else
13828 ac_check_lib_save_LIBS=$LIBS
13829LIBS="-lreadline $TERMCAP_LIB $LIBS"
13830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831/* end confdefs.h. */
13832
13833/* Override any GCC internal prototype to avoid an error.
13834 Use char because int might match the return type of a GCC
13835 builtin and then its argument prototype would still apply. */
13836#ifdef __cplusplus
13837extern "C"
13838#endif
13839char readline ();
13840int
13841main ()
13842{
13843return readline ();
13844 ;
13845 return 0;
13846}
13847_ACEOF
13848if ac_fn_c_try_link "$LINENO"; then :
13849 ac_cv_lib_readline_readline=yes
13850else
13851 ac_cv_lib_readline_readline=no
13852fi
13853rm -f core conftest.err conftest.$ac_objext \
13854 conftest$ac_exeext conftest.$ac_ext
13855LIBS=$ac_check_lib_save_LIBS
13856fi
13857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13858$as_echo "$ac_cv_lib_readline_readline" >&6; }
13859if test "x$ac_cv_lib_readline_readline" = xyes; then :
13860 READLINE_LIB=-lreadline
13861else
13862 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
13863fi
13864
13865 READLINE_CFLAGS=
13866fi
13867
13868
13869
9f046489
TO
13870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13871$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13872if ${sim_cv_decl_getopt_unistd_h+:} false; then :
13873 $as_echo_n "(cached) " >&6
13874else
13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876/* end confdefs.h. */
13877#include <unistd.h>
13878int
13879main ()
13880{
13881extern int getopt (int, char *const*, const char *);
13882 ;
13883 return 0;
13884}
13885_ACEOF
13886if ac_fn_c_try_compile "$LINENO"; then :
13887 sim_cv_decl_getopt_unistd_h=yes
13888else
13889 sim_cv_decl_getopt_unistd_h=no
13890fi
13891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13892fi
13893
13894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
13895$as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
13896if test $sim_cv_decl_getopt_unistd_h = yes; then
13897
13898$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13899
13900fi
13901
d57b6533 13902
b15c5d7a 13903
72d711c1 13904
72d711c1
MF
13905ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
13906if test "x$ac_cv_have_decl_ffs" = xyes; then :
13907 ac_have_decl=1
13908else
13909 ac_have_decl=0
13910fi
13911
13912cat >>confdefs.h <<_ACEOF
13913#define HAVE_DECL_FFS $ac_have_decl
13914_ACEOF
13915
13916ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13917if test "x$ac_cv_have_decl_asprintf" = xyes; then :
13918 ac_have_decl=1
13919else
13920 ac_have_decl=0
13921fi
13922
13923cat >>confdefs.h <<_ACEOF
13924#define HAVE_DECL_ASPRINTF $ac_have_decl
13925_ACEOF
13926
13927ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
13928if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
13929 ac_have_decl=1
13930else
13931 ac_have_decl=0
13932fi
13933
13934cat >>confdefs.h <<_ACEOF
13935#define HAVE_DECL_VASPRINTF $ac_have_decl
13936_ACEOF
13937
13938ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13939if test "x$ac_cv_have_decl_snprintf" = xyes; then :
13940 ac_have_decl=1
13941else
13942 ac_have_decl=0
13943fi
13944
13945cat >>confdefs.h <<_ACEOF
13946#define HAVE_DECL_SNPRINTF $ac_have_decl
13947_ACEOF
13948
13949ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13950if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
13951 ac_have_decl=1
13952else
13953 ac_have_decl=0
13954fi
13955
13956cat >>confdefs.h <<_ACEOF
13957#define HAVE_DECL_VSNPRINTF $ac_have_decl
13958_ACEOF
13959
13960ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
13961if test "x$ac_cv_have_decl_strtol" = xyes; then :
13962 ac_have_decl=1
13963else
13964 ac_have_decl=0
13965fi
13966
13967cat >>confdefs.h <<_ACEOF
13968#define HAVE_DECL_STRTOL $ac_have_decl
13969_ACEOF
13970
13971ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
13972if test "x$ac_cv_have_decl_strtoul" = xyes; then :
13973 ac_have_decl=1
13974else
13975 ac_have_decl=0
13976fi
13977
13978cat >>confdefs.h <<_ACEOF
13979#define HAVE_DECL_STRTOUL $ac_have_decl
13980_ACEOF
13981
13982ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
13983if test "x$ac_cv_have_decl_strtoll" = xyes; then :
13984 ac_have_decl=1
13985else
13986 ac_have_decl=0
13987fi
13988
13989cat >>confdefs.h <<_ACEOF
13990#define HAVE_DECL_STRTOLL $ac_have_decl
13991_ACEOF
13992
13993ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
13994if test "x$ac_cv_have_decl_strtoull" = xyes; then :
13995 ac_have_decl=1
13996else
13997 ac_have_decl=0
13998fi
13999
14000cat >>confdefs.h <<_ACEOF
14001#define HAVE_DECL_STRTOULL $ac_have_decl
14002_ACEOF
14003
14004ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
14005if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
14006 ac_have_decl=1
14007else
14008 ac_have_decl=0
14009fi
14010
14011cat >>confdefs.h <<_ACEOF
14012#define HAVE_DECL_STRVERSCMP $ac_have_decl
14013_ACEOF
14014
761ed61e 14015 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
72d711c1
MF
14016if test "x$ac_cv_type_long_long" = xyes; then :
14017
14018cat >>confdefs.h <<_ACEOF
14019#define HAVE_LONG_LONG 1
14020_ACEOF
14021
14022# The cast to long int works around a bug in the HP C Compiler
14023# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14024# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14025# This bug is HP SR number 8606223364.
14026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14027$as_echo_n "checking size of long long... " >&6; }
14028if ${ac_cv_sizeof_long_long+:} false; then :
14029 $as_echo_n "(cached) " >&6
14030else
14031 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
14032
14033else
14034 if test "$ac_cv_type_long_long" = yes; then
14035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14037as_fn_error 77 "cannot compute sizeof (long long)
14038See \`config.log' for more details" "$LINENO" 5; }
14039 else
14040 ac_cv_sizeof_long_long=0
14041 fi
14042fi
14043
14044fi
14045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14046$as_echo "$ac_cv_sizeof_long_long" >&6; }
14047
14048
14049
14050cat >>confdefs.h <<_ACEOF
14051#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14052_ACEOF
14053
14054
14055fi
14056
14057
14058 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
14059ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
14060if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
14061 ac_have_decl=1
14062else
14063 ac_have_decl=0
14064fi
14065
14066cat >>confdefs.h <<_ACEOF
14067#define HAVE_DECL_BASENAME $ac_have_decl
14068_ACEOF
14069
14070
14071
14072
14073
14074
14075
b15c5d7a
MF
14076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14077$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14078 # Check whether --enable-maintainer-mode was given.
14079if test "${enable_maintainer_mode+set}" = set; then :
14080 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14081else
14082 USE_MAINTAINER_MODE=no
14083fi
14084
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14086$as_echo "$USE_MAINTAINER_MODE" >&6; }
14087 if test $USE_MAINTAINER_MODE = yes; then
14088 MAINTAINER_MODE_TRUE=
14089 MAINTAINER_MODE_FALSE='#'
14090else
14091 MAINTAINER_MODE_TRUE='#'
14092 MAINTAINER_MODE_FALSE=
14093fi
14094
14095 MAINT=$MAINTAINER_MODE_TRUE
14096
14097
14098am__api_version='1.15'
14099
14100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
14101$as_echo_n "checking whether build environment is sane... " >&6; }
14102# Reject unsafe characters in $srcdir or the absolute working directory
14103# name. Accept space and tab only in the latter.
14104am_lf='
14105'
14106case `pwd` in
14107 *[\\\"\#\$\&\'\`$am_lf]*)
14108 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
14109esac
14110case $srcdir in
14111 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
14112 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
14113esac
14114
14115# Do 'set' in a subshell so we don't clobber the current shell's
14116# arguments. Must try -L first in case configure is actually a
14117# symlink; some systems play weird games with the mod time of symlinks
14118# (eg FreeBSD returns the mod time of the symlink's containing
14119# directory).
14120if (
14121 am_has_slept=no
14122 for am_try in 1 2; do
14123 echo "timestamp, slept: $am_has_slept" > conftest.file
14124 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
14125 if test "$*" = "X"; then
14126 # -L didn't work.
14127 set X `ls -t "$srcdir/configure" conftest.file`
14128 fi
14129 if test "$*" != "X $srcdir/configure conftest.file" \
14130 && test "$*" != "X conftest.file $srcdir/configure"; then
14131
14132 # If neither matched, then we have a broken ls. This can happen
14133 # if, for instance, CONFIG_SHELL is bash and it inherits a
14134 # broken ls alias from the environment. This has actually
14135 # happened. Such a system could not be considered "sane".
14136 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
14137 alias in your environment" "$LINENO" 5
14138 fi
14139 if test "$2" = conftest.file || test $am_try -eq 2; then
14140 break
14141 fi
14142 # Just in case.
14143 sleep 1
14144 am_has_slept=yes
14145 done
14146 test "$2" = conftest.file
14147 )
14148then
14149 # Ok.
14150 :
14151else
14152 as_fn_error $? "newly created file is older than distributed files!
14153Check your system clock" "$LINENO" 5
14154fi
14155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14156$as_echo "yes" >&6; }
14157# If we didn't sleep, we still need to ensure time stamps of config.status and
14158# generated files are strictly newer.
14159am_sleep_pid=
14160if grep 'slept: no' conftest.file >/dev/null 2>&1; then
14161 ( sleep 1 ) &
14162 am_sleep_pid=$!
14163fi
14164
14165rm -f conftest.file
14166
14167if test x"${MISSING+set}" != xset; then
14168 case $am_aux_dir in
14169 *\ * | *\ *)
14170 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14171 *)
14172 MISSING="\${SHELL} $am_aux_dir/missing" ;;
14173 esac
14174fi
14175# Use eval to expand $SHELL
14176if eval "$MISSING --is-lightweight"; then
14177 am_missing_run="$MISSING "
c2783492
MF
14178else
14179 am_missing_run=
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
14181$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
14182fi
14183
14184if test x"${install_sh+set}" != xset; then
14185 case $am_aux_dir in
14186 *\ * | *\ *)
14187 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
14188 *)
14189 install_sh="\${SHELL} $am_aux_dir/install-sh"
14190 esac
14191fi
14192
14193# Installed binaries are usually stripped using 'strip' when the user
14194# run "make install-strip". However 'strip' might not be the right
14195# tool to use in cross-compilation environments, therefore Automake
14196# will honor the 'STRIP' environment variable to overrule this program.
14197if test "$cross_compiling" != no; then
14198 if test -n "$ac_tool_prefix"; then
14199 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14200set dummy ${ac_tool_prefix}strip; ac_word=$2
14201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14202$as_echo_n "checking for $ac_word... " >&6; }
14203if ${ac_cv_prog_STRIP+:} false; then :
14204 $as_echo_n "(cached) " >&6
14205else
14206 if test -n "$STRIP"; then
14207 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14208else
14209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14210for as_dir in $PATH
14211do
14212 IFS=$as_save_IFS
14213 test -z "$as_dir" && as_dir=.
14214 for ac_exec_ext in '' $ac_executable_extensions; do
14215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14216 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14218 break 2
81ecdfbb 14219 fi
81ecdfbb 14220done
c2783492
MF
14221 done
14222IFS=$as_save_IFS
b7026657 14223
c906108c 14224fi
b7026657 14225fi
c2783492
MF
14226STRIP=$ac_cv_prog_STRIP
14227if test -n "$STRIP"; then
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14229$as_echo "$STRIP" >&6; }
81ecdfbb 14230else
c2783492
MF
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232$as_echo "no" >&6; }
81ecdfbb 14233fi
b7026657 14234
b7026657 14235
c2783492
MF
14236fi
14237if test -z "$ac_cv_prog_STRIP"; then
14238 ac_ct_STRIP=$STRIP
14239 # Extract the first word of "strip", so it can be a program name with args.
14240set dummy strip; ac_word=$2
14241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14242$as_echo_n "checking for $ac_word... " >&6; }
14243if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14244 $as_echo_n "(cached) " >&6
c906108c 14245else
c2783492
MF
14246 if test -n "$ac_ct_STRIP"; then
14247 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
81ecdfbb 14248else
c2783492
MF
14249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250for as_dir in $PATH
14251do
14252 IFS=$as_save_IFS
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14256 ac_cv_prog_ac_ct_STRIP="strip"
14257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14258 break 2
14259 fi
14260done
14261 done
14262IFS=$as_save_IFS
81ecdfbb 14263
81ecdfbb 14264fi
df1756f4 14265fi
c2783492
MF
14266ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14267if test -n "$ac_ct_STRIP"; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14269$as_echo "$ac_ct_STRIP" >&6; }
14270else
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272$as_echo "no" >&6; }
b7026657 14273fi
c2783492
MF
14274
14275 if test "x$ac_ct_STRIP" = x; then
14276 STRIP=":"
c906108c 14277 else
c2783492
MF
14278 case $cross_compiling:$ac_tool_warned in
14279yes:)
14280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14282ac_tool_warned=yes ;;
14283esac
14284 STRIP=$ac_ct_STRIP
c906108c
SS
14285 fi
14286else
c2783492 14287 STRIP="$ac_cv_prog_STRIP"
c906108c 14288fi
81ecdfbb 14289
b7026657 14290fi
c2783492 14291INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b7026657 14292
c2783492
MF
14293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
14294$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14295if test -z "$MKDIR_P"; then
14296 if ${ac_cv_path_mkdir+:} false; then :
14297 $as_echo_n "(cached) " >&6
14298else
14299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14300for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
14301do
14302 IFS=$as_save_IFS
14303 test -z "$as_dir" && as_dir=.
14304 for ac_prog in mkdir gmkdir; do
14305 for ac_exec_ext in '' $ac_executable_extensions; do
14306 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
14307 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
14308 'mkdir (GNU coreutils) '* | \
14309 'mkdir (coreutils) '* | \
14310 'mkdir (fileutils) '4.1*)
14311 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
14312 break 3;;
14313 esac
14314 done
14315 done
14316 done
14317IFS=$as_save_IFS
b7026657 14318
fdd6fa61
AG
14319fi
14320
c2783492
MF
14321 test -d ./--version && rmdir ./--version
14322 if test "${ac_cv_path_mkdir+set}" = set; then
14323 MKDIR_P="$ac_cv_path_mkdir -p"
b5689863
MF
14324 else
14325 # As a last resort, use the slow shell script. Don't cache a
14326 # value for MKDIR_P within a source directory, because that will
14327 # break other packages using the cache if that directory is
14328 # removed, or if the value is a relative name.
14329 MKDIR_P="$ac_install_sh -d"
14330 fi
c2783492 14331fi
b5689863
MF
14332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
14333$as_echo "$MKDIR_P" >&6; }
6bddc3e8 14334
c2783492
MF
14335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14336$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14337set x ${MAKE-make}
14338ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14339if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6bddc3e8
MF
14340 $as_echo_n "(cached) " >&6
14341else
c2783492
MF
14342 cat >conftest.make <<\_ACEOF
14343SHELL = /bin/sh
14344all:
14345 @echo '@@@%%%=$(MAKE)=@@@%%%'
14346_ACEOF
14347# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14348case `${MAKE-make} -f conftest.make 2>/dev/null` in
14349 *@@@%%%=?*=@@@%%%*)
14350 eval ac_cv_prog_make_${ac_make}_set=yes;;
14351 *)
14352 eval ac_cv_prog_make_${ac_make}_set=no;;
14353esac
14354rm -f conftest.make
14355fi
14356if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14358$as_echo "yes" >&6; }
14359 SET_MAKE=
14360else
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14362$as_echo "no" >&6; }
14363 SET_MAKE="MAKE=${MAKE-make}"
14364fi
6bddc3e8 14365
c2783492
MF
14366rm -rf .tst 2>/dev/null
14367mkdir .tst 2>/dev/null
14368if test -d .tst; then
14369 am__leading_dot=.
14370else
14371 am__leading_dot=_
14372fi
14373rmdir .tst 2>/dev/null
6bddc3e8 14374
c2783492 14375DEPDIR="${am__leading_dot}deps"
6bddc3e8 14376
c2783492 14377ac_config_commands="$ac_config_commands depfiles"
6bddc3e8 14378
c2783492
MF
14379
14380am_make=${MAKE-make}
14381cat > confinc << 'END'
14382am__doit:
14383 @echo this is the am__doit target
14384.PHONY: am__doit
14385END
14386# If we don't find an include directive, just comment out the code.
14387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
14388$as_echo_n "checking for style of include used by $am_make... " >&6; }
14389am__include="#"
14390am__quote=
14391_am_result=none
14392# First try GNU make style include.
14393echo "include confinc" > confmf
14394# Ignore all kinds of additional output from 'make'.
14395case `$am_make -s -f confmf 2> /dev/null` in #(
14396*the\ am__doit\ target*)
14397 am__include=include
14398 am__quote=
14399 _am_result=GNU
14400 ;;
14401esac
14402# Now try BSD make style include.
14403if test "$am__include" = "#"; then
14404 echo '.include "confinc"' > confmf
14405 case `$am_make -s -f confmf 2> /dev/null` in #(
14406 *the\ am__doit\ target*)
14407 am__include=.include
14408 am__quote="\""
14409 _am_result=BSD
14410 ;;
14411 esac
6bddc3e8
MF
14412fi
14413
c2783492
MF
14414
14415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
14416$as_echo "$_am_result" >&6; }
14417rm -f confinc confmf
14418
14419# Check whether --enable-dependency-tracking was given.
14420if test "${enable_dependency_tracking+set}" = set; then :
14421 enableval=$enable_dependency_tracking;
6bddc3e8 14422fi
6bddc3e8 14423
c2783492
MF
14424if test "x$enable_dependency_tracking" != xno; then
14425 am_depcomp="$ac_aux_dir/depcomp"
14426 AMDEPBACKSLASH='\'
14427 am__nodep='_no'
14428fi
14429 if test "x$enable_dependency_tracking" != xno; then
14430 AMDEP_TRUE=
14431 AMDEP_FALSE='#'
6bddc3e8 14432else
c2783492
MF
14433 AMDEP_TRUE='#'
14434 AMDEP_FALSE=
6bddc3e8
MF
14435fi
14436
14437
c2783492
MF
14438# Check whether --enable-silent-rules was given.
14439if test "${enable_silent_rules+set}" = set; then :
14440 enableval=$enable_silent_rules;
5e25901f 14441fi
c2783492
MF
14442
14443case $enable_silent_rules in # (((
14444 yes) AM_DEFAULT_VERBOSITY=0;;
14445 no) AM_DEFAULT_VERBOSITY=1;;
14446 *) AM_DEFAULT_VERBOSITY=1;;
14447esac
14448am_make=${MAKE-make}
14449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14450$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14451if ${am_cv_make_support_nested_variables+:} false; then :
5e25901f
MF
14452 $as_echo_n "(cached) " >&6
14453else
c2783492
MF
14454 if $as_echo 'TRUE=$(BAR$(V))
14455BAR0=false
14456BAR1=true
14457V=1
14458am__doit:
14459 @$(TRUE)
14460.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14461 am_cv_make_support_nested_variables=yes
5e25901f 14462else
c2783492 14463 am_cv_make_support_nested_variables=no
5e25901f 14464fi
c2783492
MF
14465fi
14466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14467$as_echo "$am_cv_make_support_nested_variables" >&6; }
14468if test $am_cv_make_support_nested_variables = yes; then
14469 AM_V='$(V)'
14470 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5e25901f 14471else
c2783492
MF
14472 AM_V=$AM_DEFAULT_VERBOSITY
14473 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5e25901f 14474fi
c2783492 14475AM_BACKSLASH='\'
5e25901f 14476
c2783492
MF
14477if test "`cd $srcdir && pwd`" != "`pwd`"; then
14478 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14479 # is not polluted with repeated "-I."
14480 am__isrc=' -I$(srcdir)'
14481 # test to see if srcdir already configured
14482 if test -f $srcdir/config.status; then
14483 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14484 fi
5e25901f
MF
14485fi
14486
c2783492
MF
14487# test whether we have cygpath
14488if test -z "$CYGPATH_W"; then
14489 if (cygpath --version) >/dev/null 2>/dev/null; then
14490 CYGPATH_W='cygpath -w'
14491 else
14492 CYGPATH_W=echo
14493 fi
5e25901f 14494fi
c2783492
MF
14495
14496
14497# Define the identity of the package.
14498 PACKAGE='sim'
14499 VERSION='0'
14500
14501
14502cat >>confdefs.h <<_ACEOF
14503#define PACKAGE "$PACKAGE"
5e25901f 14504_ACEOF
5e25901f 14505
5e25901f 14506
c2783492
MF
14507cat >>confdefs.h <<_ACEOF
14508#define VERSION "$VERSION"
5e25901f 14509_ACEOF
5e25901f 14510
c2783492 14511# Some tools Automake needs.
5e25901f 14512
c2783492
MF
14513ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14514
14515
14516AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
14517
14518
14519AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14520
14521
14522AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
14523
14524
14525MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
14526
14527# For better backward compatibility. To be removed once Automake 1.9.x
14528# dies out for good. For more background, see:
14529# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
14530# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
14531mkdir_p='$(MKDIR_P)'
14532
14533# We need awk for the "check" target (and possibly the TAP driver). The
14534# system "awk" is bad on some platforms.
14535# Always define AMTAR for backward compatibility. Yes, it's still used
14536# in the wild :-( We should find a proper way to deprecate it ...
14537AMTAR='$${TAR-tar}'
14538
14539
14540# We'll loop over all known methods to create a tar archive until one works.
14541_am_tools='gnutar pax cpio none'
14542
14543am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5e25901f 14544
5e25901f 14545
c906108c 14546
c906108c 14547
c2783492
MF
14548
14549depcc="$CC" am_compiler_list=
14550
14551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14552$as_echo_n "checking dependency style of $depcc... " >&6; }
14553if ${am_cv_CC_dependencies_compiler_type+:} false; then :
81ecdfbb 14554 $as_echo_n "(cached) " >&6
c906108c 14555else
c2783492
MF
14556 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14557 # We make a subdir and do the tests there. Otherwise we can end up
14558 # making bogus files that we don't know about and never remove. For
14559 # instance it was reported that on HP-UX the gcc test will end up
14560 # making a dummy file named 'D' -- because '-MD' means "put the output
14561 # in D".
14562 rm -rf conftest.dir
14563 mkdir conftest.dir
14564 # Copy depcomp to subdir because otherwise we won't find it if we're
14565 # using a relative directory.
14566 cp "$am_depcomp" conftest.dir
14567 cd conftest.dir
14568 # We will build objects and dependencies in a subdirectory because
14569 # it helps to detect inapplicable dependency modes. For instance
14570 # both Tru64's cc and ICC support -MD to output dependencies as a
14571 # side effect of compilation, but ICC will put the dependencies in
14572 # the current directory while Tru64 will put them in the object
14573 # directory.
14574 mkdir sub
14575
14576 am_cv_CC_dependencies_compiler_type=none
14577 if test "$am_compiler_list" = ""; then
14578 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
b7026657 14579 fi
c2783492
MF
14580 am__universal=false
14581 case " $depcc " in #(
14582 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14583 esac
14584
14585 for depmode in $am_compiler_list; do
14586 # Setup a source with many dependencies, because some compilers
14587 # like to wrap large dependency lists on column 80 (with \), and
14588 # we should not choose a depcomp mode which is confused by this.
14589 #
14590 # We need to recreate these files for each test, as the compiler may
14591 # overwrite some of them when testing with obscure command lines.
14592 # This happens at least with the AIX C compiler.
14593 : > sub/conftest.c
14594 for i in 1 2 3 4 5 6; do
14595 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14596 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14597 # Solaris 10 /bin/sh.
14598 echo '/* dummy */' > sub/conftst$i.h
14599 done
14600 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14601
14602 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14603 # mode. It turns out that the SunPro C++ compiler does not properly
14604 # handle '-M -o', and we need to detect this. Also, some Intel
14605 # versions had trouble with output in subdirs.
14606 am__obj=sub/conftest.${OBJEXT-o}
14607 am__minus_obj="-o $am__obj"
14608 case $depmode in
14609 gcc)
14610 # This depmode causes a compiler race in universal mode.
14611 test "$am__universal" = false || continue
14612 ;;
14613 nosideeffect)
14614 # After this tag, mechanisms are not by side-effect, so they'll
14615 # only be used when explicitly requested.
14616 if test "x$enable_dependency_tracking" = xyes; then
14617 continue
14618 else
14619 break
14620 fi
14621 ;;
14622 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14623 # This compiler won't grok '-c -o', but also, the minuso test has
14624 # not run yet. These depmodes are late enough in the game, and
14625 # so weak that their functioning should not be impacted.
14626 am__obj=conftest.${OBJEXT-o}
14627 am__minus_obj=
14628 ;;
14629 none) break ;;
14630 esac
14631 if depmode=$depmode \
14632 source=sub/conftest.c object=$am__obj \
14633 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14634 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14635 >/dev/null 2>conftest.err &&
14636 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14637 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14638 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14639 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14640 # icc doesn't choke on unknown options, it will just issue warnings
14641 # or remarks (even with -Werror). So we grep stderr for any message
14642 # that says an option was ignored or not supported.
14643 # When given -MP, icc 7.0 and 7.1 complain thusly:
14644 # icc: Command line warning: ignoring option '-M'; no argument required
14645 # The diagnosis changed in icc 8.0:
14646 # icc: Command line remark: option '-MP' not supported
14647 if (grep 'ignoring option' conftest.err ||
14648 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14649 am_cv_CC_dependencies_compiler_type=$depmode
14650 break
14651 fi
14652 fi
81ecdfbb 14653 done
b7026657 14654
c2783492
MF
14655 cd ..
14656 rm -rf conftest.dir
b7026657 14657else
c2783492 14658 am_cv_CC_dependencies_compiler_type=none
b7026657
AC
14659fi
14660
14661fi
c2783492
MF
14662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14663$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14664CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
b7026657 14665
c2783492
MF
14666 if
14667 test "x$enable_dependency_tracking" != xno \
14668 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14669 am__fastdepCC_TRUE=
14670 am__fastdepCC_FALSE='#'
c906108c 14671else
c2783492
MF
14672 am__fastdepCC_TRUE='#'
14673 am__fastdepCC_FALSE=
b7026657
AC
14674fi
14675
c906108c
SS
14676
14677
c2783492
MF
14678# POSIX will say in a future version that running "rm -f" with no argument
14679# is OK; and we want to be able to make that assumption in our Makefile
14680# recipes. So use an aggressive probe to check that the usage we want is
14681# actually supported "in the wild" to an acceptable degree.
14682# See automake bug#10828.
14683# To make any issue more visible, cause the running configure to be aborted
14684# by default if the 'rm' program in use doesn't match our expectations; the
14685# user can still override this though.
14686if rm -f && rm -fr && rm -rf; then : OK; else
14687 cat >&2 <<'END'
14688Oops!
14689
14690Your 'rm' program seems unable to run without file operands specified
14691on the command line, even when the '-f' option is present. This is contrary
14692to the behaviour of most rm programs out there, and not conforming with
14693the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
14694
14695Please tell bug-automake@gnu.org about your system, including the value
14696of your $PATH and any error possibly output before this message. This
14697can help us improve future automake versions.
14698
14699END
14700 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
14701 echo 'Configuration will proceed anyway, since you have set the' >&2
14702 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
14703 echo >&2
5c887dd5 14704 else
c2783492
MF
14705 cat >&2 <<'END'
14706Aborting the configuration process, to ensure you take notice of the issue.
14707
14708You can download and install GNU coreutils to get an 'rm' implementation
14709that behaves properly: <http://www.gnu.org/software/coreutils/>.
14710
14711If you want to complete the configuration process using your problematic
14712'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14713to "yes", and re-run configure.
14714
14715END
14716 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5c887dd5 14717 fi
c906108c
SS
14718fi
14719
fbe8d1cf
MF
14720# Check whether --enable-silent-rules was given.
14721if test "${enable_silent_rules+set}" = set; then :
14722 enableval=$enable_silent_rules;
14723fi
14724
14725case $enable_silent_rules in # (((
14726 yes) AM_DEFAULT_VERBOSITY=0;;
14727 no) AM_DEFAULT_VERBOSITY=1;;
14728 *) AM_DEFAULT_VERBOSITY=0;;
14729esac
14730am_make=${MAKE-make}
14731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14732$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14733if ${am_cv_make_support_nested_variables+:} false; then :
14734 $as_echo_n "(cached) " >&6
14735else
14736 if $as_echo 'TRUE=$(BAR$(V))
14737BAR0=false
14738BAR1=true
14739V=1
14740am__doit:
14741 @$(TRUE)
14742.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14743 am_cv_make_support_nested_variables=yes
14744else
14745 am_cv_make_support_nested_variables=no
14746fi
14747fi
14748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14749$as_echo "$am_cv_make_support_nested_variables" >&6; }
14750if test $am_cv_make_support_nested_variables = yes; then
14751 AM_V='$(V)'
14752 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14753else
14754 AM_V=$AM_DEFAULT_VERBOSITY
14755 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14756fi
14757AM_BACKSLASH='\'
14758
c906108c
SS
14759
14760# If a cpu ever has more than one simulator to choose from, use
14761# --enable-sim=... to choose.
81ecdfbb
RW
14762# Check whether --enable-sim was given.
14763if test "${enable_sim+set}" = set; then :
14764 enableval=$enable_sim; case "${enableval}" in
c906108c 14765yes | no) ;;
d0ac1c44 14766*) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
c906108c 14767esac
81ecdfbb
RW
14768fi
14769
c906108c 14770
26da232c
MF
14771# Check whether --enable-example-sims was given.
14772if test "${enable_example_sims+set}" = set; then :
14773 enableval=$enable_example_sims;
14774fi
14775
14776
a0e674c1
MF
14777# Check whether --enable-targets was given.
14778if test "${enable_targets+set}" = set; then :
14779 enableval=$enable_targets; case "${enableval}" in
14780 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
14781 ;;
14782 no) enable_targets= ;;
14783 *) enable_targets=$enableval ;;
14784esac
14785fi
14786
14787
14788SIM_PRIMARY_TARGET=
14789
14790
2ba09f42
MF
14791SIM_ENABLED_ARCHES=
14792
14793
7c9a934c 14794ENABLE_SIM=no
a0e674c1
MF
14795
14796
bc56166f 14797
119da465 14798if test "${enable_sim}" != no; then
a0e674c1
MF
14799 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
14800 do
65dcce8f
MF
14801 sim_enable_arch_aarch64=false
14802 case "${targ}" in
a0e674c1
MF
14803 all|aarch64*-*-*)
14804 if test "${targ}" = "${target}"; then
14805 SIM_PRIMARY_TARGET=aarch64
14806 fi
7c9a934c
MF
14807 ENABLE_SIM=yes
14808 as_fn_append SIM_ENABLED_ARCHES " aarch64"
23912acd
MF
14809 ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in"
14810
bc56166f 14811
65dcce8f 14812 sim_enable_arch_aarch64=true
3e8bb3e9 14813 ;;
a0e674c1 14814 esac
dc4e1fde
HPN
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14816$as_echo_n "checking where to find the target cc... " >&6; }
14817if test "x${build}" != "x${host}" ; then
14818 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14819 # We already found the complete path
14820 ac_dir=`dirname $CC_FOR_TARGET`
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14822$as_echo "pre-installed in $ac_dir" >&6; }
14823 else
14824 # Canadian cross, just use what we found
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14826$as_echo "pre-installed" >&6; }
14827 fi
14828else
14829 ok=yes
14830 case " ${configdirs} " in
14831 *" ${target_alias}-gcc "*) ;;
14832 *) ok=no ;;
14833 esac
14834
14835 if test $ok = yes; then
14836 # An in-tree tool is available and we can use it
14837 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc'
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14839$as_echo "just compiled" >&6; }
14840 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14841 # We already found the complete path
14842 ac_dir=`dirname $CC_FOR_TARGET`
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14844$as_echo "pre-installed in $ac_dir" >&6; }
14845 elif test "x$target" = "x$host"; then
14846 # We can use an host tool
14847 CC_FOR_TARGET='$(CC)'
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14849$as_echo "host tool" >&6; }
14850 else
14851 # We need a cross tool
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14853$as_echo "pre-installed" >&6; }
14854 fi
14855fi
14856
14857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14858$as_echo_n "checking where to find the target as... " >&6; }
14859if test "x${build}" != "x${host}" ; then
14860 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14861 # We already found the complete path
14862 ac_dir=`dirname $AS_FOR_TARGET`
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14864$as_echo "pre-installed in $ac_dir" >&6; }
14865 else
14866 # Canadian cross, just use what we found
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14868$as_echo "pre-installed" >&6; }
14869 fi
14870else
14871 ok=yes
14872 case " ${configdirs} " in
14873 *" \$(abs_builddir) "*) ;;
14874 *) ok=no ;;
14875 esac
14876
14877 if test $ok = yes; then
14878 # An in-tree tool is available and we can use it
14879 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new'
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14881$as_echo "just compiled" >&6; }
14882 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14883 # We already found the complete path
14884 ac_dir=`dirname $AS_FOR_TARGET`
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14886$as_echo "pre-installed in $ac_dir" >&6; }
14887 elif test "x$target" = "x$host"; then
14888 # We can use an host tool
14889 AS_FOR_TARGET='$(AS)'
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14891$as_echo "host tool" >&6; }
14892 else
14893 # We need a cross tool
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14895$as_echo "pre-installed" >&6; }
14896 fi
14897fi
14898
14899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14900$as_echo_n "checking where to find the target ld... " >&6; }
14901if test "x${build}" != "x${host}" ; then
14902 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14903 # We already found the complete path
14904 ac_dir=`dirname $LD_FOR_TARGET`
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14906$as_echo "pre-installed in $ac_dir" >&6; }
14907 else
14908 # Canadian cross, just use what we found
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14910$as_echo "pre-installed" >&6; }
14911 fi
14912else
14913 ok=yes
14914 case " ${configdirs} " in
14915 *" \$(abs_builddir) "*) ;;
14916 *) ok=no ;;
14917 esac
14918
14919 if test $ok = yes; then
14920 # An in-tree tool is available and we can use it
14921 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new'
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14923$as_echo "just compiled" >&6; }
14924 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14925 # We already found the complete path
14926 ac_dir=`dirname $LD_FOR_TARGET`
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14928$as_echo "pre-installed in $ac_dir" >&6; }
14929 elif test "x$target" = "x$host"; then
14930 # We can use an host tool
14931 LD_FOR_TARGET='$(LD)'
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14933$as_echo "host tool" >&6; }
14934 else
14935 # We need a cross tool
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14937$as_echo "pre-installed" >&6; }
14938 fi
14939fi
14940
14941
14942
8996c210
MF
14943
14944
14945
14946 if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
dc4e1fde
HPN
14947 : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
14948 : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
14949 : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
8996c210
MF
14950
14951fi
14952
14953as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
14954
65dcce8f
MF
14955 if ${sim_enable_arch_aarch64}; then
14956 SIM_ENABLE_ARCH_aarch64_TRUE=
14957 SIM_ENABLE_ARCH_aarch64_FALSE='#'
14958else
14959 SIM_ENABLE_ARCH_aarch64_TRUE='#'
14960 SIM_ENABLE_ARCH_aarch64_FALSE=
14961fi
14962
586cfe1a 14963 sim_enable_arch_avr=false
65dcce8f 14964 case "${targ}" in
a0e674c1
MF
14965 all|avr*-*-*)
14966 if test "${targ}" = "${target}"; then
14967 SIM_PRIMARY_TARGET=avr
14968 fi
7c9a934c
MF
14969 ENABLE_SIM=yes
14970 as_fn_append SIM_ENABLED_ARCHES " avr"
23912acd
MF
14971 ac_config_files="$ac_config_files avr/.gdbinit:common/gdbinit.in"
14972
0cd79707 14973
65dcce8f 14974 sim_enable_arch_avr=true
3e8bb3e9 14975 ;;
a0e674c1 14976 esac
8996c210
MF
14977
14978
14979
dc4e1fde 14980
8996c210 14981 if test "$SIM_PRIMARY_TARGET" = "avr"; then :
dc4e1fde
HPN
14982 : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
14983 : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
14984 : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
8996c210
MF
14985
14986fi
14987
14988as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
14989
65dcce8f
MF
14990 if ${sim_enable_arch_avr}; then
14991 SIM_ENABLE_ARCH_avr_TRUE=
14992 SIM_ENABLE_ARCH_avr_FALSE='#'
14993else
14994 SIM_ENABLE_ARCH_avr_TRUE='#'
14995 SIM_ENABLE_ARCH_avr_FALSE=
14996fi
a0e674c1 14997
586cfe1a 14998 sim_enable_arch_bfin=false
65dcce8f 14999 case "${targ}" in
a0e674c1
MF
15000 all|bfin-*-*)
15001 if test "${targ}" = "${target}"; then
15002 SIM_PRIMARY_TARGET=bfin
15003 fi
7c9a934c
MF
15004 ENABLE_SIM=yes
15005 as_fn_append SIM_ENABLED_ARCHES " bfin"
23912acd
MF
15006 ac_config_files="$ac_config_files bfin/.gdbinit:common/gdbinit.in"
15007
ddd44b70 15008
65dcce8f 15009 sim_enable_arch_bfin=true
3e8bb3e9 15010 ;;
a0e674c1 15011 esac
8996c210
MF
15012
15013
15014
dc4e1fde 15015
8996c210 15016 if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
dc4e1fde
HPN
15017 : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
15018 : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
15019 : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
8996c210
MF
15020
15021fi
15022
15023as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
15024
65dcce8f
MF
15025 if ${sim_enable_arch_bfin}; then
15026 SIM_ENABLE_ARCH_bfin_TRUE=
15027 SIM_ENABLE_ARCH_bfin_FALSE='#'
15028else
15029 SIM_ENABLE_ARCH_bfin_TRUE='#'
15030 SIM_ENABLE_ARCH_bfin_FALSE=
15031fi
15032
586cfe1a 15033 sim_enable_arch_bpf=false
65dcce8f 15034 case "${targ}" in
a0e674c1
MF
15035 all|bpf-*-*)
15036 if test "${targ}" = "${target}"; then
15037 SIM_PRIMARY_TARGET=bpf
15038 fi
7c9a934c
MF
15039 ENABLE_SIM=yes
15040 as_fn_append SIM_ENABLED_ARCHES " bpf"
23912acd
MF
15041 ac_config_files="$ac_config_files bpf/.gdbinit:common/gdbinit.in"
15042
ddd44b70 15043
65dcce8f 15044 sim_enable_arch_bpf=true
3e8bb3e9 15045 ;;
a0e674c1 15046 esac
8996c210
MF
15047
15048
15049
dc4e1fde 15050
8996c210 15051 if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
dc4e1fde
HPN
15052 : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
15053 : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
15054 : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
8996c210
MF
15055
15056fi
15057
15058as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
15059
65dcce8f
MF
15060 if ${sim_enable_arch_bpf}; then
15061 SIM_ENABLE_ARCH_bpf_TRUE=
15062 SIM_ENABLE_ARCH_bpf_FALSE='#'
15063else
15064 SIM_ENABLE_ARCH_bpf_TRUE='#'
15065 SIM_ENABLE_ARCH_bpf_FALSE=
15066fi
15067
586cfe1a 15068 sim_enable_arch_cr16=false
65dcce8f 15069 case "${targ}" in
a0e674c1
MF
15070 all|cr16*-*-*)
15071 if test "${targ}" = "${target}"; then
15072 SIM_PRIMARY_TARGET=cr16
15073 fi
7c9a934c
MF
15074 ENABLE_SIM=yes
15075 as_fn_append SIM_ENABLED_ARCHES " cr16"
23912acd
MF
15076 ac_config_files="$ac_config_files cr16/.gdbinit:common/gdbinit.in"
15077
ddd44b70 15078
65dcce8f 15079 sim_enable_arch_cr16=true
3e8bb3e9 15080 ;;
a0e674c1 15081 esac
8996c210
MF
15082
15083
15084
dc4e1fde 15085
8996c210 15086 if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
dc4e1fde
HPN
15087 : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
15088 : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
15089 : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
8996c210
MF
15090
15091fi
15092
15093as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
15094
65dcce8f
MF
15095 if ${sim_enable_arch_cr16}; then
15096 SIM_ENABLE_ARCH_cr16_TRUE=
15097 SIM_ENABLE_ARCH_cr16_FALSE='#'
15098else
15099 SIM_ENABLE_ARCH_cr16_TRUE='#'
15100 SIM_ENABLE_ARCH_cr16_FALSE=
15101fi
15102
586cfe1a 15103 sim_enable_arch_cris=false
65dcce8f 15104 case "${targ}" in
a0e674c1
MF
15105 all|cris-*-* | crisv32-*-*)
15106 if test "${targ}" = "${target}"; then
15107 SIM_PRIMARY_TARGET=cris
15108 fi
7c9a934c
MF
15109 ENABLE_SIM=yes
15110 as_fn_append SIM_ENABLED_ARCHES " cris"
23912acd
MF
15111 ac_config_files="$ac_config_files cris/.gdbinit:common/gdbinit.in"
15112
b9249c46 15113
65dcce8f 15114 sim_enable_arch_cris=true
3e8bb3e9 15115 ;;
a0e674c1 15116 esac
8996c210
MF
15117
15118
15119
dc4e1fde 15120
8996c210 15121 if test "$SIM_PRIMARY_TARGET" = "cris"; then :
dc4e1fde
HPN
15122 : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
15123 : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
15124 : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
8996c210
MF
15125
15126fi
15127
15128as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
15129
65dcce8f
MF
15130 if ${sim_enable_arch_cris}; then
15131 SIM_ENABLE_ARCH_cris_TRUE=
15132 SIM_ENABLE_ARCH_cris_FALSE='#'
15133else
15134 SIM_ENABLE_ARCH_cris_TRUE='#'
15135 SIM_ENABLE_ARCH_cris_FALSE=
15136fi
a0e674c1 15137
586cfe1a 15138 sim_enable_arch_d10v=false
65dcce8f 15139 case "${targ}" in
a0e674c1
MF
15140 all|d10v-*-*)
15141 if test "${targ}" = "${target}"; then
15142 SIM_PRIMARY_TARGET=d10v
15143 fi
7c9a934c
MF
15144 ENABLE_SIM=yes
15145 as_fn_append SIM_ENABLED_ARCHES " d10v"
23912acd
MF
15146 ac_config_files="$ac_config_files d10v/.gdbinit:common/gdbinit.in"
15147
b9249c46 15148
65dcce8f 15149 sim_enable_arch_d10v=true
3e8bb3e9 15150 ;;
a0e674c1 15151 esac
8996c210
MF
15152
15153
15154
dc4e1fde 15155
8996c210 15156 if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
dc4e1fde
HPN
15157 : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
15158 : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
15159 : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
8996c210
MF
15160
15161fi
15162
15163as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
15164
65dcce8f
MF
15165 if ${sim_enable_arch_d10v}; then
15166 SIM_ENABLE_ARCH_d10v_TRUE=
15167 SIM_ENABLE_ARCH_d10v_FALSE='#'
15168else
15169 SIM_ENABLE_ARCH_d10v_TRUE='#'
15170 SIM_ENABLE_ARCH_d10v_FALSE=
15171fi
a0e674c1 15172
586cfe1a 15173 sim_enable_arch_frv=false
65dcce8f 15174 case "${targ}" in
a0e674c1
MF
15175 all|frv-*-*)
15176 if test "${targ}" = "${target}"; then
15177 SIM_PRIMARY_TARGET=frv
15178 fi
7c9a934c
MF
15179 ENABLE_SIM=yes
15180 as_fn_append SIM_ENABLED_ARCHES " frv"
23912acd
MF
15181 ac_config_files="$ac_config_files frv/.gdbinit:common/gdbinit.in"
15182
b9249c46 15183
65dcce8f 15184 sim_enable_arch_frv=true
36bb57e4
MF
15185 ;;
15186 esac
8996c210
MF
15187
15188
15189
dc4e1fde 15190
8996c210 15191 if test "$SIM_PRIMARY_TARGET" = "frv"; then :
dc4e1fde
HPN
15192 : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
15193 : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
15194 : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
8996c210
MF
15195
15196fi
15197
15198as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
15199
65dcce8f
MF
15200 if ${sim_enable_arch_frv}; then
15201 SIM_ENABLE_ARCH_frv_TRUE=
15202 SIM_ENABLE_ARCH_frv_FALSE='#'
15203else
15204 SIM_ENABLE_ARCH_frv_TRUE='#'
15205 SIM_ENABLE_ARCH_frv_FALSE=
15206fi
15207
586cfe1a 15208 sim_enable_arch_ft32=false
65dcce8f 15209 case "${targ}" in
36bb57e4
MF
15210 all|ft32-*-*)
15211 if test "${targ}" = "${target}"; then
15212 SIM_PRIMARY_TARGET=ft32
15213 fi
7c9a934c
MF
15214 ENABLE_SIM=yes
15215 as_fn_append SIM_ENABLED_ARCHES " ft32"
23912acd
MF
15216 ac_config_files="$ac_config_files ft32/.gdbinit:common/gdbinit.in"
15217
36bb57e4 15218
65dcce8f 15219 sim_enable_arch_ft32=true
3e8bb3e9 15220 ;;
a0e674c1 15221 esac
8996c210
MF
15222
15223
15224
dc4e1fde 15225
8996c210 15226 if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
dc4e1fde
HPN
15227 : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
15228 : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
15229 : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
8996c210
MF
15230
15231fi
15232
15233as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
15234
65dcce8f
MF
15235 if ${sim_enable_arch_ft32}; then
15236 SIM_ENABLE_ARCH_ft32_TRUE=
15237 SIM_ENABLE_ARCH_ft32_FALSE='#'
15238else
15239 SIM_ENABLE_ARCH_ft32_TRUE='#'
15240 SIM_ENABLE_ARCH_ft32_FALSE=
15241fi
15242
586cfe1a 15243 sim_enable_arch_h8300=false
65dcce8f 15244 case "${targ}" in
a0e674c1
MF
15245 all|h8300*-*-*)
15246 if test "${targ}" = "${target}"; then
15247 SIM_PRIMARY_TARGET=h8300
15248 fi
7c9a934c
MF
15249 ENABLE_SIM=yes
15250 as_fn_append SIM_ENABLED_ARCHES " h8300"
23912acd
MF
15251 ac_config_files="$ac_config_files h8300/.gdbinit:common/gdbinit.in"
15252
119da465 15253
65dcce8f 15254 sim_enable_arch_h8300=true
3e8bb3e9 15255 ;;
a0e674c1 15256 esac
8996c210
MF
15257
15258
15259
dc4e1fde 15260
8996c210 15261 if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
dc4e1fde
HPN
15262 : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
15263 : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
15264 : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
8996c210
MF
15265
15266fi
15267
15268as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
15269
65dcce8f
MF
15270 if ${sim_enable_arch_h8300}; then
15271 SIM_ENABLE_ARCH_h8300_TRUE=
15272 SIM_ENABLE_ARCH_h8300_FALSE='#'
15273else
15274 SIM_ENABLE_ARCH_h8300_TRUE='#'
15275 SIM_ENABLE_ARCH_h8300_FALSE=
15276fi
15277
586cfe1a 15278 sim_enable_arch_iq2000=false
65dcce8f 15279 case "${targ}" in
a0e674c1
MF
15280 all|iq2000-*-*)
15281 if test "${targ}" = "${target}"; then
15282 SIM_PRIMARY_TARGET=iq2000
15283 fi
7c9a934c
MF
15284 ENABLE_SIM=yes
15285 as_fn_append SIM_ENABLED_ARCHES " iq2000"
23912acd
MF
15286 ac_config_files="$ac_config_files iq2000/.gdbinit:common/gdbinit.in"
15287
119da465 15288
65dcce8f 15289 sim_enable_arch_iq2000=true
3e8bb3e9 15290 ;;
a0e674c1 15291 esac
8996c210
MF
15292
15293
15294
dc4e1fde 15295
8996c210 15296 if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
dc4e1fde
HPN
15297 : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
15298 : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
15299 : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
8996c210
MF
15300
15301fi
15302
15303as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
15304
65dcce8f
MF
15305 if ${sim_enable_arch_iq2000}; then
15306 SIM_ENABLE_ARCH_iq2000_TRUE=
15307 SIM_ENABLE_ARCH_iq2000_FALSE='#'
15308else
15309 SIM_ENABLE_ARCH_iq2000_TRUE='#'
15310 SIM_ENABLE_ARCH_iq2000_FALSE=
15311fi
a0e674c1 15312
586cfe1a 15313 sim_enable_arch_lm32=false
65dcce8f 15314 case "${targ}" in
a0e674c1
MF
15315 all|lm32-*-*)
15316 if test "${targ}" = "${target}"; then
15317 SIM_PRIMARY_TARGET=lm32
15318 fi
7c9a934c
MF
15319 ENABLE_SIM=yes
15320 as_fn_append SIM_ENABLED_ARCHES " lm32"
23912acd
MF
15321 ac_config_files="$ac_config_files lm32/.gdbinit:common/gdbinit.in"
15322
119da465 15323
65dcce8f 15324 sim_enable_arch_lm32=true
3e8bb3e9 15325 ;;
a0e674c1 15326 esac
8996c210
MF
15327
15328
15329
dc4e1fde 15330
8996c210 15331 if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
dc4e1fde
HPN
15332 : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
15333 : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
15334 : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
8996c210
MF
15335
15336fi
15337
15338as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
15339
65dcce8f
MF
15340 if ${sim_enable_arch_lm32}; then
15341 SIM_ENABLE_ARCH_lm32_TRUE=
15342 SIM_ENABLE_ARCH_lm32_FALSE='#'
15343else
15344 SIM_ENABLE_ARCH_lm32_TRUE='#'
15345 SIM_ENABLE_ARCH_lm32_FALSE=
15346fi
15347
586cfe1a 15348 sim_enable_arch_m32c=false
65dcce8f 15349 case "${targ}" in
a0e674c1
MF
15350 all|m32c-*-*)
15351 if test "${targ}" = "${target}"; then
15352 SIM_PRIMARY_TARGET=m32c
15353 fi
7c9a934c
MF
15354 ENABLE_SIM=yes
15355 as_fn_append SIM_ENABLED_ARCHES " m32c"
23912acd
MF
15356 ac_config_files="$ac_config_files m32c/.gdbinit:common/gdbinit.in"
15357
87326c78 15358
65dcce8f 15359 sim_enable_arch_m32c=true
3e8bb3e9 15360 ;;
a0e674c1 15361 esac
8996c210
MF
15362
15363
15364
dc4e1fde 15365
8996c210 15366 if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
dc4e1fde
HPN
15367 : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
15368 : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
15369 : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
8996c210
MF
15370
15371fi
15372
15373as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
15374
65dcce8f
MF
15375 if ${sim_enable_arch_m32c}; then
15376 SIM_ENABLE_ARCH_m32c_TRUE=
15377 SIM_ENABLE_ARCH_m32c_FALSE='#'
15378else
15379 SIM_ENABLE_ARCH_m32c_TRUE='#'
15380 SIM_ENABLE_ARCH_m32c_FALSE=
15381fi
15382
586cfe1a 15383 sim_enable_arch_m32r=false
65dcce8f 15384 case "${targ}" in
a0e674c1
MF
15385 all|m32r-*-*)
15386 if test "${targ}" = "${target}"; then
15387 SIM_PRIMARY_TARGET=m32r
15388 fi
7c9a934c
MF
15389 ENABLE_SIM=yes
15390 as_fn_append SIM_ENABLED_ARCHES " m32r"
23912acd
MF
15391 ac_config_files="$ac_config_files m32r/.gdbinit:common/gdbinit.in"
15392
87326c78 15393
65dcce8f 15394 sim_enable_arch_m32r=true
3e8bb3e9 15395 ;;
a0e674c1 15396 esac
8996c210
MF
15397
15398
15399
dc4e1fde 15400
8996c210 15401 if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
dc4e1fde
HPN
15402 : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
15403 : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
15404 : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
8996c210
MF
15405
15406fi
15407
15408as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
15409
65dcce8f
MF
15410 if ${sim_enable_arch_m32r}; then
15411 SIM_ENABLE_ARCH_m32r_TRUE=
15412 SIM_ENABLE_ARCH_m32r_FALSE='#'
15413else
15414 SIM_ENABLE_ARCH_m32r_TRUE='#'
15415 SIM_ENABLE_ARCH_m32r_FALSE=
15416fi
a0e674c1 15417
586cfe1a 15418 sim_enable_arch_m68hc11=false
65dcce8f 15419 case "${targ}" in
a0e674c1
MF
15420 all|m68hc11-*-*|m6811-*-*)
15421 if test "${targ}" = "${target}"; then
15422 SIM_PRIMARY_TARGET=m68hc11
15423 fi
7c9a934c
MF
15424 ENABLE_SIM=yes
15425 as_fn_append SIM_ENABLED_ARCHES " m68hc11"
23912acd
MF
15426 ac_config_files="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in"
15427
87326c78 15428
65dcce8f 15429 sim_enable_arch_m68hc11=true
3e8bb3e9 15430 ;;
a0e674c1 15431 esac
8996c210
MF
15432
15433
15434
dc4e1fde 15435
8996c210 15436 if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
dc4e1fde
HPN
15437 : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
15438 : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
15439 : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
8996c210
MF
15440
15441fi
15442
15443as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
15444
65dcce8f
MF
15445 if ${sim_enable_arch_m68hc11}; then
15446 SIM_ENABLE_ARCH_m68hc11_TRUE=
15447 SIM_ENABLE_ARCH_m68hc11_FALSE='#'
15448else
15449 SIM_ENABLE_ARCH_m68hc11_TRUE='#'
15450 SIM_ENABLE_ARCH_m68hc11_FALSE=
15451fi
a0e674c1 15452
586cfe1a 15453 sim_enable_arch_mcore=false
65dcce8f 15454 case "${targ}" in
a0e674c1
MF
15455 all|mcore-*-*)
15456 if test "${targ}" = "${target}"; then
15457 SIM_PRIMARY_TARGET=mcore
15458 fi
7c9a934c
MF
15459 ENABLE_SIM=yes
15460 as_fn_append SIM_ENABLED_ARCHES " mcore"
23912acd
MF
15461 ac_config_files="$ac_config_files mcore/.gdbinit:common/gdbinit.in"
15462
119da465 15463
65dcce8f 15464 sim_enable_arch_mcore=true
3e8bb3e9 15465 ;;
a0e674c1 15466 esac
8996c210
MF
15467
15468
15469
dc4e1fde 15470
8996c210 15471 if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
dc4e1fde
HPN
15472 : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
15473 : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
15474 : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
8996c210
MF
15475
15476fi
15477
15478as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
15479
65dcce8f
MF
15480 if ${sim_enable_arch_mcore}; then
15481 SIM_ENABLE_ARCH_mcore_TRUE=
15482 SIM_ENABLE_ARCH_mcore_FALSE='#'
15483else
15484 SIM_ENABLE_ARCH_mcore_TRUE='#'
15485 SIM_ENABLE_ARCH_mcore_FALSE=
15486fi
15487
586cfe1a 15488 sim_enable_arch_microblaze=false
65dcce8f 15489 case "${targ}" in
99aedb62 15490 all|microblaze*-*-*)
a0e674c1
MF
15491 if test "${targ}" = "${target}"; then
15492 SIM_PRIMARY_TARGET=microblaze
15493 fi
7c9a934c
MF
15494 ENABLE_SIM=yes
15495 as_fn_append SIM_ENABLED_ARCHES " microblaze"
23912acd
MF
15496 ac_config_files="$ac_config_files microblaze/.gdbinit:common/gdbinit.in"
15497
119da465 15498
65dcce8f 15499 sim_enable_arch_microblaze=true
3e8bb3e9 15500 ;;
a0e674c1 15501 esac
8996c210
MF
15502
15503
15504
dc4e1fde 15505
8996c210 15506 if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
dc4e1fde
HPN
15507 : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
15508 : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
15509 : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
8996c210
MF
15510
15511fi
15512
15513as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
15514
65dcce8f
MF
15515 if ${sim_enable_arch_microblaze}; then
15516 SIM_ENABLE_ARCH_microblaze_TRUE=
15517 SIM_ENABLE_ARCH_microblaze_FALSE='#'
15518else
15519 SIM_ENABLE_ARCH_microblaze_TRUE='#'
15520 SIM_ENABLE_ARCH_microblaze_FALSE=
15521fi
15522
586cfe1a 15523 sim_enable_arch_mips=false
65dcce8f 15524 case "${targ}" in
a0e674c1
MF
15525 all|mips*-*-*)
15526 if test "${targ}" = "${target}"; then
15527 SIM_PRIMARY_TARGET=mips
15528 fi
7c9a934c
MF
15529 ENABLE_SIM=yes
15530 as_fn_append SIM_ENABLED_ARCHES " mips"
23912acd
MF
15531 ac_config_files="$ac_config_files mips/.gdbinit:common/gdbinit.in"
15532
119da465 15533
65dcce8f 15534 sim_enable_arch_mips=true
3e8bb3e9 15535 ;;
a0e674c1 15536 esac
8996c210
MF
15537
15538
15539
dc4e1fde 15540
8996c210 15541 if test "$SIM_PRIMARY_TARGET" = "mips"; then :
dc4e1fde
HPN
15542 : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
15543 : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
15544 : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
8996c210
MF
15545
15546fi
15547
15548as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
15549
65dcce8f
MF
15550 if ${sim_enable_arch_mips}; then
15551 SIM_ENABLE_ARCH_mips_TRUE=
15552 SIM_ENABLE_ARCH_mips_FALSE='#'
15553else
15554 SIM_ENABLE_ARCH_mips_TRUE='#'
15555 SIM_ENABLE_ARCH_mips_FALSE=
15556fi
15557
586cfe1a 15558 sim_enable_arch_mn10300=false
65dcce8f 15559 case "${targ}" in
a0e674c1
MF
15560 all|mn10300*-*-*)
15561 if test "${targ}" = "${target}"; then
15562 SIM_PRIMARY_TARGET=mn10300
15563 fi
7c9a934c
MF
15564 ENABLE_SIM=yes
15565 as_fn_append SIM_ENABLED_ARCHES " mn10300"
23912acd
MF
15566 ac_config_files="$ac_config_files mn10300/.gdbinit:common/gdbinit.in"
15567
119da465 15568
65dcce8f 15569 sim_enable_arch_mn10300=true
3e8bb3e9 15570 ;;
a0e674c1 15571 esac
8996c210
MF
15572
15573
15574
dc4e1fde 15575
8996c210 15576 if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
dc4e1fde
HPN
15577 : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
15578 : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
15579 : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
8996c210
MF
15580
15581fi
15582
15583as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
15584
65dcce8f
MF
15585 if ${sim_enable_arch_mn10300}; then
15586 SIM_ENABLE_ARCH_mn10300_TRUE=
15587 SIM_ENABLE_ARCH_mn10300_FALSE='#'
15588else
15589 SIM_ENABLE_ARCH_mn10300_TRUE='#'
15590 SIM_ENABLE_ARCH_mn10300_FALSE=
15591fi
a0e674c1 15592
586cfe1a 15593 sim_enable_arch_moxie=false
65dcce8f 15594 case "${targ}" in
a0e674c1
MF
15595 all|moxie-*-*)
15596 if test "${targ}" = "${target}"; then
15597 SIM_PRIMARY_TARGET=moxie
15598 fi
7c9a934c
MF
15599 ENABLE_SIM=yes
15600 as_fn_append SIM_ENABLED_ARCHES " moxie"
23912acd
MF
15601 ac_config_files="$ac_config_files moxie/.gdbinit:common/gdbinit.in"
15602
119da465 15603
65dcce8f 15604 sim_enable_arch_moxie=true
3e8bb3e9 15605 ;;
a0e674c1 15606 esac
8996c210
MF
15607
15608
15609
dc4e1fde 15610
8996c210 15611 if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
dc4e1fde
HPN
15612 : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
15613 : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
15614 : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
8996c210
MF
15615
15616fi
15617
15618as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
15619
65dcce8f
MF
15620 if ${sim_enable_arch_moxie}; then
15621 SIM_ENABLE_ARCH_moxie_TRUE=
15622 SIM_ENABLE_ARCH_moxie_FALSE='#'
15623else
15624 SIM_ENABLE_ARCH_moxie_TRUE='#'
15625 SIM_ENABLE_ARCH_moxie_FALSE=
15626fi
a0e674c1 15627
586cfe1a 15628 sim_enable_arch_msp430=false
65dcce8f 15629 case "${targ}" in
a0e674c1
MF
15630 all|msp430*-*-*)
15631 if test "${targ}" = "${target}"; then
15632 SIM_PRIMARY_TARGET=msp430
15633 fi
7c9a934c
MF
15634 ENABLE_SIM=yes
15635 as_fn_append SIM_ENABLED_ARCHES " msp430"
23912acd
MF
15636 ac_config_files="$ac_config_files msp430/.gdbinit:common/gdbinit.in"
15637
119da465 15638
65dcce8f 15639 sim_enable_arch_msp430=true
3e8bb3e9 15640 ;;
a0e674c1 15641 esac
8996c210
MF
15642
15643
15644
dc4e1fde 15645
8996c210 15646 if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
dc4e1fde
HPN
15647 : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
15648 : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
15649 : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
8996c210
MF
15650
15651fi
15652
15653as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15654
65dcce8f
MF
15655 if ${sim_enable_arch_msp430}; then
15656 SIM_ENABLE_ARCH_msp430_TRUE=
15657 SIM_ENABLE_ARCH_msp430_FALSE='#'
15658else
15659 SIM_ENABLE_ARCH_msp430_TRUE='#'
15660 SIM_ENABLE_ARCH_msp430_FALSE=
15661fi
15662
586cfe1a 15663 sim_enable_arch_or1k=false
65dcce8f 15664 case "${targ}" in
99aedb62 15665 all|or1k*-*-*)
a0e674c1
MF
15666 if test "${targ}" = "${target}"; then
15667 SIM_PRIMARY_TARGET=or1k
15668 fi
7c9a934c
MF
15669 ENABLE_SIM=yes
15670 as_fn_append SIM_ENABLED_ARCHES " or1k"
23912acd
MF
15671 ac_config_files="$ac_config_files or1k/.gdbinit:common/gdbinit.in"
15672
119da465 15673
65dcce8f 15674 sim_enable_arch_or1k=true
99aedb62
MF
15675 ;;
15676 esac
8996c210
MF
15677
15678
15679
dc4e1fde 15680
8996c210 15681 if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
dc4e1fde
HPN
15682 : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
15683 : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
15684 : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
8996c210
MF
15685
15686fi
15687
15688as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15689
65dcce8f
MF
15690 if ${sim_enable_arch_or1k}; then
15691 SIM_ENABLE_ARCH_or1k_TRUE=
15692 SIM_ENABLE_ARCH_or1k_FALSE='#'
15693else
15694 SIM_ENABLE_ARCH_or1k_TRUE='#'
15695 SIM_ENABLE_ARCH_or1k_FALSE=
15696fi
15697
586cfe1a 15698 sim_enable_arch_ppc=false
65dcce8f 15699 case "${targ}" in
99aedb62
MF
15700 all|powerpc*-*-*)
15701 if test "${targ}" = "${target}"; then
15702 SIM_PRIMARY_TARGET=ppc
15703 fi
7c9a934c
MF
15704 ENABLE_SIM=yes
15705 as_fn_append SIM_ENABLED_ARCHES " ppc"
23912acd
MF
15706 ac_config_files="$ac_config_files ppc/.gdbinit:common/gdbinit.in"
15707
99aedb62 15708
65dcce8f 15709 sim_enable_arch_ppc=true
3e8bb3e9 15710 ;;
a0e674c1 15711 esac
8996c210
MF
15712
15713
15714
dc4e1fde 15715
8996c210 15716 if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
dc4e1fde
HPN
15717 : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
15718 : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
15719 : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
8996c210
MF
15720
15721fi
15722
15723as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15724
65dcce8f
MF
15725 if ${sim_enable_arch_ppc}; then
15726 SIM_ENABLE_ARCH_ppc_TRUE=
15727 SIM_ENABLE_ARCH_ppc_FALSE='#'
15728else
15729 SIM_ENABLE_ARCH_ppc_TRUE='#'
15730 SIM_ENABLE_ARCH_ppc_FALSE=
15731fi
15732
586cfe1a 15733 sim_enable_arch_pru=false
65dcce8f 15734 case "${targ}" in
a0e674c1
MF
15735 all|pru*-*-*)
15736 if test "${targ}" = "${target}"; then
15737 SIM_PRIMARY_TARGET=pru
15738 fi
7c9a934c
MF
15739 ENABLE_SIM=yes
15740 as_fn_append SIM_ENABLED_ARCHES " pru"
23912acd
MF
15741 ac_config_files="$ac_config_files pru/.gdbinit:common/gdbinit.in"
15742
119da465 15743
65dcce8f 15744 sim_enable_arch_pru=true
3e8bb3e9 15745 ;;
a0e674c1 15746 esac
8996c210
MF
15747
15748
15749
dc4e1fde 15750
8996c210 15751 if test "$SIM_PRIMARY_TARGET" = "pru"; then :
dc4e1fde
HPN
15752 : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
15753 : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
15754 : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
8996c210
MF
15755
15756fi
15757
15758as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15759
65dcce8f
MF
15760 if ${sim_enable_arch_pru}; then
15761 SIM_ENABLE_ARCH_pru_TRUE=
15762 SIM_ENABLE_ARCH_pru_FALSE='#'
15763else
15764 SIM_ENABLE_ARCH_pru_TRUE='#'
15765 SIM_ENABLE_ARCH_pru_FALSE=
15766fi
a0e674c1 15767
586cfe1a 15768 sim_enable_arch_riscv=false
65dcce8f 15769 case "${targ}" in
a0e674c1
MF
15770 all|riscv*-*-*)
15771 if test "${targ}" = "${target}"; then
15772 SIM_PRIMARY_TARGET=riscv
15773 fi
7c9a934c
MF
15774 ENABLE_SIM=yes
15775 as_fn_append SIM_ENABLED_ARCHES " riscv"
23912acd
MF
15776 ac_config_files="$ac_config_files riscv/.gdbinit:common/gdbinit.in"
15777
119da465 15778
65dcce8f 15779 sim_enable_arch_riscv=true
3e8bb3e9 15780 ;;
a0e674c1 15781 esac
8996c210
MF
15782
15783
15784
dc4e1fde 15785
8996c210 15786 if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
dc4e1fde
HPN
15787 : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
15788 : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
15789 : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
8996c210
MF
15790
15791fi
15792
15793as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15794
65dcce8f
MF
15795 if ${sim_enable_arch_riscv}; then
15796 SIM_ENABLE_ARCH_riscv_TRUE=
15797 SIM_ENABLE_ARCH_riscv_FALSE='#'
15798else
15799 SIM_ENABLE_ARCH_riscv_TRUE='#'
15800 SIM_ENABLE_ARCH_riscv_FALSE=
15801fi
15802
586cfe1a 15803 sim_enable_arch_rl78=false
65dcce8f 15804 case "${targ}" in
a0e674c1
MF
15805 all|rl78-*-*)
15806 if test "${targ}" = "${target}"; then
15807 SIM_PRIMARY_TARGET=rl78
15808 fi
7c9a934c
MF
15809 ENABLE_SIM=yes
15810 as_fn_append SIM_ENABLED_ARCHES " rl78"
23912acd
MF
15811 ac_config_files="$ac_config_files rl78/.gdbinit:common/gdbinit.in"
15812
f46e4eb7 15813
65dcce8f 15814 sim_enable_arch_rl78=true
3e8bb3e9 15815 ;;
a0e674c1 15816 esac
8996c210
MF
15817
15818
15819
dc4e1fde 15820
8996c210 15821 if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
dc4e1fde
HPN
15822 : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
15823 : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
15824 : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
8996c210
MF
15825
15826fi
15827
15828as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15829
65dcce8f
MF
15830 if ${sim_enable_arch_rl78}; then
15831 SIM_ENABLE_ARCH_rl78_TRUE=
15832 SIM_ENABLE_ARCH_rl78_FALSE='#'
15833else
15834 SIM_ENABLE_ARCH_rl78_TRUE='#'
15835 SIM_ENABLE_ARCH_rl78_FALSE=
15836fi
15837
586cfe1a 15838 sim_enable_arch_rx=false
65dcce8f 15839 case "${targ}" in
a0e674c1
MF
15840 all|rx-*-*)
15841 if test "${targ}" = "${target}"; then
15842 SIM_PRIMARY_TARGET=rx
15843 fi
7c9a934c
MF
15844 ENABLE_SIM=yes
15845 as_fn_append SIM_ENABLED_ARCHES " rx"
23912acd
MF
15846 ac_config_files="$ac_config_files rx/.gdbinit:common/gdbinit.in"
15847
f46e4eb7 15848
65dcce8f 15849 sim_enable_arch_rx=true
3e8bb3e9 15850 ;;
a0e674c1 15851 esac
8996c210
MF
15852
15853
15854
dc4e1fde 15855
8996c210 15856 if test "$SIM_PRIMARY_TARGET" = "rx"; then :
dc4e1fde
HPN
15857 : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
15858 : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
15859 : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
8996c210
MF
15860
15861fi
15862
15863as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15864
65dcce8f
MF
15865 if ${sim_enable_arch_rx}; then
15866 SIM_ENABLE_ARCH_rx_TRUE=
15867 SIM_ENABLE_ARCH_rx_FALSE='#'
15868else
15869 SIM_ENABLE_ARCH_rx_TRUE='#'
15870 SIM_ENABLE_ARCH_rx_FALSE=
15871fi
a0e674c1 15872
586cfe1a 15873 sim_enable_arch_sh=false
65dcce8f 15874 case "${targ}" in
a0e674c1
MF
15875 all|sh*-*-*)
15876 if test "${targ}" = "${target}"; then
15877 SIM_PRIMARY_TARGET=sh
15878 fi
7c9a934c
MF
15879 ENABLE_SIM=yes
15880 as_fn_append SIM_ENABLED_ARCHES " sh"
23912acd
MF
15881 ac_config_files="$ac_config_files sh/.gdbinit:common/gdbinit.in"
15882
f46e4eb7 15883
65dcce8f 15884 sim_enable_arch_sh=true
3e8bb3e9 15885 ;;
a0e674c1 15886 esac
8996c210
MF
15887
15888
15889
dc4e1fde 15890
8996c210 15891 if test "$SIM_PRIMARY_TARGET" = "sh"; then :
dc4e1fde
HPN
15892 : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
15893 : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
15894 : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
8996c210
MF
15895
15896fi
15897
15898as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
15899
65dcce8f
MF
15900 if ${sim_enable_arch_sh}; then
15901 SIM_ENABLE_ARCH_sh_TRUE=
15902 SIM_ENABLE_ARCH_sh_FALSE='#'
15903else
15904 SIM_ENABLE_ARCH_sh_TRUE='#'
15905 SIM_ENABLE_ARCH_sh_FALSE=
15906fi
a0e674c1 15907
586cfe1a 15908 sim_enable_arch_erc32=false
65dcce8f 15909 case "${targ}" in
99aedb62 15910 all|sparc-*-*)
a0e674c1
MF
15911 if test "${targ}" = "${target}"; then
15912 SIM_PRIMARY_TARGET=erc32
15913 fi
7c9a934c
MF
15914 ENABLE_SIM=yes
15915 as_fn_append SIM_ENABLED_ARCHES " erc32"
23912acd
MF
15916 ac_config_files="$ac_config_files erc32/.gdbinit:common/gdbinit.in"
15917
119da465 15918
65dcce8f 15919 sim_enable_arch_erc32=true
3e8bb3e9 15920 ;;
a0e674c1 15921 esac
8996c210
MF
15922
15923
15924
dc4e1fde 15925
8996c210 15926 if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
dc4e1fde
HPN
15927 : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
15928 : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
15929 : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
8996c210
MF
15930
15931fi
15932
15933as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
15934
65dcce8f
MF
15935 if ${sim_enable_arch_erc32}; then
15936 SIM_ENABLE_ARCH_erc32_TRUE=
15937 SIM_ENABLE_ARCH_erc32_FALSE='#'
15938else
15939 SIM_ENABLE_ARCH_erc32_TRUE='#'
15940 SIM_ENABLE_ARCH_erc32_FALSE=
15941fi
15942
586cfe1a 15943 sim_enable_arch_v850=false
65dcce8f 15944 case "${targ}" in
a0e674c1
MF
15945 all|v850*-*-*)
15946 if test "${targ}" = "${target}"; then
15947 SIM_PRIMARY_TARGET=v850
15948 fi
7c9a934c
MF
15949 ENABLE_SIM=yes
15950 as_fn_append SIM_ENABLED_ARCHES " v850"
23912acd
MF
15951 ac_config_files="$ac_config_files v850/.gdbinit:common/gdbinit.in"
15952
119da465 15953
65dcce8f 15954 sim_enable_arch_v850=true
3e8bb3e9
MF
15955 ;;
15956 esac
8996c210
MF
15957
15958
15959
dc4e1fde 15960
8996c210 15961 if test "$SIM_PRIMARY_TARGET" = "v850"; then :
dc4e1fde
HPN
15962 : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
15963 : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
15964 : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
8996c210
MF
15965
15966fi
15967
15968as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
15969
65dcce8f
MF
15970 if ${sim_enable_arch_v850}; then
15971 SIM_ENABLE_ARCH_v850_TRUE=
15972 SIM_ENABLE_ARCH_v850_FALSE='#'
15973else
15974 SIM_ENABLE_ARCH_v850_TRUE='#'
15975 SIM_ENABLE_ARCH_v850_FALSE=
15976fi
15977
a0e674c1
MF
15978
15979 done
26da232c
MF
15980
15981 if test "x${enable_example_sims}" = xyes; then
8996c210
MF
15982
15983
15984
dc4e1fde
HPN
15985
15986 : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
15987 : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
8996c210
MF
15988 : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
15989
15990as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
15991
7c9a934c
MF
15992 ENABLE_SIM=yes
15993 as_fn_append SIM_ENABLED_ARCHES " example-synacor"
23912acd
MF
15994 ac_config_files="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in"
15995
26da232c
MF
15996
15997 fi
c0c25232
MF
15998 if test "${enable_example_sims}" = "yes"; then
15999 SIM_ENABLE_ARCH_examples_TRUE=
16000 SIM_ENABLE_ARCH_examples_FALSE='#'
16001else
16002 SIM_ENABLE_ARCH_examples_TRUE='#'
16003 SIM_ENABLE_ARCH_examples_FALSE=
16004fi
16005
b6b1c790 16006fi
7c9a934c 16007 if test "$ENABLE_SIM" = "yes"; then
fb2c495f
MF
16008 ENABLE_SIM_TRUE=
16009 ENABLE_SIM_FALSE='#'
16010else
16011 ENABLE_SIM_TRUE='#'
16012 ENABLE_SIM_FALSE=
16013fi
16014
b6b1c790 16015
ba307cdd
MF
16016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
16017$as_echo_n "checking whether to force sim alignment... " >&6; }
16018sim_alignment=
16019# Check whether --enable-sim-alignment was given.
16020if test "${enable_sim_alignment+set}" = set; then :
16021 enableval=$enable_sim_alignment; case "${enableval}" in
16022 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
16023 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
16024 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
16025 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
16026esac
16027fi
16028
16029cat >>confdefs.h <<_ACEOF
16030#define WITH_ALIGNMENT ${sim_alignment:-0}
16031_ACEOF
16032
16033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
16034$as_echo "${sim_alignment:-no}" >&6; }
16035
dba333c1
MF
16036
16037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
16038$as_echo_n "checking whether to enable sim asserts... " >&6; }
16039sim_assert="1"
16040# Check whether --enable-sim-assert was given.
16041if test "${enable_sim_assert+set}" = set; then :
16042 enableval=$enable_sim_assert; case "${enableval}" in
16043 yes) sim_assert="1";;
16044 no) sim_assert="0";;
16045 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
16046esac
16047fi
16048
16049cat >>confdefs.h <<_ACEOF
16050#define WITH_ASSERT $sim_assert
16051_ACEOF
16052
16053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
16054$as_echo "$sim_assert" >&6; }
16055
1bf5c342
MF
16056
16057cgen_maint=no
16058cgen=guile
16059cgendir='$(srcdir)/../../cgen'
e7ad52cd
AM
16060if test -r ${srcdir}/../cgen/iformat.scm; then
16061 cgendir='$(srcdir)/../cgen'
16062fi
1bf5c342
MF
16063# Check whether --enable-cgen-maint was given.
16064if test "${enable_cgen_maint+set}" = set; then :
16065 enableval=$enable_cgen_maint; case "${enableval}" in
16066 yes) cgen_maint=yes ;;
16067 no) cgen_maint=no ;;
16068 *)
16069 # Argument is a directory where cgen can be found. In some
16070 # future world cgen could be installable, but right now this
16071 # is not the case. Instead we assume the directory is a path
16072 # to the cgen source tree.
16073 cgen_maint=yes
16074 if test -r ${enableval}/iformat.scm; then
16075 # This looks like a cgen source tree.
16076 cgendir=${enableval}
16077 else
16078 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
16079 fi
16080 ;;
16081esac
16082fi
16083if test x${cgen_maint} != xno ; then
16084 CGEN_MAINT=''
16085else
16086 CGEN_MAINT='#'
16087fi
16088
16089
16090
16091
04381273
MF
16092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
16093$as_echo_n "checking for sim debug setting... " >&6; }
16094sim_debug="0"
16095# Check whether --enable-sim-debug was given.
16096if test "${enable_sim_debug+set}" = set; then :
16097 enableval=$enable_sim_debug; case "${enableval}" in
16098 yes) sim_debug="7";;
16099 no) sim_debug="0";;
16100 *) sim_debug="($enableval)";;
16101esac
16102fi
16103if test "$sim_debug" != "0"; then
16104
16105cat >>confdefs.h <<_ACEOF
16106#define DEBUG $sim_debug
16107_ACEOF
16108
16109fi
16110
16111cat >>confdefs.h <<_ACEOF
16112#define WITH_DEBUG $sim_debug
16113_ACEOF
16114
16115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
16116$as_echo "$sim_debug" >&6; }
f9a4d543
MF
16117
16118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
16119$as_echo_n "checking whether to force sim endianness... " >&6; }
16120sim_endian=
16121# Check whether --enable-sim-endian was given.
16122if test "${enable_sim_endian+set}" = set; then :
16123 enableval=$enable_sim_endian; case "${enableval}" in
16124 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
16125 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
16126 yes | no) ;;
16127 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
16128esac
16129fi
16130
16131cat >>confdefs.h <<_ACEOF
16132#define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
16133_ACEOF
16134
16135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
16136$as_echo "${sim_alignment:-no}" >&6; }
04381273 16137
dba333c1 16138
5ea45474
MF
16139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
16140$as_echo_n "checking default sim environment setting... " >&6; }
16141sim_environment="ALL_ENVIRONMENT"
16142# Check whether --enable-sim-environment was given.
16143if test "${enable_sim_environment+set}" = set; then :
16144 enableval=$enable_sim_environment; case "${enableval}" in
16145 all | ALL) sim_environment="ALL_ENVIRONMENT";;
16146 user | USER) sim_environment="USER_ENVIRONMENT";;
16147 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
16148 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
16149 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
16150esac
16151fi
16152
16153cat >>confdefs.h <<_ACEOF
16154#define WITH_ENVIRONMENT $sim_environment
16155_ACEOF
16156
16157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
16158$as_echo "$sim_environment" >&6; }
16159
456ef1c1
MF
16160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
16161$as_echo_n "checking for sim hardware settings... " >&6; }
16162# Check whether --enable-sim-hardware was given.
16163if test "${enable_sim_hardware+set}" = set; then :
16164 enableval=$enable_sim_hardware;
16165else
16166 enable_sim_hardware="yes"
16167fi
16168
16169sim_hw_sockser=
16170if test "$enable_sim_hardware" = no; then
16171 sim_hw_cflags="-DWITH_HW=0"
16172elif test "$enable_sim_hardware" = yes; then
16173 sim_hw_cflags="-DWITH_HW=1"
03de8f26
MF
16174 sim_hw_sockser="dv-sockser.o"
16175 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
456ef1c1
MF
16176else
16177 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
16178fi
16179 if test "$enable_sim_hardware" = "yes"; then
16180 SIM_ENABLE_HW_TRUE=
16181 SIM_ENABLE_HW_FALSE='#'
16182else
16183 SIM_ENABLE_HW_TRUE='#'
16184 SIM_ENABLE_HW_FALSE=
16185fi
16186
16187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
16188$as_echo "${enable_sim_hardware}" >&6; }
682a2a82 16189SIM_HW_CFLAGS=$sim_hw_cflags
456ef1c1 16190
682a2a82 16191SIM_HW_SOCKSER=$sim_hw_sockser
456ef1c1
MF
16192
16193
d73f39ee
MF
16194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
16195$as_echo_n "checking sim inline settings... " >&6; }
16196sim_inline="-DDEFAULT_INLINE=0"
16197# Check whether --enable-sim-inline was given.
16198if test "${enable_sim_inline+set}" = set; then :
16199 enableval=$enable_sim_inline; sim_inline=""
16200case "$enableval" in
16201 no) sim_inline="-DDEFAULT_INLINE=0";;
16202 0) sim_inline="-DDEFAULT_INLINE=0";;
16203 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
16204 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
16205 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16206 new_flag=""
16207 case "$x" in
16208 *_INLINE=*) new_flag="-D$x";;
16209 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
16210 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
16211 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
16212 esac
16213 if test x"$sim_inline" = x""; then
16214 sim_inline="$new_flag"
16215 else
16216 sim_inline="$sim_inline $new_flag"
16217 fi
16218 done;;
16219esac
16220
16221fi
16222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
16223$as_echo "$sim_inline" >&6; }
16224SIM_INLINE=$sim_inline
16225
16226
04381273
MF
16227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
16228$as_echo_n "checking for sim profile settings... " >&6; }
16229profile="1"
16230sim_profile="-1"
16231# Check whether --enable-sim-profile was given.
16232if test "${enable_sim_profile+set}" = set; then :
16233 enableval=$enable_sim_profile; case "${enableval}" in
16234 yes) profile="1" sim_profile="-1";;
16235 no) profile="0" sim_profile="0";;
16236 [-0-9]*)
16237 profile="(${enableval})" sim_profile="(${enableval})";;
16238 [a-z]*)
16239 profile="1"
16240 sim_profile=""
16241 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16242 if test x"$sim_profile" = x; then
16243 sim_profile="(PROFILE_$x"
16244 else
16245 sim_profile="${sim_profile}|PROFILE_$x"
16246 fi
16247 done
16248 sim_profile="$sim_profile)" ;;
16249esac
16250fi
16251
16252cat >>confdefs.h <<_ACEOF
16253#define PROFILE $profile
16254_ACEOF
16255
16256
16257cat >>confdefs.h <<_ACEOF
16258#define WITH_PROFILE $sim_profile
16259_ACEOF
16260
16261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
16262$as_echo "$sim_profile" >&6; }
16263
7eb1f99a
MF
16264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
16265$as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
16266# Check whether --enable-sim-reserved-bits was given.
16267if test "${enable_sim_reserved_bits+set}" = set; then :
16268 enableval=$enable_sim_reserved_bits; case "${enableval}" in
16269yes|no) ;;
16270*) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
16271esac
16272fi
16273
16274if test "x${enable_sim_reserved_bits}" != xno; then
16275 sim_reserved_bits=1
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16277$as_echo "yes" >&6; }
16278else
16279 sim_reserved_bits=0
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16281$as_echo "no" >&6; }
16282fi
16283
16284cat >>confdefs.h <<_ACEOF
16285#define WITH_RESERVED_BITS $sim_reserved_bits
16286_ACEOF
16287
16288
b79efe26
MF
16289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
16290$as_echo_n "checking for sim cache size... " >&6; }
16291sim_scache="16384"
16292# Check whether --enable-sim-scache was given.
16293if test "${enable_sim_scache+set}" = set; then :
16294 enableval=$enable_sim_scache; case "${enableval}" in
16295 yes) ;;
16296 no) sim_scache="0";;
16297 [0-9]*) sim_scache="${enableval}";;
16298 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
16299esac
16300fi
16301
16302
16303cat >>confdefs.h <<_ACEOF
16304#define WITH_SCACHE $sim_scache
16305_ACEOF
16306
16307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
16308$as_echo "$sim_scache" >&6; }
16309
20b579ba
MF
16310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of sim cpus to support" >&5
16311$as_echo_n "checking number of sim cpus to support... " >&6; }
16312default_sim_smp="0"
16313sim_smp="$default_sim_smp"
16314# Check whether --enable-sim-smp was given.
16315if test "${enable_sim_smp+set}" = set; then :
16316 enableval=$enable_sim_smp; case "${enableval}" in
16317 yes) sim_smp="5";;
16318 no) sim_smp="0";;
16319 *) sim_smp="$enableval";;
16320esac
16321fi
111b1cf9
MF
16322IGEN_FLAGS_SMP="-N ${sim_smp}"
16323
20b579ba
MF
16324if test "x$sim_smp" = x0; then :
16325
16326else
16327
16328cat >>confdefs.h <<_ACEOF
16329#define WITH_SMP $sim_smp
16330_ACEOF
16331
16332fi
16333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_smp" >&5
16334$as_echo "$sim_smp" >&6; }
16335
04381273
MF
16336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
16337$as_echo_n "checking for sim stdio debug behavior... " >&6; }
16338sim_stdio="0"
16339# Check whether --enable-sim-stdio was given.
16340if test "${enable_sim_stdio+set}" = set; then :
16341 enableval=$enable_sim_stdio; case "${enableval}" in
16342 yes) sim_stdio="DO_USE_STDIO";;
16343 no) sim_stdio="DONT_USE_STDIO";;
16344 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
16345esac
16346fi
16347
16348cat >>confdefs.h <<_ACEOF
16349#define WITH_STDIO $sim_stdio
16350_ACEOF
16351
16352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
16353$as_echo "$sim_stdio" >&6; }
16354
16355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
16356$as_echo_n "checking for sim trace settings... " >&6; }
16357sim_trace="~TRACE_debug"
16358# Check whether --enable-sim-trace was given.
16359if test "${enable_sim_trace+set}" = set; then :
16360 enableval=$enable_sim_trace; case "${enableval}" in
16361 yes) sim_trace="-1";;
16362 no) sim_trace="0";;
16363 [-0-9]*)
16364 sim_trace="'(${enableval})'";;
16365 [[:lower:]]*)
16366 sim_trace=""
16367 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16368 if test x"$sim_trace" = x; then
16369 sim_trace="(TRACE_$x"
16370 else
16371 sim_trace="${sim_trace}|TRACE_$x"
16372 fi
16373 done
16374 sim_trace="$sim_trace)" ;;
16375esac
16376fi
16377
16378cat >>confdefs.h <<_ACEOF
16379#define WITH_TRACE $sim_trace
16380_ACEOF
16381
16382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
16383$as_echo "$sim_trace" >&6; }
16384
47ce766a
MF
16385# Check whether --enable-werror was given.
16386if test "${enable_werror+set}" = set; then :
16387 enableval=$enable_werror; case "${enableval}" in
16388 yes | y) ERROR_ON_WARNING="yes" ;;
16389 no | n) ERROR_ON_WARNING="no" ;;
16390 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16391 esac
16392fi
16393
16394
ab18008e 16395if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
47ce766a
MF
16396 ERROR_ON_WARNING=yes
16397fi
16398
16399WERROR_CFLAGS=""
16400if test "${ERROR_ON_WARNING}" = yes ; then
16401 WERROR_CFLAGS="-Werror"
16402fi
16403
b0c06375 16404build_warnings="-Wall -Wpointer-arith
58d38850 16405-Wno-unused -Wunused-value -Wunused-variable -Wunused-function
7f6fa743 16406-Wno-switch -Wno-char-subscripts
00383ba6 16407-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable
b0c06375
MF
16408-Wno-sign-compare -Wno-error=maybe-uninitialized
16409-Wno-error=deprecated-register
3a4ee628 16410-Wimplicit-fallthrough=5
95cd009f 16411-Wduplicated-cond
f6c714d6 16412-Wshadow=local
7f6fa743 16413-Wmissing-declarations
b0c06375
MF
16414"
16415build_warnings="$build_warnings
16416-Wdeclaration-after-statement
16417-Wdeprecated-non-prototype
16418-Wimplicit-function-declaration
16419-Wimplicit-int
16420-Wincompatible-function-pointer-types
16421-Wincompatible-pointer-types
2757c1c6 16422-Wint-conversion
b0c06375
MF
16423-Wmisleading-indentation
16424-Wmissing-parameter-type
7f6fa743 16425-Wmissing-prototypes
b0c06375
MF
16426-Wold-style-declaration
16427-Wold-style-definition
7f6fa743 16428-Wpointer-sign
fa113bd9 16429-Wreturn-mismatch
3744b73e 16430-Wreturn-type
9f17cdda 16431-Wshift-negative-value
2757c1c6 16432-Wstrict-prototypes
a7292455 16433-Wno-enum-conversion
7f6fa743 16434"
435ad222 16435build_build_warnings="
435ad222
MF
16436-Wno-stringop-truncation
16437-Wno-implicit-fallthrough
16438-Wno-shadow=local
16439"
47ce766a 16440
47ce766a 16441case "${host}" in
3c7666dc
MF
16442 *-*-mingw32*)
16443 # Enable -Wno-format by default when using gcc on mingw since many
16444 # GCC versions complain about %I64.
16445 build_warnings="$build_warnings -Wno-format" ;;
16446 *-*-solaris*)
16447 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16448 # doesn't understand.
16449 build_warnings="$build_warnings -Wno-unknown-pragmas"
16450 # Solaris 11 <unistd.h> marks vfork deprecated.
16451 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
16452 *)
16453 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16454 # but there's a special case for this below.
16455 build_warnings="$build_warnings -Wformat-nonliteral" ;;
47ce766a
MF
16456esac
16457
16458# Check whether --enable-build-warnings was given.
16459if test "${enable_build_warnings+set}" = set; then :
16460 enableval=$enable_build_warnings; case "${enableval}" in
16461 yes) ;;
16462 no) build_warnings="-w";;
16463 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16464 build_warnings="${build_warnings} ${t}";;
16465 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16466 build_warnings="${t} ${build_warnings}";;
16467 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16468esac
16469if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16470 echo "Setting compiler warning flags = $build_warnings" 6>&1
16471fi
16472fi
16473# Check whether --enable-sim-build-warnings was given.
16474if test "${enable_sim_build_warnings+set}" = set; then :
16475 enableval=$enable_sim_build_warnings; case "${enableval}" in
16476 yes) ;;
16477 no) build_warnings="-w";;
16478 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16479 build_warnings="${build_warnings} ${t}";;
16480 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16481 build_warnings="${t} ${build_warnings}";;
16482 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16483esac
16484if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16485 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16486fi
16487fi
16488WARN_CFLAGS=""
435ad222 16489BUILD_WARN_CFLAGS=""
47ce766a
MF
16490if test "x${build_warnings}" != x -a "x$GCC" = xyes
16491then
435ad222
MF
16492
16493
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
47ce766a
MF
16495$as_echo_n "checking compiler warning flags... " >&6; }
16496 # Separate out the -Werror flag as some files just cannot be
16497 # compiled with it enabled.
16498 for w in ${build_warnings}; do
16499 case $w in
16500 -Werr*) WERROR_CFLAGS=-Werror ;;
4da6be3f
MF
16501 *) w="$w"
16502 case $w in
16503 -Wno-*)
16504 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16505 -Wformat-nonliteral)
16506 w="-Wformat $w"
16507 wtest="$w"
16508 ;;
16509 *)
16510 wtest=$w ;;
16511 esac
16512
16513 saved_CFLAGS="$CFLAGS"
16514 CFLAGS="$CFLAGS -Werror $wtest"
16515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47ce766a
MF
16516/* end confdefs.h. */
16517
16518int
16519main ()
16520{
16521
16522 ;
16523 return 0;
16524}
16525_ACEOF
16526if ac_fn_c_try_compile "$LINENO"; then :
16527 WARN_CFLAGS="${WARN_CFLAGS} $w"
16528fi
16529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4da6be3f
MF
16530 CFLAGS="$saved_CFLAGS"
16531 ;;
47ce766a
MF
16532 esac
16533 done
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16535$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
4da6be3f 16536
435ad222
MF
16537
16538 if test "x$cross_compiling" = "xno"; then :
16539 SAVE_WARN_CFLAGS=$WARN_CFLAGS
16540 build_warnings=$build_build_warnings
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16542$as_echo_n "checking compiler warning flags... " >&6; }
16543 # Separate out the -Werror flag as some files just cannot be
16544 # compiled with it enabled.
16545 for w in ${build_warnings}; do
16546 case $w in
16547 -Werr*) WERROR_CFLAGS=-Werror ;;
16548 *) w="$w"
16549 case $w in
16550 -Wno-*)
16551 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16552 -Wformat-nonliteral)
16553 w="-Wformat $w"
16554 wtest="$w"
16555 ;;
16556 *)
16557 wtest=$w ;;
16558 esac
16559
16560 saved_CFLAGS="$CFLAGS"
16561 CFLAGS="$CFLAGS -Werror $wtest"
16562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16563/* end confdefs.h. */
16564
16565int
16566main ()
16567{
16568
16569 ;
16570 return 0;
16571}
16572_ACEOF
16573if ac_fn_c_try_compile "$LINENO"; then :
16574 WARN_CFLAGS="${WARN_CFLAGS} $w"
16575fi
16576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16577 CFLAGS="$saved_CFLAGS"
16578 ;;
16579 esac
16580 done
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16582$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16583
16584 BUILD_WARN_CFLAGS=$WARN_CFLAGS
16585 WARN_CFLAGS=$SAVE_WARN_CFLAGS
16586 BUILD_WERROR_CFLAGS=$WERROR_CFLAGS
16587
16588fi
16589
4da6be3f
MF
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-shadow=local is supported" >&5
16591$as_echo_n "checking whether -Wno-shadow=local is supported... " >&6; }
16592 w="-Wno-shadow=local"
16593 case $w in
16594 -Wno-*)
16595 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16596 -Wformat-nonliteral)
16597 w="-Wformat $w"
16598 wtest="$w"
16599 ;;
16600 *)
16601 wtest=$w ;;
16602 esac
16603
16604 saved_CFLAGS="$CFLAGS"
16605 CFLAGS="$CFLAGS -Werror $wtest"
16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607/* end confdefs.h. */
16608
16609int
16610main ()
16611{
16612
16613 ;
16614 return 0;
16615}
16616_ACEOF
16617if ac_fn_c_try_compile "$LINENO"; then :
16618 SIM_CFLAG_WNO_SHADOW_LOCAL=-Wno-shadow=local
16619
16620
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16622$as_echo "yes" >&6; }
16623
16624else
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16626$as_echo "no" >&6; }
16627fi
16628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16629 CFLAGS="$saved_CFLAGS"
16630
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-unused-but-set-variable is supported" >&5
16632$as_echo_n "checking whether -Wno-unused-but-set-variable is supported... " >&6; }
16633 w="-Wno-unused-but-set-variable"
16634 case $w in
16635 -Wno-*)
16636 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16637 -Wformat-nonliteral)
16638 w="-Wformat $w"
16639 wtest="$w"
16640 ;;
16641 *)
16642 wtest=$w ;;
16643 esac
16644
16645 saved_CFLAGS="$CFLAGS"
16646 CFLAGS="$CFLAGS -Werror $wtest"
16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16648/* end confdefs.h. */
16649
16650int
16651main ()
16652{
16653
16654 ;
16655 return 0;
16656}
16657_ACEOF
16658if ac_fn_c_try_compile "$LINENO"; then :
16659 SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
16660
16661
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16663$as_echo "yes" >&6; }
16664
16665else
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16667$as_echo "no" >&6; }
16668fi
16669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16670 CFLAGS="$saved_CFLAGS"
16671
47ce766a
MF
16672fi
16673
16674
408a44aa
MF
16675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
16676$as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
16677# Check whether --enable-sim-frv-trapdump was given.
16678if test "${enable_sim_frv_trapdump+set}" = set; then :
16679 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
16680yes|no) ;;
16681*) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
16682esac
16683fi
16684
1ee4d0e3 16685if test "x${enable_sim_frv_trapdump}" = xyes; then
408a44aa
MF
16686 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16688$as_echo "yes" >&6; }
16689else
16690 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16692$as_echo "no" >&6; }
16693fi
16694
16695
2d5700ad
MF
16696
16697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mips subtarget" >&5
16698$as_echo_n "checking mips subtarget... " >&6; }
16699SIM_MIPS_SUBTARGET=
16700case ${target} in #(
16701 mips64vr*-*-*) :
16702 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16703 mips*tx39*) :
16704 SIM_MIPS_SUBTARGET="-DSUBTARGET_R3900=1" ;; #(
16705 mips*-sde-elf*) :
16706 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16707 mips*-mti-elf*) :
16708 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16709 mipsisa32*-*-*) :
16710 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16711 mipsisa64*-*-*) :
16712 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16713 *) :
16714 ;;
16715esac
16716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SIM_MIPS_SUBTARGET:-none}" >&5
16717$as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; }
16718
16719
19b11256
MF
16720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mips bitsize" >&5
16721$as_echo_n "checking mips bitsize... " >&6; }
16722SIM_MIPS_BITSIZE=64
16723case ${target} in #(
16724 mips*-sde-elf*) :
16725 SIM_MIPS_BITSIZE=64 ;; #(
16726 mips*-mti-elf*) :
16727 SIM_MIPS_BITSIZE=64 ;; #(
16728 mips64*-*-*) :
16729 SIM_MIPS_BITSIZE=64 ;; #(
16730 mips16*-*-*) :
16731 SIM_MIPS_BITSIZE=64 ;; #(
16732 mipsisa32*-*-*) :
16733 SIM_MIPS_BITSIZE=32 ;; #(
16734 mipsisa64*-*-*) :
16735 SIM_MIPS_BITSIZE=64 ;; #(
16736 mips*-*-*) :
16737 SIM_MIPS_BITSIZE=32 ;; #(
16738 *) :
16739 ;;
16740esac
16741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_BITSIZE" >&5
16742$as_echo "$SIM_MIPS_BITSIZE" >&6; }
16743
16744
d455df98
MF
16745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mips fpu bitsize" >&5
16746$as_echo_n "checking mips fpu bitsize... " >&6; }
16747SIM_MIPS_FPU_BITSIZE=64
16748case ${target} in #(
16749 mips*tx39*) :
16750 SIM_MIPS_FPU_BITSIZE=32 ;; #(
16751 mips*-sde-elf*) :
16752 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16753 mips*-mti-elf*) :
16754 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16755 mipsisa32*-*-*) :
16756 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16757 mipsisa64*-*-*) :
16758 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16759 mips*-*-*) :
16760 SIM_MIPS_FPU_BITSIZE=32 ;; #(
16761 *) :
16762 ;;
16763esac
16764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_FPU_BITSIZE" >&5
16765$as_echo "$SIM_MIPS_FPU_BITSIZE" >&6; }
16766
16767
07f60ed8
MF
16768SIM_MIPS_GEN=SINGLE
16769sim_mips_single_machine="-M mipsIV"
abc494c6 16770sim_mips_m16_machine="-M mips16,mipsIII"
07f60ed8 16771sim_mips_single_filter="32,64,f"
abc494c6
MF
16772sim_mips_m16_filter="16"
16773case ${target} in #(
16774 mips*tx39*) :
07f60ed8
MF
16775 SIM_MIPS_GEN=SINGLE
16776 sim_mips_single_filter="32,f"
16777 sim_mips_single_machine="-M r3900" ;; #(
abc494c6
MF
16778 mips64vr41*) :
16779 SIM_MIPS_GEN=M16
07f60ed8 16780 sim_mips_single_machine="-M vr4100"
abc494c6
MF
16781 sim_mips_m16_machine="-M vr4100" ;; #(
16782 mips64*) :
16783 SIM_MIPS_GEN=MULTI
16784 sim_mips_multi_configs="\
16785 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
16786 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
16787 vr5000:mipsIV:32,64,f:mips4300,mips5000,mips8000\
16788 vr5400:mipsIV,vr5400:32,64,f:mips5400\
16789 vr5500:mipsIV,vr5500:32,64,f:mips5500"
16790 sim_mips_multi_default=mips5000 ;; #(
16791 mips*-sde-elf* | mips*-mti-elf*) :
16792 SIM_MIPS_GEN=MULTI
16793 sim_mips_multi_configs="\
16794 micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
16795 mipsisa64r2:mips64r2,mips16,mips16e,mdmx,dsp,dsp2,mips3d,smartmips:32,64,f:mipsisa32r2,mipsisa64r2,mipsisa32r5,mipsisa64r5\
16796 mipsisa64r6:mips64r6:32,64,f:mipsisa32r6,mipsisa64r6"
16797 sim_mips_multi_default=mipsisa64r2 ;; #(
16798 mips16*) :
16799 SIM_MIPS_GEN=M16 ;; #(
16800 mipsisa32r2*) :
16801 SIM_MIPS_GEN=MULTI
16802 sim_mips_multi_configs="\
16803 micromips:micromips32,micromipsdsp:32,f:mips_micromips\
16804 mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
16805 sim_mips_multi_default=mipsisa32r2 ;; #(
16806 mipsisa32r6*) :
07f60ed8
MF
16807 SIM_MIPS_GEN=SINGLE
16808 sim_mips_single_machine="-M mips32r6"
16809 sim_mips_single_filter="32,f" ;; #(
abc494c6
MF
16810 mipsisa32*) :
16811 SIM_MIPS_GEN=M16
07f60ed8 16812 sim_mips_single_machine="-M mips32,mips16,mips16e,smartmips"
abc494c6 16813 sim_mips_m16_machine="-M mips16,mips16e,mips32"
07f60ed8 16814 sim_mips_single_filter="32,f" ;; #(
abc494c6
MF
16815 mipsisa64r2*) :
16816 SIM_MIPS_GEN=M16
07f60ed8 16817 sim_mips_single_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
abc494c6
MF
16818 sim_mips_m16_machine="-M mips16,mips16e,mips64r2" ;; #(
16819 mipsisa64r6*) :
07f60ed8
MF
16820 SIM_MIPS_GEN=SINGLE
16821 sim_mips_single_machine="-M mips64r6" ;; #(
abc494c6 16822 mipsisa64sb1*) :
07f60ed8
MF
16823 SIM_MIPS_GEN=SINGLE
16824 sim_mips_single_machine="-M mips64,mips3d,sb1" ;; #(
abc494c6
MF
16825 mipsisa64*) :
16826 SIM_MIPS_GEN=M16
07f60ed8 16827 sim_mips_single_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
abc494c6
MF
16828 sim_mips_m16_machine="-M mips16,mips16e,mips64" ;; #(
16829 mips*lsi*) :
16830 SIM_MIPS_GEN=M16
07f60ed8 16831 sim_mips_single_machine="-M mipsIII,mips16"
abc494c6 16832 sim_mips_m16_machine="-M mips16,mipsIII"
07f60ed8 16833 sim_mips_single_filter="32,f" ;; #(
abc494c6 16834 mips*) :
07f60ed8
MF
16835 SIM_MIPS_GEN=SINGLE
16836 sim_mips_single_filter="32,f" ;; #(
abc494c6
MF
16837 *) :
16838 ;;
16839esac
16840
4c45662c 16841SIM_MIPS_IGEN_ITABLE_FLAGS=
abc494c6
MF
16842SIM_MIPS_MULTI_SRC=
16843SIM_MIPS_MULTI_OBJ=
16844SIM_MIPS_MULTI_IGEN_CONFIGS=
16845if test "x$SIM_MIPS_GEN" = x"MULTI"; then :
16846 if test -z "${sim_mips_multi_configs}" || test -z "${sim_mips_multi_default}"; then :
16847 as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
16848fi
16849
16850 as_dir=mips; as_fn_mkdir_p
16851 rm -f mips/multi-include.h mips/multi-run.c
16852 sim_mips_seen_default=no
16853
16854 cat << __EOF__ > mips/multi-run.c
16855/* Main entry point for MULTI simulators.
0d9d77e5 16856 Copyright (C) 2003-2023 Free Software Foundation, Inc.
abc494c6
MF
16857
16858 This program is free software; you can redistribute it and/or modify
16859 it under the terms of the GNU General Public License as published by
16860 the Free Software Foundation; either version 3 of the License, or
16861 (at your option) any later version.
16862
16863 This program is distributed in the hope that it will be useful,
16864 but WITHOUT ANY WARRANTY; without even the implied warranty of
16865 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16866 GNU General Public License for more details.
16867
16868 You should have received a copy of the GNU General Public License
16869 along with this program. If not, see <http://www.gnu.org/licenses/>.
16870
16871 --
16872
16873 This file was generated by sim/mips/configure. */
16874
16875#include "sim-main.h"
16876#include "multi-include.h"
c217e3d5
MF
16877#include "bfd/elf-bfd.h"
16878#include "bfd/elfxx-mips.h"
abc494c6
MF
16879#include "elf/mips.h"
16880
16881#define SD sd
16882#define CPU cpu
16883
16884void
16885sim_engine_run (SIM_DESC sd,
16886 int next_cpu_nr,
16887 int nr_cpus,
16888 int signal) /* ignore */
16889{
16890 int mach;
16891
16892 if (STATE_ARCHITECTURE (sd) == NULL)
16893 mach = bfd_mach_${sim_mips_multi_default};
16894 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
16895 & EF_MIPS_ARCH_ASE_MICROMIPS)
16896 mach = bfd_mach_mips_micromips;
16897 else
16898 {
16899 mach = _bfd_elf_mips_mach (elf_elfheader (STATE_PROG_BFD (sd))->e_flags);
16900 if (!mach)
16901 mach = STATE_ARCHITECTURE (SD)->mach;
16902 }
16903
16904 switch (mach)
16905 {
16906__EOF__
16907
16908 for fc in ${sim_mips_multi_configs}; do
16909
16910 c=`echo ${fc} | sed 's/:[^:]*$//'`
16911 bfdmachs=`echo ${fc} | sed 's/.*://'`
16912 name=`echo ${c} | sed 's/:.*//'`
16913 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
16914 filter=`echo ${c} | sed 's/.*://'`
16915
4c45662c 16916 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F ${filter} -M ${machine}"
abc494c6
MF
16917
16918 case ${c} in #(
16919 *:*mips16*:*) :
16920 ws="m32 m16"
16921
1f1afa43
MF
16922 as_fn_append SIM_MIPS_MULTI_SRC " mips/m16${name}_run.c"
16923 as_fn_append SIM_MIPS_MULTI_OBJ " mips/m16${name}_run.o"
4c45662c 16924 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16"
abc494c6
MF
16925 ;; #(
16926 *:*micromips32*:*) :
16927 ws="micromips_m32 micromips16 micromips32"
16928
1f1afa43
MF
16929 as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c"
16930 as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o"
4c45662c 16931 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32"
abc494c6
MF
16932 ;; #(
16933 *:*micromips64*:*) :
16934 ws="micromips_m64 micromips16 micromips64"
16935
1f1afa43
MF
16936 as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c"
16937 as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o"
4c45662c 16938 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32,64"
abc494c6
MF
16939 ;; #(
16940 *) :
16941 ws=m32 ;;
16942esac
16943
16944 for w in ${ws}; do
16945 for base in engine icache idecode model semantics support; do
1f1afa43
MF
16946 as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.c"
16947 as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.h"
16948 as_fn_append SIM_MIPS_MULTI_OBJ " mips/${w}${name}_${base}.o"
abc494c6
MF
16949 done
16950 as_fn_append SIM_MIPS_MULTI_IGEN_CONFIGS " ${w}${c}"
16951 done
16952
16953 echo "#include \"${w}${name}_engine.h\"" >> mips/multi-include.h
16954
16955 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
16956 echo " case bfd_mach_${mach}:" >> mips/multi-run.c
16957 if test "x$mach" = x"${sim_mips_multi_default}"; then :
16958 echo " default:" >> mips/multi-run.c
16959 sim_mips_seen_default=yes
16960
16961fi
16962 done
16963 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
16964 >> mips/multi-run.c
16965 echo " break;" >> mips/multi-run.c
16966 done
16967
16968 if test "x$sim_mips_seen_default" = xno; then :
16969 as_fn_error $? "Error in configure.ac: \${sim_mips_multi_configs} doesn't have an entry for \${sim_mips_multi_default}" "$LINENO" 5
16970fi
16971
16972 cat << __EOF__ >> mips/multi-run.c
16973 }
16974}
16975__EOF__
16976
16977else
4c68f4e3 16978 SIM_MIPS_IGEN_ITABLE_FLAGS='$(SIM_MIPS_SINGLE_FLAGS)'
67c952d1
MF
16979 if test "x$SIM_MIPS_GEN" = x"M16"; then :
16980 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS ' $(SIM_MIPS_M16_FLAGS)'
16981fi
abc494c6
MF
16982
16983fi
07f60ed8 16984SIM_MIPS_SINGLE_FLAGS="-F ${sim_mips_single_filter} ${sim_mips_single_machine}"
111b1cf9 16985SIM_MIPS_M16_FLAGS="-F ${sim_mips_m16_filter} ${sim_mips_m16_machine}"
abc494c6
MF
16986
16987
16988
16989
16990
16991
16992
3a31051b
MF
16993 if test "$SIM_MIPS_GEN" = "SINGLE"; then
16994 SIM_MIPS_GEN_MODE_SINGLE_TRUE=
16995 SIM_MIPS_GEN_MODE_SINGLE_FALSE='#'
16996else
16997 SIM_MIPS_GEN_MODE_SINGLE_TRUE='#'
16998 SIM_MIPS_GEN_MODE_SINGLE_FALSE=
16999fi
17000
f6d58d40
MF
17001 if test "$SIM_MIPS_GEN" = "M16"; then
17002 SIM_MIPS_GEN_MODE_M16_TRUE=
17003 SIM_MIPS_GEN_MODE_M16_FALSE='#'
17004else
17005 SIM_MIPS_GEN_MODE_M16_TRUE='#'
17006 SIM_MIPS_GEN_MODE_M16_FALSE=
17007fi
17008
f12c3c63
MF
17009 if test "$SIM_MIPS_GEN" = "MULTI"; then
17010 SIM_MIPS_GEN_MODE_MULTI_TRUE=
17011 SIM_MIPS_GEN_MODE_MULTI_FALSE='#'
17012else
17013 SIM_MIPS_GEN_MODE_MULTI_TRUE='#'
17014 SIM_MIPS_GEN_MODE_MULTI_FALSE=
17015fi
5f7e03a6
MF
17016
17017
17018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc bitsize settings" >&5
17019$as_echo_n "checking for sim ppc bitsize settings... " >&6; }
17020# Check whether --enable-sim-ppc-bitsize was given.
17021if test "${enable_sim_ppc_bitsize+set}" = set; then :
17022 enableval=$enable_sim_ppc_bitsize; case "${enableval}" in
17023 32|64) sim_ppc_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
17024 *) as_fn_error $? "\"--enable-sim-ppc-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5;;
17025esac
17026else
17027 sim_ppc_bitsize=""
17028fi
17029
17030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_bitsize" >&5
17031$as_echo "$sim_ppc_bitsize" >&6; }
17032
17033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc decode mechanism" >&5
17034$as_echo_n "checking for sim ppc decode mechanism... " >&6; }
17035# Check whether --enable-sim-ppc-decode-mechanism was given.
17036if test "${enable_sim_ppc_decode_mechanism+set}" = set; then :
17037 enableval=$enable_sim_ppc_decode_mechanism; case "${enableval}" in
17038 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-ppc-decode-mechanism=file\"" "$LINENO" 5;;
17039 array|switch|padded-switch|goto-switch) sim_ppc_decode_mechanism="-T ${enableval}";;
17040 *) as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;;
17041esac
17042else
17043 sim_ppc_decode_mechanism=""
17044fi
17045
17046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_decode_mechanism" >&5
17047$as_echo "$sim_ppc_decode_mechanism" >&6; }
17048
17049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc default model" >&5
17050$as_echo_n "checking for sim ppc default model... " >&6; }
17051# Check whether --enable-sim-ppc-default-model was given.
17052if test "${enable_sim_ppc_default_model+set}" = set; then :
17053 enableval=$enable_sim_ppc_default_model; case "${enableval}" in
17054 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-ppc-default-model=model\"" "$LINENO" 5;;
17055 *) sim_ppc_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
17056esac
17057else
17058 sim_ppc_default_model=""
17059fi
17060
17061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_default_model" >&5
17062$as_echo "$sim_ppc_default_model" >&6; }
17063
17064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc duplicate settings" >&5
17065$as_echo_n "checking for sim ppc duplicate settings... " >&6; }
17066# Check whether --enable-sim-ppc-duplicate was given.
17067if test "${enable_sim_ppc_duplicate+set}" = set; then :
17068 enableval=$enable_sim_ppc_duplicate; case "${enableval}" in
17069 yes) sim_ppc_dup="-E";;
17070 no) sim_ppc_dup="";;
17071 *) as_fn_error $? "\"--enable-sim-ppc-duplicate does not take a value\"" "$LINENO" 5;;
17072esac
17073else
17074 sim_ppc_dup="-E"
17075fi
17076
17077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_dup" >&5
17078$as_echo "$sim_ppc_dup" >&6; }
17079
17080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc filter rules" >&5
17081$as_echo_n "checking for sim ppc filter rules... " >&6; }
17082# Check whether --enable-sim-ppc-filter was given.
17083if test "${enable_sim_ppc_filter+set}" = set; then :
17084 enableval=$enable_sim_ppc_filter; case "${enableval}" in
17085 yes) as_fn_error $? "\"--enable-sim-ppc-filter must be specified with a rule to filter or no\"" "$LINENO" 5;;
17086 no) sim_ppc_filter="";;
17087 *) sim_ppc_filter="-F $enableval";;
17088esac
17089else
17090 sim_ppc_filter="-F 32,f,o"
17091fi
17092
17093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_filter" >&5
17094$as_echo "$sim_ppc_filter" >&6; }
17095
17096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc float settings" >&5
17097$as_echo_n "checking for sim ppc float settings... " >&6; }
17098# Check whether --enable-sim-ppc-float was given.
17099if test "${enable_sim_ppc_float+set}" = set; then :
17100 enableval=$enable_sim_ppc_float; case "${enableval}" in
17101 yes | hard) sim_ppc_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
17102 no | soft) sim_ppc_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
17103 altivec) sim_ppc_float="-DWITH_ALTIVEC" ; sim_ppc_filter="${sim_ppc_filter},av" ;;
17104 *spe*|*simd*) sim_ppc_float="-DWITH_E500" ; sim_ppc_filter="${sim_ppc_filter},e500" ;;
17105 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-ppc-float\"" "$LINENO" 5;;
17106esac
17107else
17108 case "${target}" in
17109 *altivec*) sim_ppc_float="-DWITH_ALTIVEC" ; sim_ppc_filter="${sim_ppc_filter},av" ;;
17110 *spe*|*simd*) sim_ppc_float="-DWITH_E500" ; sim_ppc_filter="${sim_ppc_filter},e500" ;;
17111 *) sim_ppc_float=""
17112esac
17113fi
17114
17115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_float" >&5
17116$as_echo "$sim_ppc_float" >&6; }
17117
17118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc hardware settings" >&5
17119$as_echo_n "checking for sim ppc hardware settings... " >&6; }
17120hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide,sem,shm"
17121# Check whether --enable-sim-ppc-hardware was given.
17122if test "${enable_sim_ppc_hardware+set}" = set; then :
17123 enableval=$enable_sim_ppc_hardware; case "${enableval}" in
17124 yes) ;;
17125 no) as_fn_error $? "\"List of hardware must be specified for --enable-sim-ppc-hardware\"" "$LINENO" 5;;
17126 ,*) hardware="${hardware}${enableval}";;
17127 *,) hardware="${enableval}${hardware}";;
17128 *) hardware="${enableval}"'';;
17129esac
17130fi
17131
17132sim_ppc_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
17133sim_ppc_hw_obj=`echo $sim_ppc_hw_src | sed -e 's/\.c/.o/g'`
17134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardware" >&5
17135$as_echo "$hardware" >&6; }
17136
17137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc icache settings" >&5
17138$as_echo_n "checking for sim ppc icache settings... " >&6; }
17139# Check whether --enable-sim-ppc-icache was given.
17140if test "${enable_sim_ppc_icache+set}" = set; then :
17141 enableval=$enable_sim_ppc_icache; icache="-R"
17142 case "${enableval}" in
17143 yes) icache="1024"; sim_ppc_icache="-I $icache";;
17144 no) sim_ppc_icache="-R";;
17145 *) icache=1024
17146 sim_ppc_icache="-"
17147 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
17148 case "$x" in
17149 define) sim_ppc_icache="${sim_ppc_icache}R";;
17150 semantic) sim_ppc_icache="${sim_ppc_icache}C";;
17151 insn) sim_ppc_icache="${sim_ppc_icache}S";;
17152 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
17153 *) as_fn_error $? "\"Unknown value $x for --enable-sim-ppc-icache\"" "$LINENO" 5;;
17154 esac
17155 done
17156 sim_ppc_icache="${sim_ppc_icache}I $icache";;
17157esac
17158else
17159 sim_ppc_icache="-CSRI 1024"
17160fi
17161
17162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_icache" >&5
17163$as_echo "$sim_ppc_icache" >&6; }
17164
17165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc jump settings" >&5
17166$as_echo_n "checking for sim ppc jump settings... " >&6; }
17167# Check whether --enable-sim-ppc-jump was given.
17168if test "${enable_sim_ppc_jump+set}" = set; then :
17169 enableval=$enable_sim_ppc_jump; case "${enableval}" in
17170 yes) sim_ppc_jump="-J";;
17171 no) sim_ppc_jump="";;
17172 *) as_fn_error $? "\"--enable-sim-ppc-jump does not take a value\"" "$LINENO" 5;;
17173esac
17174else
17175 sim_ppc_jump=""
17176fi
17177
17178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_jump" >&5
17179$as_echo "$sim_ppc_jump" >&6; }
17180
17181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc source debug line numbers" >&5
17182$as_echo_n "checking for sim ppc source debug line numbers... " >&6; }
17183# Check whether --enable-sim-ppc-line-nr was given.
17184if test "${enable_sim_ppc_line_nr+set}" = set; then :
17185 enableval=$enable_sim_ppc_line_nr; case "${enableval}" in
17186 yes) sim_ppc_line_nr="";;
17187 no) sim_ppc_line_nr="-L";;
17188 *) as_fn_error $? "\"--enable-sim-ppc-line-nr does not take a value\"" "$LINENO" 5;;
17189esac
17190else
17191 sim_ppc_line_nr=""
17192fi
17193
17194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_line_nr" >&5
17195$as_echo "$sim_ppc_line_nr" >&6; }
17196
17197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc model" >&5
17198$as_echo_n "checking for sim ppc model... " >&6; }
17199# Check whether --enable-sim-ppc-model was given.
17200if test "${enable_sim_ppc_model+set}" = set; then :
17201 enableval=$enable_sim_ppc_model; case "${enableval}" in
17202 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-ppc-model=model\"" "$LINENO" 5;;
17203 *) sim_ppc_model="-DWITH_MODEL=${enableval}";;
17204esac
17205else
17206 sim_ppc_model=""
17207fi
17208
17209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_model" >&5
17210$as_echo "$sim_ppc_model" >&6; }
17211
17212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc model issue" >&5
17213$as_echo_n "checking for sim ppc model issue... " >&6; }
17214# Check whether --enable-sim-ppc-model-issue was given.
17215if test "${enable_sim_ppc_model_issue+set}" = set; then :
17216 enableval=$enable_sim_ppc_model_issue; case "${enableval}" in
17217 yes) sim_ppc_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
17218 no) sim_ppc_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
17219 *) as_fn_error $? "\"--enable-sim-ppc-model-issue does not take a value\"" "$LINENO" 5;;
17220esac
17221else
17222 sim_ppc_model_issue=""
17223fi
17224
17225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_model_issue" >&5
17226$as_echo "$sim_ppc_model_issue" >&6; }
17227
17228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc event monitoring" >&5
17229$as_echo_n "checking for sim ppc event monitoring... " >&6; }
17230# Check whether --enable-sim-ppc-monitor was given.
17231if test "${enable_sim_ppc_monitor+set}" = set; then :
17232 enableval=$enable_sim_ppc_monitor; case "${enableval}" in
17233 yes) sim_ppc_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
17234 no) sim_ppc_monitor="-DWITH_MON=0";;
17235 instruction) sim_ppc_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
17236 memory) sim_ppc_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
17237 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-ppc-mon\"" "$LINENO" 5;;
17238esac
17239else
17240 sim_ppc_monitor=""
17241fi
17242
17243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_monitor" >&5
17244$as_echo "$sim_ppc_monitor" >&6; }
17245
17246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc opcode lookup settings" >&5
17247$as_echo_n "checking for sim ppc opcode lookup settings... " >&6; }
17248# Check whether --enable-sim-ppc-opcode was given.
17249if test "${enable_sim_ppc_opcode+set}" = set; then :
17250 enableval=$enable_sim_ppc_opcode; case "${enableval}" in
17251 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-ppc-opcode=file\"" "$LINENO" 5;;
17252 *) if test -f "${srcdir}/${enableval}"; then
17253 sim_ppc_opcode="${enableval}"
17254 elif test -f "${srcdir}/dc-${enableval}"; then
17255 sim_ppc_opcode="dc-${enableval}"
17256 else
17257 as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5
17258 fi;;
17259esac
17260else
17261 sim_ppc_opcode="dc-complex"
17262fi
17263
17264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_opcode" >&5
17265$as_echo "$sim_ppc_opcode" >&6; }
17266
17267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc smp settings" >&5
17268$as_echo_n "checking for sim ppc smp settings... " >&6; }
17269# Check whether --enable-sim-ppc-smp was given.
17270if test "${enable_sim_ppc_smp+set}" = set; then :
17271 enableval=$enable_sim_ppc_smp; case "${enableval}" in
17272 yes) sim_ppc_smp="-DWITH_SMP=5" ; sim_ppc_igen_smp="-N 5";;
17273 no) sim_ppc_smp="-DWITH_SMP=0" ; sim_ppc_igen_smp="-N 0";;
17274 *) sim_ppc_smp="-DWITH_SMP=$enableval" ; sim_ppc_igen_smp="-N $enableval";;
17275esac
17276else
17277 sim_ppc_smp="-DWITH_SMP=5" ; sim_ppc_igen_smp="-N 5"
17278fi
17279
17280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_smp" >&5
17281$as_echo "$sim_ppc_smp" >&6; }
17282
17283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc switch table settings" >&5
17284$as_echo_n "checking for sim ppc switch table settings... " >&6; }
17285# Check whether --enable-sim-ppc-switch was given.
17286if test "${enable_sim_ppc_switch+set}" = set; then :
17287 enableval=$enable_sim_ppc_switch; case "${enableval}" in
17288 yes) sim_ppc_switch="-DWITH_SPREG_SWITCH_TABLE";;
17289 no) sim_ppc_switch="";;
17290 *) as_fn_error $? "\"--enable-sim-ppc-switch does not take a value\"" "$LINENO" 5;;
17291esac
17292else
17293 sim_ppc_switch=""
17294fi
17295
17296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_switch" >&5
17297$as_echo "$sim_ppc_switch" >&6; }
17298
17299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc timebase" >&5
17300$as_echo_n "checking for sim ppc timebase... " >&6; }
17301# Check whether --enable-sim-ppc-timebase was given.
17302if test "${enable_sim_ppc_timebase+set}" = set; then :
17303 enableval=$enable_sim_ppc_timebase; case "${enableval}" in
17304 yes) sim_ppc_timebase="-DWITH_TIME_BASE=1";;
17305 no) sim_ppc_timebase="-DWITH_TIME_BASE=0";;
17306 *) as_fn_error $? "\"--enable-sim-ppc-timebase does not take a value\"" "$LINENO" 5;;
17307esac
17308else
17309 sim_ppc_timebase=""
17310fi
17311
17312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_timebase" >&5
17313$as_echo "$sim_ppc_timebase" >&6; }
17314
17315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc xor endian settings" >&5
17316$as_echo_n "checking for sim ppc xor endian settings... " >&6; }
17317# Check whether --enable-sim-ppc-xor-endian was given.
17318if test "${enable_sim_ppc_xor_endian+set}" = set; then :
17319 enableval=$enable_sim_ppc_xor_endian; case "${enableval}" in
17320 yes) sim_ppc_xor_endian="-DWITH_XOR_ENDIAN=8";;
17321 no) sim_ppc_xor_endian="-DWITH_XOR_ENDIAN=0";;
17322 *) sim_ppc_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
17323esac
17324else
17325 sim_ppc_xor_endian=""
17326fi
17327
17328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_xor_endian" >&5
17329$as_echo "$sim_ppc_xor_endian" >&6; }
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
f12c3c63 17350
abc494c6 17351
1787fcc4
MF
17352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5
17353$as_echo_n "checking riscv bitsize... " >&6; }
17354SIM_RISCV_BITSIZE=64
17355case $target in #(
17356 riscv32*) :
17357 SIM_RISCV_BITSIZE=32 ;; #(
17358 *) :
17359 ;;
17360esac
4faede61
MF
17361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_RISCV_BITSIZE" >&5
17362$as_echo "$SIM_RISCV_BITSIZE" >&6; }
1787fcc4
MF
17363
17364
e173c80f
MF
17365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
17366$as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
17367# Check whether --enable-sim-rx-cycle-accurate was given.
17368if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
17369 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
17370yes | no) ;;
17371*) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
17372esac
17373fi
17374
17375if test "x${enable_sim_rx_cycle_accurate}" != xno; then
17376 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17378$as_echo "yes" >&6; }
17379else
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17381$as_echo "no" >&6; }
17382fi
17383
17384
17385
c67a81c9 17386ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
81ecdfbb 17387
b7026657 17388cat >confcache <<\_ACEOF
c906108c
SS
17389# This file is a shell script that caches the results of configure
17390# tests run on this system so they can be shared between configure
b7026657
AC
17391# scripts and configure runs, see configure's option --config-cache.
17392# It is not useful on other systems. If it contains results you don't
17393# want to keep, you may remove or edit it.
c906108c 17394#
b7026657
AC
17395# config.status only pays attention to the cache file if you give it
17396# the --recheck option to rerun configure.
c906108c 17397#
b7026657
AC
17398# `ac_cv_env_foo' variables (set or unset) will be overridden when
17399# loading this file, other *unset* `ac_cv_foo' will be assigned the
17400# following values.
17401
17402_ACEOF
17403
c906108c
SS
17404# The following way of writing the cache mishandles newlines in values,
17405# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 17406# So, we kill variables containing newlines.
c906108c
SS
17407# Ultrix sh set writes to stderr and can't be redirected directly,
17408# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
17409(
17410 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17411 eval ac_val=\$$ac_var
17412 case $ac_val in #(
17413 *${as_nl}*)
17414 case $ac_var in #(
17415 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17416$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17417 esac
17418 case $ac_var in #(
17419 _ | IFS | as_nl) ;; #(
17420 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17421 *) { eval $ac_var=; unset $ac_var;} ;;
17422 esac ;;
17423 esac
17424 done
17425
b7026657 17426 (set) 2>&1 |
81ecdfbb
RW
17427 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17428 *${as_nl}ac_space=\ *)
17429 # `set' does not quote correctly, so add quotes: double-quote
17430 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
17431 sed -n \
17432 "s/'/'\\\\''/g;
17433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 17434 ;; #(
b7026657
AC
17435 *)
17436 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 17437 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 17438 ;;
81ecdfbb
RW
17439 esac |
17440 sort
17441) |
b7026657 17442 sed '
81ecdfbb 17443 /^ac_cv_env_/b end
b7026657 17444 t clear
81ecdfbb 17445 :clear
b7026657
AC
17446 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17447 t end
81ecdfbb
RW
17448 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17449 :end' >>confcache
17450if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17451 if test -w "$cache_file"; then
d0ac1c44 17452 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17454$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
17455 if test ! -f "$cache_file" || test -h "$cache_file"; then
17456 cat confcache >"$cache_file"
17457 else
17458 case $cache_file in #(
17459 */* | ?:*)
17460 mv -f confcache "$cache_file"$$ &&
17461 mv -f "$cache_file"$$ "$cache_file" ;; #(
17462 *)
17463 mv -f confcache "$cache_file" ;;
17464 esac
17465 fi
17466 fi
c906108c 17467 else
81ecdfbb
RW
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17469$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
17470 fi
17471fi
17472rm -f confcache
17473
c906108c
SS
17474test "x$prefix" = xNONE && prefix=$ac_default_prefix
17475# Let make expand exec_prefix.
17476test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17477
b15c5d7a 17478DEFS=-DHAVE_CONFIG_H
b7026657
AC
17479
17480ac_libobjs=
17481ac_ltlibobjs=
d0ac1c44 17482U=
b7026657
AC
17483for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17484 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
17485 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17486 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17487 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17488 # will be set to the directory where LIBOBJS objects are built.
17489 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17490 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
17491done
17492LIBOBJS=$ac_libobjs
c906108c 17493
b7026657
AC
17494LTLIBOBJS=$ac_ltlibobjs
17495
17496
c2783492 17497
8c379db2
TT
17498if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17499 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17500Usually this means the macro was only invoked conditionally." "$LINENO" 5
17501fi
6bddc3e8
MF
17502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17503$as_echo_n "checking that generated files are newer than configure... " >&6; }
17504 if test -n "$am_sleep_pid"; then
17505 # Hide warnings about reused PIDs.
17506 wait $am_sleep_pid 2>/dev/null
17507 fi
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17509$as_echo "done" >&6; }
6bddc3e8
MF
17510if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17511 as_fn_error $? "conditional \"AMDEP\" was never defined.
17512Usually this means the macro was only invoked conditionally." "$LINENO" 5
17513fi
17514if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17515 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17516Usually this means the macro was only invoked conditionally." "$LINENO" 5
17517fi
c2783492
MF
17518 if test -n "$EXEEXT"; then
17519 am__EXEEXT_TRUE=
17520 am__EXEEXT_FALSE='#'
17521else
17522 am__EXEEXT_TRUE='#'
17523 am__EXEEXT_FALSE=
6bddc3e8 17524fi
b7026657 17525
65dcce8f
MF
17526if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
17527 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
17528Usually this means the macro was only invoked conditionally." "$LINENO" 5
17529fi
65dcce8f
MF
17530if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
17531 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
17532Usually this means the macro was only invoked conditionally." "$LINENO" 5
17533fi
17534if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
17535 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
17536Usually this means the macro was only invoked conditionally." "$LINENO" 5
17537fi
17538if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
17539 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
17540Usually this means the macro was only invoked conditionally." "$LINENO" 5
17541fi
17542if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
17543 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
17544Usually this means the macro was only invoked conditionally." "$LINENO" 5
17545fi
17546if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
17547 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
17548Usually this means the macro was only invoked conditionally." "$LINENO" 5
17549fi
17550if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
17551 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
17552Usually this means the macro was only invoked conditionally." "$LINENO" 5
17553fi
17554if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
17555 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
17556Usually this means the macro was only invoked conditionally." "$LINENO" 5
17557fi
17558if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
17559 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
17560Usually this means the macro was only invoked conditionally." "$LINENO" 5
17561fi
17562if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
17563 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
17564Usually this means the macro was only invoked conditionally." "$LINENO" 5
17565fi
17566if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
17567 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
17568Usually this means the macro was only invoked conditionally." "$LINENO" 5
17569fi
17570if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
17571 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
17572Usually this means the macro was only invoked conditionally." "$LINENO" 5
17573fi
17574if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
17575 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
17576Usually this means the macro was only invoked conditionally." "$LINENO" 5
17577fi
17578if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
17579 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
17580Usually this means the macro was only invoked conditionally." "$LINENO" 5
17581fi
17582if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
17583 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
17584Usually this means the macro was only invoked conditionally." "$LINENO" 5
17585fi
17586if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
17587 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
17588Usually this means the macro was only invoked conditionally." "$LINENO" 5
17589fi
17590if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
17591 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
17592Usually this means the macro was only invoked conditionally." "$LINENO" 5
17593fi
17594if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
17595 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
17596Usually this means the macro was only invoked conditionally." "$LINENO" 5
17597fi
17598if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
17599 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
17600Usually this means the macro was only invoked conditionally." "$LINENO" 5
17601fi
17602if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
17603 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
17604Usually this means the macro was only invoked conditionally." "$LINENO" 5
17605fi
17606if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
17607 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
17608Usually this means the macro was only invoked conditionally." "$LINENO" 5
17609fi
17610if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
17611 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
17612Usually this means the macro was only invoked conditionally." "$LINENO" 5
17613fi
17614if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
17615 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
17616Usually this means the macro was only invoked conditionally." "$LINENO" 5
17617fi
17618if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
17619 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
17620Usually this means the macro was only invoked conditionally." "$LINENO" 5
17621fi
17622if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
17623 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
17624Usually this means the macro was only invoked conditionally." "$LINENO" 5
17625fi
17626if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
17627 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
17628Usually this means the macro was only invoked conditionally." "$LINENO" 5
17629fi
17630if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
17631 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
17632Usually this means the macro was only invoked conditionally." "$LINENO" 5
17633fi
17634if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
17635 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
17636Usually this means the macro was only invoked conditionally." "$LINENO" 5
17637fi
17638if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
17639 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
17640Usually this means the macro was only invoked conditionally." "$LINENO" 5
17641fi
17642if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
17643 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
17644Usually this means the macro was only invoked conditionally." "$LINENO" 5
17645fi
c0c25232
MF
17646if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then
17647 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_examples\" was never defined.
17648Usually this means the macro was only invoked conditionally." "$LINENO" 5
17649fi
fb2c495f
MF
17650if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
17651 as_fn_error $? "conditional \"ENABLE_SIM\" was never defined.
17652Usually this means the macro was only invoked conditionally." "$LINENO" 5
17653fi
456ef1c1
MF
17654if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
17655 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
17656Usually this means the macro was only invoked conditionally." "$LINENO" 5
17657fi
3a31051b
MF
17658if test -z "${SIM_MIPS_GEN_MODE_SINGLE_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_SINGLE_FALSE}"; then
17659 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_SINGLE\" was never defined.
17660Usually this means the macro was only invoked conditionally." "$LINENO" 5
17661fi
f6d58d40
MF
17662if test -z "${SIM_MIPS_GEN_MODE_M16_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_M16_FALSE}"; then
17663 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_M16\" was never defined.
17664Usually this means the macro was only invoked conditionally." "$LINENO" 5
17665fi
f12c3c63
MF
17666if test -z "${SIM_MIPS_GEN_MODE_MULTI_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_MULTI_FALSE}"; then
17667 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_MULTI\" was never defined.
17668Usually this means the macro was only invoked conditionally." "$LINENO" 5
17669fi
c2783492 17670
d0ac1c44 17671: "${CONFIG_STATUS=./config.status}"
81ecdfbb 17672ac_write_fail=0
b7026657
AC
17673ac_clean_files_save=$ac_clean_files
17674ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
17675{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17676$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17677as_write_fail=0
17678cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
17679#! $SHELL
17680# Generated by $as_me.
c906108c 17681# Run this file to recreate the current configuration.
c906108c 17682# Compiler output produced by configure, useful for debugging
b7026657
AC
17683# configure, is in config.log if it exists.
17684
17685debug=false
17686ac_cs_recheck=false
17687ac_cs_silent=false
b7026657 17688
81ecdfbb
RW
17689SHELL=\${CONFIG_SHELL-$SHELL}
17690export SHELL
17691_ASEOF
17692cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17693## -------------------- ##
17694## M4sh Initialization. ##
17695## -------------------- ##
17696
17697# Be more Bourne compatible
17698DUALCASE=1; export DUALCASE # for MKS sh
17699if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
17700 emulate sh
17701 NULLCMD=:
81ecdfbb 17702 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
17703 # is contrary to our usage. Disable this feature.
17704 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
17705 setopt NO_GLOB_SUBST
17706else
17707 case `(set -o) 2>/dev/null` in #(
17708 *posix*) :
17709 set -o posix ;; #(
17710 *) :
17711 ;;
17712esac
b7026657 17713fi
c906108c 17714
81ecdfbb
RW
17715
17716as_nl='
17717'
17718export as_nl
17719# Printing a long string crashes Solaris 7 /usr/bin/printf.
17720as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17721as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17722as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17723# Prefer a ksh shell builtin over an external printf program on Solaris,
17724# but without wasting forks for bash or zsh.
17725if test -z "$BASH_VERSION$ZSH_VERSION" \
17726 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17727 as_echo='print -r --'
17728 as_echo_n='print -rn --'
17729elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17730 as_echo='printf %s\n'
17731 as_echo_n='printf %s'
b7026657 17732else
81ecdfbb
RW
17733 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17734 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17735 as_echo_n='/usr/ucb/echo -n'
17736 else
17737 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17738 as_echo_n_body='eval
17739 arg=$1;
17740 case $arg in #(
17741 *"$as_nl"*)
17742 expr "X$arg" : "X\\(.*\\)$as_nl";
17743 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17744 esac;
17745 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17746 '
17747 export as_echo_n_body
17748 as_echo_n='sh -c $as_echo_n_body as_echo'
17749 fi
17750 export as_echo_body
17751 as_echo='sh -c $as_echo_body as_echo'
17752fi
17753
17754# The user is always right.
17755if test "${PATH_SEPARATOR+set}" != set; then
17756 PATH_SEPARATOR=:
17757 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17758 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17759 PATH_SEPARATOR=';'
17760 }
b7026657
AC
17761fi
17762
17763
81ecdfbb
RW
17764# IFS
17765# We need space, tab and new line, in precisely that order. Quoting is
17766# there to prevent editors from complaining about space-tab.
17767# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17768# splitting by setting IFS to empty value.)
17769IFS=" "" $as_nl"
17770
17771# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 17772as_myself=
81ecdfbb
RW
17773case $0 in #((
17774 *[\\/]* ) as_myself=$0 ;;
17775 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17776for as_dir in $PATH
17777do
17778 IFS=$as_save_IFS
17779 test -z "$as_dir" && as_dir=.
17780 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17781 done
17782IFS=$as_save_IFS
17783
17784 ;;
17785esac
17786# We did not find ourselves, most probably we were run as `sh COMMAND'
17787# in which case we are not to be found in the path.
17788if test "x$as_myself" = x; then
17789 as_myself=$0
17790fi
17791if test ! -f "$as_myself"; then
17792 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17793 exit 1
17794fi
17795
17796# Unset variables that we do not need and which cause bugs (e.g. in
17797# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17798# suppresses any "Segmentation fault" message there. '((' could
17799# trigger a bug in pdksh 5.2.14.
17800for as_var in BASH_ENV ENV MAIL MAILPATH
17801do eval test x\${$as_var+set} = xset \
17802 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17803done
b7026657
AC
17804PS1='$ '
17805PS2='> '
17806PS4='+ '
17807
17808# NLS nuisances.
81ecdfbb
RW
17809LC_ALL=C
17810export LC_ALL
17811LANGUAGE=C
17812export LANGUAGE
17813
17814# CDPATH.
17815(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17816
17817
d0ac1c44
SM
17818# as_fn_error STATUS ERROR [LINENO LOG_FD]
17819# ----------------------------------------
81ecdfbb
RW
17820# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17821# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 17822# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
17823as_fn_error ()
17824{
d0ac1c44
SM
17825 as_status=$1; test $as_status -eq 0 && as_status=1
17826 if test "$4"; then
17827 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17828 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 17829 fi
d0ac1c44 17830 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
17831 as_fn_exit $as_status
17832} # as_fn_error
c906108c 17833
81ecdfbb
RW
17834
17835# as_fn_set_status STATUS
17836# -----------------------
17837# Set $? to STATUS, without forking.
17838as_fn_set_status ()
17839{
17840 return $1
17841} # as_fn_set_status
17842
17843# as_fn_exit STATUS
17844# -----------------
17845# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17846as_fn_exit ()
17847{
17848 set +e
17849 as_fn_set_status $1
17850 exit $1
17851} # as_fn_exit
17852
17853# as_fn_unset VAR
17854# ---------------
17855# Portably unset VAR.
17856as_fn_unset ()
17857{
17858 { eval $1=; unset $1;}
17859}
17860as_unset=as_fn_unset
17861# as_fn_append VAR VALUE
17862# ----------------------
17863# Append the text in VALUE to the end of the definition contained in VAR. Take
17864# advantage of any shell optimizations that allow amortized linear growth over
17865# repeated appends, instead of the typical quadratic growth present in naive
17866# implementations.
17867if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17868 eval 'as_fn_append ()
17869 {
17870 eval $1+=\$2
17871 }'
17872else
17873 as_fn_append ()
17874 {
17875 eval $1=\$$1\$2
17876 }
17877fi # as_fn_append
17878
17879# as_fn_arith ARG...
17880# ------------------
17881# Perform arithmetic evaluation on the ARGs, and store the result in the
17882# global $as_val. Take advantage of shells that can avoid forks. The arguments
17883# must be portable across $(()) and expr.
17884if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17885 eval 'as_fn_arith ()
17886 {
17887 as_val=$(( $* ))
17888 }'
17889else
17890 as_fn_arith ()
17891 {
17892 as_val=`expr "$@" || test $? -eq 1`
17893 }
17894fi # as_fn_arith
17895
17896
17897if expr a : '\(a\)' >/dev/null 2>&1 &&
17898 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
17899 as_expr=expr
17900else
17901 as_expr=false
17902fi
c906108c 17903
81ecdfbb 17904if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
17905 as_basename=basename
17906else
17907 as_basename=false
17908fi
c906108c 17909
81ecdfbb
RW
17910if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17911 as_dirname=dirname
17912else
17913 as_dirname=false
17914fi
c906108c 17915
81ecdfbb 17916as_me=`$as_basename -- "$0" ||
b7026657
AC
17917$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17918 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
17919 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17920$as_echo X/"$0" |
17921 sed '/^.*\/\([^/][^/]*\)\/*$/{
17922 s//\1/
17923 q
17924 }
17925 /^X\/\(\/\/\)$/{
17926 s//\1/
17927 q
17928 }
17929 /^X\/\(\/\).*/{
17930 s//\1/
17931 q
17932 }
17933 s/.*/./; q'`
b7026657 17934
fdd6fa61
AG
17935# Avoid depending upon Character Ranges.
17936as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17937as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17938as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17939as_cr_digits='0123456789'
17940as_cr_alnum=$as_cr_Letters$as_cr_digits
17941
81ecdfbb
RW
17942ECHO_C= ECHO_N= ECHO_T=
17943case `echo -n x` in #(((((
17944-n*)
17945 case `echo 'xy\c'` in
17946 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17947 xy) ECHO_C='\c';;
17948 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17949 ECHO_T=' ';;
17950 esac;;
17951*)
17952 ECHO_N='-n';;
b7026657
AC
17953esac
17954
81ecdfbb
RW
17955rm -f conf$$ conf$$.exe conf$$.file
17956if test -d conf$$.dir; then
17957 rm -f conf$$.dir/conf$$.file
b7026657 17958else
81ecdfbb
RW
17959 rm -f conf$$.dir
17960 mkdir conf$$.dir 2>/dev/null
b7026657 17961fi
81ecdfbb
RW
17962if (echo >conf$$.file) 2>/dev/null; then
17963 if ln -s conf$$.file conf$$ 2>/dev/null; then
fdd6fa61 17964 as_ln_s='ln -s'
81ecdfbb
RW
17965 # ... but there are two gotchas:
17966 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17967 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 17968 # In both cases, we have to default to `cp -pR'.
81ecdfbb 17969 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 17970 as_ln_s='cp -pR'
81ecdfbb
RW
17971 elif ln conf$$.file conf$$ 2>/dev/null; then
17972 as_ln_s=ln
17973 else
d0ac1c44 17974 as_ln_s='cp -pR'
fdd6fa61 17975 fi
b7026657 17976else
d0ac1c44 17977 as_ln_s='cp -pR'
b7026657 17978fi
81ecdfbb
RW
17979rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17980rmdir conf$$.dir 2>/dev/null
17981
17982
17983# as_fn_mkdir_p
17984# -------------
17985# Create "$as_dir" as a directory, including parents if necessary.
17986as_fn_mkdir_p ()
17987{
b7026657 17988
81ecdfbb
RW
17989 case $as_dir in #(
17990 -*) as_dir=./$as_dir;;
17991 esac
17992 test -d "$as_dir" || eval $as_mkdir_p || {
17993 as_dirs=
17994 while :; do
17995 case $as_dir in #(
17996 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17997 *) as_qdir=$as_dir;;
17998 esac
17999 as_dirs="'$as_qdir' $as_dirs"
18000 as_dir=`$as_dirname -- "$as_dir" ||
18001$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18002 X"$as_dir" : 'X\(//\)[^/]' \| \
18003 X"$as_dir" : 'X\(//\)$' \| \
18004 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18005$as_echo X"$as_dir" |
18006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18007 s//\1/
18008 q
18009 }
18010 /^X\(\/\/\)[^/].*/{
18011 s//\1/
18012 q
18013 }
18014 /^X\(\/\/\)$/{
18015 s//\1/
18016 q
18017 }
18018 /^X\(\/\).*/{
18019 s//\1/
18020 q
18021 }
18022 s/.*/./; q'`
18023 test -d "$as_dir" && break
18024 done
18025 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 18026 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
18027
18028
18029} # as_fn_mkdir_p
b7026657 18030if mkdir -p . 2>/dev/null; then
81ecdfbb 18031 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
18032else
18033 test -d ./-p && rmdir ./-p
18034 as_mkdir_p=false
18035fi
18036
d0ac1c44
SM
18037
18038# as_fn_executable_p FILE
18039# -----------------------
18040# Test if FILE is an executable regular file.
18041as_fn_executable_p ()
18042{
18043 test -f "$1" && test -x "$1"
18044} # as_fn_executable_p
18045as_test_x='test -x'
18046as_executable_p=as_fn_executable_p
b7026657
AC
18047
18048# Sed expression to map a string onto a valid CPP name.
18049as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18050
18051# Sed expression to map a string onto a valid variable name.
18052as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18053
18054
b7026657 18055exec 6>&1
81ecdfbb
RW
18056## ----------------------------------- ##
18057## Main body of $CONFIG_STATUS script. ##
18058## ----------------------------------- ##
18059_ASEOF
18060test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18061
18062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18063# Save the log message, to keep $0 and so on meaningful, and to
b7026657 18064# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
18065# values after options handling.
18066ac_log="
6bddc3e8 18067This file was extended by sim $as_me 0, which was
d0ac1c44 18068generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
18069
18070 CONFIG_FILES = $CONFIG_FILES
18071 CONFIG_HEADERS = $CONFIG_HEADERS
18072 CONFIG_LINKS = $CONFIG_LINKS
18073 CONFIG_COMMANDS = $CONFIG_COMMANDS
18074 $ $0 $@
18075
81ecdfbb
RW
18076on `(hostname || uname -n) 2>/dev/null | sed 1q`
18077"
18078
b7026657
AC
18079_ACEOF
18080
81ecdfbb
RW
18081case $ac_config_files in *"
18082"*) set x $ac_config_files; shift; ac_config_files=$*;;
18083esac
b7026657 18084
b15c5d7a
MF
18085case $ac_config_headers in *"
18086"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18087esac
fdd6fa61 18088
fdd6fa61 18089
81ecdfbb
RW
18090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18091# Files that config.status was made for.
18092config_files="$ac_config_files"
b15c5d7a 18093config_headers="$ac_config_headers"
6bddc3e8 18094config_commands="$ac_config_commands"
b7026657 18095
81ecdfbb 18096_ACEOF
fdd6fa61 18097
81ecdfbb 18098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 18099ac_cs_usage="\
81ecdfbb
RW
18100\`$as_me' instantiates files and other configuration actions
18101from templates according to the current configuration. Unless the files
18102and actions are specified as TAGs, all are instantiated by default.
b7026657 18103
81ecdfbb 18104Usage: $0 [OPTION]... [TAG]...
b7026657
AC
18105
18106 -h, --help print this help, then exit
81ecdfbb 18107 -V, --version print version number and configuration settings, then exit
d0ac1c44 18108 --config print configuration, then exit
81ecdfbb
RW
18109 -q, --quiet, --silent
18110 do not print progress messages
b7026657
AC
18111 -d, --debug don't remove temporary files
18112 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
18113 --file=FILE[:TEMPLATE]
18114 instantiate the configuration file FILE
b15c5d7a
MF
18115 --header=FILE[:TEMPLATE]
18116 instantiate the configuration header FILE
b7026657
AC
18117
18118Configuration files:
18119$config_files
18120
b15c5d7a
MF
18121Configuration headers:
18122$config_headers
18123
6bddc3e8
MF
18124Configuration commands:
18125$config_commands
18126
18127Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
18128sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
fdd6fa61 18129
81ecdfbb
RW
18130_ACEOF
18131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 18132ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657 18133ac_cs_version="\\
6bddc3e8 18134sim config.status 0
d0ac1c44
SM
18135configured by $0, generated by GNU Autoconf 2.69,
18136 with options \\"\$ac_cs_config\\"
b7026657 18137
d0ac1c44 18138Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
18139This config.status script is free software; the Free Software Foundation
18140gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
18141
18142ac_pwd='$ac_pwd'
18143srcdir='$srcdir'
18144INSTALL='$INSTALL'
6bddc3e8
MF
18145MKDIR_P='$MKDIR_P'
18146AWK='$AWK'
81ecdfbb 18147test -n "\$AWK" || AWK=awk
b7026657
AC
18148_ACEOF
18149
81ecdfbb
RW
18150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18151# The default lists apply if the user does not specify any file.
b7026657
AC
18152ac_need_defaults=:
18153while test $# != 0
18154do
18155 case $1 in
d0ac1c44 18156 --*=?*)
81ecdfbb
RW
18157 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18158 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
18159 ac_shift=:
18160 ;;
d0ac1c44
SM
18161 --*=)
18162 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18163 ac_optarg=
18164 ac_shift=:
18165 ;;
81ecdfbb 18166 *)
b7026657
AC
18167 ac_option=$1
18168 ac_optarg=$2
18169 ac_shift=shift
18170 ;;
b7026657
AC
18171 esac
18172
18173 case $ac_option in
18174 # Handling of the options.
b7026657
AC
18175 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18176 ac_cs_recheck=: ;;
81ecdfbb
RW
18177 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18178 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
18179 --config | --confi | --conf | --con | --co | --c )
18180 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 18181 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
18182 debug=: ;;
18183 --file | --fil | --fi | --f )
18184 $ac_shift
81ecdfbb
RW
18185 case $ac_optarg in
18186 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 18187 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
18188 esac
18189 as_fn_append CONFIG_FILES " '$ac_optarg'"
fdd6fa61 18190 ac_need_defaults=false;;
b15c5d7a
MF
18191 --header | --heade | --head | --hea )
18192 $ac_shift
18193 case $ac_optarg in
18194 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18195 esac
18196 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18197 ac_need_defaults=false;;
18198 --he | --h)
18199 # Conflict between --help and --header
18200 as_fn_error $? "ambiguous option: \`$1'
18201Try \`$0 --help' for more information.";;
18202 --help | --hel | -h )
81ecdfbb 18203 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
18204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18205 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18206 ac_cs_silent=: ;;
18207
18208 # This is an error.
d0ac1c44 18209 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 18210Try \`$0 --help' for more information." ;;
b7026657 18211
81ecdfbb
RW
18212 *) as_fn_append ac_config_targets " $1"
18213 ac_need_defaults=false ;;
b7026657
AC
18214
18215 esac
18216 shift
c906108c 18217done
b7026657
AC
18218
18219ac_configure_extra_args=
18220
18221if $ac_cs_silent; then
18222 exec 6>/dev/null
18223 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c 18224fi
c906108c 18225
b7026657 18226_ACEOF
81ecdfbb 18227cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 18228if \$ac_cs_recheck; then
d0ac1c44 18229 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
18230 shift
18231 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18232 CONFIG_SHELL='$SHELL'
18233 export CONFIG_SHELL
18234 exec "\$@"
b7026657 18235fi
c906108c 18236
b7026657 18237_ACEOF
81ecdfbb
RW
18238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18239exec 5>>config.log
18240{
18241 echo
18242 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18243## Running $as_me. ##
18244_ASBOX
18245 $as_echo "$ac_log"
18246} >&5
b7026657 18247
81ecdfbb
RW
18248_ACEOF
18249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bddc3e8
MF
18250#
18251# INIT-COMMANDS
18252#
b5689863
MF
18253
18254
18255# The HP-UX ksh and POSIX shell print the target directory to stdout
18256# if CDPATH is set.
18257(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18258
18259sed_quote_subst='$sed_quote_subst'
18260double_quote_subst='$double_quote_subst'
18261delay_variable_subst='$delay_variable_subst'
18262macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18263macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18264enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18265enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18266pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18267enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18268SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18269ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18270host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18271host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18272host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18273build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18274build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18275build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18276SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18277Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18278GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18279EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18280FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18281LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18282NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18283LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18284max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18285ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18286exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18287lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18288lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18289lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18290reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18291reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18292OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18293deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18294file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18295AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18296AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18297STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18298RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18299old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18300old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18301old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18302lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18303CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18304CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18305compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18306GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18307lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18308lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18309lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18310lt_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"`'
18311objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18312MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18313lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18314lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18315lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18316lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18317lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18318need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18319DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18320NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18321LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18322OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18323OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18324libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18325shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18326extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18327archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18328enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18329export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18330whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18331compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18332old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18333old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18334archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18335archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18336module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18337module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18338with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18339allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18340no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18341hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18342hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18343hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18344hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18345hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18346hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18347hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18348hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18349inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18350link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18351fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18352always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18353export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18354exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18355include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18356prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18357file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18358variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18359need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18360need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18361version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18362runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18363shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18364shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18365libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18366library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18367soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18368install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18369postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18370postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18371finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18372finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18373hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18374sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18375sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18376hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18377enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18378enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18379enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18380old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18381striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18382
18383LTCC='$LTCC'
18384LTCFLAGS='$LTCFLAGS'
18385compiler='$compiler_DEFAULT'
18386
18387# A function that is used when there is no print builtin or printf.
18388func_fallback_echo ()
18389{
18390 eval 'cat <<_LTECHO_EOF
18391\$1
18392_LTECHO_EOF'
18393}
18394
18395# Quote evaled strings.
18396for var in SHELL \
18397ECHO \
18398SED \
18399GREP \
18400EGREP \
18401FGREP \
18402LD \
18403NM \
18404LN_S \
18405lt_SP2NL \
18406lt_NL2SP \
18407reload_flag \
18408OBJDUMP \
18409deplibs_check_method \
18410file_magic_cmd \
18411AR \
18412AR_FLAGS \
18413STRIP \
18414RANLIB \
18415CC \
18416CFLAGS \
18417compiler \
18418lt_cv_sys_global_symbol_pipe \
18419lt_cv_sys_global_symbol_to_cdecl \
18420lt_cv_sys_global_symbol_to_c_name_address \
18421lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18422lt_prog_compiler_no_builtin_flag \
18423lt_prog_compiler_wl \
18424lt_prog_compiler_pic \
18425lt_prog_compiler_static \
18426lt_cv_prog_compiler_c_o \
18427need_locks \
18428DSYMUTIL \
18429NMEDIT \
18430LIPO \
18431OTOOL \
18432OTOOL64 \
18433shrext_cmds \
18434export_dynamic_flag_spec \
18435whole_archive_flag_spec \
18436compiler_needs_object \
18437with_gnu_ld \
18438allow_undefined_flag \
18439no_undefined_flag \
18440hardcode_libdir_flag_spec \
18441hardcode_libdir_flag_spec_ld \
18442hardcode_libdir_separator \
18443fix_srcfile_path \
18444exclude_expsyms \
18445include_expsyms \
18446file_list_spec \
18447variables_saved_for_relink \
18448libname_spec \
18449library_names_spec \
18450soname_spec \
18451install_override_mode \
18452finish_eval \
18453old_striplib \
18454striplib; do
18455 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18456 *[\\\\\\\`\\"\\\$]*)
18457 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18458 ;;
18459 *)
18460 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18461 ;;
18462 esac
18463done
18464
18465# Double-quote double-evaled strings.
18466for var in reload_cmds \
18467old_postinstall_cmds \
18468old_postuninstall_cmds \
18469old_archive_cmds \
18470extract_expsyms_cmds \
18471old_archive_from_new_cmds \
18472old_archive_from_expsyms_cmds \
18473archive_cmds \
18474archive_expsym_cmds \
18475module_cmds \
18476module_expsym_cmds \
18477export_symbols_cmds \
18478prelink_cmds \
18479postinstall_cmds \
18480postuninstall_cmds \
18481finish_cmds \
18482sys_lib_search_path_spec \
18483sys_lib_dlsearch_path_spec; do
18484 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18485 *[\\\\\\\`\\"\\\$]*)
18486 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18487 ;;
18488 *)
18489 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18490 ;;
18491 esac
18492done
18493
18494ac_aux_dir='$ac_aux_dir'
18495xsi_shell='$xsi_shell'
18496lt_shell_append='$lt_shell_append'
18497
18498# See if we are running on zsh, and set the options which allow our
18499# commands through without removal of \ escapes INIT.
18500if test -n "\${ZSH_VERSION+set}" ; then
18501 setopt NO_GLOB_SUBST
18502fi
18503
18504
18505 PACKAGE='$PACKAGE'
18506 VERSION='$VERSION'
18507 TIMESTAMP='$TIMESTAMP'
18508 RM='$RM'
18509 ofile='$ofile'
18510
18511
18512
6bddc3e8
MF
18513AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18514
81ecdfbb 18515_ACEOF
b7026657 18516
81ecdfbb 18517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
df1756f4 18518
81ecdfbb 18519# Handling of arguments.
b7026657
AC
18520for ac_config_target in $ac_config_targets
18521do
81ecdfbb 18522 case $ac_config_target in
b15c5d7a 18523 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
b5689863 18524 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
6bddc3e8 18525 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23912acd 18526 "aarch64/.gdbinit") CONFIG_FILES="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;;
23912acd 18527 "avr/.gdbinit") CONFIG_FILES="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;;
23912acd 18528 "bfin/.gdbinit") CONFIG_FILES="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;;
23912acd 18529 "bpf/.gdbinit") CONFIG_FILES="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;;
23912acd 18530 "cr16/.gdbinit") CONFIG_FILES="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;;
23912acd 18531 "cris/.gdbinit") CONFIG_FILES="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;;
23912acd 18532 "d10v/.gdbinit") CONFIG_FILES="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;;
23912acd 18533 "frv/.gdbinit") CONFIG_FILES="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;;
23912acd 18534 "ft32/.gdbinit") CONFIG_FILES="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;;
23912acd 18535 "h8300/.gdbinit") CONFIG_FILES="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;;
23912acd 18536 "iq2000/.gdbinit") CONFIG_FILES="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;;
23912acd 18537 "lm32/.gdbinit") CONFIG_FILES="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;;
23912acd 18538 "m32c/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;;
23912acd 18539 "m32r/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;;
23912acd 18540 "m68hc11/.gdbinit") CONFIG_FILES="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;;
23912acd 18541 "mcore/.gdbinit") CONFIG_FILES="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;;
23912acd 18542 "microblaze/.gdbinit") CONFIG_FILES="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;;
23912acd 18543 "mips/.gdbinit") CONFIG_FILES="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;;
23912acd 18544 "mn10300/.gdbinit") CONFIG_FILES="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;;
23912acd 18545 "moxie/.gdbinit") CONFIG_FILES="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;;
23912acd 18546 "msp430/.gdbinit") CONFIG_FILES="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;;
23912acd 18547 "or1k/.gdbinit") CONFIG_FILES="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;;
23912acd 18548 "ppc/.gdbinit") CONFIG_FILES="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;;
23912acd 18549 "pru/.gdbinit") CONFIG_FILES="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;;
23912acd 18550 "riscv/.gdbinit") CONFIG_FILES="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;;
23912acd 18551 "rl78/.gdbinit") CONFIG_FILES="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;;
23912acd 18552 "rx/.gdbinit") CONFIG_FILES="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;;
23912acd 18553 "sh/.gdbinit") CONFIG_FILES="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;;
23912acd 18554 "erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
23912acd 18555 "v850/.gdbinit") CONFIG_FILES="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;;
23912acd 18556 "example-synacor/.gdbinit") CONFIG_FILES="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;;
81ecdfbb 18557 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21672298 18558 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
81ecdfbb 18559
d0ac1c44 18560 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 18561 esac
b7026657 18562done
c906108c 18563
81ecdfbb 18564
b7026657
AC
18565# If the user did not use the arguments to specify the items to instantiate,
18566# then the envvar interface is used. Set only those that are not.
18567# We use the long form for the default assignment because of an extremely
18568# bizarre bug on SunOS 4.1.3.
18569if $ac_need_defaults; then
18570 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
b15c5d7a 18571 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6bddc3e8 18572 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b7026657 18573fi
c906108c 18574
b7026657 18575# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 18576# simply because there is no reason against having it here, and in addition,
b7026657 18577# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
18578# Hook for its removal unless debugging.
18579# Note that there is a small window in which the directory will not be cleaned:
18580# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
18581$debug ||
18582{
d0ac1c44 18583 tmp= ac_tmp=
81ecdfbb 18584 trap 'exit_status=$?
d0ac1c44
SM
18585 : "${ac_tmp:=$tmp}"
18586 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
18587' 0
18588 trap 'as_fn_exit 1' 1 2 13 15
b7026657 18589}
b7026657
AC
18590# Create a (secure) tmp directory for tmp files.
18591
18592{
81ecdfbb 18593 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 18594 test -d "$tmp"
b7026657
AC
18595} ||
18596{
81ecdfbb
RW
18597 tmp=./conf$$-$RANDOM
18598 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
18599} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18600ac_tmp=$tmp
81ecdfbb
RW
18601
18602# Set up the scripts for CONFIG_FILES section.
18603# No need to generate them if there are no CONFIG_FILES.
18604# This happens for instance with `./config.status config.h'.
18605if test -n "$CONFIG_FILES"; then
18606
18607
18608ac_cr=`echo X | tr X '\015'`
18609# On cygwin, bash can eat \r inside `` if the user requested igncr.
18610# But we know of no other shell where ac_cr would be empty at this
18611# point, so we can use a bashism as a fallback.
18612if test "x$ac_cr" = x; then
18613 eval ac_cr=\$\'\\r\'
18614fi
18615ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18616if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 18617 ac_cs_awk_cr='\\r'
81ecdfbb
RW
18618else
18619 ac_cs_awk_cr=$ac_cr
18620fi
18621
d0ac1c44 18622echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
18623_ACEOF
18624
18625
18626{
18627 echo "cat >conf$$subs.awk <<_ACEOF" &&
18628 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18629 echo "_ACEOF"
18630} >conf$$subs.sh ||
d0ac1c44
SM
18631 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18632ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
18633ac_delim='%!_!# '
18634for ac_last_try in false false false false false :; do
18635 . ./conf$$subs.sh ||
d0ac1c44 18636 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
18637
18638 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18639 if test $ac_delim_n = $ac_delim_num; then
18640 break
18641 elif $ac_last_try; then
d0ac1c44 18642 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
18643 else
18644 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18645 fi
18646done
18647rm -f conf$$subs.sh
18648
18649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 18650cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
18651_ACEOF
18652sed -n '
18653h
18654s/^/S["/; s/!.*/"]=/
18655p
18656g
18657s/^[^!]*!//
18658:repl
18659t repl
18660s/'"$ac_delim"'$//
18661t delim
18662:nl
18663h
d0ac1c44 18664s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
18665t more1
18666s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18667p
18668n
18669b repl
18670:more1
18671s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18672p
18673g
18674s/.\{148\}//
18675t nl
18676:delim
18677h
d0ac1c44 18678s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
18679t more2
18680s/["\\]/\\&/g; s/^/"/; s/$/"/
18681p
18682b
18683:more2
18684s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18685p
18686g
18687s/.\{148\}//
18688t delim
18689' <conf$$subs.awk | sed '
18690/^[^""]/{
18691 N
18692 s/\n//
18693}
18694' >>$CONFIG_STATUS || ac_write_fail=1
18695rm -f conf$$subs.awk
18696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18697_ACAWK
d0ac1c44 18698cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
18699 for (key in S) S_is_set[key] = 1
18700 FS = "\a"
18701
18702}
b7026657 18703{
81ecdfbb
RW
18704 line = $ 0
18705 nfields = split(line, field, "@")
18706 substed = 0
18707 len = length(field[1])
18708 for (i = 2; i < nfields; i++) {
18709 key = field[i]
18710 keylen = length(key)
18711 if (S_is_set[key]) {
18712 value = S[key]
18713 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18714 len += length(value) + length(field[++i])
18715 substed = 1
18716 } else
18717 len += 1 + keylen
18718 }
18719
18720 print line
b7026657
AC
18721}
18722
81ecdfbb
RW
18723_ACAWK
18724_ACEOF
18725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18726if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18727 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18728else
18729 cat
d0ac1c44
SM
18730fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18731 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
fdd6fa61
AG
18732_ACEOF
18733
d0ac1c44
SM
18734# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18735# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
18736# trailing colons and then remove the whole line if VPATH becomes empty
18737# (actually we leave an empty line to preserve line numbers).
18738if test "x$srcdir" = x.; then
d0ac1c44
SM
18739 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18740h
18741s///
18742s/^/:/
18743s/[ ]*$/:/
18744s/:\$(srcdir):/:/g
18745s/:\${srcdir}:/:/g
18746s/:@srcdir@:/:/g
18747s/^:*//
81ecdfbb 18748s/:*$//
d0ac1c44
SM
18749x
18750s/\(=[ ]*\).*/\1/
18751G
18752s/\n//
81ecdfbb
RW
18753s/^[^=]*=[ ]*$//
18754}'
18755fi
fdd6fa61 18756
81ecdfbb
RW
18757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18758fi # test -n "$CONFIG_FILES"
b7026657 18759
b15c5d7a
MF
18760# Set up the scripts for CONFIG_HEADERS section.
18761# No need to generate them if there are no CONFIG_HEADERS.
18762# This happens for instance with `./config.status Makefile'.
18763if test -n "$CONFIG_HEADERS"; then
18764cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18765BEGIN {
18766_ACEOF
18767
18768# Transform confdefs.h into an awk script `defines.awk', embedded as
18769# here-document in config.status, that substitutes the proper values into
18770# config.h.in to produce config.h.
18771
18772# Create a delimiter string that does not exist in confdefs.h, to ease
18773# handling of long lines.
18774ac_delim='%!_!# '
18775for ac_last_try in false false :; do
18776 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18777 if test -z "$ac_tt"; then
18778 break
18779 elif $ac_last_try; then
18780 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18781 else
18782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18783 fi
18784done
18785
18786# For the awk script, D is an array of macro values keyed by name,
18787# likewise P contains macro parameters if any. Preserve backslash
18788# newline sequences.
18789
18790ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18791sed -n '
18792s/.\{148\}/&'"$ac_delim"'/g
18793t rset
18794:rset
18795s/^[ ]*#[ ]*define[ ][ ]*/ /
18796t def
18797d
18798:def
18799s/\\$//
18800t bsnl
18801s/["\\]/\\&/g
18802s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18803D["\1"]=" \3"/p
18804s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18805d
18806:bsnl
18807s/["\\]/\\&/g
18808s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18809D["\1"]=" \3\\\\\\n"\\/p
18810t cont
18811s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18812t cont
18813d
18814:cont
18815n
18816s/.\{148\}/&'"$ac_delim"'/g
18817t clear
18818:clear
18819s/\\$//
18820t bsnlc
18821s/["\\]/\\&/g; s/^/"/; s/$/"/p
18822d
18823:bsnlc
18824s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18825b cont
18826' <confdefs.h | sed '
18827s/'"$ac_delim"'/"\\\
18828"/g' >>$CONFIG_STATUS || ac_write_fail=1
18829
18830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18831 for (key in D) D_is_set[key] = 1
18832 FS = "\a"
18833}
18834/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18835 line = \$ 0
18836 split(line, arg, " ")
18837 if (arg[1] == "#") {
18838 defundef = arg[2]
18839 mac1 = arg[3]
18840 } else {
18841 defundef = substr(arg[1], 2)
18842 mac1 = arg[2]
18843 }
18844 split(mac1, mac2, "(") #)
18845 macro = mac2[1]
18846 prefix = substr(line, 1, index(line, defundef) - 1)
18847 if (D_is_set[macro]) {
18848 # Preserve the white space surrounding the "#".
18849 print prefix "define", macro P[macro] D[macro]
18850 next
18851 } else {
18852 # Replace #undef with comments. This is necessary, for example,
18853 # in the case of _POSIX_SOURCE, which is predefined and required
18854 # on some systems where configure will not decide to define it.
18855 if (defundef == "undef") {
18856 print "/*", prefix defundef, macro, "*/"
18857 next
18858 }
18859 }
18860}
18861{ print }
18862_ACAWK
18863_ACEOF
18864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18865 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18866fi # test -n "$CONFIG_HEADERS"
b7026657 18867
b15c5d7a
MF
18868
18869eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
81ecdfbb
RW
18870shift
18871for ac_tag
18872do
18873 case $ac_tag in
18874 :[FHLC]) ac_mode=$ac_tag; continue;;
18875 esac
18876 case $ac_mode$ac_tag in
18877 :[FHL]*:*);;
d0ac1c44 18878 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
18879 :[FH]-) ac_tag=-:-;;
18880 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18881 esac
18882 ac_save_IFS=$IFS
18883 IFS=:
18884 set x $ac_tag
18885 IFS=$ac_save_IFS
18886 shift
18887 ac_file=$1
18888 shift
b7026657 18889
81ecdfbb
RW
18890 case $ac_mode in
18891 :L) ac_source=$1;;
18892 :[FH])
18893 ac_file_inputs=
18894 for ac_f
18895 do
18896 case $ac_f in
d0ac1c44 18897 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
18898 *) # Look for the file first in the build tree, then in the source tree
18899 # (if the path is not absolute). The absolute path cannot be DOS-style,
18900 # because $ac_f cannot contain `:'.
18901 test -f "$ac_f" ||
18902 case $ac_f in
18903 [\\/$]*) false;;
18904 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18905 esac ||
d0ac1c44 18906 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
18907 esac
18908 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18909 as_fn_append ac_file_inputs " '$ac_f'"
18910 done
18911
18912 # Let's still pretend it is `configure' which instantiates (i.e., don't
18913 # use $as_me), people would be surprised to read:
18914 # /* config.h. Generated by config.status. */
18915 configure_input='Generated from '`
18916 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18917 `' by configure.'
18918 if test x"$ac_file" != x-; then
18919 configure_input="$ac_file. $configure_input"
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18921$as_echo "$as_me: creating $ac_file" >&6;}
fdd6fa61 18922 fi
81ecdfbb
RW
18923 # Neutralize special characters interpreted by sed in replacement strings.
18924 case $configure_input in #(
18925 *\&* | *\|* | *\\* )
18926 ac_sed_conf_input=`$as_echo "$configure_input" |
18927 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18928 *) ac_sed_conf_input=$configure_input;;
18929 esac
df1756f4 18930
81ecdfbb 18931 case $ac_tag in
d0ac1c44
SM
18932 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
18934 esac
18935 ;;
df1756f4
TG
18936 esac
18937
81ecdfbb 18938 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
18939$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18940 X"$ac_file" : 'X\(//\)[^/]' \| \
18941 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
18942 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18943$as_echo X"$ac_file" |
18944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18945 s//\1/
18946 q
18947 }
18948 /^X\(\/\/\)[^/].*/{
18949 s//\1/
18950 q
18951 }
18952 /^X\(\/\/\)$/{
18953 s//\1/
18954 q
18955 }
18956 /^X\(\/\).*/{
18957 s//\1/
18958 q
18959 }
18960 s/.*/./; q'`
18961 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
18962 ac_builddir=.
18963
81ecdfbb
RW
18964case "$ac_dir" in
18965.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18966*)
18967 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18968 # A ".." for each directory in $ac_dir_suffix.
18969 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18970 case $ac_top_builddir_sub in
18971 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18972 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18973 esac ;;
18974esac
18975ac_abs_top_builddir=$ac_pwd
18976ac_abs_builddir=$ac_pwd$ac_dir_suffix
18977# for backward compatibility:
18978ac_top_builddir=$ac_top_build_prefix
b7026657
AC
18979
18980case $srcdir in
81ecdfbb 18981 .) # We are building in place.
b7026657 18982 ac_srcdir=.
81ecdfbb
RW
18983 ac_top_srcdir=$ac_top_builddir_sub
18984 ac_abs_top_srcdir=$ac_pwd ;;
18985 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 18986 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
18987 ac_top_srcdir=$srcdir
18988 ac_abs_top_srcdir=$srcdir ;;
18989 *) # Relative name.
18990 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18991 ac_top_srcdir=$ac_top_build_prefix$srcdir
18992 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 18993esac
81ecdfbb 18994ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 18995
b7026657 18996
81ecdfbb
RW
18997 case $ac_mode in
18998 :F)
18999 #
19000 # CONFIG_FILE
19001 #
c906108c 19002
b7026657
AC
19003 case $INSTALL in
19004 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 19005 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 19006 esac
6bddc3e8
MF
19007 ac_MKDIR_P=$MKDIR_P
19008 case $MKDIR_P in
19009 [\\/$]* | ?:[\\/]* ) ;;
19010 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19011 esac
81ecdfbb 19012_ACEOF
c906108c 19013
81ecdfbb
RW
19014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19015# If the template does not know about datarootdir, expand it.
19016# FIXME: This hack should be removed a few years after 2.60.
19017ac_datarootdir_hack=; ac_datarootdir_seen=
19018ac_sed_dataroot='
19019/datarootdir/ {
19020 p
19021 q
19022}
19023/@datadir@/p
19024/@docdir@/p
19025/@infodir@/p
19026/@localedir@/p
19027/@mandir@/p'
19028case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19029*datarootdir*) ac_datarootdir_seen=yes;;
19030*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19032$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19033_ACEOF
19034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19035 ac_datarootdir_hack='
19036 s&@datadir@&$datadir&g
19037 s&@docdir@&$docdir&g
19038 s&@infodir@&$infodir&g
19039 s&@localedir@&$localedir&g
19040 s&@mandir@&$mandir&g
19041 s&\\\${datarootdir}&$datarootdir&g' ;;
19042esac
b7026657 19043_ACEOF
81ecdfbb
RW
19044
19045# Neutralize VPATH when `$srcdir' = `.'.
19046# Shell code in configure.ac might set extrasub.
19047# FIXME: do we really want to maintain this feature?
19048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19049ac_sed_extra="$ac_vpsub
b7026657
AC
19050$extrasub
19051_ACEOF
81ecdfbb 19052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
19053:t
19054/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
19055s|@configure_input@|$ac_sed_conf_input|;t t
19056s&@top_builddir@&$ac_top_builddir_sub&;t t
19057s&@top_build_prefix@&$ac_top_build_prefix&;t t
19058s&@srcdir@&$ac_srcdir&;t t
19059s&@abs_srcdir@&$ac_abs_srcdir&;t t
19060s&@top_srcdir@&$ac_top_srcdir&;t t
19061s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19062s&@builddir@&$ac_builddir&;t t
19063s&@abs_builddir@&$ac_abs_builddir&;t t
19064s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19065s&@INSTALL@&$ac_INSTALL&;t t
6bddc3e8 19066s&@MKDIR_P@&$ac_MKDIR_P&;t t
81ecdfbb
RW
19067$ac_datarootdir_hack
19068"
d0ac1c44
SM
19069eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19070 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
19071
19072test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
19073 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19074 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19075 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 19076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 19077which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 19078$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 19079which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 19080
d0ac1c44 19081 rm -f "$ac_tmp/stdin"
81ecdfbb 19082 case $ac_file in
d0ac1c44
SM
19083 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19084 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 19085 esac \
d0ac1c44 19086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 19087 ;;
b15c5d7a
MF
19088 :H)
19089 #
19090 # CONFIG_HEADER
19091 #
19092 if test x"$ac_file" != x-; then
19093 {
19094 $as_echo "/* $configure_input */" \
19095 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19096 } >"$ac_tmp/config.h" \
19097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19098 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19100$as_echo "$as_me: $ac_file is unchanged" >&6;}
19101 else
19102 rm -f "$ac_file"
19103 mv "$ac_tmp/config.h" "$ac_file" \
19104 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19105 fi
19106 else
19107 $as_echo "/* $configure_input */" \
19108 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19109 || as_fn_error $? "could not create -" "$LINENO" 5
19110 fi
19111# Compute "$ac_file"'s index in $config_headers.
19112_am_arg="$ac_file"
19113_am_stamp_count=1
19114for _am_header in $config_headers :; do
19115 case $_am_header in
19116 $_am_arg | $_am_arg:* )
19117 break ;;
19118 * )
19119 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19120 esac
19121done
19122echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19123$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19124 X"$_am_arg" : 'X\(//\)[^/]' \| \
19125 X"$_am_arg" : 'X\(//\)$' \| \
19126 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19127$as_echo X"$_am_arg" |
19128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19129 s//\1/
19130 q
19131 }
19132 /^X\(\/\/\)[^/].*/{
19133 s//\1/
19134 q
19135 }
19136 /^X\(\/\/\)$/{
19137 s//\1/
19138 q
19139 }
19140 /^X\(\/\).*/{
19141 s//\1/
19142 q
19143 }
19144 s/.*/./; q'`/stamp-h$_am_stamp_count
19145 ;;
df1756f4 19146
6bddc3e8
MF
19147 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19148$as_echo "$as_me: executing $ac_file commands" >&6;}
19149 ;;
19150 esac
19151
c906108c 19152
6bddc3e8 19153 case $ac_file$ac_mode in
b5689863
MF
19154 "libtool":C)
19155
19156 # See if we are running on zsh, and set the options which allow our
19157 # commands through without removal of \ escapes.
19158 if test -n "${ZSH_VERSION+set}" ; then
19159 setopt NO_GLOB_SUBST
19160 fi
19161
19162 cfgfile="${ofile}T"
19163 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19164 $RM "$cfgfile"
19165
19166 cat <<_LT_EOF >> "$cfgfile"
19167#! $SHELL
19168
19169# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19170# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19171# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19172# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19173#
19174# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19175# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19176# Written by Gordon Matzigkeit, 1996
19177#
19178# This file is part of GNU Libtool.
19179#
19180# GNU Libtool is free software; you can redistribute it and/or
19181# modify it under the terms of the GNU General Public License as
19182# published by the Free Software Foundation; either version 2 of
19183# the License, or (at your option) any later version.
19184#
19185# As a special exception to the GNU General Public License,
19186# if you distribute this file as part of a program or library that
19187# is built using GNU Libtool, you may include this file under the
19188# same distribution terms that you use for the rest of that program.
19189#
19190# GNU Libtool is distributed in the hope that it will be useful,
19191# but WITHOUT ANY WARRANTY; without even the implied warranty of
19192# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19193# GNU General Public License for more details.
19194#
19195# You should have received a copy of the GNU General Public License
19196# along with GNU Libtool; see the file COPYING. If not, a copy
19197# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19198# obtained by writing to the Free Software Foundation, Inc.,
19199# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19200
19201
19202# The names of the tagged configurations supported by this script.
19203available_tags=""
19204
19205# ### BEGIN LIBTOOL CONFIG
19206
19207# Which release of libtool.m4 was used?
19208macro_version=$macro_version
19209macro_revision=$macro_revision
19210
19211# Whether or not to build shared libraries.
19212build_libtool_libs=$enable_shared
19213
19214# Whether or not to build static libraries.
19215build_old_libs=$enable_static
19216
19217# What type of objects to build.
19218pic_mode=$pic_mode
19219
19220# Whether or not to optimize for fast installation.
19221fast_install=$enable_fast_install
19222
19223# Shell to use when invoking shell scripts.
19224SHELL=$lt_SHELL
19225
19226# An echo program that protects backslashes.
19227ECHO=$lt_ECHO
19228
19229# The host system.
19230host_alias=$host_alias
19231host=$host
19232host_os=$host_os
19233
19234# The build system.
19235build_alias=$build_alias
19236build=$build
19237build_os=$build_os
19238
19239# A sed program that does not truncate output.
19240SED=$lt_SED
19241
19242# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19243Xsed="\$SED -e 1s/^X//"
19244
19245# A grep program that handles long lines.
19246GREP=$lt_GREP
19247
19248# An ERE matcher.
19249EGREP=$lt_EGREP
19250
19251# A literal string matcher.
19252FGREP=$lt_FGREP
19253
19254# A BSD- or MS-compatible name lister.
19255NM=$lt_NM
19256
19257# Whether we need soft or hard links.
19258LN_S=$lt_LN_S
19259
19260# What is the maximum length of a command?
19261max_cmd_len=$max_cmd_len
19262
19263# Object file suffix (normally "o").
19264objext=$ac_objext
19265
19266# Executable file suffix (normally "").
19267exeext=$exeext
19268
19269# whether the shell understands "unset".
19270lt_unset=$lt_unset
19271
19272# turn spaces into newlines.
19273SP2NL=$lt_lt_SP2NL
19274
19275# turn newlines into spaces.
19276NL2SP=$lt_lt_NL2SP
19277
19278# An object symbol dumper.
19279OBJDUMP=$lt_OBJDUMP
19280
19281# Method to check whether dependent libraries are shared objects.
19282deplibs_check_method=$lt_deplibs_check_method
19283
19284# Command to use when deplibs_check_method == "file_magic".
19285file_magic_cmd=$lt_file_magic_cmd
19286
19287# The archiver.
19288AR=$lt_AR
19289AR_FLAGS=$lt_AR_FLAGS
19290
19291# A symbol stripping program.
19292STRIP=$lt_STRIP
19293
19294# Commands used to install an old-style archive.
19295RANLIB=$lt_RANLIB
19296old_postinstall_cmds=$lt_old_postinstall_cmds
19297old_postuninstall_cmds=$lt_old_postuninstall_cmds
19298
19299# Whether to use a lock for old archive extraction.
19300lock_old_archive_extraction=$lock_old_archive_extraction
19301
19302# A C compiler.
19303LTCC=$lt_CC
19304
19305# LTCC compiler flags.
19306LTCFLAGS=$lt_CFLAGS
19307
19308# Take the output of nm and produce a listing of raw symbols and C names.
19309global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19310
19311# Transform the output of nm in a proper C declaration.
19312global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19313
19314# Transform the output of nm in a C name address pair.
19315global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19316
19317# Transform the output of nm in a C name address pair when lib prefix is needed.
19318global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19319
19320# The name of the directory that contains temporary libtool files.
19321objdir=$objdir
19322
19323# Used to examine libraries when file_magic_cmd begins with "file".
19324MAGIC_CMD=$MAGIC_CMD
19325
19326# Must we lock files when doing compilation?
19327need_locks=$lt_need_locks
19328
19329# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19330DSYMUTIL=$lt_DSYMUTIL
19331
19332# Tool to change global to local symbols on Mac OS X.
19333NMEDIT=$lt_NMEDIT
19334
19335# Tool to manipulate fat objects and archives on Mac OS X.
19336LIPO=$lt_LIPO
19337
19338# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19339OTOOL=$lt_OTOOL
19340
19341# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19342OTOOL64=$lt_OTOOL64
19343
19344# Old archive suffix (normally "a").
19345libext=$libext
19346
19347# Shared library suffix (normally ".so").
19348shrext_cmds=$lt_shrext_cmds
19349
19350# The commands to extract the exported symbol list from a shared archive.
19351extract_expsyms_cmds=$lt_extract_expsyms_cmds
19352
19353# Variables whose values should be saved in libtool wrapper scripts and
19354# restored at link time.
19355variables_saved_for_relink=$lt_variables_saved_for_relink
19356
19357# Do we need the "lib" prefix for modules?
19358need_lib_prefix=$need_lib_prefix
19359
19360# Do we need a version for libraries?
19361need_version=$need_version
19362
19363# Library versioning type.
19364version_type=$version_type
19365
19366# Shared library runtime path variable.
19367runpath_var=$runpath_var
19368
19369# Shared library path variable.
19370shlibpath_var=$shlibpath_var
19371
19372# Is shlibpath searched before the hard-coded library search path?
19373shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19374
19375# Format of library name prefix.
19376libname_spec=$lt_libname_spec
19377
19378# List of archive names. First name is the real one, the rest are links.
19379# The last name is the one that the linker finds with -lNAME
19380library_names_spec=$lt_library_names_spec
19381
19382# The coded name of the library, if different from the real name.
19383soname_spec=$lt_soname_spec
19384
19385# Permission mode override for installation of shared libraries.
19386install_override_mode=$lt_install_override_mode
19387
19388# Command to use after installation of a shared archive.
19389postinstall_cmds=$lt_postinstall_cmds
19390
19391# Command to use after uninstallation of a shared archive.
19392postuninstall_cmds=$lt_postuninstall_cmds
19393
19394# Commands used to finish a libtool library installation in a directory.
19395finish_cmds=$lt_finish_cmds
19396
19397# As "finish_cmds", except a single script fragment to be evaled but
19398# not shown.
19399finish_eval=$lt_finish_eval
19400
19401# Whether we should hardcode library paths into libraries.
19402hardcode_into_libs=$hardcode_into_libs
19403
19404# Compile-time system search path for libraries.
19405sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19406
19407# Run-time system search path for libraries.
19408sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19409
19410# Whether dlopen is supported.
19411dlopen_support=$enable_dlopen
19412
19413# Whether dlopen of programs is supported.
19414dlopen_self=$enable_dlopen_self
19415
19416# Whether dlopen of statically linked programs is supported.
19417dlopen_self_static=$enable_dlopen_self_static
19418
19419# Commands to strip libraries.
19420old_striplib=$lt_old_striplib
19421striplib=$lt_striplib
19422
19423
19424# The linker used to build libraries.
19425LD=$lt_LD
19426
19427# How to create reloadable object files.
19428reload_flag=$lt_reload_flag
19429reload_cmds=$lt_reload_cmds
19430
19431# Commands used to build an old-style archive.
19432old_archive_cmds=$lt_old_archive_cmds
19433
19434# A language specific compiler.
19435CC=$lt_compiler
19436
19437# Is the compiler the GNU compiler?
19438with_gcc=$GCC
19439
19440# Compiler flag to turn off builtin functions.
19441no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19442
19443# How to pass a linker flag through the compiler.
19444wl=$lt_lt_prog_compiler_wl
19445
19446# Additional compiler flags for building library objects.
19447pic_flag=$lt_lt_prog_compiler_pic
19448
19449# Compiler flag to prevent dynamic linking.
19450link_static_flag=$lt_lt_prog_compiler_static
19451
19452# Does compiler simultaneously support -c and -o options?
19453compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19454
19455# Whether or not to add -lc for building shared libraries.
19456build_libtool_need_lc=$archive_cmds_need_lc
19457
19458# Whether or not to disallow shared libs when runtime libs are static.
19459allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19460
19461# Compiler flag to allow reflexive dlopens.
19462export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19463
19464# Compiler flag to generate shared objects directly from archives.
19465whole_archive_flag_spec=$lt_whole_archive_flag_spec
19466
19467# Whether the compiler copes with passing no objects directly.
19468compiler_needs_object=$lt_compiler_needs_object
19469
19470# Create an old-style archive from a shared archive.
19471old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19472
19473# Create a temporary old-style archive to link instead of a shared archive.
19474old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19475
19476# Commands used to build a shared archive.
19477archive_cmds=$lt_archive_cmds
19478archive_expsym_cmds=$lt_archive_expsym_cmds
19479
19480# Commands used to build a loadable module if different from building
19481# a shared archive.
19482module_cmds=$lt_module_cmds
19483module_expsym_cmds=$lt_module_expsym_cmds
19484
19485# Whether we are building with GNU ld or not.
19486with_gnu_ld=$lt_with_gnu_ld
19487
19488# Flag that allows shared libraries with undefined symbols to be built.
19489allow_undefined_flag=$lt_allow_undefined_flag
19490
19491# Flag that enforces no undefined symbols.
19492no_undefined_flag=$lt_no_undefined_flag
19493
19494# Flag to hardcode \$libdir into a binary during linking.
19495# This must work even if \$libdir does not exist
19496hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19497
19498# If ld is used when linking, flag to hardcode \$libdir into a binary
19499# during linking. This must work even if \$libdir does not exist.
19500hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19501
19502# Whether we need a single "-rpath" flag with a separated argument.
19503hardcode_libdir_separator=$lt_hardcode_libdir_separator
19504
19505# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19506# DIR into the resulting binary.
19507hardcode_direct=$hardcode_direct
19508
19509# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19510# DIR into the resulting binary and the resulting library dependency is
19511# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19512# library is relocated.
19513hardcode_direct_absolute=$hardcode_direct_absolute
19514
19515# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19516# into the resulting binary.
19517hardcode_minus_L=$hardcode_minus_L
19518
19519# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19520# into the resulting binary.
19521hardcode_shlibpath_var=$hardcode_shlibpath_var
19522
19523# Set to "yes" if building a shared library automatically hardcodes DIR
19524# into the library and all subsequent libraries and executables linked
19525# against it.
19526hardcode_automatic=$hardcode_automatic
19527
19528# Set to yes if linker adds runtime paths of dependent libraries
19529# to runtime path list.
19530inherit_rpath=$inherit_rpath
19531
19532# Whether libtool must link a program against all its dependency libraries.
19533link_all_deplibs=$link_all_deplibs
19534
19535# Fix the shell variable \$srcfile for the compiler.
19536fix_srcfile_path=$lt_fix_srcfile_path
19537
19538# Set to "yes" if exported symbols are required.
19539always_export_symbols=$always_export_symbols
19540
19541# The commands to list exported symbols.
19542export_symbols_cmds=$lt_export_symbols_cmds
19543
19544# Symbols that should not be listed in the preloaded symbols.
19545exclude_expsyms=$lt_exclude_expsyms
19546
19547# Symbols that must always be exported.
19548include_expsyms=$lt_include_expsyms
19549
19550# Commands necessary for linking programs (against libraries) with templates.
19551prelink_cmds=$lt_prelink_cmds
19552
19553# Specify filename containing input files.
19554file_list_spec=$lt_file_list_spec
19555
19556# How to hardcode a shared library path into an executable.
19557hardcode_action=$hardcode_action
19558
19559# ### END LIBTOOL CONFIG
19560
19561_LT_EOF
19562
19563 case $host_os in
19564 aix3*)
19565 cat <<\_LT_EOF >> "$cfgfile"
19566# AIX sometimes has problems with the GCC collect2 program. For some
19567# reason, if we set the COLLECT_NAMES environment variable, the problems
19568# vanish in a puff of smoke.
19569if test "X${COLLECT_NAMES+set}" != Xset; then
19570 COLLECT_NAMES=
19571 export COLLECT_NAMES
19572fi
19573_LT_EOF
19574 ;;
19575 esac
19576
19577
19578ltmain="$ac_aux_dir/ltmain.sh"
19579
19580
19581 # We use sed instead of cat because bash on DJGPP gets confused if
19582 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19583 # text mode, it properly converts lines to CR/LF. This bash problem
19584 # is reportedly fixed, but why not run on old versions too?
19585 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19586 || (rm -f "$cfgfile"; exit 1)
19587
19588 case $xsi_shell in
19589 yes)
19590 cat << \_LT_EOF >> "$cfgfile"
19591
19592# func_dirname file append nondir_replacement
19593# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19594# otherwise set result to NONDIR_REPLACEMENT.
19595func_dirname ()
19596{
19597 case ${1} in
19598 */*) func_dirname_result="${1%/*}${2}" ;;
19599 * ) func_dirname_result="${3}" ;;
19600 esac
19601}
19602
19603# func_basename file
19604func_basename ()
19605{
19606 func_basename_result="${1##*/}"
19607}
19608
19609# func_dirname_and_basename file append nondir_replacement
19610# perform func_basename and func_dirname in a single function
19611# call:
19612# dirname: Compute the dirname of FILE. If nonempty,
19613# add APPEND to the result, otherwise set result
19614# to NONDIR_REPLACEMENT.
19615# value returned in "$func_dirname_result"
19616# basename: Compute filename of FILE.
19617# value retuned in "$func_basename_result"
19618# Implementation must be kept synchronized with func_dirname
19619# and func_basename. For efficiency, we do not delegate to
19620# those functions but instead duplicate the functionality here.
19621func_dirname_and_basename ()
19622{
19623 case ${1} in
19624 */*) func_dirname_result="${1%/*}${2}" ;;
19625 * ) func_dirname_result="${3}" ;;
19626 esac
19627 func_basename_result="${1##*/}"
19628}
19629
19630# func_stripname prefix suffix name
19631# strip PREFIX and SUFFIX off of NAME.
19632# PREFIX and SUFFIX must not contain globbing or regex special
19633# characters, hashes, percent signs, but SUFFIX may contain a leading
19634# dot (in which case that matches only a dot).
19635func_stripname ()
19636{
19637 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19638 # positional parameters, so assign one to ordinary parameter first.
19639 func_stripname_result=${3}
19640 func_stripname_result=${func_stripname_result#"${1}"}
19641 func_stripname_result=${func_stripname_result%"${2}"}
19642}
19643
19644# func_opt_split
19645func_opt_split ()
19646{
19647 func_opt_split_opt=${1%%=*}
19648 func_opt_split_arg=${1#*=}
19649}
19650
19651# func_lo2o object
19652func_lo2o ()
19653{
19654 case ${1} in
19655 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19656 *) func_lo2o_result=${1} ;;
19657 esac
19658}
19659
19660# func_xform libobj-or-source
19661func_xform ()
19662{
19663 func_xform_result=${1%.*}.lo
19664}
19665
19666# func_arith arithmetic-term...
19667func_arith ()
19668{
19669 func_arith_result=$(( $* ))
19670}
19671
19672# func_len string
19673# STRING may not start with a hyphen.
19674func_len ()
19675{
19676 func_len_result=${#1}
19677}
19678
19679_LT_EOF
19680 ;;
19681 *) # Bourne compatible functions.
19682 cat << \_LT_EOF >> "$cfgfile"
19683
19684# func_dirname file append nondir_replacement
19685# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19686# otherwise set result to NONDIR_REPLACEMENT.
19687func_dirname ()
19688{
19689 # Extract subdirectory from the argument.
19690 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19691 if test "X$func_dirname_result" = "X${1}"; then
19692 func_dirname_result="${3}"
19693 else
19694 func_dirname_result="$func_dirname_result${2}"
19695 fi
19696}
19697
19698# func_basename file
19699func_basename ()
19700{
19701 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19702}
19703
19704
19705# func_stripname prefix suffix name
19706# strip PREFIX and SUFFIX off of NAME.
19707# PREFIX and SUFFIX must not contain globbing or regex special
19708# characters, hashes, percent signs, but SUFFIX may contain a leading
19709# dot (in which case that matches only a dot).
19710# func_strip_suffix prefix name
19711func_stripname ()
19712{
19713 case ${2} in
19714 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19715 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19716 esac
19717}
19718
19719# sed scripts:
19720my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19721my_sed_long_arg='1s/^-[^=]*=//'
19722
19723# func_opt_split
19724func_opt_split ()
19725{
19726 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19727 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19728}
19729
19730# func_lo2o object
19731func_lo2o ()
19732{
19733 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19734}
19735
19736# func_xform libobj-or-source
19737func_xform ()
19738{
19739 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19740}
19741
19742# func_arith arithmetic-term...
19743func_arith ()
19744{
19745 func_arith_result=`expr "$@"`
19746}
19747
19748# func_len string
19749# STRING may not start with a hyphen.
19750func_len ()
19751{
19752 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19753}
19754
19755_LT_EOF
19756esac
19757
19758case $lt_shell_append in
19759 yes)
19760 cat << \_LT_EOF >> "$cfgfile"
19761
19762# func_append var value
19763# Append VALUE to the end of shell variable VAR.
19764func_append ()
19765{
19766 eval "$1+=\$2"
19767}
19768_LT_EOF
19769 ;;
19770 *)
19771 cat << \_LT_EOF >> "$cfgfile"
19772
19773# func_append var value
19774# Append VALUE to the end of shell variable VAR.
19775func_append ()
19776{
19777 eval "$1=\$$1\$2"
19778}
19779
19780_LT_EOF
19781 ;;
19782 esac
19783
19784
19785 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19786 || (rm -f "$cfgfile"; exit 1)
19787
19788 mv -f "$cfgfile" "$ofile" ||
19789 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19790 chmod +x "$ofile"
19791
19792 ;;
6bddc3e8
MF
19793 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19794 # Older Autoconf quotes --file arguments for eval, but not when files
19795 # are listed without --file. Let's play safe and only enable the eval
19796 # if we detect the quoting.
19797 case $CONFIG_FILES in
19798 *\'*) eval set x "$CONFIG_FILES" ;;
19799 *) set x $CONFIG_FILES ;;
81ecdfbb 19800 esac
6bddc3e8
MF
19801 shift
19802 for mf
19803 do
19804 # Strip MF so we end up with the name of the file.
19805 mf=`echo "$mf" | sed -e 's/:.*$//'`
19806 # Check whether this is an Automake generated Makefile or not.
19807 # We used to match only the files named 'Makefile.in', but
19808 # some people rename them; so instead we look at the file content.
19809 # Grep'ing the first line is not enough: some people post-process
19810 # each Makefile.in and add a new line on top of each file to say so.
19811 # Grep'ing the whole file is not good either: AIX grep has a line
19812 # limit of 2048, but all sed's we know have understand at least 4000.
19813 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19814 dirpart=`$as_dirname -- "$mf" ||
19815$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19816 X"$mf" : 'X\(//\)[^/]' \| \
19817 X"$mf" : 'X\(//\)$' \| \
19818 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19819$as_echo X"$mf" |
19820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19821 s//\1/
19822 q
19823 }
19824 /^X\(\/\/\)[^/].*/{
19825 s//\1/
19826 q
19827 }
19828 /^X\(\/\/\)$/{
19829 s//\1/
19830 q
19831 }
19832 /^X\(\/\).*/{
19833 s//\1/
19834 q
19835 }
19836 s/.*/./; q'`
19837 else
19838 continue
19839 fi
19840 # Extract the definition of DEPDIR, am__include, and am__quote
19841 # from the Makefile without running 'make'.
19842 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19843 test -z "$DEPDIR" && continue
19844 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19845 test -z "$am__include" && continue
19846 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19847 # Find all dependency output files, they are included files with
19848 # $(DEPDIR) in their names. We invoke sed twice because it is the
19849 # simplest approach to changing $(DEPDIR) to its actual value in the
19850 # expansion.
19851 for file in `sed -n "
19852 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19853 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19854 # Make sure the directory exists.
19855 test -f "$dirpart/$file" && continue
19856 fdir=`$as_dirname -- "$file" ||
19857$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19858 X"$file" : 'X\(//\)[^/]' \| \
19859 X"$file" : 'X\(//\)$' \| \
19860 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19861$as_echo X"$file" |
19862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19863 s//\1/
19864 q
19865 }
19866 /^X\(\/\/\)[^/].*/{
19867 s//\1/
19868 q
19869 }
19870 /^X\(\/\/\)$/{
19871 s//\1/
19872 q
19873 }
19874 /^X\(\/\).*/{
19875 s//\1/
19876 q
19877 }
19878 s/.*/./; q'`
19879 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19880 # echo "creating $dirpart/$file"
19881 echo '# dummy' > "$dirpart/$file"
19882 done
19883 done
19884}
19885 ;;
81ecdfbb 19886
6bddc3e8 19887 esac
81ecdfbb
RW
19888done # for ac_tag
19889
19890
19891as_fn_exit 0
b7026657 19892_ACEOF
b7026657
AC
19893ac_clean_files=$ac_clean_files_save
19894
81ecdfbb 19895test $ac_write_fail = 0 ||
d0ac1c44 19896 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 19897
b7026657
AC
19898
19899# configure is writing to config.log, and then calls config.status.
19900# config.status does its own redirection, appending to config.log.
19901# Unfortunately, on DOS this fails, as config.log is still kept open
19902# by configure, so config.status won't be able to write to it; its
19903# output is simply discarded. So we exec the FD to /dev/null,
19904# effectively closing config.log, so it can be properly (re)opened and
19905# appended to by config.status. When coming back to configure, we
19906# need to make the FD available again.
19907if test "$no_create" != yes; then
19908 ac_cs_success=:
19909 ac_config_status_args=
19910 test "$silent" = yes &&
19911 ac_config_status_args="$ac_config_status_args --quiet"
19912 exec 5>/dev/null
19913 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19914 exec 5>>config.log
19915 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19916 # would make configure fail if this is the last instruction.
d0ac1c44 19917 $ac_cs_success || as_fn_exit 1
b7026657 19918fi
81ecdfbb
RW
19919if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19921$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19922fi
c906108c 19923