sim: m32r: reformat linux traps code
[deliverable/binutils-gdb.git] / sim / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
6bddc3e8
MF
3# Generated by GNU Autoconf 2.69 for sim 0.
4#
5# Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
d0ac1c44
SM
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 9#
c906108c
SS
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
b7026657 16
81ecdfbb
RW
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
20 emulate sh
21 NULLCMD=:
81ecdfbb 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
b7026657 33fi
b7026657 34
81ecdfbb
RW
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
b7026657 52else
81ecdfbb
RW
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
b7026657
AC
81fi
82
83
81ecdfbb
RW
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 92as_myself=
81ecdfbb
RW
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
b7026657
AC
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
81ecdfbb
RW
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
d0ac1c44
SM
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
d0ac1c44
SM
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
81ecdfbb
RW
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
c2783492 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
b5689863
MF
201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b7026657 221do
81ecdfbb
RW
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
81ecdfbb
RW
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
b7026657 276 else
6bddc3e8
MF
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
b7026657 283 fi
81ecdfbb
RW
284 exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302 { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311 return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319 set +e
320 as_fn_set_status $1
321 exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
368
369
370} # as_fn_mkdir_p
d0ac1c44
SM
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377 test -f "$1" && test -x "$1"
378} # as_fn_executable_p
81ecdfbb
RW
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412fi # as_fn_arith
413
414
d0ac1c44
SM
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
81ecdfbb
RW
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 419# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
420as_fn_error ()
421{
d0ac1c44
SM
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 426 fi
d0ac1c44 427 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
428 as_fn_exit $as_status
429} # as_fn_error
b7026657 430
81ecdfbb
RW
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
433 as_expr=expr
434else
435 as_expr=false
436fi
437
81ecdfbb 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
439 as_basename=basename
440else
441 as_basename=false
442fi
443
81ecdfbb
RW
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446else
447 as_dirname=false
448fi
b7026657 449
81ecdfbb 450as_me=`$as_basename -- "$0" ||
b7026657
AC
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
b7026657 468
fdd6fa61
AG
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
df1756f4 475
b7026657 476
81ecdfbb
RW
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
b7026657 486 sed '
81ecdfbb
RW
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
b7026657 491 N
81ecdfbb
RW
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 494 t loop
81ecdfbb 495 s/-\n.*//
b7026657 496 ' >$as_me.lineno &&
81ecdfbb
RW
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b7026657 499
d0ac1c44
SM
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
b7026657
AC
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
b7026657
AC
508 # Exit status is that of the last command.
509 exit
510}
511
81ecdfbb
RW
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521*)
522 ECHO_N='-n';;
b7026657
AC
523esac
524
81ecdfbb
RW
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
b7026657 528else
81ecdfbb
RW
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
b7026657 531fi
81ecdfbb
RW
532if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
fdd6fa61 534 as_ln_s='ln -s'
81ecdfbb
RW
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 538 # In both cases, we have to default to `cp -pR'.
81ecdfbb 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 540 as_ln_s='cp -pR'
81ecdfbb
RW
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
d0ac1c44 544 as_ln_s='cp -pR'
fdd6fa61 545 fi
b7026657 546else
d0ac1c44 547 as_ln_s='cp -pR'
b7026657 548fi
81ecdfbb
RW
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
b7026657
AC
551
552if mkdir -p . 2>/dev/null; then
81ecdfbb 553 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
554else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557fi
c906108c 558
d0ac1c44
SM
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
b7026657
AC
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
b5689863
MF
568SHELL=${CONFIG_SHELL-/bin/sh}
569
b7026657 570
d0ac1c44
SM
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
b7026657
AC
573
574# Name of the host.
d0ac1c44 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b7026657
AC
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
b7026657
AC
579#
580# Initializations.
581#
c906108c 582ac_default_prefix=/usr/local
81ecdfbb 583ac_clean_files=
b7026657 584ac_config_libobj_dir=.
81ecdfbb 585LIBOBJS=
b7026657
AC
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
fdd6fa61 590
b7026657 591# Identity of this package.
6bddc3e8
MF
592PACKAGE_NAME='sim'
593PACKAGE_TARNAME='sim'
594PACKAGE_VERSION='0'
595PACKAGE_STRING='sim 0'
596PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
597PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/'
598
c2783492
MF
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
b15c5d7a
MF
635ac_header_list=
636ac_func_list=
81ecdfbb 637enable_option_checking=no
6bddc3e8
MF
638ac_subst_vars='am__EXEEXT_FALSE
639am__EXEEXT_TRUE
640LTLIBOBJS
e173c80f 641SIM_RX_CYCLE_ACCURATE_FLAGS
408a44aa 642SIM_FRV_TRAPDUMP_FLAGS
36bb57e4 643sim_reserved_bits
36bb57e4
MF
644sim_float
645sim_bitsize
d73f39ee 646SIM_INLINE
456ef1c1
MF
647sim_hw_sockser
648sim_hw_cflags
649SIM_ENABLE_HW_FALSE
650SIM_ENABLE_HW_TRUE
1bf5c342
MF
651cgen
652cgendir
653CGEN_MAINT
b6b1c790
MF
654SIM_ENABLE_IGEN_FALSE
655SIM_ENABLE_IGEN_TRUE
81ecdfbb 656subdirs
36bb57e4
MF
657SIM_COMMON_BUILD_FALSE
658SIM_COMMON_BUILD_TRUE
659SIM_SUBDIRS
a0e674c1 660SIM_PRIMARY_TARGET
c2783492
MF
661AM_BACKSLASH
662AM_DEFAULT_VERBOSITY
663AM_DEFAULT_V
664AM_V
6bddc3e8
MF
665am__fastdepCC_FALSE
666am__fastdepCC_TRUE
667CCDEPMODE
668am__nodep
669AMDEPBACKSLASH
670AMDEP_FALSE
671AMDEP_TRUE
672am__quote
673am__include
674DEPDIR
6bddc3e8
MF
675am__untar
676am__tar
677AMTAR
678am__leading_dot
679SET_MAKE
6bddc3e8
MF
680mkdir_p
681MKDIR_P
682INSTALL_STRIP_PROGRAM
6bddc3e8
MF
683install_sh
684MAKEINFO
685AUTOHEADER
686AUTOMAKE
687AUTOCONF
688ACLOCAL
689VERSION
690PACKAGE
691CYGPATH_W
692am__isrc
8c379db2
TT
693MAINT
694MAINTAINER_MODE_FALSE
695MAINTAINER_MODE_TRUE
5d0b3088
MF
696READLINE_CFLAGS
697READLINE_LIB
698TERMCAP_LIB
d57b6533
MF
699SDL_LIBS
700SDL_CFLAGS
b5689863
MF
701lt_cv_dlopen_libs
702OTOOL64
703OTOOL
704LIPO
705NMEDIT
706DSYMUTIL
707AWK
708STRIP
709OBJDUMP
710LN_S
711NM
712ac_ct_DUMPBIN
713DUMPBIN
714LD
715FGREP
716SED
717LIBTOOL
718PLUGINS_FALSE
719PLUGINS_TRUE
720zlibinc
721zlibdir
ce3ec98a
MF
722CATOBJEXT
723GENCAT
724INSTOBJEXT
725DATADIRNAME
726CATALOGS
727POSUB
728GMSGFMT
729XGETTEXT
730INCINTL
731LIBINTL_DEP
732LIBINTL
733USE_NLS
a48ff3ef 734LIBOBJS
c2783492 735C_DIALECT
d57b6533
MF
736PKG_CONFIG_LIBDIR
737PKG_CONFIG_PATH
738PKG_CONFIG
c2783492
MF
739RANLIB
740AR
741LDFLAGS_FOR_BUILD
742CFLAGS_FOR_BUILD
aa0fca16 743RANLIB_FOR_BUILD
c2783492 744CC_FOR_BUILD
aa0fca16 745AR_FOR_BUILD
a979f2a0 746DTC
c2783492
MF
747INSTALL_DATA
748INSTALL_SCRIPT
749INSTALL_PROGRAM
750EGREP
751GREP
752CPP
753OBJEXT
754EXEEXT
755ac_ct_CC
756CPPFLAGS
757LDFLAGS
758CFLAGS
759CC
81ecdfbb
RW
760target_os
761target_vendor
762target_cpu
763target
764host_os
765host_vendor
766host_cpu
767host
768build_os
769build_vendor
770build_cpu
771build
6dd65fc0
MF
772REPORT_BUGS_TEXI
773REPORT_BUGS_TO
774PKGVERSION
81ecdfbb
RW
775target_alias
776host_alias
777build_alias
778LIBS
779ECHO_T
780ECHO_N
781ECHO_C
782DEFS
783mandir
784localedir
785libdir
786psdir
787pdfdir
788dvidir
789htmldir
790infodir
791docdir
792oldincludedir
793includedir
794localstatedir
795sharedstatedir
796sysconfdir
797datadir
798datarootdir
799libexecdir
800sbindir
801bindir
802program_transform_name
803prefix
804exec_prefix
805PACKAGE_URL
806PACKAGE_BUGREPORT
807PACKAGE_STRING
808PACKAGE_VERSION
809PACKAGE_TARNAME
810PACKAGE_NAME
811PATH_SEPARATOR
47ce766a
MF
812SHELL
813WERROR_CFLAGS
814WARN_CFLAGS'
b7026657 815ac_subst_files=''
81ecdfbb
RW
816ac_user_opts='
817enable_option_checking
6dd65fc0
MF
818with_pkgversion
819with_bugurl
b5689863
MF
820with_system_zlib
821enable_plugins
822enable_shared
823enable_static
824with_pic
825enable_fast_install
826with_gnu_ld
827enable_libtool_lock
8c379db2 828enable_maintainer_mode
6bddc3e8 829enable_dependency_tracking
c2783492 830enable_silent_rules
81ecdfbb 831enable_sim
26da232c 832enable_example_sims
a0e674c1 833enable_targets
ba307cdd 834enable_sim_alignment
dba333c1 835enable_sim_assert
1bf5c342 836enable_cgen_maint
04381273 837enable_sim_debug
f9a4d543 838enable_sim_endian
5ea45474 839enable_sim_environment
456ef1c1 840enable_sim_hardware
d73f39ee 841enable_sim_inline
04381273 842enable_sim_profile
b79efe26 843enable_sim_scache
04381273
MF
844enable_sim_stdio
845enable_sim_trace
47ce766a
MF
846enable_werror
847enable_build_warnings
848enable_sim_build_warnings
408a44aa 849enable_sim_frv_trapdump
e173c80f 850enable_sim_rx_cycle_accurate
81ecdfbb
RW
851'
852 ac_precious_vars='build_alias
853host_alias
854target_alias
855CC
856CFLAGS
857LDFLAGS
858LIBS
5e25901f 859CPPFLAGS
d57b6533
MF
860CPP
861PKG_CONFIG
862PKG_CONFIG_PATH
863PKG_CONFIG_LIBDIR
864SDL_CFLAGS
865SDL_LIBS'
d8b04da7 866ac_subdirs_all='bpf
81ecdfbb 867m32r
81ecdfbb
RW
868mips
869mn10300
37f980dc 870or1k
b9249c46 871riscv
81ecdfbb 872ppc
36bb57e4 873v850'
c906108c
SS
874
875# Initialize some variables set by options.
b7026657
AC
876ac_init_help=
877ac_init_version=false
81ecdfbb
RW
878ac_unrecognized_opts=
879ac_unrecognized_sep=
c906108c
SS
880# The variables have the same names as the options, with
881# dashes changed to underlines.
b7026657 882cache_file=/dev/null
c906108c 883exec_prefix=NONE
c906108c 884no_create=
c906108c
SS
885no_recursion=
886prefix=NONE
887program_prefix=NONE
888program_suffix=NONE
889program_transform_name=s,x,x,
890silent=
891site=
892srcdir=
c906108c
SS
893verbose=
894x_includes=NONE
895x_libraries=NONE
b7026657
AC
896
897# Installation directory options.
898# These are left unexpanded so users can "make install exec_prefix=/foo"
899# and all the variables that are supposed to be based on exec_prefix
900# by default will actually change.
901# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 902# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
903bindir='${exec_prefix}/bin'
904sbindir='${exec_prefix}/sbin'
905libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
906datarootdir='${prefix}/share'
907datadir='${datarootdir}'
c906108c
SS
908sysconfdir='${prefix}/etc'
909sharedstatedir='${prefix}/com'
910localstatedir='${prefix}/var'
c906108c
SS
911includedir='${prefix}/include'
912oldincludedir='/usr/include'
6bddc3e8 913docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
914infodir='${datarootdir}/info'
915htmldir='${docdir}'
916dvidir='${docdir}'
917pdfdir='${docdir}'
918psdir='${docdir}'
919libdir='${exec_prefix}/lib'
920localedir='${datarootdir}/locale'
921mandir='${datarootdir}/man'
c906108c 922
c906108c 923ac_prev=
81ecdfbb 924ac_dashdash=
c906108c
SS
925for ac_option
926do
c906108c
SS
927 # If the previous option needs an argument, assign it.
928 if test -n "$ac_prev"; then
81ecdfbb 929 eval $ac_prev=\$ac_option
c906108c
SS
930 ac_prev=
931 continue
932 fi
933
81ecdfbb 934 case $ac_option in
d0ac1c44
SM
935 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
936 *=) ac_optarg= ;;
937 *) ac_optarg=yes ;;
81ecdfbb 938 esac
c906108c
SS
939
940 # Accept the important Cygnus configure options, so we can diagnose typos.
941
81ecdfbb
RW
942 case $ac_dashdash$ac_option in
943 --)
944 ac_dashdash=yes ;;
c906108c
SS
945
946 -bindir | --bindir | --bindi | --bind | --bin | --bi)
947 ac_prev=bindir ;;
948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 949 bindir=$ac_optarg ;;
c906108c
SS
950
951 -build | --build | --buil | --bui | --bu)
b7026657 952 ac_prev=build_alias ;;
c906108c 953 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 954 build_alias=$ac_optarg ;;
c906108c
SS
955
956 -cache-file | --cache-file | --cache-fil | --cache-fi \
957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958 ac_prev=cache_file ;;
959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
961 cache_file=$ac_optarg ;;
962
963 --config-cache | -C)
964 cache_file=config.cache ;;
c906108c 965
81ecdfbb 966 -datadir | --datadir | --datadi | --datad)
c906108c 967 ac_prev=datadir ;;
81ecdfbb 968 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 969 datadir=$ac_optarg ;;
c906108c 970
81ecdfbb
RW
971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972 | --dataroo | --dataro | --datar)
973 ac_prev=datarootdir ;;
974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976 datarootdir=$ac_optarg ;;
977
c906108c 978 -disable-* | --disable-*)
81ecdfbb 979 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 980 # Reject names that are not valid shell variable names.
81ecdfbb 981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 982 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
986 *"
987"enable_$ac_useropt"
988"*) ;;
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
991 esac
992 eval enable_$ac_useropt=no ;;
993
994 -docdir | --docdir | --docdi | --doc | --do)
995 ac_prev=docdir ;;
996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997 docdir=$ac_optarg ;;
998
999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000 ac_prev=dvidir ;;
1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1002 dvidir=$ac_optarg ;;
c906108c
SS
1003
1004 -enable-* | --enable-*)
81ecdfbb 1005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 1006 # Reject names that are not valid shell variable names.
81ecdfbb 1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1008 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1012 *"
1013"enable_$ac_useropt"
1014"*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
fdd6fa61 1017 esac
81ecdfbb 1018 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1019
1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022 | --exec | --exe | --ex)
1023 ac_prev=exec_prefix ;;
1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026 | --exec=* | --exe=* | --ex=*)
b7026657 1027 exec_prefix=$ac_optarg ;;
c906108c
SS
1028
1029 -gas | --gas | --ga | --g)
1030 # Obsolete; use --with-gas.
1031 with_gas=yes ;;
1032
b7026657
AC
1033 -help | --help | --hel | --he | -h)
1034 ac_init_help=long ;;
1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036 ac_init_help=recursive ;;
1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038 ac_init_help=short ;;
c906108c
SS
1039
1040 -host | --host | --hos | --ho)
b7026657 1041 ac_prev=host_alias ;;
c906108c 1042 -host=* | --host=* | --hos=* | --ho=*)
b7026657 1043 host_alias=$ac_optarg ;;
c906108c 1044
81ecdfbb
RW
1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046 ac_prev=htmldir ;;
1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048 | --ht=*)
1049 htmldir=$ac_optarg ;;
1050
c906108c
SS
1051 -includedir | --includedir | --includedi | --included | --include \
1052 | --includ | --inclu | --incl | --inc)
1053 ac_prev=includedir ;;
1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 1056 includedir=$ac_optarg ;;
c906108c
SS
1057
1058 -infodir | --infodir | --infodi | --infod | --info | --inf)
1059 ac_prev=infodir ;;
1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 1061 infodir=$ac_optarg ;;
c906108c
SS
1062
1063 -libdir | --libdir | --libdi | --libd)
1064 ac_prev=libdir ;;
1065 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 1066 libdir=$ac_optarg ;;
c906108c
SS
1067
1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069 | --libexe | --libex | --libe)
1070 ac_prev=libexecdir ;;
1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072 | --libexe=* | --libex=* | --libe=*)
b7026657 1073 libexecdir=$ac_optarg ;;
c906108c 1074
81ecdfbb
RW
1075 -localedir | --localedir | --localedi | --localed | --locale)
1076 ac_prev=localedir ;;
1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078 localedir=$ac_optarg ;;
1079
c906108c 1080 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1081 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
1082 ac_prev=localstatedir ;;
1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 1085 localstatedir=$ac_optarg ;;
c906108c
SS
1086
1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088 ac_prev=mandir ;;
1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 1090 mandir=$ac_optarg ;;
c906108c
SS
1091
1092 -nfp | --nfp | --nf)
1093 # Obsolete; use --without-fp.
1094 with_fp=no ;;
1095
1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1097 | --no-cr | --no-c | -n)
c906108c
SS
1098 no_create=yes ;;
1099
1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102 no_recursion=yes ;;
1103
1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106 | --oldin | --oldi | --old | --ol | --o)
1107 ac_prev=oldincludedir ;;
1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1111 oldincludedir=$ac_optarg ;;
c906108c
SS
1112
1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114 ac_prev=prefix ;;
1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1116 prefix=$ac_optarg ;;
c906108c
SS
1117
1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119 | --program-pre | --program-pr | --program-p)
1120 ac_prev=program_prefix ;;
1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1123 program_prefix=$ac_optarg ;;
c906108c
SS
1124
1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126 | --program-suf | --program-su | --program-s)
1127 ac_prev=program_suffix ;;
1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1130 program_suffix=$ac_optarg ;;
c906108c
SS
1131
1132 -program-transform-name | --program-transform-name \
1133 | --program-transform-nam | --program-transform-na \
1134 | --program-transform-n | --program-transform- \
1135 | --program-transform | --program-transfor \
1136 | --program-transfo | --program-transf \
1137 | --program-trans | --program-tran \
1138 | --progr-tra | --program-tr | --program-t)
1139 ac_prev=program_transform_name ;;
1140 -program-transform-name=* | --program-transform-name=* \
1141 | --program-transform-nam=* | --program-transform-na=* \
1142 | --program-transform-n=* | --program-transform-=* \
1143 | --program-transform=* | --program-transfor=* \
1144 | --program-transfo=* | --program-transf=* \
1145 | --program-trans=* | --program-tran=* \
1146 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1147 program_transform_name=$ac_optarg ;;
c906108c 1148
81ecdfbb
RW
1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150 ac_prev=pdfdir ;;
1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152 pdfdir=$ac_optarg ;;
1153
1154 -psdir | --psdir | --psdi | --psd | --ps)
1155 ac_prev=psdir ;;
1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157 psdir=$ac_optarg ;;
1158
c906108c
SS
1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1161 silent=yes ;;
1162
1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 ac_prev=sbindir ;;
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 | --sbi=* | --sb=*)
b7026657 1167 sbindir=$ac_optarg ;;
c906108c
SS
1168
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1172 | --sha | --sh)
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 | --sha=* | --sh=*)
b7026657 1178 sharedstatedir=$ac_optarg ;;
c906108c
SS
1179
1180 -site | --site | --sit)
1181 ac_prev=site ;;
1182 -site=* | --site=* | --sit=*)
b7026657 1183 site=$ac_optarg ;;
0fda6bd2 1184
c906108c
SS
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 ac_prev=srcdir ;;
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1188 srcdir=$ac_optarg ;;
c906108c
SS
1189
1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1195 sysconfdir=$ac_optarg ;;
c906108c
SS
1196
1197 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1198 ac_prev=target_alias ;;
c906108c 1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1200 target_alias=$ac_optarg ;;
c906108c
SS
1201
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203 verbose=yes ;;
1204
b7026657
AC
1205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
c906108c
SS
1207
1208 -with-* | --with-*)
81ecdfbb 1209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1210 # Reject names that are not valid shell variable names.
81ecdfbb 1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1212 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217"with_$ac_useropt"
1218"*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
fdd6fa61 1221 esac
81ecdfbb 1222 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1223
1224 -without-* | --without-*)
81ecdfbb 1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1226 # Reject names that are not valid shell variable names.
81ecdfbb 1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1228 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1232 *"
1233"with_$ac_useropt"
1234"*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=no ;;
c906108c
SS
1239
1240 --x)
1241 # Obsolete; use --with-x.
1242 with_x=yes ;;
1243
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1249 x_includes=$ac_optarg ;;
c906108c
SS
1250
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1256 x_libraries=$ac_optarg ;;
c906108c 1257
d0ac1c44
SM
1258 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259Try \`$0 --help' for more information"
c906108c
SS
1260 ;;
1261
b7026657
AC
1262 *=*)
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1265 case $ac_envvar in #(
1266 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1268 esac
1269 eval $ac_envvar=\$ac_optarg
b7026657
AC
1270 export $ac_envvar ;;
1271
c906108c 1272 *)
b7026657 1273 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1274 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1276 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1278 ;;
1279
1280 esac
1281done
1282
1283if test -n "$ac_prev"; then
b7026657 1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1285 as_fn_error $? "missing argument to $ac_option"
c906108c 1286fi
c906108c 1287
81ecdfbb
RW
1288if test -n "$ac_unrecognized_opts"; then
1289 case $enable_option_checking in
1290 no) ;;
d0ac1c44 1291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1292 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
fdd6fa61 1293 esac
81ecdfbb 1294fi
fdd6fa61 1295
81ecdfbb
RW
1296# Check all directory arguments for consistency.
1297for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir
c906108c 1301do
81ecdfbb
RW
1302 eval ac_val=\$$ac_var
1303 # Remove trailing slashes.
1304 case $ac_val in
1305 */ )
1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\$ac_val;;
1308 esac
1309 # Be sure to have absolute directory names.
b7026657 1310 case $ac_val in
81ecdfbb
RW
1311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1313 esac
d0ac1c44 1314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1315done
1316
b7026657
AC
1317# There might be people who depend on the old broken behavior: `$host'
1318# used to hold the argument of --host etc.
1319# FIXME: To remove some day.
1320build=$build_alias
1321host=$host_alias
1322target=$target_alias
1323
1324# FIXME: To remove some day.
1325if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
b7026657
AC
1328 elif test "x$build_alias" != "x$host_alias"; then
1329 cross_compiling=yes
1330 fi
1331fi
c906108c 1332
b7026657
AC
1333ac_tool_prefix=
1334test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336test "$silent" = yes && exec 6>/dev/null
c906108c 1337
c906108c 1338
81ecdfbb
RW
1339ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340ac_ls_di=`ls -di .` &&
1341ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1342 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1343test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1344 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1345
1346
c906108c
SS
1347# Find the source files, if location was not specified.
1348if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
81ecdfbb
RW
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356$as_echo X"$as_myself" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\/\)[^/].*/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)$/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\).*/{
1370 s//\1/
1371 q
1372 }
1373 s/.*/./; q'`
c906108c 1374 srcdir=$ac_confdir
81ecdfbb 1375 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1376 srcdir=..
1377 fi
1378else
1379 ac_srcdir_defaulted=no
1380fi
81ecdfbb
RW
1381if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1384fi
1385ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386ac_abs_confdir=`(
d0ac1c44 1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1388 pwd)`
1389# When building in place, set srcdir=.
1390if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 srcdir=.
1392fi
1393# Remove unnecessary trailing slashes from srcdir.
1394# Double slashes in file names in object file debugging info
1395# mess up M-x gdb in Emacs.
1396case $srcdir in
1397*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398esac
1399for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404done
df1756f4
TG
1405
1406#
b7026657
AC
1407# Report the --help message.
1408#
1409if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1412 cat <<_ACEOF
6bddc3e8 1413\`configure' configures sim 0 to adapt to many kinds of systems.
b7026657
AC
1414
1415Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418VAR=VALUE. See below for descriptions of some of the useful variables.
1419
1420Defaults for the options are specified in brackets.
1421
1422Configuration:
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
d0ac1c44 1427 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432
b7026657
AC
1433Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1435 [$ac_default_prefix]
b7026657 1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1437 [PREFIX]
b7026657
AC
1438
1439By default, \`make install' will install all the files in
1440\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442for instance \`--prefix=\$HOME'.
1443
1444For better control, use the options below.
1445
1446Fine tuning of the installation directories:
81ecdfbb
RW
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
6bddc3e8 1461 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
81ecdfbb
RW
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1466_ACEOF
1467
1468 cat <<\_ACEOF
1469
1470Program names:
1471 --program-prefix=PREFIX prepend PREFIX to installed program names
1472 --program-suffix=SUFFIX append SUFFIX to installed program names
1473 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1474
1475System types:
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 --target=TARGET configure for building compilers for TARGET [HOST]
1479_ACEOF
1480fi
1481
1482if test -n "$ac_init_help"; then
6bddc3e8
MF
1483 case $ac_init_help in
1484 short | recursive ) echo "Configuration of sim 0:";;
1485 esac
b7026657
AC
1486 cat <<\_ACEOF
1487
1488Optional Features:
81ecdfbb 1489 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b5689863
MF
1492 --enable-plugins Enable support for plugins
1493 --enable-shared[=PKGS] build shared libraries [default=yes]
1494 --enable-static[=PKGS] build static libraries [default=yes]
1495 --enable-fast-install[=PKGS]
1496 optimize for fast installation [default=yes]
1497 --disable-libtool-lock avoid locking (might break parallel builds)
8c379db2
TT
1498 --enable-maintainer-mode
1499 enable make rules and dependencies not useful (and
1500 sometimes confusing) to the casual installer
6bddc3e8
MF
1501 --enable-dependency-tracking
1502 do not reject slow dependency extractors
1503 --disable-dependency-tracking
1504 speeds up one-time build
c2783492
MF
1505 --enable-silent-rules less verbose build output (undo: "make V=1")
1506 --disable-silent-rules verbose build output (undo: "make V=0")
8d0978fb 1507 --enable-sim Enable the GNU simulator
26da232c 1508 --enable-example-sims enable example GNU simulators
a0e674c1 1509 --enable-targets alternative target configurations
ba307cdd
MF
1510 --enable-sim-alignment=align
1511 Specify strict, nonstrict or forced alignment of
1512 memory accesses
dba333c1 1513 --enable-sim-assert Specify whether to perform random assertions
1bf5c342 1514 --enable-cgen-maint=DIR build cgen generated files
04381273
MF
1515 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1516 itself)
f9a4d543
MF
1517 --enable-sim-endian=endian
1518 Specify target byte endian orientation
5ea45474
MF
1519 --enable-sim-environment=environment
1520 Specify mixed, user, virtual or operating
1521 environment
456ef1c1 1522 --enable-sim-hardware Whether to enable hardware/device simulation
d73f39ee
MF
1523 --enable-sim-inline=inlines
1524 Specify which functions should be inlined
04381273
MF
1525 --enable-sim-profile=opts
1526 Enable profiling flags
b79efe26
MF
1527 --enable-sim-scache=size
1528 Specify simulator execution cache size
04381273
MF
1529 --enable-sim-stdio Specify whether to use stdio for console
1530 input/output
1531 --enable-sim-trace=opts Enable tracing of simulated programs
47ce766a
MF
1532 --enable-werror treat compile warnings as errors
1533 --enable-build-warnings enable build-time compiler warnings if gcc is used
1534 --enable-sim-build-warnings
1535 enable SIM specific build-time compiler warnings if
1536 gcc is used
408a44aa
MF
1537 --enable-sim-frv-trapdump
1538 Make unknown traps dump the registers
e173c80f
MF
1539 --disable-sim-rx-cycle-accurate
1540 Disable cycle accurate simulation (faster runtime)
b7026657 1541
6dd65fc0
MF
1542Optional Packages:
1543 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1544 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1545 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1546 --with-bugurl=URL Direct users to URL to report a bug
b5689863
MF
1547 --with-system-zlib use installed libz
1548 --with-pic try to use only PIC/non-PIC objects [default=use
1549 both]
1550 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
6dd65fc0 1551
b7026657
AC
1552Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
81ecdfbb 1557 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1558 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1559 you have headers in a nonstandard directory <include dir>
5e25901f 1560 CPP C preprocessor
d57b6533
MF
1561 PKG_CONFIG path to pkg-config utility
1562 PKG_CONFIG_PATH
1563 directories to add to pkg-config's search path
1564 PKG_CONFIG_LIBDIR
1565 path overriding pkg-config's built-in search path
1566 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1567 SDL_LIBS linker flags for SDL, overriding pkg-config
b7026657
AC
1568
1569Use these variables to override the choices made by `configure' or to help
1570it to find libraries and programs with nonstandard names/locations.
1571
6bddc3e8
MF
1572Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
1573sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
b7026657 1574_ACEOF
81ecdfbb 1575ac_status=$?
b7026657
AC
1576fi
1577
1578if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
b7026657 1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1581 test -d "$ac_dir" ||
1582 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583 continue
b7026657
AC
1584 ac_builddir=.
1585
81ecdfbb
RW
1586case "$ac_dir" in
1587.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588*)
1589 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 esac ;;
1596esac
1597ac_abs_top_builddir=$ac_pwd
1598ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599# for backward compatibility:
1600ac_top_builddir=$ac_top_build_prefix
b7026657
AC
1601
1602case $srcdir in
81ecdfbb 1603 .) # We are building in place.
b7026657 1604 ac_srcdir=.
81ecdfbb
RW
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1608 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1611 *) # Relative name.
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
fdd6fa61 1615esac
81ecdfbb 1616ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
fdd6fa61 1617
81ecdfbb
RW
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1621 echo &&
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1624 echo &&
1625 $SHELL "$ac_srcdir/configure" --help=recursive
0fda6bd2 1626 else
81ecdfbb
RW
1627 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628 fi || ac_status=$?
1629 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1630 done
1631fi
1632
81ecdfbb 1633test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1634if $ac_init_version; then
1635 cat <<\_ACEOF
6bddc3e8 1636sim configure 0
d0ac1c44 1637generated by GNU Autoconf 2.69
b7026657 1638
d0ac1c44 1639Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1640This configure script is free software; the Free Software Foundation
1641gives unlimited permission to copy, distribute and modify it.
1642_ACEOF
81ecdfbb 1643 exit
b7026657 1644fi
81ecdfbb
RW
1645
1646## ------------------------ ##
1647## Autoconf initialization. ##
1648## ------------------------ ##
1649
1650# ac_fn_c_try_compile LINENO
1651# --------------------------
1652# Try to compile conftest.$ac_ext, and return whether this succeeded.
1653ac_fn_c_try_compile ()
1654{
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext
1657 if { { ac_try="$ac_compile"
1658case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_compile") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest.$ac_objext; then :
1676 ac_retval=0
1677else
1678 $as_echo "$as_me: failed program was:" >&5
1679sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682fi
d0ac1c44
SM
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
81ecdfbb
RW
1685
1686} # ac_fn_c_try_compile
5e25901f
MF
1687
1688# ac_fn_c_try_cpp LINENO
1689# ----------------------
1690# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691ac_fn_c_try_cpp ()
1692{
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1695case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } > conftest.i && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 }; then :
1713 ac_retval=0
1714else
1715 $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719fi
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723} # ac_fn_c_try_cpp
c2783492
MF
1724
1725# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1726# -------------------------------------------------------
1727# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1728# the include files in INCLUDES and setting the cache variable VAR
1729# accordingly.
1730ac_fn_c_check_header_mongrel ()
1731{
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if eval \${$3+:} false; then :
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735$as_echo_n "checking for $2... " >&6; }
1736if eval \${$3+:} false; then :
1737 $as_echo_n "(cached) " >&6
1738fi
1739eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741$as_echo "$ac_res" >&6; }
1742else
1743 # Is the header compilable?
1744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1745$as_echo_n "checking $2 usability... " >&6; }
1746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h. */
1748$4
1749#include <$2>
1750_ACEOF
1751if ac_fn_c_try_compile "$LINENO"; then :
1752 ac_header_compiler=yes
1753else
1754 ac_header_compiler=no
1755fi
1756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1758$as_echo "$ac_header_compiler" >&6; }
1759
1760# Is the header present?
1761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1762$as_echo_n "checking $2 presence... " >&6; }
1763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h. */
1765#include <$2>
1766_ACEOF
1767if ac_fn_c_try_cpp "$LINENO"; then :
1768 ac_header_preproc=yes
1769else
1770 ac_header_preproc=no
1771fi
1772rm -f conftest.err conftest.i conftest.$ac_ext
1773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1774$as_echo "$ac_header_preproc" >&6; }
1775
1776# So? What about this header?
1777case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778 yes:no: )
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1780$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1783 ;;
1784 no:yes:* )
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1786$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1788$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1790$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1792$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795( $as_echo "## -------------------------------------------------------------------------------------- ##
1796## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
1797## -------------------------------------------------------------------------------------- ##"
1798 ) | sed "s/^/$as_me: WARNING: /" >&2
1799 ;;
1800esac
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802$as_echo_n "checking for $2... " >&6; }
1803if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1805else
1806 eval "$3=\$ac_header_compiler"
1807fi
1808eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811fi
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
1814} # ac_fn_c_check_header_mongrel
1815
1816# ac_fn_c_try_run LINENO
1817# ----------------------
1818# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1819# that executables *can* be run.
1820ac_fn_c_try_run ()
1821{
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_link"
1824case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827esac
1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829$as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>&5
1831 ac_status=$?
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1834 { { case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837esac
1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839$as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_try") 2>&5
1841 ac_status=$?
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; }; }; then :
1844 ac_retval=0
1845else
1846 $as_echo "$as_me: program exited with status $ac_status" >&5
1847 $as_echo "$as_me: failed program was:" >&5
1848sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=$ac_status
1851fi
1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1855
1856} # ac_fn_c_try_run
1857
1858# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1859# -------------------------------------------------------
1860# Tests whether HEADER exists and can be compiled using the include files in
1861# INCLUDES, setting the cache variable VAR accordingly.
1862ac_fn_c_check_header_compile ()
1863{
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866$as_echo_n "checking for $2... " >&6; }
1867if eval \${$3+:} false; then :
1868 $as_echo_n "(cached) " >&6
1869else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h. */
1872$4
1873#include <$2>
1874_ACEOF
1875if ac_fn_c_try_compile "$LINENO"; then :
1876 eval "$3=yes"
1877else
1878 eval "$3=no"
1879fi
1880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881fi
1882eval ac_res=\$$3
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884$as_echo "$ac_res" >&6; }
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886
1887} # ac_fn_c_check_header_compile
b15c5d7a
MF
1888
1889# ac_fn_c_try_link LINENO
1890# -----------------------
1891# Try to link conftest.$ac_ext, and return whether this succeeded.
1892ac_fn_c_try_link ()
1893{
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 rm -f conftest.$ac_objext conftest$ac_exeext
1896 if { { ac_try="$ac_link"
1897case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900esac
1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902$as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>conftest.err
1904 ac_status=$?
1905 if test -s conftest.err; then
1906 grep -v '^ *+' conftest.err >conftest.er1
1907 cat conftest.er1 >&5
1908 mv -f conftest.er1 conftest.err
1909 fi
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; } && {
1912 test -z "$ac_c_werror_flag" ||
1913 test ! -s conftest.err
1914 } && test -s conftest$ac_exeext && {
1915 test "$cross_compiling" = yes ||
1916 test -x conftest$ac_exeext
1917 }; then :
1918 ac_retval=0
1919else
1920 $as_echo "$as_me: failed program was:" >&5
1921sed 's/^/| /' conftest.$ac_ext >&5
1922
1923 ac_retval=1
1924fi
1925 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1926 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1927 # interfere with the next link command; also delete a directory that is
1928 # left behind by Apple's compiler. We do this before executing the actions.
1929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
1932
1933} # ac_fn_c_try_link
1934
1935# ac_fn_c_check_func LINENO FUNC VAR
1936# ----------------------------------
1937# Tests whether FUNC exists, setting the cache variable VAR accordingly
1938ac_fn_c_check_func ()
1939{
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942$as_echo_n "checking for $2... " >&6; }
1943if eval \${$3+:} false; then :
1944 $as_echo_n "(cached) " >&6
1945else
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h. */
1948/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1950#define $2 innocuous_$2
1951
1952/* System header to define __stub macros and hopefully few prototypes,
1953 which can conflict with char $2 (); below.
1954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1955 <limits.h> exists even on freestanding compilers. */
1956
1957#ifdef __STDC__
1958# include <limits.h>
1959#else
1960# include <assert.h>
1961#endif
1962
1963#undef $2
1964
1965/* Override any GCC internal prototype to avoid an error.
1966 Use char because int might match the return type of a GCC
1967 builtin and then its argument prototype would still apply. */
1968#ifdef __cplusplus
1969extern "C"
1970#endif
1971char $2 ();
1972/* The GNU C library defines this for functions which it implements
1973 to always fail with ENOSYS. Some functions are actually named
1974 something starting with __ and the normal name is an alias. */
1975#if defined __stub_$2 || defined __stub___$2
1976choke me
1977#endif
1978
1979int
1980main ()
1981{
1982return $2 ();
1983 ;
1984 return 0;
1985}
1986_ACEOF
1987if ac_fn_c_try_link "$LINENO"; then :
1988 eval "$3=yes"
1989else
1990 eval "$3=no"
1991fi
1992rm -f core conftest.err conftest.$ac_objext \
1993 conftest$ac_exeext conftest.$ac_ext
1994fi
1995eval ac_res=\$$3
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997$as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000} # ac_fn_c_check_func
2001
2002# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2003# ----------------------------------------------------
2004# Tries to find if the field MEMBER exists in type AGGR, after including
2005# INCLUDES, setting cache variable VAR accordingly.
2006ac_fn_c_check_member ()
2007{
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2010$as_echo_n "checking for $2.$3... " >&6; }
2011if eval \${$4+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h. */
2016$5
2017int
2018main ()
2019{
2020static $2 ac_aggr;
2021if (ac_aggr.$3)
2022return 0;
2023 ;
2024 return 0;
2025}
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028 eval "$4=yes"
2029else
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h. */
2032$5
2033int
2034main ()
2035{
2036static $2 ac_aggr;
2037if (sizeof ac_aggr.$3)
2038return 0;
2039 ;
2040 return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044 eval "$4=yes"
2045else
2046 eval "$4=no"
2047fi
2048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051fi
2052eval ac_res=\$$4
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056
2057} # ac_fn_c_check_member
2058
a48ff3ef
MF
2059# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2060# ---------------------------------------------
2061# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2062# accordingly.
2063ac_fn_c_check_decl ()
2064{
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 as_decl_name=`echo $2|sed 's/ *(.*//'`
2067 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2069$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2070if eval \${$3+:} false; then :
2071 $as_echo_n "(cached) " >&6
2072else
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h. */
2075$4
2076int
2077main ()
2078{
2079#ifndef $as_decl_name
2080#ifdef __cplusplus
2081 (void) $as_decl_use;
2082#else
2083 (void) $as_decl_name;
2084#endif
2085#endif
2086
2087 ;
2088 return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
2092 eval "$3=yes"
2093else
2094 eval "$3=no"
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097fi
2098eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100$as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102
2103} # ac_fn_c_check_decl
2104
b15c5d7a
MF
2105# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2106# -------------------------------------------
2107# Tests whether TYPE exists after having included INCLUDES, setting cache
2108# variable VAR accordingly.
2109ac_fn_c_check_type ()
2110{
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113$as_echo_n "checking for $2... " >&6; }
2114if eval \${$3+:} false; then :
2115 $as_echo_n "(cached) " >&6
2116else
2117 eval "$3=no"
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119/* end confdefs.h. */
2120$4
2121int
2122main ()
2123{
2124if (sizeof ($2))
2125 return 0;
2126 ;
2127 return 0;
2128}
2129_ACEOF
2130if ac_fn_c_try_compile "$LINENO"; then :
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132/* end confdefs.h. */
2133$4
2134int
2135main ()
2136{
2137if (sizeof (($2)))
2138 return 0;
2139 ;
2140 return 0;
2141}
2142_ACEOF
2143if ac_fn_c_try_compile "$LINENO"; then :
2144
2145else
2146 eval "$3=yes"
2147fi
2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149fi
2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151fi
2152eval ac_res=\$$3
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154$as_echo "$ac_res" >&6; }
2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156
2157} # ac_fn_c_check_type
81ecdfbb 2158cat >config.log <<_ACEOF
b7026657
AC
2159This file contains any messages produced by compilers while
2160running configure, to aid debugging if configure makes a mistake.
2161
6bddc3e8 2162It was created by sim $as_me 0, which was
d0ac1c44 2163generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
2164
2165 $ $0 $@
2166
2167_ACEOF
81ecdfbb 2168exec 5>>config.log
b7026657
AC
2169{
2170cat <<_ASUNAME
2171## --------- ##
2172## Platform. ##
2173## --------- ##
2174
2175hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2176uname -m = `(uname -m) 2>/dev/null || echo unknown`
2177uname -r = `(uname -r) 2>/dev/null || echo unknown`
2178uname -s = `(uname -s) 2>/dev/null || echo unknown`
2179uname -v = `(uname -v) 2>/dev/null || echo unknown`
2180
2181/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2182/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2183
2184/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2185/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2186/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 2187/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b7026657
AC
2188/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2189/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2190/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2191
2192_ASUNAME
2193
2194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195for as_dir in $PATH
2196do
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2199 $as_echo "PATH: $as_dir"
2200 done
2201IFS=$as_save_IFS
b7026657
AC
2202
2203} >&5
2204
2205cat >&5 <<_ACEOF
2206
2207
2208## ----------- ##
2209## Core tests. ##
2210## ----------- ##
2211
2212_ACEOF
2213
2214
2215# Keep a trace of the command line.
2216# Strip out --no-create and --no-recursion so they do not pile up.
2217# Strip out --silent because we don't want to record it for future runs.
2218# Also quote any args containing shell meta-characters.
2219# Make two passes to allow for proper duplicate-argument suppression.
2220ac_configure_args=
2221ac_configure_args0=
2222ac_configure_args1=
b7026657
AC
2223ac_must_keep_next=false
2224for ac_pass in 1 2
2225do
2226 for ac_arg
2227 do
2228 case $ac_arg in
2229 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2231 | -silent | --silent | --silen | --sile | --sil)
2232 continue ;;
81ecdfbb
RW
2233 *\'*)
2234 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2235 esac
2236 case $ac_pass in
81ecdfbb 2237 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 2238 2)
81ecdfbb 2239 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
2240 if test $ac_must_keep_next = true; then
2241 ac_must_keep_next=false # Got value, back to normal.
2242 else
2243 case $ac_arg in
2244 *=* | --config-cache | -C | -disable-* | --disable-* \
2245 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2246 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2247 | -with-* | --with-* | -without-* | --without-* | --x)
2248 case "$ac_configure_args0 " in
2249 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2250 esac
2251 ;;
2252 -* ) ac_must_keep_next=true ;;
2253 esac
2254 fi
81ecdfbb 2255 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
2256 ;;
2257 esac
2258 done
2259done
81ecdfbb
RW
2260{ ac_configure_args0=; unset ac_configure_args0;}
2261{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2262
2263# When interrupted or exit'd, cleanup temporary files, and complete
2264# config.log. We remove comments because anyway the quotes in there
2265# would cause problems or look ugly.
81ecdfbb
RW
2266# WARNING: Use '\'' to represent an apostrophe within the trap.
2267# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2268trap 'exit_status=$?
2269 # Save into config.log some information that might help in debugging.
2270 {
2271 echo
2272
d0ac1c44 2273 $as_echo "## ---------------- ##
b7026657 2274## Cache variables. ##
d0ac1c44 2275## ---------------- ##"
b7026657
AC
2276 echo
2277 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2278(
2279 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2280 eval ac_val=\$$ac_var
2281 case $ac_val in #(
2282 *${as_nl}*)
2283 case $ac_var in #(
2284 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2285$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2286 esac
2287 case $ac_var in #(
2288 _ | IFS | as_nl) ;; #(
2289 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2290 *) { eval $ac_var=; unset $ac_var;} ;;
2291 esac ;;
2292 esac
2293 done
b7026657 2294 (set) 2>&1 |
81ecdfbb
RW
2295 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2296 *${as_nl}ac_space=\ *)
b7026657 2297 sed -n \
81ecdfbb
RW
2298 "s/'\''/'\''\\\\'\'''\''/g;
2299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2300 ;; #(
b7026657 2301 *)
81ecdfbb 2302 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2303 ;;
81ecdfbb
RW
2304 esac |
2305 sort
2306)
b7026657
AC
2307 echo
2308
d0ac1c44 2309 $as_echo "## ----------------- ##
b7026657 2310## Output variables. ##
d0ac1c44 2311## ----------------- ##"
b7026657
AC
2312 echo
2313 for ac_var in $ac_subst_vars
2314 do
81ecdfbb
RW
2315 eval ac_val=\$$ac_var
2316 case $ac_val in
2317 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2318 esac
2319 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2320 done | sort
2321 echo
2322
2323 if test -n "$ac_subst_files"; then
d0ac1c44 2324 $as_echo "## ------------------- ##
81ecdfbb 2325## File substitutions. ##
d0ac1c44 2326## ------------------- ##"
b7026657
AC
2327 echo
2328 for ac_var in $ac_subst_files
2329 do
81ecdfbb
RW
2330 eval ac_val=\$$ac_var
2331 case $ac_val in
2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333 esac
2334 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2335 done | sort
2336 echo
2337 fi
2338
2339 if test -s confdefs.h; then
d0ac1c44 2340 $as_echo "## ----------- ##
b7026657 2341## confdefs.h. ##
d0ac1c44 2342## ----------- ##"
b7026657 2343 echo
81ecdfbb 2344 cat confdefs.h
b7026657 2345 echo
0fda6bd2 2346 fi
b7026657 2347 test "$ac_signal" != 0 &&
81ecdfbb
RW
2348 $as_echo "$as_me: caught signal $ac_signal"
2349 $as_echo "$as_me: exit $exit_status"
b7026657 2350 } >&5
81ecdfbb
RW
2351 rm -f core *.core core.conftest.* &&
2352 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2353 exit $exit_status
81ecdfbb 2354' 0
b7026657 2355for ac_signal in 1 2 13 15; do
81ecdfbb 2356 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2357done
2358ac_signal=0
2359
2360# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2361rm -f -r conftest* confdefs.h
2362
2363$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2364
2365# Predefined preprocessor variables.
2366
2367cat >>confdefs.h <<_ACEOF
2368#define PACKAGE_NAME "$PACKAGE_NAME"
2369_ACEOF
2370
b7026657
AC
2371cat >>confdefs.h <<_ACEOF
2372#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2373_ACEOF
2374
b7026657
AC
2375cat >>confdefs.h <<_ACEOF
2376#define PACKAGE_VERSION "$PACKAGE_VERSION"
2377_ACEOF
2378
b7026657
AC
2379cat >>confdefs.h <<_ACEOF
2380#define PACKAGE_STRING "$PACKAGE_STRING"
2381_ACEOF
2382
b7026657
AC
2383cat >>confdefs.h <<_ACEOF
2384#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2385_ACEOF
2386
81ecdfbb
RW
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_URL "$PACKAGE_URL"
2389_ACEOF
2390
b7026657
AC
2391
2392# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2393# Prefer an explicitly selected file to automatically selected ones.
2394ac_site_file1=NONE
2395ac_site_file2=NONE
2396if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2397 # We do not want a PATH search for config.site.
2398 case $CONFIG_SITE in #((
2399 -*) ac_site_file1=./$CONFIG_SITE;;
2400 */*) ac_site_file1=$CONFIG_SITE;;
2401 *) ac_site_file1=./$CONFIG_SITE;;
2402 esac
81ecdfbb
RW
2403elif test "x$prefix" != xNONE; then
2404 ac_site_file1=$prefix/share/config.site
2405 ac_site_file2=$prefix/etc/config.site
2406else
2407 ac_site_file1=$ac_default_prefix/share/config.site
2408 ac_site_file2=$ac_default_prefix/etc/config.site
c906108c 2409fi
81ecdfbb
RW
2410for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2411do
2412 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2413 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2415$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 2416 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2417 . "$ac_site_file" \
2418 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2420as_fn_error $? "failed to load site script $ac_site_file
2421See \`config.log' for more details" "$LINENO" 5; }
c906108c
SS
2422 fi
2423done
2424
2425if test -r "$cache_file"; then
d0ac1c44
SM
2426 # Some versions of bash will fail to source /dev/null (special files
2427 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2428 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2430$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2431 case $cache_file in
81ecdfbb
RW
2432 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2433 *) . "./$cache_file";;
b7026657
AC
2434 esac
2435 fi
c906108c 2436else
81ecdfbb
RW
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2438$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657 2439 >$cache_file
c906108c
SS
2440fi
2441
b15c5d7a
MF
2442as_fn_append ac_header_list " dlfcn.h"
2443as_fn_append ac_header_list " fcntl.h"
2444as_fn_append ac_header_list " fpu_control.h"
2445as_fn_append ac_header_list " termios.h"
2446as_fn_append ac_header_list " unistd.h"
2447as_fn_append ac_header_list " utime.h"
2448as_fn_append ac_header_list " linux/if_tun.h"
2449as_fn_append ac_header_list " linux/mii.h"
2450as_fn_append ac_header_list " linux/types.h"
2451as_fn_append ac_header_list " net/if.h"
2452as_fn_append ac_header_list " netinet/in.h"
2453as_fn_append ac_header_list " netinet/tcp.h"
2454as_fn_append ac_header_list " sys/ioctl.h"
2455as_fn_append ac_header_list " sys/mman.h"
a48ff3ef 2456as_fn_append ac_header_list " sys/mount.h"
b15c5d7a
MF
2457as_fn_append ac_header_list " sys/param.h"
2458as_fn_append ac_header_list " sys/resource.h"
b15c5d7a
MF
2459as_fn_append ac_header_list " sys/socket.h"
2460as_fn_append ac_header_list " sys/stat.h"
a48ff3ef
MF
2461as_fn_append ac_header_list " sys/statfs.h"
2462as_fn_append ac_header_list " sys/termio.h"
2463as_fn_append ac_header_list " sys/termios.h"
2464as_fn_append ac_header_list " sys/types.h"
2465as_fn_append ac_header_list " sys/vfs.h"
b15c5d7a 2466as_fn_append ac_func_list " __setfpucw"
a48ff3ef 2467as_fn_append ac_func_list " access"
b15c5d7a
MF
2468as_fn_append ac_func_list " aint"
2469as_fn_append ac_func_list " anint"
a48ff3ef
MF
2470as_fn_append ac_func_list " cfgetispeed"
2471as_fn_append ac_func_list " cfgetospeed"
2472as_fn_append ac_func_list " cfsetispeed"
2473as_fn_append ac_func_list " cfsetospeed"
2474as_fn_append ac_func_list " chdir"
b15c5d7a 2475as_fn_append ac_func_list " chmod"
a48ff3ef
MF
2476as_fn_append ac_func_list " dup"
2477as_fn_append ac_func_list " dup2"
b15c5d7a
MF
2478as_fn_append ac_func_list " execv"
2479as_fn_append ac_func_list " execve"
a48ff3ef 2480as_fn_append ac_func_list " fcntl"
b15c5d7a 2481as_fn_append ac_func_list " fork"
a48ff3ef
MF
2482as_fn_append ac_func_list " fstat"
2483as_fn_append ac_func_list " fstatfs"
b15c5d7a 2484as_fn_append ac_func_list " ftruncate"
a48ff3ef 2485as_fn_append ac_func_list " getdirentries"
b15c5d7a 2486as_fn_append ac_func_list " getegid"
a48ff3ef 2487as_fn_append ac_func_list " geteuid"
b15c5d7a 2488as_fn_append ac_func_list " getgid"
a48ff3ef
MF
2489as_fn_append ac_func_list " getpid"
2490as_fn_append ac_func_list " getppid"
b15c5d7a 2491as_fn_append ac_func_list " getrusage"
a48ff3ef 2492as_fn_append ac_func_list " gettimeofday"
b15c5d7a 2493as_fn_append ac_func_list " getuid"
a48ff3ef 2494as_fn_append ac_func_list " ioctl"
b15c5d7a 2495as_fn_append ac_func_list " kill"
a48ff3ef
MF
2496as_fn_append ac_func_list " link"
2497as_fn_append ac_func_list " lseek"
b15c5d7a
MF
2498as_fn_append ac_func_list " mmap"
2499as_fn_append ac_func_list " munmap"
a48ff3ef 2500as_fn_append ac_func_list " pipe"
b15c5d7a
MF
2501as_fn_append ac_func_list " posix_fallocate"
2502as_fn_append ac_func_list " pread"
a48ff3ef
MF
2503as_fn_append ac_func_list " rmdir"
2504as_fn_append ac_func_list " setregid"
2505as_fn_append ac_func_list " setreuid"
b15c5d7a 2506as_fn_append ac_func_list " setgid"
a48ff3ef 2507as_fn_append ac_func_list " setuid"
b15c5d7a 2508as_fn_append ac_func_list " sigaction"
a48ff3ef 2509as_fn_append ac_func_list " sigprocmask"
b15c5d7a 2510as_fn_append ac_func_list " sqrt"
a48ff3ef 2511as_fn_append ac_func_list " stat"
b15c5d7a 2512as_fn_append ac_func_list " strsignal"
a48ff3ef
MF
2513as_fn_append ac_func_list " symlink"
2514as_fn_append ac_func_list " tcdrain"
2515as_fn_append ac_func_list " tcflow"
2516as_fn_append ac_func_list " tcflush"
2517as_fn_append ac_func_list " tcgetattr"
2518as_fn_append ac_func_list " tcgetpgrp"
2519as_fn_append ac_func_list " tcsendbreak"
2520as_fn_append ac_func_list " tcsetattr"
2521as_fn_append ac_func_list " tcsetpgrp"
b15c5d7a
MF
2522as_fn_append ac_func_list " time"
2523as_fn_append ac_func_list " truncate"
a48ff3ef
MF
2524as_fn_append ac_func_list " umask"
2525as_fn_append ac_func_list " unlink"
b15c5d7a 2526as_fn_append ac_func_list " utime"
b7026657
AC
2527# Check that the precious variables saved in the cache have kept the same
2528# value.
2529ac_cache_corrupted=false
81ecdfbb 2530for ac_var in $ac_precious_vars; do
b7026657
AC
2531 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2532 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2533 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2534 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2535 case $ac_old_set,$ac_new_set in
2536 set,)
81ecdfbb
RW
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2538$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2539 ac_cache_corrupted=: ;;
2540 ,set)
81ecdfbb
RW
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2542$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2543 ac_cache_corrupted=: ;;
2544 ,);;
2545 *)
2546 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2547 # differences in whitespace do not lead to failure.
2548 ac_old_val_w=`echo x $ac_old_val`
2549 ac_new_val_w=`echo x $ac_new_val`
2550 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2552$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2553 ac_cache_corrupted=:
2554 else
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2556$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2557 eval $ac_var=\$ac_old_val
2558 fi
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2560$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2562$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2563 fi;;
2564 esac
2565 # Pass precious variables to config.status.
2566 if test "$ac_new_set" = set; then
2567 case $ac_new_val in
81ecdfbb 2568 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2569 *) ac_arg=$ac_var=$ac_new_val ;;
2570 esac
2571 case " $ac_configure_args " in
2572 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2573 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657 2574 esac
c906108c 2575 fi
b7026657
AC
2576done
2577if $ac_cache_corrupted; then
81ecdfbb
RW
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2581$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2582 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c906108c 2583fi
81ecdfbb
RW
2584## -------------------- ##
2585## Main body of script. ##
2586## -------------------- ##
c906108c 2587
fdd6fa61
AG
2588ac_ext=c
2589ac_cpp='$CPP $CPPFLAGS'
2590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593
c906108c
SS
2594
2595
8c379db2
TT
2596
2597
2598
6dd65fc0
MF
2599
2600
2601# Check whether --with-pkgversion was given.
2602if test "${with_pkgversion+set}" = set; then :
2603 withval=$with_pkgversion; case "$withval" in
2604 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2605 no) PKGVERSION= ;;
2606 *) PKGVERSION="($withval) " ;;
2607 esac
2608else
2609 PKGVERSION="(SIM) "
2610
2611fi
2612
2613
2614
2615
2616cat >>confdefs.h <<_ACEOF
2617#define PKGVERSION "$PKGVERSION"
2618_ACEOF
2619
2620
2621
2622# Check whether --with-bugurl was given.
2623if test "${with_bugurl+set}" = set; then :
2624 withval=$with_bugurl; case "$withval" in
2625 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2626 no) BUGURL=
2627 ;;
2628 *) BUGURL="$withval"
2629 ;;
2630 esac
2631else
2632 BUGURL="$PACKAGE_BUGREPORT"
2633
2634fi
2635
2636 case ${BUGURL} in
2637 "")
2638 REPORT_BUGS_TO=
2639 REPORT_BUGS_TEXI=
2640 ;;
2641 *)
2642 REPORT_BUGS_TO="<$BUGURL>"
2643 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2644 ;;
2645 esac;
2646
2647
2648
2649
2650cat >>confdefs.h <<_ACEOF
2651#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2652_ACEOF
2653
2654
b15c5d7a
MF
2655ac_config_headers="$ac_config_headers config.h"
2656
2657
6bddc3e8
MF
2658ac_aux_dir=
2659for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2660 if test -f "$ac_dir/install-sh"; then
2661 ac_aux_dir=$ac_dir
2662 ac_install_sh="$ac_aux_dir/install-sh -c"
2663 break
2664 elif test -f "$ac_dir/install.sh"; then
2665 ac_aux_dir=$ac_dir
2666 ac_install_sh="$ac_aux_dir/install.sh -c"
2667 break
2668 elif test -f "$ac_dir/shtool"; then
2669 ac_aux_dir=$ac_dir
2670 ac_install_sh="$ac_aux_dir/shtool install -c"
2671 break
b7026657
AC
2672 fi
2673done
6bddc3e8
MF
2674if test -z "$ac_aux_dir"; then
2675 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
c906108c
SS
2676fi
2677
6bddc3e8
MF
2678# These three variables are undocumented and unsupported,
2679# and are intended to be withdrawn in a future Autoconf release.
2680# They can cause serious problems if a builder's source tree is in a directory
2681# whose full name contains unusual characters.
2682ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2683ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2684ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
81ecdfbb 2685
6bddc3e8
MF
2686
2687# Make sure we can run config.sub.
2688$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2689 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2690
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2692$as_echo_n "checking build system type... " >&6; }
2693if ${ac_cv_build+:} false; then :
81ecdfbb 2694 $as_echo_n "(cached) " >&6
c906108c 2695else
6bddc3e8
MF
2696 ac_build_alias=$build_alias
2697test "x$ac_build_alias" = x &&
2698 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2699test "x$ac_build_alias" = x &&
2700 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2701ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2702 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b7026657
AC
2703
2704fi
6bddc3e8
MF
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2706$as_echo "$ac_cv_build" >&6; }
2707case $ac_cv_build in
2708*-*-*) ;;
2709*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2710esac
6bddc3e8
MF
2711build=$ac_cv_build
2712ac_save_IFS=$IFS; IFS='-'
2713set x $ac_cv_build
2714shift
2715build_cpu=$1
2716build_vendor=$2
2717shift; shift
2718# Remember, the first character of IFS is used to create $*,
2719# except with old shells:
2720build_os=$*
2721IFS=$ac_save_IFS
2722case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
b7026657 2723
6bddc3e8
MF
2724
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2726$as_echo_n "checking host system type... " >&6; }
2727if ${ac_cv_host+:} false; then :
81ecdfbb 2728 $as_echo_n "(cached) " >&6
b7026657 2729else
6bddc3e8
MF
2730 if test "x$host_alias" = x; then
2731 ac_cv_host=$ac_cv_build
b7026657 2732else
6bddc3e8
MF
2733 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2734 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b7026657 2735fi
6bddc3e8 2736
fdd6fa61 2737fi
6bddc3e8
MF
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2739$as_echo "$ac_cv_host" >&6; }
2740case $ac_cv_host in
2741*-*-*) ;;
2742*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2743esac
2744host=$ac_cv_host
2745ac_save_IFS=$IFS; IFS='-'
2746set x $ac_cv_host
2747shift
2748host_cpu=$1
2749host_vendor=$2
2750shift; shift
2751# Remember, the first character of IFS is used to create $*,
2752# except with old shells:
2753host_os=$*
2754IFS=$ac_save_IFS
2755case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
fdd6fa61 2756
fdd6fa61 2757
6bddc3e8
MF
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2759$as_echo_n "checking target system type... " >&6; }
2760if ${ac_cv_target+:} false; then :
81ecdfbb 2761 $as_echo_n "(cached) " >&6
b7026657 2762else
6bddc3e8
MF
2763 if test "x$target_alias" = x; then
2764 ac_cv_target=$ac_cv_host
c906108c 2765else
6bddc3e8
MF
2766 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2767 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2768fi
2769
2770fi
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2772$as_echo "$ac_cv_target" >&6; }
2773case $ac_cv_target in
2774*-*-*) ;;
2775*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2776esac
2777target=$ac_cv_target
2778ac_save_IFS=$IFS; IFS='-'
2779set x $ac_cv_target
2780shift
2781target_cpu=$1
2782target_vendor=$2
2783shift; shift
2784# Remember, the first character of IFS is used to create $*,
2785# except with old shells:
2786target_os=$*
2787IFS=$ac_save_IFS
2788case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2789
2790
2791# The aliases save the names the user supplied, while $host etc.
2792# will get canonicalized.
2793test -n "$target_alias" &&
2794 test "$program_prefix$program_suffix$program_transform_name" = \
2795 NONENONEs,x,x, &&
2796 program_prefix=${target_alias}-
c2783492
MF
2797# Expand $ac_aux_dir to an absolute path.
2798am_aux_dir=`cd "$ac_aux_dir" && pwd`
6bddc3e8 2799
c2783492
MF
2800ac_ext=c
2801ac_cpp='$CPP $CPPFLAGS'
2802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2807set dummy ${ac_tool_prefix}gcc; ac_word=$2
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809$as_echo_n "checking for $ac_word... " >&6; }
2810if ${ac_cv_prog_CC+:} false; then :
2811 $as_echo_n "(cached) " >&6
8c379db2 2812else
c2783492
MF
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2815else
2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH
2818do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827done
2828 done
2829IFS=$as_save_IFS
8c379db2 2830
c2783492
MF
2831fi
2832fi
2833CC=$ac_cv_prog_CC
2834if test -n "$CC"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836$as_echo "$CC" >&6; }
8c379db2 2837else
c2783492
MF
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839$as_echo "no" >&6; }
8c379db2
TT
2840fi
2841
6bddc3e8 2842
c2783492
MF
2843fi
2844if test -z "$ac_cv_prog_CC"; then
2845 ac_ct_CC=$CC
2846 # Extract the first word of "gcc", so it can be a program name with args.
2847set dummy gcc; ac_word=$2
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849$as_echo_n "checking for $ac_word... " >&6; }
2850if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bddc3e8
MF
2851 $as_echo_n "(cached) " >&6
2852else
c2783492
MF
2853 if test -n "$ac_ct_CC"; then
2854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2855else
2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6bddc3e8
MF
2857for as_dir in $PATH
2858do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
c2783492
MF
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_ac_ct_CC="gcc"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867done
6bddc3e8
MF
2868 done
2869IFS=$as_save_IFS
2870
6bddc3e8 2871fi
6bddc3e8 2872fi
c2783492
MF
2873ac_ct_CC=$ac_cv_prog_ac_ct_CC
2874if test -n "$ac_ct_CC"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2876$as_echo "$ac_ct_CC" >&6; }
6bddc3e8 2877else
c2783492
MF
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879$as_echo "no" >&6; }
6bddc3e8
MF
2880fi
2881
c2783492
MF
2882 if test "x$ac_ct_CC" = x; then
2883 CC=""
2884 else
2885 case $cross_compiling:$ac_tool_warned in
2886yes:)
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2889ac_tool_warned=yes ;;
2890esac
2891 CC=$ac_ct_CC
2892 fi
6bddc3e8 2893else
c2783492 2894 CC="$ac_cv_prog_CC"
6bddc3e8
MF
2895fi
2896
c2783492
MF
2897if test -z "$CC"; then
2898 if test -n "$ac_tool_prefix"; then
2899 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2900set dummy ${ac_tool_prefix}cc; ac_word=$2
6bddc3e8
MF
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902$as_echo_n "checking for $ac_word... " >&6; }
c2783492 2903if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2904 $as_echo_n "(cached) " >&6
2905else
c2783492
MF
2906 if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test.
6bddc3e8
MF
2908else
2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910for as_dir in $PATH
2911do
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 2916 ac_cv_prog_CC="${ac_tool_prefix}cc"
6bddc3e8
MF
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 break 2
2919 fi
2920done
2921 done
2922IFS=$as_save_IFS
2923
2924fi
2925fi
c2783492
MF
2926CC=$ac_cv_prog_CC
2927if test -n "$CC"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2929$as_echo "$CC" >&6; }
6bddc3e8
MF
2930else
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932$as_echo "no" >&6; }
2933fi
2934
2935
c2783492 2936 fi
6bddc3e8 2937fi
c2783492
MF
2938if test -z "$CC"; then
2939 # Extract the first word of "cc", so it can be a program name with args.
2940set dummy cc; ac_word=$2
6bddc3e8
MF
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942$as_echo_n "checking for $ac_word... " >&6; }
c2783492 2943if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2944 $as_echo_n "(cached) " >&6
2945else
c2783492
MF
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC="$CC" # Let the user override the test.
6bddc3e8 2948else
c2783492 2949 ac_prog_rejected=no
6bddc3e8
MF
2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492
MF
2957 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2958 ac_prog_rejected=yes
2959 continue
2960 fi
2961 ac_cv_prog_CC="cc"
6bddc3e8
MF
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 break 2
2964 fi
2965done
2966 done
2967IFS=$as_save_IFS
2968
c2783492
MF
2969if test $ac_prog_rejected = yes; then
2970 # We found a bogon in the path, so make sure we never use it.
2971 set dummy $ac_cv_prog_CC
2972 shift
2973 if test $# != 0; then
2974 # We chose a different compiler from the bogus one.
2975 # However, it has the same basename, so the bogon will be chosen
2976 # first if we set CC to just the basename; use the full file name.
2977 shift
2978 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2979 fi
6bddc3e8
MF
2980fi
2981fi
c2783492
MF
2982fi
2983CC=$ac_cv_prog_CC
2984if test -n "$CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986$as_echo "$CC" >&6; }
6bddc3e8
MF
2987else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989$as_echo "no" >&6; }
2990fi
2991
6bddc3e8
MF
2992
2993fi
c2783492
MF
2994if test -z "$CC"; then
2995 if test -n "$ac_tool_prefix"; then
2996 for ac_prog in cl.exe
2997 do
2998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2999set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001$as_echo_n "checking for $ac_word... " >&6; }
3002if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
3003 $as_echo_n "(cached) " >&6
3004else
c2783492
MF
3005 if test -n "$CC"; then
3006 ac_cv_prog_CC="$CC" # Let the user override the test.
3007else
3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
6bddc3e8
MF
3010do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
c2783492
MF
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3015 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3018 fi
3019done
6bddc3e8
MF
3020 done
3021IFS=$as_save_IFS
3022
3023fi
6bddc3e8 3024fi
c2783492
MF
3025CC=$ac_cv_prog_CC
3026if test -n "$CC"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028$as_echo "$CC" >&6; }
3029else
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031$as_echo "no" >&6; }
3032fi
6bddc3e8 3033
c2783492
MF
3034
3035 test -n "$CC" && break
3036 done
3037fi
3038if test -z "$CC"; then
3039 ac_ct_CC=$CC
3040 for ac_prog in cl.exe
6bddc3e8
MF
3041do
3042 # Extract the first word of "$ac_prog", so it can be a program name with args.
3043set dummy $ac_prog; ac_word=$2
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045$as_echo_n "checking for $ac_word... " >&6; }
c2783492 3046if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bddc3e8
MF
3047 $as_echo_n "(cached) " >&6
3048else
c2783492
MF
3049 if test -n "$ac_ct_CC"; then
3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6bddc3e8
MF
3051else
3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 3059 ac_cv_prog_ac_ct_CC="$ac_prog"
6bddc3e8
MF
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3062 fi
3063done
3064 done
3065IFS=$as_save_IFS
3066
3067fi
3068fi
c2783492
MF
3069ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070if test -n "$ac_ct_CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3072$as_echo "$ac_ct_CC" >&6; }
6bddc3e8
MF
3073else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075$as_echo "no" >&6; }
3076fi
3077
3078
c2783492 3079 test -n "$ac_ct_CC" && break
6bddc3e8
MF
3080done
3081
c2783492
MF
3082 if test "x$ac_ct_CC" = x; then
3083 CC=""
3084 else
3085 case $cross_compiling:$ac_tool_warned in
3086yes:)
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3089ac_tool_warned=yes ;;
6bddc3e8 3090esac
c2783492 3091 CC=$ac_ct_CC
6bddc3e8
MF
3092 fi
3093fi
3094
6bddc3e8
MF
3095fi
3096
3097
c2783492
MF
3098test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3100as_fn_error $? "no acceptable C compiler found in \$PATH
3101See \`config.log' for more details" "$LINENO" 5; }
6bddc3e8 3102
c2783492
MF
3103# Provide some information about the compiler.
3104$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3105set X $ac_compile
3106ac_compiler=$2
3107for ac_option in --version -v -V -qversion; do
3108 { { ac_try="$ac_compiler $ac_option >&5"
3109case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112esac
3113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114$as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3116 ac_status=$?
3117 if test -s conftest.err; then
3118 sed '10a\
3119... rest of stderr output deleted ...
3120 10q' conftest.err >conftest.er1
3121 cat conftest.er1 >&5
3122 fi
3123 rm -f conftest.er1 conftest.err
3124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125 test $ac_status = 0; }
3126done
6bddc3e8 3127
c2783492
MF
3128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129/* end confdefs.h. */
6bddc3e8 3130
c2783492
MF
3131int
3132main ()
3133{
6bddc3e8 3134
c2783492
MF
3135 ;
3136 return 0;
3137}
6bddc3e8 3138_ACEOF
c2783492
MF
3139ac_clean_files_save=$ac_clean_files
3140ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3141# Try to create an executable without -o first, disregard a.out.
3142# It will help us diagnose broken compilers, and finding out an intuition
3143# of exeext.
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3145$as_echo_n "checking whether the C compiler works... " >&6; }
3146ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6bddc3e8 3147
c2783492
MF
3148# The possible output files:
3149ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
6bddc3e8 3150
c2783492
MF
3151ac_rmfiles=
3152for ac_file in $ac_files
3153do
3154 case $ac_file in
3155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3156 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3157 esac
3158done
3159rm -f $ac_rmfiles
81ecdfbb
RW
3160
3161if { { ac_try="$ac_link_default"
3162case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165esac
3166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167$as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_link_default") 2>&5
b7026657 3169 ac_status=$?
81ecdfbb
RW
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }; then :
3172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3173# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3174# in a Makefile. We should not override ac_cv_exeext if it was cached,
3175# so that the user can short-circuit this test for compilers unknown to
3176# Autoconf.
3177for ac_file in $ac_files ''
b7026657
AC
3178do
3179 test -f "$ac_file" || continue
3180 case $ac_file in
81ecdfbb 3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b7026657
AC
3182 ;;
3183 [ab].out )
3184 # We found the default executable, but exeext='' is most
3185 # certainly right.
3186 break;;
3187 *.* )
81ecdfbb
RW
3188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3189 then :; else
3190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3191 fi
3192 # We set ac_cv_exeext here because the later test for it is not
3193 # safe: cross compilers may not add the suffix if given an `-o'
3194 # argument, so we may need to know it at that point already.
3195 # Even if this section looks crufty: it has the advantage of
3196 # actually working.
b7026657
AC
3197 break;;
3198 * )
3199 break;;
3200 esac
3201done
81ecdfbb
RW
3202test "$ac_cv_exeext" = no && ac_cv_exeext=
3203
b7026657 3204else
81ecdfbb
RW
3205 ac_file=''
3206fi
81ecdfbb 3207if test -z "$ac_file"; then :
d0ac1c44
SM
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209$as_echo "no" >&6; }
3210$as_echo "$as_me: failed program was:" >&5
b7026657
AC
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
81ecdfbb
RW
3213{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3215as_fn_error 77 "C compiler cannot create executables
3216See \`config.log' for more details" "$LINENO" 5; }
3217else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3219$as_echo "yes" >&6; }
b7026657 3220fi
d0ac1c44
SM
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3222$as_echo_n "checking for C compiler default output file name... " >&6; }
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3224$as_echo "$ac_file" >&6; }
b7026657 3225ac_exeext=$ac_cv_exeext
b7026657 3226
d0ac1c44 3227rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b7026657 3228ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3230$as_echo_n "checking for suffix of executables... " >&6; }
3231if { { ac_try="$ac_link"
3232case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235esac
3236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237$as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_link") 2>&5
b7026657 3239 ac_status=$?
81ecdfbb
RW
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }; then :
b7026657
AC
3242 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3243# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3244# work properly (i.e., refer to `conftest.exe'), while it won't with
3245# `rm'.
3246for ac_file in conftest.exe conftest conftest.*; do
3247 test -f "$ac_file" || continue
3248 case $ac_file in
81ecdfbb 3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b7026657 3250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
3251 break;;
3252 * ) break;;
3253 esac
3254done
c906108c 3255else
81ecdfbb
RW
3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3258as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3259See \`config.log' for more details" "$LINENO" 5; }
c906108c 3260fi
d0ac1c44 3261rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3263$as_echo "$ac_cv_exeext" >&6; }
b7026657
AC
3264
3265rm -f conftest.$ac_ext
3266EXEEXT=$ac_cv_exeext
3267ac_exeext=$EXEEXT
d0ac1c44
SM
3268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269/* end confdefs.h. */
3270#include <stdio.h>
3271int
3272main ()
3273{
3274FILE *f = fopen ("conftest.out", "w");
3275 return ferror (f) || fclose (f) != 0;
3276
3277 ;
3278 return 0;
3279}
3280_ACEOF
3281ac_clean_files="$ac_clean_files conftest.out"
3282# Check that the compiler produces executables we can run. If not, either
3283# the compiler is broken, or we cross compile.
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3285$as_echo_n "checking whether we are cross compiling... " >&6; }
3286if test "$cross_compiling" != yes; then
3287 { { ac_try="$ac_link"
3288case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291esac
3292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293$as_echo "$ac_try_echo"; } >&5
3294 (eval "$ac_link") 2>&5
3295 ac_status=$?
3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297 test $ac_status = 0; }
3298 if { ac_try='./conftest$ac_cv_exeext'
3299 { { case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302esac
3303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3304$as_echo "$ac_try_echo"; } >&5
3305 (eval "$ac_try") 2>&5
3306 ac_status=$?
3307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3308 test $ac_status = 0; }; }; then
3309 cross_compiling=no
3310 else
3311 if test "$cross_compiling" = maybe; then
3312 cross_compiling=yes
3313 else
3314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316as_fn_error $? "cannot run C compiled programs.
3317If you meant to cross compile, use \`--host'.
3318See \`config.log' for more details" "$LINENO" 5; }
3319 fi
3320 fi
3321fi
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3323$as_echo "$cross_compiling" >&6; }
3324
3325rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3326ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3328$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 3329if ${ac_cv_objext+:} false; then :
81ecdfbb 3330 $as_echo_n "(cached) " >&6
b7026657 3331else
81ecdfbb 3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3333/* end confdefs.h. */
3334
3335int
3336main ()
3337{
3338
3339 ;
3340 return 0;
3341}
3342_ACEOF
3343rm -f conftest.o conftest.obj
81ecdfbb
RW
3344if { { ac_try="$ac_compile"
3345case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348esac
3349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350$as_echo "$ac_try_echo"; } >&5
3351 (eval "$ac_compile") 2>&5
b7026657 3352 ac_status=$?
81ecdfbb
RW
3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }; then :
3355 for ac_file in conftest.o conftest.obj conftest.*; do
3356 test -f "$ac_file" || continue;
b7026657 3357 case $ac_file in
81ecdfbb 3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b7026657
AC
3359 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3360 break;;
3361 esac
3362done
3363else
81ecdfbb 3364 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
3365sed 's/^/| /' conftest.$ac_ext >&5
3366
81ecdfbb
RW
3367{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3369as_fn_error $? "cannot compute suffix of object files: cannot compile
3370See \`config.log' for more details" "$LINENO" 5; }
c906108c 3371fi
b7026657
AC
3372rm -f conftest.$ac_cv_objext conftest.$ac_ext
3373fi
81ecdfbb
RW
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3375$as_echo "$ac_cv_objext" >&6; }
b7026657
AC
3376OBJEXT=$ac_cv_objext
3377ac_objext=$OBJEXT
81ecdfbb
RW
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3379$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3380if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3381 $as_echo_n "(cached) " >&6
b7026657 3382else
81ecdfbb 3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3384/* end confdefs.h. */
3385
3386int
3387main ()
3388{
3389#ifndef __GNUC__
3390 choke me
3391#endif
c906108c 3392
b7026657
AC
3393 ;
3394 return 0;
3395}
3396_ACEOF
81ecdfbb 3397if ac_fn_c_try_compile "$LINENO"; then :
b7026657 3398 ac_compiler_gnu=yes
c906108c 3399else
81ecdfbb 3400 ac_compiler_gnu=no
c906108c 3401fi
81ecdfbb 3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3403ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c 3404
b7026657 3405fi
81ecdfbb
RW
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3407$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3408if test $ac_compiler_gnu = yes; then
3409 GCC=yes
3410else
3411 GCC=
3412fi
b7026657
AC
3413ac_test_CFLAGS=${CFLAGS+set}
3414ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3416$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3417if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb 3418 $as_echo_n "(cached) " >&6
c906108c 3419else
81ecdfbb
RW
3420 ac_save_c_werror_flag=$ac_c_werror_flag
3421 ac_c_werror_flag=yes
3422 ac_cv_prog_cc_g=no
3423 CFLAGS="-g"
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3425/* end confdefs.h. */
3426
3427int
3428main ()
3429{
3430
3431 ;
3432 return 0;
3433}
3434_ACEOF
81ecdfbb 3435if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
3436 ac_cv_prog_cc_g=yes
3437else
81ecdfbb
RW
3438 CFLAGS=""
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440/* end confdefs.h. */
3441
3442int
3443main ()
3444{
3445
3446 ;
3447 return 0;
3448}
3449_ACEOF
3450if ac_fn_c_try_compile "$LINENO"; then :
3451
3452else
3453 ac_c_werror_flag=$ac_save_c_werror_flag
3454 CFLAGS="-g"
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456/* end confdefs.h. */
3457
3458int
3459main ()
3460{
c906108c 3461
81ecdfbb
RW
3462 ;
3463 return 0;
3464}
3465_ACEOF
3466if ac_fn_c_try_compile "$LINENO"; then :
3467 ac_cv_prog_cc_g=yes
3468fi
3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3470fi
81ecdfbb 3471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3472fi
81ecdfbb
RW
3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 ac_c_werror_flag=$ac_save_c_werror_flag
3475fi
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3477$as_echo "$ac_cv_prog_cc_g" >&6; }
c906108c 3478if test "$ac_test_CFLAGS" = set; then
b7026657 3479 CFLAGS=$ac_save_CFLAGS
c906108c
SS
3480elif test $ac_cv_prog_cc_g = yes; then
3481 if test "$GCC" = yes; then
3482 CFLAGS="-g -O2"
3483 else
3484 CFLAGS="-g"
3485 fi
3486else
3487 if test "$GCC" = yes; then
3488 CFLAGS="-O2"
3489 else
3490 CFLAGS=
3491 fi
3492fi
81ecdfbb
RW
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3494$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3495if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3496 $as_echo_n "(cached) " >&6
b7026657 3497else
81ecdfbb 3498 ac_cv_prog_cc_c89=no
b7026657 3499ac_save_CC=$CC
81ecdfbb 3500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3501/* end confdefs.h. */
3502#include <stdarg.h>
3503#include <stdio.h>
d0ac1c44 3504struct stat;
b7026657
AC
3505/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3506struct buf { int x; };
3507FILE * (*rcsopen) (struct buf *, struct stat *, int);
3508static char *e (p, i)
3509 char **p;
3510 int i;
3511{
3512 return p[i];
3513}
3514static char *f (char * (*g) (char **, int), char **p, ...)
3515{
3516 char *s;
3517 va_list v;
3518 va_start (v,p);
3519 s = g (p, va_arg (v,int));
3520 va_end (v);
3521 return s;
3522}
3523
3524/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3525 function prototypes and stuff, but not '\xHH' hex character constants.
3526 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3527 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
3528 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3529 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3530 that's true only with -std. */
b7026657
AC
3531int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3532
81ecdfbb
RW
3533/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3534 inside strings and character constants. */
3535#define FOO(x) 'x'
3536int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3537
b7026657
AC
3538int test (int i, double x);
3539struct s1 {int (*f) (int a);};
3540struct s2 {int (*f) (double a);};
3541int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3542int argc;
3543char **argv;
3544int
3545main ()
3546{
3547return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3548 ;
3549 return 0;
3550}
3551_ACEOF
81ecdfbb
RW
3552for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3553 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
3554do
3555 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3556 if ac_fn_c_try_compile "$LINENO"; then :
3557 ac_cv_prog_cc_c89=$ac_arg
b7026657 3558fi
81ecdfbb
RW
3559rm -f core conftest.err conftest.$ac_objext
3560 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 3561done
81ecdfbb 3562rm -f conftest.$ac_ext
b7026657
AC
3563CC=$ac_save_CC
3564
3565fi
81ecdfbb
RW
3566# AC_CACHE_VAL
3567case "x$ac_cv_prog_cc_c89" in
3568 x)
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3570$as_echo "none needed" >&6; } ;;
3571 xno)
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3573$as_echo "unsupported" >&6; } ;;
b7026657 3574 *)
81ecdfbb
RW
3575 CC="$CC $ac_cv_prog_cc_c89"
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3577$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b7026657 3578esac
81ecdfbb 3579if test "x$ac_cv_prog_cc_c89" != xno; then :
b7026657 3580
fdd6fa61
AG
3581fi
3582
fdd6fa61
AG
3583ac_ext=c
3584ac_cpp='$CPP $CPPFLAGS'
3585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587ac_compiler_gnu=$ac_cv_c_compiler_gnu
3588
c2783492
MF
3589ac_ext=c
3590ac_cpp='$CPP $CPPFLAGS'
3591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3595$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3596if ${am_cv_prog_cc_c_o+:} false; then :
3597 $as_echo_n "(cached) " >&6
3598else
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600/* end confdefs.h. */
3601
3602int
3603main ()
3604{
3605
3606 ;
3607 return 0;
3608}
3609_ACEOF
3610 # Make sure it works both with $CC and with simple cc.
3611 # Following AC_PROG_CC_C_O, we do the test twice because some
3612 # compilers refuse to overwrite an existing .o file with -o,
3613 # though they will create one.
3614 am_cv_prog_cc_c_o=yes
3615 for am_i in 1 2; do
3616 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3617 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } \
3621 && test -f conftest2.$ac_objext; then
3622 : OK
3623 else
3624 am_cv_prog_cc_c_o=no
3625 break
3626 fi
3627 done
3628 rm -f core conftest*
3629 unset am_i
3630fi
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3632$as_echo "$am_cv_prog_cc_c_o" >&6; }
3633if test "$am_cv_prog_cc_c_o" != yes; then
3634 # Losing compiler, so override with the script.
3635 # FIXME: It is wrong to rewrite CC.
3636 # But if we don't then we get into trouble of one sort or another.
3637 # A longer-term fix would be to have automake use am__CC in this case,
3638 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3639 CC="$am_aux_dir/compile $CC"
3640fi
3641ac_ext=c
3642ac_cpp='$CPP $CPPFLAGS'
3643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3645ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646
3647
3648
3649ac_ext=c
3650ac_cpp='$CPP $CPPFLAGS'
3651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3655$as_echo_n "checking how to run the C preprocessor... " >&6; }
3656# On Suns, sometimes $CPP names a directory.
3657if test -n "$CPP" && test -d "$CPP"; then
3658 CPP=
3659fi
3660if test -z "$CPP"; then
3661 if ${ac_cv_prog_CPP+:} false; then :
3662 $as_echo_n "(cached) " >&6
3663else
3664 # Double quotes because CPP needs to be expanded
3665 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3666 do
3667 ac_preproc_ok=false
3668for ac_c_preproc_warn_flag in '' yes
3669do
3670 # Use a header file that comes with gcc, so configuring glibc
3671 # with a fresh cross-compiler works.
3672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3673 # <limits.h> exists even on freestanding compilers.
3674 # On the NeXT, cc -E runs the code through the compiler's parser,
3675 # not just through cpp. "Syntax error" is here to catch this case.
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677/* end confdefs.h. */
3678#ifdef __STDC__
3679# include <limits.h>
3680#else
3681# include <assert.h>
3682#endif
3683 Syntax error
3684_ACEOF
3685if ac_fn_c_try_cpp "$LINENO"; then :
3686
3687else
3688 # Broken: fails on valid input.
3689continue
3690fi
3691rm -f conftest.err conftest.i conftest.$ac_ext
3692
3693 # OK, works on sane cases. Now check whether nonexistent headers
3694 # can be detected and how.
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696/* end confdefs.h. */
3697#include <ac_nonexistent.h>
3698_ACEOF
3699if ac_fn_c_try_cpp "$LINENO"; then :
3700 # Broken: success on invalid input.
3701continue
3702else
3703 # Passes both tests.
3704ac_preproc_ok=:
3705break
3706fi
3707rm -f conftest.err conftest.i conftest.$ac_ext
3708
3709done
3710# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3711rm -f conftest.i conftest.err conftest.$ac_ext
3712if $ac_preproc_ok; then :
3713 break
3714fi
3715
3716 done
3717 ac_cv_prog_CPP=$CPP
3718
3719fi
3720 CPP=$ac_cv_prog_CPP
3721else
3722 ac_cv_prog_CPP=$CPP
3723fi
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3725$as_echo "$CPP" >&6; }
3726ac_preproc_ok=false
3727for ac_c_preproc_warn_flag in '' yes
3728do
3729 # Use a header file that comes with gcc, so configuring glibc
3730 # with a fresh cross-compiler works.
3731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3732 # <limits.h> exists even on freestanding compilers.
3733 # On the NeXT, cc -E runs the code through the compiler's parser,
3734 # not just through cpp. "Syntax error" is here to catch this case.
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736/* end confdefs.h. */
3737#ifdef __STDC__
3738# include <limits.h>
3739#else
3740# include <assert.h>
3741#endif
3742 Syntax error
3743_ACEOF
3744if ac_fn_c_try_cpp "$LINENO"; then :
3745
3746else
3747 # Broken: fails on valid input.
3748continue
3749fi
3750rm -f conftest.err conftest.i conftest.$ac_ext
3751
3752 # OK, works on sane cases. Now check whether nonexistent headers
3753 # can be detected and how.
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755/* end confdefs.h. */
3756#include <ac_nonexistent.h>
3757_ACEOF
3758if ac_fn_c_try_cpp "$LINENO"; then :
3759 # Broken: success on invalid input.
3760continue
3761else
3762 # Passes both tests.
3763ac_preproc_ok=:
3764break
3765fi
3766rm -f conftest.err conftest.i conftest.$ac_ext
3767
3768done
3769# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3770rm -f conftest.i conftest.err conftest.$ac_ext
3771if $ac_preproc_ok; then :
3772
3773else
3774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3777See \`config.log' for more details" "$LINENO" 5; }
3778fi
3779
3780ac_ext=c
3781ac_cpp='$CPP $CPPFLAGS'
3782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785
3786
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3788$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3789if ${ac_cv_path_GREP+:} false; then :
3790 $as_echo_n "(cached) " >&6
3791else
3792 if test -z "$GREP"; then
3793 ac_path_GREP_found=false
3794 # Loop through the user's path and test for each of PROGNAME-LIST
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3797do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_prog in grep ggrep; do
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3803 as_fn_executable_p "$ac_path_GREP" || continue
3804# Check for GNU ac_path_GREP and select it if it is found.
3805 # Check for GNU $ac_path_GREP
3806case `"$ac_path_GREP" --version 2>&1` in
3807*GNU*)
3808 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3809*)
3810 ac_count=0
3811 $as_echo_n 0123456789 >"conftest.in"
3812 while :
3813 do
3814 cat "conftest.in" "conftest.in" >"conftest.tmp"
3815 mv "conftest.tmp" "conftest.in"
3816 cp "conftest.in" "conftest.nl"
3817 $as_echo 'GREP' >> "conftest.nl"
3818 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3819 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3820 as_fn_arith $ac_count + 1 && ac_count=$as_val
3821 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3822 # Best one so far, save it but keep looking for a better one
3823 ac_cv_path_GREP="$ac_path_GREP"
3824 ac_path_GREP_max=$ac_count
3825 fi
3826 # 10*(2^10) chars as input seems more than enough
3827 test $ac_count -gt 10 && break
3828 done
3829 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3830esac
3831
3832 $ac_path_GREP_found && break 3
3833 done
3834 done
3835 done
3836IFS=$as_save_IFS
3837 if test -z "$ac_cv_path_GREP"; then
3838 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3839 fi
3840else
3841 ac_cv_path_GREP=$GREP
3842fi
3843
3844fi
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3846$as_echo "$ac_cv_path_GREP" >&6; }
3847 GREP="$ac_cv_path_GREP"
3848
3849
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3851$as_echo_n "checking for egrep... " >&6; }
3852if ${ac_cv_path_EGREP+:} false; then :
3853 $as_echo_n "(cached) " >&6
3854else
3855 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3856 then ac_cv_path_EGREP="$GREP -E"
3857 else
3858 if test -z "$EGREP"; then
3859 ac_path_EGREP_found=false
3860 # Loop through the user's path and test for each of PROGNAME-LIST
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3863do
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 for ac_prog in egrep; do
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3869 as_fn_executable_p "$ac_path_EGREP" || continue
3870# Check for GNU ac_path_EGREP and select it if it is found.
3871 # Check for GNU $ac_path_EGREP
3872case `"$ac_path_EGREP" --version 2>&1` in
3873*GNU*)
3874 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3875*)
3876 ac_count=0
3877 $as_echo_n 0123456789 >"conftest.in"
3878 while :
3879 do
3880 cat "conftest.in" "conftest.in" >"conftest.tmp"
3881 mv "conftest.tmp" "conftest.in"
3882 cp "conftest.in" "conftest.nl"
3883 $as_echo 'EGREP' >> "conftest.nl"
3884 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3885 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3886 as_fn_arith $ac_count + 1 && ac_count=$as_val
3887 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3888 # Best one so far, save it but keep looking for a better one
3889 ac_cv_path_EGREP="$ac_path_EGREP"
3890 ac_path_EGREP_max=$ac_count
3891 fi
3892 # 10*(2^10) chars as input seems more than enough
3893 test $ac_count -gt 10 && break
3894 done
3895 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3896esac
3897
3898 $ac_path_EGREP_found && break 3
3899 done
3900 done
3901 done
3902IFS=$as_save_IFS
3903 if test -z "$ac_cv_path_EGREP"; then
3904 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3905 fi
3906else
3907 ac_cv_path_EGREP=$EGREP
3908fi
3909
3910 fi
3911fi
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3913$as_echo "$ac_cv_path_EGREP" >&6; }
3914 EGREP="$ac_cv_path_EGREP"
3915
3916
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3918$as_echo_n "checking for ANSI C header files... " >&6; }
3919if ${ac_cv_header_stdc+:} false; then :
6bddc3e8
MF
3920 $as_echo_n "(cached) " >&6
3921else
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923/* end confdefs.h. */
c2783492
MF
3924#include <stdlib.h>
3925#include <stdarg.h>
3926#include <string.h>
3927#include <float.h>
6bddc3e8
MF
3928
3929int
3930main ()
3931{
3932
3933 ;
3934 return 0;
3935}
3936_ACEOF
c2783492
MF
3937if ac_fn_c_try_compile "$LINENO"; then :
3938 ac_cv_header_stdc=yes
3939else
3940 ac_cv_header_stdc=no
fdd6fa61 3941fi
c2783492 3942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81ecdfbb 3943
c2783492
MF
3944if test $ac_cv_header_stdc = yes; then
3945 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947/* end confdefs.h. */
3948#include <string.h>
6bddc3e8 3949
c2783492
MF
3950_ACEOF
3951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3952 $EGREP "memchr" >/dev/null 2>&1; then :
6bddc3e8 3953
c2783492
MF
3954else
3955 ac_cv_header_stdc=no
3956fi
3957rm -f conftest*
6bddc3e8 3958
6bddc3e8 3959fi
81ecdfbb 3960
c2783492
MF
3961if test $ac_cv_header_stdc = yes; then
3962 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964/* end confdefs.h. */
3965#include <stdlib.h>
fdd6fa61 3966
c2783492
MF
3967_ACEOF
3968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3969 $EGREP "free" >/dev/null 2>&1; then :
6bddc3e8 3970
c2783492
MF
3971else
3972 ac_cv_header_stdc=no
6bddc3e8 3973fi
c2783492 3974rm -f conftest*
6bddc3e8 3975
6bddc3e8 3976fi
c2783492
MF
3977
3978if test $ac_cv_header_stdc = yes; then
3979 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3980 if test "$cross_compiling" = yes; then :
3981 :
6bddc3e8 3982else
c2783492
MF
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984/* end confdefs.h. */
3985#include <ctype.h>
3986#include <stdlib.h>
3987#if ((' ' & 0x0FF) == 0x020)
3988# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3989# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3990#else
3991# define ISLOWER(c) \
3992 (('a' <= (c) && (c) <= 'i') \
3993 || ('j' <= (c) && (c) <= 'r') \
3994 || ('s' <= (c) && (c) <= 'z'))
3995# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3996#endif
3997
3998#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3999int
4000main ()
4001{
4002 int i;
4003 for (i = 0; i < 256; i++)
4004 if (XOR (islower (i), ISLOWER (i))
4005 || toupper (i) != TOUPPER (i))
4006 return 2;
4007 return 0;
4008}
4009_ACEOF
4010if ac_fn_c_try_run "$LINENO"; then :
4011
4012else
4013 ac_cv_header_stdc=no
4014fi
4015rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4016 conftest.$ac_objext conftest.beam conftest.$ac_ext
6bddc3e8
MF
4017fi
4018
c2783492
MF
4019fi
4020fi
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4022$as_echo "$ac_cv_header_stdc" >&6; }
4023if test $ac_cv_header_stdc = yes; then
6bddc3e8 4024
c2783492 4025$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6bddc3e8 4026
c2783492 4027fi
6bddc3e8 4028
c2783492
MF
4029# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4030for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4031 inttypes.h stdint.h unistd.h
4032do :
4033 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4034ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4035"
4036if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4037 cat >>confdefs.h <<_ACEOF
4038#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4039_ACEOF
4040
4041fi
4042
4043done
4044
4045
4046
4047 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4048if test "x$ac_cv_header_minix_config_h" = xyes; then :
4049 MINIX=yes
fdd6fa61 4050else
c2783492
MF
4051 MINIX=
4052fi
4053
4054
4055 if test "$MINIX" = yes; then
4056
4057$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4058
4059
4060$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4061
4062
4063$as_echo "#define _MINIX 1" >>confdefs.h
6bddc3e8 4064
6bddc3e8 4065 fi
6bddc3e8 4066
6bddc3e8 4067
c2783492
MF
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4069$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4070if ${ac_cv_safe_to_define___extensions__+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072else
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074/* end confdefs.h. */
c906108c 4075
c2783492
MF
4076# define __EXTENSIONS__ 1
4077 $ac_includes_default
4078int
4079main ()
4080{
4081
4082 ;
4083 return 0;
4084}
4085_ACEOF
4086if ac_fn_c_try_compile "$LINENO"; then :
4087 ac_cv_safe_to_define___extensions__=yes
6bddc3e8 4088else
c2783492
MF
4089 ac_cv_safe_to_define___extensions__=no
4090fi
4091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4092fi
c2783492
MF
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4094$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4095 test $ac_cv_safe_to_define___extensions__ = yes &&
4096 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6bddc3e8 4097
c2783492 4098 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
c906108c 4099
c2783492 4100 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
c906108c 4101
c2783492 4102 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
c906108c 4103
c2783492 4104 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
c906108c 4105
c2783492
MF
4106
4107test "$program_prefix" != NONE &&
4108 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4109# Use a double $ so make ignores it.
4110test "$program_suffix" != NONE &&
4111 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4112# Double any \ or $.
4113# By default was `s,x,x', remove it if useless.
4114ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4115program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4116
4117# Find a good install program. We prefer a C program (faster),
4118# so one script is as good as another. But avoid the broken or
4119# incompatible versions:
4120# SysV /etc/install, /usr/sbin/install
4121# SunOS /usr/etc/install
4122# IRIX /sbin/install
4123# AIX /bin/install
4124# AmigaOS /C/install, which installs bootblocks on floppy discs
4125# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4126# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4127# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4128# OS/2's system install, which has a completely different semantic
4129# ./install, which can be erroneously created by make from ./install.sh.
4130# Reject install programs that cannot install multiple files.
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4132$as_echo_n "checking for a BSD-compatible install... " >&6; }
4133if test -z "$INSTALL"; then
4134if ${ac_cv_path_install+:} false; then :
81ecdfbb 4135 $as_echo_n "(cached) " >&6
c906108c 4136else
c2783492 4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b7026657
AC
4138for as_dir in $PATH
4139do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
c2783492
MF
4142 # Account for people who put trailing slashes in PATH elements.
4143case $as_dir/ in #((
4144 ./ | .// | /[cC]/* | \
4145 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4146 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4147 /usr/ucb/* ) ;;
4148 *)
4149 # OSF1 and SCO ODT 3.0 have their own names for install.
4150 # Don't use installbsd from OSF since it installs stuff as root
4151 # by default.
4152 for ac_prog in ginstall scoinst install; do
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4155 if test $ac_prog = install &&
4156 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4157 # AIX install. It has an incompatible calling convention.
4158 :
4159 elif test $ac_prog = install &&
4160 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4161 # program-specific install script used by HP pwplus--don't use.
4162 :
4163 else
4164 rm -rf conftest.one conftest.two conftest.dir
4165 echo one > conftest.one
4166 echo two > conftest.two
4167 mkdir conftest.dir
4168 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4169 test -s conftest.one && test -s conftest.two &&
4170 test -s conftest.dir/conftest.one &&
4171 test -s conftest.dir/conftest.two
4172 then
4173 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4174 break 3
4175 fi
4176 fi
4177 fi
4178 done
4179 done
4180 ;;
4181esac
4182
81ecdfbb
RW
4183 done
4184IFS=$as_save_IFS
b7026657 4185
c2783492
MF
4186rm -rf conftest.one conftest.two conftest.dir
4187
c906108c 4188fi
c2783492
MF
4189 if test "${ac_cv_path_install+set}" = set; then
4190 INSTALL=$ac_cv_path_install
4191 else
4192 # As a last resort, use the slow shell script. Don't cache a
4193 # value for INSTALL within a source directory, because that will
4194 # break other packages using the cache if that directory is
4195 # removed, or if the value is a relative name.
4196 INSTALL=$ac_install_sh
4197 fi
c906108c 4198fi
c2783492
MF
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4200$as_echo "$INSTALL" >&6; }
b7026657 4201
c2783492
MF
4202# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4203# It thinks the first close brace ends the variable substitution.
4204test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
81ecdfbb 4205
c2783492
MF
4206test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4207
4208test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4209
4210
4211
4212
4213
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4215$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4216if ${ac_cv_c_bigendian+:} false; then :
81ecdfbb 4217 $as_echo_n "(cached) " >&6
b7026657 4218else
c2783492
MF
4219 ac_cv_c_bigendian=unknown
4220 # See if we're dealing with a universal compiler.
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222/* end confdefs.h. */
4223#ifndef __APPLE_CC__
4224 not a universal capable compiler
4225 #endif
4226 typedef int dummy;
c906108c 4227
c2783492
MF
4228_ACEOF
4229if ac_fn_c_try_compile "$LINENO"; then :
4230
4231 # Check for potential -arch flags. It is not universal unless
4232 # there are at least two -arch flags with different values.
4233 ac_arch=
4234 ac_prev=
4235 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4236 if test -n "$ac_prev"; then
4237 case $ac_word in
4238 i?86 | x86_64 | ppc | ppc64)
4239 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4240 ac_arch=$ac_word
4241 else
4242 ac_cv_c_bigendian=universal
4243 break
4244 fi
4245 ;;
4246 esac
4247 ac_prev=
4248 elif test "x$ac_word" = "x-arch"; then
4249 ac_prev=arch
4250 fi
4251 done
b7026657 4252fi
c2783492
MF
4253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254 if test $ac_cv_c_bigendian = unknown; then
4255 # See if sys/param.h defines the BYTE_ORDER macro.
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257/* end confdefs.h. */
4258#include <sys/types.h>
4259 #include <sys/param.h>
c906108c 4260
c2783492
MF
4261int
4262main ()
4263{
4264#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4265 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4266 && LITTLE_ENDIAN)
4267 bogus endian macros
4268 #endif
4269
4270 ;
4271 return 0;
4272}
4273_ACEOF
4274if ac_fn_c_try_compile "$LINENO"; then :
4275 # It does; now see whether it defined to BIG_ENDIAN or not.
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277/* end confdefs.h. */
4278#include <sys/types.h>
4279 #include <sys/param.h>
4280
4281int
4282main ()
4283{
4284#if BYTE_ORDER != BIG_ENDIAN
4285 not big endian
4286 #endif
4287
4288 ;
4289 return 0;
4290}
4291_ACEOF
4292if ac_fn_c_try_compile "$LINENO"; then :
4293 ac_cv_c_bigendian=yes
b7026657 4294else
c2783492
MF
4295 ac_cv_c_bigendian=no
4296fi
4297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 4298fi
c2783492
MF
4299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 fi
4301 if test $ac_cv_c_bigendian = unknown; then
4302 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304/* end confdefs.h. */
4305#include <limits.h>
c906108c 4306
c2783492
MF
4307int
4308main ()
4309{
4310#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4311 bogus endian macros
4312 #endif
4313
4314 ;
4315 return 0;
4316}
4317_ACEOF
4318if ac_fn_c_try_compile "$LINENO"; then :
4319 # It does; now see whether it defined to _BIG_ENDIAN or not.
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321/* end confdefs.h. */
4322#include <limits.h>
4323
4324int
4325main ()
4326{
4327#ifndef _BIG_ENDIAN
4328 not big endian
4329 #endif
b7026657 4330
c2783492
MF
4331 ;
4332 return 0;
4333}
4334_ACEOF
4335if ac_fn_c_try_compile "$LINENO"; then :
4336 ac_cv_c_bigendian=yes
c906108c 4337else
c2783492 4338 ac_cv_c_bigendian=no
c906108c 4339fi
c2783492
MF
4340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341fi
4342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 fi
4344 if test $ac_cv_c_bigendian = unknown; then
4345 # Compile a test program.
4346 if test "$cross_compiling" = yes; then :
4347 # Try to guess by grepping values from an object file.
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349/* end confdefs.h. */
4350short int ascii_mm[] =
4351 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4352 short int ascii_ii[] =
4353 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4354 int use_ascii (int i) {
4355 return ascii_mm[i] + ascii_ii[i];
4356 }
4357 short int ebcdic_ii[] =
4358 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4359 short int ebcdic_mm[] =
4360 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4361 int use_ebcdic (int i) {
4362 return ebcdic_mm[i] + ebcdic_ii[i];
4363 }
4364 extern int foo;
c906108c 4365
c2783492
MF
4366int
4367main ()
4368{
4369return use_ascii (foo) == use_ebcdic (foo);
4370 ;
4371 return 0;
4372}
4373_ACEOF
4374if ac_fn_c_try_compile "$LINENO"; then :
4375 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4376 ac_cv_c_bigendian=yes
4377 fi
4378 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4379 if test "$ac_cv_c_bigendian" = unknown; then
4380 ac_cv_c_bigendian=no
4381 else
4382 # finding both strings is unlikely to happen, but who knows?
4383 ac_cv_c_bigendian=unknown
4384 fi
4385 fi
b7026657 4386fi
c2783492 4387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4388else
c2783492
MF
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390/* end confdefs.h. */
4391$ac_includes_default
4392int
4393main ()
4394{
4395
4396 /* Are we little or big endian? From Harbison&Steele. */
4397 union
4398 {
4399 long int l;
4400 char c[sizeof (long int)];
4401 } u;
4402 u.l = 1;
4403 return u.c[sizeof (long int) - 1] == 1;
b7026657 4404
c2783492
MF
4405 ;
4406 return 0;
4407}
4408_ACEOF
4409if ac_fn_c_try_run "$LINENO"; then :
4410 ac_cv_c_bigendian=no
4411else
4412 ac_cv_c_bigendian=yes
c906108c 4413fi
c2783492
MF
4414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4415 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 4416fi
c2783492
MF
4417
4418 fi
c906108c 4419fi
c2783492
MF
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4421$as_echo "$ac_cv_c_bigendian" >&6; }
4422 case $ac_cv_c_bigendian in #(
4423 yes)
4424 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4425;; #(
4426 no)
4427 ;; #(
4428 universal)
c906108c 4429
c2783492
MF
4430$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4431
4432 ;; #(
4433 *)
4434 as_fn_error $? "unknown endianness
4435 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4436 esac
4437
4438
4439
4440
a979f2a0
MF
4441if test -n "$ac_tool_prefix"; then
4442 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4443set dummy ${ac_tool_prefix}dtc; ac_word=$2
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445$as_echo_n "checking for $ac_word... " >&6; }
4446if ${ac_cv_prog_DTC+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448else
4449 if test -n "$DTC"; then
4450 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4451else
4452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453for as_dir in $PATH
4454do
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4462 fi
4463done
4464 done
4465IFS=$as_save_IFS
4466
4467fi
4468fi
4469DTC=$ac_cv_prog_DTC
4470if test -n "$DTC"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4472$as_echo "$DTC" >&6; }
4473else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475$as_echo "no" >&6; }
4476fi
4477
4478
4479fi
4480if test -z "$ac_cv_prog_DTC"; then
4481 ac_ct_DTC=$DTC
4482 # Extract the first word of "dtc", so it can be a program name with args.
4483set dummy dtc; ac_word=$2
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485$as_echo_n "checking for $ac_word... " >&6; }
4486if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4487 $as_echo_n "(cached) " >&6
4488else
4489 if test -n "$ac_ct_DTC"; then
4490 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4491else
4492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493for as_dir in $PATH
4494do
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4499 ac_cv_prog_ac_ct_DTC="dtc"
4500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 break 2
4502 fi
4503done
4504 done
4505IFS=$as_save_IFS
4506
4507fi
4508fi
4509ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4510if test -n "$ac_ct_DTC"; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4512$as_echo "$ac_ct_DTC" >&6; }
4513else
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515$as_echo "no" >&6; }
4516fi
4517
4518 if test "x$ac_ct_DTC" = x; then
4519 DTC=""
4520 else
4521 case $cross_compiling:$ac_tool_warned in
4522yes:)
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4525ac_tool_warned=yes ;;
4526esac
4527 DTC=$ac_ct_DTC
4528 fi
4529else
4530 DTC="$ac_cv_prog_DTC"
4531fi
4532
4533
c2783492 4534if test "x$cross_compiling" = "xno"; then
aa0fca16 4535 : "${AR_FOR_BUILD:=\$(AR)}"
c2783492 4536 : "${CC_FOR_BUILD:=\$(CC)}"
aa0fca16 4537 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
c2783492
MF
4538 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4539 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
c906108c 4540else
aa0fca16 4541 : "${AR_FOR_BUILD:=ar}"
c2783492 4542 : "${CC_FOR_BUILD:=gcc}"
aa0fca16 4543 : "${RANLIB_FOR_BUILD:=ranlib}"
c2783492
MF
4544 : "${CFLAGS_FOR_BUILD:=-g -O}"
4545 : "${LDLFAGS_FOR_BUILD:=}"
c906108c
SS
4546fi
4547
4548
c906108c 4549
c2783492
MF
4550
4551
aa0fca16
MF
4552
4553
b7026657 4554if test -n "$ac_tool_prefix"; then
c2783492
MF
4555 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4556set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4559if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 4560 $as_echo_n "(cached) " >&6
c906108c 4561else
c2783492
MF
4562 if test -n "$AR"; then
4563 ac_cv_prog_AR="$AR" # Let the user override the test.
c906108c 4564else
b7026657
AC
4565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566for as_dir in $PATH
4567do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
81ecdfbb 4570 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4572 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4574 break 2
4575 fi
4576done
81ecdfbb
RW
4577 done
4578IFS=$as_save_IFS
b7026657
AC
4579
4580fi
4581fi
c2783492
MF
4582AR=$ac_cv_prog_AR
4583if test -n "$AR"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4585$as_echo "$AR" >&6; }
b7026657 4586else
81ecdfbb
RW
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588$as_echo "no" >&6; }
b7026657
AC
4589fi
4590
81ecdfbb 4591
b7026657 4592fi
c2783492
MF
4593if test -z "$ac_cv_prog_AR"; then
4594 ac_ct_AR=$AR
4595 # Extract the first word of "ar", so it can be a program name with args.
4596set dummy ar; ac_word=$2
81ecdfbb
RW
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4599if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 4600 $as_echo_n "(cached) " >&6
b7026657 4601else
c2783492
MF
4602 if test -n "$ac_ct_AR"; then
4603 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b7026657
AC
4604else
4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
81ecdfbb 4610 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4612 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4614 break 2
4615 fi
4616done
81ecdfbb
RW
4617 done
4618IFS=$as_save_IFS
b7026657
AC
4619
4620fi
4621fi
c2783492
MF
4622ac_ct_AR=$ac_cv_prog_ac_ct_AR
4623if test -n "$ac_ct_AR"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4625$as_echo "$ac_ct_AR" >&6; }
b7026657 4626else
81ecdfbb
RW
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628$as_echo "no" >&6; }
c906108c 4629fi
b7026657 4630
c2783492
MF
4631 if test "x$ac_ct_AR" = x; then
4632 AR=""
81ecdfbb
RW
4633 else
4634 case $cross_compiling:$ac_tool_warned in
4635yes:)
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638ac_tool_warned=yes ;;
4639esac
c2783492 4640 AR=$ac_ct_AR
c906108c 4641 fi
c906108c 4642else
c2783492 4643 AR="$ac_cv_prog_AR"
c906108c
SS
4644fi
4645
c2783492
MF
4646if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4648set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4651if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 4652 $as_echo_n "(cached) " >&6
c906108c 4653else
c2783492
MF
4654 if test -n "$RANLIB"; then
4655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c906108c 4656else
b7026657
AC
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
81ecdfbb 4662 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4664 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4666 break 2
4667 fi
4668done
81ecdfbb
RW
4669 done
4670IFS=$as_save_IFS
b7026657 4671
c906108c
SS
4672fi
4673fi
c2783492
MF
4674RANLIB=$ac_cv_prog_RANLIB
4675if test -n "$RANLIB"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4677$as_echo "$RANLIB" >&6; }
c906108c 4678else
81ecdfbb
RW
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680$as_echo "no" >&6; }
c906108c
SS
4681fi
4682
81ecdfbb 4683
b7026657 4684fi
c2783492
MF
4685if test -z "$ac_cv_prog_RANLIB"; then
4686 ac_ct_RANLIB=$RANLIB
4687 # Extract the first word of "ranlib", so it can be a program name with args.
4688set dummy ranlib; ac_word=$2
81ecdfbb
RW
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4691if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 4692 $as_echo_n "(cached) " >&6
c906108c 4693else
c2783492
MF
4694 if test -n "$ac_ct_RANLIB"; then
4695 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b7026657
AC
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
81ecdfbb 4702 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4704 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4706 break 2
4707 fi
4708done
81ecdfbb
RW
4709 done
4710IFS=$as_save_IFS
b7026657 4711
c906108c 4712fi
b7026657 4713fi
c2783492
MF
4714ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4715if test -n "$ac_ct_RANLIB"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4717$as_echo "$ac_ct_RANLIB" >&6; }
c906108c 4718else
81ecdfbb
RW
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720$as_echo "no" >&6; }
c906108c 4721fi
b7026657 4722
c2783492
MF
4723 if test "x$ac_ct_RANLIB" = x; then
4724 RANLIB=":"
81ecdfbb
RW
4725 else
4726 case $cross_compiling:$ac_tool_warned in
4727yes:)
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730ac_tool_warned=yes ;;
4731esac
c2783492 4732 RANLIB=$ac_ct_RANLIB
81ecdfbb 4733 fi
c2783492
MF
4734else
4735 RANLIB="$ac_cv_prog_RANLIB"
4736fi
4737
4738
d57b6533
MF
4739
4740
4741
4742
4743
4744
4745if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4746 if test -n "$ac_tool_prefix"; then
4747 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4748set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750$as_echo_n "checking for $ac_word... " >&6; }
4751if ${ac_cv_path_PKG_CONFIG+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753else
4754 case $PKG_CONFIG in
4755 [\\/]* | ?:[\\/]*)
4756 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4757 ;;
4758 *)
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760for as_dir in $PATH
4761do
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 break 2
4769 fi
4770done
4771 done
4772IFS=$as_save_IFS
4773
4774 ;;
4775esac
4776fi
4777PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4778if test -n "$PKG_CONFIG"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4780$as_echo "$PKG_CONFIG" >&6; }
4781else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783$as_echo "no" >&6; }
4784fi
4785
4786
4787fi
4788if test -z "$ac_cv_path_PKG_CONFIG"; then
4789 ac_pt_PKG_CONFIG=$PKG_CONFIG
4790 # Extract the first word of "pkg-config", so it can be a program name with args.
4791set dummy pkg-config; ac_word=$2
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793$as_echo_n "checking for $ac_word... " >&6; }
4794if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796else
4797 case $ac_pt_PKG_CONFIG in
4798 [\\/]* | ?:[\\/]*)
4799 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4800 ;;
4801 *)
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803for as_dir in $PATH
4804do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4812 fi
4813done
4814 done
4815IFS=$as_save_IFS
4816
4817 ;;
4818esac
4819fi
4820ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4821if test -n "$ac_pt_PKG_CONFIG"; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4823$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4824else
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826$as_echo "no" >&6; }
4827fi
4828
4829 if test "x$ac_pt_PKG_CONFIG" = x; then
4830 PKG_CONFIG=""
4831 else
4832 case $cross_compiling:$ac_tool_warned in
4833yes:)
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4836ac_tool_warned=yes ;;
4837esac
4838 PKG_CONFIG=$ac_pt_PKG_CONFIG
4839 fi
4840else
4841 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4842fi
4843
4844fi
4845if test -n "$PKG_CONFIG"; then
4846 _pkg_min_version=0.9.0
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4848$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4849 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4851$as_echo "yes" >&6; }
4852 else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854$as_echo "no" >&6; }
4855 PKG_CONFIG=""
4856 fi
4857fi
4858
c2783492
MF
4859# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
4860# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
4861# is C99. So handle it ourselves.
4862:
4863C_DIALECT=
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4865$as_echo_n "checking whether C11 is supported by default... " >&6; }
4866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867/* end confdefs.h. */
4868
4869#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4870# error "C11 support not found"
4871#endif
4872
4873_ACEOF
4874if ac_fn_c_try_compile "$LINENO"; then :
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4876$as_echo "yes" >&6; }
4877else
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880$as_echo "no" >&6; }
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4882$as_echo_n "checking for -std=c11 support... " >&6; }
4883 ac_save_CC="$CC"
4884 CC="$CC -std=c11"
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886/* end confdefs.h. */
4887
4888#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4889# error "C11 support not found"
4890#endif
4891
4892_ACEOF
4893if ac_fn_c_try_compile "$LINENO"; then :
4894
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4896$as_echo "yes" >&6; }
4897 CC="$ac_save_CC"
4898 C_DIALECT="-std=c11"
4899
4900else
4901 as_fn_error $? "C11 is required" "$LINENO" 5
4902fi
4903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904fi
4905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906
4907
4908
4909
c906108c 4910
b15c5d7a
MF
4911 for ac_header in $ac_header_list
4912do :
4913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4914ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4915"
4916if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4917 cat >>confdefs.h <<_ACEOF
4918#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4919_ACEOF
4920
b7026657
AC
4921fi
4922
b15c5d7a 4923done
b7026657 4924
b7026657 4925
c2783492 4926
c2783492 4927
c2783492 4928
c2783492 4929
c2783492 4930
b15c5d7a
MF
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
a48ff3ef
MF
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
b15c5d7a
MF
4965
4966
4967
4968
4969
4970
4971
4972
b15c5d7a
MF
4973
4974
4975
4976 for ac_func in $ac_func_list
4977do :
4978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4979ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4980if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4981 cat >>confdefs.h <<_ACEOF
4982#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4983_ACEOF
4984
4985fi
4986done
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
a48ff3ef
MF
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5111$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5112if ${ac_cv_struct_tm+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114else
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116/* end confdefs.h. */
5117#include <sys/types.h>
5118#include <time.h>
5119
5120int
5121main ()
5122{
5123struct tm tm;
5124 int *p = &tm.tm_sec;
5125 return !p;
5126 ;
5127 return 0;
5128}
5129_ACEOF
5130if ac_fn_c_try_compile "$LINENO"; then :
5131 ac_cv_struct_tm=time.h
5132else
5133 ac_cv_struct_tm=sys/time.h
5134fi
5135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5136fi
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5138$as_echo "$ac_cv_struct_tm" >&6; }
5139if test $ac_cv_struct_tm = sys/time.h; then
5140
5141$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5142
5143fi
5144
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5146$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5147if ${ac_cv_type_uid_t+:} false; then :
5148 $as_echo_n "(cached) " >&6
5149else
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151/* end confdefs.h. */
5152#include <sys/types.h>
5153
5154_ACEOF
5155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5156 $EGREP "uid_t" >/dev/null 2>&1; then :
5157 ac_cv_type_uid_t=yes
5158else
5159 ac_cv_type_uid_t=no
5160fi
5161rm -f conftest*
5162
5163fi
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5165$as_echo "$ac_cv_type_uid_t" >&6; }
5166if test $ac_cv_type_uid_t = no; then
5167
5168$as_echo "#define uid_t int" >>confdefs.h
5169
5170
5171$as_echo "#define gid_t int" >>confdefs.h
5172
5173fi
5174
b5689863
MF
5175case `pwd` in
5176 *\ * | *\ *)
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5178$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5179esac
a48ff3ef 5180
a48ff3ef 5181
a48ff3ef 5182
b5689863
MF
5183macro_version='2.2.7a'
5184macro_revision='1.3134'
a48ff3ef 5185
a48ff3ef 5186
a48ff3ef 5187
a48ff3ef 5188
a48ff3ef 5189
a48ff3ef 5190
a48ff3ef 5191
a48ff3ef 5192
a48ff3ef 5193
a48ff3ef
MF
5194
5195
5196
5197
b5689863 5198ltmain="$ac_aux_dir/ltmain.sh"
a48ff3ef 5199
b5689863
MF
5200# Backslashify metacharacters that are still active within
5201# double-quoted strings.
5202sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a48ff3ef 5203
b5689863
MF
5204# Same as above, but do not quote variable references.
5205double_quote_subst='s/\(["`\\]\)/\\\1/g'
a48ff3ef 5206
b5689863
MF
5207# Sed substitution to delay expansion of an escaped shell variable in a
5208# double_quote_subst'ed string.
5209delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5210
5211# Sed substitution to delay expansion of an escaped single quote.
5212delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5213
5214# Sed substitution to avoid accidental globbing in evaled expressions
5215no_glob_subst='s/\*/\\\*/g'
5216
5217ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5218ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5219ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
a48ff3ef 5220
b5689863
MF
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5222$as_echo_n "checking how to print strings... " >&6; }
5223# Test print first, because it will be a builtin if present.
5224if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5225 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5226 ECHO='print -r --'
5227elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5228 ECHO='printf %s\n'
5229else
5230 # Use this function as a fallback that always works.
5231 func_fallback_echo ()
5232 {
5233 eval 'cat <<_LTECHO_EOF
5234$1
5235_LTECHO_EOF'
5236 }
5237 ECHO='func_fallback_echo'
a48ff3ef
MF
5238fi
5239
b5689863
MF
5240# func_echo_all arg...
5241# Invoke $ECHO with all args, space-separated.
5242func_echo_all ()
5243{
5244 $ECHO ""
5245}
5246
5247case "$ECHO" in
5248 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5249$as_echo "printf" >&6; } ;;
5250 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5251$as_echo "print -r" >&6; } ;;
5252 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5253$as_echo "cat" >&6; } ;;
5254esac
5255
5256
a48ff3ef 5257
a48ff3ef 5258
a48ff3ef
MF
5259
5260
a48ff3ef 5261
a48ff3ef 5262
a48ff3ef
MF
5263
5264
a48ff3ef 5265
a48ff3ef
MF
5266
5267
a48ff3ef 5268
b5689863
MF
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5270$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5271if ${ac_cv_path_SED+:} false; then :
5272 $as_echo_n "(cached) " >&6
5273else
5274 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5275 for ac_i in 1 2 3 4 5 6 7; do
5276 ac_script="$ac_script$as_nl$ac_script"
5277 done
5278 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5279 { ac_script=; unset ac_script;}
5280 if test -z "$SED"; then
5281 ac_path_SED_found=false
5282 # Loop through the user's path and test for each of PROGNAME-LIST
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284for as_dir in $PATH
5285do
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_prog in sed gsed; do
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5291 as_fn_executable_p "$ac_path_SED" || continue
5292# Check for GNU ac_path_SED and select it if it is found.
5293 # Check for GNU $ac_path_SED
5294case `"$ac_path_SED" --version 2>&1` in
5295*GNU*)
5296 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5297*)
5298 ac_count=0
5299 $as_echo_n 0123456789 >"conftest.in"
5300 while :
5301 do
5302 cat "conftest.in" "conftest.in" >"conftest.tmp"
5303 mv "conftest.tmp" "conftest.in"
5304 cp "conftest.in" "conftest.nl"
5305 $as_echo '' >> "conftest.nl"
5306 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5307 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5308 as_fn_arith $ac_count + 1 && ac_count=$as_val
5309 if test $ac_count -gt ${ac_path_SED_max-0}; then
5310 # Best one so far, save it but keep looking for a better one
5311 ac_cv_path_SED="$ac_path_SED"
5312 ac_path_SED_max=$ac_count
5313 fi
5314 # 10*(2^10) chars as input seems more than enough
5315 test $ac_count -gt 10 && break
5316 done
5317 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5318esac
5319
5320 $ac_path_SED_found && break 3
5321 done
5322 done
5323 done
5324IFS=$as_save_IFS
5325 if test -z "$ac_cv_path_SED"; then
5326 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5327 fi
5328else
5329 ac_cv_path_SED=$SED
a48ff3ef
MF
5330fi
5331
b5689863
MF
5332fi
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5334$as_echo "$ac_cv_path_SED" >&6; }
5335 SED="$ac_cv_path_SED"
5336 rm -f conftest.sed
a48ff3ef 5337
b5689863
MF
5338test -z "$SED" && SED=sed
5339Xsed="$SED -e 1s/^X//"
a48ff3ef 5340
a48ff3ef 5341
a48ff3ef
MF
5342
5343
a48ff3ef 5344
a48ff3ef 5345
a48ff3ef 5346
a48ff3ef 5347
a48ff3ef 5348
b5689863
MF
5349
5350
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5352$as_echo_n "checking for fgrep... " >&6; }
5353if ${ac_cv_path_FGREP+:} false; then :
a48ff3ef
MF
5354 $as_echo_n "(cached) " >&6
5355else
b5689863
MF
5356 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5357 then ac_cv_path_FGREP="$GREP -F"
5358 else
5359 if test -z "$FGREP"; then
5360 ac_path_FGREP_found=false
5361 # Loop through the user's path and test for each of PROGNAME-LIST
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5364do
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
5367 for ac_prog in fgrep; do
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5370 as_fn_executable_p "$ac_path_FGREP" || continue
5371# Check for GNU ac_path_FGREP and select it if it is found.
5372 # Check for GNU $ac_path_FGREP
5373case `"$ac_path_FGREP" --version 2>&1` in
5374*GNU*)
5375 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5376*)
5377 ac_count=0
5378 $as_echo_n 0123456789 >"conftest.in"
5379 while :
5380 do
5381 cat "conftest.in" "conftest.in" >"conftest.tmp"
5382 mv "conftest.tmp" "conftest.in"
5383 cp "conftest.in" "conftest.nl"
5384 $as_echo 'FGREP' >> "conftest.nl"
5385 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5387 as_fn_arith $ac_count + 1 && ac_count=$as_val
5388 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5389 # Best one so far, save it but keep looking for a better one
5390 ac_cv_path_FGREP="$ac_path_FGREP"
5391 ac_path_FGREP_max=$ac_count
5392 fi
5393 # 10*(2^10) chars as input seems more than enough
5394 test $ac_count -gt 10 && break
5395 done
5396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5397esac
5398
5399 $ac_path_FGREP_found && break 3
5400 done
5401 done
5402 done
5403IFS=$as_save_IFS
5404 if test -z "$ac_cv_path_FGREP"; then
5405 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5406 fi
5407else
5408 ac_cv_path_FGREP=$FGREP
5409fi
5410
5411 fi
5412fi
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5414$as_echo "$ac_cv_path_FGREP" >&6; }
5415 FGREP="$ac_cv_path_FGREP"
5416
5417
5418test -z "$GREP" && GREP=grep
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438# Check whether --with-gnu-ld was given.
5439if test "${with_gnu_ld+set}" = set; then :
5440 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5441else
5442 with_gnu_ld=no
5443fi
5444
5445ac_prog=ld
5446if test "$GCC" = yes; then
5447 # Check if gcc -print-prog-name=ld gives a path.
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5449$as_echo_n "checking for ld used by $CC... " >&6; }
5450 case $host in
5451 *-*-mingw*)
5452 # gcc leaves a trailing carriage return which upsets mingw
5453 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5454 *)
5455 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5456 esac
5457 case $ac_prog in
5458 # Accept absolute paths.
5459 [\\/]* | ?:[\\/]*)
5460 re_direlt='/[^/][^/]*/\.\./'
5461 # Canonicalize the pathname of ld
5462 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5463 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5464 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5465 done
5466 test -z "$LD" && LD="$ac_prog"
5467 ;;
5468 "")
5469 # If it fails, then pretend we aren't using GCC.
5470 ac_prog=ld
5471 ;;
5472 *)
5473 # If it is relative, then search for the first ld in PATH.
5474 with_gnu_ld=unknown
5475 ;;
5476 esac
5477elif test "$with_gnu_ld" = yes; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5479$as_echo_n "checking for GNU ld... " >&6; }
5480else
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5482$as_echo_n "checking for non-GNU ld... " >&6; }
5483fi
5484if ${lt_cv_path_LD+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486else
5487 if test -z "$LD"; then
5488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5489 for ac_dir in $PATH; do
5490 IFS="$lt_save_ifs"
5491 test -z "$ac_dir" && ac_dir=.
5492 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5493 lt_cv_path_LD="$ac_dir/$ac_prog"
5494 # Check to see if the program is GNU ld. I'd rather use --version,
5495 # but apparently some variants of GNU ld only accept -v.
5496 # Break only if it was the GNU/non-GNU ld that we prefer.
5497 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5498 *GNU* | *'with BFD'*)
5499 test "$with_gnu_ld" != no && break
5500 ;;
5501 *)
5502 test "$with_gnu_ld" != yes && break
5503 ;;
5504 esac
5505 fi
5506 done
5507 IFS="$lt_save_ifs"
5508else
5509 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5510fi
5511fi
5512
5513LD="$lt_cv_path_LD"
5514if test -n "$LD"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5516$as_echo "$LD" >&6; }
5517else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519$as_echo "no" >&6; }
5520fi
5521test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5523$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5524if ${lt_cv_prog_gnu_ld+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526else
5527 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5528case `$LD -v 2>&1 </dev/null` in
5529*GNU* | *'with BFD'*)
5530 lt_cv_prog_gnu_ld=yes
5531 ;;
5532*)
5533 lt_cv_prog_gnu_ld=no
5534 ;;
5535esac
5536fi
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5538$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5539with_gnu_ld=$lt_cv_prog_gnu_ld
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5550$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5551if ${lt_cv_path_NM+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553else
5554 if test -n "$NM"; then
5555 # Let the user override the test.
5556 lt_cv_path_NM="$NM"
5557else
5558 lt_nm_to_check="${ac_tool_prefix}nm"
5559 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5560 lt_nm_to_check="$lt_nm_to_check nm"
5561 fi
5562 for lt_tmp_nm in $lt_nm_to_check; do
5563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5564 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5565 IFS="$lt_save_ifs"
5566 test -z "$ac_dir" && ac_dir=.
5567 tmp_nm="$ac_dir/$lt_tmp_nm"
5568 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5569 # Check to see if the nm accepts a BSD-compat flag.
5570 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5571 # nm: unknown option "B" ignored
5572 # Tru64's nm complains that /dev/null is an invalid object file
5573 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5574 */dev/null* | *'Invalid file or object type'*)
5575 lt_cv_path_NM="$tmp_nm -B"
5576 break
5577 ;;
5578 *)
5579 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5580 */dev/null*)
5581 lt_cv_path_NM="$tmp_nm -p"
5582 break
5583 ;;
5584 *)
5585 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5586 continue # so that we can try to find one that supports BSD flags
5587 ;;
5588 esac
5589 ;;
5590 esac
5591 fi
5592 done
5593 IFS="$lt_save_ifs"
5594 done
5595 : ${lt_cv_path_NM=no}
5596fi
5597fi
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5599$as_echo "$lt_cv_path_NM" >&6; }
5600if test "$lt_cv_path_NM" != "no"; then
5601 NM="$lt_cv_path_NM"
5602else
5603 # Didn't find any BSD compatible name lister, look for dumpbin.
5604 if test -n "$DUMPBIN"; then :
5605 # Let the user override the test.
5606 else
5607 if test -n "$ac_tool_prefix"; then
5608 for ac_prog in dumpbin "link -dump"
5609 do
5610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5611set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613$as_echo_n "checking for $ac_word... " >&6; }
5614if ${ac_cv_prog_DUMPBIN+:} false; then :
5615 $as_echo_n "(cached) " >&6
5616else
5617 if test -n "$DUMPBIN"; then
5618 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5619else
5620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621for as_dir in $PATH
5622do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5630 fi
5631done
5632 done
5633IFS=$as_save_IFS
5634
5635fi
5636fi
5637DUMPBIN=$ac_cv_prog_DUMPBIN
5638if test -n "$DUMPBIN"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5640$as_echo "$DUMPBIN" >&6; }
5641else
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643$as_echo "no" >&6; }
5644fi
5645
5646
5647 test -n "$DUMPBIN" && break
5648 done
5649fi
5650if test -z "$DUMPBIN"; then
5651 ac_ct_DUMPBIN=$DUMPBIN
5652 for ac_prog in dumpbin "link -dump"
5653do
5654 # Extract the first word of "$ac_prog", so it can be a program name with args.
5655set dummy $ac_prog; ac_word=$2
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657$as_echo_n "checking for $ac_word... " >&6; }
5658if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660else
5661 if test -n "$ac_ct_DUMPBIN"; then
5662 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5663else
5664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665for as_dir in $PATH
5666do
5667 IFS=$as_save_IFS
5668 test -z "$as_dir" && as_dir=.
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 break 2
5674 fi
5675done
5676 done
5677IFS=$as_save_IFS
5678
5679fi
5680fi
5681ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5682if test -n "$ac_ct_DUMPBIN"; then
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5684$as_echo "$ac_ct_DUMPBIN" >&6; }
5685else
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687$as_echo "no" >&6; }
5688fi
5689
5690
5691 test -n "$ac_ct_DUMPBIN" && break
5692done
5693
5694 if test "x$ac_ct_DUMPBIN" = x; then
5695 DUMPBIN=":"
5696 else
5697 case $cross_compiling:$ac_tool_warned in
5698yes:)
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5701ac_tool_warned=yes ;;
5702esac
5703 DUMPBIN=$ac_ct_DUMPBIN
5704 fi
5705fi
5706
5707 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5708 *COFF*)
5709 DUMPBIN="$DUMPBIN -symbols"
5710 ;;
5711 *)
5712 DUMPBIN=:
5713 ;;
5714 esac
5715 fi
5716
5717 if test "$DUMPBIN" != ":"; then
5718 NM="$DUMPBIN"
5719 fi
5720fi
5721test -z "$NM" && NM=nm
5722
5723
5724
5725
5726
5727
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5729$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5730if ${lt_cv_nm_interface+:} false; then :
5731 $as_echo_n "(cached) " >&6
5732else
5733 lt_cv_nm_interface="BSD nm"
5734 echo "int some_variable = 0;" > conftest.$ac_ext
5735 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5736 (eval "$ac_compile" 2>conftest.err)
5737 cat conftest.err >&5
5738 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5739 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5740 cat conftest.err >&5
5741 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5742 cat conftest.out >&5
5743 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5744 lt_cv_nm_interface="MS dumpbin"
5745 fi
5746 rm -f conftest*
5747fi
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5749$as_echo "$lt_cv_nm_interface" >&6; }
5750
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5752$as_echo_n "checking whether ln -s works... " >&6; }
5753LN_S=$as_ln_s
5754if test "$LN_S" = "ln -s"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5756$as_echo "yes" >&6; }
5757else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5759$as_echo "no, using $LN_S" >&6; }
5760fi
5761
5762# find the maximum length of command line arguments
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5764$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5765if ${lt_cv_sys_max_cmd_len+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767else
5768 i=0
5769 teststring="ABCD"
5770
5771 case $build_os in
5772 msdosdjgpp*)
5773 # On DJGPP, this test can blow up pretty badly due to problems in libc
5774 # (any single argument exceeding 2000 bytes causes a buffer overrun
5775 # during glob expansion). Even if it were fixed, the result of this
5776 # check would be larger than it should be.
5777 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5778 ;;
5779
5780 gnu*)
5781 # Under GNU Hurd, this test is not required because there is
5782 # no limit to the length of command line arguments.
5783 # Libtool will interpret -1 as no limit whatsoever
5784 lt_cv_sys_max_cmd_len=-1;
5785 ;;
5786
5787 cygwin* | mingw* | cegcc*)
5788 # On Win9x/ME, this test blows up -- it succeeds, but takes
5789 # about 5 minutes as the teststring grows exponentially.
5790 # Worse, since 9x/ME are not pre-emptively multitasking,
5791 # you end up with a "frozen" computer, even though with patience
5792 # the test eventually succeeds (with a max line length of 256k).
5793 # Instead, let's just punt: use the minimum linelength reported by
5794 # all of the supported platforms: 8192 (on NT/2K/XP).
5795 lt_cv_sys_max_cmd_len=8192;
5796 ;;
5797
5798 mint*)
5799 # On MiNT this can take a long time and run out of memory.
5800 lt_cv_sys_max_cmd_len=8192;
5801 ;;
5802
5803 amigaos*)
5804 # On AmigaOS with pdksh, this test takes hours, literally.
5805 # So we just punt and use a minimum line length of 8192.
5806 lt_cv_sys_max_cmd_len=8192;
5807 ;;
5808
5809 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5810 # This has been around since 386BSD, at least. Likely further.
5811 if test -x /sbin/sysctl; then
5812 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5813 elif test -x /usr/sbin/sysctl; then
5814 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5815 else
5816 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5817 fi
5818 # And add a safety zone
5819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5821 ;;
5822
5823 interix*)
5824 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5825 lt_cv_sys_max_cmd_len=196608
5826 ;;
5827
5828 osf*)
5829 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5830 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5831 # nice to cause kernel panics so lets avoid the loop below.
5832 # First set a reasonable default.
5833 lt_cv_sys_max_cmd_len=16384
5834 #
5835 if test -x /sbin/sysconfig; then
5836 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5837 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5838 esac
5839 fi
5840 ;;
5841 sco3.2v5*)
5842 lt_cv_sys_max_cmd_len=102400
5843 ;;
5844 sysv5* | sco5v6* | sysv4.2uw2*)
5845 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5846 if test -n "$kargmax"; then
5847 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5848 else
5849 lt_cv_sys_max_cmd_len=32768
5850 fi
5851 ;;
5852 *)
5853 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5854 if test -n "$lt_cv_sys_max_cmd_len"; then
5855 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5857 else
5858 # Make teststring a little bigger before we do anything with it.
5859 # a 1K string should be a reasonable start.
5860 for i in 1 2 3 4 5 6 7 8 ; do
5861 teststring=$teststring$teststring
5862 done
5863 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5864 # If test is not a shell built-in, we'll probably end up computing a
5865 # maximum length that is only half of the actual maximum length, but
5866 # we can't tell.
5867 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5868 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5869 test $i != 17 # 1/2 MB should be enough
5870 do
5871 i=`expr $i + 1`
5872 teststring=$teststring$teststring
5873 done
5874 # Only check the string length outside the loop.
5875 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5876 teststring=
5877 # Add a significant safety factor because C++ compilers can tack on
5878 # massive amounts of additional arguments before passing them to the
5879 # linker. It appears as though 1/2 is a usable value.
5880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5881 fi
5882 ;;
5883 esac
5884
5885fi
5886
5887if test -n $lt_cv_sys_max_cmd_len ; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5889$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5890else
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5892$as_echo "none" >&6; }
5893fi
5894max_cmd_len=$lt_cv_sys_max_cmd_len
5895
5896
5897
5898
5899
5900
5901: ${CP="cp -f"}
5902: ${MV="mv -f"}
5903: ${RM="rm -f"}
5904
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5906$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5907# Try some XSI features
5908xsi_shell=no
5909( _lt_dummy="a/b/c"
5910 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5911 = c,a/b,, \
5912 && eval 'test $(( 1 + 1 )) -eq 2 \
5913 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5914 && xsi_shell=yes
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5916$as_echo "$xsi_shell" >&6; }
5917
5918
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5920$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5921lt_shell_append=no
5922( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5923 >/dev/null 2>&1 \
5924 && lt_shell_append=yes
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5926$as_echo "$lt_shell_append" >&6; }
5927
5928
5929if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5930 lt_unset=unset
5931else
5932 lt_unset=false
5933fi
5934
5935
5936
5937
5938
5939# test EBCDIC or ASCII
5940case `echo X|tr X '\101'` in
5941 A) # ASCII based system
5942 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5943 lt_SP2NL='tr \040 \012'
5944 lt_NL2SP='tr \015\012 \040\040'
5945 ;;
5946 *) # EBCDIC based system
5947 lt_SP2NL='tr \100 \n'
5948 lt_NL2SP='tr \r\n \100\100'
5949 ;;
5950esac
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5961$as_echo_n "checking for $LD option to reload object files... " >&6; }
5962if ${lt_cv_ld_reload_flag+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964else
5965 lt_cv_ld_reload_flag='-r'
5966fi
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5968$as_echo "$lt_cv_ld_reload_flag" >&6; }
5969reload_flag=$lt_cv_ld_reload_flag
5970case $reload_flag in
5971"" | " "*) ;;
5972*) reload_flag=" $reload_flag" ;;
5973esac
5974reload_cmds='$LD$reload_flag -o $output$reload_objs'
5975case $host_os in
5976 darwin*)
5977 if test "$GCC" = yes; then
5978 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5979 else
5980 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5981 fi
5982 ;;
5983esac
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5995set dummy ${ac_tool_prefix}objdump; ac_word=$2
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997$as_echo_n "checking for $ac_word... " >&6; }
5998if ${ac_cv_prog_OBJDUMP+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000else
6001 if test -n "$OBJDUMP"; then
6002 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6003else
6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005for as_dir in $PATH
6006do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015done
6016 done
6017IFS=$as_save_IFS
6018
6019fi
6020fi
6021OBJDUMP=$ac_cv_prog_OBJDUMP
6022if test -n "$OBJDUMP"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6024$as_echo "$OBJDUMP" >&6; }
6025else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027$as_echo "no" >&6; }
6028fi
6029
6030
6031fi
6032if test -z "$ac_cv_prog_OBJDUMP"; then
6033 ac_ct_OBJDUMP=$OBJDUMP
6034 # Extract the first word of "objdump", so it can be a program name with args.
6035set dummy objdump; ac_word=$2
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037$as_echo_n "checking for $ac_word... " >&6; }
6038if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040else
6041 if test -n "$ac_ct_OBJDUMP"; then
6042 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6043else
6044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045for as_dir in $PATH
6046do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6054 fi
6055done
6056 done
6057IFS=$as_save_IFS
6058
6059fi
6060fi
6061ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6062if test -n "$ac_ct_OBJDUMP"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6064$as_echo "$ac_ct_OBJDUMP" >&6; }
6065else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067$as_echo "no" >&6; }
6068fi
6069
6070 if test "x$ac_ct_OBJDUMP" = x; then
6071 OBJDUMP="false"
6072 else
6073 case $cross_compiling:$ac_tool_warned in
6074yes:)
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6077ac_tool_warned=yes ;;
6078esac
6079 OBJDUMP=$ac_ct_OBJDUMP
6080 fi
6081else
6082 OBJDUMP="$ac_cv_prog_OBJDUMP"
6083fi
6084
6085test -z "$OBJDUMP" && OBJDUMP=objdump
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6096$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6097if ${lt_cv_deplibs_check_method+:} false; then :
6098 $as_echo_n "(cached) " >&6
6099else
6100 lt_cv_file_magic_cmd='$MAGIC_CMD'
6101lt_cv_file_magic_test_file=
6102lt_cv_deplibs_check_method='unknown'
6103# Need to set the preceding variable on all platforms that support
6104# interlibrary dependencies.
6105# 'none' -- dependencies not supported.
6106# `unknown' -- same as none, but documents that we really don't know.
6107# 'pass_all' -- all dependencies passed with no checks.
6108# 'test_compile' -- check by making test program.
6109# 'file_magic [[regex]]' -- check by looking for files in library path
6110# which responds to the $file_magic_cmd with a given extended regex.
6111# If you have `file' or equivalent on your system and you're not sure
6112# whether `pass_all' will *always* work, you probably want this one.
6113
6114case $host_os in
6115aix[4-9]*)
6116 lt_cv_deplibs_check_method=pass_all
6117 ;;
6118
6119beos*)
6120 lt_cv_deplibs_check_method=pass_all
6121 ;;
6122
6123bsdi[45]*)
6124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6125 lt_cv_file_magic_cmd='/usr/bin/file -L'
6126 lt_cv_file_magic_test_file=/shlib/libc.so
6127 ;;
6128
6129cygwin*)
6130 # func_win32_libid is a shell function defined in ltmain.sh
6131 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6132 lt_cv_file_magic_cmd='func_win32_libid'
6133 ;;
6134
6135mingw* | pw32*)
6136 # Base MSYS/MinGW do not provide the 'file' command needed by
6137 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6138 # unless we find 'file', for example because we are cross-compiling.
6139 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6140 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6141 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6142 lt_cv_file_magic_cmd='func_win32_libid'
6143 else
6144 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6145 lt_cv_file_magic_cmd='$OBJDUMP -f'
6146 fi
6147 ;;
6148
6149cegcc*)
6150 # use the weaker test based on 'objdump'. See mingw*.
6151 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6152 lt_cv_file_magic_cmd='$OBJDUMP -f'
6153 ;;
6154
6155darwin* | rhapsody*)
6156 lt_cv_deplibs_check_method=pass_all
6157 ;;
6158
6159freebsd* | dragonfly*)
6160 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6161 case $host_cpu in
6162 i*86 )
6163 # Not sure whether the presence of OpenBSD here was a mistake.
6164 # Let's accept both of them until this is cleared up.
6165 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6166 lt_cv_file_magic_cmd=/usr/bin/file
6167 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6168 ;;
6169 esac
6170 else
6171 lt_cv_deplibs_check_method=pass_all
6172 fi
6173 ;;
6174
6175gnu*)
6176 lt_cv_deplibs_check_method=pass_all
6177 ;;
6178
6179haiku*)
6180 lt_cv_deplibs_check_method=pass_all
6181 ;;
6182
6183hpux10.20* | hpux11*)
6184 lt_cv_file_magic_cmd=/usr/bin/file
6185 case $host_cpu in
6186 ia64*)
6187 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6188 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6189 ;;
6190 hppa*64*)
6191 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]'
6192 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6193 ;;
6194 *)
6195 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6196 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6197 ;;
6198 esac
6199 ;;
6200
6201interix[3-9]*)
6202 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6204 ;;
6205
6206irix5* | irix6* | nonstopux*)
6207 case $LD in
6208 *-32|*"-32 ") libmagic=32-bit;;
6209 *-n32|*"-n32 ") libmagic=N32;;
6210 *-64|*"-64 ") libmagic=64-bit;;
6211 *) libmagic=never-match;;
6212 esac
6213 lt_cv_deplibs_check_method=pass_all
6214 ;;
6215
6216# This must be Linux ELF.
6217linux* | k*bsd*-gnu | kopensolaris*-gnu)
6218 lt_cv_deplibs_check_method=pass_all
6219 ;;
6220
6221netbsd*)
6222 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6223 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6224 else
6225 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6226 fi
6227 ;;
6228
6229newos6*)
6230 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6231 lt_cv_file_magic_cmd=/usr/bin/file
6232 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6233 ;;
6234
6235*nto* | *qnx*)
6236 lt_cv_deplibs_check_method=pass_all
6237 ;;
6238
6239openbsd*)
6240 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6242 else
6243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6244 fi
6245 ;;
6246
6247osf3* | osf4* | osf5*)
6248 lt_cv_deplibs_check_method=pass_all
6249 ;;
6250
6251rdos*)
6252 lt_cv_deplibs_check_method=pass_all
6253 ;;
6254
6255solaris*)
6256 lt_cv_deplibs_check_method=pass_all
6257 ;;
6258
6259sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6260 lt_cv_deplibs_check_method=pass_all
6261 ;;
6262
6263sysv4 | sysv4.3*)
6264 case $host_vendor in
6265 motorola)
6266 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]'
6267 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6268 ;;
6269 ncr)
6270 lt_cv_deplibs_check_method=pass_all
6271 ;;
6272 sequent)
6273 lt_cv_file_magic_cmd='/bin/file'
6274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6275 ;;
6276 sni)
6277 lt_cv_file_magic_cmd='/bin/file'
6278 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6279 lt_cv_file_magic_test_file=/lib/libc.so
6280 ;;
6281 siemens)
6282 lt_cv_deplibs_check_method=pass_all
6283 ;;
6284 pc)
6285 lt_cv_deplibs_check_method=pass_all
6286 ;;
6287 esac
6288 ;;
6289
6290tpf*)
6291 lt_cv_deplibs_check_method=pass_all
6292 ;;
6293esac
6294
6295fi
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6297$as_echo "$lt_cv_deplibs_check_method" >&6; }
6298file_magic_cmd=$lt_cv_file_magic_cmd
6299deplibs_check_method=$lt_cv_deplibs_check_method
6300test -z "$deplibs_check_method" && deplibs_check_method=unknown
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313plugin_option=
6314plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6315for plugin in $plugin_names; do
6316 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6317 if test x$plugin_so = x$plugin; then
6318 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6319 fi
6320 if test x$plugin_so != x$plugin; then
6321 plugin_option="--plugin $plugin_so"
6322 break
6323 fi
6324done
6325
6326if test -n "$ac_tool_prefix"; then
6327 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6328set dummy ${ac_tool_prefix}ar; ac_word=$2
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330$as_echo_n "checking for $ac_word... " >&6; }
6331if ${ac_cv_prog_AR+:} false; then :
6332 $as_echo_n "(cached) " >&6
6333else
6334 if test -n "$AR"; then
6335 ac_cv_prog_AR="$AR" # Let the user override the test.
6336else
6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338for as_dir in $PATH
6339do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344 ac_cv_prog_AR="${ac_tool_prefix}ar"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6347 fi
6348done
6349 done
6350IFS=$as_save_IFS
6351
6352fi
6353fi
6354AR=$ac_cv_prog_AR
6355if test -n "$AR"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6357$as_echo "$AR" >&6; }
6358else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360$as_echo "no" >&6; }
6361fi
6362
6363
6364fi
6365if test -z "$ac_cv_prog_AR"; then
6366 ac_ct_AR=$AR
6367 # Extract the first word of "ar", so it can be a program name with args.
6368set dummy ar; ac_word=$2
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370$as_echo_n "checking for $ac_word... " >&6; }
6371if ${ac_cv_prog_ac_ct_AR+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373else
6374 if test -n "$ac_ct_AR"; then
6375 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6376else
6377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in $PATH
6379do
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6384 ac_cv_prog_ac_ct_AR="ar"
6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 break 2
6387 fi
6388done
6389 done
6390IFS=$as_save_IFS
6391
6392fi
6393fi
6394ac_ct_AR=$ac_cv_prog_ac_ct_AR
6395if test -n "$ac_ct_AR"; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6397$as_echo "$ac_ct_AR" >&6; }
6398else
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400$as_echo "no" >&6; }
6401fi
6402
6403 if test "x$ac_ct_AR" = x; then
6404 AR="false"
6405 else
6406 case $cross_compiling:$ac_tool_warned in
6407yes:)
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6410ac_tool_warned=yes ;;
6411esac
6412 AR=$ac_ct_AR
6413 fi
6414else
6415 AR="$ac_cv_prog_AR"
6416fi
6417
6418test -z "$AR" && AR=ar
6419if test -n "$plugin_option"; then
6420 if $AR --help 2>&1 | grep -q "\--plugin"; then
6421 touch conftest.c
6422 $AR $plugin_option rc conftest.a conftest.c
6423 if test "$?" != 0; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6425$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6426 else
6427 AR="$AR $plugin_option"
6428 fi
6429 rm -f conftest.*
6430 fi
6431fi
6432test -z "$AR_FLAGS" && AR_FLAGS=cru
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6446set dummy ${ac_tool_prefix}strip; ac_word=$2
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448$as_echo_n "checking for $ac_word... " >&6; }
6449if ${ac_cv_prog_STRIP+:} false; then :
6450 $as_echo_n "(cached) " >&6
6451else
6452 if test -n "$STRIP"; then
6453 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6454else
6455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466done
6467 done
6468IFS=$as_save_IFS
6469
6470fi
6471fi
6472STRIP=$ac_cv_prog_STRIP
6473if test -n "$STRIP"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6475$as_echo "$STRIP" >&6; }
6476else
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478$as_echo "no" >&6; }
6479fi
6480
6481
6482fi
6483if test -z "$ac_cv_prog_STRIP"; then
6484 ac_ct_STRIP=$STRIP
6485 # Extract the first word of "strip", so it can be a program name with args.
6486set dummy strip; ac_word=$2
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488$as_echo_n "checking for $ac_word... " >&6; }
6489if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491else
6492 if test -n "$ac_ct_STRIP"; then
6493 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6494else
6495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496for as_dir in $PATH
6497do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6502 ac_cv_prog_ac_ct_STRIP="strip"
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506done
6507 done
6508IFS=$as_save_IFS
6509
6510fi
6511fi
6512ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6513if test -n "$ac_ct_STRIP"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6515$as_echo "$ac_ct_STRIP" >&6; }
6516else
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518$as_echo "no" >&6; }
6519fi
6520
6521 if test "x$ac_ct_STRIP" = x; then
6522 STRIP=":"
6523 else
6524 case $cross_compiling:$ac_tool_warned in
6525yes:)
6526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528ac_tool_warned=yes ;;
6529esac
6530 STRIP=$ac_ct_STRIP
6531 fi
6532else
6533 STRIP="$ac_cv_prog_STRIP"
6534fi
6535
6536test -z "$STRIP" && STRIP=:
6537
6538
6539
6540
6541
6542
6543if test -n "$ac_tool_prefix"; then
6544 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6545set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547$as_echo_n "checking for $ac_word... " >&6; }
6548if ${ac_cv_prog_RANLIB+:} false; then :
6549 $as_echo_n "(cached) " >&6
6550else
6551 if test -n "$RANLIB"; then
6552 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6553else
6554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555for as_dir in $PATH
6556do
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6564 fi
6565done
6566 done
6567IFS=$as_save_IFS
6568
6569fi
6570fi
6571RANLIB=$ac_cv_prog_RANLIB
6572if test -n "$RANLIB"; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6574$as_echo "$RANLIB" >&6; }
6575else
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577$as_echo "no" >&6; }
6578fi
6579
6580
6581fi
6582if test -z "$ac_cv_prog_RANLIB"; then
6583 ac_ct_RANLIB=$RANLIB
6584 # Extract the first word of "ranlib", so it can be a program name with args.
6585set dummy ranlib; ac_word=$2
6586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587$as_echo_n "checking for $ac_word... " >&6; }
6588if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6589 $as_echo_n "(cached) " >&6
6590else
6591 if test -n "$ac_ct_RANLIB"; then
6592 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6593else
6594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595for as_dir in $PATH
6596do
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6601 ac_cv_prog_ac_ct_RANLIB="ranlib"
6602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 break 2
6604 fi
6605done
6606 done
6607IFS=$as_save_IFS
6608
6609fi
6610fi
6611ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6612if test -n "$ac_ct_RANLIB"; then
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6614$as_echo "$ac_ct_RANLIB" >&6; }
6615else
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617$as_echo "no" >&6; }
6618fi
6619
6620 if test "x$ac_ct_RANLIB" = x; then
6621 RANLIB=":"
6622 else
6623 case $cross_compiling:$ac_tool_warned in
6624yes:)
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6627ac_tool_warned=yes ;;
6628esac
6629 RANLIB=$ac_ct_RANLIB
6630 fi
6631else
6632 RANLIB="$ac_cv_prog_RANLIB"
6633fi
6634
6635test -z "$RANLIB" && RANLIB=:
6636if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6637 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6638 RANLIB="$RANLIB $plugin_option"
6639 fi
6640fi
6641
6642
6643
6644
6645
6646
6647# Determine commands to create old-style static archives.
6648old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6649old_postinstall_cmds='chmod 644 $oldlib'
6650old_postuninstall_cmds=
6651
6652if test -n "$RANLIB"; then
6653 case $host_os in
6654 openbsd*)
6655 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6656 ;;
6657 *)
6658 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6659 ;;
6660 esac
6661 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6662fi
6663
6664case $host_os in
6665 darwin*)
6666 lock_old_archive_extraction=yes ;;
6667 *)
6668 lock_old_archive_extraction=no ;;
6669esac
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691for ac_prog in gawk mawk nawk awk
6692do
6693 # Extract the first word of "$ac_prog", so it can be a program name with args.
6694set dummy $ac_prog; ac_word=$2
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696$as_echo_n "checking for $ac_word... " >&6; }
6697if ${ac_cv_prog_AWK+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699else
6700 if test -n "$AWK"; then
6701 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6702else
6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704for as_dir in $PATH
6705do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710 ac_cv_prog_AWK="$ac_prog"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6713 fi
6714done
6715 done
6716IFS=$as_save_IFS
6717
6718fi
6719fi
6720AWK=$ac_cv_prog_AWK
6721if test -n "$AWK"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6723$as_echo "$AWK" >&6; }
6724else
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726$as_echo "no" >&6; }
6727fi
6728
6729
6730 test -n "$AWK" && break
6731done
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751# If no C compiler was specified, use CC.
6752LTCC=${LTCC-"$CC"}
6753
6754# If no C compiler flags were specified, use CFLAGS.
6755LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6756
6757# Allow CC to be a program name with arguments.
6758compiler=$CC
6759
6760
6761# Check for command to grab the raw symbol name followed by C symbol from nm.
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6763$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6764if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6765 $as_echo_n "(cached) " >&6
6766else
6767
6768# These are sane defaults that work on at least a few old systems.
6769# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6770
6771# Character class describing NM global symbol codes.
6772symcode='[BCDEGRST]'
6773
6774# Regexp to match symbols that can be accessed directly from C.
6775sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6776
6777# Define system-specific variables.
6778case $host_os in
6779aix*)
6780 symcode='[BCDT]'
6781 ;;
6782cygwin* | mingw* | pw32* | cegcc*)
6783 symcode='[ABCDGISTW]'
6784 ;;
6785hpux*)
6786 if test "$host_cpu" = ia64; then
6787 symcode='[ABCDEGRST]'
6788 fi
6789 ;;
6790irix* | nonstopux*)
6791 symcode='[BCDEGRST]'
6792 ;;
6793osf*)
6794 symcode='[BCDEGQRST]'
6795 ;;
6796solaris*)
6797 symcode='[BDRT]'
6798 ;;
6799sco3.2v5*)
6800 symcode='[DT]'
6801 ;;
6802sysv4.2uw2*)
6803 symcode='[DT]'
6804 ;;
6805sysv5* | sco5v6* | unixware* | OpenUNIX*)
6806 symcode='[ABDT]'
6807 ;;
6808sysv4)
6809 symcode='[DFNSTU]'
6810 ;;
6811esac
6812
6813# If we're using GNU nm, then use its standard symbol codes.
6814case `$NM -V 2>&1` in
6815*GNU* | *'with BFD'*)
6816 symcode='[ABCDGIRSTW]' ;;
6817esac
6818
6819# Transform an extracted symbol line into a proper C declaration.
6820# Some systems (esp. on ia64) link data and code symbols differently,
6821# so use this general approach.
6822lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6823
6824# Transform an extracted symbol line into symbol name and symbol address
6825lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6826lt_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'"
6827
6828# Handle CRLF in mingw tool chain
6829opt_cr=
6830case $build_os in
6831mingw*)
6832 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6833 ;;
6834esac
6835
6836# Try without a prefix underscore, then with it.
6837for ac_symprfx in "" "_"; do
6838
6839 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6840 symxfrm="\\1 $ac_symprfx\\2 \\2"
6841
6842 # Write the raw and C identifiers.
6843 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6844 # Fake it for dumpbin and say T for any non-static function
6845 # and D for any global variable.
6846 # Also find C++ and __fastcall symbols from MSVC++,
6847 # which start with @ or ?.
6848 lt_cv_sys_global_symbol_pipe="$AWK '"\
6849" {last_section=section; section=\$ 3};"\
6850" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6851" \$ 0!~/External *\|/{next};"\
6852" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6853" {if(hide[section]) next};"\
6854" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6855" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6856" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6857" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6858" ' prfx=^$ac_symprfx"
6859 else
6860 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6861 fi
6862
6863 # Check to see that the pipe works correctly.
6864 pipe_works=no
6865
6866 rm -f conftest*
6867 cat > conftest.$ac_ext <<_LT_EOF
6868#ifdef __cplusplus
6869extern "C" {
6870#endif
6871char nm_test_var;
6872void nm_test_func(void);
6873void nm_test_func(void){}
6874#ifdef __cplusplus
6875}
6876#endif
6877int main(){nm_test_var='a';nm_test_func();return(0);}
6878_LT_EOF
6879
6880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6881 (eval $ac_compile) 2>&5
6882 ac_status=$?
6883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6884 test $ac_status = 0; }; then
6885 # Now try to grab the symbols.
6886 nlist=conftest.nm
6887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6888 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6889 ac_status=$?
6890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6891 test $ac_status = 0; } && test -s "$nlist"; then
6892 # Try sorting and uniquifying the output.
6893 if sort "$nlist" | uniq > "$nlist"T; then
6894 mv -f "$nlist"T "$nlist"
6895 else
6896 rm -f "$nlist"T
6897 fi
6898
6899 # Make sure that we snagged all the symbols we need.
6900 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6901 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6902 cat <<_LT_EOF > conftest.$ac_ext
6903#ifdef __cplusplus
6904extern "C" {
6905#endif
6906
6907_LT_EOF
6908 # Now generate the symbol file.
6909 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6910
6911 cat <<_LT_EOF >> conftest.$ac_ext
6912
6913/* The mapping between symbol names and symbols. */
6914const struct {
6915 const char *name;
6916 void *address;
6917}
6918lt__PROGRAM__LTX_preloaded_symbols[] =
6919{
6920 { "@PROGRAM@", (void *) 0 },
6921_LT_EOF
6922 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6923 cat <<\_LT_EOF >> conftest.$ac_ext
6924 {0, (void *) 0}
6925};
6926
6927/* This works around a problem in FreeBSD linker */
6928#ifdef FREEBSD_WORKAROUND
6929static const void *lt_preloaded_setup() {
6930 return lt__PROGRAM__LTX_preloaded_symbols;
6931}
6932#endif
6933
6934#ifdef __cplusplus
6935}
6936#endif
6937_LT_EOF
6938 # Now try linking the two files.
6939 mv conftest.$ac_objext conftstm.$ac_objext
6940 lt_save_LIBS="$LIBS"
6941 lt_save_CFLAGS="$CFLAGS"
6942 LIBS="conftstm.$ac_objext"
6943 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6945 (eval $ac_link) 2>&5
6946 ac_status=$?
6947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6948 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6949 pipe_works=yes
6950 fi
6951 LIBS="$lt_save_LIBS"
6952 CFLAGS="$lt_save_CFLAGS"
6953 else
6954 echo "cannot find nm_test_func in $nlist" >&5
6955 fi
6956 else
6957 echo "cannot find nm_test_var in $nlist" >&5
6958 fi
6959 else
6960 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6961 fi
6962 else
6963 echo "$progname: failed program was:" >&5
6964 cat conftest.$ac_ext >&5
6965 fi
6966 rm -rf conftest* conftst*
6967
6968 # Do not use the global_symbol_pipe unless it works.
6969 if test "$pipe_works" = yes; then
6970 break
6971 else
6972 lt_cv_sys_global_symbol_pipe=
6973 fi
6974done
6975
6976fi
6977
6978if test -z "$lt_cv_sys_global_symbol_pipe"; then
6979 lt_cv_sys_global_symbol_to_cdecl=
6980fi
6981if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6983$as_echo "failed" >&6; }
6984else
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6986$as_echo "ok" >&6; }
6987fi
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010# Check whether --enable-libtool-lock was given.
7011if test "${enable_libtool_lock+set}" = set; then :
7012 enableval=$enable_libtool_lock;
7013fi
7014
7015test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7016
7017# Some flags need to be propagated to the compiler or linker for good
7018# libtool support.
7019case $host in
7020ia64-*-hpux*)
7021 # Find out which ABI we are using.
7022 echo 'int i;' > conftest.$ac_ext
7023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7024 (eval $ac_compile) 2>&5
7025 ac_status=$?
7026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7027 test $ac_status = 0; }; then
7028 case `/usr/bin/file conftest.$ac_objext` in
7029 *ELF-32*)
7030 HPUX_IA64_MODE="32"
7031 ;;
7032 *ELF-64*)
7033 HPUX_IA64_MODE="64"
7034 ;;
7035 esac
7036 fi
7037 rm -rf conftest*
7038 ;;
7039*-*-irix6*)
7040 # Find out which ABI we are using.
7041 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7043 (eval $ac_compile) 2>&5
7044 ac_status=$?
7045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7046 test $ac_status = 0; }; then
7047 if test "$lt_cv_prog_gnu_ld" = yes; then
7048 case `/usr/bin/file conftest.$ac_objext` in
7049 *32-bit*)
7050 LD="${LD-ld} -melf32bsmip"
7051 ;;
7052 *N32*)
7053 LD="${LD-ld} -melf32bmipn32"
7054 ;;
7055 *64-bit*)
7056 LD="${LD-ld} -melf64bmip"
7057 ;;
7058 esac
7059 else
7060 case `/usr/bin/file conftest.$ac_objext` in
7061 *32-bit*)
7062 LD="${LD-ld} -32"
7063 ;;
7064 *N32*)
7065 LD="${LD-ld} -n32"
7066 ;;
7067 *64-bit*)
7068 LD="${LD-ld} -64"
7069 ;;
7070 esac
7071 fi
7072 fi
7073 rm -rf conftest*
7074 ;;
7075
7076x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7077s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7078 # Find out which ABI we are using.
7079 echo 'int i;' > conftest.$ac_ext
7080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7081 (eval $ac_compile) 2>&5
7082 ac_status=$?
7083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7084 test $ac_status = 0; }; then
7085 case `/usr/bin/file conftest.o` in
7086 *32-bit*)
7087 case $host in
7088 x86_64-*kfreebsd*-gnu)
7089 LD="${LD-ld} -m elf_i386_fbsd"
7090 ;;
7091 x86_64-*linux*)
7092 case `/usr/bin/file conftest.o` in
7093 *x86-64*)
7094 LD="${LD-ld} -m elf32_x86_64"
7095 ;;
7096 *)
7097 LD="${LD-ld} -m elf_i386"
7098 ;;
7099 esac
7100 ;;
7101 powerpc64le-*linux*)
7102 LD="${LD-ld} -m elf32lppclinux"
7103 ;;
7104 powerpc64-*linux*)
7105 LD="${LD-ld} -m elf32ppclinux"
7106 ;;
7107 s390x-*linux*)
7108 LD="${LD-ld} -m elf_s390"
7109 ;;
7110 sparc64-*linux*)
7111 LD="${LD-ld} -m elf32_sparc"
7112 ;;
7113 esac
7114 ;;
7115 *64-bit*)
7116 case $host in
7117 x86_64-*kfreebsd*-gnu)
7118 LD="${LD-ld} -m elf_x86_64_fbsd"
7119 ;;
7120 x86_64-*linux*)
7121 LD="${LD-ld} -m elf_x86_64"
7122 ;;
7123 powerpcle-*linux*)
7124 LD="${LD-ld} -m elf64lppc"
7125 ;;
7126 powerpc-*linux*)
7127 LD="${LD-ld} -m elf64ppc"
7128 ;;
7129 s390*-*linux*|s390*-*tpf*)
7130 LD="${LD-ld} -m elf64_s390"
7131 ;;
7132 sparc*-*linux*)
7133 LD="${LD-ld} -m elf64_sparc"
7134 ;;
7135 esac
7136 ;;
7137 esac
7138 fi
7139 rm -rf conftest*
7140 ;;
7141
7142*-*-sco3.2v5*)
7143 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7144 SAVE_CFLAGS="$CFLAGS"
7145 CFLAGS="$CFLAGS -belf"
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7147$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7148if ${lt_cv_cc_needs_belf+:} false; then :
7149 $as_echo_n "(cached) " >&6
7150else
7151 ac_ext=c
7152ac_cpp='$CPP $CPPFLAGS'
7153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155ac_compiler_gnu=$ac_cv_c_compiler_gnu
7156
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158/* end confdefs.h. */
7159
7160int
7161main ()
7162{
7163
7164 ;
7165 return 0;
7166}
7167_ACEOF
7168if ac_fn_c_try_link "$LINENO"; then :
7169 lt_cv_cc_needs_belf=yes
7170else
7171 lt_cv_cc_needs_belf=no
7172fi
7173rm -f core conftest.err conftest.$ac_objext \
7174 conftest$ac_exeext conftest.$ac_ext
7175 ac_ext=c
7176ac_cpp='$CPP $CPPFLAGS'
7177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7179ac_compiler_gnu=$ac_cv_c_compiler_gnu
7180
7181fi
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7183$as_echo "$lt_cv_cc_needs_belf" >&6; }
7184 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7185 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7186 CFLAGS="$SAVE_CFLAGS"
7187 fi
7188 ;;
7189sparc*-*solaris*)
7190 # Find out which ABI we are using.
7191 echo 'int i;' > conftest.$ac_ext
7192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7193 (eval $ac_compile) 2>&5
7194 ac_status=$?
7195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7196 test $ac_status = 0; }; then
7197 case `/usr/bin/file conftest.o` in
7198 *64-bit*)
7199 case $lt_cv_prog_gnu_ld in
7200 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7201 *)
7202 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7203 LD="${LD-ld} -64"
7204 fi
7205 ;;
7206 esac
7207 ;;
7208 esac
7209 fi
7210 rm -rf conftest*
7211 ;;
7212esac
7213
7214need_locks="$enable_libtool_lock"
7215
7216
7217 case $host_os in
7218 rhapsody* | darwin*)
7219 if test -n "$ac_tool_prefix"; then
7220 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7221set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223$as_echo_n "checking for $ac_word... " >&6; }
7224if ${ac_cv_prog_DSYMUTIL+:} false; then :
7225 $as_echo_n "(cached) " >&6
7226else
7227 if test -n "$DSYMUTIL"; then
7228 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7229else
7230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231for as_dir in $PATH
7232do
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 break 2
7240 fi
7241done
7242 done
7243IFS=$as_save_IFS
7244
7245fi
7246fi
7247DSYMUTIL=$ac_cv_prog_DSYMUTIL
7248if test -n "$DSYMUTIL"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7250$as_echo "$DSYMUTIL" >&6; }
7251else
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253$as_echo "no" >&6; }
7254fi
7255
7256
7257fi
7258if test -z "$ac_cv_prog_DSYMUTIL"; then
7259 ac_ct_DSYMUTIL=$DSYMUTIL
7260 # Extract the first word of "dsymutil", so it can be a program name with args.
7261set dummy dsymutil; ac_word=$2
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263$as_echo_n "checking for $ac_word... " >&6; }
7264if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266else
7267 if test -n "$ac_ct_DSYMUTIL"; then
7268 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281done
7282 done
7283IFS=$as_save_IFS
7284
7285fi
7286fi
7287ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7288if test -n "$ac_ct_DSYMUTIL"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7290$as_echo "$ac_ct_DSYMUTIL" >&6; }
7291else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293$as_echo "no" >&6; }
7294fi
7295
7296 if test "x$ac_ct_DSYMUTIL" = x; then
7297 DSYMUTIL=":"
7298 else
7299 case $cross_compiling:$ac_tool_warned in
7300yes:)
7301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7303ac_tool_warned=yes ;;
7304esac
7305 DSYMUTIL=$ac_ct_DSYMUTIL
7306 fi
7307else
7308 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7309fi
7310
7311 if test -n "$ac_tool_prefix"; then
7312 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7313set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315$as_echo_n "checking for $ac_word... " >&6; }
7316if ${ac_cv_prog_NMEDIT+:} false; then :
7317 $as_echo_n "(cached) " >&6
7318else
7319 if test -n "$NMEDIT"; then
7320 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7321else
7322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323for as_dir in $PATH
7324do
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 break 2
7332 fi
7333done
7334 done
7335IFS=$as_save_IFS
7336
7337fi
7338fi
7339NMEDIT=$ac_cv_prog_NMEDIT
7340if test -n "$NMEDIT"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7342$as_echo "$NMEDIT" >&6; }
7343else
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345$as_echo "no" >&6; }
7346fi
7347
7348
7349fi
7350if test -z "$ac_cv_prog_NMEDIT"; then
7351 ac_ct_NMEDIT=$NMEDIT
7352 # Extract the first word of "nmedit", so it can be a program name with args.
7353set dummy nmedit; ac_word=$2
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355$as_echo_n "checking for $ac_word... " >&6; }
7356if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358else
7359 if test -n "$ac_ct_NMEDIT"; then
7360 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7361else
7362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7372 fi
7373done
7374 done
7375IFS=$as_save_IFS
7376
7377fi
7378fi
7379ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7380if test -n "$ac_ct_NMEDIT"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7382$as_echo "$ac_ct_NMEDIT" >&6; }
7383else
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385$as_echo "no" >&6; }
7386fi
7387
7388 if test "x$ac_ct_NMEDIT" = x; then
7389 NMEDIT=":"
7390 else
7391 case $cross_compiling:$ac_tool_warned in
7392yes:)
7393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7395ac_tool_warned=yes ;;
7396esac
7397 NMEDIT=$ac_ct_NMEDIT
7398 fi
7399else
7400 NMEDIT="$ac_cv_prog_NMEDIT"
7401fi
7402
7403 if test -n "$ac_tool_prefix"; then
7404 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7405set dummy ${ac_tool_prefix}lipo; ac_word=$2
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407$as_echo_n "checking for $ac_word... " >&6; }
7408if ${ac_cv_prog_LIPO+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410else
7411 if test -n "$LIPO"; then
7412 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7413else
7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425done
7426 done
7427IFS=$as_save_IFS
7428
7429fi
7430fi
7431LIPO=$ac_cv_prog_LIPO
7432if test -n "$LIPO"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7434$as_echo "$LIPO" >&6; }
7435else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437$as_echo "no" >&6; }
7438fi
7439
7440
7441fi
7442if test -z "$ac_cv_prog_LIPO"; then
7443 ac_ct_LIPO=$LIPO
7444 # Extract the first word of "lipo", so it can be a program name with args.
7445set dummy lipo; ac_word=$2
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447$as_echo_n "checking for $ac_word... " >&6; }
7448if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7449 $as_echo_n "(cached) " >&6
7450else
7451 if test -n "$ac_ct_LIPO"; then
7452 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7453else
7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455for as_dir in $PATH
7456do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461 ac_cv_prog_ac_ct_LIPO="lipo"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7464 fi
7465done
7466 done
7467IFS=$as_save_IFS
7468
7469fi
7470fi
7471ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7472if test -n "$ac_ct_LIPO"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7474$as_echo "$ac_ct_LIPO" >&6; }
7475else
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477$as_echo "no" >&6; }
7478fi
7479
7480 if test "x$ac_ct_LIPO" = x; then
7481 LIPO=":"
7482 else
7483 case $cross_compiling:$ac_tool_warned in
7484yes:)
7485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487ac_tool_warned=yes ;;
7488esac
7489 LIPO=$ac_ct_LIPO
7490 fi
7491else
7492 LIPO="$ac_cv_prog_LIPO"
7493fi
7494
7495 if test -n "$ac_tool_prefix"; then
7496 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7497set dummy ${ac_tool_prefix}otool; ac_word=$2
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499$as_echo_n "checking for $ac_word... " >&6; }
7500if ${ac_cv_prog_OTOOL+:} false; then :
7501 $as_echo_n "(cached) " >&6
7502else
7503 if test -n "$OTOOL"; then
7504 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7505else
7506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 break 2
7516 fi
7517done
7518 done
7519IFS=$as_save_IFS
7520
7521fi
7522fi
7523OTOOL=$ac_cv_prog_OTOOL
7524if test -n "$OTOOL"; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7526$as_echo "$OTOOL" >&6; }
7527else
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529$as_echo "no" >&6; }
7530fi
7531
7532
7533fi
7534if test -z "$ac_cv_prog_OTOOL"; then
7535 ac_ct_OTOOL=$OTOOL
7536 # Extract the first word of "otool", so it can be a program name with args.
7537set dummy otool; ac_word=$2
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539$as_echo_n "checking for $ac_word... " >&6; }
7540if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7541 $as_echo_n "(cached) " >&6
7542else
7543 if test -n "$ac_ct_OTOOL"; then
7544 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7545else
7546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547for as_dir in $PATH
7548do
7549 IFS=$as_save_IFS
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7553 ac_cv_prog_ac_ct_OTOOL="otool"
7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 break 2
7556 fi
7557done
7558 done
7559IFS=$as_save_IFS
7560
7561fi
7562fi
7563ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7564if test -n "$ac_ct_OTOOL"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7566$as_echo "$ac_ct_OTOOL" >&6; }
7567else
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569$as_echo "no" >&6; }
7570fi
7571
7572 if test "x$ac_ct_OTOOL" = x; then
7573 OTOOL=":"
7574 else
7575 case $cross_compiling:$ac_tool_warned in
7576yes:)
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7579ac_tool_warned=yes ;;
7580esac
7581 OTOOL=$ac_ct_OTOOL
7582 fi
7583else
7584 OTOOL="$ac_cv_prog_OTOOL"
7585fi
7586
7587 if test -n "$ac_tool_prefix"; then
7588 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7589set dummy ${ac_tool_prefix}otool64; ac_word=$2
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591$as_echo_n "checking for $ac_word... " >&6; }
7592if ${ac_cv_prog_OTOOL64+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594else
7595 if test -n "$OTOOL64"; then
7596 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7597else
7598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 break 2
7608 fi
7609done
7610 done
7611IFS=$as_save_IFS
7612
7613fi
7614fi
7615OTOOL64=$ac_cv_prog_OTOOL64
7616if test -n "$OTOOL64"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7618$as_echo "$OTOOL64" >&6; }
7619else
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621$as_echo "no" >&6; }
7622fi
7623
7624
7625fi
7626if test -z "$ac_cv_prog_OTOOL64"; then
7627 ac_ct_OTOOL64=$OTOOL64
7628 # Extract the first word of "otool64", so it can be a program name with args.
7629set dummy otool64; ac_word=$2
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631$as_echo_n "checking for $ac_word... " >&6; }
7632if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7633 $as_echo_n "(cached) " >&6
7634else
7635 if test -n "$ac_ct_OTOOL64"; then
7636 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7637else
7638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639for as_dir in $PATH
7640do
7641 IFS=$as_save_IFS
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7645 ac_cv_prog_ac_ct_OTOOL64="otool64"
7646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 break 2
7648 fi
7649done
7650 done
7651IFS=$as_save_IFS
7652
7653fi
7654fi
7655ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7656if test -n "$ac_ct_OTOOL64"; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7658$as_echo "$ac_ct_OTOOL64" >&6; }
7659else
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661$as_echo "no" >&6; }
7662fi
7663
7664 if test "x$ac_ct_OTOOL64" = x; then
7665 OTOOL64=":"
7666 else
7667 case $cross_compiling:$ac_tool_warned in
7668yes:)
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7671ac_tool_warned=yes ;;
7672esac
7673 OTOOL64=$ac_ct_OTOOL64
7674 fi
7675else
7676 OTOOL64="$ac_cv_prog_OTOOL64"
7677fi
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7706$as_echo_n "checking for -single_module linker flag... " >&6; }
7707if ${lt_cv_apple_cc_single_mod+:} false; then :
7708 $as_echo_n "(cached) " >&6
7709else
7710 lt_cv_apple_cc_single_mod=no
7711 if test -z "${LT_MULTI_MODULE}"; then
7712 # By default we will add the -single_module flag. You can override
7713 # by either setting the environment variable LT_MULTI_MODULE
7714 # non-empty at configure time, or by adding -multi_module to the
7715 # link flags.
7716 rm -rf libconftest.dylib*
7717 echo "int foo(void){return 1;}" > conftest.c
7718 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7719-dynamiclib -Wl,-single_module conftest.c" >&5
7720 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7721 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7722 _lt_result=$?
7723 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7724 lt_cv_apple_cc_single_mod=yes
7725 else
7726 cat conftest.err >&5
7727 fi
7728 rm -rf libconftest.dylib*
7729 rm -f conftest.*
7730 fi
7731fi
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7733$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7735$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7736if ${lt_cv_ld_exported_symbols_list+:} false; then :
7737 $as_echo_n "(cached) " >&6
7738else
7739 lt_cv_ld_exported_symbols_list=no
7740 save_LDFLAGS=$LDFLAGS
7741 echo "_main" > conftest.sym
7742 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744/* end confdefs.h. */
7745
7746int
7747main ()
7748{
7749
7750 ;
7751 return 0;
7752}
7753_ACEOF
7754if ac_fn_c_try_link "$LINENO"; then :
7755 lt_cv_ld_exported_symbols_list=yes
7756else
7757 lt_cv_ld_exported_symbols_list=no
7758fi
7759rm -f core conftest.err conftest.$ac_objext \
7760 conftest$ac_exeext conftest.$ac_ext
7761 LDFLAGS="$save_LDFLAGS"
7762
7763fi
7764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7765$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7767$as_echo_n "checking for -force_load linker flag... " >&6; }
7768if ${lt_cv_ld_force_load+:} false; then :
7769 $as_echo_n "(cached) " >&6
7770else
7771 lt_cv_ld_force_load=no
7772 cat > conftest.c << _LT_EOF
7773int forced_loaded() { return 2;}
7774_LT_EOF
7775 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7776 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7777 echo "$AR cru libconftest.a conftest.o" >&5
7778 $AR cru libconftest.a conftest.o 2>&5
7779 cat > conftest.c << _LT_EOF
7780int main() { return 0;}
7781_LT_EOF
7782 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7783 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7784 _lt_result=$?
7785 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7786 lt_cv_ld_force_load=yes
7787 else
7788 cat conftest.err >&5
7789 fi
7790 rm -f conftest.err libconftest.a conftest conftest.c
7791 rm -rf conftest.dSYM
7792
7793fi
7794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7795$as_echo "$lt_cv_ld_force_load" >&6; }
7796 case $host_os in
7797 rhapsody* | darwin1.[012])
7798 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7799 darwin1.*)
7800 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7801 darwin*) # darwin 5.x on
7802 # if running on 10.5 or later, the deployment target defaults
7803 # to the OS version, if on x86, and 10.4, the deployment
7804 # target defaults to 10.4. Don't you love it?
7805 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7806 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7807 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7808 10.[012][,.]*)
7809 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7810 10.*)
7811 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7812 esac
7813 ;;
7814 esac
7815 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7816 _lt_dar_single_mod='$single_module'
7817 fi
7818 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7819 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7820 else
7821 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7822 fi
7823 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7824 _lt_dsymutil='~$DSYMUTIL $lib || :'
7825 else
7826 _lt_dsymutil=
7827 fi
7828 ;;
7829 esac
7830
7831for ac_header in dlfcn.h
7832do :
7833 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7834"
7835if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7836 cat >>confdefs.h <<_ACEOF
7837#define HAVE_DLFCN_H 1
7838_ACEOF
7839
7840fi
7841
7842done
7843
7844
7845ac_header_dirent=no
7846for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7847 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7849$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7850if eval \${$as_ac_Header+:} false; then :
7851 $as_echo_n "(cached) " >&6
7852else
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854/* end confdefs.h. */
7855#include <sys/types.h>
7856#include <$ac_hdr>
7857
7858int
7859main ()
7860{
7861if ((DIR *) 0)
7862return 0;
7863 ;
7864 return 0;
7865}
7866_ACEOF
7867if ac_fn_c_try_compile "$LINENO"; then :
7868 eval "$as_ac_Header=yes"
7869else
7870 eval "$as_ac_Header=no"
7871fi
7872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873fi
7874eval ac_res=\$$as_ac_Header
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7876$as_echo "$ac_res" >&6; }
7877if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7878 cat >>confdefs.h <<_ACEOF
7879#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7880_ACEOF
7881
7882ac_header_dirent=$ac_hdr; break
7883fi
7884
7885done
7886# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7887if test $ac_header_dirent = dirent.h; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7889$as_echo_n "checking for library containing opendir... " >&6; }
7890if ${ac_cv_search_opendir+:} false; then :
7891 $as_echo_n "(cached) " >&6
7892else
7893 ac_func_search_save_LIBS=$LIBS
7894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895/* end confdefs.h. */
7896
7897/* Override any GCC internal prototype to avoid an error.
7898 Use char because int might match the return type of a GCC
7899 builtin and then its argument prototype would still apply. */
7900#ifdef __cplusplus
7901extern "C"
7902#endif
7903char opendir ();
7904int
7905main ()
7906{
7907return opendir ();
7908 ;
7909 return 0;
7910}
7911_ACEOF
7912for ac_lib in '' dir; do
7913 if test -z "$ac_lib"; then
7914 ac_res="none required"
7915 else
7916 ac_res=-l$ac_lib
7917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7918 fi
7919 if ac_fn_c_try_link "$LINENO"; then :
7920 ac_cv_search_opendir=$ac_res
7921fi
7922rm -f core conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext
7924 if ${ac_cv_search_opendir+:} false; then :
7925 break
7926fi
7927done
7928if ${ac_cv_search_opendir+:} false; then :
7929
7930else
7931 ac_cv_search_opendir=no
7932fi
7933rm conftest.$ac_ext
7934LIBS=$ac_func_search_save_LIBS
7935fi
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7937$as_echo "$ac_cv_search_opendir" >&6; }
7938ac_res=$ac_cv_search_opendir
7939if test "$ac_res" != no; then :
7940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7941
7942fi
7943
7944else
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7946$as_echo_n "checking for library containing opendir... " >&6; }
7947if ${ac_cv_search_opendir+:} false; then :
7948 $as_echo_n "(cached) " >&6
7949else
7950 ac_func_search_save_LIBS=$LIBS
7951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952/* end confdefs.h. */
7953
7954/* Override any GCC internal prototype to avoid an error.
7955 Use char because int might match the return type of a GCC
7956 builtin and then its argument prototype would still apply. */
7957#ifdef __cplusplus
7958extern "C"
7959#endif
7960char opendir ();
7961int
7962main ()
7963{
7964return opendir ();
7965 ;
7966 return 0;
7967}
7968_ACEOF
7969for ac_lib in '' x; do
7970 if test -z "$ac_lib"; then
7971 ac_res="none required"
7972 else
7973 ac_res=-l$ac_lib
7974 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7975 fi
7976 if ac_fn_c_try_link "$LINENO"; then :
7977 ac_cv_search_opendir=$ac_res
7978fi
7979rm -f core conftest.err conftest.$ac_objext \
7980 conftest$ac_exeext
7981 if ${ac_cv_search_opendir+:} false; then :
7982 break
7983fi
7984done
7985if ${ac_cv_search_opendir+:} false; then :
7986
7987else
7988 ac_cv_search_opendir=no
7989fi
7990rm conftest.$ac_ext
7991LIBS=$ac_func_search_save_LIBS
7992fi
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7994$as_echo "$ac_cv_search_opendir" >&6; }
7995ac_res=$ac_cv_search_opendir
7996if test "$ac_res" != no; then :
7997 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7998
7999fi
8000
8001fi
8002
8003
8004
8005
8006ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8007if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8008
8009cat >>confdefs.h <<_ACEOF
8010#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8011_ACEOF
8012
8013
8014$as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8015
8016fi
8017
8018
8019ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8020if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8021
8022cat >>confdefs.h <<_ACEOF
8023#define HAVE_STRUCT_STAT_ST_BLOCKS 1
8024_ACEOF
8025
8026
8027$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8028
8029else
8030 case " $LIBOBJS " in
8031 *" fileblocks.$ac_objext "* ) ;;
8032 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8033 ;;
8034esac
8035
8036fi
8037
8038
8039ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8040if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8041
8042cat >>confdefs.h <<_ACEOF
8043#define HAVE_STRUCT_STAT_ST_RDEV 1
8044_ACEOF
8045
8046
8047$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8048
8049fi
8050
8051
8052ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8053#include <$ac_cv_struct_tm>
8054
8055"
8056if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8057
8058cat >>confdefs.h <<_ACEOF
8059#define HAVE_STRUCT_TM_TM_ZONE 1
8060_ACEOF
8061
8062
8063fi
8064
8065if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8066
8067$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8068
8069else
8070 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8071"
8072if test "x$ac_cv_have_decl_tzname" = xyes; then :
8073 ac_have_decl=1
8074else
8075 ac_have_decl=0
8076fi
8077
8078cat >>confdefs.h <<_ACEOF
8079#define HAVE_DECL_TZNAME $ac_have_decl
8080_ACEOF
8081
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8083$as_echo_n "checking for tzname... " >&6; }
8084if ${ac_cv_var_tzname+:} false; then :
8085 $as_echo_n "(cached) " >&6
8086else
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088/* end confdefs.h. */
8089#include <time.h>
a48ff3ef
MF
8090#if !HAVE_DECL_TZNAME
8091extern char *tzname[];
8092#endif
b5689863
MF
8093
8094int
8095main ()
8096{
8097return tzname[0][0];
8098 ;
8099 return 0;
8100}
8101_ACEOF
8102if ac_fn_c_try_link "$LINENO"; then :
8103 ac_cv_var_tzname=yes
8104else
8105 ac_cv_var_tzname=no
8106fi
8107rm -f core conftest.err conftest.$ac_objext \
8108 conftest$ac_exeext conftest.$ac_ext
8109fi
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8111$as_echo "$ac_cv_var_tzname" >&6; }
8112 if test $ac_cv_var_tzname = yes; then
8113
8114$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8115
8116 fi
8117fi
8118
8119
8120ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8121#include <sys/types.h>
8122#endif
8123#ifdef HAVE_SYS_STAT_H
8124#include <sys/stat.h>
8125#endif
8126"
8127if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8128
8129cat >>confdefs.h <<_ACEOF
8130#define HAVE_STRUCT_STAT_ST_DEV 1
8131_ACEOF
8132
8133
8134fi
8135ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8136#include <sys/types.h>
8137#endif
8138#ifdef HAVE_SYS_STAT_H
8139#include <sys/stat.h>
8140#endif
8141"
8142if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8143
8144cat >>confdefs.h <<_ACEOF
8145#define HAVE_STRUCT_STAT_ST_INO 1
8146_ACEOF
8147
8148
8149fi
8150ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8151#include <sys/types.h>
8152#endif
8153#ifdef HAVE_SYS_STAT_H
8154#include <sys/stat.h>
8155#endif
8156"
8157if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8158
8159cat >>confdefs.h <<_ACEOF
8160#define HAVE_STRUCT_STAT_ST_MODE 1
8161_ACEOF
8162
8163
8164fi
8165ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8166#include <sys/types.h>
8167#endif
8168#ifdef HAVE_SYS_STAT_H
8169#include <sys/stat.h>
8170#endif
8171"
8172if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8173
8174cat >>confdefs.h <<_ACEOF
8175#define HAVE_STRUCT_STAT_ST_NLINK 1
8176_ACEOF
8177
8178
8179fi
8180ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8181#include <sys/types.h>
8182#endif
8183#ifdef HAVE_SYS_STAT_H
8184#include <sys/stat.h>
8185#endif
8186"
8187if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8188
8189cat >>confdefs.h <<_ACEOF
8190#define HAVE_STRUCT_STAT_ST_UID 1
8191_ACEOF
8192
8193
8194fi
8195ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8196#include <sys/types.h>
8197#endif
8198#ifdef HAVE_SYS_STAT_H
8199#include <sys/stat.h>
8200#endif
8201"
8202if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8203
8204cat >>confdefs.h <<_ACEOF
8205#define HAVE_STRUCT_STAT_ST_GID 1
8206_ACEOF
8207
8208
8209fi
8210ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8211#include <sys/types.h>
8212#endif
8213#ifdef HAVE_SYS_STAT_H
8214#include <sys/stat.h>
8215#endif
8216"
8217if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8218
8219cat >>confdefs.h <<_ACEOF
8220#define HAVE_STRUCT_STAT_ST_RDEV 1
8221_ACEOF
8222
8223
8224fi
8225ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8226#include <sys/types.h>
8227#endif
8228#ifdef HAVE_SYS_STAT_H
8229#include <sys/stat.h>
8230#endif
8231"
8232if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8233
8234cat >>confdefs.h <<_ACEOF
8235#define HAVE_STRUCT_STAT_ST_SIZE 1
8236_ACEOF
8237
8238
8239fi
8240ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8241#include <sys/types.h>
8242#endif
8243#ifdef HAVE_SYS_STAT_H
8244#include <sys/stat.h>
8245#endif
8246"
8247if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8248
8249cat >>confdefs.h <<_ACEOF
8250#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8251_ACEOF
8252
8253
8254fi
8255ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8256#include <sys/types.h>
8257#endif
8258#ifdef HAVE_SYS_STAT_H
8259#include <sys/stat.h>
8260#endif
8261"
8262if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8263
8264cat >>confdefs.h <<_ACEOF
8265#define HAVE_STRUCT_STAT_ST_BLOCKS 1
8266_ACEOF
8267
8268
8269fi
8270ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8271#include <sys/types.h>
8272#endif
8273#ifdef HAVE_SYS_STAT_H
8274#include <sys/stat.h>
8275#endif
8276"
8277if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8278
8279cat >>confdefs.h <<_ACEOF
8280#define HAVE_STRUCT_STAT_ST_ATIME 1
8281_ACEOF
8282
8283
8284fi
8285ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8286#include <sys/types.h>
8287#endif
8288#ifdef HAVE_SYS_STAT_H
8289#include <sys/stat.h>
8290#endif
8291"
8292if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8293
8294cat >>confdefs.h <<_ACEOF
8295#define HAVE_STRUCT_STAT_ST_MTIME 1
8296_ACEOF
8297
8298
8299fi
8300ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8301#include <sys/types.h>
8302#endif
8303#ifdef HAVE_SYS_STAT_H
8304#include <sys/stat.h>
8305#endif
8306"
8307if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8308
8309cat >>confdefs.h <<_ACEOF
8310#define HAVE_STRUCT_STAT_ST_CTIME 1
8311_ACEOF
8312
8313
8314fi
8315
8316
8317ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8318if test "x$ac_cv_type___int128" = xyes; then :
8319
8320cat >>confdefs.h <<_ACEOF
8321#define HAVE___INT128 1
8322_ACEOF
8323
8324
8325fi
8326
8327ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8328#include <sys/socket.h>
8329
8330"
8331if test "x$ac_cv_type_socklen_t" = xyes; then :
8332
8333cat >>confdefs.h <<_ACEOF
8334#define HAVE_SOCKLEN_T 1
8335_ACEOF
8336
8337
8338fi
8339
8340
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8342$as_echo_n "checking type of array argument to getgroups... " >&6; }
8343if ${ac_cv_type_getgroups+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345else
8346 if test "$cross_compiling" = yes; then :
8347 ac_cv_type_getgroups=cross
8348else
8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350/* end confdefs.h. */
8351/* Thanks to Mike Rendell for this test. */
8352$ac_includes_default
8353#define NGID 256
8354#undef MAX
8355#define MAX(x, y) ((x) > (y) ? (x) : (y))
8356
8357int
8358main ()
8359{
8360 gid_t gidset[NGID];
8361 int i, n;
8362 union { gid_t gval; long int lval; } val;
8363
8364 val.lval = -1;
8365 for (i = 0; i < NGID; i++)
8366 gidset[i] = val.gval;
8367 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8368 gidset);
8369 /* Exit non-zero if getgroups seems to require an array of ints. This
8370 happens when gid_t is short int but getgroups modifies an array
8371 of ints. */
8372 return n > 0 && gidset[n] != val.gval;
8373}
8374_ACEOF
8375if ac_fn_c_try_run "$LINENO"; then :
8376 ac_cv_type_getgroups=gid_t
8377else
8378 ac_cv_type_getgroups=int
8379fi
8380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8381 conftest.$ac_objext conftest.beam conftest.$ac_ext
8382fi
8383
8384if test $ac_cv_type_getgroups = cross; then
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386/* end confdefs.h. */
8387#include <unistd.h>
8388
8389_ACEOF
8390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8391 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8392 ac_cv_type_getgroups=gid_t
8393else
8394 ac_cv_type_getgroups=int
8395fi
8396rm -f conftest*
8397
8398fi
8399fi
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8401$as_echo "$ac_cv_type_getgroups" >&6; }
8402
8403cat >>confdefs.h <<_ACEOF
8404#define GETGROUPS_T $ac_cv_type_getgroups
8405_ACEOF
8406
8407
8408ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8409if test "x$ac_cv_type_mode_t" = xyes; then :
8410
8411else
8412
8413cat >>confdefs.h <<_ACEOF
8414#define mode_t int
8415_ACEOF
8416
8417fi
8418
8419ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8420if test "x$ac_cv_type_off_t" = xyes; then :
8421
8422else
8423
8424cat >>confdefs.h <<_ACEOF
8425#define off_t long int
8426_ACEOF
8427
8428fi
8429
8430ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8431if test "x$ac_cv_type_pid_t" = xyes; then :
8432
8433else
8434
8435cat >>confdefs.h <<_ACEOF
8436#define pid_t int
8437_ACEOF
8438
8439fi
8440
8441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8442$as_echo_n "checking return type of signal handlers... " >&6; }
8443if ${ac_cv_type_signal+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445else
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447/* end confdefs.h. */
8448#include <sys/types.h>
8449#include <signal.h>
8450
8451int
8452main ()
8453{
8454return *(signal (0, 0)) (0) == 1;
8455 ;
8456 return 0;
8457}
8458_ACEOF
8459if ac_fn_c_try_compile "$LINENO"; then :
8460 ac_cv_type_signal=int
8461else
8462 ac_cv_type_signal=void
8463fi
8464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465fi
8466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8467$as_echo "$ac_cv_type_signal" >&6; }
8468
8469cat >>confdefs.h <<_ACEOF
8470#define RETSIGTYPE $ac_cv_type_signal
8471_ACEOF
8472
8473
8474ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8475if test "x$ac_cv_type_size_t" = xyes; then :
8476
8477else
8478
8479cat >>confdefs.h <<_ACEOF
8480#define size_t unsigned int
8481_ACEOF
8482
8483fi
8484
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8486$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8487if ${ac_cv_type_uid_t+:} false; then :
8488 $as_echo_n "(cached) " >&6
8489else
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491/* end confdefs.h. */
8492#include <sys/types.h>
8493
8494_ACEOF
8495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8496 $EGREP "uid_t" >/dev/null 2>&1; then :
8497 ac_cv_type_uid_t=yes
8498else
8499 ac_cv_type_uid_t=no
8500fi
8501rm -f conftest*
8502
8503fi
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8505$as_echo "$ac_cv_type_uid_t" >&6; }
8506if test $ac_cv_type_uid_t = no; then
8507
8508$as_echo "#define uid_t int" >>confdefs.h
8509
8510
8511$as_echo "#define gid_t int" >>confdefs.h
8512
8513fi
8514
8515
ce3ec98a
MF
8516ALL_LINGUAS=
8517# If we haven't got the data from the intl directory,
8518# assume NLS is disabled.
8519USE_NLS=no
8520LIBINTL=
8521LIBINTL_DEP=
8522INCINTL=
8523XGETTEXT=
8524GMSGFMT=
8525POSUB=
8526
8527if test -f ../intl/config.intl; then
8528 . ../intl/config.intl
8529fi
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8531$as_echo_n "checking whether NLS is requested... " >&6; }
8532if test x"$USE_NLS" != xyes; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8534$as_echo "no" >&6; }
8535else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8537$as_echo "yes" >&6; }
8538
8539$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8540
8541
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8543$as_echo_n "checking for catalogs to be installed... " >&6; }
8544 # Look for .po and .gmo files in the source directory.
8545 CATALOGS=
8546 XLINGUAS=
8547 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8548 # If there aren't any .gmo files the shell will give us the
8549 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8550 # weeded out.
8551 case "$cat" in *\**)
8552 continue;;
8553 esac
8554 # The quadruple backslash is collapsed to a double backslash
8555 # by the backticks, then collapsed again by the double quotes,
8556 # leaving us with one backslash in the sed expression (right
8557 # before the dot that mustn't act as a wildcard).
8558 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8559 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8560 # The user is allowed to set LINGUAS to a list of languages to
8561 # install catalogs for. If it's empty that means "all of them."
8562 if test "x$LINGUAS" = x; then
8563 CATALOGS="$CATALOGS $cat"
8564 XLINGUAS="$XLINGUAS $lang"
8565 else
8566 case "$LINGUAS" in *$lang*)
8567 CATALOGS="$CATALOGS $cat"
8568 XLINGUAS="$XLINGUAS $lang"
8569 ;;
8570 esac
8571 fi
8572 done
8573 LINGUAS="$XLINGUAS"
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8575$as_echo "$LINGUAS" >&6; }
8576
8577
8578 DATADIRNAME=share
8579
8580 INSTOBJEXT=.mo
8581
8582 GENCAT=gencat
8583
8584 CATOBJEXT=.gmo
8585
8586fi
8587
b5689863
MF
8588
8589 # Use the system's zlib library.
8590 zlibdir="-L\$(top_builddir)/../zlib"
8591 zlibinc="-I\$(top_srcdir)/../zlib"
8592
8593# Check whether --with-system-zlib was given.
8594if test "${with_system_zlib+set}" = set; then :
8595 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8596 zlibdir=
8597 zlibinc=
8598 fi
8599
8600fi
8601
8602
8603
8604
8605
8606
8607 maybe_plugins=no
8608 for ac_header in dlfcn.h
8609do :
8610 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8611"
8612if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8613 cat >>confdefs.h <<_ACEOF
8614#define HAVE_DLFCN_H 1
8615_ACEOF
8616 maybe_plugins=yes
8617fi
8618
8619done
8620
8621 for ac_header in windows.h
8622do :
8623 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
8624"
8625if test "x$ac_cv_header_windows_h" = xyes; then :
8626 cat >>confdefs.h <<_ACEOF
8627#define HAVE_WINDOWS_H 1
8628_ACEOF
8629 maybe_plugins=yes
8630fi
8631
8632done
8633
8634
8635 # Check whether --enable-plugins was given.
8636if test "${enable_plugins+set}" = set; then :
8637 enableval=$enable_plugins; case "${enableval}" in
8638 no) plugins=no ;;
8639 *) plugins=yes
8640 if test "$maybe_plugins" != "yes" ; then
8641 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
8642 fi ;;
8643 esac
8644else
8645 plugins=$maybe_plugins
8646
8647fi
8648
8649 if test "$plugins" = "yes"; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
8651$as_echo_n "checking for library containing dlsym... " >&6; }
8652if ${ac_cv_search_dlsym+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654else
8655 ac_func_search_save_LIBS=$LIBS
8656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657/* end confdefs.h. */
8658
8659/* Override any GCC internal prototype to avoid an error.
8660 Use char because int might match the return type of a GCC
8661 builtin and then its argument prototype would still apply. */
8662#ifdef __cplusplus
8663extern "C"
8664#endif
8665char dlsym ();
8666int
8667main ()
8668{
8669return dlsym ();
8670 ;
8671 return 0;
8672}
8673_ACEOF
8674for ac_lib in '' dl; do
8675 if test -z "$ac_lib"; then
8676 ac_res="none required"
8677 else
8678 ac_res=-l$ac_lib
8679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8680 fi
8681 if ac_fn_c_try_link "$LINENO"; then :
8682 ac_cv_search_dlsym=$ac_res
8683fi
8684rm -f core conftest.err conftest.$ac_objext \
8685 conftest$ac_exeext
8686 if ${ac_cv_search_dlsym+:} false; then :
8687 break
8688fi
8689done
8690if ${ac_cv_search_dlsym+:} false; then :
8691
8692else
8693 ac_cv_search_dlsym=no
8694fi
8695rm conftest.$ac_ext
8696LIBS=$ac_func_search_save_LIBS
8697fi
8698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
8699$as_echo "$ac_cv_search_dlsym" >&6; }
8700ac_res=$ac_cv_search_dlsym
8701if test "$ac_res" != no; then :
8702 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8703
8704fi
8705
8706 fi
8707
8708 if test "$plugins" = yes; then
8709 PLUGINS_TRUE=
8710 PLUGINS_FALSE='#'
8711else
8712 PLUGINS_TRUE='#'
8713 PLUGINS_FALSE=
8714fi
8715
8716
8717
8718
8719
8720# Set options
8721enable_dlopen=yes
8722
8723
8724
8725
8726 enable_win32_dll=no
8727
8728
8729 # Check whether --enable-shared was given.
8730if test "${enable_shared+set}" = set; then :
8731 enableval=$enable_shared; p=${PACKAGE-default}
8732 case $enableval in
8733 yes) enable_shared=yes ;;
8734 no) enable_shared=no ;;
8735 *)
8736 enable_shared=no
8737 # Look at the argument we got. We use all the common list separators.
8738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8739 for pkg in $enableval; do
8740 IFS="$lt_save_ifs"
8741 if test "X$pkg" = "X$p"; then
8742 enable_shared=yes
8743 fi
8744 done
8745 IFS="$lt_save_ifs"
8746 ;;
8747 esac
8748else
8749 enable_shared=yes
8750fi
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760 # Check whether --enable-static was given.
8761if test "${enable_static+set}" = set; then :
8762 enableval=$enable_static; p=${PACKAGE-default}
8763 case $enableval in
8764 yes) enable_static=yes ;;
8765 no) enable_static=no ;;
8766 *)
8767 enable_static=no
8768 # Look at the argument we got. We use all the common list separators.
8769 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8770 for pkg in $enableval; do
8771 IFS="$lt_save_ifs"
8772 if test "X$pkg" = "X$p"; then
8773 enable_static=yes
8774 fi
8775 done
8776 IFS="$lt_save_ifs"
8777 ;;
8778 esac
8779else
8780 enable_static=yes
8781fi
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792# Check whether --with-pic was given.
8793if test "${with_pic+set}" = set; then :
8794 withval=$with_pic; pic_mode="$withval"
8795else
8796 pic_mode=default
8797fi
8798
8799
8800test -z "$pic_mode" && pic_mode=default
8801
8802
8803
8804
8805
8806
8807
8808 # Check whether --enable-fast-install was given.
8809if test "${enable_fast_install+set}" = set; then :
8810 enableval=$enable_fast_install; p=${PACKAGE-default}
8811 case $enableval in
8812 yes) enable_fast_install=yes ;;
8813 no) enable_fast_install=no ;;
8814 *)
8815 enable_fast_install=no
8816 # Look at the argument we got. We use all the common list separators.
8817 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8818 for pkg in $enableval; do
8819 IFS="$lt_save_ifs"
8820 if test "X$pkg" = "X$p"; then
8821 enable_fast_install=yes
8822 fi
8823 done
8824 IFS="$lt_save_ifs"
8825 ;;
8826 esac
8827else
8828 enable_fast_install=yes
8829fi
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841# This can be used to rebuild libtool when needed
8842LIBTOOL_DEPS="$ltmain"
8843
8844# Always use our own libtool.
8845LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872test -z "$LN_S" && LN_S="ln -s"
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887if test -n "${ZSH_VERSION+set}" ; then
8888 setopt NO_GLOB_SUBST
8889fi
8890
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8892$as_echo_n "checking for objdir... " >&6; }
8893if ${lt_cv_objdir+:} false; then :
8894 $as_echo_n "(cached) " >&6
8895else
8896 rm -f .libs 2>/dev/null
8897mkdir .libs 2>/dev/null
8898if test -d .libs; then
8899 lt_cv_objdir=.libs
8900else
8901 # MS-DOS does not allow filenames that begin with a dot.
8902 lt_cv_objdir=_libs
8903fi
8904rmdir .libs 2>/dev/null
8905fi
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8907$as_echo "$lt_cv_objdir" >&6; }
8908objdir=$lt_cv_objdir
8909
8910
8911
8912
8913
8914cat >>confdefs.h <<_ACEOF
8915#define LT_OBJDIR "$lt_cv_objdir/"
8916_ACEOF
8917
8918
8919
8920
8921case $host_os in
8922aix3*)
8923 # AIX sometimes has problems with the GCC collect2 program. For some
8924 # reason, if we set the COLLECT_NAMES environment variable, the problems
8925 # vanish in a puff of smoke.
8926 if test "X${COLLECT_NAMES+set}" != Xset; then
8927 COLLECT_NAMES=
8928 export COLLECT_NAMES
8929 fi
8930 ;;
8931esac
8932
8933# Global variables:
8934ofile=libtool
8935can_build_shared=yes
8936
8937# All known linkers require a `.a' archive for static linking (except MSVC,
8938# which needs '.lib').
8939libext=a
8940
8941with_gnu_ld="$lt_cv_prog_gnu_ld"
8942
8943old_CC="$CC"
8944old_CFLAGS="$CFLAGS"
8945
8946# Set sane defaults for various variables
8947test -z "$CC" && CC=cc
8948test -z "$LTCC" && LTCC=$CC
8949test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8950test -z "$LD" && LD=ld
8951test -z "$ac_objext" && ac_objext=o
8952
8953for cc_temp in $compiler""; do
8954 case $cc_temp in
8955 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8956 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8957 \-*) ;;
8958 *) break;;
8959 esac
8960done
8961cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8962
8963
8964# Only perform the check for file, if the check method requires it
8965test -z "$MAGIC_CMD" && MAGIC_CMD=file
8966case $deplibs_check_method in
8967file_magic*)
8968 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8970$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8971if ${lt_cv_path_MAGIC_CMD+:} false; then :
8972 $as_echo_n "(cached) " >&6
8973else
8974 case $MAGIC_CMD in
8975[\\/*] | ?:[\\/]*)
8976 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8977 ;;
8978*)
8979 lt_save_MAGIC_CMD="$MAGIC_CMD"
8980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8981 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8982 for ac_dir in $ac_dummy; do
8983 IFS="$lt_save_ifs"
8984 test -z "$ac_dir" && ac_dir=.
8985 if test -f $ac_dir/${ac_tool_prefix}file; then
8986 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8987 if test -n "$file_magic_test_file"; then
8988 case $deplibs_check_method in
8989 "file_magic "*)
8990 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8992 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8993 $EGREP "$file_magic_regex" > /dev/null; then
8994 :
8995 else
8996 cat <<_LT_EOF 1>&2
8997
8998*** Warning: the command libtool uses to detect shared libraries,
8999*** $file_magic_cmd, produces output that libtool cannot recognize.
9000*** The result is that libtool may fail to recognize shared libraries
9001*** as such. This will affect the creation of libtool libraries that
9002*** depend on shared libraries, but programs linked with such libtool
9003*** libraries will work regardless of this problem. Nevertheless, you
9004*** may want to report the problem to your system manager and/or to
9005*** bug-libtool@gnu.org
9006
9007_LT_EOF
9008 fi ;;
9009 esac
9010 fi
9011 break
9012 fi
9013 done
9014 IFS="$lt_save_ifs"
9015 MAGIC_CMD="$lt_save_MAGIC_CMD"
9016 ;;
9017esac
9018fi
9019
9020MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9021if test -n "$MAGIC_CMD"; then
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9023$as_echo "$MAGIC_CMD" >&6; }
9024else
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026$as_echo "no" >&6; }
9027fi
9028
9029
9030
9031
9032
9033if test -z "$lt_cv_path_MAGIC_CMD"; then
9034 if test -n "$ac_tool_prefix"; then
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9036$as_echo_n "checking for file... " >&6; }
9037if ${lt_cv_path_MAGIC_CMD+:} false; then :
9038 $as_echo_n "(cached) " >&6
9039else
9040 case $MAGIC_CMD in
9041[\\/*] | ?:[\\/]*)
9042 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9043 ;;
9044*)
9045 lt_save_MAGIC_CMD="$MAGIC_CMD"
9046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9047 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9048 for ac_dir in $ac_dummy; do
9049 IFS="$lt_save_ifs"
9050 test -z "$ac_dir" && ac_dir=.
9051 if test -f $ac_dir/file; then
9052 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9053 if test -n "$file_magic_test_file"; then
9054 case $deplibs_check_method in
9055 "file_magic "*)
9056 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9057 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9058 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9059 $EGREP "$file_magic_regex" > /dev/null; then
9060 :
9061 else
9062 cat <<_LT_EOF 1>&2
9063
9064*** Warning: the command libtool uses to detect shared libraries,
9065*** $file_magic_cmd, produces output that libtool cannot recognize.
9066*** The result is that libtool may fail to recognize shared libraries
9067*** as such. This will affect the creation of libtool libraries that
9068*** depend on shared libraries, but programs linked with such libtool
9069*** libraries will work regardless of this problem. Nevertheless, you
9070*** may want to report the problem to your system manager and/or to
9071*** bug-libtool@gnu.org
9072
9073_LT_EOF
9074 fi ;;
9075 esac
9076 fi
9077 break
9078 fi
9079 done
9080 IFS="$lt_save_ifs"
9081 MAGIC_CMD="$lt_save_MAGIC_CMD"
9082 ;;
9083esac
9084fi
9085
9086MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9087if test -n "$MAGIC_CMD"; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9089$as_echo "$MAGIC_CMD" >&6; }
9090else
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092$as_echo "no" >&6; }
9093fi
9094
9095
9096 else
9097 MAGIC_CMD=:
9098 fi
9099fi
9100
9101 fi
9102 ;;
9103esac
9104
9105# Use C for the default configuration in the libtool script
9106
9107lt_save_CC="$CC"
9108ac_ext=c
9109ac_cpp='$CPP $CPPFLAGS'
9110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9112ac_compiler_gnu=$ac_cv_c_compiler_gnu
9113
9114
9115# Source file extension for C test sources.
9116ac_ext=c
9117
9118# Object file extension for compiled C test sources.
9119objext=o
9120objext=$objext
9121
9122# Code to be used in simple compile tests
9123lt_simple_compile_test_code="int some_variable = 0;"
9124
9125# Code to be used in simple link tests
9126lt_simple_link_test_code='int main(){return(0);}'
9127
9128
9129
9130
9131
9132
9133
9134# If no C compiler was specified, use CC.
9135LTCC=${LTCC-"$CC"}
9136
9137# If no C compiler flags were specified, use CFLAGS.
9138LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9139
9140# Allow CC to be a program name with arguments.
9141compiler=$CC
9142
9143# Save the default compiler, since it gets overwritten when the other
9144# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9145compiler_DEFAULT=$CC
9146
9147# save warnings/boilerplate of simple test code
9148ac_outfile=conftest.$ac_objext
9149echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9150eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9151_lt_compiler_boilerplate=`cat conftest.err`
9152$RM conftest*
9153
9154ac_outfile=conftest.$ac_objext
9155echo "$lt_simple_link_test_code" >conftest.$ac_ext
9156eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9157_lt_linker_boilerplate=`cat conftest.err`
9158$RM -r conftest*
9159
9160
9161## CAVEAT EMPTOR:
9162## There is no encapsulation within the following macros, do not change
9163## the running order or otherwise move them around unless you know exactly
9164## what you are doing...
9165if test -n "$compiler"; then
9166
9167lt_prog_compiler_no_builtin_flag=
9168
9169if test "$GCC" = yes; then
9170 case $cc_basename in
9171 nvcc*)
9172 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9173 *)
9174 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9175 esac
9176
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9178$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9179if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9180 $as_echo_n "(cached) " >&6
9181else
9182 lt_cv_prog_compiler_rtti_exceptions=no
9183 ac_outfile=conftest.$ac_objext
9184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9185 lt_compiler_flag="-fno-rtti -fno-exceptions"
9186 # Insert the option either (1) after the last *FLAGS variable, or
9187 # (2) before a word containing "conftest.", or (3) at the end.
9188 # Note that $ac_compile itself does not contain backslashes and begins
9189 # with a dollar sign (not a hyphen), so the echo should work correctly.
9190 # The option is referenced via a variable to avoid confusing sed.
9191 lt_compile=`echo "$ac_compile" | $SED \
9192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9194 -e 's:$: $lt_compiler_flag:'`
9195 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9196 (eval "$lt_compile" 2>conftest.err)
9197 ac_status=$?
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 if (exit $ac_status) && test -s "$ac_outfile"; then
9201 # The compiler can only warn and ignore the option if not recognized
9202 # So say no if there are warnings other than the usual output.
9203 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9204 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9205 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9206 lt_cv_prog_compiler_rtti_exceptions=yes
9207 fi
9208 fi
9209 $RM conftest*
9210
9211fi
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9213$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9214
9215if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9216 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9217else
9218 :
9219fi
9220
9221fi
9222
9223
9224
9225
9226
9227
9228 lt_prog_compiler_wl=
9229lt_prog_compiler_pic=
9230lt_prog_compiler_static=
9231
9232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9233$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9234
9235 if test "$GCC" = yes; then
9236 lt_prog_compiler_wl='-Wl,'
9237 lt_prog_compiler_static='-static'
9238
9239 case $host_os in
9240 aix*)
9241 # All AIX code is PIC.
9242 if test "$host_cpu" = ia64; then
9243 # AIX 5 now supports IA64 processor
9244 lt_prog_compiler_static='-Bstatic'
9245 fi
9246 lt_prog_compiler_pic='-fPIC'
9247 ;;
9248
9249 amigaos*)
9250 case $host_cpu in
9251 powerpc)
9252 # see comment about AmigaOS4 .so support
9253 lt_prog_compiler_pic='-fPIC'
9254 ;;
9255 m68k)
9256 # FIXME: we need at least 68020 code to build shared libraries, but
9257 # adding the `-m68020' flag to GCC prevents building anything better,
9258 # like `-m68040'.
9259 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9260 ;;
9261 esac
9262 ;;
9263
9264 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9265 # PIC is the default for these OSes.
9266 ;;
9267
9268 mingw* | cygwin* | pw32* | os2* | cegcc*)
9269 # This hack is so that the source file can tell whether it is being
9270 # built for inclusion in a dll (and should export symbols for example).
9271 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9272 # (--disable-auto-import) libraries
9273 lt_prog_compiler_pic='-DDLL_EXPORT'
9274 ;;
9275
9276 darwin* | rhapsody*)
9277 # PIC is the default on this platform
9278 # Common symbols not allowed in MH_DYLIB files
9279 lt_prog_compiler_pic='-fno-common'
9280 ;;
9281
9282 haiku*)
9283 # PIC is the default for Haiku.
9284 # The "-static" flag exists, but is broken.
9285 lt_prog_compiler_static=
9286 ;;
9287
9288 hpux*)
9289 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9290 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9291 # sets the default TLS model and affects inlining.
9292 case $host_cpu in
9293 hppa*64*)
9294 # +Z the default
9295 ;;
9296 *)
9297 lt_prog_compiler_pic='-fPIC'
9298 ;;
9299 esac
9300 ;;
9301
9302 interix[3-9]*)
9303 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9304 # Instead, we relocate shared libraries at runtime.
9305 ;;
9306
9307 msdosdjgpp*)
9308 # Just because we use GCC doesn't mean we suddenly get shared libraries
9309 # on systems that don't support them.
9310 lt_prog_compiler_can_build_shared=no
9311 enable_shared=no
9312 ;;
9313
9314 *nto* | *qnx*)
9315 # QNX uses GNU C++, but need to define -shared option too, otherwise
9316 # it will coredump.
9317 lt_prog_compiler_pic='-fPIC -shared'
9318 ;;
9319
9320 sysv4*MP*)
9321 if test -d /usr/nec; then
9322 lt_prog_compiler_pic=-Kconform_pic
9323 fi
9324 ;;
9325
9326 *)
9327 lt_prog_compiler_pic='-fPIC'
9328 ;;
9329 esac
9330
9331 case $cc_basename in
9332 nvcc*) # Cuda Compiler Driver 2.2
9333 lt_prog_compiler_wl='-Xlinker '
9334 lt_prog_compiler_pic='-Xcompiler -fPIC'
9335 ;;
9336 esac
9337 else
9338 # PORTME Check for flag to pass linker flags through the system compiler.
9339 case $host_os in
9340 aix*)
9341 lt_prog_compiler_wl='-Wl,'
9342 if test "$host_cpu" = ia64; then
9343 # AIX 5 now supports IA64 processor
9344 lt_prog_compiler_static='-Bstatic'
9345 else
9346 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9347 fi
9348 ;;
9349
9350 mingw* | cygwin* | pw32* | os2* | cegcc*)
9351 # This hack is so that the source file can tell whether it is being
9352 # built for inclusion in a dll (and should export symbols for example).
9353 lt_prog_compiler_pic='-DDLL_EXPORT'
9354 ;;
9355
9356 hpux9* | hpux10* | hpux11*)
9357 lt_prog_compiler_wl='-Wl,'
9358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9359 # not for PA HP-UX.
9360 case $host_cpu in
9361 hppa*64*|ia64*)
9362 # +Z the default
9363 ;;
9364 *)
9365 lt_prog_compiler_pic='+Z'
9366 ;;
9367 esac
9368 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9369 lt_prog_compiler_static='${wl}-a ${wl}archive'
9370 ;;
9371
9372 irix5* | irix6* | nonstopux*)
9373 lt_prog_compiler_wl='-Wl,'
9374 # PIC (with -KPIC) is the default.
9375 lt_prog_compiler_static='-non_shared'
9376 ;;
9377
9378 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9379 case $cc_basename in
9380 # old Intel for x86_64 which still supported -KPIC.
9381 ecc*)
9382 lt_prog_compiler_wl='-Wl,'
9383 lt_prog_compiler_pic='-KPIC'
9384 lt_prog_compiler_static='-static'
9385 ;;
9386 # icc used to be incompatible with GCC.
9387 # ICC 10 doesn't accept -KPIC any more.
9388 icc* | ifort*)
9389 lt_prog_compiler_wl='-Wl,'
9390 lt_prog_compiler_pic='-fPIC'
9391 lt_prog_compiler_static='-static'
9392 ;;
9393 # Lahey Fortran 8.1.
9394 lf95*)
9395 lt_prog_compiler_wl='-Wl,'
9396 lt_prog_compiler_pic='--shared'
9397 lt_prog_compiler_static='--static'
9398 ;;
9399 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9400 # Portland Group compilers (*not* the Pentium gcc compiler,
9401 # which looks to be a dead project)
9402 lt_prog_compiler_wl='-Wl,'
9403 lt_prog_compiler_pic='-fpic'
9404 lt_prog_compiler_static='-Bstatic'
9405 ;;
9406 ccc*)
9407 lt_prog_compiler_wl='-Wl,'
9408 # All Alpha code is PIC.
9409 lt_prog_compiler_static='-non_shared'
9410 ;;
9411 xl* | bgxl* | bgf* | mpixl*)
9412 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9413 lt_prog_compiler_wl='-Wl,'
9414 lt_prog_compiler_pic='-qpic'
9415 lt_prog_compiler_static='-qstaticlink'
9416 ;;
9417 *)
9418 case `$CC -V 2>&1 | sed 5q` in
9419 *Sun\ F* | *Sun*Fortran*)
9420 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9421 lt_prog_compiler_pic='-KPIC'
9422 lt_prog_compiler_static='-Bstatic'
9423 lt_prog_compiler_wl=''
9424 ;;
9425 *Sun\ C*)
9426 # Sun C 5.9
9427 lt_prog_compiler_pic='-KPIC'
9428 lt_prog_compiler_static='-Bstatic'
9429 lt_prog_compiler_wl='-Wl,'
9430 ;;
9431 esac
9432 ;;
9433 esac
9434 ;;
9435
9436 newsos6)
9437 lt_prog_compiler_pic='-KPIC'
9438 lt_prog_compiler_static='-Bstatic'
9439 ;;
9440
9441 *nto* | *qnx*)
9442 # QNX uses GNU C++, but need to define -shared option too, otherwise
9443 # it will coredump.
9444 lt_prog_compiler_pic='-fPIC -shared'
9445 ;;
9446
9447 osf3* | osf4* | osf5*)
9448 lt_prog_compiler_wl='-Wl,'
9449 # All OSF/1 code is PIC.
9450 lt_prog_compiler_static='-non_shared'
9451 ;;
9452
9453 rdos*)
9454 lt_prog_compiler_static='-non_shared'
9455 ;;
9456
9457 solaris*)
9458 lt_prog_compiler_pic='-KPIC'
9459 lt_prog_compiler_static='-Bstatic'
9460 case $cc_basename in
9461 f77* | f90* | f95*)
9462 lt_prog_compiler_wl='-Qoption ld ';;
9463 *)
9464 lt_prog_compiler_wl='-Wl,';;
9465 esac
9466 ;;
9467
9468 sunos4*)
9469 lt_prog_compiler_wl='-Qoption ld '
9470 lt_prog_compiler_pic='-PIC'
9471 lt_prog_compiler_static='-Bstatic'
9472 ;;
9473
9474 sysv4 | sysv4.2uw2* | sysv4.3*)
9475 lt_prog_compiler_wl='-Wl,'
9476 lt_prog_compiler_pic='-KPIC'
9477 lt_prog_compiler_static='-Bstatic'
9478 ;;
9479
9480 sysv4*MP*)
9481 if test -d /usr/nec ;then
9482 lt_prog_compiler_pic='-Kconform_pic'
9483 lt_prog_compiler_static='-Bstatic'
9484 fi
9485 ;;
9486
9487 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9488 lt_prog_compiler_wl='-Wl,'
9489 lt_prog_compiler_pic='-KPIC'
9490 lt_prog_compiler_static='-Bstatic'
9491 ;;
9492
9493 unicos*)
9494 lt_prog_compiler_wl='-Wl,'
9495 lt_prog_compiler_can_build_shared=no
9496 ;;
9497
9498 uts4*)
9499 lt_prog_compiler_pic='-pic'
9500 lt_prog_compiler_static='-Bstatic'
9501 ;;
9502
9503 *)
9504 lt_prog_compiler_can_build_shared=no
9505 ;;
9506 esac
9507 fi
9508
9509case $host_os in
9510 # For platforms which do not support PIC, -DPIC is meaningless:
9511 *djgpp*)
9512 lt_prog_compiler_pic=
9513 ;;
9514 *)
9515 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9516 ;;
9517esac
9518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9519$as_echo "$lt_prog_compiler_pic" >&6; }
9520
9521
9522
9523
9524
9525
9526#
9527# Check to make sure the PIC flag actually works.
9528#
9529if test -n "$lt_prog_compiler_pic"; then
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9531$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9532if ${lt_cv_prog_compiler_pic_works+:} false; then :
9533 $as_echo_n "(cached) " >&6
9534else
9535 lt_cv_prog_compiler_pic_works=no
9536 ac_outfile=conftest.$ac_objext
9537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9538 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9539 # Insert the option either (1) after the last *FLAGS variable, or
9540 # (2) before a word containing "conftest.", or (3) at the end.
9541 # Note that $ac_compile itself does not contain backslashes and begins
9542 # with a dollar sign (not a hyphen), so the echo should work correctly.
9543 # The option is referenced via a variable to avoid confusing sed.
9544 lt_compile=`echo "$ac_compile" | $SED \
9545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9547 -e 's:$: $lt_compiler_flag:'`
9548 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9549 (eval "$lt_compile" 2>conftest.err)
9550 ac_status=$?
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 if (exit $ac_status) && test -s "$ac_outfile"; then
9554 # The compiler can only warn and ignore the option if not recognized
9555 # So say no if there are warnings other than the usual output.
9556 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9558 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9559 lt_cv_prog_compiler_pic_works=yes
9560 fi
9561 fi
9562 $RM conftest*
9563
9564fi
9565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9566$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9567
9568if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9569 case $lt_prog_compiler_pic in
9570 "" | " "*) ;;
9571 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9572 esac
9573else
9574 lt_prog_compiler_pic=
9575 lt_prog_compiler_can_build_shared=no
9576fi
9577
9578fi
9579
9580
9581
9582
9583
9584
9585#
9586# Check to make sure the static flag actually works.
9587#
9588wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9590$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9591if ${lt_cv_prog_compiler_static_works+:} false; then :
9592 $as_echo_n "(cached) " >&6
9593else
9594 lt_cv_prog_compiler_static_works=no
9595 save_LDFLAGS="$LDFLAGS"
9596 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9597 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9598 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9599 # The linker can only warn and ignore the option if not recognized
9600 # So say no if there are warnings
9601 if test -s conftest.err; then
9602 # Append any errors to the config.log.
9603 cat conftest.err 1>&5
9604 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9606 if diff conftest.exp conftest.er2 >/dev/null; then
9607 lt_cv_prog_compiler_static_works=yes
9608 fi
9609 else
9610 lt_cv_prog_compiler_static_works=yes
9611 fi
9612 fi
9613 $RM -r conftest*
9614 LDFLAGS="$save_LDFLAGS"
9615
9616fi
9617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9618$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9619
9620if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9621 :
9622else
9623 lt_prog_compiler_static=
9624fi
9625
9626
9627
9628
9629
9630
9631
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9633$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9634if ${lt_cv_prog_compiler_c_o+:} false; then :
9635 $as_echo_n "(cached) " >&6
9636else
9637 lt_cv_prog_compiler_c_o=no
9638 $RM -r conftest 2>/dev/null
9639 mkdir conftest
9640 cd conftest
9641 mkdir out
9642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9643
9644 lt_compiler_flag="-o out/conftest2.$ac_objext"
9645 # Insert the option either (1) after the last *FLAGS variable, or
9646 # (2) before a word containing "conftest.", or (3) at the end.
9647 # Note that $ac_compile itself does not contain backslashes and begins
9648 # with a dollar sign (not a hyphen), so the echo should work correctly.
9649 lt_compile=`echo "$ac_compile" | $SED \
9650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9652 -e 's:$: $lt_compiler_flag:'`
9653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9654 (eval "$lt_compile" 2>out/conftest.err)
9655 ac_status=$?
9656 cat out/conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9659 then
9660 # The compiler can only warn and ignore the option if not recognized
9661 # So say no if there are warnings
9662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9663 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9664 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9665 lt_cv_prog_compiler_c_o=yes
9666 fi
9667 fi
9668 chmod u+w . 2>&5
9669 $RM conftest*
9670 # SGI C++ compiler will create directory out/ii_files/ for
9671 # template instantiation
9672 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9673 $RM out/* && rmdir out
9674 cd ..
9675 $RM -r conftest
9676 $RM conftest*
9677
9678fi
9679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9680$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9681
9682
9683
9684
9685
9686
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9688$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9689if ${lt_cv_prog_compiler_c_o+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691else
9692 lt_cv_prog_compiler_c_o=no
9693 $RM -r conftest 2>/dev/null
9694 mkdir conftest
9695 cd conftest
9696 mkdir out
9697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9698
9699 lt_compiler_flag="-o out/conftest2.$ac_objext"
9700 # Insert the option either (1) after the last *FLAGS variable, or
9701 # (2) before a word containing "conftest.", or (3) at the end.
9702 # Note that $ac_compile itself does not contain backslashes and begins
9703 # with a dollar sign (not a hyphen), so the echo should work correctly.
9704 lt_compile=`echo "$ac_compile" | $SED \
9705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9707 -e 's:$: $lt_compiler_flag:'`
9708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9709 (eval "$lt_compile" 2>out/conftest.err)
9710 ac_status=$?
9711 cat out/conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9714 then
9715 # The compiler can only warn and ignore the option if not recognized
9716 # So say no if there are warnings
9717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9720 lt_cv_prog_compiler_c_o=yes
9721 fi
9722 fi
9723 chmod u+w . 2>&5
9724 $RM conftest*
9725 # SGI C++ compiler will create directory out/ii_files/ for
9726 # template instantiation
9727 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9728 $RM out/* && rmdir out
9729 cd ..
9730 $RM -r conftest
9731 $RM conftest*
9732
9733fi
9734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9735$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9736
9737
9738
9739
9740hard_links="nottested"
9741if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9742 # do not overwrite the value of need_locks provided by the user
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9744$as_echo_n "checking if we can lock with hard links... " >&6; }
9745 hard_links=yes
9746 $RM conftest*
9747 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9748 touch conftest.a
9749 ln conftest.a conftest.b 2>&5 || hard_links=no
9750 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9752$as_echo "$hard_links" >&6; }
9753 if test "$hard_links" = no; then
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9755$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9756 need_locks=warn
9757 fi
9758else
9759 need_locks=no
9760fi
9761
9762
9763
9764
9765
9766
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9768$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9769
9770 runpath_var=
9771 allow_undefined_flag=
9772 always_export_symbols=no
9773 archive_cmds=
9774 archive_expsym_cmds=
9775 compiler_needs_object=no
9776 enable_shared_with_static_runtimes=no
9777 export_dynamic_flag_spec=
9778 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9779 hardcode_automatic=no
9780 hardcode_direct=no
9781 hardcode_direct_absolute=no
9782 hardcode_libdir_flag_spec=
9783 hardcode_libdir_flag_spec_ld=
9784 hardcode_libdir_separator=
9785 hardcode_minus_L=no
9786 hardcode_shlibpath_var=unsupported
9787 inherit_rpath=no
9788 link_all_deplibs=unknown
9789 module_cmds=
9790 module_expsym_cmds=
9791 old_archive_from_new_cmds=
9792 old_archive_from_expsyms_cmds=
9793 thread_safe_flag_spec=
9794 whole_archive_flag_spec=
9795 # include_expsyms should be a list of space-separated symbols to be *always*
9796 # included in the symbol list
9797 include_expsyms=
9798 # exclude_expsyms can be an extended regexp of symbols to exclude
9799 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9800 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9801 # as well as any symbol that contains `d'.
9802 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9803 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9804 # platforms (ab)use it in PIC code, but their linkers get confused if
9805 # the symbol is explicitly referenced. Since portable code cannot
9806 # rely on this symbol name, it's probably fine to never include it in
9807 # preloaded symbol tables.
9808 # Exclude shared library initialization/finalization symbols.
9809 extract_expsyms_cmds=
9810
9811 case $host_os in
9812 cygwin* | mingw* | pw32* | cegcc*)
9813 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9814 # When not using gcc, we currently assume that we are using
9815 # Microsoft Visual C++.
9816 if test "$GCC" != yes; then
9817 with_gnu_ld=no
9818 fi
9819 ;;
9820 interix*)
9821 # we just hope/assume this is gcc and not c89 (= MSVC++)
9822 with_gnu_ld=yes
9823 ;;
9824 openbsd*)
9825 with_gnu_ld=no
9826 ;;
9827 esac
9828
9829 ld_shlibs=yes
9830
9831 # On some targets, GNU ld is compatible enough with the native linker
9832 # that we're better off using the native interface for both.
9833 lt_use_gnu_ld_interface=no
9834 if test "$with_gnu_ld" = yes; then
9835 case $host_os in
9836 aix*)
9837 # The AIX port of GNU ld has always aspired to compatibility
9838 # with the native linker. However, as the warning in the GNU ld
9839 # block says, versions before 2.19.5* couldn't really create working
9840 # shared libraries, regardless of the interface used.
9841 case `$LD -v 2>&1` in
9842 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9843 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9844 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9845 *)
9846 lt_use_gnu_ld_interface=yes
9847 ;;
9848 esac
9849 ;;
9850 *)
9851 lt_use_gnu_ld_interface=yes
9852 ;;
9853 esac
9854 fi
9855
9856 if test "$lt_use_gnu_ld_interface" = yes; then
9857 # If archive_cmds runs LD, not CC, wlarc should be empty
9858 wlarc='${wl}'
9859
9860 # Set some defaults for GNU ld with shared library support. These
9861 # are reset later if shared libraries are not supported. Putting them
9862 # here allows them to be overridden if necessary.
9863 runpath_var=LD_RUN_PATH
9864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9865 export_dynamic_flag_spec='${wl}--export-dynamic'
9866 # ancient GNU ld didn't support --whole-archive et. al.
9867 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9868 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9869 else
9870 whole_archive_flag_spec=
9871 fi
9872 supports_anon_versioning=no
9873 case `$LD -v 2>&1` in
9874 *GNU\ gold*) supports_anon_versioning=yes ;;
9875 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9876 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9877 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9878 *\ 2.11.*) ;; # other 2.11 versions
9879 *) supports_anon_versioning=yes ;;
9880 esac
9881
9882 # See if GNU ld supports shared libraries.
9883 case $host_os in
9884 aix[3-9]*)
9885 # On AIX/PPC, the GNU linker is very broken
9886 if test "$host_cpu" != ia64; then
9887 ld_shlibs=no
9888 cat <<_LT_EOF 1>&2
9889
9890*** Warning: the GNU linker, at least up to release 2.19, is reported
9891*** to be unable to reliably create shared libraries on AIX.
9892*** Therefore, libtool is disabling shared libraries support. If you
9893*** really care for shared libraries, you may want to install binutils
9894*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9895*** You will then need to restart the configuration process.
9896
9897_LT_EOF
9898 fi
9899 ;;
9900
9901 amigaos*)
9902 case $host_cpu in
9903 powerpc)
9904 # see comment about AmigaOS4 .so support
9905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9906 archive_expsym_cmds=''
9907 ;;
9908 m68k)
9909 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)'
9910 hardcode_libdir_flag_spec='-L$libdir'
9911 hardcode_minus_L=yes
9912 ;;
9913 esac
9914 ;;
9915
9916 beos*)
9917 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9918 allow_undefined_flag=unsupported
9919 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9920 # support --undefined. This deserves some investigation. FIXME
9921 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9922 else
9923 ld_shlibs=no
9924 fi
9925 ;;
9926
9927 cygwin* | mingw* | pw32* | cegcc*)
9928 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9929 # as there is no search path for DLLs.
9930 hardcode_libdir_flag_spec='-L$libdir'
9931 export_dynamic_flag_spec='${wl}--export-all-symbols'
9932 allow_undefined_flag=unsupported
9933 always_export_symbols=no
9934 enable_shared_with_static_runtimes=yes
9935 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9936
9937 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9939 # If the export-symbols file already is a .def file (1st line
9940 # is EXPORTS), use it as is; otherwise, prepend...
9941 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9942 cp $export_symbols $output_objdir/$soname.def;
9943 else
9944 echo EXPORTS > $output_objdir/$soname.def;
9945 cat $export_symbols >> $output_objdir/$soname.def;
9946 fi~
9947 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9948 else
9949 ld_shlibs=no
9950 fi
9951 ;;
9952
9953 haiku*)
9954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9955 link_all_deplibs=yes
9956 ;;
9957
9958 interix[3-9]*)
9959 hardcode_direct=no
9960 hardcode_shlibpath_var=no
9961 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9962 export_dynamic_flag_spec='${wl}-E'
9963 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9964 # Instead, shared libraries are loaded at an image base (0x10000000 by
9965 # default) and relocated if they conflict, which is a slow very memory
9966 # consuming and fragmenting process. To avoid this, we pick a random,
9967 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9968 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9969 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9970 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'
9971 ;;
9972
9973 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9974 tmp_diet=no
9975 if test "$host_os" = linux-dietlibc; then
9976 case $cc_basename in
9977 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9978 esac
9979 fi
9980 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9981 && test "$tmp_diet" = no
9982 then
9983 tmp_addflag=' $pic_flag'
9984 tmp_sharedflag='-shared'
9985 case $cc_basename,$host_cpu in
9986 pgcc*) # Portland Group C compiler
9987 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'
9988 tmp_addflag=' $pic_flag'
9989 ;;
9990 pgf77* | pgf90* | pgf95* | pgfortran*)
9991 # Portland Group f77 and f90 compilers
9992 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'
9993 tmp_addflag=' $pic_flag -Mnomain' ;;
9994 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9995 tmp_addflag=' -i_dynamic' ;;
9996 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9997 tmp_addflag=' -i_dynamic -nofor_main' ;;
9998 ifc* | ifort*) # Intel Fortran compiler
9999 tmp_addflag=' -nofor_main' ;;
10000 lf95*) # Lahey Fortran 8.1
10001 whole_archive_flag_spec=
10002 tmp_sharedflag='--shared' ;;
10003 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10004 tmp_sharedflag='-qmkshrobj'
10005 tmp_addflag= ;;
10006 nvcc*) # Cuda Compiler Driver 2.2
10007 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'
10008 compiler_needs_object=yes
10009 ;;
10010 esac
10011 case `$CC -V 2>&1 | sed 5q` in
10012 *Sun\ C*) # Sun C 5.9
10013 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'
10014 compiler_needs_object=yes
10015 tmp_sharedflag='-G' ;;
10016 *Sun\ F*) # Sun Fortran 8.3
10017 tmp_sharedflag='-G' ;;
10018 esac
10019 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10020
10021 if test "x$supports_anon_versioning" = xyes; then
10022 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10023 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10024 echo "local: *; };" >> $output_objdir/$libname.ver~
10025 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10026 fi
10027
10028 case $cc_basename in
10029 xlf* | bgf* | bgxlf* | mpixlf*)
10030 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10031 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10032 hardcode_libdir_flag_spec=
10033 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10034 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10035 if test "x$supports_anon_versioning" = xyes; then
10036 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10038 echo "local: *; };" >> $output_objdir/$libname.ver~
10039 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10040 fi
10041 ;;
10042 esac
10043 else
10044 ld_shlibs=no
10045 fi
10046 ;;
10047
10048 netbsd*)
10049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10050 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10051 wlarc=
10052 else
10053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10054 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10055 fi
10056 ;;
10057
10058 solaris*)
10059 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10060 ld_shlibs=no
10061 cat <<_LT_EOF 1>&2
10062
10063*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10064*** create shared libraries on Solaris systems. Therefore, libtool
10065*** is disabling shared libraries support. We urge you to upgrade GNU
10066*** binutils to release 2.9.1 or newer. Another option is to modify
10067*** your PATH or compiler configuration so that the native linker is
10068*** used, and then restart.
10069
10070_LT_EOF
10071 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10073 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10074 else
10075 ld_shlibs=no
10076 fi
10077 ;;
10078
10079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10080 case `$LD -v 2>&1` in
10081 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10082 ld_shlibs=no
10083 cat <<_LT_EOF 1>&2
10084
10085*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10086*** reliably create shared libraries on SCO systems. Therefore, libtool
10087*** is disabling shared libraries support. We urge you to upgrade GNU
10088*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10089*** your PATH or compiler configuration so that the native linker is
10090*** used, and then restart.
10091
10092_LT_EOF
10093 ;;
10094 *)
10095 # For security reasons, it is highly recommended that you always
10096 # use absolute paths for naming shared libraries, and exclude the
10097 # DT_RUNPATH tag from executables and libraries. But doing so
10098 # requires that you compile everything twice, which is a pain.
10099 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10102 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10103 else
10104 ld_shlibs=no
10105 fi
10106 ;;
10107 esac
10108 ;;
10109
10110 sunos4*)
10111 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10112 wlarc=
10113 hardcode_direct=yes
10114 hardcode_shlibpath_var=no
10115 ;;
10116
10117 *)
10118 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10120 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10121 else
10122 ld_shlibs=no
10123 fi
10124 ;;
10125 esac
10126
10127 if test "$ld_shlibs" = no; then
10128 runpath_var=
10129 hardcode_libdir_flag_spec=
10130 export_dynamic_flag_spec=
10131 whole_archive_flag_spec=
10132 fi
10133 else
10134 # PORTME fill in a description of your system's linker (not GNU ld)
10135 case $host_os in
10136 aix3*)
10137 allow_undefined_flag=unsupported
10138 always_export_symbols=yes
10139 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'
10140 # Note: this linker hardcodes the directories in LIBPATH if there
10141 # are no directories specified by -L.
10142 hardcode_minus_L=yes
10143 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10144 # Neither direct hardcoding nor static linking is supported with a
10145 # broken collect2.
10146 hardcode_direct=unsupported
10147 fi
10148 ;;
10149
10150 aix[4-9]*)
10151 if test "$host_cpu" = ia64; then
10152 # On IA64, the linker does run time linking by default, so we don't
10153 # have to do anything special.
10154 aix_use_runtimelinking=no
10155 exp_sym_flag='-Bexport'
10156 no_entry_flag=""
10157 else
10158 # If we're using GNU nm, then we don't want the "-C" option.
10159 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10160 # Also, AIX nm treats weak defined symbols like other global
10161 # defined symbols, whereas GNU nm marks them as "W".
10162 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10163 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'
10164 else
10165 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'
10166 fi
10167 aix_use_runtimelinking=no
10168
10169 # Test if we are trying to use run time linking or normal
10170 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10171 # need to do runtime linking.
10172 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10173 for ld_flag in $LDFLAGS; do
10174 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10175 aix_use_runtimelinking=yes
10176 break
10177 fi
10178 done
10179 ;;
10180 esac
10181
10182 exp_sym_flag='-bexport'
10183 no_entry_flag='-bnoentry'
10184 fi
10185
10186 # When large executables or shared objects are built, AIX ld can
10187 # have problems creating the table of contents. If linking a library
10188 # or program results in "error TOC overflow" add -mminimal-toc to
10189 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10190 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10191
10192 archive_cmds=''
10193 hardcode_direct=yes
10194 hardcode_direct_absolute=yes
10195 hardcode_libdir_separator=':'
10196 link_all_deplibs=yes
10197 file_list_spec='${wl}-f,'
10198
10199 if test "$GCC" = yes; then
10200 case $host_os in aix4.[012]|aix4.[012].*)
10201 # We only want to do this on AIX 4.2 and lower, the check
10202 # below for broken collect2 doesn't work under 4.3+
10203 collect2name=`${CC} -print-prog-name=collect2`
10204 if test -f "$collect2name" &&
10205 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10206 then
10207 # We have reworked collect2
10208 :
10209 else
10210 # We have old collect2
10211 hardcode_direct=unsupported
10212 # It fails to find uninstalled libraries when the uninstalled
10213 # path is not listed in the libpath. Setting hardcode_minus_L
10214 # to unsupported forces relinking
10215 hardcode_minus_L=yes
10216 hardcode_libdir_flag_spec='-L$libdir'
10217 hardcode_libdir_separator=
10218 fi
10219 ;;
10220 esac
10221 shared_flag='-shared'
10222 if test "$aix_use_runtimelinking" = yes; then
10223 shared_flag="$shared_flag "'${wl}-G'
10224 fi
10225 else
10226 # not using gcc
10227 if test "$host_cpu" = ia64; then
10228 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10229 # chokes on -Wl,-G. The following line is correct:
10230 shared_flag='-G'
10231 else
10232 if test "$aix_use_runtimelinking" = yes; then
10233 shared_flag='${wl}-G'
10234 else
10235 shared_flag='${wl}-bM:SRE'
10236 fi
10237 fi
10238 fi
10239
10240 export_dynamic_flag_spec='${wl}-bexpall'
10241 # It seems that -bexpall does not export symbols beginning with
10242 # underscore (_), so it is better to generate a list of symbols to export.
10243 always_export_symbols=yes
10244 if test "$aix_use_runtimelinking" = yes; then
10245 # Warning - without using the other runtime loading flags (-brtl),
10246 # -berok will link without error, but may produce a broken library.
10247 allow_undefined_flag='-berok'
10248 # Determine the default libpath from the value encoded in an
10249 # empty executable.
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251/* end confdefs.h. */
10252
10253int
10254main ()
10255{
10256
10257 ;
10258 return 0;
10259}
10260_ACEOF
10261if ac_fn_c_try_link "$LINENO"; then :
10262
10263lt_aix_libpath_sed='
10264 /Import File Strings/,/^$/ {
10265 /^0/ {
10266 s/^0 *\(.*\)$/\1/
10267 p
10268 }
10269 }'
10270aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10271# Check for a 64-bit object if we didn't find anything.
10272if test -z "$aix_libpath"; then
10273 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10274fi
10275fi
10276rm -f core conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext conftest.$ac_ext
10278if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10279
10280 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10281 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"
10282 else
10283 if test "$host_cpu" = ia64; then
10284 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10285 allow_undefined_flag="-z nodefs"
10286 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"
10287 else
10288 # Determine the default libpath from the value encoded in an
10289 # empty executable.
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291/* end confdefs.h. */
10292
10293int
10294main ()
10295{
10296
10297 ;
10298 return 0;
10299}
10300_ACEOF
10301if ac_fn_c_try_link "$LINENO"; then :
10302
10303lt_aix_libpath_sed='
10304 /Import File Strings/,/^$/ {
10305 /^0/ {
10306 s/^0 *\(.*\)$/\1/
10307 p
10308 }
10309 }'
10310aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10311# Check for a 64-bit object if we didn't find anything.
10312if test -z "$aix_libpath"; then
10313 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10314fi
10315fi
10316rm -f core conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10319
10320 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10321 # Warning - without using the other run time loading flags,
10322 # -berok will link without error, but may produce a broken library.
10323 no_undefined_flag=' ${wl}-bernotok'
10324 allow_undefined_flag=' ${wl}-berok'
10325 if test "$with_gnu_ld" = yes; then
10326 # We only use this code for GNU lds that support --whole-archive.
10327 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10328 else
10329 # Exported symbols can be pulled into shared objects from archives
10330 whole_archive_flag_spec='$convenience'
10331 fi
10332 archive_cmds_need_lc=yes
10333 # This is similar to how AIX traditionally builds its shared libraries.
10334 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'
10335 fi
10336 fi
10337 ;;
10338
10339 amigaos*)
10340 case $host_cpu in
10341 powerpc)
10342 # see comment about AmigaOS4 .so support
10343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10344 archive_expsym_cmds=''
10345 ;;
10346 m68k)
10347 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)'
10348 hardcode_libdir_flag_spec='-L$libdir'
10349 hardcode_minus_L=yes
10350 ;;
10351 esac
10352 ;;
10353
10354 bsdi[45]*)
10355 export_dynamic_flag_spec=-rdynamic
10356 ;;
10357
10358 cygwin* | mingw* | pw32* | cegcc*)
10359 # When not using gcc, we currently assume that we are using
10360 # Microsoft Visual C++.
10361 # hardcode_libdir_flag_spec is actually meaningless, as there is
10362 # no search path for DLLs.
10363 hardcode_libdir_flag_spec=' '
10364 allow_undefined_flag=unsupported
10365 # Tell ltmain to make .lib files, not .a files.
10366 libext=lib
10367 # Tell ltmain to make .dll files, not .so files.
10368 shrext_cmds=".dll"
10369 # FIXME: Setting linknames here is a bad hack.
10370 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10371 # The linker will automatically build a .lib file if we build a DLL.
10372 old_archive_from_new_cmds='true'
10373 # FIXME: Should let the user specify the lib program.
10374 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10375 fix_srcfile_path='`cygpath -w "$srcfile"`'
10376 enable_shared_with_static_runtimes=yes
10377 ;;
10378
10379 darwin* | rhapsody*)
10380
10381
10382 archive_cmds_need_lc=no
10383 hardcode_direct=no
10384 hardcode_automatic=yes
10385 hardcode_shlibpath_var=unsupported
10386 if test "$lt_cv_ld_force_load" = "yes"; then
10387 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\"`'
10388 else
10389 whole_archive_flag_spec=''
10390 fi
10391 link_all_deplibs=yes
10392 allow_undefined_flag="$_lt_dar_allow_undefined"
10393 case $cc_basename in
10394 ifort*) _lt_dar_can_shared=yes ;;
10395 *) _lt_dar_can_shared=$GCC ;;
10396 esac
10397 if test "$_lt_dar_can_shared" = "yes"; then
10398 output_verbose_link_cmd=func_echo_all
10399 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10400 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10401 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}"
10402 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}"
10403
10404 else
10405 ld_shlibs=no
10406 fi
10407
10408 ;;
10409
10410 dgux*)
10411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10412 hardcode_libdir_flag_spec='-L$libdir'
10413 hardcode_shlibpath_var=no
10414 ;;
10415
10416 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10417 # support. Future versions do this automatically, but an explicit c++rt0.o
10418 # does not break anything, and helps significantly (at the cost of a little
10419 # extra space).
10420 freebsd2.2*)
10421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10422 hardcode_libdir_flag_spec='-R$libdir'
10423 hardcode_direct=yes
10424 hardcode_shlibpath_var=no
10425 ;;
10426
10427 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10428 freebsd2.*)
10429 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10430 hardcode_direct=yes
10431 hardcode_minus_L=yes
10432 hardcode_shlibpath_var=no
10433 ;;
10434
10435 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10436 freebsd* | dragonfly*)
10437 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10438 hardcode_libdir_flag_spec='-R$libdir'
10439 hardcode_direct=yes
10440 hardcode_shlibpath_var=no
10441 ;;
10442
10443 hpux9*)
10444 if test "$GCC" = yes; then
10445 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'
10446 else
10447 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'
10448 fi
10449 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10450 hardcode_libdir_separator=:
10451 hardcode_direct=yes
10452
10453 # hardcode_minus_L: Not really in the search PATH,
10454 # but as the default location of the library.
10455 hardcode_minus_L=yes
10456 export_dynamic_flag_spec='${wl}-E'
10457 ;;
10458
10459 hpux10*)
10460 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10461 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10462 else
10463 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10464 fi
10465 if test "$with_gnu_ld" = no; then
10466 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10467 hardcode_libdir_flag_spec_ld='+b $libdir'
10468 hardcode_libdir_separator=:
10469 hardcode_direct=yes
10470 hardcode_direct_absolute=yes
10471 export_dynamic_flag_spec='${wl}-E'
10472 # hardcode_minus_L: Not really in the search PATH,
10473 # but as the default location of the library.
10474 hardcode_minus_L=yes
10475 fi
10476 ;;
10477
10478 hpux11*)
10479 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10480 case $host_cpu in
10481 hppa*64*)
10482 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10483 ;;
10484 ia64*)
10485 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10486 ;;
10487 *)
10488 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10489 ;;
10490 esac
10491 else
10492 case $host_cpu in
10493 hppa*64*)
10494 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10495 ;;
10496 ia64*)
10497 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10498 ;;
10499 *)
10500
10501 # Older versions of the 11.00 compiler do not understand -b yet
10502 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10504$as_echo_n "checking if $CC understands -b... " >&6; }
10505if ${lt_cv_prog_compiler__b+:} false; then :
10506 $as_echo_n "(cached) " >&6
10507else
10508 lt_cv_prog_compiler__b=no
10509 save_LDFLAGS="$LDFLAGS"
10510 LDFLAGS="$LDFLAGS -b"
10511 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10513 # The linker can only warn and ignore the option if not recognized
10514 # So say no if there are warnings
10515 if test -s conftest.err; then
10516 # Append any errors to the config.log.
10517 cat conftest.err 1>&5
10518 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10520 if diff conftest.exp conftest.er2 >/dev/null; then
10521 lt_cv_prog_compiler__b=yes
10522 fi
10523 else
10524 lt_cv_prog_compiler__b=yes
10525 fi
10526 fi
10527 $RM -r conftest*
10528 LDFLAGS="$save_LDFLAGS"
10529
10530fi
10531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10532$as_echo "$lt_cv_prog_compiler__b" >&6; }
10533
10534if test x"$lt_cv_prog_compiler__b" = xyes; then
10535 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10536else
10537 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10538fi
10539
10540 ;;
10541 esac
10542 fi
10543 if test "$with_gnu_ld" = no; then
10544 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10545 hardcode_libdir_separator=:
10546
10547 case $host_cpu in
10548 hppa*64*|ia64*)
10549 hardcode_direct=no
10550 hardcode_shlibpath_var=no
10551 ;;
10552 *)
10553 hardcode_direct=yes
10554 hardcode_direct_absolute=yes
10555 export_dynamic_flag_spec='${wl}-E'
10556
10557 # hardcode_minus_L: Not really in the search PATH,
10558 # but as the default location of the library.
10559 hardcode_minus_L=yes
10560 ;;
10561 esac
10562 fi
10563 ;;
10564
10565 irix5* | irix6* | nonstopux*)
10566 if test "$GCC" = yes; then
10567 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'
10568 # Try to use the -exported_symbol ld option, if it does not
10569 # work, assume that -exports_file does not work either and
10570 # implicitly export all symbols.
10571 save_LDFLAGS="$LDFLAGS"
10572 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574/* end confdefs.h. */
10575int foo(void) {}
10576_ACEOF
10577if ac_fn_c_try_link "$LINENO"; then :
10578 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'
10579
10580fi
10581rm -f core conftest.err conftest.$ac_objext \
10582 conftest$ac_exeext conftest.$ac_ext
10583 LDFLAGS="$save_LDFLAGS"
10584 else
10585 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'
10586 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'
10587 fi
10588 archive_cmds_need_lc='no'
10589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10590 hardcode_libdir_separator=:
10591 inherit_rpath=yes
10592 link_all_deplibs=yes
10593 ;;
10594
10595 netbsd*)
10596 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10597 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10598 else
10599 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10600 fi
10601 hardcode_libdir_flag_spec='-R$libdir'
10602 hardcode_direct=yes
10603 hardcode_shlibpath_var=no
10604 ;;
10605
10606 newsos6)
10607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10608 hardcode_direct=yes
10609 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10610 hardcode_libdir_separator=:
10611 hardcode_shlibpath_var=no
10612 ;;
10613
10614 *nto* | *qnx*)
10615 ;;
10616
10617 openbsd*)
10618 if test -f /usr/libexec/ld.so; then
10619 hardcode_direct=yes
10620 hardcode_shlibpath_var=no
10621 hardcode_direct_absolute=yes
10622 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10623 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10624 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10625 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10626 export_dynamic_flag_spec='${wl}-E'
10627 else
10628 case $host_os in
10629 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10631 hardcode_libdir_flag_spec='-R$libdir'
10632 ;;
10633 *)
10634 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10635 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10636 ;;
10637 esac
10638 fi
10639 else
10640 ld_shlibs=no
10641 fi
10642 ;;
10643
10644 os2*)
10645 hardcode_libdir_flag_spec='-L$libdir'
10646 hardcode_minus_L=yes
10647 allow_undefined_flag=unsupported
10648 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'
10649 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10650 ;;
10651
10652 osf3*)
10653 if test "$GCC" = yes; then
10654 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10655 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'
10656 else
10657 allow_undefined_flag=' -expect_unresolved \*'
10658 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'
10659 fi
10660 archive_cmds_need_lc='no'
10661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10662 hardcode_libdir_separator=:
10663 ;;
10664
10665 osf4* | osf5*) # as osf3* with the addition of -msym flag
10666 if test "$GCC" = yes; then
10667 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10668 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'
10669 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10670 else
10671 allow_undefined_flag=' -expect_unresolved \*'
10672 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'
10673 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~
10674 $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'
10675
10676 # Both c and cxx compiler support -rpath directly
10677 hardcode_libdir_flag_spec='-rpath $libdir'
10678 fi
10679 archive_cmds_need_lc='no'
10680 hardcode_libdir_separator=:
10681 ;;
10682
10683 solaris*)
10684 no_undefined_flag=' -z defs'
10685 if test "$GCC" = yes; then
10686 wlarc='${wl}'
10687 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10688 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10689 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10690 else
10691 case `$CC -V 2>&1` in
10692 *"Compilers 5.0"*)
10693 wlarc=''
10694 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10695 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10696 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10697 ;;
10698 *)
10699 wlarc='${wl}'
10700 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10701 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10702 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10703 ;;
10704 esac
10705 fi
10706 hardcode_libdir_flag_spec='-R$libdir'
10707 hardcode_shlibpath_var=no
10708 case $host_os in
10709 solaris2.[0-5] | solaris2.[0-5].*) ;;
10710 *)
10711 # The compiler driver will combine and reorder linker options,
10712 # but understands `-z linker_flag'. GCC discards it without `$wl',
10713 # but is careful enough not to reorder.
10714 # Supported since Solaris 2.6 (maybe 2.5.1?)
10715 if test "$GCC" = yes; then
10716 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10717 else
10718 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10719 fi
10720 ;;
10721 esac
10722 link_all_deplibs=yes
10723 ;;
10724
10725 sunos4*)
10726 if test "x$host_vendor" = xsequent; then
10727 # Use $CC to link under sequent, because it throws in some extra .o
10728 # files that make .init and .fini sections work.
10729 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10730 else
10731 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10732 fi
10733 hardcode_libdir_flag_spec='-L$libdir'
10734 hardcode_direct=yes
10735 hardcode_minus_L=yes
10736 hardcode_shlibpath_var=no
10737 ;;
10738
10739 sysv4)
10740 case $host_vendor in
10741 sni)
10742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10743 hardcode_direct=yes # is this really true???
10744 ;;
10745 siemens)
10746 ## LD is ld it makes a PLAMLIB
10747 ## CC just makes a GrossModule.
10748 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10749 reload_cmds='$CC -r -o $output$reload_objs'
10750 hardcode_direct=no
10751 ;;
10752 motorola)
10753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10754 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10755 ;;
10756 esac
10757 runpath_var='LD_RUN_PATH'
10758 hardcode_shlibpath_var=no
10759 ;;
10760
10761 sysv4.3*)
10762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10763 hardcode_shlibpath_var=no
10764 export_dynamic_flag_spec='-Bexport'
10765 ;;
10766
10767 sysv4*MP*)
10768 if test -d /usr/nec; then
10769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10770 hardcode_shlibpath_var=no
10771 runpath_var=LD_RUN_PATH
10772 hardcode_runpath_var=yes
10773 ld_shlibs=yes
10774 fi
10775 ;;
10776
10777 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10778 no_undefined_flag='${wl}-z,text'
10779 archive_cmds_need_lc=no
10780 hardcode_shlibpath_var=no
10781 runpath_var='LD_RUN_PATH'
10782
10783 if test "$GCC" = yes; then
10784 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10785 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10786 else
10787 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10788 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789 fi
10790 ;;
10791
10792 sysv5* | sco3.2v5* | sco5v6*)
10793 # Note: We can NOT use -z defs as we might desire, because we do not
10794 # link with -lc, and that would cause any symbols used from libc to
10795 # always be unresolved, which means just about no library would
10796 # ever link correctly. If we're not using GNU ld we use -z text
10797 # though, which does catch some bad symbols but isn't as heavy-handed
10798 # as -z defs.
10799 no_undefined_flag='${wl}-z,text'
10800 allow_undefined_flag='${wl}-z,nodefs'
10801 archive_cmds_need_lc=no
10802 hardcode_shlibpath_var=no
10803 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10804 hardcode_libdir_separator=':'
10805 link_all_deplibs=yes
10806 export_dynamic_flag_spec='${wl}-Bexport'
10807 runpath_var='LD_RUN_PATH'
10808
10809 if test "$GCC" = yes; then
10810 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10811 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10812 else
10813 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10814 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10815 fi
10816 ;;
10817
10818 uts4*)
10819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10820 hardcode_libdir_flag_spec='-L$libdir'
10821 hardcode_shlibpath_var=no
10822 ;;
10823
10824 *)
10825 ld_shlibs=no
10826 ;;
10827 esac
10828
10829 if test x$host_vendor = xsni; then
10830 case $host in
10831 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10832 export_dynamic_flag_spec='${wl}-Blargedynsym'
10833 ;;
10834 esac
10835 fi
10836 fi
10837
10838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10839$as_echo "$ld_shlibs" >&6; }
10840test "$ld_shlibs" = no && can_build_shared=no
10841
10842with_gnu_ld=$with_gnu_ld
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858#
10859# Do we need to explicitly link libc?
10860#
10861case "x$archive_cmds_need_lc" in
10862x|xyes)
10863 # Assume -lc should be added
10864 archive_cmds_need_lc=yes
10865
10866 if test "$enable_shared" = yes && test "$GCC" = yes; then
10867 case $archive_cmds in
10868 *'~'*)
10869 # FIXME: we may have to deal with multi-command sequences.
10870 ;;
10871 '$CC '*)
10872 # Test whether the compiler implicitly links with -lc since on some
10873 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10874 # to ld, don't add -lc before -lgcc.
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10876$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10877if ${lt_cv_archive_cmds_need_lc+:} false; then :
10878 $as_echo_n "(cached) " >&6
10879else
10880 $RM conftest*
10881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10882
10883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10884 (eval $ac_compile) 2>&5
10885 ac_status=$?
10886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10887 test $ac_status = 0; } 2>conftest.err; then
10888 soname=conftest
10889 lib=conftest
10890 libobjs=conftest.$ac_objext
10891 deplibs=
10892 wl=$lt_prog_compiler_wl
10893 pic_flag=$lt_prog_compiler_pic
10894 compiler_flags=-v
10895 linker_flags=-v
10896 verstring=
10897 output_objdir=.
10898 libname=conftest
10899 lt_save_allow_undefined_flag=$allow_undefined_flag
10900 allow_undefined_flag=
10901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10902 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10903 ac_status=$?
10904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10905 test $ac_status = 0; }
10906 then
10907 lt_cv_archive_cmds_need_lc=no
10908 else
10909 lt_cv_archive_cmds_need_lc=yes
10910 fi
10911 allow_undefined_flag=$lt_save_allow_undefined_flag
10912 else
10913 cat conftest.err 1>&5
10914 fi
10915 $RM conftest*
10916
10917fi
10918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10919$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10920 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10921 ;;
10922 esac
10923 fi
10924 ;;
10925esac
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11084$as_echo_n "checking dynamic linker characteristics... " >&6; }
11085
11086if test "$GCC" = yes; then
11087 case $host_os in
11088 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11089 *) lt_awk_arg="/^libraries:/" ;;
11090 esac
11091 case $host_os in
11092 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11093 *) lt_sed_strip_eq="s,=/,/,g" ;;
11094 esac
11095 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11096 case $lt_search_path_spec in
11097 *\;*)
11098 # if the path contains ";" then we assume it to be the separator
11099 # otherwise default to the standard path separator (i.e. ":") - it is
11100 # assumed that no part of a normal pathname contains ";" but that should
11101 # okay in the real world where ";" in dirpaths is itself problematic.
11102 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11103 ;;
11104 *)
11105 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11106 ;;
11107 esac
11108 # Ok, now we have the path, separated by spaces, we can step through it
11109 # and add multilib dir if necessary.
11110 lt_tmp_lt_search_path_spec=
11111 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11112 for lt_sys_path in $lt_search_path_spec; do
11113 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11114 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11115 else
11116 test -d "$lt_sys_path" && \
11117 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11118 fi
11119 done
11120 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11121BEGIN {RS=" "; FS="/|\n";} {
11122 lt_foo="";
11123 lt_count=0;
11124 for (lt_i = NF; lt_i > 0; lt_i--) {
11125 if ($lt_i != "" && $lt_i != ".") {
11126 if ($lt_i == "..") {
11127 lt_count++;
11128 } else {
11129 if (lt_count == 0) {
11130 lt_foo="/" $lt_i lt_foo;
11131 } else {
11132 lt_count--;
11133 }
11134 }
11135 }
11136 }
11137 if (lt_foo != "") { lt_freq[lt_foo]++; }
11138 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11139}'`
11140 # AWK program above erroneously prepends '/' to C:/dos/paths
11141 # for these hosts.
11142 case $host_os in
11143 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11144 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11145 esac
11146 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11147else
11148 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11149fi
11150library_names_spec=
11151libname_spec='lib$name'
11152soname_spec=
11153shrext_cmds=".so"
11154postinstall_cmds=
11155postuninstall_cmds=
11156finish_cmds=
11157finish_eval=
11158shlibpath_var=
11159shlibpath_overrides_runpath=unknown
11160version_type=none
11161dynamic_linker="$host_os ld.so"
11162sys_lib_dlsearch_path_spec="/lib /usr/lib"
11163need_lib_prefix=unknown
11164hardcode_into_libs=no
11165
11166# when you set need_version to no, make sure it does not cause -set_version
11167# flags to be left without arguments
11168need_version=unknown
11169
11170case $host_os in
11171aix3*)
11172 version_type=linux
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11174 shlibpath_var=LIBPATH
11175
11176 # AIX 3 has no versioning support, so we append a major version to the name.
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 ;;
11179
11180aix[4-9]*)
11181 version_type=linux
11182 need_lib_prefix=no
11183 need_version=no
11184 hardcode_into_libs=yes
11185 if test "$host_cpu" = ia64; then
11186 # AIX 5 supports IA64
11187 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 else
11190 # With GCC up to 2.95.x, collect2 would create an import file
11191 # for dependence libraries. The import file would start with
11192 # the line `#! .'. This would cause the generated library to
11193 # depend on `.', always an invalid library. This was fixed in
11194 # development snapshots of GCC prior to 3.0.
11195 case $host_os in
11196 aix4 | aix4.[01] | aix4.[01].*)
11197 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11198 echo ' yes '
11199 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11200 :
11201 else
11202 can_build_shared=no
11203 fi
11204 ;;
11205 esac
11206 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11207 # soname into executable. Probably we can add versioning support to
11208 # collect2, so additional links can be useful in future.
11209 if test "$aix_use_runtimelinking" = yes; then
11210 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11211 # instead of lib<name>.a to let people know that these are not
11212 # typical AIX shared libraries.
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11214 else
11215 # We preserve .a as extension for shared libraries through AIX4.2
11216 # and later when we are not doing run time linking.
11217 library_names_spec='${libname}${release}.a $libname.a'
11218 soname_spec='${libname}${release}${shared_ext}$major'
11219 fi
11220 shlibpath_var=LIBPATH
11221 fi
11222 ;;
11223
11224amigaos*)
11225 case $host_cpu in
11226 powerpc)
11227 # Since July 2007 AmigaOS4 officially supports .so libraries.
11228 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11230 ;;
11231 m68k)
11232 library_names_spec='$libname.ixlibrary $libname.a'
11233 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11234 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'
11235 ;;
11236 esac
11237 ;;
11238
11239beos*)
11240 library_names_spec='${libname}${shared_ext}'
11241 dynamic_linker="$host_os ld.so"
11242 shlibpath_var=LIBRARY_PATH
11243 ;;
11244
11245bsdi[45]*)
11246 version_type=linux
11247 need_version=no
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249 soname_spec='${libname}${release}${shared_ext}$major'
11250 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11251 shlibpath_var=LD_LIBRARY_PATH
11252 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11253 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11254 # the default ld.so.conf also contains /usr/contrib/lib and
11255 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11256 # libtool to hard-code these into programs
11257 ;;
11258
11259cygwin* | mingw* | pw32* | cegcc*)
11260 version_type=windows
11261 shrext_cmds=".dll"
11262 need_version=no
11263 need_lib_prefix=no
11264
11265 case $GCC,$host_os in
11266 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11267 library_names_spec='$libname.dll.a'
11268 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11269 postinstall_cmds='base_file=`basename \${file}`~
11270 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11271 dldir=$destdir/`dirname \$dlpath`~
11272 test -d \$dldir || mkdir -p \$dldir~
11273 $install_prog $dir/$dlname \$dldir/$dlname~
11274 chmod a+x \$dldir/$dlname~
11275 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11276 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11277 fi'
11278 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11279 dlpath=$dir/\$dldll~
11280 $RM \$dlpath'
11281 shlibpath_overrides_runpath=yes
11282
11283 case $host_os in
11284 cygwin*)
11285 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11286 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11287
11288 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11289 ;;
11290 mingw* | cegcc*)
11291 # MinGW DLLs use traditional 'lib' prefix
11292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11293 ;;
11294 pw32*)
11295 # pw32 DLLs use 'pw' prefix rather than 'lib'
11296 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11297 ;;
11298 esac
11299 ;;
11300
11301 *)
11302 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11303 ;;
11304 esac
11305 dynamic_linker='Win32 ld.exe'
11306 # FIXME: first we should search . and the directory the executable is in
11307 shlibpath_var=PATH
11308 ;;
11309
11310darwin* | rhapsody*)
11311 dynamic_linker="$host_os dyld"
11312 version_type=darwin
11313 need_lib_prefix=no
11314 need_version=no
11315 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11316 soname_spec='${libname}${release}${major}$shared_ext'
11317 shlibpath_overrides_runpath=yes
11318 shlibpath_var=DYLD_LIBRARY_PATH
11319 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11320
11321 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11322 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11323 ;;
11324
11325dgux*)
11326 version_type=linux
11327 need_lib_prefix=no
11328 need_version=no
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11330 soname_spec='${libname}${release}${shared_ext}$major'
11331 shlibpath_var=LD_LIBRARY_PATH
11332 ;;
11333
11334freebsd* | dragonfly*)
11335 # DragonFly does not have aout. When/if they implement a new
11336 # versioning mechanism, adjust this.
11337 if test -x /usr/bin/objformat; then
11338 objformat=`/usr/bin/objformat`
11339 else
11340 case $host_os in
11341 freebsd[23].*) objformat=aout ;;
11342 *) objformat=elf ;;
11343 esac
11344 fi
11345 version_type=freebsd-$objformat
11346 case $version_type in
11347 freebsd-elf*)
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11349 need_version=no
11350 need_lib_prefix=no
11351 ;;
11352 freebsd-*)
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11354 need_version=yes
11355 ;;
11356 esac
11357 shlibpath_var=LD_LIBRARY_PATH
11358 case $host_os in
11359 freebsd2.*)
11360 shlibpath_overrides_runpath=yes
11361 ;;
11362 freebsd3.[01]* | freebsdelf3.[01]*)
11363 shlibpath_overrides_runpath=yes
11364 hardcode_into_libs=yes
11365 ;;
11366 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11367 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11368 shlibpath_overrides_runpath=no
11369 hardcode_into_libs=yes
11370 ;;
11371 *) # from 4.6 on, and DragonFly
11372 shlibpath_overrides_runpath=yes
11373 hardcode_into_libs=yes
11374 ;;
11375 esac
11376 ;;
11377
11378haiku*)
11379 version_type=linux
11380 need_lib_prefix=no
11381 need_version=no
11382 dynamic_linker="$host_os runtime_loader"
11383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11384 soname_spec='${libname}${release}${shared_ext}$major'
11385 shlibpath_var=LIBRARY_PATH
11386 shlibpath_overrides_runpath=yes
11387 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11388 hardcode_into_libs=yes
11389 ;;
11390
11391hpux9* | hpux10* | hpux11*)
11392 # Give a soname corresponding to the major version so that dld.sl refuses to
11393 # link against other versions.
11394 version_type=sunos
11395 need_lib_prefix=no
11396 need_version=no
11397 case $host_cpu in
11398 ia64*)
11399 shrext_cmds='.so'
11400 hardcode_into_libs=yes
11401 dynamic_linker="$host_os dld.so"
11402 shlibpath_var=LD_LIBRARY_PATH
11403 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11405 soname_spec='${libname}${release}${shared_ext}$major'
11406 if test "X$HPUX_IA64_MODE" = X32; then
11407 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11408 else
11409 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11410 fi
11411 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11412 ;;
11413 hppa*64*)
11414 shrext_cmds='.sl'
11415 hardcode_into_libs=yes
11416 dynamic_linker="$host_os dld.sl"
11417 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11418 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420 soname_spec='${libname}${release}${shared_ext}$major'
11421 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11422 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11423 ;;
11424 *)
11425 shrext_cmds='.sl'
11426 dynamic_linker="$host_os dld.sl"
11427 shlibpath_var=SHLIB_PATH
11428 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11430 soname_spec='${libname}${release}${shared_ext}$major'
11431 ;;
11432 esac
11433 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11434 postinstall_cmds='chmod 555 $lib'
11435 # or fails outright, so override atomically:
11436 install_override_mode=555
11437 ;;
11438
11439interix[3-9]*)
11440 version_type=linux
11441 need_lib_prefix=no
11442 need_version=no
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11444 soname_spec='${libname}${release}${shared_ext}$major'
11445 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11446 shlibpath_var=LD_LIBRARY_PATH
11447 shlibpath_overrides_runpath=no
11448 hardcode_into_libs=yes
11449 ;;
11450
11451irix5* | irix6* | nonstopux*)
11452 case $host_os in
11453 nonstopux*) version_type=nonstopux ;;
11454 *)
11455 if test "$lt_cv_prog_gnu_ld" = yes; then
11456 version_type=linux
11457 else
11458 version_type=irix
11459 fi ;;
11460 esac
11461 need_lib_prefix=no
11462 need_version=no
11463 soname_spec='${libname}${release}${shared_ext}$major'
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11465 case $host_os in
11466 irix5* | nonstopux*)
11467 libsuff= shlibsuff=
11468 ;;
11469 *)
11470 case $LD in # libtool.m4 will add one of these switches to LD
11471 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11472 libsuff= shlibsuff= libmagic=32-bit;;
11473 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11474 libsuff=32 shlibsuff=N32 libmagic=N32;;
11475 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11476 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11477 *) libsuff= shlibsuff= libmagic=never-match;;
11478 esac
11479 ;;
11480 esac
11481 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11482 shlibpath_overrides_runpath=no
11483 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11484 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11485 hardcode_into_libs=yes
11486 ;;
11487
11488# No shared lib support for Linux oldld, aout, or coff.
11489linux*oldld* | linux*aout* | linux*coff*)
11490 dynamic_linker=no
11491 ;;
11492
11493# This must be Linux ELF.
11494linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11495 version_type=linux
11496 need_lib_prefix=no
11497 need_version=no
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11499 soname_spec='${libname}${release}${shared_ext}$major'
11500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11501 shlibpath_var=LD_LIBRARY_PATH
11502 shlibpath_overrides_runpath=no
11503
11504 # Some binutils ld are patched to set DT_RUNPATH
11505 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11506 $as_echo_n "(cached) " >&6
11507else
11508 lt_cv_shlibpath_overrides_runpath=no
11509 save_LDFLAGS=$LDFLAGS
11510 save_libdir=$libdir
11511 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11512 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514/* end confdefs.h. */
11515
11516int
11517main ()
11518{
11519
11520 ;
11521 return 0;
11522}
11523_ACEOF
11524if ac_fn_c_try_link "$LINENO"; then :
11525 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11526 lt_cv_shlibpath_overrides_runpath=yes
11527fi
11528fi
11529rm -f core conftest.err conftest.$ac_objext \
11530 conftest$ac_exeext conftest.$ac_ext
11531 LDFLAGS=$save_LDFLAGS
11532 libdir=$save_libdir
11533
11534fi
11535
11536 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11537
11538 # This implies no fast_install, which is unacceptable.
11539 # Some rework will be needed to allow for fast_install
11540 # before this can be enabled.
11541 hardcode_into_libs=yes
11542
11543 # Append ld.so.conf contents to the search path
11544 if test -f /etc/ld.so.conf; then
11545 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' ' '`
11546 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11547 fi
11548
11549 # We used to test for /lib/ld.so.1 and disable shared libraries on
11550 # powerpc, because MkLinux only supported shared libraries with the
11551 # GNU dynamic linker. Since this was broken with cross compilers,
11552 # most powerpc-linux boxes support dynamic linking these days and
11553 # people can always --disable-shared, the test was removed, and we
11554 # assume the GNU/Linux dynamic linker is in use.
11555 dynamic_linker='GNU/Linux ld.so'
11556 ;;
11557
11558netbsd*)
11559 version_type=sunos
11560 need_lib_prefix=no
11561 need_version=no
11562 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11565 dynamic_linker='NetBSD (a.out) ld.so'
11566 else
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11568 soname_spec='${libname}${release}${shared_ext}$major'
11569 dynamic_linker='NetBSD ld.elf_so'
11570 fi
11571 shlibpath_var=LD_LIBRARY_PATH
11572 shlibpath_overrides_runpath=yes
11573 hardcode_into_libs=yes
11574 ;;
11575
11576newsos6)
11577 version_type=linux
11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579 shlibpath_var=LD_LIBRARY_PATH
11580 shlibpath_overrides_runpath=yes
11581 ;;
11582
11583*nto* | *qnx*)
11584 version_type=qnx
11585 need_lib_prefix=no
11586 need_version=no
11587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11588 soname_spec='${libname}${release}${shared_ext}$major'
11589 shlibpath_var=LD_LIBRARY_PATH
11590 shlibpath_overrides_runpath=no
11591 hardcode_into_libs=yes
11592 dynamic_linker='ldqnx.so'
11593 ;;
11594
11595openbsd*)
11596 version_type=sunos
11597 sys_lib_dlsearch_path_spec="/usr/lib"
11598 need_lib_prefix=no
11599 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11600 case $host_os in
11601 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11602 *) need_version=no ;;
11603 esac
11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11606 shlibpath_var=LD_LIBRARY_PATH
11607 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11608 case $host_os in
11609 openbsd2.[89] | openbsd2.[89].*)
11610 shlibpath_overrides_runpath=no
11611 ;;
11612 *)
11613 shlibpath_overrides_runpath=yes
11614 ;;
11615 esac
11616 else
11617 shlibpath_overrides_runpath=yes
11618 fi
11619 ;;
11620
11621os2*)
11622 libname_spec='$name'
11623 shrext_cmds=".dll"
11624 need_lib_prefix=no
11625 library_names_spec='$libname${shared_ext} $libname.a'
11626 dynamic_linker='OS/2 ld.exe'
11627 shlibpath_var=LIBPATH
11628 ;;
11629
11630osf3* | osf4* | osf5*)
11631 version_type=osf
11632 need_lib_prefix=no
11633 need_version=no
11634 soname_spec='${libname}${release}${shared_ext}$major'
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636 shlibpath_var=LD_LIBRARY_PATH
11637 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11638 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11639 ;;
11640
11641rdos*)
11642 dynamic_linker=no
11643 ;;
11644
11645solaris*)
11646 version_type=linux
11647 need_lib_prefix=no
11648 need_version=no
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650 soname_spec='${libname}${release}${shared_ext}$major'
11651 shlibpath_var=LD_LIBRARY_PATH
11652 shlibpath_overrides_runpath=yes
11653 hardcode_into_libs=yes
11654 # ldd complains unless libraries are executable
11655 postinstall_cmds='chmod +x $lib'
11656 ;;
11657
11658sunos4*)
11659 version_type=sunos
11660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11661 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11662 shlibpath_var=LD_LIBRARY_PATH
11663 shlibpath_overrides_runpath=yes
11664 if test "$with_gnu_ld" = yes; then
11665 need_lib_prefix=no
11666 fi
11667 need_version=yes
11668 ;;
11669
11670sysv4 | sysv4.3*)
11671 version_type=linux
11672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11673 soname_spec='${libname}${release}${shared_ext}$major'
11674 shlibpath_var=LD_LIBRARY_PATH
11675 case $host_vendor in
11676 sni)
11677 shlibpath_overrides_runpath=no
11678 need_lib_prefix=no
11679 runpath_var=LD_RUN_PATH
11680 ;;
11681 siemens)
11682 need_lib_prefix=no
11683 ;;
11684 motorola)
11685 need_lib_prefix=no
11686 need_version=no
11687 shlibpath_overrides_runpath=no
11688 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11689 ;;
11690 esac
11691 ;;
11692
11693sysv4*MP*)
11694 if test -d /usr/nec ;then
11695 version_type=linux
11696 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11697 soname_spec='$libname${shared_ext}.$major'
11698 shlibpath_var=LD_LIBRARY_PATH
11699 fi
11700 ;;
11701
11702sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11703 version_type=freebsd-elf
11704 need_lib_prefix=no
11705 need_version=no
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 shlibpath_overrides_runpath=yes
11710 hardcode_into_libs=yes
11711 if test "$with_gnu_ld" = yes; then
11712 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11713 else
11714 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11715 case $host_os in
11716 sco3.2v5*)
11717 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11718 ;;
11719 esac
11720 fi
11721 sys_lib_dlsearch_path_spec='/usr/lib'
11722 ;;
11723
11724tpf*)
11725 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11726 version_type=linux
11727 need_lib_prefix=no
11728 need_version=no
11729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730 shlibpath_var=LD_LIBRARY_PATH
11731 shlibpath_overrides_runpath=no
11732 hardcode_into_libs=yes
11733 ;;
11734
11735uts4*)
11736 version_type=linux
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 ;;
11741
11742*)
11743 dynamic_linker=no
11744 ;;
11745esac
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11747$as_echo "$dynamic_linker" >&6; }
11748test "$dynamic_linker" = no && can_build_shared=no
11749
11750variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11751if test "$GCC" = yes; then
11752 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11753fi
11754
11755if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11756 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11757fi
11758if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11759 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11760fi
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11854$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11855hardcode_action=
11856if test -n "$hardcode_libdir_flag_spec" ||
11857 test -n "$runpath_var" ||
11858 test "X$hardcode_automatic" = "Xyes" ; then
11859
11860 # We can hardcode non-existent directories.
11861 if test "$hardcode_direct" != no &&
11862 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11863 # have to relink, otherwise we might link with an installed library
11864 # when we should be linking with a yet-to-be-installed one
11865 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11866 test "$hardcode_minus_L" != no; then
11867 # Linking always hardcodes the temporary library directory.
11868 hardcode_action=relink
11869 else
11870 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11871 hardcode_action=immediate
11872 fi
11873else
11874 # We cannot hardcode anything, or else we can only hardcode existing
11875 # directories.
11876 hardcode_action=unsupported
11877fi
11878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11879$as_echo "$hardcode_action" >&6; }
11880
11881if test "$hardcode_action" = relink ||
11882 test "$inherit_rpath" = yes; then
11883 # Fast installation is not supported
11884 enable_fast_install=no
11885elif test "$shlibpath_overrides_runpath" = yes ||
11886 test "$enable_shared" = no; then
11887 # Fast installation is not necessary
11888 enable_fast_install=needless
11889fi
11890
11891
11892
11893
11894
11895
11896 if test "x$enable_dlopen" != xyes; then
11897 enable_dlopen=unknown
11898 enable_dlopen_self=unknown
11899 enable_dlopen_self_static=unknown
11900else
11901 lt_cv_dlopen=no
11902 lt_cv_dlopen_libs=
11903
11904 case $host_os in
11905 beos*)
11906 lt_cv_dlopen="load_add_on"
11907 lt_cv_dlopen_libs=
11908 lt_cv_dlopen_self=yes
11909 ;;
11910
11911 mingw* | pw32* | cegcc*)
11912 lt_cv_dlopen="LoadLibrary"
11913 lt_cv_dlopen_libs=
11914 ;;
11915
11916 cygwin*)
11917 lt_cv_dlopen="dlopen"
11918 lt_cv_dlopen_libs=
11919 ;;
11920
11921 darwin*)
11922 # if libdl is installed we need to link against it
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11924$as_echo_n "checking for dlopen in -ldl... " >&6; }
11925if ${ac_cv_lib_dl_dlopen+:} false; then :
11926 $as_echo_n "(cached) " >&6
11927else
11928 ac_check_lib_save_LIBS=$LIBS
11929LIBS="-ldl $LIBS"
11930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931/* end confdefs.h. */
11932
11933/* Override any GCC internal prototype to avoid an error.
11934 Use char because int might match the return type of a GCC
11935 builtin and then its argument prototype would still apply. */
11936#ifdef __cplusplus
11937extern "C"
11938#endif
11939char dlopen ();
11940int
11941main ()
11942{
11943return dlopen ();
11944 ;
11945 return 0;
11946}
11947_ACEOF
11948if ac_fn_c_try_link "$LINENO"; then :
11949 ac_cv_lib_dl_dlopen=yes
11950else
11951 ac_cv_lib_dl_dlopen=no
11952fi
11953rm -f core conftest.err conftest.$ac_objext \
11954 conftest$ac_exeext conftest.$ac_ext
11955LIBS=$ac_check_lib_save_LIBS
11956fi
11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11958$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11959if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11961else
11962
11963 lt_cv_dlopen="dyld"
11964 lt_cv_dlopen_libs=
11965 lt_cv_dlopen_self=yes
11966
11967fi
11968
11969 ;;
11970
11971 *)
11972 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11973if test "x$ac_cv_func_shl_load" = xyes; then :
11974 lt_cv_dlopen="shl_load"
11975else
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11977$as_echo_n "checking for shl_load in -ldld... " >&6; }
11978if ${ac_cv_lib_dld_shl_load+:} false; then :
11979 $as_echo_n "(cached) " >&6
11980else
11981 ac_check_lib_save_LIBS=$LIBS
11982LIBS="-ldld $LIBS"
11983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984/* end confdefs.h. */
11985
11986/* Override any GCC internal prototype to avoid an error.
11987 Use char because int might match the return type of a GCC
11988 builtin and then its argument prototype would still apply. */
11989#ifdef __cplusplus
11990extern "C"
11991#endif
11992char shl_load ();
a48ff3ef
MF
11993int
11994main ()
11995{
b5689863 11996return shl_load ();
a48ff3ef
MF
11997 ;
11998 return 0;
11999}
12000_ACEOF
12001if ac_fn_c_try_link "$LINENO"; then :
b5689863 12002 ac_cv_lib_dld_shl_load=yes
a48ff3ef 12003else
b5689863 12004 ac_cv_lib_dld_shl_load=no
a48ff3ef
MF
12005fi
12006rm -f core conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
b5689863 12008LIBS=$ac_check_lib_save_LIBS
a48ff3ef 12009fi
b5689863
MF
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12011$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12012if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12013 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12014else
12015 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12016if test "x$ac_cv_func_dlopen" = xyes; then :
12017 lt_cv_dlopen="dlopen"
12018else
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12020$as_echo_n "checking for dlopen in -ldl... " >&6; }
12021if ${ac_cv_lib_dl_dlopen+:} false; then :
12022 $as_echo_n "(cached) " >&6
12023else
12024 ac_check_lib_save_LIBS=$LIBS
12025LIBS="-ldl $LIBS"
12026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027/* end confdefs.h. */
a48ff3ef 12028
b5689863
MF
12029/* Override any GCC internal prototype to avoid an error.
12030 Use char because int might match the return type of a GCC
12031 builtin and then its argument prototype would still apply. */
12032#ifdef __cplusplus
12033extern "C"
12034#endif
12035char dlopen ();
12036int
12037main ()
12038{
12039return dlopen ();
12040 ;
12041 return 0;
12042}
12043_ACEOF
12044if ac_fn_c_try_link "$LINENO"; then :
12045 ac_cv_lib_dl_dlopen=yes
12046else
12047 ac_cv_lib_dl_dlopen=no
a48ff3ef 12048fi
b5689863
MF
12049rm -f core conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12051LIBS=$ac_check_lib_save_LIBS
12052fi
12053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12054$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12055if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12056 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12057else
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12059$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12060if ${ac_cv_lib_svld_dlopen+:} false; then :
12061 $as_echo_n "(cached) " >&6
12062else
12063 ac_check_lib_save_LIBS=$LIBS
12064LIBS="-lsvld $LIBS"
12065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066/* end confdefs.h. */
a48ff3ef 12067
b5689863
MF
12068/* Override any GCC internal prototype to avoid an error.
12069 Use char because int might match the return type of a GCC
12070 builtin and then its argument prototype would still apply. */
12071#ifdef __cplusplus
12072extern "C"
b15c5d7a 12073#endif
b5689863
MF
12074char dlopen ();
12075int
12076main ()
12077{
12078return dlopen ();
12079 ;
12080 return 0;
12081}
b15c5d7a 12082_ACEOF
b5689863
MF
12083if ac_fn_c_try_link "$LINENO"; then :
12084 ac_cv_lib_svld_dlopen=yes
12085else
12086 ac_cv_lib_svld_dlopen=no
b15c5d7a 12087fi
b5689863
MF
12088rm -f core conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12090LIBS=$ac_check_lib_save_LIBS
12091fi
12092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12093$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12094if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12095 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12096else
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12098$as_echo_n "checking for dld_link in -ldld... " >&6; }
12099if ${ac_cv_lib_dld_dld_link+:} false; then :
12100 $as_echo_n "(cached) " >&6
12101else
12102 ac_check_lib_save_LIBS=$LIBS
12103LIBS="-ldld $LIBS"
12104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105/* end confdefs.h. */
b15c5d7a 12106
b5689863
MF
12107/* Override any GCC internal prototype to avoid an error.
12108 Use char because int might match the return type of a GCC
12109 builtin and then its argument prototype would still apply. */
12110#ifdef __cplusplus
12111extern "C"
12112#endif
12113char dld_link ();
12114int
12115main ()
12116{
12117return dld_link ();
12118 ;
12119 return 0;
12120}
b15c5d7a 12121_ACEOF
b5689863
MF
12122if ac_fn_c_try_link "$LINENO"; then :
12123 ac_cv_lib_dld_dld_link=yes
12124else
12125 ac_cv_lib_dld_dld_link=no
12126fi
12127rm -f core conftest.err conftest.$ac_objext \
12128 conftest$ac_exeext conftest.$ac_ext
12129LIBS=$ac_check_lib_save_LIBS
12130fi
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12132$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12133if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12134 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12135fi
b15c5d7a
MF
12136
12137
12138fi
b15c5d7a 12139
b5689863
MF
12140
12141fi
b15c5d7a
MF
12142
12143
12144fi
b15c5d7a 12145
b5689863
MF
12146
12147fi
b15c5d7a
MF
12148
12149
12150fi
b15c5d7a 12151
b5689863
MF
12152 ;;
12153 esac
b15c5d7a 12154
b5689863
MF
12155 if test "x$lt_cv_dlopen" != xno; then
12156 enable_dlopen=yes
12157 else
12158 enable_dlopen=no
12159 fi
b15c5d7a 12160
b5689863
MF
12161 case $lt_cv_dlopen in
12162 dlopen)
12163 save_CPPFLAGS="$CPPFLAGS"
12164 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
b15c5d7a 12165
b5689863
MF
12166 save_LDFLAGS="$LDFLAGS"
12167 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
b15c5d7a 12168
b5689863
MF
12169 save_LIBS="$LIBS"
12170 LIBS="$lt_cv_dlopen_libs $LIBS"
b15c5d7a 12171
b5689863
MF
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12173$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12174if ${lt_cv_dlopen_self+:} false; then :
12175 $as_echo_n "(cached) " >&6
12176else
12177 if test "$cross_compiling" = yes; then :
12178 lt_cv_dlopen_self=cross
12179else
12180 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12181 lt_status=$lt_dlunknown
12182 cat > conftest.$ac_ext <<_LT_EOF
b79efe26 12183#line 12183 "configure"
b5689863
MF
12184#include "confdefs.h"
12185
12186#if HAVE_DLFCN_H
12187#include <dlfcn.h>
b15c5d7a 12188#endif
b15c5d7a 12189
b5689863 12190#include <stdio.h>
b15c5d7a 12191
b5689863
MF
12192#ifdef RTLD_GLOBAL
12193# define LT_DLGLOBAL RTLD_GLOBAL
12194#else
12195# ifdef DL_GLOBAL
12196# define LT_DLGLOBAL DL_GLOBAL
12197# else
12198# define LT_DLGLOBAL 0
12199# endif
12200#endif
b15c5d7a 12201
b5689863
MF
12202/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12203 find out it does not work in some platform. */
12204#ifndef LT_DLLAZY_OR_NOW
12205# ifdef RTLD_LAZY
12206# define LT_DLLAZY_OR_NOW RTLD_LAZY
12207# else
12208# ifdef DL_LAZY
12209# define LT_DLLAZY_OR_NOW DL_LAZY
12210# else
12211# ifdef RTLD_NOW
12212# define LT_DLLAZY_OR_NOW RTLD_NOW
12213# else
12214# ifdef DL_NOW
12215# define LT_DLLAZY_OR_NOW DL_NOW
12216# else
12217# define LT_DLLAZY_OR_NOW 0
12218# endif
12219# endif
12220# endif
12221# endif
b15c5d7a 12222#endif
b5689863
MF
12223
12224/* When -fvisbility=hidden is used, assume the code has been annotated
12225 correspondingly for the symbols needed. */
12226#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12227void fnord () __attribute__((visibility("default")));
b15c5d7a 12228#endif
b15c5d7a 12229
b5689863
MF
12230void fnord () { int i=42; }
12231int main ()
12232{
12233 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12234 int status = $lt_dlunknown;
b15c5d7a 12235
b5689863
MF
12236 if (self)
12237 {
12238 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12239 else
12240 {
12241 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12242 else puts (dlerror ());
12243 }
12244 /* dlclose (self); */
12245 }
12246 else
12247 puts (dlerror ());
b15c5d7a 12248
b5689863
MF
12249 return status;
12250}
12251_LT_EOF
12252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12253 (eval $ac_link) 2>&5
12254 ac_status=$?
12255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12256 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12257 (./conftest; exit; ) >&5 2>/dev/null
12258 lt_status=$?
12259 case x$lt_status in
12260 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12261 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12262 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12263 esac
12264 else :
12265 # compilation failed
12266 lt_cv_dlopen_self=no
12267 fi
b15c5d7a 12268fi
b5689863 12269rm -fr conftest*
b15c5d7a
MF
12270
12271
12272fi
b5689863
MF
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12274$as_echo "$lt_cv_dlopen_self" >&6; }
12275
12276 if test "x$lt_cv_dlopen_self" = xyes; then
12277 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12279$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12280if ${lt_cv_dlopen_self_static+:} false; then :
12281 $as_echo_n "(cached) " >&6
12282else
12283 if test "$cross_compiling" = yes; then :
12284 lt_cv_dlopen_self_static=cross
12285else
12286 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12287 lt_status=$lt_dlunknown
12288 cat > conftest.$ac_ext <<_LT_EOF
b79efe26 12289#line 12289 "configure"
b5689863
MF
12290#include "confdefs.h"
12291
12292#if HAVE_DLFCN_H
12293#include <dlfcn.h>
b15c5d7a 12294#endif
b15c5d7a 12295
b5689863 12296#include <stdio.h>
b15c5d7a 12297
b5689863
MF
12298#ifdef RTLD_GLOBAL
12299# define LT_DLGLOBAL RTLD_GLOBAL
12300#else
12301# ifdef DL_GLOBAL
12302# define LT_DLGLOBAL DL_GLOBAL
12303# else
12304# define LT_DLGLOBAL 0
12305# endif
12306#endif
b15c5d7a 12307
b5689863
MF
12308/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12309 find out it does not work in some platform. */
12310#ifndef LT_DLLAZY_OR_NOW
12311# ifdef RTLD_LAZY
12312# define LT_DLLAZY_OR_NOW RTLD_LAZY
12313# else
12314# ifdef DL_LAZY
12315# define LT_DLLAZY_OR_NOW DL_LAZY
12316# else
12317# ifdef RTLD_NOW
12318# define LT_DLLAZY_OR_NOW RTLD_NOW
12319# else
12320# ifdef DL_NOW
12321# define LT_DLLAZY_OR_NOW DL_NOW
12322# else
12323# define LT_DLLAZY_OR_NOW 0
12324# endif
12325# endif
12326# endif
12327# endif
b15c5d7a 12328#endif
b5689863
MF
12329
12330/* When -fvisbility=hidden is used, assume the code has been annotated
12331 correspondingly for the symbols needed. */
12332#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12333void fnord () __attribute__((visibility("default")));
b15c5d7a 12334#endif
b15c5d7a 12335
b5689863
MF
12336void fnord () { int i=42; }
12337int main ()
12338{
12339 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12340 int status = $lt_dlunknown;
12341
12342 if (self)
12343 {
12344 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12345 else
12346 {
12347 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12348 else puts (dlerror ());
12349 }
12350 /* dlclose (self); */
12351 }
12352 else
12353 puts (dlerror ());
12354
12355 return status;
12356}
12357_LT_EOF
12358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12359 (eval $ac_link) 2>&5
12360 ac_status=$?
12361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12362 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12363 (./conftest; exit; ) >&5 2>/dev/null
12364 lt_status=$?
12365 case x$lt_status in
12366 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12367 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12368 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12369 esac
12370 else :
12371 # compilation failed
12372 lt_cv_dlopen_self_static=no
12373 fi
12374fi
12375rm -fr conftest*
b15c5d7a
MF
12376
12377
12378fi
b5689863
MF
12379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12380$as_echo "$lt_cv_dlopen_self_static" >&6; }
12381 fi
b15c5d7a 12382
b5689863
MF
12383 CPPFLAGS="$save_CPPFLAGS"
12384 LDFLAGS="$save_LDFLAGS"
12385 LIBS="$save_LIBS"
12386 ;;
12387 esac
b15c5d7a 12388
b5689863
MF
12389 case $lt_cv_dlopen_self in
12390 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12391 *) enable_dlopen_self=unknown ;;
12392 esac
b15c5d7a 12393
b5689863
MF
12394 case $lt_cv_dlopen_self_static in
12395 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12396 *) enable_dlopen_self_static=unknown ;;
12397 esac
b15c5d7a 12398fi
b15c5d7a 12399
b15c5d7a
MF
12400
12401
b15c5d7a
MF
12402
12403
b15c5d7a 12404
b15c5d7a
MF
12405
12406
b15c5d7a 12407
b15c5d7a 12408
b15c5d7a 12409
b15c5d7a
MF
12410
12411
b15c5d7a
MF
12412
12413
a48ff3ef 12414
a48ff3ef 12415
b5689863
MF
12416striplib=
12417old_striplib=
12418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12419$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12420if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12421 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12422 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12424$as_echo "yes" >&6; }
a48ff3ef 12425else
b5689863
MF
12426# FIXME - insert some real tests, host_os isn't really good enough
12427 case $host_os in
12428 darwin*)
12429 if test -n "$STRIP" ; then
12430 striplib="$STRIP -x"
12431 old_striplib="$STRIP -S"
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12433$as_echo "yes" >&6; }
12434 else
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436$as_echo "no" >&6; }
12437 fi
12438 ;;
12439 *)
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12441$as_echo "no" >&6; }
12442 ;;
12443 esac
a48ff3ef
MF
12444fi
12445
a48ff3ef 12446
a48ff3ef 12447
a48ff3ef 12448
a48ff3ef
MF
12449
12450
a48ff3ef 12451
a48ff3ef 12452
a48ff3ef 12453
a48ff3ef 12454
a48ff3ef 12455
a48ff3ef 12456
b5689863
MF
12457 # Report which library types will actually be built
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12459$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12461$as_echo "$can_build_shared" >&6; }
a48ff3ef 12462
b5689863
MF
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12464$as_echo_n "checking whether to build shared libraries... " >&6; }
12465 test "$can_build_shared" = "no" && enable_shared=no
a48ff3ef 12466
b5689863
MF
12467 # On AIX, shared libraries and static libraries use the same namespace, and
12468 # are all built from PIC.
12469 case $host_os in
12470 aix3*)
12471 test "$enable_shared" = yes && enable_static=no
12472 if test -n "$RANLIB"; then
12473 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12474 postinstall_cmds='$RANLIB $lib'
12475 fi
12476 ;;
a48ff3ef 12477
b5689863
MF
12478 aix[4-9]*)
12479 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12480 test "$enable_shared" = yes && enable_static=no
12481 fi
12482 ;;
12483 esac
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12485$as_echo "$enable_shared" >&6; }
12486
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12488$as_echo_n "checking whether to build static libraries... " >&6; }
12489 # Make sure either enable_shared or enable_static is yes.
12490 test "$enable_shared" = yes || enable_static=yes
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12492$as_echo "$enable_static" >&6; }
a48ff3ef 12493
a48ff3ef 12494
a48ff3ef 12495
b15c5d7a 12496
b15c5d7a 12497fi
b5689863
MF
12498ac_ext=c
12499ac_cpp='$CPP $CPPFLAGS'
12500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12502ac_compiler_gnu=$ac_cv_c_compiler_gnu
b15c5d7a 12503
b5689863 12504CC="$lt_save_CC"
b15c5d7a
MF
12505
12506
a48ff3ef 12507
a48ff3ef 12508
a48ff3ef 12509
a48ff3ef 12510
a48ff3ef 12511
a48ff3ef 12512
a48ff3ef 12513
a48ff3ef
MF
12514
12515
a48ff3ef 12516
b5689863
MF
12517
12518 ac_config_commands="$ac_config_commands libtool"
12519
12520
12521
12522
12523# Only expand once:
12524
12525
a48ff3ef 12526
b15c5d7a 12527
07490bf8
MF
12528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
12529$as_echo_n "checking for bind in -lsocket... " >&6; }
12530if ${ac_cv_lib_socket_bind+:} false; then :
12531 $as_echo_n "(cached) " >&6
12532else
12533 ac_check_lib_save_LIBS=$LIBS
12534LIBS="-lsocket $LIBS"
12535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536/* end confdefs.h. */
12537
12538/* Override any GCC internal prototype to avoid an error.
12539 Use char because int might match the return type of a GCC
12540 builtin and then its argument prototype would still apply. */
12541#ifdef __cplusplus
12542extern "C"
12543#endif
12544char bind ();
12545int
12546main ()
12547{
12548return bind ();
12549 ;
12550 return 0;
12551}
12552_ACEOF
12553if ac_fn_c_try_link "$LINENO"; then :
12554 ac_cv_lib_socket_bind=yes
12555else
12556 ac_cv_lib_socket_bind=no
12557fi
12558rm -f core conftest.err conftest.$ac_objext \
12559 conftest$ac_exeext conftest.$ac_ext
12560LIBS=$ac_check_lib_save_LIBS
12561fi
12562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
12563$as_echo "$ac_cv_lib_socket_bind" >&6; }
12564if test "x$ac_cv_lib_socket_bind" = xyes; then :
12565 cat >>confdefs.h <<_ACEOF
12566#define HAVE_LIBSOCKET 1
12567_ACEOF
12568
12569 LIBS="-lsocket $LIBS"
12570
12571fi
12572
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12574$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12575if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12576 $as_echo_n "(cached) " >&6
12577else
12578 ac_check_lib_save_LIBS=$LIBS
12579LIBS="-lnsl $LIBS"
12580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581/* end confdefs.h. */
12582
12583/* Override any GCC internal prototype to avoid an error.
12584 Use char because int might match the return type of a GCC
12585 builtin and then its argument prototype would still apply. */
12586#ifdef __cplusplus
12587extern "C"
12588#endif
12589char gethostbyname ();
12590int
12591main ()
12592{
12593return gethostbyname ();
12594 ;
12595 return 0;
12596}
12597_ACEOF
12598if ac_fn_c_try_link "$LINENO"; then :
12599 ac_cv_lib_nsl_gethostbyname=yes
12600else
12601 ac_cv_lib_nsl_gethostbyname=no
12602fi
12603rm -f core conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
12605LIBS=$ac_check_lib_save_LIBS
12606fi
12607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12608$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12609if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12610 cat >>confdefs.h <<_ACEOF
12611#define HAVE_LIBNSL 1
12612_ACEOF
12613
12614 LIBS="-lnsl $LIBS"
12615
12616fi
12617
12618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12619$as_echo_n "checking for fabs in -lm... " >&6; }
12620if ${ac_cv_lib_m_fabs+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622else
12623 ac_check_lib_save_LIBS=$LIBS
12624LIBS="-lm $LIBS"
12625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626/* end confdefs.h. */
12627
12628/* Override any GCC internal prototype to avoid an error.
12629 Use char because int might match the return type of a GCC
12630 builtin and then its argument prototype would still apply. */
12631#ifdef __cplusplus
12632extern "C"
12633#endif
12634char fabs ();
12635int
12636main ()
12637{
12638return fabs ();
12639 ;
12640 return 0;
12641}
12642_ACEOF
12643if ac_fn_c_try_link "$LINENO"; then :
12644 ac_cv_lib_m_fabs=yes
12645else
12646 ac_cv_lib_m_fabs=no
12647fi
12648rm -f core conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext conftest.$ac_ext
12650LIBS=$ac_check_lib_save_LIBS
12651fi
12652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12653$as_echo "$ac_cv_lib_m_fabs" >&6; }
12654if test "x$ac_cv_lib_m_fabs" = xyes; then :
12655 cat >>confdefs.h <<_ACEOF
12656#define HAVE_LIBM 1
12657_ACEOF
12658
12659 LIBS="-lm $LIBS"
12660
12661fi
12662
12663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
12664$as_echo_n "checking for log2 in -lm... " >&6; }
12665if ${ac_cv_lib_m_log2+:} false; then :
12666 $as_echo_n "(cached) " >&6
12667else
12668 ac_check_lib_save_LIBS=$LIBS
12669LIBS="-lm $LIBS"
12670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671/* end confdefs.h. */
12672
12673/* Override any GCC internal prototype to avoid an error.
12674 Use char because int might match the return type of a GCC
12675 builtin and then its argument prototype would still apply. */
12676#ifdef __cplusplus
12677extern "C"
12678#endif
12679char log2 ();
12680int
12681main ()
12682{
12683return log2 ();
12684 ;
12685 return 0;
12686}
12687_ACEOF
12688if ac_fn_c_try_link "$LINENO"; then :
12689 ac_cv_lib_m_log2=yes
12690else
12691 ac_cv_lib_m_log2=no
12692fi
12693rm -f core conftest.err conftest.$ac_objext \
12694 conftest$ac_exeext conftest.$ac_ext
12695LIBS=$ac_check_lib_save_LIBS
12696fi
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12698$as_echo "$ac_cv_lib_m_log2" >&6; }
12699if test "x$ac_cv_lib_m_log2" = xyes; then :
12700 cat >>confdefs.h <<_ACEOF
12701#define HAVE_LIBM 1
12702_ACEOF
12703
12704 LIBS="-lm $LIBS"
12705
12706fi
12707
12708
b15c5d7a 12709
d57b6533
MF
12710pkg_failed=no
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
12712$as_echo_n "checking for sdl... " >&6; }
12713
12714if test -n "$SDL_CFLAGS"; then
12715 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12716 elif test -n "$PKG_CONFIG"; then
12717 if test -n "$PKG_CONFIG" && \
12718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
12719 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12720 ac_status=$?
12721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12722 test $ac_status = 0; }; then
12723 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
12724 test "x$?" != "x0" && pkg_failed=yes
12725else
12726 pkg_failed=yes
12727fi
12728 else
12729 pkg_failed=untried
12730fi
12731if test -n "$SDL_LIBS"; then
12732 pkg_cv_SDL_LIBS="$SDL_LIBS"
12733 elif test -n "$PKG_CONFIG"; then
12734 if test -n "$PKG_CONFIG" && \
12735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
12736 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12737 ac_status=$?
12738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12739 test $ac_status = 0; }; then
12740 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
12741 test "x$?" != "x0" && pkg_failed=yes
12742else
12743 pkg_failed=yes
12744fi
12745 else
12746 pkg_failed=untried
12747fi
12748
12749if test $pkg_failed = no; then
12750 pkg_save_LDFLAGS="$LDFLAGS"
12751 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753/* end confdefs.h. */
12754
12755int
12756main ()
12757{
12758
12759 ;
12760 return 0;
12761}
12762_ACEOF
12763if ac_fn_c_try_link "$LINENO"; then :
12764
12765else
12766 pkg_failed=yes
12767fi
12768rm -f core conftest.err conftest.$ac_objext \
12769 conftest$ac_exeext conftest.$ac_ext
12770 LDFLAGS=$pkg_save_LDFLAGS
12771fi
12772
12773
12774
12775if test $pkg_failed = yes; then
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777$as_echo "no" >&6; }
12778
12779if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12780 _pkg_short_errors_supported=yes
12781else
12782 _pkg_short_errors_supported=no
12783fi
12784 if test $_pkg_short_errors_supported = yes; then
12785 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
12786 else
12787 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
12788 fi
12789 # Put the nasty error message in config.log where it belongs
12790 echo "$SDL_PKG_ERRORS" >&5
12791
12792 :
12793elif test $pkg_failed = untried; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795$as_echo "no" >&6; }
12796 :
12797else
12798 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
12799 SDL_LIBS=$pkg_cv_SDL_LIBS
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12801$as_echo "yes" >&6; }
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12803$as_echo_n "checking for dlopen in -ldl... " >&6; }
12804if ${ac_cv_lib_dl_dlopen+:} false; then :
12805 $as_echo_n "(cached) " >&6
12806else
12807 ac_check_lib_save_LIBS=$LIBS
12808LIBS="-ldl $LIBS"
12809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810/* end confdefs.h. */
12811
12812/* Override any GCC internal prototype to avoid an error.
12813 Use char because int might match the return type of a GCC
12814 builtin and then its argument prototype would still apply. */
12815#ifdef __cplusplus
12816extern "C"
12817#endif
12818char dlopen ();
12819int
12820main ()
12821{
12822return dlopen ();
12823 ;
12824 return 0;
12825}
12826_ACEOF
12827if ac_fn_c_try_link "$LINENO"; then :
12828 ac_cv_lib_dl_dlopen=yes
12829else
12830 ac_cv_lib_dl_dlopen=no
12831fi
12832rm -f core conftest.err conftest.$ac_objext \
12833 conftest$ac_exeext conftest.$ac_ext
12834LIBS=$ac_check_lib_save_LIBS
12835fi
12836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12837$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12838if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12839 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL"
12840 SDL_LIBS="-ldl"
12841
12842else
12843 SDL_CFLAGS= SDL_LIBS=
12844fi
12845
12846
12847fi
12848
12849
12850
5d0b3088
MF
12851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
12852$as_echo_n "checking for cygwin... " >&6; }
12853if ${sim_cv_os_cygwin+:} false; then :
12854 $as_echo_n "(cached) " >&6
12855else
12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857/* end confdefs.h. */
12858
12859#ifdef __CYGWIN__
12860lose
12861#endif
12862_ACEOF
12863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12864 $EGREP "lose" >/dev/null 2>&1; then :
12865 sim_cv_os_cygwin=yes
12866else
12867 sim_cv_os_cygwin=no
12868fi
12869rm -f conftest*
12870
12871fi
12872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
12873$as_echo "$sim_cv_os_cygwin" >&6; }
12874
12875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
12876$as_echo_n "checking for library containing tgetent... " >&6; }
12877if ${ac_cv_search_tgetent+:} false; then :
12878 $as_echo_n "(cached) " >&6
12879else
12880 ac_func_search_save_LIBS=$LIBS
12881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12882/* end confdefs.h. */
12883
12884/* Override any GCC internal prototype to avoid an error.
12885 Use char because int might match the return type of a GCC
12886 builtin and then its argument prototype would still apply. */
12887#ifdef __cplusplus
12888extern "C"
12889#endif
12890char tgetent ();
12891int
12892main ()
12893{
12894return tgetent ();
12895 ;
12896 return 0;
12897}
12898_ACEOF
12899for ac_lib in '' termcap tinfo curses ncurses; do
12900 if test -z "$ac_lib"; then
12901 ac_res="none required"
12902 else
12903 ac_res=-l$ac_lib
12904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12905 fi
12906 if ac_fn_c_try_link "$LINENO"; then :
12907 ac_cv_search_tgetent=$ac_res
12908fi
12909rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext
12911 if ${ac_cv_search_tgetent+:} false; then :
12912 break
12913fi
12914done
12915if ${ac_cv_search_tgetent+:} false; then :
12916
12917else
12918 ac_cv_search_tgetent=no
12919fi
12920rm conftest.$ac_ext
12921LIBS=$ac_func_search_save_LIBS
12922fi
12923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
12924$as_echo "$ac_cv_search_tgetent" >&6; }
12925ac_res=$ac_cv_search_tgetent
12926if test "$ac_res" != no; then :
12927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12928 TERMCAP_LIB=$ac_cv_search_tgetent
12929else
12930 TERMCAP_LIB=""
12931fi
12932
12933if test x$sim_cv_os_cygwin = xyes; then
12934 TERMCAP_LIB="${TERMCAP_LIB} -luser32"
12935fi
12936
12937
12938if test -r ../readline/Makefile; then
12939 READLINE_LIB=../../readline/readline/libreadline.a
12940 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
12941else
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
12943$as_echo_n "checking for readline in -lreadline... " >&6; }
12944if ${ac_cv_lib_readline_readline+:} false; then :
12945 $as_echo_n "(cached) " >&6
12946else
12947 ac_check_lib_save_LIBS=$LIBS
12948LIBS="-lreadline $TERMCAP_LIB $LIBS"
12949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950/* end confdefs.h. */
12951
12952/* Override any GCC internal prototype to avoid an error.
12953 Use char because int might match the return type of a GCC
12954 builtin and then its argument prototype would still apply. */
12955#ifdef __cplusplus
12956extern "C"
12957#endif
12958char readline ();
12959int
12960main ()
12961{
12962return readline ();
12963 ;
12964 return 0;
12965}
12966_ACEOF
12967if ac_fn_c_try_link "$LINENO"; then :
12968 ac_cv_lib_readline_readline=yes
12969else
12970 ac_cv_lib_readline_readline=no
12971fi
12972rm -f core conftest.err conftest.$ac_objext \
12973 conftest$ac_exeext conftest.$ac_ext
12974LIBS=$ac_check_lib_save_LIBS
12975fi
12976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
12977$as_echo "$ac_cv_lib_readline_readline" >&6; }
12978if test "x$ac_cv_lib_readline_readline" = xyes; then :
12979 READLINE_LIB=-lreadline
12980else
12981 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
12982fi
12983
12984 READLINE_CFLAGS=
12985fi
12986
12987
12988
d57b6533 12989
b15c5d7a
MF
12990
12991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12992$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12993 # Check whether --enable-maintainer-mode was given.
12994if test "${enable_maintainer_mode+set}" = set; then :
12995 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12996else
12997 USE_MAINTAINER_MODE=no
12998fi
12999
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13001$as_echo "$USE_MAINTAINER_MODE" >&6; }
13002 if test $USE_MAINTAINER_MODE = yes; then
13003 MAINTAINER_MODE_TRUE=
13004 MAINTAINER_MODE_FALSE='#'
13005else
13006 MAINTAINER_MODE_TRUE='#'
13007 MAINTAINER_MODE_FALSE=
13008fi
13009
13010 MAINT=$MAINTAINER_MODE_TRUE
13011
13012
13013am__api_version='1.15'
13014
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13016$as_echo_n "checking whether build environment is sane... " >&6; }
13017# Reject unsafe characters in $srcdir or the absolute working directory
13018# name. Accept space and tab only in the latter.
13019am_lf='
13020'
13021case `pwd` in
13022 *[\\\"\#\$\&\'\`$am_lf]*)
13023 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13024esac
13025case $srcdir in
13026 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13027 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13028esac
13029
13030# Do 'set' in a subshell so we don't clobber the current shell's
13031# arguments. Must try -L first in case configure is actually a
13032# symlink; some systems play weird games with the mod time of symlinks
13033# (eg FreeBSD returns the mod time of the symlink's containing
13034# directory).
13035if (
13036 am_has_slept=no
13037 for am_try in 1 2; do
13038 echo "timestamp, slept: $am_has_slept" > conftest.file
13039 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13040 if test "$*" = "X"; then
13041 # -L didn't work.
13042 set X `ls -t "$srcdir/configure" conftest.file`
13043 fi
13044 if test "$*" != "X $srcdir/configure conftest.file" \
13045 && test "$*" != "X conftest.file $srcdir/configure"; then
13046
13047 # If neither matched, then we have a broken ls. This can happen
13048 # if, for instance, CONFIG_SHELL is bash and it inherits a
13049 # broken ls alias from the environment. This has actually
13050 # happened. Such a system could not be considered "sane".
13051 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13052 alias in your environment" "$LINENO" 5
13053 fi
13054 if test "$2" = conftest.file || test $am_try -eq 2; then
13055 break
13056 fi
13057 # Just in case.
13058 sleep 1
13059 am_has_slept=yes
13060 done
13061 test "$2" = conftest.file
13062 )
13063then
13064 # Ok.
13065 :
13066else
13067 as_fn_error $? "newly created file is older than distributed files!
13068Check your system clock" "$LINENO" 5
13069fi
13070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13071$as_echo "yes" >&6; }
13072# If we didn't sleep, we still need to ensure time stamps of config.status and
13073# generated files are strictly newer.
13074am_sleep_pid=
13075if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13076 ( sleep 1 ) &
13077 am_sleep_pid=$!
13078fi
13079
13080rm -f conftest.file
13081
13082if test x"${MISSING+set}" != xset; then
13083 case $am_aux_dir in
13084 *\ * | *\ *)
13085 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13086 *)
13087 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13088 esac
13089fi
13090# Use eval to expand $SHELL
13091if eval "$MISSING --is-lightweight"; then
13092 am_missing_run="$MISSING "
c2783492
MF
13093else
13094 am_missing_run=
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13096$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13097fi
13098
13099if test x"${install_sh+set}" != xset; then
13100 case $am_aux_dir in
13101 *\ * | *\ *)
13102 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13103 *)
13104 install_sh="\${SHELL} $am_aux_dir/install-sh"
13105 esac
13106fi
13107
13108# Installed binaries are usually stripped using 'strip' when the user
13109# run "make install-strip". However 'strip' might not be the right
13110# tool to use in cross-compilation environments, therefore Automake
13111# will honor the 'STRIP' environment variable to overrule this program.
13112if test "$cross_compiling" != no; then
13113 if test -n "$ac_tool_prefix"; then
13114 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13115set dummy ${ac_tool_prefix}strip; ac_word=$2
13116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13117$as_echo_n "checking for $ac_word... " >&6; }
13118if ${ac_cv_prog_STRIP+:} false; then :
13119 $as_echo_n "(cached) " >&6
13120else
13121 if test -n "$STRIP"; then
13122 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13123else
13124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125for as_dir in $PATH
13126do
13127 IFS=$as_save_IFS
13128 test -z "$as_dir" && as_dir=.
13129 for ac_exec_ext in '' $ac_executable_extensions; do
13130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13131 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13133 break 2
81ecdfbb 13134 fi
81ecdfbb 13135done
c2783492
MF
13136 done
13137IFS=$as_save_IFS
b7026657 13138
c906108c 13139fi
b7026657 13140fi
c2783492
MF
13141STRIP=$ac_cv_prog_STRIP
13142if test -n "$STRIP"; then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13144$as_echo "$STRIP" >&6; }
81ecdfbb 13145else
c2783492
MF
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147$as_echo "no" >&6; }
81ecdfbb 13148fi
b7026657 13149
b7026657 13150
c2783492
MF
13151fi
13152if test -z "$ac_cv_prog_STRIP"; then
13153 ac_ct_STRIP=$STRIP
13154 # Extract the first word of "strip", so it can be a program name with args.
13155set dummy strip; ac_word=$2
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13157$as_echo_n "checking for $ac_word... " >&6; }
13158if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13159 $as_echo_n "(cached) " >&6
c906108c 13160else
c2783492
MF
13161 if test -n "$ac_ct_STRIP"; then
13162 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
81ecdfbb 13163else
c2783492
MF
13164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165for as_dir in $PATH
13166do
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13171 ac_cv_prog_ac_ct_STRIP="strip"
13172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13173 break 2
13174 fi
13175done
13176 done
13177IFS=$as_save_IFS
81ecdfbb 13178
81ecdfbb 13179fi
df1756f4 13180fi
c2783492
MF
13181ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13182if test -n "$ac_ct_STRIP"; then
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13184$as_echo "$ac_ct_STRIP" >&6; }
13185else
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187$as_echo "no" >&6; }
b7026657 13188fi
c2783492
MF
13189
13190 if test "x$ac_ct_STRIP" = x; then
13191 STRIP=":"
c906108c 13192 else
c2783492
MF
13193 case $cross_compiling:$ac_tool_warned in
13194yes:)
13195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13197ac_tool_warned=yes ;;
13198esac
13199 STRIP=$ac_ct_STRIP
c906108c
SS
13200 fi
13201else
c2783492 13202 STRIP="$ac_cv_prog_STRIP"
c906108c 13203fi
81ecdfbb 13204
b7026657 13205fi
c2783492 13206INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b7026657 13207
c2783492
MF
13208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13209$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13210if test -z "$MKDIR_P"; then
13211 if ${ac_cv_path_mkdir+:} false; then :
13212 $as_echo_n "(cached) " >&6
13213else
13214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13216do
13217 IFS=$as_save_IFS
13218 test -z "$as_dir" && as_dir=.
13219 for ac_prog in mkdir gmkdir; do
13220 for ac_exec_ext in '' $ac_executable_extensions; do
13221 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13222 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13223 'mkdir (GNU coreutils) '* | \
13224 'mkdir (coreutils) '* | \
13225 'mkdir (fileutils) '4.1*)
13226 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13227 break 3;;
13228 esac
13229 done
13230 done
13231 done
13232IFS=$as_save_IFS
b7026657 13233
fdd6fa61
AG
13234fi
13235
c2783492
MF
13236 test -d ./--version && rmdir ./--version
13237 if test "${ac_cv_path_mkdir+set}" = set; then
13238 MKDIR_P="$ac_cv_path_mkdir -p"
b5689863
MF
13239 else
13240 # As a last resort, use the slow shell script. Don't cache a
13241 # value for MKDIR_P within a source directory, because that will
13242 # break other packages using the cache if that directory is
13243 # removed, or if the value is a relative name.
13244 MKDIR_P="$ac_install_sh -d"
13245 fi
c2783492 13246fi
b5689863
MF
13247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13248$as_echo "$MKDIR_P" >&6; }
6bddc3e8 13249
c2783492
MF
13250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13251$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13252set x ${MAKE-make}
13253ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13254if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6bddc3e8
MF
13255 $as_echo_n "(cached) " >&6
13256else
c2783492
MF
13257 cat >conftest.make <<\_ACEOF
13258SHELL = /bin/sh
13259all:
13260 @echo '@@@%%%=$(MAKE)=@@@%%%'
13261_ACEOF
13262# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13263case `${MAKE-make} -f conftest.make 2>/dev/null` in
13264 *@@@%%%=?*=@@@%%%*)
13265 eval ac_cv_prog_make_${ac_make}_set=yes;;
13266 *)
13267 eval ac_cv_prog_make_${ac_make}_set=no;;
13268esac
13269rm -f conftest.make
13270fi
13271if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13273$as_echo "yes" >&6; }
13274 SET_MAKE=
13275else
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277$as_echo "no" >&6; }
13278 SET_MAKE="MAKE=${MAKE-make}"
13279fi
6bddc3e8 13280
c2783492
MF
13281rm -rf .tst 2>/dev/null
13282mkdir .tst 2>/dev/null
13283if test -d .tst; then
13284 am__leading_dot=.
13285else
13286 am__leading_dot=_
13287fi
13288rmdir .tst 2>/dev/null
6bddc3e8 13289
c2783492 13290DEPDIR="${am__leading_dot}deps"
6bddc3e8 13291
c2783492 13292ac_config_commands="$ac_config_commands depfiles"
6bddc3e8 13293
c2783492
MF
13294
13295am_make=${MAKE-make}
13296cat > confinc << 'END'
13297am__doit:
13298 @echo this is the am__doit target
13299.PHONY: am__doit
13300END
13301# If we don't find an include directive, just comment out the code.
13302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13303$as_echo_n "checking for style of include used by $am_make... " >&6; }
13304am__include="#"
13305am__quote=
13306_am_result=none
13307# First try GNU make style include.
13308echo "include confinc" > confmf
13309# Ignore all kinds of additional output from 'make'.
13310case `$am_make -s -f confmf 2> /dev/null` in #(
13311*the\ am__doit\ target*)
13312 am__include=include
13313 am__quote=
13314 _am_result=GNU
13315 ;;
13316esac
13317# Now try BSD make style include.
13318if test "$am__include" = "#"; then
13319 echo '.include "confinc"' > confmf
13320 case `$am_make -s -f confmf 2> /dev/null` in #(
13321 *the\ am__doit\ target*)
13322 am__include=.include
13323 am__quote="\""
13324 _am_result=BSD
13325 ;;
13326 esac
6bddc3e8
MF
13327fi
13328
c2783492
MF
13329
13330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13331$as_echo "$_am_result" >&6; }
13332rm -f confinc confmf
13333
13334# Check whether --enable-dependency-tracking was given.
13335if test "${enable_dependency_tracking+set}" = set; then :
13336 enableval=$enable_dependency_tracking;
6bddc3e8 13337fi
6bddc3e8 13338
c2783492
MF
13339if test "x$enable_dependency_tracking" != xno; then
13340 am_depcomp="$ac_aux_dir/depcomp"
13341 AMDEPBACKSLASH='\'
13342 am__nodep='_no'
13343fi
13344 if test "x$enable_dependency_tracking" != xno; then
13345 AMDEP_TRUE=
13346 AMDEP_FALSE='#'
6bddc3e8 13347else
c2783492
MF
13348 AMDEP_TRUE='#'
13349 AMDEP_FALSE=
6bddc3e8
MF
13350fi
13351
13352
c2783492
MF
13353# Check whether --enable-silent-rules was given.
13354if test "${enable_silent_rules+set}" = set; then :
13355 enableval=$enable_silent_rules;
5e25901f 13356fi
c2783492
MF
13357
13358case $enable_silent_rules in # (((
13359 yes) AM_DEFAULT_VERBOSITY=0;;
13360 no) AM_DEFAULT_VERBOSITY=1;;
13361 *) AM_DEFAULT_VERBOSITY=1;;
13362esac
13363am_make=${MAKE-make}
13364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13365$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13366if ${am_cv_make_support_nested_variables+:} false; then :
5e25901f
MF
13367 $as_echo_n "(cached) " >&6
13368else
c2783492
MF
13369 if $as_echo 'TRUE=$(BAR$(V))
13370BAR0=false
13371BAR1=true
13372V=1
13373am__doit:
13374 @$(TRUE)
13375.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13376 am_cv_make_support_nested_variables=yes
5e25901f 13377else
c2783492 13378 am_cv_make_support_nested_variables=no
5e25901f 13379fi
c2783492
MF
13380fi
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13382$as_echo "$am_cv_make_support_nested_variables" >&6; }
13383if test $am_cv_make_support_nested_variables = yes; then
13384 AM_V='$(V)'
13385 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5e25901f 13386else
c2783492
MF
13387 AM_V=$AM_DEFAULT_VERBOSITY
13388 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5e25901f 13389fi
c2783492 13390AM_BACKSLASH='\'
5e25901f 13391
c2783492
MF
13392if test "`cd $srcdir && pwd`" != "`pwd`"; then
13393 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13394 # is not polluted with repeated "-I."
13395 am__isrc=' -I$(srcdir)'
13396 # test to see if srcdir already configured
13397 if test -f $srcdir/config.status; then
13398 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13399 fi
5e25901f
MF
13400fi
13401
c2783492
MF
13402# test whether we have cygpath
13403if test -z "$CYGPATH_W"; then
13404 if (cygpath --version) >/dev/null 2>/dev/null; then
13405 CYGPATH_W='cygpath -w'
13406 else
13407 CYGPATH_W=echo
13408 fi
5e25901f 13409fi
c2783492
MF
13410
13411
13412# Define the identity of the package.
13413 PACKAGE='sim'
13414 VERSION='0'
13415
13416
13417cat >>confdefs.h <<_ACEOF
13418#define PACKAGE "$PACKAGE"
5e25901f 13419_ACEOF
5e25901f 13420
5e25901f 13421
c2783492
MF
13422cat >>confdefs.h <<_ACEOF
13423#define VERSION "$VERSION"
5e25901f 13424_ACEOF
5e25901f 13425
c2783492 13426# Some tools Automake needs.
5e25901f 13427
c2783492
MF
13428ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13429
13430
13431AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13432
13433
13434AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13435
13436
13437AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13438
13439
13440MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13441
13442# For better backward compatibility. To be removed once Automake 1.9.x
13443# dies out for good. For more background, see:
13444# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13445# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13446mkdir_p='$(MKDIR_P)'
13447
13448# We need awk for the "check" target (and possibly the TAP driver). The
13449# system "awk" is bad on some platforms.
13450# Always define AMTAR for backward compatibility. Yes, it's still used
13451# in the wild :-( We should find a proper way to deprecate it ...
13452AMTAR='$${TAR-tar}'
13453
13454
13455# We'll loop over all known methods to create a tar archive until one works.
13456_am_tools='gnutar pax cpio none'
13457
13458am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5e25901f 13459
5e25901f 13460
c906108c 13461
c906108c 13462
c2783492
MF
13463
13464depcc="$CC" am_compiler_list=
13465
13466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13467$as_echo_n "checking dependency style of $depcc... " >&6; }
13468if ${am_cv_CC_dependencies_compiler_type+:} false; then :
81ecdfbb 13469 $as_echo_n "(cached) " >&6
c906108c 13470else
c2783492
MF
13471 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13472 # We make a subdir and do the tests there. Otherwise we can end up
13473 # making bogus files that we don't know about and never remove. For
13474 # instance it was reported that on HP-UX the gcc test will end up
13475 # making a dummy file named 'D' -- because '-MD' means "put the output
13476 # in D".
13477 rm -rf conftest.dir
13478 mkdir conftest.dir
13479 # Copy depcomp to subdir because otherwise we won't find it if we're
13480 # using a relative directory.
13481 cp "$am_depcomp" conftest.dir
13482 cd conftest.dir
13483 # We will build objects and dependencies in a subdirectory because
13484 # it helps to detect inapplicable dependency modes. For instance
13485 # both Tru64's cc and ICC support -MD to output dependencies as a
13486 # side effect of compilation, but ICC will put the dependencies in
13487 # the current directory while Tru64 will put them in the object
13488 # directory.
13489 mkdir sub
13490
13491 am_cv_CC_dependencies_compiler_type=none
13492 if test "$am_compiler_list" = ""; then
13493 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
b7026657 13494 fi
c2783492
MF
13495 am__universal=false
13496 case " $depcc " in #(
13497 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13498 esac
13499
13500 for depmode in $am_compiler_list; do
13501 # Setup a source with many dependencies, because some compilers
13502 # like to wrap large dependency lists on column 80 (with \), and
13503 # we should not choose a depcomp mode which is confused by this.
13504 #
13505 # We need to recreate these files for each test, as the compiler may
13506 # overwrite some of them when testing with obscure command lines.
13507 # This happens at least with the AIX C compiler.
13508 : > sub/conftest.c
13509 for i in 1 2 3 4 5 6; do
13510 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13511 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13512 # Solaris 10 /bin/sh.
13513 echo '/* dummy */' > sub/conftst$i.h
13514 done
13515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13516
13517 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13518 # mode. It turns out that the SunPro C++ compiler does not properly
13519 # handle '-M -o', and we need to detect this. Also, some Intel
13520 # versions had trouble with output in subdirs.
13521 am__obj=sub/conftest.${OBJEXT-o}
13522 am__minus_obj="-o $am__obj"
13523 case $depmode in
13524 gcc)
13525 # This depmode causes a compiler race in universal mode.
13526 test "$am__universal" = false || continue
13527 ;;
13528 nosideeffect)
13529 # After this tag, mechanisms are not by side-effect, so they'll
13530 # only be used when explicitly requested.
13531 if test "x$enable_dependency_tracking" = xyes; then
13532 continue
13533 else
13534 break
13535 fi
13536 ;;
13537 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13538 # This compiler won't grok '-c -o', but also, the minuso test has
13539 # not run yet. These depmodes are late enough in the game, and
13540 # so weak that their functioning should not be impacted.
13541 am__obj=conftest.${OBJEXT-o}
13542 am__minus_obj=
13543 ;;
13544 none) break ;;
13545 esac
13546 if depmode=$depmode \
13547 source=sub/conftest.c object=$am__obj \
13548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13549 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13550 >/dev/null 2>conftest.err &&
13551 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13552 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13553 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13555 # icc doesn't choke on unknown options, it will just issue warnings
13556 # or remarks (even with -Werror). So we grep stderr for any message
13557 # that says an option was ignored or not supported.
13558 # When given -MP, icc 7.0 and 7.1 complain thusly:
13559 # icc: Command line warning: ignoring option '-M'; no argument required
13560 # The diagnosis changed in icc 8.0:
13561 # icc: Command line remark: option '-MP' not supported
13562 if (grep 'ignoring option' conftest.err ||
13563 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13564 am_cv_CC_dependencies_compiler_type=$depmode
13565 break
13566 fi
13567 fi
81ecdfbb 13568 done
b7026657 13569
c2783492
MF
13570 cd ..
13571 rm -rf conftest.dir
b7026657 13572else
c2783492 13573 am_cv_CC_dependencies_compiler_type=none
b7026657
AC
13574fi
13575
13576fi
c2783492
MF
13577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13578$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13579CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
b7026657 13580
c2783492
MF
13581 if
13582 test "x$enable_dependency_tracking" != xno \
13583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13584 am__fastdepCC_TRUE=
13585 am__fastdepCC_FALSE='#'
c906108c 13586else
c2783492
MF
13587 am__fastdepCC_TRUE='#'
13588 am__fastdepCC_FALSE=
b7026657
AC
13589fi
13590
c906108c
SS
13591
13592
c2783492
MF
13593# POSIX will say in a future version that running "rm -f" with no argument
13594# is OK; and we want to be able to make that assumption in our Makefile
13595# recipes. So use an aggressive probe to check that the usage we want is
13596# actually supported "in the wild" to an acceptable degree.
13597# See automake bug#10828.
13598# To make any issue more visible, cause the running configure to be aborted
13599# by default if the 'rm' program in use doesn't match our expectations; the
13600# user can still override this though.
13601if rm -f && rm -fr && rm -rf; then : OK; else
13602 cat >&2 <<'END'
13603Oops!
13604
13605Your 'rm' program seems unable to run without file operands specified
13606on the command line, even when the '-f' option is present. This is contrary
13607to the behaviour of most rm programs out there, and not conforming with
13608the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13609
13610Please tell bug-automake@gnu.org about your system, including the value
13611of your $PATH and any error possibly output before this message. This
13612can help us improve future automake versions.
13613
13614END
13615 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13616 echo 'Configuration will proceed anyway, since you have set the' >&2
13617 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13618 echo >&2
5c887dd5 13619 else
c2783492
MF
13620 cat >&2 <<'END'
13621Aborting the configuration process, to ensure you take notice of the issue.
13622
13623You can download and install GNU coreutils to get an 'rm' implementation
13624that behaves properly: <http://www.gnu.org/software/coreutils/>.
13625
13626If you want to complete the configuration process using your problematic
13627'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13628to "yes", and re-run configure.
13629
13630END
13631 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5c887dd5 13632 fi
c906108c
SS
13633fi
13634
fbe8d1cf
MF
13635# Check whether --enable-silent-rules was given.
13636if test "${enable_silent_rules+set}" = set; then :
13637 enableval=$enable_silent_rules;
13638fi
13639
13640case $enable_silent_rules in # (((
13641 yes) AM_DEFAULT_VERBOSITY=0;;
13642 no) AM_DEFAULT_VERBOSITY=1;;
13643 *) AM_DEFAULT_VERBOSITY=0;;
13644esac
13645am_make=${MAKE-make}
13646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13647$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13648if ${am_cv_make_support_nested_variables+:} false; then :
13649 $as_echo_n "(cached) " >&6
13650else
13651 if $as_echo 'TRUE=$(BAR$(V))
13652BAR0=false
13653BAR1=true
13654V=1
13655am__doit:
13656 @$(TRUE)
13657.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13658 am_cv_make_support_nested_variables=yes
13659else
13660 am_cv_make_support_nested_variables=no
13661fi
13662fi
13663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13664$as_echo "$am_cv_make_support_nested_variables" >&6; }
13665if test $am_cv_make_support_nested_variables = yes; then
13666 AM_V='$(V)'
13667 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13668else
13669 AM_V=$AM_DEFAULT_VERBOSITY
13670 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13671fi
13672AM_BACKSLASH='\'
13673
c906108c
SS
13674
13675# If a cpu ever has more than one simulator to choose from, use
13676# --enable-sim=... to choose.
81ecdfbb
RW
13677# Check whether --enable-sim was given.
13678if test "${enable_sim+set}" = set; then :
13679 enableval=$enable_sim; case "${enableval}" in
c906108c 13680yes | no) ;;
d0ac1c44 13681*) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
c906108c 13682esac
81ecdfbb
RW
13683fi
13684
c906108c 13685
26da232c
MF
13686# Check whether --enable-example-sims was given.
13687if test "${enable_example_sims+set}" = set; then :
13688 enableval=$enable_example_sims;
13689fi
13690
13691
a0e674c1
MF
13692# Check whether --enable-targets was given.
13693if test "${enable_targets+set}" = set; then :
13694 enableval=$enable_targets; case "${enableval}" in
13695 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
13696 ;;
13697 no) enable_targets= ;;
13698 *) enable_targets=$enableval ;;
13699esac
13700fi
13701
13702
13703SIM_PRIMARY_TARGET=
13704
13705
36bb57e4
MF
13706SIM_SUBDIRS=
13707
13708
13709SIM_COMMON_BUILD_TRUE=
13710SIM_COMMON_BUILD_FALSE='#'
13711
13712
13713
13714ac_config_files="$ac_config_files Make-common.sim:common/Make-common.in"
13715
a0e674c1
MF
13716
13717
bc56166f 13718
119da465 13719if test "${enable_sim}" != no; then
3e8bb3e9 13720 sim_igen=no
a0e674c1
MF
13721 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
13722 do
bc56166f 13723 case "${targ}" in
a0e674c1
MF
13724 all|aarch64*-*-*)
13725 if test "${targ}" = "${target}"; then
13726 SIM_PRIMARY_TARGET=aarch64
13727 fi
36bb57e4 13728 ac_config_files="$ac_config_files aarch64/Makefile.sim:aarch64/Makefile.in"
2e8cf49e 13729
36bb57e4 13730 ac_config_commands="$ac_config_commands aarch64/Makefile"
2e8cf49e 13731
36bb57e4 13732 as_fn_append SIM_SUBDIRS " aarch64"
fdd6fa61 13733
bc56166f
MF
13734 ac_config_commands="$ac_config_commands depdir-aarch64"
13735
13736
a0e674c1 13737
3e8bb3e9 13738 ;;
a0e674c1
MF
13739 esac
13740
bc56166f 13741 case "${targ}" in
a0e674c1
MF
13742 all|arm*-*-*)
13743 if test "${targ}" = "${target}"; then
13744 SIM_PRIMARY_TARGET=arm
13745 fi
36bb57e4
MF
13746 ac_config_files="$ac_config_files arm/Makefile.sim:arm/Makefile.in"
13747
13748 ac_config_commands="$ac_config_commands arm/Makefile"
13749
13750 as_fn_append SIM_SUBDIRS " arm"
bc56166f
MF
13751
13752 ac_config_commands="$ac_config_commands depdir-arm"
13753
fdd6fa61 13754
a0e674c1 13755
3e8bb3e9 13756 ;;
a0e674c1
MF
13757 esac
13758
bc56166f 13759 case "${targ}" in
a0e674c1
MF
13760 all|avr*-*-*)
13761 if test "${targ}" = "${target}"; then
13762 SIM_PRIMARY_TARGET=avr
13763 fi
36bb57e4
MF
13764 ac_config_files="$ac_config_files avr/Makefile.sim:avr/Makefile.in"
13765
13766 ac_config_commands="$ac_config_commands avr/Makefile"
13767
13768 as_fn_append SIM_SUBDIRS " avr"
bc56166f
MF
13769
13770 ac_config_commands="$ac_config_commands depdir-avr"
13771
0cd79707 13772
a0e674c1 13773
3e8bb3e9 13774 ;;
a0e674c1
MF
13775 esac
13776
bc56166f 13777 case "${targ}" in
a0e674c1
MF
13778 all|bfin-*-*)
13779 if test "${targ}" = "${target}"; then
13780 SIM_PRIMARY_TARGET=bfin
13781 fi
d8b04da7 13782 ac_config_files="$ac_config_files bfin/Makefile.sim:bfin/Makefile.in"
36bb57e4 13783
d8b04da7 13784 ac_config_commands="$ac_config_commands bfin/Makefile"
36bb57e4 13785
d8b04da7 13786 as_fn_append SIM_SUBDIRS " bfin"
bc56166f
MF
13787
13788 ac_config_commands="$ac_config_commands depdir-bfin"
13789
ddd44b70 13790
a0e674c1 13791
3e8bb3e9 13792 ;;
a0e674c1
MF
13793 esac
13794
bc56166f 13795 case "${targ}" in
a0e674c1
MF
13796 all|bpf-*-*)
13797 if test "${targ}" = "${target}"; then
13798 SIM_PRIMARY_TARGET=bpf
13799 fi
d8b04da7
MF
13800
13801
13802subdirs="$subdirs bpf"
36bb57e4 13803
bc56166f
MF
13804
13805 ac_config_commands="$ac_config_commands depdir-bpf"
13806
ddd44b70 13807
a0e674c1 13808
3e8bb3e9 13809 ;;
a0e674c1
MF
13810 esac
13811
bc56166f 13812 case "${targ}" in
a0e674c1
MF
13813 all|cr16*-*-*)
13814 if test "${targ}" = "${target}"; then
13815 SIM_PRIMARY_TARGET=cr16
13816 fi
36bb57e4
MF
13817 ac_config_files="$ac_config_files cr16/Makefile.sim:cr16/Makefile.in"
13818
13819 ac_config_commands="$ac_config_commands cr16/Makefile"
13820
13821 as_fn_append SIM_SUBDIRS " cr16"
bc56166f
MF
13822
13823 ac_config_commands="$ac_config_commands depdir-cr16"
13824
ddd44b70 13825
a0e674c1 13826
3e8bb3e9 13827 ;;
a0e674c1
MF
13828 esac
13829
bc56166f 13830 case "${targ}" in
a0e674c1
MF
13831 all|cris-*-* | crisv32-*-*)
13832 if test "${targ}" = "${target}"; then
13833 SIM_PRIMARY_TARGET=cris
13834 fi
408a44aa 13835 ac_config_files="$ac_config_files cris/Makefile.sim:cris/Makefile.in"
36bb57e4 13836
408a44aa
MF
13837 ac_config_commands="$ac_config_commands cris/Makefile"
13838
13839 as_fn_append SIM_SUBDIRS " cris"
bc56166f
MF
13840
13841 ac_config_commands="$ac_config_commands depdir-cris"
13842
b9249c46 13843
a0e674c1 13844
3e8bb3e9 13845 ;;
a0e674c1
MF
13846 esac
13847
bc56166f 13848 case "${targ}" in
a0e674c1
MF
13849 all|d10v-*-*)
13850 if test "${targ}" = "${target}"; then
13851 SIM_PRIMARY_TARGET=d10v
13852 fi
36bb57e4
MF
13853 ac_config_files="$ac_config_files d10v/Makefile.sim:d10v/Makefile.in"
13854
13855 ac_config_commands="$ac_config_commands d10v/Makefile"
13856
13857 as_fn_append SIM_SUBDIRS " d10v"
bc56166f
MF
13858
13859 ac_config_commands="$ac_config_commands depdir-d10v"
13860
b9249c46 13861
a0e674c1 13862
3e8bb3e9 13863 ;;
a0e674c1
MF
13864 esac
13865
bc56166f 13866 case "${targ}" in
a0e674c1
MF
13867 all|frv-*-*)
13868 if test "${targ}" = "${target}"; then
13869 SIM_PRIMARY_TARGET=frv
13870 fi
408a44aa
MF
13871 ac_config_files="$ac_config_files frv/Makefile.sim:frv/Makefile.in"
13872
13873 ac_config_commands="$ac_config_commands frv/Makefile"
36bb57e4 13874
408a44aa 13875 as_fn_append SIM_SUBDIRS " frv"
bc56166f
MF
13876
13877 ac_config_commands="$ac_config_commands depdir-frv"
13878
b9249c46 13879
a0e674c1 13880
36bb57e4
MF
13881 ;;
13882 esac
13883
13884 case "${targ}" in
13885 all|ft32-*-*)
13886 if test "${targ}" = "${target}"; then
13887 SIM_PRIMARY_TARGET=ft32
13888 fi
13889 ac_config_files="$ac_config_files ft32/Makefile.sim:ft32/Makefile.in"
13890
13891 ac_config_commands="$ac_config_commands ft32/Makefile"
13892
13893 as_fn_append SIM_SUBDIRS " ft32"
13894
13895 ac_config_commands="$ac_config_commands depdir-ft32"
13896
13897
13898
3e8bb3e9 13899 ;;
a0e674c1
MF
13900 esac
13901
bc56166f 13902 case "${targ}" in
a0e674c1
MF
13903 all|h8300*-*-*)
13904 if test "${targ}" = "${target}"; then
13905 SIM_PRIMARY_TARGET=h8300
13906 fi
36bb57e4
MF
13907 ac_config_files="$ac_config_files h8300/Makefile.sim:h8300/Makefile.in"
13908
13909 ac_config_commands="$ac_config_commands h8300/Makefile"
13910
13911 as_fn_append SIM_SUBDIRS " h8300"
bc56166f
MF
13912
13913 ac_config_commands="$ac_config_commands depdir-h8300"
13914
119da465 13915
a0e674c1 13916
3e8bb3e9 13917 ;;
a0e674c1
MF
13918 esac
13919
bc56166f 13920 case "${targ}" in
a0e674c1
MF
13921 all|iq2000-*-*)
13922 if test "${targ}" = "${target}"; then
13923 SIM_PRIMARY_TARGET=iq2000
13924 fi
408a44aa 13925 ac_config_files="$ac_config_files iq2000/Makefile.sim:iq2000/Makefile.in"
36bb57e4 13926
408a44aa
MF
13927 ac_config_commands="$ac_config_commands iq2000/Makefile"
13928
13929 as_fn_append SIM_SUBDIRS " iq2000"
bc56166f
MF
13930
13931 ac_config_commands="$ac_config_commands depdir-iq2000"
13932
119da465 13933
a0e674c1 13934
3e8bb3e9 13935 ;;
a0e674c1
MF
13936 esac
13937
bc56166f 13938 case "${targ}" in
a0e674c1
MF
13939 all|lm32-*-*)
13940 if test "${targ}" = "${target}"; then
13941 SIM_PRIMARY_TARGET=lm32
13942 fi
408a44aa
MF
13943 ac_config_files="$ac_config_files lm32/Makefile.sim:lm32/Makefile.in"
13944
13945 ac_config_commands="$ac_config_commands lm32/Makefile"
36bb57e4 13946
408a44aa 13947 as_fn_append SIM_SUBDIRS " lm32"
bc56166f
MF
13948
13949 ac_config_commands="$ac_config_commands depdir-lm32"
13950
119da465 13951
a0e674c1 13952
3e8bb3e9 13953 ;;
a0e674c1
MF
13954 esac
13955
bc56166f 13956 case "${targ}" in
a0e674c1
MF
13957 all|m32c-*-*)
13958 if test "${targ}" = "${target}"; then
13959 SIM_PRIMARY_TARGET=m32c
13960 fi
36bb57e4
MF
13961 ac_config_files="$ac_config_files m32c/Makefile.sim:m32c/Makefile.in"
13962
13963 ac_config_commands="$ac_config_commands m32c/Makefile"
13964
13965 as_fn_append SIM_SUBDIRS " m32c"
bc56166f
MF
13966
13967 ac_config_commands="$ac_config_commands depdir-m32c"
13968
87326c78 13969
a0e674c1 13970
3e8bb3e9 13971 ;;
a0e674c1
MF
13972 esac
13973
bc56166f 13974 case "${targ}" in
a0e674c1
MF
13975 all|m32r-*-*)
13976 if test "${targ}" = "${target}"; then
13977 SIM_PRIMARY_TARGET=m32r
13978 fi
36bb57e4
MF
13979 subdirs="$subdirs m32r"
13980
bc56166f
MF
13981
13982 ac_config_commands="$ac_config_commands depdir-m32r"
13983
87326c78 13984
a0e674c1 13985
3e8bb3e9 13986 ;;
a0e674c1
MF
13987 esac
13988
bc56166f 13989 case "${targ}" in
a0e674c1
MF
13990 all|m68hc11-*-*|m6811-*-*)
13991 if test "${targ}" = "${target}"; then
13992 SIM_PRIMARY_TARGET=m68hc11
13993 fi
36bb57e4
MF
13994 ac_config_files="$ac_config_files m68hc11/Makefile.sim:m68hc11/Makefile.in"
13995
13996 ac_config_commands="$ac_config_commands m68hc11/Makefile"
13997
13998 as_fn_append SIM_SUBDIRS " m68hc11"
bc56166f
MF
13999
14000 ac_config_commands="$ac_config_commands depdir-m68hc11"
14001
87326c78 14002
a0e674c1 14003
3e8bb3e9 14004 ;;
a0e674c1
MF
14005 esac
14006
bc56166f 14007 case "${targ}" in
a0e674c1
MF
14008 all|mcore-*-*)
14009 if test "${targ}" = "${target}"; then
14010 SIM_PRIMARY_TARGET=mcore
14011 fi
36bb57e4
MF
14012 ac_config_files="$ac_config_files mcore/Makefile.sim:mcore/Makefile.in"
14013
14014 ac_config_commands="$ac_config_commands mcore/Makefile"
14015
14016 as_fn_append SIM_SUBDIRS " mcore"
bc56166f
MF
14017
14018 ac_config_commands="$ac_config_commands depdir-mcore"
14019
119da465 14020
a0e674c1 14021
3e8bb3e9 14022 ;;
a0e674c1
MF
14023 esac
14024
bc56166f 14025 case "${targ}" in
a0e674c1
MF
14026 all|microblaze-*-*)
14027 if test "${targ}" = "${target}"; then
14028 SIM_PRIMARY_TARGET=microblaze
14029 fi
36bb57e4
MF
14030 ac_config_files="$ac_config_files microblaze/Makefile.sim:microblaze/Makefile.in"
14031
14032 ac_config_commands="$ac_config_commands microblaze/Makefile"
14033
14034 as_fn_append SIM_SUBDIRS " microblaze"
bc56166f
MF
14035
14036 ac_config_commands="$ac_config_commands depdir-microblaze"
14037
119da465 14038
a0e674c1 14039
3e8bb3e9 14040 ;;
a0e674c1
MF
14041 esac
14042
bc56166f 14043 case "${targ}" in
a0e674c1
MF
14044 all|mips*-*-*)
14045 if test "${targ}" = "${target}"; then
14046 SIM_PRIMARY_TARGET=mips
14047 fi
36bb57e4
MF
14048 subdirs="$subdirs mips"
14049
bc56166f
MF
14050
14051 ac_config_commands="$ac_config_commands depdir-mips"
14052
119da465 14053
3e8bb3e9
MF
14054 sim_igen=yes
14055 ;;
a0e674c1
MF
14056 esac
14057
bc56166f 14058 case "${targ}" in
a0e674c1
MF
14059 all|mn10300*-*-*)
14060 if test "${targ}" = "${target}"; then
14061 SIM_PRIMARY_TARGET=mn10300
14062 fi
36bb57e4
MF
14063 subdirs="$subdirs mn10300"
14064
bc56166f
MF
14065
14066 ac_config_commands="$ac_config_commands depdir-mn10300"
14067
119da465 14068
3e8bb3e9
MF
14069 sim_igen=yes
14070 ;;
a0e674c1
MF
14071 esac
14072
bc56166f 14073 case "${targ}" in
a0e674c1
MF
14074 all|moxie-*-*)
14075 if test "${targ}" = "${target}"; then
14076 SIM_PRIMARY_TARGET=moxie
14077 fi
36bb57e4
MF
14078 ac_config_files="$ac_config_files moxie/Makefile.sim:moxie/Makefile.in"
14079
14080 ac_config_commands="$ac_config_commands moxie/Makefile"
14081
14082 as_fn_append SIM_SUBDIRS " moxie"
bc56166f
MF
14083
14084 ac_config_commands="$ac_config_commands depdir-moxie"
14085
119da465 14086
a0e674c1 14087
3e8bb3e9 14088 ;;
a0e674c1
MF
14089 esac
14090
bc56166f 14091 case "${targ}" in
a0e674c1
MF
14092 all|msp430*-*-*)
14093 if test "${targ}" = "${target}"; then
14094 SIM_PRIMARY_TARGET=msp430
14095 fi
36bb57e4
MF
14096 ac_config_files="$ac_config_files msp430/Makefile.sim:msp430/Makefile.in"
14097
14098 ac_config_commands="$ac_config_commands msp430/Makefile"
14099
14100 as_fn_append SIM_SUBDIRS " msp430"
bc56166f
MF
14101
14102 ac_config_commands="$ac_config_commands depdir-msp430"
14103
119da465 14104
a0e674c1 14105
3e8bb3e9 14106 ;;
a0e674c1
MF
14107 esac
14108
bc56166f 14109 case "${targ}" in
a0e674c1
MF
14110 all|or1k-*-* | or1knd-*-*)
14111 if test "${targ}" = "${target}"; then
14112 SIM_PRIMARY_TARGET=or1k
14113 fi
36bb57e4
MF
14114 subdirs="$subdirs or1k"
14115
bc56166f
MF
14116
14117 ac_config_commands="$ac_config_commands depdir-or1k"
14118
119da465 14119
a0e674c1 14120
3e8bb3e9 14121 ;;
a0e674c1
MF
14122 esac
14123
bc56166f 14124 case "${targ}" in
a0e674c1
MF
14125 all|pru*-*-*)
14126 if test "${targ}" = "${target}"; then
14127 SIM_PRIMARY_TARGET=pru
14128 fi
36bb57e4
MF
14129 ac_config_files="$ac_config_files pru/Makefile.sim:pru/Makefile.in"
14130
14131 ac_config_commands="$ac_config_commands pru/Makefile"
14132
14133 as_fn_append SIM_SUBDIRS " pru"
bc56166f
MF
14134
14135 ac_config_commands="$ac_config_commands depdir-pru"
14136
119da465 14137
a0e674c1 14138
3e8bb3e9 14139 ;;
a0e674c1
MF
14140 esac
14141
bc56166f 14142 case "${targ}" in
a0e674c1
MF
14143 all|riscv*-*-*)
14144 if test "${targ}" = "${target}"; then
14145 SIM_PRIMARY_TARGET=riscv
14146 fi
36bb57e4
MF
14147 subdirs="$subdirs riscv"
14148
bc56166f
MF
14149
14150 ac_config_commands="$ac_config_commands depdir-riscv"
14151
119da465 14152
a0e674c1 14153
3e8bb3e9 14154 ;;
a0e674c1
MF
14155 esac
14156
bc56166f 14157 case "${targ}" in
a0e674c1
MF
14158 all|rl78-*-*)
14159 if test "${targ}" = "${target}"; then
14160 SIM_PRIMARY_TARGET=rl78
14161 fi
36bb57e4
MF
14162 ac_config_files="$ac_config_files rl78/Makefile.sim:rl78/Makefile.in"
14163
14164 ac_config_commands="$ac_config_commands rl78/Makefile"
14165
14166 as_fn_append SIM_SUBDIRS " rl78"
bc56166f
MF
14167
14168 ac_config_commands="$ac_config_commands depdir-rl78"
14169
f46e4eb7 14170
a0e674c1 14171
3e8bb3e9 14172 ;;
a0e674c1
MF
14173 esac
14174
bc56166f 14175 case "${targ}" in
a0e674c1
MF
14176 all|rx-*-*)
14177 if test "${targ}" = "${target}"; then
14178 SIM_PRIMARY_TARGET=rx
14179 fi
e173c80f 14180 ac_config_files="$ac_config_files rx/Makefile.sim:rx/Makefile.in"
36bb57e4 14181
e173c80f
MF
14182 ac_config_commands="$ac_config_commands rx/Makefile"
14183
14184 as_fn_append SIM_SUBDIRS " rx"
bc56166f
MF
14185
14186 ac_config_commands="$ac_config_commands depdir-rx"
14187
f46e4eb7 14188
a0e674c1 14189
3e8bb3e9 14190 ;;
a0e674c1
MF
14191 esac
14192
bc56166f 14193 case "${targ}" in
a0e674c1
MF
14194 all|sh*-*-*)
14195 if test "${targ}" = "${target}"; then
14196 SIM_PRIMARY_TARGET=sh
14197 fi
36bb57e4
MF
14198 ac_config_files="$ac_config_files sh/Makefile.sim:sh/Makefile.in"
14199
14200 ac_config_commands="$ac_config_commands sh/Makefile"
14201
14202 as_fn_append SIM_SUBDIRS " sh"
bc56166f
MF
14203
14204 ac_config_commands="$ac_config_commands depdir-sh"
14205
f46e4eb7 14206
a0e674c1 14207
3e8bb3e9 14208 ;;
a0e674c1
MF
14209 esac
14210
bc56166f 14211 case "${targ}" in
a0e674c1
MF
14212 all|sparc-*-rtems*|sparc-*-elf*)
14213 if test "${targ}" = "${target}"; then
14214 SIM_PRIMARY_TARGET=erc32
14215 fi
5d0b3088
MF
14216 ac_config_files="$ac_config_files erc32/Makefile.sim:erc32/Makefile.in"
14217
14218 ac_config_commands="$ac_config_commands erc32/Makefile"
36bb57e4 14219
5d0b3088 14220 as_fn_append SIM_SUBDIRS " erc32"
bc56166f
MF
14221
14222 ac_config_commands="$ac_config_commands depdir-erc32"
14223
119da465 14224
a0e674c1 14225
3e8bb3e9 14226 ;;
a0e674c1
MF
14227 esac
14228
bc56166f 14229 case "${targ}" in
a0e674c1
MF
14230 all|powerpc*-*-*)
14231 if test "${targ}" = "${target}"; then
14232 SIM_PRIMARY_TARGET=ppc
14233 fi
36bb57e4 14234 subdirs="$subdirs ppc"
bc56166f 14235
bc56166f 14236
36bb57e4 14237 ac_config_commands="$ac_config_commands depdir-ppc"
bc56166f 14238
119da465 14239
a0e674c1 14240
3e8bb3e9 14241 ;;
a0e674c1
MF
14242 esac
14243
bc56166f 14244 case "${targ}" in
a0e674c1
MF
14245 all|v850*-*-*)
14246 if test "${targ}" = "${target}"; then
14247 SIM_PRIMARY_TARGET=v850
14248 fi
36bb57e4
MF
14249 subdirs="$subdirs v850"
14250
bc56166f
MF
14251
14252 ac_config_commands="$ac_config_commands depdir-v850"
14253
119da465 14254
3e8bb3e9
MF
14255 sim_igen=yes
14256 ;;
14257 esac
a0e674c1
MF
14258
14259 done
26da232c
MF
14260
14261 if test "x${enable_example_sims}" = xyes; then
36bb57e4
MF
14262 ac_config_files="$ac_config_files example-synacor/Makefile.sim:example-synacor/Makefile.in"
14263
14264 ac_config_commands="$ac_config_commands example-synacor/Makefile"
14265
14266 as_fn_append SIM_SUBDIRS " example-synacor"
bc56166f
MF
14267
14268 ac_config_commands="$ac_config_commands depdir-example-synacor"
14269
26da232c
MF
14270
14271 fi
b6b1c790
MF
14272fi
14273 if test "$sim_igen" = "yes"; then
14274 SIM_ENABLE_IGEN_TRUE=
14275 SIM_ENABLE_IGEN_FALSE='#'
14276else
14277 SIM_ENABLE_IGEN_TRUE='#'
14278 SIM_ENABLE_IGEN_FALSE=
c906108c
SS
14279fi
14280
b6b1c790 14281
ba307cdd
MF
14282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
14283$as_echo_n "checking whether to force sim alignment... " >&6; }
14284sim_alignment=
14285# Check whether --enable-sim-alignment was given.
14286if test "${enable_sim_alignment+set}" = set; then :
14287 enableval=$enable_sim_alignment; case "${enableval}" in
14288 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
14289 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
14290 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
14291 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
14292esac
14293fi
14294
14295cat >>confdefs.h <<_ACEOF
14296#define WITH_ALIGNMENT ${sim_alignment:-0}
14297_ACEOF
14298
14299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
14300$as_echo "${sim_alignment:-no}" >&6; }
14301
dba333c1
MF
14302
14303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
14304$as_echo_n "checking whether to enable sim asserts... " >&6; }
14305sim_assert="1"
14306# Check whether --enable-sim-assert was given.
14307if test "${enable_sim_assert+set}" = set; then :
14308 enableval=$enable_sim_assert; case "${enableval}" in
14309 yes) sim_assert="1";;
14310 no) sim_assert="0";;
14311 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
14312esac
14313fi
14314
14315cat >>confdefs.h <<_ACEOF
14316#define WITH_ASSERT $sim_assert
14317_ACEOF
14318
14319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
14320$as_echo "$sim_assert" >&6; }
14321
1bf5c342
MF
14322
14323cgen_maint=no
14324cgen=guile
14325cgendir='$(srcdir)/../../cgen'
14326# Check whether --enable-cgen-maint was given.
14327if test "${enable_cgen_maint+set}" = set; then :
14328 enableval=$enable_cgen_maint; case "${enableval}" in
14329 yes) cgen_maint=yes ;;
14330 no) cgen_maint=no ;;
14331 *)
14332 # Argument is a directory where cgen can be found. In some
14333 # future world cgen could be installable, but right now this
14334 # is not the case. Instead we assume the directory is a path
14335 # to the cgen source tree.
14336 cgen_maint=yes
14337 if test -r ${enableval}/iformat.scm; then
14338 # This looks like a cgen source tree.
14339 cgendir=${enableval}
14340 else
14341 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
14342 fi
14343 ;;
14344esac
14345fi
14346if test x${cgen_maint} != xno ; then
14347 CGEN_MAINT=''
14348else
14349 CGEN_MAINT='#'
14350fi
14351
14352
14353
14354
04381273
MF
14355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
14356$as_echo_n "checking for sim debug setting... " >&6; }
14357sim_debug="0"
14358# Check whether --enable-sim-debug was given.
14359if test "${enable_sim_debug+set}" = set; then :
14360 enableval=$enable_sim_debug; case "${enableval}" in
14361 yes) sim_debug="7";;
14362 no) sim_debug="0";;
14363 *) sim_debug="($enableval)";;
14364esac
14365fi
14366if test "$sim_debug" != "0"; then
14367
14368cat >>confdefs.h <<_ACEOF
14369#define DEBUG $sim_debug
14370_ACEOF
14371
14372fi
14373
14374cat >>confdefs.h <<_ACEOF
14375#define WITH_DEBUG $sim_debug
14376_ACEOF
14377
14378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
14379$as_echo "$sim_debug" >&6; }
f9a4d543
MF
14380
14381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
14382$as_echo_n "checking whether to force sim endianness... " >&6; }
14383sim_endian=
14384# Check whether --enable-sim-endian was given.
14385if test "${enable_sim_endian+set}" = set; then :
14386 enableval=$enable_sim_endian; case "${enableval}" in
14387 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
14388 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
14389 yes | no) ;;
14390 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
14391esac
14392fi
14393
14394cat >>confdefs.h <<_ACEOF
14395#define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
14396_ACEOF
14397
14398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
14399$as_echo "${sim_alignment:-no}" >&6; }
04381273 14400
dba333c1 14401
5ea45474
MF
14402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
14403$as_echo_n "checking default sim environment setting... " >&6; }
14404sim_environment="ALL_ENVIRONMENT"
14405# Check whether --enable-sim-environment was given.
14406if test "${enable_sim_environment+set}" = set; then :
14407 enableval=$enable_sim_environment; case "${enableval}" in
14408 all | ALL) sim_environment="ALL_ENVIRONMENT";;
14409 user | USER) sim_environment="USER_ENVIRONMENT";;
14410 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
14411 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
14412 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
14413esac
14414fi
14415
14416cat >>confdefs.h <<_ACEOF
14417#define WITH_ENVIRONMENT $sim_environment
14418_ACEOF
14419
14420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
14421$as_echo "$sim_environment" >&6; }
14422
456ef1c1
MF
14423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
14424$as_echo_n "checking for sim hardware settings... " >&6; }
14425# Check whether --enable-sim-hardware was given.
14426if test "${enable_sim_hardware+set}" = set; then :
14427 enableval=$enable_sim_hardware;
14428else
14429 enable_sim_hardware="yes"
14430fi
14431
14432sim_hw_sockser=
14433if test "$enable_sim_hardware" = no; then
14434 sim_hw_cflags="-DWITH_HW=0"
14435elif test "$enable_sim_hardware" = yes; then
14436 sim_hw_cflags="-DWITH_HW=1"
14437 # mingw does not support sockser
14438 case ${host} in
14439 *mingw*) ;;
14440 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
14441 # that you instatiate. Instead, other code will call into it directly.
14442 # At some point, we should convert it over.
14443 sim_hw_sockser="dv-sockser.o"
14444 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
14445 ;;
14446 esac
14447else
14448 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
14449fi
14450 if test "$enable_sim_hardware" = "yes"; then
14451 SIM_ENABLE_HW_TRUE=
14452 SIM_ENABLE_HW_FALSE='#'
14453else
14454 SIM_ENABLE_HW_TRUE='#'
14455 SIM_ENABLE_HW_FALSE=
14456fi
14457
14458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
14459$as_echo "${enable_sim_hardware}" >&6; }
14460
14461
14462
d73f39ee
MF
14463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
14464$as_echo_n "checking sim inline settings... " >&6; }
14465sim_inline="-DDEFAULT_INLINE=0"
14466# Check whether --enable-sim-inline was given.
14467if test "${enable_sim_inline+set}" = set; then :
14468 enableval=$enable_sim_inline; sim_inline=""
14469case "$enableval" in
14470 no) sim_inline="-DDEFAULT_INLINE=0";;
14471 0) sim_inline="-DDEFAULT_INLINE=0";;
14472 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
14473 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
14474 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14475 new_flag=""
14476 case "$x" in
14477 *_INLINE=*) new_flag="-D$x";;
14478 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
14479 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
14480 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
14481 esac
14482 if test x"$sim_inline" = x""; then
14483 sim_inline="$new_flag"
14484 else
14485 sim_inline="$sim_inline $new_flag"
14486 fi
14487 done;;
14488esac
14489
14490fi
14491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
14492$as_echo "$sim_inline" >&6; }
14493SIM_INLINE=$sim_inline
14494
14495
04381273
MF
14496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
14497$as_echo_n "checking for sim profile settings... " >&6; }
14498profile="1"
14499sim_profile="-1"
14500# Check whether --enable-sim-profile was given.
14501if test "${enable_sim_profile+set}" = set; then :
14502 enableval=$enable_sim_profile; case "${enableval}" in
14503 yes) profile="1" sim_profile="-1";;
14504 no) profile="0" sim_profile="0";;
14505 [-0-9]*)
14506 profile="(${enableval})" sim_profile="(${enableval})";;
14507 [a-z]*)
14508 profile="1"
14509 sim_profile=""
14510 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14511 if test x"$sim_profile" = x; then
14512 sim_profile="(PROFILE_$x"
14513 else
14514 sim_profile="${sim_profile}|PROFILE_$x"
14515 fi
14516 done
14517 sim_profile="$sim_profile)" ;;
14518esac
14519fi
14520
14521cat >>confdefs.h <<_ACEOF
14522#define PROFILE $profile
14523_ACEOF
14524
14525
14526cat >>confdefs.h <<_ACEOF
14527#define WITH_PROFILE $sim_profile
14528_ACEOF
14529
14530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
14531$as_echo "$sim_profile" >&6; }
14532
b79efe26
MF
14533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
14534$as_echo_n "checking for sim cache size... " >&6; }
14535sim_scache="16384"
14536# Check whether --enable-sim-scache was given.
14537if test "${enable_sim_scache+set}" = set; then :
14538 enableval=$enable_sim_scache; case "${enableval}" in
14539 yes) ;;
14540 no) sim_scache="0";;
14541 [0-9]*) sim_scache="${enableval}";;
14542 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
14543esac
14544fi
14545
14546
14547cat >>confdefs.h <<_ACEOF
14548#define WITH_SCACHE $sim_scache
14549_ACEOF
14550
14551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
14552$as_echo "$sim_scache" >&6; }
14553
04381273
MF
14554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
14555$as_echo_n "checking for sim stdio debug behavior... " >&6; }
14556sim_stdio="0"
14557# Check whether --enable-sim-stdio was given.
14558if test "${enable_sim_stdio+set}" = set; then :
14559 enableval=$enable_sim_stdio; case "${enableval}" in
14560 yes) sim_stdio="DO_USE_STDIO";;
14561 no) sim_stdio="DONT_USE_STDIO";;
14562 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
14563esac
14564fi
14565
14566cat >>confdefs.h <<_ACEOF
14567#define WITH_STDIO $sim_stdio
14568_ACEOF
14569
14570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
14571$as_echo "$sim_stdio" >&6; }
14572
14573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
14574$as_echo_n "checking for sim trace settings... " >&6; }
14575sim_trace="~TRACE_debug"
14576# Check whether --enable-sim-trace was given.
14577if test "${enable_sim_trace+set}" = set; then :
14578 enableval=$enable_sim_trace; case "${enableval}" in
14579 yes) sim_trace="-1";;
14580 no) sim_trace="0";;
14581 [-0-9]*)
14582 sim_trace="'(${enableval})'";;
14583 [[:lower:]]*)
14584 sim_trace=""
14585 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14586 if test x"$sim_trace" = x; then
14587 sim_trace="(TRACE_$x"
14588 else
14589 sim_trace="${sim_trace}|TRACE_$x"
14590 fi
14591 done
14592 sim_trace="$sim_trace)" ;;
14593esac
14594fi
14595
14596cat >>confdefs.h <<_ACEOF
14597#define WITH_TRACE $sim_trace
14598_ACEOF
14599
14600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
14601$as_echo "$sim_trace" >&6; }
14602
5ea45474 14603
47ce766a
MF
14604# Check whether --enable-werror was given.
14605if test "${enable_werror+set}" = set; then :
14606 enableval=$enable_werror; case "${enableval}" in
14607 yes | y) ERROR_ON_WARNING="yes" ;;
14608 no | n) ERROR_ON_WARNING="no" ;;
14609 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14610 esac
14611fi
14612
14613
14614if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14615 ERROR_ON_WARNING=yes
14616fi
14617
14618WERROR_CFLAGS=""
14619if test "${ERROR_ON_WARNING}" = yes ; then
14620 WERROR_CFLAGS="-Werror"
14621fi
14622
7f6fa743
MF
14623build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith
14624-Wno-unused -Wunused-value -Wunused-function
14625-Wno-switch -Wno-char-subscripts
14626-Wempty-body -Wunused-but-set-parameter
3167423f 14627-Wno-error=maybe-uninitialized
7f6fa743
MF
14628-Wmissing-declarations
14629-Wmissing-prototypes
14630-Wdeclaration-after-statement -Wmissing-parameter-type
14631-Wpointer-sign
14632-Wold-style-declaration -Wold-style-definition
14633"
47ce766a
MF
14634
14635# Enable -Wno-format by default when using gcc on mingw since many
14636# GCC versions complain about %I64.
14637case "${host}" in
14638 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14639 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
14640esac
14641
14642# Check whether --enable-build-warnings was given.
14643if test "${enable_build_warnings+set}" = set; then :
14644 enableval=$enable_build_warnings; case "${enableval}" in
14645 yes) ;;
14646 no) build_warnings="-w";;
14647 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14648 build_warnings="${build_warnings} ${t}";;
14649 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14650 build_warnings="${t} ${build_warnings}";;
14651 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14652esac
14653if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14654 echo "Setting compiler warning flags = $build_warnings" 6>&1
14655fi
14656fi
14657# Check whether --enable-sim-build-warnings was given.
14658if test "${enable_sim_build_warnings+set}" = set; then :
14659 enableval=$enable_sim_build_warnings; case "${enableval}" in
14660 yes) ;;
14661 no) build_warnings="-w";;
14662 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14663 build_warnings="${build_warnings} ${t}";;
14664 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14665 build_warnings="${t} ${build_warnings}";;
14666 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14667esac
14668if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14669 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14670fi
14671fi
14672WARN_CFLAGS=""
14673if test "x${build_warnings}" != x -a "x$GCC" = xyes
14674then
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14676$as_echo_n "checking compiler warning flags... " >&6; }
14677 # Separate out the -Werror flag as some files just cannot be
14678 # compiled with it enabled.
14679 for w in ${build_warnings}; do
14680 case $w in
14681 -Werr*) WERROR_CFLAGS=-Werror ;;
14682 *) # Check that GCC accepts it
14683 saved_CFLAGS="$CFLAGS"
14684 CFLAGS="$CFLAGS -Werror $w"
14685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686/* end confdefs.h. */
14687
14688int
14689main ()
14690{
14691
14692 ;
14693 return 0;
14694}
14695_ACEOF
14696if ac_fn_c_try_compile "$LINENO"; then :
14697 WARN_CFLAGS="${WARN_CFLAGS} $w"
14698fi
14699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14700 CFLAGS="$saved_CFLAGS"
14701 esac
14702 done
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14704$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14705fi
14706
14707
36bb57e4
MF
14708
14709
14710
14711
408a44aa
MF
14712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
14713$as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
14714# Check whether --enable-sim-frv-trapdump was given.
14715if test "${enable_sim_frv_trapdump+set}" = set; then :
14716 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
14717yes|no) ;;
14718*) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
14719esac
14720fi
14721
14722if test "x${enable_sim_frv_trapdump}" != xno; then
14723 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14725$as_echo "yes" >&6; }
14726else
14727 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14729$as_echo "no" >&6; }
14730fi
14731
14732
e173c80f
MF
14733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
14734$as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
14735# Check whether --enable-sim-rx-cycle-accurate was given.
14736if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
14737 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
14738yes | no) ;;
14739*) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
14740esac
14741fi
14742
14743if test "x${enable_sim_rx_cycle_accurate}" != xno; then
14744 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14746$as_echo "yes" >&6; }
14747else
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749$as_echo "no" >&6; }
14750fi
14751
14752
14753
3f8414df 14754ac_config_files="$ac_config_files arch-subdir.mk Makefile"
81ecdfbb 14755
b7026657 14756cat >confcache <<\_ACEOF
c906108c
SS
14757# This file is a shell script that caches the results of configure
14758# tests run on this system so they can be shared between configure
b7026657
AC
14759# scripts and configure runs, see configure's option --config-cache.
14760# It is not useful on other systems. If it contains results you don't
14761# want to keep, you may remove or edit it.
c906108c 14762#
b7026657
AC
14763# config.status only pays attention to the cache file if you give it
14764# the --recheck option to rerun configure.
c906108c 14765#
b7026657
AC
14766# `ac_cv_env_foo' variables (set or unset) will be overridden when
14767# loading this file, other *unset* `ac_cv_foo' will be assigned the
14768# following values.
14769
14770_ACEOF
14771
c906108c
SS
14772# The following way of writing the cache mishandles newlines in values,
14773# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14774# So, we kill variables containing newlines.
c906108c
SS
14775# Ultrix sh set writes to stderr and can't be redirected directly,
14776# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14777(
14778 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14779 eval ac_val=\$$ac_var
14780 case $ac_val in #(
14781 *${as_nl}*)
14782 case $ac_var in #(
14783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14784$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14785 esac
14786 case $ac_var in #(
14787 _ | IFS | as_nl) ;; #(
14788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14789 *) { eval $ac_var=; unset $ac_var;} ;;
14790 esac ;;
14791 esac
14792 done
14793
b7026657 14794 (set) 2>&1 |
81ecdfbb
RW
14795 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14796 *${as_nl}ac_space=\ *)
14797 # `set' does not quote correctly, so add quotes: double-quote
14798 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
14799 sed -n \
14800 "s/'/'\\\\''/g;
14801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14802 ;; #(
b7026657
AC
14803 *)
14804 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 14806 ;;
81ecdfbb
RW
14807 esac |
14808 sort
14809) |
b7026657 14810 sed '
81ecdfbb 14811 /^ac_cv_env_/b end
b7026657 14812 t clear
81ecdfbb 14813 :clear
b7026657
AC
14814 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14815 t end
81ecdfbb
RW
14816 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14817 :end' >>confcache
14818if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14819 if test -w "$cache_file"; then
d0ac1c44 14820 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14822$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
14823 if test ! -f "$cache_file" || test -h "$cache_file"; then
14824 cat confcache >"$cache_file"
14825 else
14826 case $cache_file in #(
14827 */* | ?:*)
14828 mv -f confcache "$cache_file"$$ &&
14829 mv -f "$cache_file"$$ "$cache_file" ;; #(
14830 *)
14831 mv -f confcache "$cache_file" ;;
14832 esac
14833 fi
14834 fi
c906108c 14835 else
81ecdfbb
RW
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14837$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
14838 fi
14839fi
14840rm -f confcache
14841
c906108c
SS
14842test "x$prefix" = xNONE && prefix=$ac_default_prefix
14843# Let make expand exec_prefix.
14844test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14845
b15c5d7a 14846DEFS=-DHAVE_CONFIG_H
b7026657
AC
14847
14848ac_libobjs=
14849ac_ltlibobjs=
d0ac1c44 14850U=
b7026657
AC
14851for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14852 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14853 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14854 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14855 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14856 # will be set to the directory where LIBOBJS objects are built.
14857 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14858 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
14859done
14860LIBOBJS=$ac_libobjs
c906108c 14861
b7026657
AC
14862LTLIBOBJS=$ac_ltlibobjs
14863
14864
c2783492 14865
b5689863
MF
14866if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
14867 as_fn_error $? "conditional \"PLUGINS\" was never defined.
14868Usually this means the macro was only invoked conditionally." "$LINENO" 5
14869fi
8c379db2
TT
14870if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14871 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14872Usually this means the macro was only invoked conditionally." "$LINENO" 5
14873fi
6bddc3e8
MF
14874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14875$as_echo_n "checking that generated files are newer than configure... " >&6; }
14876 if test -n "$am_sleep_pid"; then
14877 # Hide warnings about reused PIDs.
14878 wait $am_sleep_pid 2>/dev/null
14879 fi
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14881$as_echo "done" >&6; }
6bddc3e8
MF
14882if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14883 as_fn_error $? "conditional \"AMDEP\" was never defined.
14884Usually this means the macro was only invoked conditionally." "$LINENO" 5
14885fi
14886if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14887 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14888Usually this means the macro was only invoked conditionally." "$LINENO" 5
14889fi
c2783492
MF
14890 if test -n "$EXEEXT"; then
14891 am__EXEEXT_TRUE=
14892 am__EXEEXT_FALSE='#'
14893else
14894 am__EXEEXT_TRUE='#'
14895 am__EXEEXT_FALSE=
6bddc3e8 14896fi
b7026657 14897
b6b1c790
MF
14898if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
14899 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
14900Usually this means the macro was only invoked conditionally." "$LINENO" 5
14901fi
456ef1c1
MF
14902if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
14903 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
14904Usually this means the macro was only invoked conditionally." "$LINENO" 5
14905fi
c2783492 14906
d0ac1c44 14907: "${CONFIG_STATUS=./config.status}"
81ecdfbb 14908ac_write_fail=0
b7026657
AC
14909ac_clean_files_save=$ac_clean_files
14910ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14911{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14912$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14913as_write_fail=0
14914cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
14915#! $SHELL
14916# Generated by $as_me.
c906108c 14917# Run this file to recreate the current configuration.
c906108c 14918# Compiler output produced by configure, useful for debugging
b7026657
AC
14919# configure, is in config.log if it exists.
14920
14921debug=false
14922ac_cs_recheck=false
14923ac_cs_silent=false
b7026657 14924
81ecdfbb
RW
14925SHELL=\${CONFIG_SHELL-$SHELL}
14926export SHELL
14927_ASEOF
14928cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14929## -------------------- ##
14930## M4sh Initialization. ##
14931## -------------------- ##
14932
14933# Be more Bourne compatible
14934DUALCASE=1; export DUALCASE # for MKS sh
14935if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
14936 emulate sh
14937 NULLCMD=:
81ecdfbb 14938 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
14939 # is contrary to our usage. Disable this feature.
14940 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14941 setopt NO_GLOB_SUBST
14942else
14943 case `(set -o) 2>/dev/null` in #(
14944 *posix*) :
14945 set -o posix ;; #(
14946 *) :
14947 ;;
14948esac
b7026657 14949fi
c906108c 14950
81ecdfbb
RW
14951
14952as_nl='
14953'
14954export as_nl
14955# Printing a long string crashes Solaris 7 /usr/bin/printf.
14956as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14957as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14958as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14959# Prefer a ksh shell builtin over an external printf program on Solaris,
14960# but without wasting forks for bash or zsh.
14961if test -z "$BASH_VERSION$ZSH_VERSION" \
14962 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14963 as_echo='print -r --'
14964 as_echo_n='print -rn --'
14965elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14966 as_echo='printf %s\n'
14967 as_echo_n='printf %s'
b7026657 14968else
81ecdfbb
RW
14969 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14970 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14971 as_echo_n='/usr/ucb/echo -n'
14972 else
14973 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14974 as_echo_n_body='eval
14975 arg=$1;
14976 case $arg in #(
14977 *"$as_nl"*)
14978 expr "X$arg" : "X\\(.*\\)$as_nl";
14979 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14980 esac;
14981 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14982 '
14983 export as_echo_n_body
14984 as_echo_n='sh -c $as_echo_n_body as_echo'
14985 fi
14986 export as_echo_body
14987 as_echo='sh -c $as_echo_body as_echo'
14988fi
14989
14990# The user is always right.
14991if test "${PATH_SEPARATOR+set}" != set; then
14992 PATH_SEPARATOR=:
14993 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14994 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14995 PATH_SEPARATOR=';'
14996 }
b7026657
AC
14997fi
14998
14999
81ecdfbb
RW
15000# IFS
15001# We need space, tab and new line, in precisely that order. Quoting is
15002# there to prevent editors from complaining about space-tab.
15003# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15004# splitting by setting IFS to empty value.)
15005IFS=" "" $as_nl"
15006
15007# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 15008as_myself=
81ecdfbb
RW
15009case $0 in #((
15010 *[\\/]* ) as_myself=$0 ;;
15011 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15012for as_dir in $PATH
15013do
15014 IFS=$as_save_IFS
15015 test -z "$as_dir" && as_dir=.
15016 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15017 done
15018IFS=$as_save_IFS
15019
15020 ;;
15021esac
15022# We did not find ourselves, most probably we were run as `sh COMMAND'
15023# in which case we are not to be found in the path.
15024if test "x$as_myself" = x; then
15025 as_myself=$0
15026fi
15027if test ! -f "$as_myself"; then
15028 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15029 exit 1
15030fi
15031
15032# Unset variables that we do not need and which cause bugs (e.g. in
15033# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15034# suppresses any "Segmentation fault" message there. '((' could
15035# trigger a bug in pdksh 5.2.14.
15036for as_var in BASH_ENV ENV MAIL MAILPATH
15037do eval test x\${$as_var+set} = xset \
15038 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15039done
b7026657
AC
15040PS1='$ '
15041PS2='> '
15042PS4='+ '
15043
15044# NLS nuisances.
81ecdfbb
RW
15045LC_ALL=C
15046export LC_ALL
15047LANGUAGE=C
15048export LANGUAGE
15049
15050# CDPATH.
15051(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15052
15053
d0ac1c44
SM
15054# as_fn_error STATUS ERROR [LINENO LOG_FD]
15055# ----------------------------------------
81ecdfbb
RW
15056# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15057# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 15058# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
15059as_fn_error ()
15060{
d0ac1c44
SM
15061 as_status=$1; test $as_status -eq 0 && as_status=1
15062 if test "$4"; then
15063 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15064 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 15065 fi
d0ac1c44 15066 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
15067 as_fn_exit $as_status
15068} # as_fn_error
c906108c 15069
81ecdfbb
RW
15070
15071# as_fn_set_status STATUS
15072# -----------------------
15073# Set $? to STATUS, without forking.
15074as_fn_set_status ()
15075{
15076 return $1
15077} # as_fn_set_status
15078
15079# as_fn_exit STATUS
15080# -----------------
15081# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15082as_fn_exit ()
15083{
15084 set +e
15085 as_fn_set_status $1
15086 exit $1
15087} # as_fn_exit
15088
15089# as_fn_unset VAR
15090# ---------------
15091# Portably unset VAR.
15092as_fn_unset ()
15093{
15094 { eval $1=; unset $1;}
15095}
15096as_unset=as_fn_unset
15097# as_fn_append VAR VALUE
15098# ----------------------
15099# Append the text in VALUE to the end of the definition contained in VAR. Take
15100# advantage of any shell optimizations that allow amortized linear growth over
15101# repeated appends, instead of the typical quadratic growth present in naive
15102# implementations.
15103if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15104 eval 'as_fn_append ()
15105 {
15106 eval $1+=\$2
15107 }'
15108else
15109 as_fn_append ()
15110 {
15111 eval $1=\$$1\$2
15112 }
15113fi # as_fn_append
15114
15115# as_fn_arith ARG...
15116# ------------------
15117# Perform arithmetic evaluation on the ARGs, and store the result in the
15118# global $as_val. Take advantage of shells that can avoid forks. The arguments
15119# must be portable across $(()) and expr.
15120if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15121 eval 'as_fn_arith ()
15122 {
15123 as_val=$(( $* ))
15124 }'
15125else
15126 as_fn_arith ()
15127 {
15128 as_val=`expr "$@" || test $? -eq 1`
15129 }
15130fi # as_fn_arith
15131
15132
15133if expr a : '\(a\)' >/dev/null 2>&1 &&
15134 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
15135 as_expr=expr
15136else
15137 as_expr=false
15138fi
c906108c 15139
81ecdfbb 15140if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
15141 as_basename=basename
15142else
15143 as_basename=false
15144fi
c906108c 15145
81ecdfbb
RW
15146if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15147 as_dirname=dirname
15148else
15149 as_dirname=false
15150fi
c906108c 15151
81ecdfbb 15152as_me=`$as_basename -- "$0" ||
b7026657
AC
15153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15154 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15156$as_echo X/"$0" |
15157 sed '/^.*\/\([^/][^/]*\)\/*$/{
15158 s//\1/
15159 q
15160 }
15161 /^X\/\(\/\/\)$/{
15162 s//\1/
15163 q
15164 }
15165 /^X\/\(\/\).*/{
15166 s//\1/
15167 q
15168 }
15169 s/.*/./; q'`
b7026657 15170
fdd6fa61
AG
15171# Avoid depending upon Character Ranges.
15172as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15173as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15174as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15175as_cr_digits='0123456789'
15176as_cr_alnum=$as_cr_Letters$as_cr_digits
15177
81ecdfbb
RW
15178ECHO_C= ECHO_N= ECHO_T=
15179case `echo -n x` in #(((((
15180-n*)
15181 case `echo 'xy\c'` in
15182 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15183 xy) ECHO_C='\c';;
15184 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15185 ECHO_T=' ';;
15186 esac;;
15187*)
15188 ECHO_N='-n';;
b7026657
AC
15189esac
15190
81ecdfbb
RW
15191rm -f conf$$ conf$$.exe conf$$.file
15192if test -d conf$$.dir; then
15193 rm -f conf$$.dir/conf$$.file
b7026657 15194else
81ecdfbb
RW
15195 rm -f conf$$.dir
15196 mkdir conf$$.dir 2>/dev/null
b7026657 15197fi
81ecdfbb
RW
15198if (echo >conf$$.file) 2>/dev/null; then
15199 if ln -s conf$$.file conf$$ 2>/dev/null; then
fdd6fa61 15200 as_ln_s='ln -s'
81ecdfbb
RW
15201 # ... but there are two gotchas:
15202 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15203 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 15204 # In both cases, we have to default to `cp -pR'.
81ecdfbb 15205 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15206 as_ln_s='cp -pR'
81ecdfbb
RW
15207 elif ln conf$$.file conf$$ 2>/dev/null; then
15208 as_ln_s=ln
15209 else
d0ac1c44 15210 as_ln_s='cp -pR'
fdd6fa61 15211 fi
b7026657 15212else
d0ac1c44 15213 as_ln_s='cp -pR'
b7026657 15214fi
81ecdfbb
RW
15215rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15216rmdir conf$$.dir 2>/dev/null
15217
15218
15219# as_fn_mkdir_p
15220# -------------
15221# Create "$as_dir" as a directory, including parents if necessary.
15222as_fn_mkdir_p ()
15223{
b7026657 15224
81ecdfbb
RW
15225 case $as_dir in #(
15226 -*) as_dir=./$as_dir;;
15227 esac
15228 test -d "$as_dir" || eval $as_mkdir_p || {
15229 as_dirs=
15230 while :; do
15231 case $as_dir in #(
15232 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15233 *) as_qdir=$as_dir;;
15234 esac
15235 as_dirs="'$as_qdir' $as_dirs"
15236 as_dir=`$as_dirname -- "$as_dir" ||
15237$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15238 X"$as_dir" : 'X\(//\)[^/]' \| \
15239 X"$as_dir" : 'X\(//\)$' \| \
15240 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15241$as_echo X"$as_dir" |
15242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15243 s//\1/
15244 q
15245 }
15246 /^X\(\/\/\)[^/].*/{
15247 s//\1/
15248 q
15249 }
15250 /^X\(\/\/\)$/{
15251 s//\1/
15252 q
15253 }
15254 /^X\(\/\).*/{
15255 s//\1/
15256 q
15257 }
15258 s/.*/./; q'`
15259 test -d "$as_dir" && break
15260 done
15261 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15262 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
15263
15264
15265} # as_fn_mkdir_p
b7026657 15266if mkdir -p . 2>/dev/null; then
81ecdfbb 15267 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
15268else
15269 test -d ./-p && rmdir ./-p
15270 as_mkdir_p=false
15271fi
15272
d0ac1c44
SM
15273
15274# as_fn_executable_p FILE
15275# -----------------------
15276# Test if FILE is an executable regular file.
15277as_fn_executable_p ()
15278{
15279 test -f "$1" && test -x "$1"
15280} # as_fn_executable_p
15281as_test_x='test -x'
15282as_executable_p=as_fn_executable_p
b7026657
AC
15283
15284# Sed expression to map a string onto a valid CPP name.
15285as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15286
15287# Sed expression to map a string onto a valid variable name.
15288as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15289
15290
b7026657 15291exec 6>&1
81ecdfbb
RW
15292## ----------------------------------- ##
15293## Main body of $CONFIG_STATUS script. ##
15294## ----------------------------------- ##
15295_ASEOF
15296test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15297
15298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15299# Save the log message, to keep $0 and so on meaningful, and to
b7026657 15300# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15301# values after options handling.
15302ac_log="
6bddc3e8 15303This file was extended by sim $as_me 0, which was
d0ac1c44 15304generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
15305
15306 CONFIG_FILES = $CONFIG_FILES
15307 CONFIG_HEADERS = $CONFIG_HEADERS
15308 CONFIG_LINKS = $CONFIG_LINKS
15309 CONFIG_COMMANDS = $CONFIG_COMMANDS
15310 $ $0 $@
15311
81ecdfbb
RW
15312on `(hostname || uname -n) 2>/dev/null | sed 1q`
15313"
15314
b7026657
AC
15315_ACEOF
15316
81ecdfbb
RW
15317case $ac_config_files in *"
15318"*) set x $ac_config_files; shift; ac_config_files=$*;;
15319esac
b7026657 15320
b15c5d7a
MF
15321case $ac_config_headers in *"
15322"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15323esac
fdd6fa61 15324
fdd6fa61 15325
81ecdfbb
RW
15326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15327# Files that config.status was made for.
15328config_files="$ac_config_files"
b15c5d7a 15329config_headers="$ac_config_headers"
6bddc3e8 15330config_commands="$ac_config_commands"
b7026657 15331
81ecdfbb 15332_ACEOF
fdd6fa61 15333
81ecdfbb 15334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 15335ac_cs_usage="\
81ecdfbb
RW
15336\`$as_me' instantiates files and other configuration actions
15337from templates according to the current configuration. Unless the files
15338and actions are specified as TAGs, all are instantiated by default.
b7026657 15339
81ecdfbb 15340Usage: $0 [OPTION]... [TAG]...
b7026657
AC
15341
15342 -h, --help print this help, then exit
81ecdfbb 15343 -V, --version print version number and configuration settings, then exit
d0ac1c44 15344 --config print configuration, then exit
81ecdfbb
RW
15345 -q, --quiet, --silent
15346 do not print progress messages
b7026657
AC
15347 -d, --debug don't remove temporary files
15348 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15349 --file=FILE[:TEMPLATE]
15350 instantiate the configuration file FILE
b15c5d7a
MF
15351 --header=FILE[:TEMPLATE]
15352 instantiate the configuration header FILE
b7026657
AC
15353
15354Configuration files:
15355$config_files
15356
b15c5d7a
MF
15357Configuration headers:
15358$config_headers
15359
6bddc3e8
MF
15360Configuration commands:
15361$config_commands
15362
15363Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
15364sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
fdd6fa61 15365
81ecdfbb
RW
15366_ACEOF
15367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15368ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657 15369ac_cs_version="\\
6bddc3e8 15370sim config.status 0
d0ac1c44
SM
15371configured by $0, generated by GNU Autoconf 2.69,
15372 with options \\"\$ac_cs_config\\"
b7026657 15373
d0ac1c44 15374Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
15375This config.status script is free software; the Free Software Foundation
15376gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15377
15378ac_pwd='$ac_pwd'
15379srcdir='$srcdir'
15380INSTALL='$INSTALL'
6bddc3e8
MF
15381MKDIR_P='$MKDIR_P'
15382AWK='$AWK'
81ecdfbb 15383test -n "\$AWK" || AWK=awk
b7026657
AC
15384_ACEOF
15385
81ecdfbb
RW
15386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15387# The default lists apply if the user does not specify any file.
b7026657
AC
15388ac_need_defaults=:
15389while test $# != 0
15390do
15391 case $1 in
d0ac1c44 15392 --*=?*)
81ecdfbb
RW
15393 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15394 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
15395 ac_shift=:
15396 ;;
d0ac1c44
SM
15397 --*=)
15398 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15399 ac_optarg=
15400 ac_shift=:
15401 ;;
81ecdfbb 15402 *)
b7026657
AC
15403 ac_option=$1
15404 ac_optarg=$2
15405 ac_shift=shift
15406 ;;
b7026657
AC
15407 esac
15408
15409 case $ac_option in
15410 # Handling of the options.
b7026657
AC
15411 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15412 ac_cs_recheck=: ;;
81ecdfbb
RW
15413 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15414 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15415 --config | --confi | --conf | --con | --co | --c )
15416 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15417 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
15418 debug=: ;;
15419 --file | --fil | --fi | --f )
15420 $ac_shift
81ecdfbb
RW
15421 case $ac_optarg in
15422 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15423 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15424 esac
15425 as_fn_append CONFIG_FILES " '$ac_optarg'"
fdd6fa61 15426 ac_need_defaults=false;;
b15c5d7a
MF
15427 --header | --heade | --head | --hea )
15428 $ac_shift
15429 case $ac_optarg in
15430 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15431 esac
15432 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15433 ac_need_defaults=false;;
15434 --he | --h)
15435 # Conflict between --help and --header
15436 as_fn_error $? "ambiguous option: \`$1'
15437Try \`$0 --help' for more information.";;
15438 --help | --hel | -h )
81ecdfbb 15439 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
15440 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15441 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15442 ac_cs_silent=: ;;
15443
15444 # This is an error.
d0ac1c44 15445 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15446Try \`$0 --help' for more information." ;;
b7026657 15447
81ecdfbb
RW
15448 *) as_fn_append ac_config_targets " $1"
15449 ac_need_defaults=false ;;
b7026657
AC
15450
15451 esac
15452 shift
c906108c 15453done
b7026657
AC
15454
15455ac_configure_extra_args=
15456
15457if $ac_cs_silent; then
15458 exec 6>/dev/null
15459 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c 15460fi
c906108c 15461
b7026657 15462_ACEOF
81ecdfbb 15463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 15464if \$ac_cs_recheck; then
d0ac1c44 15465 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15466 shift
15467 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15468 CONFIG_SHELL='$SHELL'
15469 export CONFIG_SHELL
15470 exec "\$@"
b7026657 15471fi
c906108c 15472
b7026657 15473_ACEOF
81ecdfbb
RW
15474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15475exec 5>>config.log
15476{
15477 echo
15478 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15479## Running $as_me. ##
15480_ASBOX
15481 $as_echo "$ac_log"
15482} >&5
b7026657 15483
81ecdfbb
RW
15484_ACEOF
15485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bddc3e8
MF
15486#
15487# INIT-COMMANDS
15488#
b5689863
MF
15489
15490
15491# The HP-UX ksh and POSIX shell print the target directory to stdout
15492# if CDPATH is set.
15493(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15494
15495sed_quote_subst='$sed_quote_subst'
15496double_quote_subst='$double_quote_subst'
15497delay_variable_subst='$delay_variable_subst'
15498macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15499macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15500enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15501enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15502pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15503enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15504SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15505ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15506host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15507host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15508host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15509build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15510build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15511build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15512SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15513Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15514GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15515EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15516FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15517LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15518NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15519LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15520max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15521ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15522exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15523lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15524lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15525lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15526reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15527reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15528OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15529deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15530file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15531AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15532AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15533STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15534RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15535old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15536old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15537old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15538lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15539CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15540CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15541compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15542GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15543lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15544lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15545lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15546lt_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"`'
15547objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15548MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15549lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15550lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15551lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15552lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15553lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15554need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15555DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15556NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15557LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15558OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15559OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15560libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15561shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15562extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15563archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15564enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15565export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15566whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15567compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15568old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15569old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15570archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15571archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15572module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15573module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15574with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15575allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15576no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15577hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15578hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15579hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15580hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15581hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15582hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15583hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15584hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15585inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15586link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15587fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15588always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15589export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15590exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15591include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15592prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15593file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15594variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15595need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15596need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15597version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15598runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15599shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15600shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15601libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15602library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15603soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15604install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15605postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15606postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15607finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15608finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15609hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15610sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15611sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15612hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15613enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15614enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15615enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15616old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15617striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15618
15619LTCC='$LTCC'
15620LTCFLAGS='$LTCFLAGS'
15621compiler='$compiler_DEFAULT'
15622
15623# A function that is used when there is no print builtin or printf.
15624func_fallback_echo ()
15625{
15626 eval 'cat <<_LTECHO_EOF
15627\$1
15628_LTECHO_EOF'
15629}
15630
15631# Quote evaled strings.
15632for var in SHELL \
15633ECHO \
15634SED \
15635GREP \
15636EGREP \
15637FGREP \
15638LD \
15639NM \
15640LN_S \
15641lt_SP2NL \
15642lt_NL2SP \
15643reload_flag \
15644OBJDUMP \
15645deplibs_check_method \
15646file_magic_cmd \
15647AR \
15648AR_FLAGS \
15649STRIP \
15650RANLIB \
15651CC \
15652CFLAGS \
15653compiler \
15654lt_cv_sys_global_symbol_pipe \
15655lt_cv_sys_global_symbol_to_cdecl \
15656lt_cv_sys_global_symbol_to_c_name_address \
15657lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15658lt_prog_compiler_no_builtin_flag \
15659lt_prog_compiler_wl \
15660lt_prog_compiler_pic \
15661lt_prog_compiler_static \
15662lt_cv_prog_compiler_c_o \
15663need_locks \
15664DSYMUTIL \
15665NMEDIT \
15666LIPO \
15667OTOOL \
15668OTOOL64 \
15669shrext_cmds \
15670export_dynamic_flag_spec \
15671whole_archive_flag_spec \
15672compiler_needs_object \
15673with_gnu_ld \
15674allow_undefined_flag \
15675no_undefined_flag \
15676hardcode_libdir_flag_spec \
15677hardcode_libdir_flag_spec_ld \
15678hardcode_libdir_separator \
15679fix_srcfile_path \
15680exclude_expsyms \
15681include_expsyms \
15682file_list_spec \
15683variables_saved_for_relink \
15684libname_spec \
15685library_names_spec \
15686soname_spec \
15687install_override_mode \
15688finish_eval \
15689old_striplib \
15690striplib; do
15691 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15692 *[\\\\\\\`\\"\\\$]*)
15693 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15694 ;;
15695 *)
15696 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15697 ;;
15698 esac
15699done
15700
15701# Double-quote double-evaled strings.
15702for var in reload_cmds \
15703old_postinstall_cmds \
15704old_postuninstall_cmds \
15705old_archive_cmds \
15706extract_expsyms_cmds \
15707old_archive_from_new_cmds \
15708old_archive_from_expsyms_cmds \
15709archive_cmds \
15710archive_expsym_cmds \
15711module_cmds \
15712module_expsym_cmds \
15713export_symbols_cmds \
15714prelink_cmds \
15715postinstall_cmds \
15716postuninstall_cmds \
15717finish_cmds \
15718sys_lib_search_path_spec \
15719sys_lib_dlsearch_path_spec; do
15720 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15721 *[\\\\\\\`\\"\\\$]*)
15722 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15723 ;;
15724 *)
15725 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15726 ;;
15727 esac
15728done
15729
15730ac_aux_dir='$ac_aux_dir'
15731xsi_shell='$xsi_shell'
15732lt_shell_append='$lt_shell_append'
15733
15734# See if we are running on zsh, and set the options which allow our
15735# commands through without removal of \ escapes INIT.
15736if test -n "\${ZSH_VERSION+set}" ; then
15737 setopt NO_GLOB_SUBST
15738fi
15739
15740
15741 PACKAGE='$PACKAGE'
15742 VERSION='$VERSION'
15743 TIMESTAMP='$TIMESTAMP'
15744 RM='$RM'
15745 ofile='$ofile'
15746
15747
15748
6bddc3e8 15749AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
bc56166f
MF
15750ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15751ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15752ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15753ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15754ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15755ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15756ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15757ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15758ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15759ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15760ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15761ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15762ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15763ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15764ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15765ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15766ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15767ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15768ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15769ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15770ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15771ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15772ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15773ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15774ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15775ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15776ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15777ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15778ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15779ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15780ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15781ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6bddc3e8 15782
81ecdfbb 15783_ACEOF
b7026657 15784
81ecdfbb 15785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
df1756f4 15786
81ecdfbb 15787# Handling of arguments.
b7026657
AC
15788for ac_config_target in $ac_config_targets
15789do
81ecdfbb 15790 case $ac_config_target in
b15c5d7a 15791 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
b5689863 15792 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
6bddc3e8 15793 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36bb57e4
MF
15794 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:common/Make-common.in" ;;
15795 "aarch64/Makefile.sim") CONFIG_FILES="$CONFIG_FILES aarch64/Makefile.sim:aarch64/Makefile.in" ;;
15796 "aarch64/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS aarch64/Makefile" ;;
bc56166f 15797 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
36bb57e4
MF
15798 "arm/Makefile.sim") CONFIG_FILES="$CONFIG_FILES arm/Makefile.sim:arm/Makefile.in" ;;
15799 "arm/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS arm/Makefile" ;;
bc56166f 15800 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
36bb57e4
MF
15801 "avr/Makefile.sim") CONFIG_FILES="$CONFIG_FILES avr/Makefile.sim:avr/Makefile.in" ;;
15802 "avr/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS avr/Makefile" ;;
bc56166f 15803 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
d8b04da7
MF
15804 "bfin/Makefile.sim") CONFIG_FILES="$CONFIG_FILES bfin/Makefile.sim:bfin/Makefile.in" ;;
15805 "bfin/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bfin/Makefile" ;;
bc56166f
MF
15806 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
15807 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
36bb57e4
MF
15808 "cr16/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cr16/Makefile.sim:cr16/Makefile.in" ;;
15809 "cr16/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cr16/Makefile" ;;
bc56166f 15810 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
408a44aa
MF
15811 "cris/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cris/Makefile.sim:cris/Makefile.in" ;;
15812 "cris/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cris/Makefile" ;;
bc56166f 15813 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
36bb57e4
MF
15814 "d10v/Makefile.sim") CONFIG_FILES="$CONFIG_FILES d10v/Makefile.sim:d10v/Makefile.in" ;;
15815 "d10v/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS d10v/Makefile" ;;
bc56166f 15816 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
408a44aa
MF
15817 "frv/Makefile.sim") CONFIG_FILES="$CONFIG_FILES frv/Makefile.sim:frv/Makefile.in" ;;
15818 "frv/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS frv/Makefile" ;;
bc56166f 15819 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
36bb57e4
MF
15820 "ft32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES ft32/Makefile.sim:ft32/Makefile.in" ;;
15821 "ft32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS ft32/Makefile" ;;
15822 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
15823 "h8300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES h8300/Makefile.sim:h8300/Makefile.in" ;;
15824 "h8300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS h8300/Makefile" ;;
bc56166f 15825 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
408a44aa
MF
15826 "iq2000/Makefile.sim") CONFIG_FILES="$CONFIG_FILES iq2000/Makefile.sim:iq2000/Makefile.in" ;;
15827 "iq2000/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS iq2000/Makefile" ;;
bc56166f 15828 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
408a44aa
MF
15829 "lm32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES lm32/Makefile.sim:lm32/Makefile.in" ;;
15830 "lm32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lm32/Makefile" ;;
bc56166f 15831 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
36bb57e4
MF
15832 "m32c/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32c/Makefile.sim:m32c/Makefile.in" ;;
15833 "m32c/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32c/Makefile" ;;
bc56166f
MF
15834 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
15835 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
36bb57e4
MF
15836 "m68hc11/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile.sim:m68hc11/Makefile.in" ;;
15837 "m68hc11/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m68hc11/Makefile" ;;
bc56166f 15838 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
36bb57e4
MF
15839 "mcore/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mcore/Makefile.sim:mcore/Makefile.in" ;;
15840 "mcore/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mcore/Makefile" ;;
bc56166f 15841 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
36bb57e4
MF
15842 "microblaze/Makefile.sim") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile.sim:microblaze/Makefile.in" ;;
15843 "microblaze/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS microblaze/Makefile" ;;
bc56166f
MF
15844 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
15845 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
15846 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
36bb57e4
MF
15847 "moxie/Makefile.sim") CONFIG_FILES="$CONFIG_FILES moxie/Makefile.sim:moxie/Makefile.in" ;;
15848 "moxie/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS moxie/Makefile" ;;
bc56166f 15849 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
36bb57e4
MF
15850 "msp430/Makefile.sim") CONFIG_FILES="$CONFIG_FILES msp430/Makefile.sim:msp430/Makefile.in" ;;
15851 "msp430/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS msp430/Makefile" ;;
bc56166f
MF
15852 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
15853 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
36bb57e4
MF
15854 "pru/Makefile.sim") CONFIG_FILES="$CONFIG_FILES pru/Makefile.sim:pru/Makefile.in" ;;
15855 "pru/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS pru/Makefile" ;;
bc56166f
MF
15856 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
15857 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
36bb57e4
MF
15858 "rl78/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rl78/Makefile.sim:rl78/Makefile.in" ;;
15859 "rl78/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rl78/Makefile" ;;
bc56166f 15860 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
e173c80f
MF
15861 "rx/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rx/Makefile.sim:rx/Makefile.in" ;;
15862 "rx/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rx/Makefile" ;;
bc56166f 15863 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
36bb57e4
MF
15864 "sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;;
15865 "sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;;
bc56166f 15866 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
5d0b3088
MF
15867 "erc32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES erc32/Makefile.sim:erc32/Makefile.in" ;;
15868 "erc32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS erc32/Makefile" ;;
bc56166f
MF
15869 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
15870 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
bc56166f 15871 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
36bb57e4
MF
15872 "example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;;
15873 "example-synacor/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS example-synacor/Makefile" ;;
bc56166f 15874 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
3f8414df 15875 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
81ecdfbb
RW
15876 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15877
d0ac1c44 15878 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 15879 esac
b7026657 15880done
c906108c 15881
81ecdfbb 15882
b7026657
AC
15883# If the user did not use the arguments to specify the items to instantiate,
15884# then the envvar interface is used. Set only those that are not.
15885# We use the long form for the default assignment because of an extremely
15886# bizarre bug on SunOS 4.1.3.
15887if $ac_need_defaults; then
15888 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
b15c5d7a 15889 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6bddc3e8 15890 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b7026657 15891fi
c906108c 15892
b7026657 15893# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15894# simply because there is no reason against having it here, and in addition,
b7026657 15895# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15896# Hook for its removal unless debugging.
15897# Note that there is a small window in which the directory will not be cleaned:
15898# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
15899$debug ||
15900{
d0ac1c44 15901 tmp= ac_tmp=
81ecdfbb 15902 trap 'exit_status=$?
d0ac1c44
SM
15903 : "${ac_tmp:=$tmp}"
15904 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15905' 0
15906 trap 'as_fn_exit 1' 1 2 13 15
b7026657 15907}
b7026657
AC
15908# Create a (secure) tmp directory for tmp files.
15909
15910{
81ecdfbb 15911 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15912 test -d "$tmp"
b7026657
AC
15913} ||
15914{
81ecdfbb
RW
15915 tmp=./conf$$-$RANDOM
15916 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15917} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15918ac_tmp=$tmp
81ecdfbb
RW
15919
15920# Set up the scripts for CONFIG_FILES section.
15921# No need to generate them if there are no CONFIG_FILES.
15922# This happens for instance with `./config.status config.h'.
15923if test -n "$CONFIG_FILES"; then
15924
15925
15926ac_cr=`echo X | tr X '\015'`
15927# On cygwin, bash can eat \r inside `` if the user requested igncr.
15928# But we know of no other shell where ac_cr would be empty at this
15929# point, so we can use a bashism as a fallback.
15930if test "x$ac_cr" = x; then
15931 eval ac_cr=\$\'\\r\'
15932fi
15933ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15934if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 15935 ac_cs_awk_cr='\\r'
81ecdfbb
RW
15936else
15937 ac_cs_awk_cr=$ac_cr
15938fi
15939
d0ac1c44 15940echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
15941_ACEOF
15942
15943
15944{
15945 echo "cat >conf$$subs.awk <<_ACEOF" &&
15946 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15947 echo "_ACEOF"
15948} >conf$$subs.sh ||
d0ac1c44
SM
15949 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15950ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
15951ac_delim='%!_!# '
15952for ac_last_try in false false false false false :; do
15953 . ./conf$$subs.sh ||
d0ac1c44 15954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15955
15956 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15957 if test $ac_delim_n = $ac_delim_num; then
15958 break
15959 elif $ac_last_try; then
d0ac1c44 15960 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15961 else
15962 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15963 fi
15964done
15965rm -f conf$$subs.sh
15966
15967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15968cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
15969_ACEOF
15970sed -n '
15971h
15972s/^/S["/; s/!.*/"]=/
15973p
15974g
15975s/^[^!]*!//
15976:repl
15977t repl
15978s/'"$ac_delim"'$//
15979t delim
15980:nl
15981h
d0ac1c44 15982s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15983t more1
15984s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15985p
15986n
15987b repl
15988:more1
15989s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15990p
15991g
15992s/.\{148\}//
15993t nl
15994:delim
15995h
d0ac1c44 15996s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15997t more2
15998s/["\\]/\\&/g; s/^/"/; s/$/"/
15999p
16000b
16001:more2
16002s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16003p
16004g
16005s/.\{148\}//
16006t delim
16007' <conf$$subs.awk | sed '
16008/^[^""]/{
16009 N
16010 s/\n//
16011}
16012' >>$CONFIG_STATUS || ac_write_fail=1
16013rm -f conf$$subs.awk
16014cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16015_ACAWK
d0ac1c44 16016cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
16017 for (key in S) S_is_set[key] = 1
16018 FS = "\a"
16019
16020}
b7026657 16021{
81ecdfbb
RW
16022 line = $ 0
16023 nfields = split(line, field, "@")
16024 substed = 0
16025 len = length(field[1])
16026 for (i = 2; i < nfields; i++) {
16027 key = field[i]
16028 keylen = length(key)
16029 if (S_is_set[key]) {
16030 value = S[key]
16031 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16032 len += length(value) + length(field[++i])
16033 substed = 1
16034 } else
16035 len += 1 + keylen
16036 }
16037
16038 print line
b7026657
AC
16039}
16040
81ecdfbb
RW
16041_ACAWK
16042_ACEOF
16043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16044if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16045 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16046else
16047 cat
d0ac1c44
SM
16048fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16049 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
fdd6fa61
AG
16050_ACEOF
16051
d0ac1c44
SM
16052# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16053# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
16054# trailing colons and then remove the whole line if VPATH becomes empty
16055# (actually we leave an empty line to preserve line numbers).
16056if test "x$srcdir" = x.; then
d0ac1c44
SM
16057 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16058h
16059s///
16060s/^/:/
16061s/[ ]*$/:/
16062s/:\$(srcdir):/:/g
16063s/:\${srcdir}:/:/g
16064s/:@srcdir@:/:/g
16065s/^:*//
81ecdfbb 16066s/:*$//
d0ac1c44
SM
16067x
16068s/\(=[ ]*\).*/\1/
16069G
16070s/\n//
81ecdfbb
RW
16071s/^[^=]*=[ ]*$//
16072}'
16073fi
fdd6fa61 16074
81ecdfbb
RW
16075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16076fi # test -n "$CONFIG_FILES"
b7026657 16077
b15c5d7a
MF
16078# Set up the scripts for CONFIG_HEADERS section.
16079# No need to generate them if there are no CONFIG_HEADERS.
16080# This happens for instance with `./config.status Makefile'.
16081if test -n "$CONFIG_HEADERS"; then
16082cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16083BEGIN {
16084_ACEOF
16085
16086# Transform confdefs.h into an awk script `defines.awk', embedded as
16087# here-document in config.status, that substitutes the proper values into
16088# config.h.in to produce config.h.
16089
16090# Create a delimiter string that does not exist in confdefs.h, to ease
16091# handling of long lines.
16092ac_delim='%!_!# '
16093for ac_last_try in false false :; do
16094 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16095 if test -z "$ac_tt"; then
16096 break
16097 elif $ac_last_try; then
16098 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16099 else
16100 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16101 fi
16102done
16103
16104# For the awk script, D is an array of macro values keyed by name,
16105# likewise P contains macro parameters if any. Preserve backslash
16106# newline sequences.
16107
16108ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16109sed -n '
16110s/.\{148\}/&'"$ac_delim"'/g
16111t rset
16112:rset
16113s/^[ ]*#[ ]*define[ ][ ]*/ /
16114t def
16115d
16116:def
16117s/\\$//
16118t bsnl
16119s/["\\]/\\&/g
16120s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16121D["\1"]=" \3"/p
16122s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16123d
16124:bsnl
16125s/["\\]/\\&/g
16126s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16127D["\1"]=" \3\\\\\\n"\\/p
16128t cont
16129s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16130t cont
16131d
16132:cont
16133n
16134s/.\{148\}/&'"$ac_delim"'/g
16135t clear
16136:clear
16137s/\\$//
16138t bsnlc
16139s/["\\]/\\&/g; s/^/"/; s/$/"/p
16140d
16141:bsnlc
16142s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16143b cont
16144' <confdefs.h | sed '
16145s/'"$ac_delim"'/"\\\
16146"/g' >>$CONFIG_STATUS || ac_write_fail=1
16147
16148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16149 for (key in D) D_is_set[key] = 1
16150 FS = "\a"
16151}
16152/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16153 line = \$ 0
16154 split(line, arg, " ")
16155 if (arg[1] == "#") {
16156 defundef = arg[2]
16157 mac1 = arg[3]
16158 } else {
16159 defundef = substr(arg[1], 2)
16160 mac1 = arg[2]
16161 }
16162 split(mac1, mac2, "(") #)
16163 macro = mac2[1]
16164 prefix = substr(line, 1, index(line, defundef) - 1)
16165 if (D_is_set[macro]) {
16166 # Preserve the white space surrounding the "#".
16167 print prefix "define", macro P[macro] D[macro]
16168 next
16169 } else {
16170 # Replace #undef with comments. This is necessary, for example,
16171 # in the case of _POSIX_SOURCE, which is predefined and required
16172 # on some systems where configure will not decide to define it.
16173 if (defundef == "undef") {
16174 print "/*", prefix defundef, macro, "*/"
16175 next
16176 }
16177 }
16178}
16179{ print }
16180_ACAWK
16181_ACEOF
16182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16183 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16184fi # test -n "$CONFIG_HEADERS"
b7026657 16185
b15c5d7a
MF
16186
16187eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
81ecdfbb
RW
16188shift
16189for ac_tag
16190do
16191 case $ac_tag in
16192 :[FHLC]) ac_mode=$ac_tag; continue;;
16193 esac
16194 case $ac_mode$ac_tag in
16195 :[FHL]*:*);;
d0ac1c44 16196 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
16197 :[FH]-) ac_tag=-:-;;
16198 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16199 esac
16200 ac_save_IFS=$IFS
16201 IFS=:
16202 set x $ac_tag
16203 IFS=$ac_save_IFS
16204 shift
16205 ac_file=$1
16206 shift
b7026657 16207
81ecdfbb
RW
16208 case $ac_mode in
16209 :L) ac_source=$1;;
16210 :[FH])
16211 ac_file_inputs=
16212 for ac_f
16213 do
16214 case $ac_f in
d0ac1c44 16215 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
16216 *) # Look for the file first in the build tree, then in the source tree
16217 # (if the path is not absolute). The absolute path cannot be DOS-style,
16218 # because $ac_f cannot contain `:'.
16219 test -f "$ac_f" ||
16220 case $ac_f in
16221 [\\/$]*) false;;
16222 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16223 esac ||
d0ac1c44 16224 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
16225 esac
16226 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16227 as_fn_append ac_file_inputs " '$ac_f'"
16228 done
16229
16230 # Let's still pretend it is `configure' which instantiates (i.e., don't
16231 # use $as_me), people would be surprised to read:
16232 # /* config.h. Generated by config.status. */
16233 configure_input='Generated from '`
16234 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16235 `' by configure.'
16236 if test x"$ac_file" != x-; then
16237 configure_input="$ac_file. $configure_input"
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16239$as_echo "$as_me: creating $ac_file" >&6;}
fdd6fa61 16240 fi
81ecdfbb
RW
16241 # Neutralize special characters interpreted by sed in replacement strings.
16242 case $configure_input in #(
16243 *\&* | *\|* | *\\* )
16244 ac_sed_conf_input=`$as_echo "$configure_input" |
16245 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16246 *) ac_sed_conf_input=$configure_input;;
16247 esac
df1756f4 16248
81ecdfbb 16249 case $ac_tag in
d0ac1c44
SM
16250 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
16252 esac
16253 ;;
df1756f4
TG
16254 esac
16255
81ecdfbb 16256 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
16257$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16258 X"$ac_file" : 'X\(//\)[^/]' \| \
16259 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
16260 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16261$as_echo X"$ac_file" |
16262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16263 s//\1/
16264 q
16265 }
16266 /^X\(\/\/\)[^/].*/{
16267 s//\1/
16268 q
16269 }
16270 /^X\(\/\/\)$/{
16271 s//\1/
16272 q
16273 }
16274 /^X\(\/\).*/{
16275 s//\1/
16276 q
16277 }
16278 s/.*/./; q'`
16279 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
16280 ac_builddir=.
16281
81ecdfbb
RW
16282case "$ac_dir" in
16283.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16284*)
16285 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16286 # A ".." for each directory in $ac_dir_suffix.
16287 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16288 case $ac_top_builddir_sub in
16289 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16290 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16291 esac ;;
16292esac
16293ac_abs_top_builddir=$ac_pwd
16294ac_abs_builddir=$ac_pwd$ac_dir_suffix
16295# for backward compatibility:
16296ac_top_builddir=$ac_top_build_prefix
b7026657
AC
16297
16298case $srcdir in
81ecdfbb 16299 .) # We are building in place.
b7026657 16300 ac_srcdir=.
81ecdfbb
RW
16301 ac_top_srcdir=$ac_top_builddir_sub
16302 ac_abs_top_srcdir=$ac_pwd ;;
16303 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 16304 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
16305 ac_top_srcdir=$srcdir
16306 ac_abs_top_srcdir=$srcdir ;;
16307 *) # Relative name.
16308 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16309 ac_top_srcdir=$ac_top_build_prefix$srcdir
16310 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 16311esac
81ecdfbb 16312ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 16313
b7026657 16314
81ecdfbb
RW
16315 case $ac_mode in
16316 :F)
16317 #
16318 # CONFIG_FILE
16319 #
c906108c 16320
b7026657
AC
16321 case $INSTALL in
16322 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 16323 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 16324 esac
6bddc3e8
MF
16325 ac_MKDIR_P=$MKDIR_P
16326 case $MKDIR_P in
16327 [\\/$]* | ?:[\\/]* ) ;;
16328 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16329 esac
81ecdfbb 16330_ACEOF
c906108c 16331
81ecdfbb
RW
16332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16333# If the template does not know about datarootdir, expand it.
16334# FIXME: This hack should be removed a few years after 2.60.
16335ac_datarootdir_hack=; ac_datarootdir_seen=
16336ac_sed_dataroot='
16337/datarootdir/ {
16338 p
16339 q
16340}
16341/@datadir@/p
16342/@docdir@/p
16343/@infodir@/p
16344/@localedir@/p
16345/@mandir@/p'
16346case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16347*datarootdir*) ac_datarootdir_seen=yes;;
16348*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16350$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16351_ACEOF
16352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16353 ac_datarootdir_hack='
16354 s&@datadir@&$datadir&g
16355 s&@docdir@&$docdir&g
16356 s&@infodir@&$infodir&g
16357 s&@localedir@&$localedir&g
16358 s&@mandir@&$mandir&g
16359 s&\\\${datarootdir}&$datarootdir&g' ;;
16360esac
b7026657 16361_ACEOF
81ecdfbb
RW
16362
16363# Neutralize VPATH when `$srcdir' = `.'.
16364# Shell code in configure.ac might set extrasub.
16365# FIXME: do we really want to maintain this feature?
16366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16367ac_sed_extra="$ac_vpsub
b7026657
AC
16368$extrasub
16369_ACEOF
81ecdfbb 16370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
16371:t
16372/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16373s|@configure_input@|$ac_sed_conf_input|;t t
16374s&@top_builddir@&$ac_top_builddir_sub&;t t
16375s&@top_build_prefix@&$ac_top_build_prefix&;t t
16376s&@srcdir@&$ac_srcdir&;t t
16377s&@abs_srcdir@&$ac_abs_srcdir&;t t
16378s&@top_srcdir@&$ac_top_srcdir&;t t
16379s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16380s&@builddir@&$ac_builddir&;t t
16381s&@abs_builddir@&$ac_abs_builddir&;t t
16382s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16383s&@INSTALL@&$ac_INSTALL&;t t
6bddc3e8 16384s&@MKDIR_P@&$ac_MKDIR_P&;t t
81ecdfbb
RW
16385$ac_datarootdir_hack
16386"
d0ac1c44
SM
16387eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16388 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16389
16390test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
16391 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16392 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16393 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 16394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16395which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 16396$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16397which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 16398
d0ac1c44 16399 rm -f "$ac_tmp/stdin"
81ecdfbb 16400 case $ac_file in
d0ac1c44
SM
16401 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16402 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 16403 esac \
d0ac1c44 16404 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 16405 ;;
b15c5d7a
MF
16406 :H)
16407 #
16408 # CONFIG_HEADER
16409 #
16410 if test x"$ac_file" != x-; then
16411 {
16412 $as_echo "/* $configure_input */" \
16413 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16414 } >"$ac_tmp/config.h" \
16415 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16416 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16418$as_echo "$as_me: $ac_file is unchanged" >&6;}
16419 else
16420 rm -f "$ac_file"
16421 mv "$ac_tmp/config.h" "$ac_file" \
16422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16423 fi
16424 else
16425 $as_echo "/* $configure_input */" \
16426 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16427 || as_fn_error $? "could not create -" "$LINENO" 5
16428 fi
16429# Compute "$ac_file"'s index in $config_headers.
16430_am_arg="$ac_file"
16431_am_stamp_count=1
16432for _am_header in $config_headers :; do
16433 case $_am_header in
16434 $_am_arg | $_am_arg:* )
16435 break ;;
16436 * )
16437 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16438 esac
16439done
16440echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16441$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16442 X"$_am_arg" : 'X\(//\)[^/]' \| \
16443 X"$_am_arg" : 'X\(//\)$' \| \
16444 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16445$as_echo X"$_am_arg" |
16446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16447 s//\1/
16448 q
16449 }
16450 /^X\(\/\/\)[^/].*/{
16451 s//\1/
16452 q
16453 }
16454 /^X\(\/\/\)$/{
16455 s//\1/
16456 q
16457 }
16458 /^X\(\/\).*/{
16459 s//\1/
16460 q
16461 }
16462 s/.*/./; q'`/stamp-h$_am_stamp_count
16463 ;;
df1756f4 16464
6bddc3e8
MF
16465 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16466$as_echo "$as_me: executing $ac_file commands" >&6;}
16467 ;;
16468 esac
16469
c906108c 16470
6bddc3e8 16471 case $ac_file$ac_mode in
b5689863
MF
16472 "libtool":C)
16473
16474 # See if we are running on zsh, and set the options which allow our
16475 # commands through without removal of \ escapes.
16476 if test -n "${ZSH_VERSION+set}" ; then
16477 setopt NO_GLOB_SUBST
16478 fi
16479
16480 cfgfile="${ofile}T"
16481 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16482 $RM "$cfgfile"
16483
16484 cat <<_LT_EOF >> "$cfgfile"
16485#! $SHELL
16486
16487# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16488# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16489# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16490# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16491#
16492# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16493# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16494# Written by Gordon Matzigkeit, 1996
16495#
16496# This file is part of GNU Libtool.
16497#
16498# GNU Libtool is free software; you can redistribute it and/or
16499# modify it under the terms of the GNU General Public License as
16500# published by the Free Software Foundation; either version 2 of
16501# the License, or (at your option) any later version.
16502#
16503# As a special exception to the GNU General Public License,
16504# if you distribute this file as part of a program or library that
16505# is built using GNU Libtool, you may include this file under the
16506# same distribution terms that you use for the rest of that program.
16507#
16508# GNU Libtool is distributed in the hope that it will be useful,
16509# but WITHOUT ANY WARRANTY; without even the implied warranty of
16510# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16511# GNU General Public License for more details.
16512#
16513# You should have received a copy of the GNU General Public License
16514# along with GNU Libtool; see the file COPYING. If not, a copy
16515# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16516# obtained by writing to the Free Software Foundation, Inc.,
16517# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16518
16519
16520# The names of the tagged configurations supported by this script.
16521available_tags=""
16522
16523# ### BEGIN LIBTOOL CONFIG
16524
16525# Which release of libtool.m4 was used?
16526macro_version=$macro_version
16527macro_revision=$macro_revision
16528
16529# Whether or not to build shared libraries.
16530build_libtool_libs=$enable_shared
16531
16532# Whether or not to build static libraries.
16533build_old_libs=$enable_static
16534
16535# What type of objects to build.
16536pic_mode=$pic_mode
16537
16538# Whether or not to optimize for fast installation.
16539fast_install=$enable_fast_install
16540
16541# Shell to use when invoking shell scripts.
16542SHELL=$lt_SHELL
16543
16544# An echo program that protects backslashes.
16545ECHO=$lt_ECHO
16546
16547# The host system.
16548host_alias=$host_alias
16549host=$host
16550host_os=$host_os
16551
16552# The build system.
16553build_alias=$build_alias
16554build=$build
16555build_os=$build_os
16556
16557# A sed program that does not truncate output.
16558SED=$lt_SED
16559
16560# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16561Xsed="\$SED -e 1s/^X//"
16562
16563# A grep program that handles long lines.
16564GREP=$lt_GREP
16565
16566# An ERE matcher.
16567EGREP=$lt_EGREP
16568
16569# A literal string matcher.
16570FGREP=$lt_FGREP
16571
16572# A BSD- or MS-compatible name lister.
16573NM=$lt_NM
16574
16575# Whether we need soft or hard links.
16576LN_S=$lt_LN_S
16577
16578# What is the maximum length of a command?
16579max_cmd_len=$max_cmd_len
16580
16581# Object file suffix (normally "o").
16582objext=$ac_objext
16583
16584# Executable file suffix (normally "").
16585exeext=$exeext
16586
16587# whether the shell understands "unset".
16588lt_unset=$lt_unset
16589
16590# turn spaces into newlines.
16591SP2NL=$lt_lt_SP2NL
16592
16593# turn newlines into spaces.
16594NL2SP=$lt_lt_NL2SP
16595
16596# An object symbol dumper.
16597OBJDUMP=$lt_OBJDUMP
16598
16599# Method to check whether dependent libraries are shared objects.
16600deplibs_check_method=$lt_deplibs_check_method
16601
16602# Command to use when deplibs_check_method == "file_magic".
16603file_magic_cmd=$lt_file_magic_cmd
16604
16605# The archiver.
16606AR=$lt_AR
16607AR_FLAGS=$lt_AR_FLAGS
16608
16609# A symbol stripping program.
16610STRIP=$lt_STRIP
16611
16612# Commands used to install an old-style archive.
16613RANLIB=$lt_RANLIB
16614old_postinstall_cmds=$lt_old_postinstall_cmds
16615old_postuninstall_cmds=$lt_old_postuninstall_cmds
16616
16617# Whether to use a lock for old archive extraction.
16618lock_old_archive_extraction=$lock_old_archive_extraction
16619
16620# A C compiler.
16621LTCC=$lt_CC
16622
16623# LTCC compiler flags.
16624LTCFLAGS=$lt_CFLAGS
16625
16626# Take the output of nm and produce a listing of raw symbols and C names.
16627global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16628
16629# Transform the output of nm in a proper C declaration.
16630global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16631
16632# Transform the output of nm in a C name address pair.
16633global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16634
16635# Transform the output of nm in a C name address pair when lib prefix is needed.
16636global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16637
16638# The name of the directory that contains temporary libtool files.
16639objdir=$objdir
16640
16641# Used to examine libraries when file_magic_cmd begins with "file".
16642MAGIC_CMD=$MAGIC_CMD
16643
16644# Must we lock files when doing compilation?
16645need_locks=$lt_need_locks
16646
16647# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16648DSYMUTIL=$lt_DSYMUTIL
16649
16650# Tool to change global to local symbols on Mac OS X.
16651NMEDIT=$lt_NMEDIT
16652
16653# Tool to manipulate fat objects and archives on Mac OS X.
16654LIPO=$lt_LIPO
16655
16656# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16657OTOOL=$lt_OTOOL
16658
16659# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16660OTOOL64=$lt_OTOOL64
16661
16662# Old archive suffix (normally "a").
16663libext=$libext
16664
16665# Shared library suffix (normally ".so").
16666shrext_cmds=$lt_shrext_cmds
16667
16668# The commands to extract the exported symbol list from a shared archive.
16669extract_expsyms_cmds=$lt_extract_expsyms_cmds
16670
16671# Variables whose values should be saved in libtool wrapper scripts and
16672# restored at link time.
16673variables_saved_for_relink=$lt_variables_saved_for_relink
16674
16675# Do we need the "lib" prefix for modules?
16676need_lib_prefix=$need_lib_prefix
16677
16678# Do we need a version for libraries?
16679need_version=$need_version
16680
16681# Library versioning type.
16682version_type=$version_type
16683
16684# Shared library runtime path variable.
16685runpath_var=$runpath_var
16686
16687# Shared library path variable.
16688shlibpath_var=$shlibpath_var
16689
16690# Is shlibpath searched before the hard-coded library search path?
16691shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16692
16693# Format of library name prefix.
16694libname_spec=$lt_libname_spec
16695
16696# List of archive names. First name is the real one, the rest are links.
16697# The last name is the one that the linker finds with -lNAME
16698library_names_spec=$lt_library_names_spec
16699
16700# The coded name of the library, if different from the real name.
16701soname_spec=$lt_soname_spec
16702
16703# Permission mode override for installation of shared libraries.
16704install_override_mode=$lt_install_override_mode
16705
16706# Command to use after installation of a shared archive.
16707postinstall_cmds=$lt_postinstall_cmds
16708
16709# Command to use after uninstallation of a shared archive.
16710postuninstall_cmds=$lt_postuninstall_cmds
16711
16712# Commands used to finish a libtool library installation in a directory.
16713finish_cmds=$lt_finish_cmds
16714
16715# As "finish_cmds", except a single script fragment to be evaled but
16716# not shown.
16717finish_eval=$lt_finish_eval
16718
16719# Whether we should hardcode library paths into libraries.
16720hardcode_into_libs=$hardcode_into_libs
16721
16722# Compile-time system search path for libraries.
16723sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16724
16725# Run-time system search path for libraries.
16726sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16727
16728# Whether dlopen is supported.
16729dlopen_support=$enable_dlopen
16730
16731# Whether dlopen of programs is supported.
16732dlopen_self=$enable_dlopen_self
16733
16734# Whether dlopen of statically linked programs is supported.
16735dlopen_self_static=$enable_dlopen_self_static
16736
16737# Commands to strip libraries.
16738old_striplib=$lt_old_striplib
16739striplib=$lt_striplib
16740
16741
16742# The linker used to build libraries.
16743LD=$lt_LD
16744
16745# How to create reloadable object files.
16746reload_flag=$lt_reload_flag
16747reload_cmds=$lt_reload_cmds
16748
16749# Commands used to build an old-style archive.
16750old_archive_cmds=$lt_old_archive_cmds
16751
16752# A language specific compiler.
16753CC=$lt_compiler
16754
16755# Is the compiler the GNU compiler?
16756with_gcc=$GCC
16757
16758# Compiler flag to turn off builtin functions.
16759no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16760
16761# How to pass a linker flag through the compiler.
16762wl=$lt_lt_prog_compiler_wl
16763
16764# Additional compiler flags for building library objects.
16765pic_flag=$lt_lt_prog_compiler_pic
16766
16767# Compiler flag to prevent dynamic linking.
16768link_static_flag=$lt_lt_prog_compiler_static
16769
16770# Does compiler simultaneously support -c and -o options?
16771compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16772
16773# Whether or not to add -lc for building shared libraries.
16774build_libtool_need_lc=$archive_cmds_need_lc
16775
16776# Whether or not to disallow shared libs when runtime libs are static.
16777allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16778
16779# Compiler flag to allow reflexive dlopens.
16780export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16781
16782# Compiler flag to generate shared objects directly from archives.
16783whole_archive_flag_spec=$lt_whole_archive_flag_spec
16784
16785# Whether the compiler copes with passing no objects directly.
16786compiler_needs_object=$lt_compiler_needs_object
16787
16788# Create an old-style archive from a shared archive.
16789old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16790
16791# Create a temporary old-style archive to link instead of a shared archive.
16792old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16793
16794# Commands used to build a shared archive.
16795archive_cmds=$lt_archive_cmds
16796archive_expsym_cmds=$lt_archive_expsym_cmds
16797
16798# Commands used to build a loadable module if different from building
16799# a shared archive.
16800module_cmds=$lt_module_cmds
16801module_expsym_cmds=$lt_module_expsym_cmds
16802
16803# Whether we are building with GNU ld or not.
16804with_gnu_ld=$lt_with_gnu_ld
16805
16806# Flag that allows shared libraries with undefined symbols to be built.
16807allow_undefined_flag=$lt_allow_undefined_flag
16808
16809# Flag that enforces no undefined symbols.
16810no_undefined_flag=$lt_no_undefined_flag
16811
16812# Flag to hardcode \$libdir into a binary during linking.
16813# This must work even if \$libdir does not exist
16814hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16815
16816# If ld is used when linking, flag to hardcode \$libdir into a binary
16817# during linking. This must work even if \$libdir does not exist.
16818hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16819
16820# Whether we need a single "-rpath" flag with a separated argument.
16821hardcode_libdir_separator=$lt_hardcode_libdir_separator
16822
16823# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16824# DIR into the resulting binary.
16825hardcode_direct=$hardcode_direct
16826
16827# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16828# DIR into the resulting binary and the resulting library dependency is
16829# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16830# library is relocated.
16831hardcode_direct_absolute=$hardcode_direct_absolute
16832
16833# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16834# into the resulting binary.
16835hardcode_minus_L=$hardcode_minus_L
16836
16837# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16838# into the resulting binary.
16839hardcode_shlibpath_var=$hardcode_shlibpath_var
16840
16841# Set to "yes" if building a shared library automatically hardcodes DIR
16842# into the library and all subsequent libraries and executables linked
16843# against it.
16844hardcode_automatic=$hardcode_automatic
16845
16846# Set to yes if linker adds runtime paths of dependent libraries
16847# to runtime path list.
16848inherit_rpath=$inherit_rpath
16849
16850# Whether libtool must link a program against all its dependency libraries.
16851link_all_deplibs=$link_all_deplibs
16852
16853# Fix the shell variable \$srcfile for the compiler.
16854fix_srcfile_path=$lt_fix_srcfile_path
16855
16856# Set to "yes" if exported symbols are required.
16857always_export_symbols=$always_export_symbols
16858
16859# The commands to list exported symbols.
16860export_symbols_cmds=$lt_export_symbols_cmds
16861
16862# Symbols that should not be listed in the preloaded symbols.
16863exclude_expsyms=$lt_exclude_expsyms
16864
16865# Symbols that must always be exported.
16866include_expsyms=$lt_include_expsyms
16867
16868# Commands necessary for linking programs (against libraries) with templates.
16869prelink_cmds=$lt_prelink_cmds
16870
16871# Specify filename containing input files.
16872file_list_spec=$lt_file_list_spec
16873
16874# How to hardcode a shared library path into an executable.
16875hardcode_action=$hardcode_action
16876
16877# ### END LIBTOOL CONFIG
16878
16879_LT_EOF
16880
16881 case $host_os in
16882 aix3*)
16883 cat <<\_LT_EOF >> "$cfgfile"
16884# AIX sometimes has problems with the GCC collect2 program. For some
16885# reason, if we set the COLLECT_NAMES environment variable, the problems
16886# vanish in a puff of smoke.
16887if test "X${COLLECT_NAMES+set}" != Xset; then
16888 COLLECT_NAMES=
16889 export COLLECT_NAMES
16890fi
16891_LT_EOF
16892 ;;
16893 esac
16894
16895
16896ltmain="$ac_aux_dir/ltmain.sh"
16897
16898
16899 # We use sed instead of cat because bash on DJGPP gets confused if
16900 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16901 # text mode, it properly converts lines to CR/LF. This bash problem
16902 # is reportedly fixed, but why not run on old versions too?
16903 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16904 || (rm -f "$cfgfile"; exit 1)
16905
16906 case $xsi_shell in
16907 yes)
16908 cat << \_LT_EOF >> "$cfgfile"
16909
16910# func_dirname file append nondir_replacement
16911# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16912# otherwise set result to NONDIR_REPLACEMENT.
16913func_dirname ()
16914{
16915 case ${1} in
16916 */*) func_dirname_result="${1%/*}${2}" ;;
16917 * ) func_dirname_result="${3}" ;;
16918 esac
16919}
16920
16921# func_basename file
16922func_basename ()
16923{
16924 func_basename_result="${1##*/}"
16925}
16926
16927# func_dirname_and_basename file append nondir_replacement
16928# perform func_basename and func_dirname in a single function
16929# call:
16930# dirname: Compute the dirname of FILE. If nonempty,
16931# add APPEND to the result, otherwise set result
16932# to NONDIR_REPLACEMENT.
16933# value returned in "$func_dirname_result"
16934# basename: Compute filename of FILE.
16935# value retuned in "$func_basename_result"
16936# Implementation must be kept synchronized with func_dirname
16937# and func_basename. For efficiency, we do not delegate to
16938# those functions but instead duplicate the functionality here.
16939func_dirname_and_basename ()
16940{
16941 case ${1} in
16942 */*) func_dirname_result="${1%/*}${2}" ;;
16943 * ) func_dirname_result="${3}" ;;
16944 esac
16945 func_basename_result="${1##*/}"
16946}
16947
16948# func_stripname prefix suffix name
16949# strip PREFIX and SUFFIX off of NAME.
16950# PREFIX and SUFFIX must not contain globbing or regex special
16951# characters, hashes, percent signs, but SUFFIX may contain a leading
16952# dot (in which case that matches only a dot).
16953func_stripname ()
16954{
16955 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16956 # positional parameters, so assign one to ordinary parameter first.
16957 func_stripname_result=${3}
16958 func_stripname_result=${func_stripname_result#"${1}"}
16959 func_stripname_result=${func_stripname_result%"${2}"}
16960}
16961
16962# func_opt_split
16963func_opt_split ()
16964{
16965 func_opt_split_opt=${1%%=*}
16966 func_opt_split_arg=${1#*=}
16967}
16968
16969# func_lo2o object
16970func_lo2o ()
16971{
16972 case ${1} in
16973 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16974 *) func_lo2o_result=${1} ;;
16975 esac
16976}
16977
16978# func_xform libobj-or-source
16979func_xform ()
16980{
16981 func_xform_result=${1%.*}.lo
16982}
16983
16984# func_arith arithmetic-term...
16985func_arith ()
16986{
16987 func_arith_result=$(( $* ))
16988}
16989
16990# func_len string
16991# STRING may not start with a hyphen.
16992func_len ()
16993{
16994 func_len_result=${#1}
16995}
16996
16997_LT_EOF
16998 ;;
16999 *) # Bourne compatible functions.
17000 cat << \_LT_EOF >> "$cfgfile"
17001
17002# func_dirname file append nondir_replacement
17003# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17004# otherwise set result to NONDIR_REPLACEMENT.
17005func_dirname ()
17006{
17007 # Extract subdirectory from the argument.
17008 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17009 if test "X$func_dirname_result" = "X${1}"; then
17010 func_dirname_result="${3}"
17011 else
17012 func_dirname_result="$func_dirname_result${2}"
17013 fi
17014}
17015
17016# func_basename file
17017func_basename ()
17018{
17019 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17020}
17021
17022
17023# func_stripname prefix suffix name
17024# strip PREFIX and SUFFIX off of NAME.
17025# PREFIX and SUFFIX must not contain globbing or regex special
17026# characters, hashes, percent signs, but SUFFIX may contain a leading
17027# dot (in which case that matches only a dot).
17028# func_strip_suffix prefix name
17029func_stripname ()
17030{
17031 case ${2} in
17032 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17033 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17034 esac
17035}
17036
17037# sed scripts:
17038my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17039my_sed_long_arg='1s/^-[^=]*=//'
17040
17041# func_opt_split
17042func_opt_split ()
17043{
17044 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17045 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17046}
17047
17048# func_lo2o object
17049func_lo2o ()
17050{
17051 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17052}
17053
17054# func_xform libobj-or-source
17055func_xform ()
17056{
17057 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17058}
17059
17060# func_arith arithmetic-term...
17061func_arith ()
17062{
17063 func_arith_result=`expr "$@"`
17064}
17065
17066# func_len string
17067# STRING may not start with a hyphen.
17068func_len ()
17069{
17070 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17071}
17072
17073_LT_EOF
17074esac
17075
17076case $lt_shell_append in
17077 yes)
17078 cat << \_LT_EOF >> "$cfgfile"
17079
17080# func_append var value
17081# Append VALUE to the end of shell variable VAR.
17082func_append ()
17083{
17084 eval "$1+=\$2"
17085}
17086_LT_EOF
17087 ;;
17088 *)
17089 cat << \_LT_EOF >> "$cfgfile"
17090
17091# func_append var value
17092# Append VALUE to the end of shell variable VAR.
17093func_append ()
17094{
17095 eval "$1=\$$1\$2"
17096}
17097
17098_LT_EOF
17099 ;;
17100 esac
17101
17102
17103 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17104 || (rm -f "$cfgfile"; exit 1)
17105
17106 mv -f "$cfgfile" "$ofile" ||
17107 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17108 chmod +x "$ofile"
17109
17110 ;;
6bddc3e8
MF
17111 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17112 # Older Autoconf quotes --file arguments for eval, but not when files
17113 # are listed without --file. Let's play safe and only enable the eval
17114 # if we detect the quoting.
17115 case $CONFIG_FILES in
17116 *\'*) eval set x "$CONFIG_FILES" ;;
17117 *) set x $CONFIG_FILES ;;
81ecdfbb 17118 esac
6bddc3e8
MF
17119 shift
17120 for mf
17121 do
17122 # Strip MF so we end up with the name of the file.
17123 mf=`echo "$mf" | sed -e 's/:.*$//'`
17124 # Check whether this is an Automake generated Makefile or not.
17125 # We used to match only the files named 'Makefile.in', but
17126 # some people rename them; so instead we look at the file content.
17127 # Grep'ing the first line is not enough: some people post-process
17128 # each Makefile.in and add a new line on top of each file to say so.
17129 # Grep'ing the whole file is not good either: AIX grep has a line
17130 # limit of 2048, but all sed's we know have understand at least 4000.
17131 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17132 dirpart=`$as_dirname -- "$mf" ||
17133$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17134 X"$mf" : 'X\(//\)[^/]' \| \
17135 X"$mf" : 'X\(//\)$' \| \
17136 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17137$as_echo X"$mf" |
17138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17139 s//\1/
17140 q
17141 }
17142 /^X\(\/\/\)[^/].*/{
17143 s//\1/
17144 q
17145 }
17146 /^X\(\/\/\)$/{
17147 s//\1/
17148 q
17149 }
17150 /^X\(\/\).*/{
17151 s//\1/
17152 q
17153 }
17154 s/.*/./; q'`
17155 else
17156 continue
17157 fi
17158 # Extract the definition of DEPDIR, am__include, and am__quote
17159 # from the Makefile without running 'make'.
17160 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17161 test -z "$DEPDIR" && continue
17162 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17163 test -z "$am__include" && continue
17164 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17165 # Find all dependency output files, they are included files with
17166 # $(DEPDIR) in their names. We invoke sed twice because it is the
17167 # simplest approach to changing $(DEPDIR) to its actual value in the
17168 # expansion.
17169 for file in `sed -n "
17170 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17171 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17172 # Make sure the directory exists.
17173 test -f "$dirpart/$file" && continue
17174 fdir=`$as_dirname -- "$file" ||
17175$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17176 X"$file" : 'X\(//\)[^/]' \| \
17177 X"$file" : 'X\(//\)$' \| \
17178 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17179$as_echo X"$file" |
17180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17181 s//\1/
17182 q
17183 }
17184 /^X\(\/\/\)[^/].*/{
17185 s//\1/
17186 q
17187 }
17188 /^X\(\/\/\)$/{
17189 s//\1/
17190 q
17191 }
17192 /^X\(\/\).*/{
17193 s//\1/
17194 q
17195 }
17196 s/.*/./; q'`
17197 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17198 # echo "creating $dirpart/$file"
17199 echo '# dummy' > "$dirpart/$file"
17200 done
17201 done
17202}
36bb57e4
MF
17203 ;;
17204 "aarch64/Makefile":C) sed -n \
17205 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17206 /^srcdir = / s:$:/aarch64:
36bb57e4
MF
17207 p
17208 }' \
17209 <Make-common.sim >aarch64/Makesim1.tmp
17210 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >aarch64/Makesim2.tmp
17211 sed -e '/^## COMMON_PRE_/ r aarch64/Makesim1.tmp' \
17212 -e '/^## COMMON_POST_/ r aarch64/Makesim2.tmp' \
17213 <aarch64/Makefile.sim >aarch64/Makefile
17214 rm -f aarch64/Makesim1.tmp aarch64/Makesim2.tmp
6bddc3e8 17215 ;;
bc56166f 17216 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
36bb57e4
MF
17217 "arm/Makefile":C) sed -n \
17218 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17219 /^srcdir = / s:$:/arm:
36bb57e4
MF
17220 p
17221 }' \
17222 <Make-common.sim >arm/Makesim1.tmp
17223 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >arm/Makesim2.tmp
17224 sed -e '/^## COMMON_PRE_/ r arm/Makesim1.tmp' \
17225 -e '/^## COMMON_POST_/ r arm/Makesim2.tmp' \
17226 <arm/Makefile.sim >arm/Makefile
17227 rm -f arm/Makesim1.tmp arm/Makesim2.tmp
17228 ;;
bc56166f 17229 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
36bb57e4
MF
17230 "avr/Makefile":C) sed -n \
17231 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17232 /^srcdir = / s:$:/avr:
36bb57e4
MF
17233 p
17234 }' \
17235 <Make-common.sim >avr/Makesim1.tmp
17236 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >avr/Makesim2.tmp
17237 sed -e '/^## COMMON_PRE_/ r avr/Makesim1.tmp' \
17238 -e '/^## COMMON_POST_/ r avr/Makesim2.tmp' \
17239 <avr/Makefile.sim >avr/Makefile
17240 rm -f avr/Makesim1.tmp avr/Makesim2.tmp
17241 ;;
bc56166f 17242 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
d8b04da7
MF
17243 "bfin/Makefile":C) sed -n \
17244 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17245 /^srcdir = / s:$:/bfin:
17246 p
17247 }' \
17248 <Make-common.sim >bfin/Makesim1.tmp
17249 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >bfin/Makesim2.tmp
17250 sed -e '/^## COMMON_PRE_/ r bfin/Makesim1.tmp' \
17251 -e '/^## COMMON_POST_/ r bfin/Makesim2.tmp' \
17252 <bfin/Makefile.sim >bfin/Makefile
17253 rm -f bfin/Makesim1.tmp bfin/Makesim2.tmp
17254 ;;
bc56166f
MF
17255 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
17256 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
36bb57e4
MF
17257 "cr16/Makefile":C) sed -n \
17258 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17259 /^srcdir = / s:$:/cr16:
36bb57e4
MF
17260 p
17261 }' \
17262 <Make-common.sim >cr16/Makesim1.tmp
17263 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cr16/Makesim2.tmp
17264 sed -e '/^## COMMON_PRE_/ r cr16/Makesim1.tmp' \
17265 -e '/^## COMMON_POST_/ r cr16/Makesim2.tmp' \
17266 <cr16/Makefile.sim >cr16/Makefile
17267 rm -f cr16/Makesim1.tmp cr16/Makesim2.tmp
17268 ;;
bc56166f 17269 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
408a44aa
MF
17270 "cris/Makefile":C) sed -n \
17271 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17272 /^srcdir = / s:$:/cris:
17273 p
17274 }' \
17275 <Make-common.sim >cris/Makesim1.tmp
17276 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cris/Makesim2.tmp
17277 sed -e '/^## COMMON_PRE_/ r cris/Makesim1.tmp' \
17278 -e '/^## COMMON_POST_/ r cris/Makesim2.tmp' \
17279 <cris/Makefile.sim >cris/Makefile
17280 rm -f cris/Makesim1.tmp cris/Makesim2.tmp
17281 ;;
bc56166f 17282 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
36bb57e4
MF
17283 "d10v/Makefile":C) sed -n \
17284 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17285 /^srcdir = / s:$:/d10v:
36bb57e4
MF
17286 p
17287 }' \
17288 <Make-common.sim >d10v/Makesim1.tmp
17289 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >d10v/Makesim2.tmp
17290 sed -e '/^## COMMON_PRE_/ r d10v/Makesim1.tmp' \
17291 -e '/^## COMMON_POST_/ r d10v/Makesim2.tmp' \
17292 <d10v/Makefile.sim >d10v/Makefile
17293 rm -f d10v/Makesim1.tmp d10v/Makesim2.tmp
17294 ;;
bc56166f 17295 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
408a44aa
MF
17296 "frv/Makefile":C) sed -n \
17297 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17298 /^srcdir = / s:$:/frv:
17299 p
17300 }' \
17301 <Make-common.sim >frv/Makesim1.tmp
17302 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >frv/Makesim2.tmp
17303 sed -e '/^## COMMON_PRE_/ r frv/Makesim1.tmp' \
17304 -e '/^## COMMON_POST_/ r frv/Makesim2.tmp' \
17305 <frv/Makefile.sim >frv/Makefile
17306 rm -f frv/Makesim1.tmp frv/Makesim2.tmp
17307 ;;
bc56166f 17308 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
36bb57e4
MF
17309 "ft32/Makefile":C) sed -n \
17310 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17311 /^srcdir = / s:$:/ft32:
36bb57e4
MF
17312 p
17313 }' \
17314 <Make-common.sim >ft32/Makesim1.tmp
17315 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >ft32/Makesim2.tmp
17316 sed -e '/^## COMMON_PRE_/ r ft32/Makesim1.tmp' \
17317 -e '/^## COMMON_POST_/ r ft32/Makesim2.tmp' \
17318 <ft32/Makefile.sim >ft32/Makefile
17319 rm -f ft32/Makesim1.tmp ft32/Makesim2.tmp
17320 ;;
17321 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
17322 "h8300/Makefile":C) sed -n \
17323 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17324 /^srcdir = / s:$:/h8300:
36bb57e4
MF
17325 p
17326 }' \
17327 <Make-common.sim >h8300/Makesim1.tmp
17328 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >h8300/Makesim2.tmp
17329 sed -e '/^## COMMON_PRE_/ r h8300/Makesim1.tmp' \
17330 -e '/^## COMMON_POST_/ r h8300/Makesim2.tmp' \
17331 <h8300/Makefile.sim >h8300/Makefile
17332 rm -f h8300/Makesim1.tmp h8300/Makesim2.tmp
17333 ;;
bc56166f 17334 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
408a44aa
MF
17335 "iq2000/Makefile":C) sed -n \
17336 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17337 /^srcdir = / s:$:/iq2000:
17338 p
17339 }' \
17340 <Make-common.sim >iq2000/Makesim1.tmp
17341 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >iq2000/Makesim2.tmp
17342 sed -e '/^## COMMON_PRE_/ r iq2000/Makesim1.tmp' \
17343 -e '/^## COMMON_POST_/ r iq2000/Makesim2.tmp' \
17344 <iq2000/Makefile.sim >iq2000/Makefile
17345 rm -f iq2000/Makesim1.tmp iq2000/Makesim2.tmp
17346 ;;
bc56166f 17347 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
408a44aa
MF
17348 "lm32/Makefile":C) sed -n \
17349 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17350 /^srcdir = / s:$:/lm32:
17351 p
17352 }' \
17353 <Make-common.sim >lm32/Makesim1.tmp
17354 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >lm32/Makesim2.tmp
17355 sed -e '/^## COMMON_PRE_/ r lm32/Makesim1.tmp' \
17356 -e '/^## COMMON_POST_/ r lm32/Makesim2.tmp' \
17357 <lm32/Makefile.sim >lm32/Makefile
17358 rm -f lm32/Makesim1.tmp lm32/Makesim2.tmp
17359 ;;
bc56166f 17360 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
36bb57e4
MF
17361 "m32c/Makefile":C) sed -n \
17362 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17363 /^srcdir = / s:$:/m32c:
36bb57e4
MF
17364 p
17365 }' \
17366 <Make-common.sim >m32c/Makesim1.tmp
17367 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32c/Makesim2.tmp
17368 sed -e '/^## COMMON_PRE_/ r m32c/Makesim1.tmp' \
17369 -e '/^## COMMON_POST_/ r m32c/Makesim2.tmp' \
17370 <m32c/Makefile.sim >m32c/Makefile
17371 rm -f m32c/Makesim1.tmp m32c/Makesim2.tmp
17372 ;;
bc56166f
MF
17373 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
17374 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
36bb57e4
MF
17375 "m68hc11/Makefile":C) sed -n \
17376 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17377 /^srcdir = / s:$:/m68hc11:
36bb57e4
MF
17378 p
17379 }' \
17380 <Make-common.sim >m68hc11/Makesim1.tmp
17381 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m68hc11/Makesim2.tmp
17382 sed -e '/^## COMMON_PRE_/ r m68hc11/Makesim1.tmp' \
17383 -e '/^## COMMON_POST_/ r m68hc11/Makesim2.tmp' \
17384 <m68hc11/Makefile.sim >m68hc11/Makefile
17385 rm -f m68hc11/Makesim1.tmp m68hc11/Makesim2.tmp
17386 ;;
bc56166f 17387 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
36bb57e4
MF
17388 "mcore/Makefile":C) sed -n \
17389 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17390 /^srcdir = / s:$:/mcore:
36bb57e4
MF
17391 p
17392 }' \
17393 <Make-common.sim >mcore/Makesim1.tmp
17394 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mcore/Makesim2.tmp
17395 sed -e '/^## COMMON_PRE_/ r mcore/Makesim1.tmp' \
17396 -e '/^## COMMON_POST_/ r mcore/Makesim2.tmp' \
17397 <mcore/Makefile.sim >mcore/Makefile
17398 rm -f mcore/Makesim1.tmp mcore/Makesim2.tmp
17399 ;;
bc56166f 17400 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
36bb57e4
MF
17401 "microblaze/Makefile":C) sed -n \
17402 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17403 /^srcdir = / s:$:/microblaze:
36bb57e4
MF
17404 p
17405 }' \
17406 <Make-common.sim >microblaze/Makesim1.tmp
17407 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >microblaze/Makesim2.tmp
17408 sed -e '/^## COMMON_PRE_/ r microblaze/Makesim1.tmp' \
17409 -e '/^## COMMON_POST_/ r microblaze/Makesim2.tmp' \
17410 <microblaze/Makefile.sim >microblaze/Makefile
17411 rm -f microblaze/Makesim1.tmp microblaze/Makesim2.tmp
17412 ;;
bc56166f
MF
17413 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
17414 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
17415 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
36bb57e4
MF
17416 "moxie/Makefile":C) sed -n \
17417 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17418 /^srcdir = / s:$:/moxie:
36bb57e4
MF
17419 p
17420 }' \
17421 <Make-common.sim >moxie/Makesim1.tmp
17422 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >moxie/Makesim2.tmp
17423 sed -e '/^## COMMON_PRE_/ r moxie/Makesim1.tmp' \
17424 -e '/^## COMMON_POST_/ r moxie/Makesim2.tmp' \
17425 <moxie/Makefile.sim >moxie/Makefile
17426 rm -f moxie/Makesim1.tmp moxie/Makesim2.tmp
17427 ;;
bc56166f 17428 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
36bb57e4
MF
17429 "msp430/Makefile":C) sed -n \
17430 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17431 /^srcdir = / s:$:/msp430:
36bb57e4
MF
17432 p
17433 }' \
17434 <Make-common.sim >msp430/Makesim1.tmp
17435 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >msp430/Makesim2.tmp
17436 sed -e '/^## COMMON_PRE_/ r msp430/Makesim1.tmp' \
17437 -e '/^## COMMON_POST_/ r msp430/Makesim2.tmp' \
17438 <msp430/Makefile.sim >msp430/Makefile
17439 rm -f msp430/Makesim1.tmp msp430/Makesim2.tmp
17440 ;;
bc56166f
MF
17441 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
17442 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
36bb57e4
MF
17443 "pru/Makefile":C) sed -n \
17444 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17445 /^srcdir = / s:$:/pru:
36bb57e4
MF
17446 p
17447 }' \
17448 <Make-common.sim >pru/Makesim1.tmp
17449 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >pru/Makesim2.tmp
17450 sed -e '/^## COMMON_PRE_/ r pru/Makesim1.tmp' \
17451 -e '/^## COMMON_POST_/ r pru/Makesim2.tmp' \
17452 <pru/Makefile.sim >pru/Makefile
17453 rm -f pru/Makesim1.tmp pru/Makesim2.tmp
17454 ;;
bc56166f
MF
17455 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
17456 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
36bb57e4
MF
17457 "rl78/Makefile":C) sed -n \
17458 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17459 /^srcdir = / s:$:/rl78:
36bb57e4
MF
17460 p
17461 }' \
17462 <Make-common.sim >rl78/Makesim1.tmp
17463 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rl78/Makesim2.tmp
17464 sed -e '/^## COMMON_PRE_/ r rl78/Makesim1.tmp' \
17465 -e '/^## COMMON_POST_/ r rl78/Makesim2.tmp' \
17466 <rl78/Makefile.sim >rl78/Makefile
17467 rm -f rl78/Makesim1.tmp rl78/Makesim2.tmp
17468 ;;
bc56166f 17469 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
e173c80f
MF
17470 "rx/Makefile":C) sed -n \
17471 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17472 /^srcdir = / s:$:/rx:
e173c80f
MF
17473 p
17474 }' \
17475 <Make-common.sim >rx/Makesim1.tmp
17476 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rx/Makesim2.tmp
17477 sed -e '/^## COMMON_PRE_/ r rx/Makesim1.tmp' \
17478 -e '/^## COMMON_POST_/ r rx/Makesim2.tmp' \
17479 <rx/Makefile.sim >rx/Makefile
17480 rm -f rx/Makesim1.tmp rx/Makesim2.tmp
17481 ;;
bc56166f 17482 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
36bb57e4
MF
17483 "sh/Makefile":C) sed -n \
17484 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17485 /^srcdir = / s:$:/sh:
36bb57e4
MF
17486 p
17487 }' \
17488 <Make-common.sim >sh/Makesim1.tmp
17489 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >sh/Makesim2.tmp
17490 sed -e '/^## COMMON_PRE_/ r sh/Makesim1.tmp' \
17491 -e '/^## COMMON_POST_/ r sh/Makesim2.tmp' \
17492 <sh/Makefile.sim >sh/Makefile
17493 rm -f sh/Makesim1.tmp sh/Makesim2.tmp
17494 ;;
bc56166f 17495 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
5d0b3088
MF
17496 "erc32/Makefile":C) sed -n \
17497 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17498 /^srcdir = / s:$:/erc32:
17499 p
17500 }' \
17501 <Make-common.sim >erc32/Makesim1.tmp
17502 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >erc32/Makesim2.tmp
17503 sed -e '/^## COMMON_PRE_/ r erc32/Makesim1.tmp' \
17504 -e '/^## COMMON_POST_/ r erc32/Makesim2.tmp' \
17505 <erc32/Makefile.sim >erc32/Makefile
17506 rm -f erc32/Makesim1.tmp erc32/Makesim2.tmp
17507 ;;
bc56166f
MF
17508 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
17509 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
bc56166f 17510 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
36bb57e4
MF
17511 "example-synacor/Makefile":C) sed -n \
17512 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17513 /^srcdir = / s:$:/example-synacor:
36bb57e4
MF
17514 p
17515 }' \
17516 <Make-common.sim >example-synacor/Makesim1.tmp
17517 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >example-synacor/Makesim2.tmp
17518 sed -e '/^## COMMON_PRE_/ r example-synacor/Makesim1.tmp' \
17519 -e '/^## COMMON_POST_/ r example-synacor/Makesim2.tmp' \
17520 <example-synacor/Makefile.sim >example-synacor/Makefile
17521 rm -f example-synacor/Makesim1.tmp example-synacor/Makesim2.tmp
17522 ;;
bc56166f 17523 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
81ecdfbb 17524
6bddc3e8 17525 esac
81ecdfbb
RW
17526done # for ac_tag
17527
17528
17529as_fn_exit 0
b7026657 17530_ACEOF
b7026657
AC
17531ac_clean_files=$ac_clean_files_save
17532
81ecdfbb 17533test $ac_write_fail = 0 ||
d0ac1c44 17534 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 17535
b7026657
AC
17536
17537# configure is writing to config.log, and then calls config.status.
17538# config.status does its own redirection, appending to config.log.
17539# Unfortunately, on DOS this fails, as config.log is still kept open
17540# by configure, so config.status won't be able to write to it; its
17541# output is simply discarded. So we exec the FD to /dev/null,
17542# effectively closing config.log, so it can be properly (re)opened and
17543# appended to by config.status. When coming back to configure, we
17544# need to make the FD available again.
17545if test "$no_create" != yes; then
17546 ac_cs_success=:
17547 ac_config_status_args=
17548 test "$silent" = yes &&
17549 ac_config_status_args="$ac_config_status_args --quiet"
17550 exec 5>/dev/null
17551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17552 exec 5>>config.log
17553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17554 # would make configure fail if this is the last instruction.
d0ac1c44 17555 $ac_cs_success || as_fn_exit 1
b7026657 17556fi
c906108c 17557
b7026657 17558#
81ecdfbb 17559# CONFIG_SUBDIRS section.
b7026657 17560#
c906108c
SS
17561if test "$no_recursion" != yes; then
17562
81ecdfbb
RW
17563 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17564 # so they do not pile up.
c906108c
SS
17565 ac_sub_configure_args=
17566 ac_prev=
d6416cdc
RW
17567 eval "set x $ac_configure_args"
17568 shift
17569 for ac_arg
17570 do
c906108c
SS
17571 if test -n "$ac_prev"; then
17572 ac_prev=
17573 continue
17574 fi
b7026657 17575 case $ac_arg in
c906108c
SS
17576 -cache-file | --cache-file | --cache-fil | --cache-fi \
17577 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17578 ac_prev=cache_file ;;
17579 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
b7026657
AC
17580 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17581 | --c=*)
17582 ;;
17583 --config-cache | -C)
c906108c
SS
17584 ;;
17585 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17586 ac_prev=srcdir ;;
17587 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17588 ;;
b7026657
AC
17589 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17590 ac_prev=prefix ;;
17591 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17592 ;;
81ecdfbb
RW
17593 --disable-option-checking)
17594 ;;
d6416cdc
RW
17595 *)
17596 case $ac_arg in
81ecdfbb 17597 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6416cdc 17598 esac
81ecdfbb 17599 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
c906108c
SS
17600 esac
17601 done
17602
b7026657
AC
17603 # Always prepend --prefix to ensure using the same prefix
17604 # in subdir configurations.
d6416cdc
RW
17605 ac_arg="--prefix=$prefix"
17606 case $ac_arg in
81ecdfbb 17607 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6416cdc 17608 esac
81ecdfbb
RW
17609 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17610
17611 # Pass --silent
17612 if test "$silent" = yes; then
17613 ac_sub_configure_args="--silent $ac_sub_configure_args"
17614 fi
17615
17616 # Always prepend --disable-option-checking to silence warnings, since
17617 # different subdirs can have different --enable and --with options.
17618 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
b7026657
AC
17619
17620 ac_popdir=`pwd`
17621 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
17622
17623 # Do not complain, so a configure script can configure whichever
17624 # parts of a large source tree are present.
d6416cdc 17625 test -d "$srcdir/$ac_dir" || continue
fdd6fa61 17626
81ecdfbb
RW
17627 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17628 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17629 $as_echo "$ac_msg" >&6
17630 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
17631 ac_builddir=.
17632
81ecdfbb
RW
17633case "$ac_dir" in
17634.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17635*)
17636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17637 # A ".." for each directory in $ac_dir_suffix.
17638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17639 case $ac_top_builddir_sub in
17640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17642 esac ;;
17643esac
17644ac_abs_top_builddir=$ac_pwd
17645ac_abs_builddir=$ac_pwd$ac_dir_suffix
17646# for backward compatibility:
17647ac_top_builddir=$ac_top_build_prefix
c906108c 17648
b7026657 17649case $srcdir in
81ecdfbb 17650 .) # We are building in place.
b7026657 17651 ac_srcdir=.
81ecdfbb
RW
17652 ac_top_srcdir=$ac_top_builddir_sub
17653 ac_abs_top_srcdir=$ac_pwd ;;
17654 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 17655 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
17656 ac_top_srcdir=$srcdir
17657 ac_abs_top_srcdir=$srcdir ;;
17658 *) # Relative name.
17659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17660 ac_top_srcdir=$ac_top_build_prefix$srcdir
17661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 17662esac
81ecdfbb 17663ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
c906108c 17664
c906108c 17665
d6416cdc 17666 cd "$ac_dir"
c906108c
SS
17667
17668 # Check for guested configure; otherwise get Cygnus style configure.
d6416cdc
RW
17669 if test -f "$ac_srcdir/configure.gnu"; then
17670 ac_sub_configure=$ac_srcdir/configure.gnu
17671 elif test -f "$ac_srcdir/configure"; then
17672 ac_sub_configure=$ac_srcdir/configure
17673 elif test -f "$ac_srcdir/configure.in"; then
17674 # This should be Cygnus configure.
17675 ac_sub_configure=$ac_aux_dir/configure
c906108c 17676 else
81ecdfbb
RW
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17678$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
17679 ac_sub_configure=
17680 fi
17681
17682 # The recursion is here.
17683 if test -n "$ac_sub_configure"; then
c906108c 17684 # Make the cache file name correct relative to the subdirectory.
b7026657
AC
17685 case $cache_file in
17686 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
81ecdfbb
RW
17687 *) # Relative name.
17688 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
c906108c 17689 esac
c906108c 17690
81ecdfbb
RW
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17692$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 17693 # The eval makes quoting arguments work.
d6416cdc
RW
17694 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17695 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
d0ac1c44 17696 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
c906108c
SS
17697 fi
17698
d6416cdc 17699 cd "$ac_popdir"
c906108c
SS
17700 done
17701fi
81ecdfbb
RW
17702if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17704$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17705fi
c906108c 17706
This page took 1.815993 seconds and 4 git commands to generate.