libtool.m4: fix the NM="/nm/over/here -B/option/with/path" case
[binutils-gdb.git] / sim / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
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>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if 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 --'
49 elif (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'
52 else
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'
72 fi
73
74 # The user is always right.
75 if 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 }
81 fi
82
83
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.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
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
102 IFS=$as_save_IFS
103
104 ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $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
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if 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
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
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'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 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"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
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
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
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
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
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.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $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
267 exit 255
268 fi
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."
276 else
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."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_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.
317 as_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.
327 as_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"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
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.
385 if (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 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # 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.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
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
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
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
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
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'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
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 |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
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; }
499
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
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
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `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';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
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.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_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.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='sim'
593 PACKAGE_TARNAME='sim'
594 PACKAGE_VERSION='0'
595 PACKAGE_STRING='sim 0'
596 PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
597 PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/'
598
599 # Factoring default headers for most tests.
600 ac_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
635 ac_header_list=
636 ac_func_list=
637 enable_option_checking=no
638 ac_subst_vars='am__EXEEXT_FALSE
639 am__EXEEXT_TRUE
640 LTLIBOBJS
641 SIM_RX_CYCLE_ACCURATE_FLAGS
642 SIM_FRV_TRAPDUMP_FLAGS
643 sim_float
644 sim_bitsize
645 SIM_INLINE
646 sim_hw_sockser
647 sim_hw_cflags
648 SIM_ENABLE_HW_FALSE
649 SIM_ENABLE_HW_TRUE
650 cgen
651 cgendir
652 CGEN_MAINT
653 ENABLE_SIM_FALSE
654 ENABLE_SIM_TRUE
655 SIM_ENABLE_IGEN_FALSE
656 SIM_ENABLE_IGEN_TRUE
657 CC_FOR_TARGET_EXAMPLE_SYNACOR
658 LD_FOR_TARGET_EXAMPLE_SYNACOR
659 AS_FOR_TARGET_EXAMPLE_SYNACOR
660 SIM_ENABLE_ARCH_v850_FALSE
661 SIM_ENABLE_ARCH_v850_TRUE
662 CC_FOR_TARGET_V850
663 LD_FOR_TARGET_V850
664 AS_FOR_TARGET_V850
665 SIM_ENABLE_ARCH_erc32_FALSE
666 SIM_ENABLE_ARCH_erc32_TRUE
667 CC_FOR_TARGET_ERC32
668 LD_FOR_TARGET_ERC32
669 AS_FOR_TARGET_ERC32
670 SIM_ENABLE_ARCH_sh_FALSE
671 SIM_ENABLE_ARCH_sh_TRUE
672 CC_FOR_TARGET_SH
673 LD_FOR_TARGET_SH
674 AS_FOR_TARGET_SH
675 SIM_ENABLE_ARCH_rx_FALSE
676 SIM_ENABLE_ARCH_rx_TRUE
677 CC_FOR_TARGET_RX
678 LD_FOR_TARGET_RX
679 AS_FOR_TARGET_RX
680 SIM_ENABLE_ARCH_rl78_FALSE
681 SIM_ENABLE_ARCH_rl78_TRUE
682 CC_FOR_TARGET_RL78
683 LD_FOR_TARGET_RL78
684 AS_FOR_TARGET_RL78
685 SIM_ENABLE_ARCH_riscv_FALSE
686 SIM_ENABLE_ARCH_riscv_TRUE
687 CC_FOR_TARGET_RISCV
688 LD_FOR_TARGET_RISCV
689 AS_FOR_TARGET_RISCV
690 SIM_ENABLE_ARCH_pru_FALSE
691 SIM_ENABLE_ARCH_pru_TRUE
692 CC_FOR_TARGET_PRU
693 LD_FOR_TARGET_PRU
694 AS_FOR_TARGET_PRU
695 SIM_ENABLE_ARCH_ppc_FALSE
696 SIM_ENABLE_ARCH_ppc_TRUE
697 CC_FOR_TARGET_PPC
698 LD_FOR_TARGET_PPC
699 AS_FOR_TARGET_PPC
700 SIM_ENABLE_ARCH_or1k_FALSE
701 SIM_ENABLE_ARCH_or1k_TRUE
702 CC_FOR_TARGET_OR1K
703 LD_FOR_TARGET_OR1K
704 AS_FOR_TARGET_OR1K
705 SIM_ENABLE_ARCH_msp430_FALSE
706 SIM_ENABLE_ARCH_msp430_TRUE
707 CC_FOR_TARGET_MSP430
708 LD_FOR_TARGET_MSP430
709 AS_FOR_TARGET_MSP430
710 SIM_ENABLE_ARCH_moxie_FALSE
711 SIM_ENABLE_ARCH_moxie_TRUE
712 CC_FOR_TARGET_MOXIE
713 LD_FOR_TARGET_MOXIE
714 AS_FOR_TARGET_MOXIE
715 SIM_ENABLE_ARCH_mn10300_FALSE
716 SIM_ENABLE_ARCH_mn10300_TRUE
717 CC_FOR_TARGET_MN10300
718 LD_FOR_TARGET_MN10300
719 AS_FOR_TARGET_MN10300
720 SIM_ENABLE_ARCH_mips_FALSE
721 SIM_ENABLE_ARCH_mips_TRUE
722 CC_FOR_TARGET_MIPS
723 LD_FOR_TARGET_MIPS
724 AS_FOR_TARGET_MIPS
725 SIM_ENABLE_ARCH_microblaze_FALSE
726 SIM_ENABLE_ARCH_microblaze_TRUE
727 CC_FOR_TARGET_MICROBLAZE
728 LD_FOR_TARGET_MICROBLAZE
729 AS_FOR_TARGET_MICROBLAZE
730 SIM_ENABLE_ARCH_mcore_FALSE
731 SIM_ENABLE_ARCH_mcore_TRUE
732 CC_FOR_TARGET_MCORE
733 LD_FOR_TARGET_MCORE
734 AS_FOR_TARGET_MCORE
735 SIM_ENABLE_ARCH_m68hc11_FALSE
736 SIM_ENABLE_ARCH_m68hc11_TRUE
737 CC_FOR_TARGET_M68HC11
738 LD_FOR_TARGET_M68HC11
739 AS_FOR_TARGET_M68HC11
740 SIM_ENABLE_ARCH_m32r_FALSE
741 SIM_ENABLE_ARCH_m32r_TRUE
742 CC_FOR_TARGET_M32R
743 LD_FOR_TARGET_M32R
744 AS_FOR_TARGET_M32R
745 SIM_ENABLE_ARCH_m32c_FALSE
746 SIM_ENABLE_ARCH_m32c_TRUE
747 CC_FOR_TARGET_M32C
748 LD_FOR_TARGET_M32C
749 AS_FOR_TARGET_M32C
750 SIM_ENABLE_ARCH_lm32_FALSE
751 SIM_ENABLE_ARCH_lm32_TRUE
752 CC_FOR_TARGET_LM32
753 LD_FOR_TARGET_LM32
754 AS_FOR_TARGET_LM32
755 SIM_ENABLE_ARCH_iq2000_FALSE
756 SIM_ENABLE_ARCH_iq2000_TRUE
757 CC_FOR_TARGET_IQ2000
758 LD_FOR_TARGET_IQ2000
759 AS_FOR_TARGET_IQ2000
760 SIM_ENABLE_ARCH_h8300_FALSE
761 SIM_ENABLE_ARCH_h8300_TRUE
762 CC_FOR_TARGET_H8300
763 LD_FOR_TARGET_H8300
764 AS_FOR_TARGET_H8300
765 SIM_ENABLE_ARCH_ft32_FALSE
766 SIM_ENABLE_ARCH_ft32_TRUE
767 CC_FOR_TARGET_FT32
768 LD_FOR_TARGET_FT32
769 AS_FOR_TARGET_FT32
770 SIM_ENABLE_ARCH_frv_FALSE
771 SIM_ENABLE_ARCH_frv_TRUE
772 CC_FOR_TARGET_FRV
773 LD_FOR_TARGET_FRV
774 AS_FOR_TARGET_FRV
775 SIM_ENABLE_ARCH_d10v_FALSE
776 SIM_ENABLE_ARCH_d10v_TRUE
777 CC_FOR_TARGET_D10V
778 LD_FOR_TARGET_D10V
779 AS_FOR_TARGET_D10V
780 SIM_ENABLE_ARCH_cris_FALSE
781 SIM_ENABLE_ARCH_cris_TRUE
782 CC_FOR_TARGET_CRIS
783 LD_FOR_TARGET_CRIS
784 AS_FOR_TARGET_CRIS
785 SIM_ENABLE_ARCH_cr16_FALSE
786 SIM_ENABLE_ARCH_cr16_TRUE
787 CC_FOR_TARGET_CR16
788 LD_FOR_TARGET_CR16
789 AS_FOR_TARGET_CR16
790 SIM_ENABLE_ARCH_bpf_FALSE
791 SIM_ENABLE_ARCH_bpf_TRUE
792 CC_FOR_TARGET_BPF
793 LD_FOR_TARGET_BPF
794 AS_FOR_TARGET_BPF
795 subdirs
796 SIM_ENABLE_ARCH_bfin_FALSE
797 SIM_ENABLE_ARCH_bfin_TRUE
798 CC_FOR_TARGET_BFIN
799 LD_FOR_TARGET_BFIN
800 AS_FOR_TARGET_BFIN
801 SIM_ENABLE_ARCH_avr_FALSE
802 SIM_ENABLE_ARCH_avr_TRUE
803 CC_FOR_TARGET_AVR
804 LD_FOR_TARGET_AVR
805 AS_FOR_TARGET_AVR
806 SIM_ENABLE_ARCH_arm_FALSE
807 SIM_ENABLE_ARCH_arm_TRUE
808 CC_FOR_TARGET_ARM
809 LD_FOR_TARGET_ARM
810 AS_FOR_TARGET_ARM
811 SIM_ENABLE_ARCH_aarch64_FALSE
812 SIM_ENABLE_ARCH_aarch64_TRUE
813 CC_FOR_TARGET_AARCH64
814 LD_FOR_TARGET_AARCH64
815 AS_FOR_TARGET_AARCH64
816 LD_FOR_TARGET
817 AS_FOR_TARGET
818 CC_FOR_TARGET
819 SIM_COMMON_BUILD_FALSE
820 SIM_COMMON_BUILD_TRUE
821 SIM_SUBDIRS
822 SIM_PRIMARY_TARGET
823 AM_BACKSLASH
824 AM_DEFAULT_VERBOSITY
825 AM_DEFAULT_V
826 AM_V
827 am__fastdepCC_FALSE
828 am__fastdepCC_TRUE
829 CCDEPMODE
830 am__nodep
831 AMDEPBACKSLASH
832 AMDEP_FALSE
833 AMDEP_TRUE
834 am__quote
835 am__include
836 DEPDIR
837 am__untar
838 am__tar
839 AMTAR
840 am__leading_dot
841 SET_MAKE
842 mkdir_p
843 MKDIR_P
844 INSTALL_STRIP_PROGRAM
845 install_sh
846 MAKEINFO
847 AUTOHEADER
848 AUTOMAKE
849 AUTOCONF
850 ACLOCAL
851 VERSION
852 PACKAGE
853 CYGPATH_W
854 am__isrc
855 MAINT
856 MAINTAINER_MODE_FALSE
857 MAINTAINER_MODE_TRUE
858 READLINE_CFLAGS
859 READLINE_LIB
860 TERMCAP_LIB
861 SDL_LIBS
862 SDL_CFLAGS
863 lt_cv_dlopen_libs
864 OTOOL64
865 OTOOL
866 LIPO
867 NMEDIT
868 DSYMUTIL
869 AWK
870 STRIP
871 OBJDUMP
872 LN_S
873 NM
874 ac_ct_DUMPBIN
875 DUMPBIN
876 LD
877 FGREP
878 SED
879 LIBTOOL
880 PLUGINS_FALSE
881 PLUGINS_TRUE
882 zlibinc
883 zlibdir
884 CATOBJEXT
885 GENCAT
886 INSTOBJEXT
887 DATADIRNAME
888 CATALOGS
889 POSUB
890 GMSGFMT
891 XGETTEXT
892 INCINTL
893 LIBINTL_DEP
894 LIBINTL
895 USE_NLS
896 LIBOBJS
897 C_DIALECT
898 PKG_CONFIG_LIBDIR
899 PKG_CONFIG_PATH
900 PKG_CONFIG
901 RANLIB
902 AR
903 LDFLAGS_FOR_BUILD
904 CFLAGS_FOR_BUILD
905 RANLIB_FOR_BUILD
906 CC_FOR_BUILD
907 AR_FOR_BUILD
908 DTC
909 INSTALL_DATA
910 INSTALL_SCRIPT
911 INSTALL_PROGRAM
912 EGREP
913 GREP
914 CPP
915 OBJEXT
916 EXEEXT
917 ac_ct_CC
918 CPPFLAGS
919 LDFLAGS
920 CFLAGS
921 CC
922 target_os
923 target_vendor
924 target_cpu
925 target
926 host_os
927 host_vendor
928 host_cpu
929 host
930 build_os
931 build_vendor
932 build_cpu
933 build
934 REPORT_BUGS_TEXI
935 REPORT_BUGS_TO
936 PKGVERSION
937 target_alias
938 host_alias
939 build_alias
940 LIBS
941 ECHO_T
942 ECHO_N
943 ECHO_C
944 DEFS
945 mandir
946 localedir
947 libdir
948 psdir
949 pdfdir
950 dvidir
951 htmldir
952 infodir
953 docdir
954 oldincludedir
955 includedir
956 localstatedir
957 sharedstatedir
958 sysconfdir
959 datadir
960 datarootdir
961 libexecdir
962 sbindir
963 bindir
964 program_transform_name
965 prefix
966 exec_prefix
967 PACKAGE_URL
968 PACKAGE_BUGREPORT
969 PACKAGE_STRING
970 PACKAGE_VERSION
971 PACKAGE_TARNAME
972 PACKAGE_NAME
973 PATH_SEPARATOR
974 SHELL
975 SIM_TOOLCHAIN_VARS
976 WERROR_CFLAGS
977 WARN_CFLAGS'
978 ac_subst_files=''
979 ac_user_opts='
980 enable_option_checking
981 with_pkgversion
982 with_bugurl
983 with_system_zlib
984 enable_plugins
985 enable_shared
986 enable_static
987 with_pic
988 enable_fast_install
989 with_gnu_ld
990 enable_libtool_lock
991 enable_maintainer_mode
992 enable_dependency_tracking
993 enable_silent_rules
994 enable_sim
995 enable_example_sims
996 enable_targets
997 enable_sim_alignment
998 enable_sim_assert
999 enable_cgen_maint
1000 enable_sim_debug
1001 enable_sim_endian
1002 enable_sim_environment
1003 enable_sim_hardware
1004 enable_sim_inline
1005 enable_sim_profile
1006 enable_sim_reserved_bits
1007 enable_sim_scache
1008 enable_sim_stdio
1009 enable_sim_trace
1010 enable_werror
1011 enable_build_warnings
1012 enable_sim_build_warnings
1013 enable_sim_frv_trapdump
1014 enable_sim_rx_cycle_accurate
1015 '
1016 ac_precious_vars='build_alias
1017 host_alias
1018 target_alias
1019 CC
1020 CFLAGS
1021 LDFLAGS
1022 LIBS
1023 CPPFLAGS
1024 CPP
1025 PKG_CONFIG
1026 PKG_CONFIG_PATH
1027 PKG_CONFIG_LIBDIR
1028 SDL_CFLAGS
1029 SDL_LIBS
1030 AS_FOR_TARGET_AARCH64
1031 LD_FOR_TARGET_AARCH64
1032 CC_FOR_TARGET_AARCH64
1033 AS_FOR_TARGET_ARM
1034 LD_FOR_TARGET_ARM
1035 CC_FOR_TARGET_ARM
1036 AS_FOR_TARGET_AVR
1037 LD_FOR_TARGET_AVR
1038 CC_FOR_TARGET_AVR
1039 AS_FOR_TARGET_BFIN
1040 LD_FOR_TARGET_BFIN
1041 CC_FOR_TARGET_BFIN
1042 AS_FOR_TARGET_BPF
1043 LD_FOR_TARGET_BPF
1044 CC_FOR_TARGET_BPF
1045 AS_FOR_TARGET_CR16
1046 LD_FOR_TARGET_CR16
1047 CC_FOR_TARGET_CR16
1048 AS_FOR_TARGET_CRIS
1049 LD_FOR_TARGET_CRIS
1050 CC_FOR_TARGET_CRIS
1051 AS_FOR_TARGET_D10V
1052 LD_FOR_TARGET_D10V
1053 CC_FOR_TARGET_D10V
1054 AS_FOR_TARGET_FRV
1055 LD_FOR_TARGET_FRV
1056 CC_FOR_TARGET_FRV
1057 AS_FOR_TARGET_FT32
1058 LD_FOR_TARGET_FT32
1059 CC_FOR_TARGET_FT32
1060 AS_FOR_TARGET_H8300
1061 LD_FOR_TARGET_H8300
1062 CC_FOR_TARGET_H8300
1063 AS_FOR_TARGET_IQ2000
1064 LD_FOR_TARGET_IQ2000
1065 CC_FOR_TARGET_IQ2000
1066 AS_FOR_TARGET_LM32
1067 LD_FOR_TARGET_LM32
1068 CC_FOR_TARGET_LM32
1069 AS_FOR_TARGET_M32C
1070 LD_FOR_TARGET_M32C
1071 CC_FOR_TARGET_M32C
1072 AS_FOR_TARGET_M32R
1073 LD_FOR_TARGET_M32R
1074 CC_FOR_TARGET_M32R
1075 AS_FOR_TARGET_M68HC11
1076 LD_FOR_TARGET_M68HC11
1077 CC_FOR_TARGET_M68HC11
1078 AS_FOR_TARGET_MCORE
1079 LD_FOR_TARGET_MCORE
1080 CC_FOR_TARGET_MCORE
1081 AS_FOR_TARGET_MICROBLAZE
1082 LD_FOR_TARGET_MICROBLAZE
1083 CC_FOR_TARGET_MICROBLAZE
1084 AS_FOR_TARGET_MIPS
1085 LD_FOR_TARGET_MIPS
1086 CC_FOR_TARGET_MIPS
1087 AS_FOR_TARGET_MN10300
1088 LD_FOR_TARGET_MN10300
1089 CC_FOR_TARGET_MN10300
1090 AS_FOR_TARGET_MOXIE
1091 LD_FOR_TARGET_MOXIE
1092 CC_FOR_TARGET_MOXIE
1093 AS_FOR_TARGET_MSP430
1094 LD_FOR_TARGET_MSP430
1095 CC_FOR_TARGET_MSP430
1096 AS_FOR_TARGET_OR1K
1097 LD_FOR_TARGET_OR1K
1098 CC_FOR_TARGET_OR1K
1099 AS_FOR_TARGET_PPC
1100 LD_FOR_TARGET_PPC
1101 CC_FOR_TARGET_PPC
1102 AS_FOR_TARGET_PRU
1103 LD_FOR_TARGET_PRU
1104 CC_FOR_TARGET_PRU
1105 AS_FOR_TARGET_RISCV
1106 LD_FOR_TARGET_RISCV
1107 CC_FOR_TARGET_RISCV
1108 AS_FOR_TARGET_RL78
1109 LD_FOR_TARGET_RL78
1110 CC_FOR_TARGET_RL78
1111 AS_FOR_TARGET_RX
1112 LD_FOR_TARGET_RX
1113 CC_FOR_TARGET_RX
1114 AS_FOR_TARGET_SH
1115 LD_FOR_TARGET_SH
1116 CC_FOR_TARGET_SH
1117 AS_FOR_TARGET_ERC32
1118 LD_FOR_TARGET_ERC32
1119 CC_FOR_TARGET_ERC32
1120 AS_FOR_TARGET_V850
1121 LD_FOR_TARGET_V850
1122 CC_FOR_TARGET_V850
1123 AS_FOR_TARGET_EXAMPLE_SYNACOR
1124 LD_FOR_TARGET_EXAMPLE_SYNACOR
1125 CC_FOR_TARGET_EXAMPLE_SYNACOR'
1126 ac_subdirs_all='bpf
1127 mips
1128 mn10300
1129 or1k
1130 ppc
1131 riscv
1132 v850'
1133
1134 # Initialize some variables set by options.
1135 ac_init_help=
1136 ac_init_version=false
1137 ac_unrecognized_opts=
1138 ac_unrecognized_sep=
1139 # The variables have the same names as the options, with
1140 # dashes changed to underlines.
1141 cache_file=/dev/null
1142 exec_prefix=NONE
1143 no_create=
1144 no_recursion=
1145 prefix=NONE
1146 program_prefix=NONE
1147 program_suffix=NONE
1148 program_transform_name=s,x,x,
1149 silent=
1150 site=
1151 srcdir=
1152 verbose=
1153 x_includes=NONE
1154 x_libraries=NONE
1155
1156 # Installation directory options.
1157 # These are left unexpanded so users can "make install exec_prefix=/foo"
1158 # and all the variables that are supposed to be based on exec_prefix
1159 # by default will actually change.
1160 # Use braces instead of parens because sh, perl, etc. also accept them.
1161 # (The list follows the same order as the GNU Coding Standards.)
1162 bindir='${exec_prefix}/bin'
1163 sbindir='${exec_prefix}/sbin'
1164 libexecdir='${exec_prefix}/libexec'
1165 datarootdir='${prefix}/share'
1166 datadir='${datarootdir}'
1167 sysconfdir='${prefix}/etc'
1168 sharedstatedir='${prefix}/com'
1169 localstatedir='${prefix}/var'
1170 includedir='${prefix}/include'
1171 oldincludedir='/usr/include'
1172 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1173 infodir='${datarootdir}/info'
1174 htmldir='${docdir}'
1175 dvidir='${docdir}'
1176 pdfdir='${docdir}'
1177 psdir='${docdir}'
1178 libdir='${exec_prefix}/lib'
1179 localedir='${datarootdir}/locale'
1180 mandir='${datarootdir}/man'
1181
1182 ac_prev=
1183 ac_dashdash=
1184 for ac_option
1185 do
1186 # If the previous option needs an argument, assign it.
1187 if test -n "$ac_prev"; then
1188 eval $ac_prev=\$ac_option
1189 ac_prev=
1190 continue
1191 fi
1192
1193 case $ac_option in
1194 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1195 *=) ac_optarg= ;;
1196 *) ac_optarg=yes ;;
1197 esac
1198
1199 # Accept the important Cygnus configure options, so we can diagnose typos.
1200
1201 case $ac_dashdash$ac_option in
1202 --)
1203 ac_dashdash=yes ;;
1204
1205 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1206 ac_prev=bindir ;;
1207 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1208 bindir=$ac_optarg ;;
1209
1210 -build | --build | --buil | --bui | --bu)
1211 ac_prev=build_alias ;;
1212 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1213 build_alias=$ac_optarg ;;
1214
1215 -cache-file | --cache-file | --cache-fil | --cache-fi \
1216 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1217 ac_prev=cache_file ;;
1218 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1219 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1220 cache_file=$ac_optarg ;;
1221
1222 --config-cache | -C)
1223 cache_file=config.cache ;;
1224
1225 -datadir | --datadir | --datadi | --datad)
1226 ac_prev=datadir ;;
1227 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1228 datadir=$ac_optarg ;;
1229
1230 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1231 | --dataroo | --dataro | --datar)
1232 ac_prev=datarootdir ;;
1233 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1234 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1235 datarootdir=$ac_optarg ;;
1236
1237 -disable-* | --disable-*)
1238 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 as_fn_error $? "invalid feature name: $ac_useropt"
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1245 *"
1246 "enable_$ac_useropt"
1247 "*) ;;
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1250 esac
1251 eval enable_$ac_useropt=no ;;
1252
1253 -docdir | --docdir | --docdi | --doc | --do)
1254 ac_prev=docdir ;;
1255 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1256 docdir=$ac_optarg ;;
1257
1258 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1259 ac_prev=dvidir ;;
1260 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1261 dvidir=$ac_optarg ;;
1262
1263 -enable-* | --enable-*)
1264 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error $? "invalid feature name: $ac_useropt"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272 "enable_$ac_useropt"
1273 "*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval enable_$ac_useropt=\$ac_optarg ;;
1278
1279 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1280 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1281 | --exec | --exe | --ex)
1282 ac_prev=exec_prefix ;;
1283 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1284 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1285 | --exec=* | --exe=* | --ex=*)
1286 exec_prefix=$ac_optarg ;;
1287
1288 -gas | --gas | --ga | --g)
1289 # Obsolete; use --with-gas.
1290 with_gas=yes ;;
1291
1292 -help | --help | --hel | --he | -h)
1293 ac_init_help=long ;;
1294 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1295 ac_init_help=recursive ;;
1296 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1297 ac_init_help=short ;;
1298
1299 -host | --host | --hos | --ho)
1300 ac_prev=host_alias ;;
1301 -host=* | --host=* | --hos=* | --ho=*)
1302 host_alias=$ac_optarg ;;
1303
1304 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1305 ac_prev=htmldir ;;
1306 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1307 | --ht=*)
1308 htmldir=$ac_optarg ;;
1309
1310 -includedir | --includedir | --includedi | --included | --include \
1311 | --includ | --inclu | --incl | --inc)
1312 ac_prev=includedir ;;
1313 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1314 | --includ=* | --inclu=* | --incl=* | --inc=*)
1315 includedir=$ac_optarg ;;
1316
1317 -infodir | --infodir | --infodi | --infod | --info | --inf)
1318 ac_prev=infodir ;;
1319 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1320 infodir=$ac_optarg ;;
1321
1322 -libdir | --libdir | --libdi | --libd)
1323 ac_prev=libdir ;;
1324 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1325 libdir=$ac_optarg ;;
1326
1327 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1328 | --libexe | --libex | --libe)
1329 ac_prev=libexecdir ;;
1330 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1331 | --libexe=* | --libex=* | --libe=*)
1332 libexecdir=$ac_optarg ;;
1333
1334 -localedir | --localedir | --localedi | --localed | --locale)
1335 ac_prev=localedir ;;
1336 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1337 localedir=$ac_optarg ;;
1338
1339 -localstatedir | --localstatedir | --localstatedi | --localstated \
1340 | --localstate | --localstat | --localsta | --localst | --locals)
1341 ac_prev=localstatedir ;;
1342 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1343 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1344 localstatedir=$ac_optarg ;;
1345
1346 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1347 ac_prev=mandir ;;
1348 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1349 mandir=$ac_optarg ;;
1350
1351 -nfp | --nfp | --nf)
1352 # Obsolete; use --without-fp.
1353 with_fp=no ;;
1354
1355 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1356 | --no-cr | --no-c | -n)
1357 no_create=yes ;;
1358
1359 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1360 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1361 no_recursion=yes ;;
1362
1363 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1364 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1365 | --oldin | --oldi | --old | --ol | --o)
1366 ac_prev=oldincludedir ;;
1367 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1368 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1369 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1370 oldincludedir=$ac_optarg ;;
1371
1372 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1373 ac_prev=prefix ;;
1374 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1375 prefix=$ac_optarg ;;
1376
1377 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1378 | --program-pre | --program-pr | --program-p)
1379 ac_prev=program_prefix ;;
1380 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1381 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1382 program_prefix=$ac_optarg ;;
1383
1384 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1385 | --program-suf | --program-su | --program-s)
1386 ac_prev=program_suffix ;;
1387 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1388 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1389 program_suffix=$ac_optarg ;;
1390
1391 -program-transform-name | --program-transform-name \
1392 | --program-transform-nam | --program-transform-na \
1393 | --program-transform-n | --program-transform- \
1394 | --program-transform | --program-transfor \
1395 | --program-transfo | --program-transf \
1396 | --program-trans | --program-tran \
1397 | --progr-tra | --program-tr | --program-t)
1398 ac_prev=program_transform_name ;;
1399 -program-transform-name=* | --program-transform-name=* \
1400 | --program-transform-nam=* | --program-transform-na=* \
1401 | --program-transform-n=* | --program-transform-=* \
1402 | --program-transform=* | --program-transfor=* \
1403 | --program-transfo=* | --program-transf=* \
1404 | --program-trans=* | --program-tran=* \
1405 | --progr-tra=* | --program-tr=* | --program-t=*)
1406 program_transform_name=$ac_optarg ;;
1407
1408 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1409 ac_prev=pdfdir ;;
1410 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1411 pdfdir=$ac_optarg ;;
1412
1413 -psdir | --psdir | --psdi | --psd | --ps)
1414 ac_prev=psdir ;;
1415 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1416 psdir=$ac_optarg ;;
1417
1418 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1419 | -silent | --silent | --silen | --sile | --sil)
1420 silent=yes ;;
1421
1422 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1423 ac_prev=sbindir ;;
1424 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1425 | --sbi=* | --sb=*)
1426 sbindir=$ac_optarg ;;
1427
1428 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1429 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1430 | --sharedst | --shareds | --shared | --share | --shar \
1431 | --sha | --sh)
1432 ac_prev=sharedstatedir ;;
1433 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1434 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1435 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1436 | --sha=* | --sh=*)
1437 sharedstatedir=$ac_optarg ;;
1438
1439 -site | --site | --sit)
1440 ac_prev=site ;;
1441 -site=* | --site=* | --sit=*)
1442 site=$ac_optarg ;;
1443
1444 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1445 ac_prev=srcdir ;;
1446 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1447 srcdir=$ac_optarg ;;
1448
1449 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1450 | --syscon | --sysco | --sysc | --sys | --sy)
1451 ac_prev=sysconfdir ;;
1452 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1453 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1454 sysconfdir=$ac_optarg ;;
1455
1456 -target | --target | --targe | --targ | --tar | --ta | --t)
1457 ac_prev=target_alias ;;
1458 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1459 target_alias=$ac_optarg ;;
1460
1461 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1462 verbose=yes ;;
1463
1464 -version | --version | --versio | --versi | --vers | -V)
1465 ac_init_version=: ;;
1466
1467 -with-* | --with-*)
1468 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1469 # Reject names that are not valid shell variable names.
1470 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1471 as_fn_error $? "invalid package name: $ac_useropt"
1472 ac_useropt_orig=$ac_useropt
1473 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1474 case $ac_user_opts in
1475 *"
1476 "with_$ac_useropt"
1477 "*) ;;
1478 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1479 ac_unrecognized_sep=', ';;
1480 esac
1481 eval with_$ac_useropt=\$ac_optarg ;;
1482
1483 -without-* | --without-*)
1484 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1485 # Reject names that are not valid shell variable names.
1486 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1487 as_fn_error $? "invalid package name: $ac_useropt"
1488 ac_useropt_orig=$ac_useropt
1489 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1490 case $ac_user_opts in
1491 *"
1492 "with_$ac_useropt"
1493 "*) ;;
1494 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1495 ac_unrecognized_sep=', ';;
1496 esac
1497 eval with_$ac_useropt=no ;;
1498
1499 --x)
1500 # Obsolete; use --with-x.
1501 with_x=yes ;;
1502
1503 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1504 | --x-incl | --x-inc | --x-in | --x-i)
1505 ac_prev=x_includes ;;
1506 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1507 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1508 x_includes=$ac_optarg ;;
1509
1510 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1511 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1512 ac_prev=x_libraries ;;
1513 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1514 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1515 x_libraries=$ac_optarg ;;
1516
1517 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1518 Try \`$0 --help' for more information"
1519 ;;
1520
1521 *=*)
1522 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1523 # Reject names that are not valid shell variable names.
1524 case $ac_envvar in #(
1525 '' | [0-9]* | *[!_$as_cr_alnum]* )
1526 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1527 esac
1528 eval $ac_envvar=\$ac_optarg
1529 export $ac_envvar ;;
1530
1531 *)
1532 # FIXME: should be removed in autoconf 3.0.
1533 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1534 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1535 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1536 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1537 ;;
1538
1539 esac
1540 done
1541
1542 if test -n "$ac_prev"; then
1543 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1544 as_fn_error $? "missing argument to $ac_option"
1545 fi
1546
1547 if test -n "$ac_unrecognized_opts"; then
1548 case $enable_option_checking in
1549 no) ;;
1550 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1551 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1552 esac
1553 fi
1554
1555 # Check all directory arguments for consistency.
1556 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1557 datadir sysconfdir sharedstatedir localstatedir includedir \
1558 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1559 libdir localedir mandir
1560 do
1561 eval ac_val=\$$ac_var
1562 # Remove trailing slashes.
1563 case $ac_val in
1564 */ )
1565 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1566 eval $ac_var=\$ac_val;;
1567 esac
1568 # Be sure to have absolute directory names.
1569 case $ac_val in
1570 [\\/$]* | ?:[\\/]* ) continue;;
1571 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1572 esac
1573 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1574 done
1575
1576 # There might be people who depend on the old broken behavior: `$host'
1577 # used to hold the argument of --host etc.
1578 # FIXME: To remove some day.
1579 build=$build_alias
1580 host=$host_alias
1581 target=$target_alias
1582
1583 # FIXME: To remove some day.
1584 if test "x$host_alias" != x; then
1585 if test "x$build_alias" = x; then
1586 cross_compiling=maybe
1587 elif test "x$build_alias" != "x$host_alias"; then
1588 cross_compiling=yes
1589 fi
1590 fi
1591
1592 ac_tool_prefix=
1593 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1594
1595 test "$silent" = yes && exec 6>/dev/null
1596
1597
1598 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1599 ac_ls_di=`ls -di .` &&
1600 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1601 as_fn_error $? "working directory cannot be determined"
1602 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1603 as_fn_error $? "pwd does not report name of working directory"
1604
1605
1606 # Find the source files, if location was not specified.
1607 if test -z "$srcdir"; then
1608 ac_srcdir_defaulted=yes
1609 # Try the directory containing this script, then the parent directory.
1610 ac_confdir=`$as_dirname -- "$as_myself" ||
1611 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1612 X"$as_myself" : 'X\(//\)[^/]' \| \
1613 X"$as_myself" : 'X\(//\)$' \| \
1614 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1615 $as_echo X"$as_myself" |
1616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1617 s//\1/
1618 q
1619 }
1620 /^X\(\/\/\)[^/].*/{
1621 s//\1/
1622 q
1623 }
1624 /^X\(\/\/\)$/{
1625 s//\1/
1626 q
1627 }
1628 /^X\(\/\).*/{
1629 s//\1/
1630 q
1631 }
1632 s/.*/./; q'`
1633 srcdir=$ac_confdir
1634 if test ! -r "$srcdir/$ac_unique_file"; then
1635 srcdir=..
1636 fi
1637 else
1638 ac_srcdir_defaulted=no
1639 fi
1640 if test ! -r "$srcdir/$ac_unique_file"; then
1641 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1642 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1643 fi
1644 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1645 ac_abs_confdir=`(
1646 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1647 pwd)`
1648 # When building in place, set srcdir=.
1649 if test "$ac_abs_confdir" = "$ac_pwd"; then
1650 srcdir=.
1651 fi
1652 # Remove unnecessary trailing slashes from srcdir.
1653 # Double slashes in file names in object file debugging info
1654 # mess up M-x gdb in Emacs.
1655 case $srcdir in
1656 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1657 esac
1658 for ac_var in $ac_precious_vars; do
1659 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1660 eval ac_env_${ac_var}_value=\$${ac_var}
1661 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1662 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1663 done
1664
1665 #
1666 # Report the --help message.
1667 #
1668 if test "$ac_init_help" = "long"; then
1669 # Omit some internal or obsolete options to make the list less imposing.
1670 # This message is too long to be a string in the A/UX 3.1 sh.
1671 cat <<_ACEOF
1672 \`configure' configures sim 0 to adapt to many kinds of systems.
1673
1674 Usage: $0 [OPTION]... [VAR=VALUE]...
1675
1676 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1677 VAR=VALUE. See below for descriptions of some of the useful variables.
1678
1679 Defaults for the options are specified in brackets.
1680
1681 Configuration:
1682 -h, --help display this help and exit
1683 --help=short display options specific to this package
1684 --help=recursive display the short help of all the included packages
1685 -V, --version display version information and exit
1686 -q, --quiet, --silent do not print \`checking ...' messages
1687 --cache-file=FILE cache test results in FILE [disabled]
1688 -C, --config-cache alias for \`--cache-file=config.cache'
1689 -n, --no-create do not create output files
1690 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1691
1692 Installation directories:
1693 --prefix=PREFIX install architecture-independent files in PREFIX
1694 [$ac_default_prefix]
1695 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1696 [PREFIX]
1697
1698 By default, \`make install' will install all the files in
1699 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1700 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1701 for instance \`--prefix=\$HOME'.
1702
1703 For better control, use the options below.
1704
1705 Fine tuning of the installation directories:
1706 --bindir=DIR user executables [EPREFIX/bin]
1707 --sbindir=DIR system admin executables [EPREFIX/sbin]
1708 --libexecdir=DIR program executables [EPREFIX/libexec]
1709 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1710 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1711 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1712 --libdir=DIR object code libraries [EPREFIX/lib]
1713 --includedir=DIR C header files [PREFIX/include]
1714 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1715 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1716 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1717 --infodir=DIR info documentation [DATAROOTDIR/info]
1718 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1719 --mandir=DIR man documentation [DATAROOTDIR/man]
1720 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1721 --htmldir=DIR html documentation [DOCDIR]
1722 --dvidir=DIR dvi documentation [DOCDIR]
1723 --pdfdir=DIR pdf documentation [DOCDIR]
1724 --psdir=DIR ps documentation [DOCDIR]
1725 _ACEOF
1726
1727 cat <<\_ACEOF
1728
1729 Program names:
1730 --program-prefix=PREFIX prepend PREFIX to installed program names
1731 --program-suffix=SUFFIX append SUFFIX to installed program names
1732 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1733
1734 System types:
1735 --build=BUILD configure for building on BUILD [guessed]
1736 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1737 --target=TARGET configure for building compilers for TARGET [HOST]
1738 _ACEOF
1739 fi
1740
1741 if test -n "$ac_init_help"; then
1742 case $ac_init_help in
1743 short | recursive ) echo "Configuration of sim 0:";;
1744 esac
1745 cat <<\_ACEOF
1746
1747 Optional Features:
1748 --disable-option-checking ignore unrecognized --enable/--with options
1749 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1750 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1751 --enable-plugins Enable support for plugins
1752 --enable-shared[=PKGS] build shared libraries [default=yes]
1753 --enable-static[=PKGS] build static libraries [default=yes]
1754 --enable-fast-install[=PKGS]
1755 optimize for fast installation [default=yes]
1756 --disable-libtool-lock avoid locking (might break parallel builds)
1757 --enable-maintainer-mode
1758 enable make rules and dependencies not useful (and
1759 sometimes confusing) to the casual installer
1760 --enable-dependency-tracking
1761 do not reject slow dependency extractors
1762 --disable-dependency-tracking
1763 speeds up one-time build
1764 --enable-silent-rules less verbose build output (undo: "make V=1")
1765 --disable-silent-rules verbose build output (undo: "make V=0")
1766 --enable-sim Enable the GNU simulator
1767 --enable-example-sims enable example GNU simulators
1768 --enable-targets alternative target configurations
1769 --enable-sim-alignment=align
1770 Specify strict, nonstrict or forced alignment of
1771 memory accesses
1772 --enable-sim-assert Specify whether to perform random assertions
1773 --enable-cgen-maint=DIR build cgen generated files
1774 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1775 itself)
1776 --enable-sim-endian=endian
1777 Specify target byte endian orientation
1778 --enable-sim-environment=environment
1779 Specify mixed, user, virtual or operating
1780 environment
1781 --enable-sim-hardware Whether to enable hardware/device simulation
1782 --enable-sim-inline=inlines
1783 Specify which functions should be inlined
1784 --enable-sim-profile=opts
1785 Enable profiling flags
1786 --enable-sim-reserved-bits
1787 Specify whether to check reserved bits in
1788 instruction
1789 --enable-sim-scache=size
1790 Specify simulator execution cache size
1791 --enable-sim-stdio Specify whether to use stdio for console
1792 input/output
1793 --enable-sim-trace=opts Enable tracing of simulated programs
1794 --enable-werror treat compile warnings as errors
1795 --enable-build-warnings enable build-time compiler warnings if gcc is used
1796 --enable-sim-build-warnings
1797 enable SIM specific build-time compiler warnings if
1798 gcc is used
1799 --enable-sim-frv-trapdump
1800 Make unknown traps dump the registers
1801 --disable-sim-rx-cycle-accurate
1802 Disable cycle accurate simulation (faster runtime)
1803
1804 Optional Packages:
1805 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1806 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1807 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1808 --with-bugurl=URL Direct users to URL to report a bug
1809 --with-system-zlib use installed libz
1810 --with-pic try to use only PIC/non-PIC objects [default=use
1811 both]
1812 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1813
1814 Some influential environment variables:
1815 CC C compiler command
1816 CFLAGS C compiler flags
1817 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1818 nonstandard directory <lib dir>
1819 LIBS libraries to pass to the linker, e.g. -l<library>
1820 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1821 you have headers in a nonstandard directory <include dir>
1822 CPP C preprocessor
1823 PKG_CONFIG path to pkg-config utility
1824 PKG_CONFIG_PATH
1825 directories to add to pkg-config's search path
1826 PKG_CONFIG_LIBDIR
1827 path overriding pkg-config's built-in search path
1828 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1829 SDL_LIBS linker flags for SDL, overriding pkg-config
1830 AS_FOR_TARGET_AARCH64
1831 Assembler for aarch64 tests
1832 LD_FOR_TARGET_AARCH64
1833 Linker for aarch64 tests
1834 CC_FOR_TARGET_AARCH64
1835 C compiler for aarch64 tests
1836 AS_FOR_TARGET_ARM
1837 Assembler for arm tests
1838 LD_FOR_TARGET_ARM
1839 Linker for arm tests
1840 CC_FOR_TARGET_ARM
1841 C compiler for arm tests
1842 AS_FOR_TARGET_AVR
1843 Assembler for avr tests
1844 LD_FOR_TARGET_AVR
1845 Linker for avr tests
1846 CC_FOR_TARGET_AVR
1847 C compiler for avr tests
1848 AS_FOR_TARGET_BFIN
1849 Assembler for bfin tests
1850 LD_FOR_TARGET_BFIN
1851 Linker for bfin tests
1852 CC_FOR_TARGET_BFIN
1853 C compiler for bfin tests
1854 AS_FOR_TARGET_BPF
1855 Assembler for bpf tests
1856 LD_FOR_TARGET_BPF
1857 Linker for bpf tests
1858 CC_FOR_TARGET_BPF
1859 C compiler for bpf tests
1860 AS_FOR_TARGET_CR16
1861 Assembler for cr16 tests
1862 LD_FOR_TARGET_CR16
1863 Linker for cr16 tests
1864 CC_FOR_TARGET_CR16
1865 C compiler for cr16 tests
1866 AS_FOR_TARGET_CRIS
1867 Assembler for cris tests
1868 LD_FOR_TARGET_CRIS
1869 Linker for cris tests
1870 CC_FOR_TARGET_CRIS
1871 C compiler for cris tests
1872 AS_FOR_TARGET_D10V
1873 Assembler for d10v tests
1874 LD_FOR_TARGET_D10V
1875 Linker for d10v tests
1876 CC_FOR_TARGET_D10V
1877 C compiler for d10v tests
1878 AS_FOR_TARGET_FRV
1879 Assembler for frv tests
1880 LD_FOR_TARGET_FRV
1881 Linker for frv tests
1882 CC_FOR_TARGET_FRV
1883 C compiler for frv tests
1884 AS_FOR_TARGET_FT32
1885 Assembler for ft32 tests
1886 LD_FOR_TARGET_FT32
1887 Linker for ft32 tests
1888 CC_FOR_TARGET_FT32
1889 C compiler for ft32 tests
1890 AS_FOR_TARGET_H8300
1891 Assembler for h8300 tests
1892 LD_FOR_TARGET_H8300
1893 Linker for h8300 tests
1894 CC_FOR_TARGET_H8300
1895 C compiler for h8300 tests
1896 AS_FOR_TARGET_IQ2000
1897 Assembler for iq2000 tests
1898 LD_FOR_TARGET_IQ2000
1899 Linker for iq2000 tests
1900 CC_FOR_TARGET_IQ2000
1901 C compiler for iq2000 tests
1902 AS_FOR_TARGET_LM32
1903 Assembler for lm32 tests
1904 LD_FOR_TARGET_LM32
1905 Linker for lm32 tests
1906 CC_FOR_TARGET_LM32
1907 C compiler for lm32 tests
1908 AS_FOR_TARGET_M32C
1909 Assembler for m32c tests
1910 LD_FOR_TARGET_M32C
1911 Linker for m32c tests
1912 CC_FOR_TARGET_M32C
1913 C compiler for m32c tests
1914 AS_FOR_TARGET_M32R
1915 Assembler for m32r tests
1916 LD_FOR_TARGET_M32R
1917 Linker for m32r tests
1918 CC_FOR_TARGET_M32R
1919 C compiler for m32r tests
1920 AS_FOR_TARGET_M68HC11
1921 Assembler for m68hc11 tests
1922 LD_FOR_TARGET_M68HC11
1923 Linker for m68hc11 tests
1924 CC_FOR_TARGET_M68HC11
1925 C compiler for m68hc11 tests
1926 AS_FOR_TARGET_MCORE
1927 Assembler for mcore tests
1928 LD_FOR_TARGET_MCORE
1929 Linker for mcore tests
1930 CC_FOR_TARGET_MCORE
1931 C compiler for mcore tests
1932 AS_FOR_TARGET_MICROBLAZE
1933 Assembler for microblaze tests
1934 LD_FOR_TARGET_MICROBLAZE
1935 Linker for microblaze tests
1936 CC_FOR_TARGET_MICROBLAZE
1937 C compiler for microblaze tests
1938 AS_FOR_TARGET_MIPS
1939 Assembler for mips tests
1940 LD_FOR_TARGET_MIPS
1941 Linker for mips tests
1942 CC_FOR_TARGET_MIPS
1943 C compiler for mips tests
1944 AS_FOR_TARGET_MN10300
1945 Assembler for mn10300 tests
1946 LD_FOR_TARGET_MN10300
1947 Linker for mn10300 tests
1948 CC_FOR_TARGET_MN10300
1949 C compiler for mn10300 tests
1950 AS_FOR_TARGET_MOXIE
1951 Assembler for moxie tests
1952 LD_FOR_TARGET_MOXIE
1953 Linker for moxie tests
1954 CC_FOR_TARGET_MOXIE
1955 C compiler for moxie tests
1956 AS_FOR_TARGET_MSP430
1957 Assembler for msp430 tests
1958 LD_FOR_TARGET_MSP430
1959 Linker for msp430 tests
1960 CC_FOR_TARGET_MSP430
1961 C compiler for msp430 tests
1962 AS_FOR_TARGET_OR1K
1963 Assembler for or1k tests
1964 LD_FOR_TARGET_OR1K
1965 Linker for or1k tests
1966 CC_FOR_TARGET_OR1K
1967 C compiler for or1k tests
1968 AS_FOR_TARGET_PPC
1969 Assembler for ppc tests
1970 LD_FOR_TARGET_PPC
1971 Linker for ppc tests
1972 CC_FOR_TARGET_PPC
1973 C compiler for ppc tests
1974 AS_FOR_TARGET_PRU
1975 Assembler for pru tests
1976 LD_FOR_TARGET_PRU
1977 Linker for pru tests
1978 CC_FOR_TARGET_PRU
1979 C compiler for pru tests
1980 AS_FOR_TARGET_RISCV
1981 Assembler for riscv tests
1982 LD_FOR_TARGET_RISCV
1983 Linker for riscv tests
1984 CC_FOR_TARGET_RISCV
1985 C compiler for riscv tests
1986 AS_FOR_TARGET_RL78
1987 Assembler for rl78 tests
1988 LD_FOR_TARGET_RL78
1989 Linker for rl78 tests
1990 CC_FOR_TARGET_RL78
1991 C compiler for rl78 tests
1992 AS_FOR_TARGET_RX
1993 Assembler for rx tests
1994 LD_FOR_TARGET_RX
1995 Linker for rx tests
1996 CC_FOR_TARGET_RX
1997 C compiler for rx tests
1998 AS_FOR_TARGET_SH
1999 Assembler for sh tests
2000 LD_FOR_TARGET_SH
2001 Linker for sh tests
2002 CC_FOR_TARGET_SH
2003 C compiler for sh tests
2004 AS_FOR_TARGET_ERC32
2005 Assembler for erc32 tests
2006 LD_FOR_TARGET_ERC32
2007 Linker for erc32 tests
2008 CC_FOR_TARGET_ERC32
2009 C compiler for erc32 tests
2010 AS_FOR_TARGET_V850
2011 Assembler for v850 tests
2012 LD_FOR_TARGET_V850
2013 Linker for v850 tests
2014 CC_FOR_TARGET_V850
2015 C compiler for v850 tests
2016 AS_FOR_TARGET_EXAMPLE_SYNACOR
2017 Assembler for example-synacor tests
2018 LD_FOR_TARGET_EXAMPLE_SYNACOR
2019 Linker for example-synacor tests
2020 CC_FOR_TARGET_EXAMPLE_SYNACOR
2021 C compiler for example-synacor tests
2022
2023 Use these variables to override the choices made by `configure' or to help
2024 it to find libraries and programs with nonstandard names/locations.
2025
2026 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
2027 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
2028 _ACEOF
2029 ac_status=$?
2030 fi
2031
2032 if test "$ac_init_help" = "recursive"; then
2033 # If there are subdirs, report their specific --help.
2034 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2035 test -d "$ac_dir" ||
2036 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2037 continue
2038 ac_builddir=.
2039
2040 case "$ac_dir" in
2041 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2042 *)
2043 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2044 # A ".." for each directory in $ac_dir_suffix.
2045 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2046 case $ac_top_builddir_sub in
2047 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2048 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2049 esac ;;
2050 esac
2051 ac_abs_top_builddir=$ac_pwd
2052 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2053 # for backward compatibility:
2054 ac_top_builddir=$ac_top_build_prefix
2055
2056 case $srcdir in
2057 .) # We are building in place.
2058 ac_srcdir=.
2059 ac_top_srcdir=$ac_top_builddir_sub
2060 ac_abs_top_srcdir=$ac_pwd ;;
2061 [\\/]* | ?:[\\/]* ) # Absolute name.
2062 ac_srcdir=$srcdir$ac_dir_suffix;
2063 ac_top_srcdir=$srcdir
2064 ac_abs_top_srcdir=$srcdir ;;
2065 *) # Relative name.
2066 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2067 ac_top_srcdir=$ac_top_build_prefix$srcdir
2068 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2069 esac
2070 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2071
2072 cd "$ac_dir" || { ac_status=$?; continue; }
2073 # Check for guested configure.
2074 if test -f "$ac_srcdir/configure.gnu"; then
2075 echo &&
2076 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2077 elif test -f "$ac_srcdir/configure"; then
2078 echo &&
2079 $SHELL "$ac_srcdir/configure" --help=recursive
2080 else
2081 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2082 fi || ac_status=$?
2083 cd "$ac_pwd" || { ac_status=$?; break; }
2084 done
2085 fi
2086
2087 test -n "$ac_init_help" && exit $ac_status
2088 if $ac_init_version; then
2089 cat <<\_ACEOF
2090 sim configure 0
2091 generated by GNU Autoconf 2.69
2092
2093 Copyright (C) 2012 Free Software Foundation, Inc.
2094 This configure script is free software; the Free Software Foundation
2095 gives unlimited permission to copy, distribute and modify it.
2096 _ACEOF
2097 exit
2098 fi
2099
2100 ## ------------------------ ##
2101 ## Autoconf initialization. ##
2102 ## ------------------------ ##
2103
2104 # ac_fn_c_try_compile LINENO
2105 # --------------------------
2106 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2107 ac_fn_c_try_compile ()
2108 {
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 rm -f conftest.$ac_objext
2111 if { { ac_try="$ac_compile"
2112 case "(($ac_try" in
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2115 esac
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_compile") 2>conftest.err
2119 ac_status=$?
2120 if test -s conftest.err; then
2121 grep -v '^ *+' conftest.err >conftest.er1
2122 cat conftest.er1 >&5
2123 mv -f conftest.er1 conftest.err
2124 fi
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126 test $ac_status = 0; } && {
2127 test -z "$ac_c_werror_flag" ||
2128 test ! -s conftest.err
2129 } && test -s conftest.$ac_objext; then :
2130 ac_retval=0
2131 else
2132 $as_echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.$ac_ext >&5
2134
2135 ac_retval=1
2136 fi
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138 as_fn_set_status $ac_retval
2139
2140 } # ac_fn_c_try_compile
2141
2142 # ac_fn_c_try_cpp LINENO
2143 # ----------------------
2144 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2145 ac_fn_c_try_cpp ()
2146 {
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if { { ac_try="$ac_cpp conftest.$ac_ext"
2149 case "(($ac_try" in
2150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151 *) ac_try_echo=$ac_try;;
2152 esac
2153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2154 $as_echo "$ac_try_echo"; } >&5
2155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2156 ac_status=$?
2157 if test -s conftest.err; then
2158 grep -v '^ *+' conftest.err >conftest.er1
2159 cat conftest.er1 >&5
2160 mv -f conftest.er1 conftest.err
2161 fi
2162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2163 test $ac_status = 0; } > conftest.i && {
2164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2165 test ! -s conftest.err
2166 }; then :
2167 ac_retval=0
2168 else
2169 $as_echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2171
2172 ac_retval=1
2173 fi
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 as_fn_set_status $ac_retval
2176
2177 } # ac_fn_c_try_cpp
2178
2179 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2180 # -------------------------------------------------------
2181 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2182 # the include files in INCLUDES and setting the cache variable VAR
2183 # accordingly.
2184 ac_fn_c_check_header_mongrel ()
2185 {
2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187 if eval \${$3+:} false; then :
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if eval \${$3+:} false; then :
2191 $as_echo_n "(cached) " >&6
2192 fi
2193 eval ac_res=\$$3
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2196 else
2197 # Is the header compilable?
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2199 $as_echo_n "checking $2 usability... " >&6; }
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2202 $4
2203 #include <$2>
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206 ac_header_compiler=yes
2207 else
2208 ac_header_compiler=no
2209 fi
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2212 $as_echo "$ac_header_compiler" >&6; }
2213
2214 # Is the header present?
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2216 $as_echo_n "checking $2 presence... " >&6; }
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2219 #include <$2>
2220 _ACEOF
2221 if ac_fn_c_try_cpp "$LINENO"; then :
2222 ac_header_preproc=yes
2223 else
2224 ac_header_preproc=no
2225 fi
2226 rm -f conftest.err conftest.i conftest.$ac_ext
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2228 $as_echo "$ac_header_preproc" >&6; }
2229
2230 # So? What about this header?
2231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2232 yes:no: )
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2234 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2236 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2237 ;;
2238 no:yes:* )
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2240 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2242 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2244 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2246 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2248 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2249 ( $as_echo "## -------------------------------------------------------------------------------------- ##
2250 ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
2251 ## -------------------------------------------------------------------------------------- ##"
2252 ) | sed "s/^/$as_me: WARNING: /" >&2
2253 ;;
2254 esac
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2256 $as_echo_n "checking for $2... " >&6; }
2257 if eval \${$3+:} false; then :
2258 $as_echo_n "(cached) " >&6
2259 else
2260 eval "$3=\$ac_header_compiler"
2261 fi
2262 eval ac_res=\$$3
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2264 $as_echo "$ac_res" >&6; }
2265 fi
2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2267
2268 } # ac_fn_c_check_header_mongrel
2269
2270 # ac_fn_c_try_run LINENO
2271 # ----------------------
2272 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2273 # that executables *can* be run.
2274 ac_fn_c_try_run ()
2275 {
2276 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2277 if { { ac_try="$ac_link"
2278 case "(($ac_try" in
2279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2280 *) ac_try_echo=$ac_try;;
2281 esac
2282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2283 $as_echo "$ac_try_echo"; } >&5
2284 (eval "$ac_link") 2>&5
2285 ac_status=$?
2286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2287 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2288 { { case "(($ac_try" in
2289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2290 *) ac_try_echo=$ac_try;;
2291 esac
2292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2293 $as_echo "$ac_try_echo"; } >&5
2294 (eval "$ac_try") 2>&5
2295 ac_status=$?
2296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2297 test $ac_status = 0; }; }; then :
2298 ac_retval=0
2299 else
2300 $as_echo "$as_me: program exited with status $ac_status" >&5
2301 $as_echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2303
2304 ac_retval=$ac_status
2305 fi
2306 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2308 as_fn_set_status $ac_retval
2309
2310 } # ac_fn_c_try_run
2311
2312 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2313 # -------------------------------------------------------
2314 # Tests whether HEADER exists and can be compiled using the include files in
2315 # INCLUDES, setting the cache variable VAR accordingly.
2316 ac_fn_c_check_header_compile ()
2317 {
2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2320 $as_echo_n "checking for $2... " >&6; }
2321 if eval \${$3+:} false; then :
2322 $as_echo_n "(cached) " >&6
2323 else
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2326 $4
2327 #include <$2>
2328 _ACEOF
2329 if ac_fn_c_try_compile "$LINENO"; then :
2330 eval "$3=yes"
2331 else
2332 eval "$3=no"
2333 fi
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 fi
2336 eval ac_res=\$$3
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2338 $as_echo "$ac_res" >&6; }
2339 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2340
2341 } # ac_fn_c_check_header_compile
2342
2343 # ac_fn_c_try_link LINENO
2344 # -----------------------
2345 # Try to link conftest.$ac_ext, and return whether this succeeded.
2346 ac_fn_c_try_link ()
2347 {
2348 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349 rm -f conftest.$ac_objext conftest$ac_exeext
2350 if { { ac_try="$ac_link"
2351 case "(($ac_try" in
2352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2353 *) ac_try_echo=$ac_try;;
2354 esac
2355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2356 $as_echo "$ac_try_echo"; } >&5
2357 (eval "$ac_link") 2>conftest.err
2358 ac_status=$?
2359 if test -s conftest.err; then
2360 grep -v '^ *+' conftest.err >conftest.er1
2361 cat conftest.er1 >&5
2362 mv -f conftest.er1 conftest.err
2363 fi
2364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2365 test $ac_status = 0; } && {
2366 test -z "$ac_c_werror_flag" ||
2367 test ! -s conftest.err
2368 } && test -s conftest$ac_exeext && {
2369 test "$cross_compiling" = yes ||
2370 test -x conftest$ac_exeext
2371 }; then :
2372 ac_retval=0
2373 else
2374 $as_echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2376
2377 ac_retval=1
2378 fi
2379 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2380 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2381 # interfere with the next link command; also delete a directory that is
2382 # left behind by Apple's compiler. We do this before executing the actions.
2383 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2384 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2385 as_fn_set_status $ac_retval
2386
2387 } # ac_fn_c_try_link
2388
2389 # ac_fn_c_check_func LINENO FUNC VAR
2390 # ----------------------------------
2391 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2392 ac_fn_c_check_func ()
2393 {
2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2396 $as_echo_n "checking for $2... " >&6; }
2397 if eval \${$3+:} false; then :
2398 $as_echo_n "(cached) " >&6
2399 else
2400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2402 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2404 #define $2 innocuous_$2
2405
2406 /* System header to define __stub macros and hopefully few prototypes,
2407 which can conflict with char $2 (); below.
2408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2409 <limits.h> exists even on freestanding compilers. */
2410
2411 #ifdef __STDC__
2412 # include <limits.h>
2413 #else
2414 # include <assert.h>
2415 #endif
2416
2417 #undef $2
2418
2419 /* Override any GCC internal prototype to avoid an error.
2420 Use char because int might match the return type of a GCC
2421 builtin and then its argument prototype would still apply. */
2422 #ifdef __cplusplus
2423 extern "C"
2424 #endif
2425 char $2 ();
2426 /* The GNU C library defines this for functions which it implements
2427 to always fail with ENOSYS. Some functions are actually named
2428 something starting with __ and the normal name is an alias. */
2429 #if defined __stub_$2 || defined __stub___$2
2430 choke me
2431 #endif
2432
2433 int
2434 main ()
2435 {
2436 return $2 ();
2437 ;
2438 return 0;
2439 }
2440 _ACEOF
2441 if ac_fn_c_try_link "$LINENO"; then :
2442 eval "$3=yes"
2443 else
2444 eval "$3=no"
2445 fi
2446 rm -f core conftest.err conftest.$ac_objext \
2447 conftest$ac_exeext conftest.$ac_ext
2448 fi
2449 eval ac_res=\$$3
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2453
2454 } # ac_fn_c_check_func
2455
2456 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2457 # ----------------------------------------------------
2458 # Tries to find if the field MEMBER exists in type AGGR, after including
2459 # INCLUDES, setting cache variable VAR accordingly.
2460 ac_fn_c_check_member ()
2461 {
2462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2464 $as_echo_n "checking for $2.$3... " >&6; }
2465 if eval \${$4+:} false; then :
2466 $as_echo_n "(cached) " >&6
2467 else
2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h. */
2470 $5
2471 int
2472 main ()
2473 {
2474 static $2 ac_aggr;
2475 if (ac_aggr.$3)
2476 return 0;
2477 ;
2478 return 0;
2479 }
2480 _ACEOF
2481 if ac_fn_c_try_compile "$LINENO"; then :
2482 eval "$4=yes"
2483 else
2484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h. */
2486 $5
2487 int
2488 main ()
2489 {
2490 static $2 ac_aggr;
2491 if (sizeof ac_aggr.$3)
2492 return 0;
2493 ;
2494 return 0;
2495 }
2496 _ACEOF
2497 if ac_fn_c_try_compile "$LINENO"; then :
2498 eval "$4=yes"
2499 else
2500 eval "$4=no"
2501 fi
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503 fi
2504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505 fi
2506 eval ac_res=\$$4
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2508 $as_echo "$ac_res" >&6; }
2509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2510
2511 } # ac_fn_c_check_member
2512
2513 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2514 # ---------------------------------------------
2515 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2516 # accordingly.
2517 ac_fn_c_check_decl ()
2518 {
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 as_decl_name=`echo $2|sed 's/ *(.*//'`
2521 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2523 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2524 if eval \${$3+:} false; then :
2525 $as_echo_n "(cached) " >&6
2526 else
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2529 $4
2530 int
2531 main ()
2532 {
2533 #ifndef $as_decl_name
2534 #ifdef __cplusplus
2535 (void) $as_decl_use;
2536 #else
2537 (void) $as_decl_name;
2538 #endif
2539 #endif
2540
2541 ;
2542 return 0;
2543 }
2544 _ACEOF
2545 if ac_fn_c_try_compile "$LINENO"; then :
2546 eval "$3=yes"
2547 else
2548 eval "$3=no"
2549 fi
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 fi
2552 eval ac_res=\$$3
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2556
2557 } # ac_fn_c_check_decl
2558
2559 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2560 # -------------------------------------------
2561 # Tests whether TYPE exists after having included INCLUDES, setting cache
2562 # variable VAR accordingly.
2563 ac_fn_c_check_type ()
2564 {
2565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2567 $as_echo_n "checking for $2... " >&6; }
2568 if eval \${$3+:} false; then :
2569 $as_echo_n "(cached) " >&6
2570 else
2571 eval "$3=no"
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2574 $4
2575 int
2576 main ()
2577 {
2578 if (sizeof ($2))
2579 return 0;
2580 ;
2581 return 0;
2582 }
2583 _ACEOF
2584 if ac_fn_c_try_compile "$LINENO"; then :
2585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h. */
2587 $4
2588 int
2589 main ()
2590 {
2591 if (sizeof (($2)))
2592 return 0;
2593 ;
2594 return 0;
2595 }
2596 _ACEOF
2597 if ac_fn_c_try_compile "$LINENO"; then :
2598
2599 else
2600 eval "$3=yes"
2601 fi
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 fi
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 fi
2606 eval ac_res=\$$3
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2608 $as_echo "$ac_res" >&6; }
2609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2610
2611 } # ac_fn_c_check_type
2612 cat >config.log <<_ACEOF
2613 This file contains any messages produced by compilers while
2614 running configure, to aid debugging if configure makes a mistake.
2615
2616 It was created by sim $as_me 0, which was
2617 generated by GNU Autoconf 2.69. Invocation command line was
2618
2619 $ $0 $@
2620
2621 _ACEOF
2622 exec 5>>config.log
2623 {
2624 cat <<_ASUNAME
2625 ## --------- ##
2626 ## Platform. ##
2627 ## --------- ##
2628
2629 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2630 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2631 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2632 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2633 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2634
2635 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2636 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2637
2638 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2639 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2640 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2641 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2642 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2643 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2644 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2645
2646 _ASUNAME
2647
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 $as_echo "PATH: $as_dir"
2654 done
2655 IFS=$as_save_IFS
2656
2657 } >&5
2658
2659 cat >&5 <<_ACEOF
2660
2661
2662 ## ----------- ##
2663 ## Core tests. ##
2664 ## ----------- ##
2665
2666 _ACEOF
2667
2668
2669 # Keep a trace of the command line.
2670 # Strip out --no-create and --no-recursion so they do not pile up.
2671 # Strip out --silent because we don't want to record it for future runs.
2672 # Also quote any args containing shell meta-characters.
2673 # Make two passes to allow for proper duplicate-argument suppression.
2674 ac_configure_args=
2675 ac_configure_args0=
2676 ac_configure_args1=
2677 ac_must_keep_next=false
2678 for ac_pass in 1 2
2679 do
2680 for ac_arg
2681 do
2682 case $ac_arg in
2683 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2685 | -silent | --silent | --silen | --sile | --sil)
2686 continue ;;
2687 *\'*)
2688 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2689 esac
2690 case $ac_pass in
2691 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2692 2)
2693 as_fn_append ac_configure_args1 " '$ac_arg'"
2694 if test $ac_must_keep_next = true; then
2695 ac_must_keep_next=false # Got value, back to normal.
2696 else
2697 case $ac_arg in
2698 *=* | --config-cache | -C | -disable-* | --disable-* \
2699 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2700 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2701 | -with-* | --with-* | -without-* | --without-* | --x)
2702 case "$ac_configure_args0 " in
2703 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2704 esac
2705 ;;
2706 -* ) ac_must_keep_next=true ;;
2707 esac
2708 fi
2709 as_fn_append ac_configure_args " '$ac_arg'"
2710 ;;
2711 esac
2712 done
2713 done
2714 { ac_configure_args0=; unset ac_configure_args0;}
2715 { ac_configure_args1=; unset ac_configure_args1;}
2716
2717 # When interrupted or exit'd, cleanup temporary files, and complete
2718 # config.log. We remove comments because anyway the quotes in there
2719 # would cause problems or look ugly.
2720 # WARNING: Use '\'' to represent an apostrophe within the trap.
2721 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2722 trap 'exit_status=$?
2723 # Save into config.log some information that might help in debugging.
2724 {
2725 echo
2726
2727 $as_echo "## ---------------- ##
2728 ## Cache variables. ##
2729 ## ---------------- ##"
2730 echo
2731 # The following way of writing the cache mishandles newlines in values,
2732 (
2733 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2734 eval ac_val=\$$ac_var
2735 case $ac_val in #(
2736 *${as_nl}*)
2737 case $ac_var in #(
2738 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2739 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2740 esac
2741 case $ac_var in #(
2742 _ | IFS | as_nl) ;; #(
2743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2744 *) { eval $ac_var=; unset $ac_var;} ;;
2745 esac ;;
2746 esac
2747 done
2748 (set) 2>&1 |
2749 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2750 *${as_nl}ac_space=\ *)
2751 sed -n \
2752 "s/'\''/'\''\\\\'\'''\''/g;
2753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2754 ;; #(
2755 *)
2756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2757 ;;
2758 esac |
2759 sort
2760 )
2761 echo
2762
2763 $as_echo "## ----------------- ##
2764 ## Output variables. ##
2765 ## ----------------- ##"
2766 echo
2767 for ac_var in $ac_subst_vars
2768 do
2769 eval ac_val=\$$ac_var
2770 case $ac_val in
2771 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2772 esac
2773 $as_echo "$ac_var='\''$ac_val'\''"
2774 done | sort
2775 echo
2776
2777 if test -n "$ac_subst_files"; then
2778 $as_echo "## ------------------- ##
2779 ## File substitutions. ##
2780 ## ------------------- ##"
2781 echo
2782 for ac_var in $ac_subst_files
2783 do
2784 eval ac_val=\$$ac_var
2785 case $ac_val in
2786 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2787 esac
2788 $as_echo "$ac_var='\''$ac_val'\''"
2789 done | sort
2790 echo
2791 fi
2792
2793 if test -s confdefs.h; then
2794 $as_echo "## ----------- ##
2795 ## confdefs.h. ##
2796 ## ----------- ##"
2797 echo
2798 cat confdefs.h
2799 echo
2800 fi
2801 test "$ac_signal" != 0 &&
2802 $as_echo "$as_me: caught signal $ac_signal"
2803 $as_echo "$as_me: exit $exit_status"
2804 } >&5
2805 rm -f core *.core core.conftest.* &&
2806 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2807 exit $exit_status
2808 ' 0
2809 for ac_signal in 1 2 13 15; do
2810 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2811 done
2812 ac_signal=0
2813
2814 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2815 rm -f -r conftest* confdefs.h
2816
2817 $as_echo "/* confdefs.h */" > confdefs.h
2818
2819 # Predefined preprocessor variables.
2820
2821 cat >>confdefs.h <<_ACEOF
2822 #define PACKAGE_NAME "$PACKAGE_NAME"
2823 _ACEOF
2824
2825 cat >>confdefs.h <<_ACEOF
2826 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2827 _ACEOF
2828
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2831 _ACEOF
2832
2833 cat >>confdefs.h <<_ACEOF
2834 #define PACKAGE_STRING "$PACKAGE_STRING"
2835 _ACEOF
2836
2837 cat >>confdefs.h <<_ACEOF
2838 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2839 _ACEOF
2840
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE_URL "$PACKAGE_URL"
2843 _ACEOF
2844
2845
2846 # Let the site file select an alternate cache file if it wants to.
2847 # Prefer an explicitly selected file to automatically selected ones.
2848 ac_site_file1=NONE
2849 ac_site_file2=NONE
2850 if test -n "$CONFIG_SITE"; then
2851 # We do not want a PATH search for config.site.
2852 case $CONFIG_SITE in #((
2853 -*) ac_site_file1=./$CONFIG_SITE;;
2854 */*) ac_site_file1=$CONFIG_SITE;;
2855 *) ac_site_file1=./$CONFIG_SITE;;
2856 esac
2857 elif test "x$prefix" != xNONE; then
2858 ac_site_file1=$prefix/share/config.site
2859 ac_site_file2=$prefix/etc/config.site
2860 else
2861 ac_site_file1=$ac_default_prefix/share/config.site
2862 ac_site_file2=$ac_default_prefix/etc/config.site
2863 fi
2864 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2865 do
2866 test "x$ac_site_file" = xNONE && continue
2867 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2869 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2870 sed 's/^/| /' "$ac_site_file" >&5
2871 . "$ac_site_file" \
2872 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2874 as_fn_error $? "failed to load site script $ac_site_file
2875 See \`config.log' for more details" "$LINENO" 5; }
2876 fi
2877 done
2878
2879 if test -r "$cache_file"; then
2880 # Some versions of bash will fail to source /dev/null (special files
2881 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2882 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2884 $as_echo "$as_me: loading cache $cache_file" >&6;}
2885 case $cache_file in
2886 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2887 *) . "./$cache_file";;
2888 esac
2889 fi
2890 else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2892 $as_echo "$as_me: creating cache $cache_file" >&6;}
2893 >$cache_file
2894 fi
2895
2896 as_fn_append ac_header_list " dlfcn.h"
2897 as_fn_append ac_header_list " fcntl.h"
2898 as_fn_append ac_header_list " fpu_control.h"
2899 as_fn_append ac_header_list " termios.h"
2900 as_fn_append ac_header_list " unistd.h"
2901 as_fn_append ac_header_list " utime.h"
2902 as_fn_append ac_header_list " linux/if_tun.h"
2903 as_fn_append ac_header_list " linux/mii.h"
2904 as_fn_append ac_header_list " linux/types.h"
2905 as_fn_append ac_header_list " net/if.h"
2906 as_fn_append ac_header_list " netinet/in.h"
2907 as_fn_append ac_header_list " netinet/tcp.h"
2908 as_fn_append ac_header_list " sys/ioctl.h"
2909 as_fn_append ac_header_list " sys/mman.h"
2910 as_fn_append ac_header_list " sys/mount.h"
2911 as_fn_append ac_header_list " sys/param.h"
2912 as_fn_append ac_header_list " sys/resource.h"
2913 as_fn_append ac_header_list " sys/socket.h"
2914 as_fn_append ac_header_list " sys/stat.h"
2915 as_fn_append ac_header_list " sys/statfs.h"
2916 as_fn_append ac_header_list " sys/termio.h"
2917 as_fn_append ac_header_list " sys/termios.h"
2918 as_fn_append ac_header_list " sys/types.h"
2919 as_fn_append ac_header_list " sys/vfs.h"
2920 as_fn_append ac_func_list " __setfpucw"
2921 as_fn_append ac_func_list " access"
2922 as_fn_append ac_func_list " aint"
2923 as_fn_append ac_func_list " anint"
2924 as_fn_append ac_func_list " cfgetispeed"
2925 as_fn_append ac_func_list " cfgetospeed"
2926 as_fn_append ac_func_list " cfsetispeed"
2927 as_fn_append ac_func_list " cfsetospeed"
2928 as_fn_append ac_func_list " chdir"
2929 as_fn_append ac_func_list " chmod"
2930 as_fn_append ac_func_list " dup"
2931 as_fn_append ac_func_list " dup2"
2932 as_fn_append ac_func_list " execv"
2933 as_fn_append ac_func_list " execve"
2934 as_fn_append ac_func_list " fcntl"
2935 as_fn_append ac_func_list " fork"
2936 as_fn_append ac_func_list " fstat"
2937 as_fn_append ac_func_list " fstatfs"
2938 as_fn_append ac_func_list " ftruncate"
2939 as_fn_append ac_func_list " getdirentries"
2940 as_fn_append ac_func_list " getegid"
2941 as_fn_append ac_func_list " geteuid"
2942 as_fn_append ac_func_list " getgid"
2943 as_fn_append ac_func_list " getpid"
2944 as_fn_append ac_func_list " getppid"
2945 as_fn_append ac_func_list " getrusage"
2946 as_fn_append ac_func_list " gettimeofday"
2947 as_fn_append ac_func_list " getuid"
2948 as_fn_append ac_func_list " ioctl"
2949 as_fn_append ac_func_list " kill"
2950 as_fn_append ac_func_list " link"
2951 as_fn_append ac_func_list " lseek"
2952 as_fn_append ac_func_list " mmap"
2953 as_fn_append ac_func_list " munmap"
2954 as_fn_append ac_func_list " pipe"
2955 as_fn_append ac_func_list " posix_fallocate"
2956 as_fn_append ac_func_list " pread"
2957 as_fn_append ac_func_list " rmdir"
2958 as_fn_append ac_func_list " setregid"
2959 as_fn_append ac_func_list " setreuid"
2960 as_fn_append ac_func_list " setgid"
2961 as_fn_append ac_func_list " setuid"
2962 as_fn_append ac_func_list " sigaction"
2963 as_fn_append ac_func_list " sigprocmask"
2964 as_fn_append ac_func_list " sqrt"
2965 as_fn_append ac_func_list " stat"
2966 as_fn_append ac_func_list " strsignal"
2967 as_fn_append ac_func_list " symlink"
2968 as_fn_append ac_func_list " tcdrain"
2969 as_fn_append ac_func_list " tcflow"
2970 as_fn_append ac_func_list " tcflush"
2971 as_fn_append ac_func_list " tcgetattr"
2972 as_fn_append ac_func_list " tcgetpgrp"
2973 as_fn_append ac_func_list " tcsendbreak"
2974 as_fn_append ac_func_list " tcsetattr"
2975 as_fn_append ac_func_list " tcsetpgrp"
2976 as_fn_append ac_func_list " time"
2977 as_fn_append ac_func_list " truncate"
2978 as_fn_append ac_func_list " umask"
2979 as_fn_append ac_func_list " unlink"
2980 as_fn_append ac_func_list " utime"
2981 # Check that the precious variables saved in the cache have kept the same
2982 # value.
2983 ac_cache_corrupted=false
2984 for ac_var in $ac_precious_vars; do
2985 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2986 eval ac_new_set=\$ac_env_${ac_var}_set
2987 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2988 eval ac_new_val=\$ac_env_${ac_var}_value
2989 case $ac_old_set,$ac_new_set in
2990 set,)
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2992 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2993 ac_cache_corrupted=: ;;
2994 ,set)
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2996 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2997 ac_cache_corrupted=: ;;
2998 ,);;
2999 *)
3000 if test "x$ac_old_val" != "x$ac_new_val"; then
3001 # differences in whitespace do not lead to failure.
3002 ac_old_val_w=`echo x $ac_old_val`
3003 ac_new_val_w=`echo x $ac_new_val`
3004 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3006 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3007 ac_cache_corrupted=:
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3010 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3011 eval $ac_var=\$ac_old_val
3012 fi
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3014 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3016 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3017 fi;;
3018 esac
3019 # Pass precious variables to config.status.
3020 if test "$ac_new_set" = set; then
3021 case $ac_new_val in
3022 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3023 *) ac_arg=$ac_var=$ac_new_val ;;
3024 esac
3025 case " $ac_configure_args " in
3026 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3027 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3028 esac
3029 fi
3030 done
3031 if $ac_cache_corrupted; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3035 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3036 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3037 fi
3038 ## -------------------- ##
3039 ## Main body of script. ##
3040 ## -------------------- ##
3041
3042 ac_ext=c
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047
3048
3049
3050
3051
3052
3053
3054
3055 # Check whether --with-pkgversion was given.
3056 if test "${with_pkgversion+set}" = set; then :
3057 withval=$with_pkgversion; case "$withval" in
3058 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
3059 no) PKGVERSION= ;;
3060 *) PKGVERSION="($withval) " ;;
3061 esac
3062 else
3063 PKGVERSION="(SIM) "
3064
3065 fi
3066
3067
3068
3069
3070 cat >>confdefs.h <<_ACEOF
3071 #define PKGVERSION "$PKGVERSION"
3072 _ACEOF
3073
3074
3075
3076 # Check whether --with-bugurl was given.
3077 if test "${with_bugurl+set}" = set; then :
3078 withval=$with_bugurl; case "$withval" in
3079 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
3080 no) BUGURL=
3081 ;;
3082 *) BUGURL="$withval"
3083 ;;
3084 esac
3085 else
3086 BUGURL="$PACKAGE_BUGREPORT"
3087
3088 fi
3089
3090 case ${BUGURL} in
3091 "")
3092 REPORT_BUGS_TO=
3093 REPORT_BUGS_TEXI=
3094 ;;
3095 *)
3096 REPORT_BUGS_TO="<$BUGURL>"
3097 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3098 ;;
3099 esac;
3100
3101
3102
3103
3104 cat >>confdefs.h <<_ACEOF
3105 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3106 _ACEOF
3107
3108
3109 ac_config_headers="$ac_config_headers config.h"
3110
3111
3112 ac_aux_dir=
3113 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3114 if test -f "$ac_dir/install-sh"; then
3115 ac_aux_dir=$ac_dir
3116 ac_install_sh="$ac_aux_dir/install-sh -c"
3117 break
3118 elif test -f "$ac_dir/install.sh"; then
3119 ac_aux_dir=$ac_dir
3120 ac_install_sh="$ac_aux_dir/install.sh -c"
3121 break
3122 elif test -f "$ac_dir/shtool"; then
3123 ac_aux_dir=$ac_dir
3124 ac_install_sh="$ac_aux_dir/shtool install -c"
3125 break
3126 fi
3127 done
3128 if test -z "$ac_aux_dir"; then
3129 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3130 fi
3131
3132 # These three variables are undocumented and unsupported,
3133 # and are intended to be withdrawn in a future Autoconf release.
3134 # They can cause serious problems if a builder's source tree is in a directory
3135 # whose full name contains unusual characters.
3136 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3137 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3138 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3139
3140
3141 # Make sure we can run config.sub.
3142 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3143 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3144
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3146 $as_echo_n "checking build system type... " >&6; }
3147 if ${ac_cv_build+:} false; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 ac_build_alias=$build_alias
3151 test "x$ac_build_alias" = x &&
3152 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3153 test "x$ac_build_alias" = x &&
3154 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3155 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3156 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3157
3158 fi
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3160 $as_echo "$ac_cv_build" >&6; }
3161 case $ac_cv_build in
3162 *-*-*) ;;
3163 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3164 esac
3165 build=$ac_cv_build
3166 ac_save_IFS=$IFS; IFS='-'
3167 set x $ac_cv_build
3168 shift
3169 build_cpu=$1
3170 build_vendor=$2
3171 shift; shift
3172 # Remember, the first character of IFS is used to create $*,
3173 # except with old shells:
3174 build_os=$*
3175 IFS=$ac_save_IFS
3176 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3177
3178
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3180 $as_echo_n "checking host system type... " >&6; }
3181 if ${ac_cv_host+:} false; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 if test "x$host_alias" = x; then
3185 ac_cv_host=$ac_cv_build
3186 else
3187 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3188 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3189 fi
3190
3191 fi
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3193 $as_echo "$ac_cv_host" >&6; }
3194 case $ac_cv_host in
3195 *-*-*) ;;
3196 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3197 esac
3198 host=$ac_cv_host
3199 ac_save_IFS=$IFS; IFS='-'
3200 set x $ac_cv_host
3201 shift
3202 host_cpu=$1
3203 host_vendor=$2
3204 shift; shift
3205 # Remember, the first character of IFS is used to create $*,
3206 # except with old shells:
3207 host_os=$*
3208 IFS=$ac_save_IFS
3209 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3210
3211
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3213 $as_echo_n "checking target system type... " >&6; }
3214 if ${ac_cv_target+:} false; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 if test "x$target_alias" = x; then
3218 ac_cv_target=$ac_cv_host
3219 else
3220 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3221 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3222 fi
3223
3224 fi
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3226 $as_echo "$ac_cv_target" >&6; }
3227 case $ac_cv_target in
3228 *-*-*) ;;
3229 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3230 esac
3231 target=$ac_cv_target
3232 ac_save_IFS=$IFS; IFS='-'
3233 set x $ac_cv_target
3234 shift
3235 target_cpu=$1
3236 target_vendor=$2
3237 shift; shift
3238 # Remember, the first character of IFS is used to create $*,
3239 # except with old shells:
3240 target_os=$*
3241 IFS=$ac_save_IFS
3242 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3243
3244
3245 # The aliases save the names the user supplied, while $host etc.
3246 # will get canonicalized.
3247 test -n "$target_alias" &&
3248 test "$program_prefix$program_suffix$program_transform_name" = \
3249 NONENONEs,x,x, &&
3250 program_prefix=${target_alias}-
3251 # Expand $ac_aux_dir to an absolute path.
3252 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3253
3254 ac_ext=c
3255 ac_cpp='$CPP $CPPFLAGS'
3256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259 if test -n "$ac_tool_prefix"; then
3260 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3261 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263 $as_echo_n "checking for $ac_word... " >&6; }
3264 if ${ac_cv_prog_CC+:} false; then :
3265 $as_echo_n "(cached) " >&6
3266 else
3267 if test -n "$CC"; then
3268 ac_cv_prog_CC="$CC" # Let the user override the test.
3269 else
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273 IFS=$as_save_IFS
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279 break 2
3280 fi
3281 done
3282 done
3283 IFS=$as_save_IFS
3284
3285 fi
3286 fi
3287 CC=$ac_cv_prog_CC
3288 if test -n "$CC"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3290 $as_echo "$CC" >&6; }
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 fi
3295
3296
3297 fi
3298 if test -z "$ac_cv_prog_CC"; then
3299 ac_ct_CC=$CC
3300 # Extract the first word of "gcc", so it can be a program name with args.
3301 set dummy gcc; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 if test -n "$ac_ct_CC"; then
3308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_ac_ct_CC="gcc"
3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321 done
3322 done
3323 IFS=$as_save_IFS
3324
3325 fi
3326 fi
3327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3328 if test -n "$ac_ct_CC"; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3330 $as_echo "$ac_ct_CC" >&6; }
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 fi
3335
3336 if test "x$ac_ct_CC" = x; then
3337 CC=""
3338 else
3339 case $cross_compiling:$ac_tool_warned in
3340 yes:)
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3343 ac_tool_warned=yes ;;
3344 esac
3345 CC=$ac_ct_CC
3346 fi
3347 else
3348 CC="$ac_cv_prog_CC"
3349 fi
3350
3351 if test -z "$CC"; then
3352 if test -n "$ac_tool_prefix"; then
3353 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3354 set dummy ${ac_tool_prefix}cc; ac_word=$2
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356 $as_echo_n "checking for $ac_word... " >&6; }
3357 if ${ac_cv_prog_CC+:} false; then :
3358 $as_echo_n "(cached) " >&6
3359 else
3360 if test -n "$CC"; then
3361 ac_cv_prog_CC="$CC" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 ac_cv_prog_CC="${ac_tool_prefix}cc"
3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3373 fi
3374 done
3375 done
3376 IFS=$as_save_IFS
3377
3378 fi
3379 fi
3380 CC=$ac_cv_prog_CC
3381 if test -n "$CC"; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3383 $as_echo "$CC" >&6; }
3384 else
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3387 fi
3388
3389
3390 fi
3391 fi
3392 if test -z "$CC"; then
3393 # Extract the first word of "cc", so it can be a program name with args.
3394 set dummy cc; ac_word=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if ${ac_cv_prog_CC+:} false; then :
3398 $as_echo_n "(cached) " >&6
3399 else
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403 ac_prog_rejected=no
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3412 ac_prog_rejected=yes
3413 continue
3414 fi
3415 ac_cv_prog_CC="cc"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3418 fi
3419 done
3420 done
3421 IFS=$as_save_IFS
3422
3423 if test $ac_prog_rejected = yes; then
3424 # We found a bogon in the path, so make sure we never use it.
3425 set dummy $ac_cv_prog_CC
3426 shift
3427 if test $# != 0; then
3428 # We chose a different compiler from the bogus one.
3429 # However, it has the same basename, so the bogon will be chosen
3430 # first if we set CC to just the basename; use the full file name.
3431 shift
3432 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3433 fi
3434 fi
3435 fi
3436 fi
3437 CC=$ac_cv_prog_CC
3438 if test -n "$CC"; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3440 $as_echo "$CC" >&6; }
3441 else
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3444 fi
3445
3446
3447 fi
3448 if test -z "$CC"; then
3449 if test -n "$ac_tool_prefix"; then
3450 for ac_prog in cl.exe
3451 do
3452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if ${ac_cv_prog_CC+:} false; then :
3457 $as_echo_n "(cached) " >&6
3458 else
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC="$CC" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3464 do
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3469 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 break 2
3472 fi
3473 done
3474 done
3475 IFS=$as_save_IFS
3476
3477 fi
3478 fi
3479 CC=$ac_cv_prog_CC
3480 if test -n "$CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3482 $as_echo "$CC" >&6; }
3483 else
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3486 fi
3487
3488
3489 test -n "$CC" && break
3490 done
3491 fi
3492 if test -z "$CC"; then
3493 ac_ct_CC=$CC
3494 for ac_prog in cl.exe
3495 do
3496 # Extract the first word of "$ac_prog", so it can be a program name with args.
3497 set dummy $ac_prog; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 if test -n "$ac_ct_CC"; then
3504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_ac_ct_CC="$ac_prog"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517 done
3518 done
3519 IFS=$as_save_IFS
3520
3521 fi
3522 fi
3523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3524 if test -n "$ac_ct_CC"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3526 $as_echo "$ac_ct_CC" >&6; }
3527 else
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3530 fi
3531
3532
3533 test -n "$ac_ct_CC" && break
3534 done
3535
3536 if test "x$ac_ct_CC" = x; then
3537 CC=""
3538 else
3539 case $cross_compiling:$ac_tool_warned in
3540 yes:)
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3543 ac_tool_warned=yes ;;
3544 esac
3545 CC=$ac_ct_CC
3546 fi
3547 fi
3548
3549 fi
3550
3551
3552 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3554 as_fn_error $? "no acceptable C compiler found in \$PATH
3555 See \`config.log' for more details" "$LINENO" 5; }
3556
3557 # Provide some information about the compiler.
3558 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3559 set X $ac_compile
3560 ac_compiler=$2
3561 for ac_option in --version -v -V -qversion; do
3562 { { ac_try="$ac_compiler $ac_option >&5"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3570 ac_status=$?
3571 if test -s conftest.err; then
3572 sed '10a\
3573 ... rest of stderr output deleted ...
3574 10q' conftest.err >conftest.er1
3575 cat conftest.er1 >&5
3576 fi
3577 rm -f conftest.er1 conftest.err
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }
3580 done
3581
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584
3585 int
3586 main ()
3587 {
3588
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 ac_clean_files_save=$ac_clean_files
3594 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3595 # Try to create an executable without -o first, disregard a.out.
3596 # It will help us diagnose broken compilers, and finding out an intuition
3597 # of exeext.
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3599 $as_echo_n "checking whether the C compiler works... " >&6; }
3600 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3601
3602 # The possible output files:
3603 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3604
3605 ac_rmfiles=
3606 for ac_file in $ac_files
3607 do
3608 case $ac_file in
3609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3610 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3611 esac
3612 done
3613 rm -f $ac_rmfiles
3614
3615 if { { ac_try="$ac_link_default"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621 $as_echo "$ac_try_echo"; } >&5
3622 (eval "$ac_link_default") 2>&5
3623 ac_status=$?
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }; then :
3626 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3627 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3628 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3629 # so that the user can short-circuit this test for compilers unknown to
3630 # Autoconf.
3631 for ac_file in $ac_files ''
3632 do
3633 test -f "$ac_file" || continue
3634 case $ac_file in
3635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3636 ;;
3637 [ab].out )
3638 # We found the default executable, but exeext='' is most
3639 # certainly right.
3640 break;;
3641 *.* )
3642 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3643 then :; else
3644 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3645 fi
3646 # We set ac_cv_exeext here because the later test for it is not
3647 # safe: cross compilers may not add the suffix if given an `-o'
3648 # argument, so we may need to know it at that point already.
3649 # Even if this section looks crufty: it has the advantage of
3650 # actually working.
3651 break;;
3652 * )
3653 break;;
3654 esac
3655 done
3656 test "$ac_cv_exeext" = no && ac_cv_exeext=
3657
3658 else
3659 ac_file=''
3660 fi
3661 if test -z "$ac_file"; then :
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 $as_echo "no" >&6; }
3664 $as_echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3666
3667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error 77 "C compiler cannot create executables
3670 See \`config.log' for more details" "$LINENO" 5; }
3671 else
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3673 $as_echo "yes" >&6; }
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3676 $as_echo_n "checking for C compiler default output file name... " >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3678 $as_echo "$ac_file" >&6; }
3679 ac_exeext=$ac_cv_exeext
3680
3681 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3682 ac_clean_files=$ac_clean_files_save
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3684 $as_echo_n "checking for suffix of executables... " >&6; }
3685 if { { ac_try="$ac_link"
3686 case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689 esac
3690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691 $as_echo "$ac_try_echo"; } >&5
3692 (eval "$ac_link") 2>&5
3693 ac_status=$?
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }; then :
3696 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3697 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3698 # work properly (i.e., refer to `conftest.exe'), while it won't with
3699 # `rm'.
3700 for ac_file in conftest.exe conftest conftest.*; do
3701 test -f "$ac_file" || continue
3702 case $ac_file in
3703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3704 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3705 break;;
3706 * ) break;;
3707 esac
3708 done
3709 else
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3713 See \`config.log' for more details" "$LINENO" 5; }
3714 fi
3715 rm -f conftest conftest$ac_cv_exeext
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3717 $as_echo "$ac_cv_exeext" >&6; }
3718
3719 rm -f conftest.$ac_ext
3720 EXEEXT=$ac_cv_exeext
3721 ac_exeext=$EXEEXT
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3724 #include <stdio.h>
3725 int
3726 main ()
3727 {
3728 FILE *f = fopen ("conftest.out", "w");
3729 return ferror (f) || fclose (f) != 0;
3730
3731 ;
3732 return 0;
3733 }
3734 _ACEOF
3735 ac_clean_files="$ac_clean_files conftest.out"
3736 # Check that the compiler produces executables we can run. If not, either
3737 # the compiler is broken, or we cross compile.
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3739 $as_echo_n "checking whether we are cross compiling... " >&6; }
3740 if test "$cross_compiling" != yes; then
3741 { { ac_try="$ac_link"
3742 case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747 $as_echo "$ac_try_echo"; } >&5
3748 (eval "$ac_link") 2>&5
3749 ac_status=$?
3750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751 test $ac_status = 0; }
3752 if { ac_try='./conftest$ac_cv_exeext'
3753 { { case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_try") 2>&5
3760 ac_status=$?
3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }; }; then
3763 cross_compiling=no
3764 else
3765 if test "$cross_compiling" = maybe; then
3766 cross_compiling=yes
3767 else
3768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3770 as_fn_error $? "cannot run C compiled programs.
3771 If you meant to cross compile, use \`--host'.
3772 See \`config.log' for more details" "$LINENO" 5; }
3773 fi
3774 fi
3775 fi
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3777 $as_echo "$cross_compiling" >&6; }
3778
3779 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3780 ac_clean_files=$ac_clean_files_save
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3782 $as_echo_n "checking for suffix of object files... " >&6; }
3783 if ${ac_cv_objext+:} false; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788
3789 int
3790 main ()
3791 {
3792
3793 ;
3794 return 0;
3795 }
3796 _ACEOF
3797 rm -f conftest.o conftest.obj
3798 if { { ac_try="$ac_compile"
3799 case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802 esac
3803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 $as_echo "$ac_try_echo"; } >&5
3805 (eval "$ac_compile") 2>&5
3806 ac_status=$?
3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }; then :
3809 for ac_file in conftest.o conftest.obj conftest.*; do
3810 test -f "$ac_file" || continue;
3811 case $ac_file in
3812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3813 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3814 break;;
3815 esac
3816 done
3817 else
3818 $as_echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3820
3821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3823 as_fn_error $? "cannot compute suffix of object files: cannot compile
3824 See \`config.log' for more details" "$LINENO" 5; }
3825 fi
3826 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3827 fi
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3829 $as_echo "$ac_cv_objext" >&6; }
3830 OBJEXT=$ac_cv_objext
3831 ac_objext=$OBJEXT
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3833 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3834 if ${ac_cv_c_compiler_gnu+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839
3840 int
3841 main ()
3842 {
3843 #ifndef __GNUC__
3844 choke me
3845 #endif
3846
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 if ac_fn_c_try_compile "$LINENO"; then :
3852 ac_compiler_gnu=yes
3853 else
3854 ac_compiler_gnu=no
3855 fi
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3858
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3861 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3862 if test $ac_compiler_gnu = yes; then
3863 GCC=yes
3864 else
3865 GCC=
3866 fi
3867 ac_test_CFLAGS=${CFLAGS+set}
3868 ac_save_CFLAGS=$CFLAGS
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3870 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3871 if ${ac_cv_prog_cc_g+:} false; then :
3872 $as_echo_n "(cached) " >&6
3873 else
3874 ac_save_c_werror_flag=$ac_c_werror_flag
3875 ac_c_werror_flag=yes
3876 ac_cv_prog_cc_g=no
3877 CFLAGS="-g"
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3880
3881 int
3882 main ()
3883 {
3884
3885 ;
3886 return 0;
3887 }
3888 _ACEOF
3889 if ac_fn_c_try_compile "$LINENO"; then :
3890 ac_cv_prog_cc_g=yes
3891 else
3892 CFLAGS=""
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3895
3896 int
3897 main ()
3898 {
3899
3900 ;
3901 return 0;
3902 }
3903 _ACEOF
3904 if ac_fn_c_try_compile "$LINENO"; then :
3905
3906 else
3907 ac_c_werror_flag=$ac_save_c_werror_flag
3908 CFLAGS="-g"
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3911
3912 int
3913 main ()
3914 {
3915
3916 ;
3917 return 0;
3918 }
3919 _ACEOF
3920 if ac_fn_c_try_compile "$LINENO"; then :
3921 ac_cv_prog_cc_g=yes
3922 fi
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 fi
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 fi
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 ac_c_werror_flag=$ac_save_c_werror_flag
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3931 $as_echo "$ac_cv_prog_cc_g" >&6; }
3932 if test "$ac_test_CFLAGS" = set; then
3933 CFLAGS=$ac_save_CFLAGS
3934 elif test $ac_cv_prog_cc_g = yes; then
3935 if test "$GCC" = yes; then
3936 CFLAGS="-g -O2"
3937 else
3938 CFLAGS="-g"
3939 fi
3940 else
3941 if test "$GCC" = yes; then
3942 CFLAGS="-O2"
3943 else
3944 CFLAGS=
3945 fi
3946 fi
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3948 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3949 if ${ac_cv_prog_cc_c89+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 ac_cv_prog_cc_c89=no
3953 ac_save_CC=$CC
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956 #include <stdarg.h>
3957 #include <stdio.h>
3958 struct stat;
3959 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3960 struct buf { int x; };
3961 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3962 static char *e (p, i)
3963 char **p;
3964 int i;
3965 {
3966 return p[i];
3967 }
3968 static char *f (char * (*g) (char **, int), char **p, ...)
3969 {
3970 char *s;
3971 va_list v;
3972 va_start (v,p);
3973 s = g (p, va_arg (v,int));
3974 va_end (v);
3975 return s;
3976 }
3977
3978 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3979 function prototypes and stuff, but not '\xHH' hex character constants.
3980 These don't provoke an error unfortunately, instead are silently treated
3981 as 'x'. The following induces an error, until -std is added to get
3982 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3983 array size at least. It's necessary to write '\x00'==0 to get something
3984 that's true only with -std. */
3985 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3986
3987 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3988 inside strings and character constants. */
3989 #define FOO(x) 'x'
3990 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3991
3992 int test (int i, double x);
3993 struct s1 {int (*f) (int a);};
3994 struct s2 {int (*f) (double a);};
3995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3996 int argc;
3997 char **argv;
3998 int
3999 main ()
4000 {
4001 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4002 ;
4003 return 0;
4004 }
4005 _ACEOF
4006 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4007 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4008 do
4009 CC="$ac_save_CC $ac_arg"
4010 if ac_fn_c_try_compile "$LINENO"; then :
4011 ac_cv_prog_cc_c89=$ac_arg
4012 fi
4013 rm -f core conftest.err conftest.$ac_objext
4014 test "x$ac_cv_prog_cc_c89" != "xno" && break
4015 done
4016 rm -f conftest.$ac_ext
4017 CC=$ac_save_CC
4018
4019 fi
4020 # AC_CACHE_VAL
4021 case "x$ac_cv_prog_cc_c89" in
4022 x)
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4024 $as_echo "none needed" >&6; } ;;
4025 xno)
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4027 $as_echo "unsupported" >&6; } ;;
4028 *)
4029 CC="$CC $ac_cv_prog_cc_c89"
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4031 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4032 esac
4033 if test "x$ac_cv_prog_cc_c89" != xno; then :
4034
4035 fi
4036
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042
4043 ac_ext=c
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4049 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4050 if ${am_cv_prog_cc_c_o+:} false; then :
4051 $as_echo_n "(cached) " >&6
4052 else
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055
4056 int
4057 main ()
4058 {
4059
4060 ;
4061 return 0;
4062 }
4063 _ACEOF
4064 # Make sure it works both with $CC and with simple cc.
4065 # Following AC_PROG_CC_C_O, we do the test twice because some
4066 # compilers refuse to overwrite an existing .o file with -o,
4067 # though they will create one.
4068 am_cv_prog_cc_c_o=yes
4069 for am_i in 1 2; do
4070 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4071 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } \
4075 && test -f conftest2.$ac_objext; then
4076 : OK
4077 else
4078 am_cv_prog_cc_c_o=no
4079 break
4080 fi
4081 done
4082 rm -f core conftest*
4083 unset am_i
4084 fi
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4086 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4087 if test "$am_cv_prog_cc_c_o" != yes; then
4088 # Losing compiler, so override with the script.
4089 # FIXME: It is wrong to rewrite CC.
4090 # But if we don't then we get into trouble of one sort or another.
4091 # A longer-term fix would be to have automake use am__CC in this case,
4092 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4093 CC="$am_aux_dir/compile $CC"
4094 fi
4095 ac_ext=c
4096 ac_cpp='$CPP $CPPFLAGS'
4097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100
4101
4102
4103 ac_ext=c
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4109 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4110 # On Suns, sometimes $CPP names a directory.
4111 if test -n "$CPP" && test -d "$CPP"; then
4112 CPP=
4113 fi
4114 if test -z "$CPP"; then
4115 if ${ac_cv_prog_CPP+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 # Double quotes because CPP needs to be expanded
4119 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4120 do
4121 ac_preproc_ok=false
4122 for ac_c_preproc_warn_flag in '' yes
4123 do
4124 # Use a header file that comes with gcc, so configuring glibc
4125 # with a fresh cross-compiler works.
4126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4127 # <limits.h> exists even on freestanding compilers.
4128 # On the NeXT, cc -E runs the code through the compiler's parser,
4129 # not just through cpp. "Syntax error" is here to catch this case.
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132 #ifdef __STDC__
4133 # include <limits.h>
4134 #else
4135 # include <assert.h>
4136 #endif
4137 Syntax error
4138 _ACEOF
4139 if ac_fn_c_try_cpp "$LINENO"; then :
4140
4141 else
4142 # Broken: fails on valid input.
4143 continue
4144 fi
4145 rm -f conftest.err conftest.i conftest.$ac_ext
4146
4147 # OK, works on sane cases. Now check whether nonexistent headers
4148 # can be detected and how.
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4151 #include <ac_nonexistent.h>
4152 _ACEOF
4153 if ac_fn_c_try_cpp "$LINENO"; then :
4154 # Broken: success on invalid input.
4155 continue
4156 else
4157 # Passes both tests.
4158 ac_preproc_ok=:
4159 break
4160 fi
4161 rm -f conftest.err conftest.i conftest.$ac_ext
4162
4163 done
4164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4165 rm -f conftest.i conftest.err conftest.$ac_ext
4166 if $ac_preproc_ok; then :
4167 break
4168 fi
4169
4170 done
4171 ac_cv_prog_CPP=$CPP
4172
4173 fi
4174 CPP=$ac_cv_prog_CPP
4175 else
4176 ac_cv_prog_CPP=$CPP
4177 fi
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4179 $as_echo "$CPP" >&6; }
4180 ac_preproc_ok=false
4181 for ac_c_preproc_warn_flag in '' yes
4182 do
4183 # Use a header file that comes with gcc, so configuring glibc
4184 # with a fresh cross-compiler works.
4185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4186 # <limits.h> exists even on freestanding compilers.
4187 # On the NeXT, cc -E runs the code through the compiler's parser,
4188 # not just through cpp. "Syntax error" is here to catch this case.
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 #ifdef __STDC__
4192 # include <limits.h>
4193 #else
4194 # include <assert.h>
4195 #endif
4196 Syntax error
4197 _ACEOF
4198 if ac_fn_c_try_cpp "$LINENO"; then :
4199
4200 else
4201 # Broken: fails on valid input.
4202 continue
4203 fi
4204 rm -f conftest.err conftest.i conftest.$ac_ext
4205
4206 # OK, works on sane cases. Now check whether nonexistent headers
4207 # can be detected and how.
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #include <ac_nonexistent.h>
4211 _ACEOF
4212 if ac_fn_c_try_cpp "$LINENO"; then :
4213 # Broken: success on invalid input.
4214 continue
4215 else
4216 # Passes both tests.
4217 ac_preproc_ok=:
4218 break
4219 fi
4220 rm -f conftest.err conftest.i conftest.$ac_ext
4221
4222 done
4223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224 rm -f conftest.i conftest.err conftest.$ac_ext
4225 if $ac_preproc_ok; then :
4226
4227 else
4228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4230 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4231 See \`config.log' for more details" "$LINENO" 5; }
4232 fi
4233
4234 ac_ext=c
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4242 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4243 if ${ac_cv_path_GREP+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -z "$GREP"; then
4247 ac_path_GREP_found=false
4248 # Loop through the user's path and test for each of PROGNAME-LIST
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4251 do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_prog in grep ggrep; do
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4257 as_fn_executable_p "$ac_path_GREP" || continue
4258 # Check for GNU ac_path_GREP and select it if it is found.
4259 # Check for GNU $ac_path_GREP
4260 case `"$ac_path_GREP" --version 2>&1` in
4261 *GNU*)
4262 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4263 *)
4264 ac_count=0
4265 $as_echo_n 0123456789 >"conftest.in"
4266 while :
4267 do
4268 cat "conftest.in" "conftest.in" >"conftest.tmp"
4269 mv "conftest.tmp" "conftest.in"
4270 cp "conftest.in" "conftest.nl"
4271 $as_echo 'GREP' >> "conftest.nl"
4272 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4274 as_fn_arith $ac_count + 1 && ac_count=$as_val
4275 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4276 # Best one so far, save it but keep looking for a better one
4277 ac_cv_path_GREP="$ac_path_GREP"
4278 ac_path_GREP_max=$ac_count
4279 fi
4280 # 10*(2^10) chars as input seems more than enough
4281 test $ac_count -gt 10 && break
4282 done
4283 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4284 esac
4285
4286 $ac_path_GREP_found && break 3
4287 done
4288 done
4289 done
4290 IFS=$as_save_IFS
4291 if test -z "$ac_cv_path_GREP"; then
4292 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4293 fi
4294 else
4295 ac_cv_path_GREP=$GREP
4296 fi
4297
4298 fi
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4300 $as_echo "$ac_cv_path_GREP" >&6; }
4301 GREP="$ac_cv_path_GREP"
4302
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4305 $as_echo_n "checking for egrep... " >&6; }
4306 if ${ac_cv_path_EGREP+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4310 then ac_cv_path_EGREP="$GREP -E"
4311 else
4312 if test -z "$EGREP"; then
4313 ac_path_EGREP_found=false
4314 # Loop through the user's path and test for each of PROGNAME-LIST
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4317 do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_prog in egrep; do
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4323 as_fn_executable_p "$ac_path_EGREP" || continue
4324 # Check for GNU ac_path_EGREP and select it if it is found.
4325 # Check for GNU $ac_path_EGREP
4326 case `"$ac_path_EGREP" --version 2>&1` in
4327 *GNU*)
4328 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4329 *)
4330 ac_count=0
4331 $as_echo_n 0123456789 >"conftest.in"
4332 while :
4333 do
4334 cat "conftest.in" "conftest.in" >"conftest.tmp"
4335 mv "conftest.tmp" "conftest.in"
4336 cp "conftest.in" "conftest.nl"
4337 $as_echo 'EGREP' >> "conftest.nl"
4338 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4340 as_fn_arith $ac_count + 1 && ac_count=$as_val
4341 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4342 # Best one so far, save it but keep looking for a better one
4343 ac_cv_path_EGREP="$ac_path_EGREP"
4344 ac_path_EGREP_max=$ac_count
4345 fi
4346 # 10*(2^10) chars as input seems more than enough
4347 test $ac_count -gt 10 && break
4348 done
4349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4350 esac
4351
4352 $ac_path_EGREP_found && break 3
4353 done
4354 done
4355 done
4356 IFS=$as_save_IFS
4357 if test -z "$ac_cv_path_EGREP"; then
4358 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4359 fi
4360 else
4361 ac_cv_path_EGREP=$EGREP
4362 fi
4363
4364 fi
4365 fi
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4367 $as_echo "$ac_cv_path_EGREP" >&6; }
4368 EGREP="$ac_cv_path_EGREP"
4369
4370
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4372 $as_echo_n "checking for ANSI C header files... " >&6; }
4373 if ${ac_cv_header_stdc+:} false; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4378 #include <stdlib.h>
4379 #include <stdarg.h>
4380 #include <string.h>
4381 #include <float.h>
4382
4383 int
4384 main ()
4385 {
4386
4387 ;
4388 return 0;
4389 }
4390 _ACEOF
4391 if ac_fn_c_try_compile "$LINENO"; then :
4392 ac_cv_header_stdc=yes
4393 else
4394 ac_cv_header_stdc=no
4395 fi
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397
4398 if test $ac_cv_header_stdc = yes; then
4399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402 #include <string.h>
4403
4404 _ACEOF
4405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4406 $EGREP "memchr" >/dev/null 2>&1; then :
4407
4408 else
4409 ac_cv_header_stdc=no
4410 fi
4411 rm -f conftest*
4412
4413 fi
4414
4415 if test $ac_cv_header_stdc = yes; then
4416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4419 #include <stdlib.h>
4420
4421 _ACEOF
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 $EGREP "free" >/dev/null 2>&1; then :
4424
4425 else
4426 ac_cv_header_stdc=no
4427 fi
4428 rm -f conftest*
4429
4430 fi
4431
4432 if test $ac_cv_header_stdc = yes; then
4433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4434 if test "$cross_compiling" = yes; then :
4435 :
4436 else
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <ctype.h>
4440 #include <stdlib.h>
4441 #if ((' ' & 0x0FF) == 0x020)
4442 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4443 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4444 #else
4445 # define ISLOWER(c) \
4446 (('a' <= (c) && (c) <= 'i') \
4447 || ('j' <= (c) && (c) <= 'r') \
4448 || ('s' <= (c) && (c) <= 'z'))
4449 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4450 #endif
4451
4452 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4453 int
4454 main ()
4455 {
4456 int i;
4457 for (i = 0; i < 256; i++)
4458 if (XOR (islower (i), ISLOWER (i))
4459 || toupper (i) != TOUPPER (i))
4460 return 2;
4461 return 0;
4462 }
4463 _ACEOF
4464 if ac_fn_c_try_run "$LINENO"; then :
4465
4466 else
4467 ac_cv_header_stdc=no
4468 fi
4469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4470 conftest.$ac_objext conftest.beam conftest.$ac_ext
4471 fi
4472
4473 fi
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4476 $as_echo "$ac_cv_header_stdc" >&6; }
4477 if test $ac_cv_header_stdc = yes; then
4478
4479 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4480
4481 fi
4482
4483 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4484 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4485 inttypes.h stdint.h unistd.h
4486 do :
4487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4488 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4489 "
4490 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4491 cat >>confdefs.h <<_ACEOF
4492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4493 _ACEOF
4494
4495 fi
4496
4497 done
4498
4499
4500
4501 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4502 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4503 MINIX=yes
4504 else
4505 MINIX=
4506 fi
4507
4508
4509 if test "$MINIX" = yes; then
4510
4511 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4512
4513
4514 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4515
4516
4517 $as_echo "#define _MINIX 1" >>confdefs.h
4518
4519 fi
4520
4521
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4523 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4524 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529
4530 # define __EXTENSIONS__ 1
4531 $ac_includes_default
4532 int
4533 main ()
4534 {
4535
4536 ;
4537 return 0;
4538 }
4539 _ACEOF
4540 if ac_fn_c_try_compile "$LINENO"; then :
4541 ac_cv_safe_to_define___extensions__=yes
4542 else
4543 ac_cv_safe_to_define___extensions__=no
4544 fi
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4548 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4549 test $ac_cv_safe_to_define___extensions__ = yes &&
4550 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4551
4552 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4553
4554 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4555
4556 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4557
4558 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4559
4560
4561 test "$program_prefix" != NONE &&
4562 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4563 # Use a double $ so make ignores it.
4564 test "$program_suffix" != NONE &&
4565 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4566 # Double any \ or $.
4567 # By default was `s,x,x', remove it if useless.
4568 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4569 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4570
4571 # Find a good install program. We prefer a C program (faster),
4572 # so one script is as good as another. But avoid the broken or
4573 # incompatible versions:
4574 # SysV /etc/install, /usr/sbin/install
4575 # SunOS /usr/etc/install
4576 # IRIX /sbin/install
4577 # AIX /bin/install
4578 # AmigaOS /C/install, which installs bootblocks on floppy discs
4579 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4580 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4581 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4582 # OS/2's system install, which has a completely different semantic
4583 # ./install, which can be erroneously created by make from ./install.sh.
4584 # Reject install programs that cannot install multiple files.
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4586 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4587 if test -z "$INSTALL"; then
4588 if ${ac_cv_path_install+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 # Account for people who put trailing slashes in PATH elements.
4597 case $as_dir/ in #((
4598 ./ | .// | /[cC]/* | \
4599 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4600 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4601 /usr/ucb/* ) ;;
4602 *)
4603 # OSF1 and SCO ODT 3.0 have their own names for install.
4604 # Don't use installbsd from OSF since it installs stuff as root
4605 # by default.
4606 for ac_prog in ginstall scoinst install; do
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4609 if test $ac_prog = install &&
4610 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4611 # AIX install. It has an incompatible calling convention.
4612 :
4613 elif test $ac_prog = install &&
4614 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4615 # program-specific install script used by HP pwplus--don't use.
4616 :
4617 else
4618 rm -rf conftest.one conftest.two conftest.dir
4619 echo one > conftest.one
4620 echo two > conftest.two
4621 mkdir conftest.dir
4622 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4623 test -s conftest.one && test -s conftest.two &&
4624 test -s conftest.dir/conftest.one &&
4625 test -s conftest.dir/conftest.two
4626 then
4627 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4628 break 3
4629 fi
4630 fi
4631 fi
4632 done
4633 done
4634 ;;
4635 esac
4636
4637 done
4638 IFS=$as_save_IFS
4639
4640 rm -rf conftest.one conftest.two conftest.dir
4641
4642 fi
4643 if test "${ac_cv_path_install+set}" = set; then
4644 INSTALL=$ac_cv_path_install
4645 else
4646 # As a last resort, use the slow shell script. Don't cache a
4647 # value for INSTALL within a source directory, because that will
4648 # break other packages using the cache if that directory is
4649 # removed, or if the value is a relative name.
4650 INSTALL=$ac_install_sh
4651 fi
4652 fi
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4654 $as_echo "$INSTALL" >&6; }
4655
4656 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4657 # It thinks the first close brace ends the variable substitution.
4658 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4659
4660 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4661
4662 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4663
4664
4665
4666
4667
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4669 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4670 if ${ac_cv_c_bigendian+:} false; then :
4671 $as_echo_n "(cached) " >&6
4672 else
4673 ac_cv_c_bigendian=unknown
4674 # See if we're dealing with a universal compiler.
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4677 #ifndef __APPLE_CC__
4678 not a universal capable compiler
4679 #endif
4680 typedef int dummy;
4681
4682 _ACEOF
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684
4685 # Check for potential -arch flags. It is not universal unless
4686 # there are at least two -arch flags with different values.
4687 ac_arch=
4688 ac_prev=
4689 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4690 if test -n "$ac_prev"; then
4691 case $ac_word in
4692 i?86 | x86_64 | ppc | ppc64)
4693 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4694 ac_arch=$ac_word
4695 else
4696 ac_cv_c_bigendian=universal
4697 break
4698 fi
4699 ;;
4700 esac
4701 ac_prev=
4702 elif test "x$ac_word" = "x-arch"; then
4703 ac_prev=arch
4704 fi
4705 done
4706 fi
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 if test $ac_cv_c_bigendian = unknown; then
4709 # See if sys/param.h defines the BYTE_ORDER macro.
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712 #include <sys/types.h>
4713 #include <sys/param.h>
4714
4715 int
4716 main ()
4717 {
4718 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4719 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4720 && LITTLE_ENDIAN)
4721 bogus endian macros
4722 #endif
4723
4724 ;
4725 return 0;
4726 }
4727 _ACEOF
4728 if ac_fn_c_try_compile "$LINENO"; then :
4729 # It does; now see whether it defined to BIG_ENDIAN or not.
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4732 #include <sys/types.h>
4733 #include <sys/param.h>
4734
4735 int
4736 main ()
4737 {
4738 #if BYTE_ORDER != BIG_ENDIAN
4739 not big endian
4740 #endif
4741
4742 ;
4743 return 0;
4744 }
4745 _ACEOF
4746 if ac_fn_c_try_compile "$LINENO"; then :
4747 ac_cv_c_bigendian=yes
4748 else
4749 ac_cv_c_bigendian=no
4750 fi
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 fi
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 fi
4755 if test $ac_cv_c_bigendian = unknown; then
4756 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759 #include <limits.h>
4760
4761 int
4762 main ()
4763 {
4764 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4765 bogus endian macros
4766 #endif
4767
4768 ;
4769 return 0;
4770 }
4771 _ACEOF
4772 if ac_fn_c_try_compile "$LINENO"; then :
4773 # It does; now see whether it defined to _BIG_ENDIAN or not.
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776 #include <limits.h>
4777
4778 int
4779 main ()
4780 {
4781 #ifndef _BIG_ENDIAN
4782 not big endian
4783 #endif
4784
4785 ;
4786 return 0;
4787 }
4788 _ACEOF
4789 if ac_fn_c_try_compile "$LINENO"; then :
4790 ac_cv_c_bigendian=yes
4791 else
4792 ac_cv_c_bigendian=no
4793 fi
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 fi
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 fi
4798 if test $ac_cv_c_bigendian = unknown; then
4799 # Compile a test program.
4800 if test "$cross_compiling" = yes; then :
4801 # Try to guess by grepping values from an object file.
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804 short int ascii_mm[] =
4805 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4806 short int ascii_ii[] =
4807 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4808 int use_ascii (int i) {
4809 return ascii_mm[i] + ascii_ii[i];
4810 }
4811 short int ebcdic_ii[] =
4812 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4813 short int ebcdic_mm[] =
4814 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4815 int use_ebcdic (int i) {
4816 return ebcdic_mm[i] + ebcdic_ii[i];
4817 }
4818 extern int foo;
4819
4820 int
4821 main ()
4822 {
4823 return use_ascii (foo) == use_ebcdic (foo);
4824 ;
4825 return 0;
4826 }
4827 _ACEOF
4828 if ac_fn_c_try_compile "$LINENO"; then :
4829 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4830 ac_cv_c_bigendian=yes
4831 fi
4832 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4833 if test "$ac_cv_c_bigendian" = unknown; then
4834 ac_cv_c_bigendian=no
4835 else
4836 # finding both strings is unlikely to happen, but who knows?
4837 ac_cv_c_bigendian=unknown
4838 fi
4839 fi
4840 fi
4841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842 else
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845 $ac_includes_default
4846 int
4847 main ()
4848 {
4849
4850 /* Are we little or big endian? From Harbison&Steele. */
4851 union
4852 {
4853 long int l;
4854 char c[sizeof (long int)];
4855 } u;
4856 u.l = 1;
4857 return u.c[sizeof (long int) - 1] == 1;
4858
4859 ;
4860 return 0;
4861 }
4862 _ACEOF
4863 if ac_fn_c_try_run "$LINENO"; then :
4864 ac_cv_c_bigendian=no
4865 else
4866 ac_cv_c_bigendian=yes
4867 fi
4868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4869 conftest.$ac_objext conftest.beam conftest.$ac_ext
4870 fi
4871
4872 fi
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4875 $as_echo "$ac_cv_c_bigendian" >&6; }
4876 case $ac_cv_c_bigendian in #(
4877 yes)
4878 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4879 ;; #(
4880 no)
4881 ;; #(
4882 universal)
4883
4884 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4885
4886 ;; #(
4887 *)
4888 as_fn_error $? "unknown endianness
4889 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4890 esac
4891
4892
4893
4894
4895 if test -n "$ac_tool_prefix"; then
4896 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4897 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if ${ac_cv_prog_DTC+:} false; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$DTC"; then
4904 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 fi
4922 fi
4923 DTC=$ac_cv_prog_DTC
4924 if test -n "$DTC"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4926 $as_echo "$DTC" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4930 fi
4931
4932
4933 fi
4934 if test -z "$ac_cv_prog_DTC"; then
4935 ac_ct_DTC=$DTC
4936 # Extract the first word of "dtc", so it can be a program name with args.
4937 set dummy dtc; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -n "$ac_ct_DTC"; then
4944 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_prog_ac_ct_DTC="dtc"
4954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 break 2
4956 fi
4957 done
4958 done
4959 IFS=$as_save_IFS
4960
4961 fi
4962 fi
4963 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4964 if test -n "$ac_ct_DTC"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4966 $as_echo "$ac_ct_DTC" >&6; }
4967 else
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4970 fi
4971
4972 if test "x$ac_ct_DTC" = x; then
4973 DTC=""
4974 else
4975 case $cross_compiling:$ac_tool_warned in
4976 yes:)
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4979 ac_tool_warned=yes ;;
4980 esac
4981 DTC=$ac_ct_DTC
4982 fi
4983 else
4984 DTC="$ac_cv_prog_DTC"
4985 fi
4986
4987
4988 if test "x$cross_compiling" = "xno"; then
4989 : "${AR_FOR_BUILD:=\$(AR)}"
4990 : "${CC_FOR_BUILD:=\$(CC)}"
4991 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4992 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4993 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4994 else
4995 : "${AR_FOR_BUILD:=ar}"
4996 : "${CC_FOR_BUILD:=gcc}"
4997 : "${RANLIB_FOR_BUILD:=ranlib}"
4998 : "${CFLAGS_FOR_BUILD:=-g -O}"
4999 : "${LDLFAGS_FOR_BUILD:=}"
5000 fi
5001
5002
5003
5004
5005
5006
5007
5008 if test -n "$ac_tool_prefix"; then
5009 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5010 set dummy ${ac_tool_prefix}ar; ac_word=$2
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012 $as_echo_n "checking for $ac_word... " >&6; }
5013 if ${ac_cv_prog_AR+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 if test -n "$AR"; then
5017 ac_cv_prog_AR="$AR" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_AR="${ac_tool_prefix}ar"
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5029 fi
5030 done
5031 done
5032 IFS=$as_save_IFS
5033
5034 fi
5035 fi
5036 AR=$ac_cv_prog_AR
5037 if test -n "$AR"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5039 $as_echo "$AR" >&6; }
5040 else
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5043 fi
5044
5045
5046 fi
5047 if test -z "$ac_cv_prog_AR"; then
5048 ac_ct_AR=$AR
5049 # Extract the first word of "ar", so it can be a program name with args.
5050 set dummy ar; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 if test -n "$ac_ct_AR"; then
5057 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066 ac_cv_prog_ac_ct_AR="ar"
5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 break 2
5069 fi
5070 done
5071 done
5072 IFS=$as_save_IFS
5073
5074 fi
5075 fi
5076 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5077 if test -n "$ac_ct_AR"; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5079 $as_echo "$ac_ct_AR" >&6; }
5080 else
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5083 fi
5084
5085 if test "x$ac_ct_AR" = x; then
5086 AR=""
5087 else
5088 case $cross_compiling:$ac_tool_warned in
5089 yes:)
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5092 ac_tool_warned=yes ;;
5093 esac
5094 AR=$ac_ct_AR
5095 fi
5096 else
5097 AR="$ac_cv_prog_AR"
5098 fi
5099
5100 if test -n "$ac_tool_prefix"; then
5101 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5102 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if ${ac_cv_prog_RANLIB+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 if test -n "$RANLIB"; then
5109 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5121 fi
5122 done
5123 done
5124 IFS=$as_save_IFS
5125
5126 fi
5127 fi
5128 RANLIB=$ac_cv_prog_RANLIB
5129 if test -n "$RANLIB"; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5131 $as_echo "$RANLIB" >&6; }
5132 else
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5135 fi
5136
5137
5138 fi
5139 if test -z "$ac_cv_prog_RANLIB"; then
5140 ac_ct_RANLIB=$RANLIB
5141 # Extract the first word of "ranlib", so it can be a program name with args.
5142 set dummy ranlib; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 if test -n "$ac_ct_RANLIB"; then
5149 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_ac_ct_RANLIB="ranlib"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162 done
5163 done
5164 IFS=$as_save_IFS
5165
5166 fi
5167 fi
5168 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5169 if test -n "$ac_ct_RANLIB"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5171 $as_echo "$ac_ct_RANLIB" >&6; }
5172 else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5175 fi
5176
5177 if test "x$ac_ct_RANLIB" = x; then
5178 RANLIB=":"
5179 else
5180 case $cross_compiling:$ac_tool_warned in
5181 yes:)
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5184 ac_tool_warned=yes ;;
5185 esac
5186 RANLIB=$ac_ct_RANLIB
5187 fi
5188 else
5189 RANLIB="$ac_cv_prog_RANLIB"
5190 fi
5191
5192
5193
5194
5195
5196
5197
5198
5199 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5200 if test -n "$ac_tool_prefix"; then
5201 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5202 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 case $PKG_CONFIG in
5209 [\\/]* | ?:[\\/]*)
5210 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5211 ;;
5212 *)
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5223 fi
5224 done
5225 done
5226 IFS=$as_save_IFS
5227
5228 ;;
5229 esac
5230 fi
5231 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5232 if test -n "$PKG_CONFIG"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5234 $as_echo "$PKG_CONFIG" >&6; }
5235 else
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 $as_echo "no" >&6; }
5238 fi
5239
5240
5241 fi
5242 if test -z "$ac_cv_path_PKG_CONFIG"; then
5243 ac_pt_PKG_CONFIG=$PKG_CONFIG
5244 # Extract the first word of "pkg-config", so it can be a program name with args.
5245 set dummy pkg-config; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 case $ac_pt_PKG_CONFIG in
5252 [\\/]* | ?:[\\/]*)
5253 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5254 ;;
5255 *)
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5258 do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5266 fi
5267 done
5268 done
5269 IFS=$as_save_IFS
5270
5271 ;;
5272 esac
5273 fi
5274 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5275 if test -n "$ac_pt_PKG_CONFIG"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5277 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5278 else
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 $as_echo "no" >&6; }
5281 fi
5282
5283 if test "x$ac_pt_PKG_CONFIG" = x; then
5284 PKG_CONFIG=""
5285 else
5286 case $cross_compiling:$ac_tool_warned in
5287 yes:)
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5290 ac_tool_warned=yes ;;
5291 esac
5292 PKG_CONFIG=$ac_pt_PKG_CONFIG
5293 fi
5294 else
5295 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5296 fi
5297
5298 fi
5299 if test -n "$PKG_CONFIG"; then
5300 _pkg_min_version=0.9.0
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5302 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5303 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5305 $as_echo "yes" >&6; }
5306 else
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5309 PKG_CONFIG=""
5310 fi
5311 fi
5312
5313 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5314 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5315 # is C99. So handle it ourselves.
5316 :
5317 C_DIALECT=
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5319 $as_echo_n "checking whether C11 is supported by default... " >&6; }
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322
5323 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5324 # error "C11 support not found"
5325 #endif
5326
5327 _ACEOF
5328 if ac_fn_c_try_compile "$LINENO"; then :
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5330 $as_echo "yes" >&6; }
5331 else
5332
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5336 $as_echo_n "checking for -std=c11 support... " >&6; }
5337 ac_save_CC="$CC"
5338 CC="$CC -std=c11"
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5341
5342 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5343 # error "C11 support not found"
5344 #endif
5345
5346 _ACEOF
5347 if ac_fn_c_try_compile "$LINENO"; then :
5348
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5350 $as_echo "yes" >&6; }
5351 CC="$ac_save_CC"
5352 C_DIALECT="-std=c11"
5353
5354 else
5355 as_fn_error $? "C11 is required" "$LINENO" 5
5356 fi
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 fi
5359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360
5361
5362
5363
5364
5365 for ac_header in $ac_header_list
5366 do :
5367 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5368 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5369 "
5370 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5371 cat >>confdefs.h <<_ACEOF
5372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5373 _ACEOF
5374
5375 fi
5376
5377 done
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430 for ac_func in $ac_func_list
5431 do :
5432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5433 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5434 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5435 cat >>confdefs.h <<_ACEOF
5436 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5437 _ACEOF
5438
5439 fi
5440 done
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5565 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5566 if ${ac_cv_struct_tm+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 #include <sys/types.h>
5572 #include <time.h>
5573
5574 int
5575 main ()
5576 {
5577 struct tm tm;
5578 int *p = &tm.tm_sec;
5579 return !p;
5580 ;
5581 return 0;
5582 }
5583 _ACEOF
5584 if ac_fn_c_try_compile "$LINENO"; then :
5585 ac_cv_struct_tm=time.h
5586 else
5587 ac_cv_struct_tm=sys/time.h
5588 fi
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 fi
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5592 $as_echo "$ac_cv_struct_tm" >&6; }
5593 if test $ac_cv_struct_tm = sys/time.h; then
5594
5595 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5596
5597 fi
5598
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5600 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5601 if ${ac_cv_type_uid_t+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606 #include <sys/types.h>
5607
5608 _ACEOF
5609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5610 $EGREP "uid_t" >/dev/null 2>&1; then :
5611 ac_cv_type_uid_t=yes
5612 else
5613 ac_cv_type_uid_t=no
5614 fi
5615 rm -f conftest*
5616
5617 fi
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5619 $as_echo "$ac_cv_type_uid_t" >&6; }
5620 if test $ac_cv_type_uid_t = no; then
5621
5622 $as_echo "#define uid_t int" >>confdefs.h
5623
5624
5625 $as_echo "#define gid_t int" >>confdefs.h
5626
5627 fi
5628
5629 case `pwd` in
5630 *\ * | *\ *)
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5632 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5633 esac
5634
5635
5636
5637 macro_version='2.2.7a'
5638 macro_revision='1.3134'
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652 ltmain="$ac_aux_dir/ltmain.sh"
5653
5654 # Backslashify metacharacters that are still active within
5655 # double-quoted strings.
5656 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5657
5658 # Same as above, but do not quote variable references.
5659 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5660
5661 # Sed substitution to delay expansion of an escaped shell variable in a
5662 # double_quote_subst'ed string.
5663 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5664
5665 # Sed substitution to delay expansion of an escaped single quote.
5666 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5667
5668 # Sed substitution to avoid accidental globbing in evaled expressions
5669 no_glob_subst='s/\*/\\\*/g'
5670
5671 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5672 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5673 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5674
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5676 $as_echo_n "checking how to print strings... " >&6; }
5677 # Test print first, because it will be a builtin if present.
5678 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5679 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5680 ECHO='print -r --'
5681 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5682 ECHO='printf %s\n'
5683 else
5684 # Use this function as a fallback that always works.
5685 func_fallback_echo ()
5686 {
5687 eval 'cat <<_LTECHO_EOF
5688 $1
5689 _LTECHO_EOF'
5690 }
5691 ECHO='func_fallback_echo'
5692 fi
5693
5694 # func_echo_all arg...
5695 # Invoke $ECHO with all args, space-separated.
5696 func_echo_all ()
5697 {
5698 $ECHO ""
5699 }
5700
5701 case "$ECHO" in
5702 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5703 $as_echo "printf" >&6; } ;;
5704 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5705 $as_echo "print -r" >&6; } ;;
5706 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5707 $as_echo "cat" >&6; } ;;
5708 esac
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5724 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5725 if ${ac_cv_path_SED+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5729 for ac_i in 1 2 3 4 5 6 7; do
5730 ac_script="$ac_script$as_nl$ac_script"
5731 done
5732 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5733 { ac_script=; unset ac_script;}
5734 if test -z "$SED"; then
5735 ac_path_SED_found=false
5736 # Loop through the user's path and test for each of PROGNAME-LIST
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_prog in sed gsed; do
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5745 as_fn_executable_p "$ac_path_SED" || continue
5746 # Check for GNU ac_path_SED and select it if it is found.
5747 # Check for GNU $ac_path_SED
5748 case `"$ac_path_SED" --version 2>&1` in
5749 *GNU*)
5750 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5751 *)
5752 ac_count=0
5753 $as_echo_n 0123456789 >"conftest.in"
5754 while :
5755 do
5756 cat "conftest.in" "conftest.in" >"conftest.tmp"
5757 mv "conftest.tmp" "conftest.in"
5758 cp "conftest.in" "conftest.nl"
5759 $as_echo '' >> "conftest.nl"
5760 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5762 as_fn_arith $ac_count + 1 && ac_count=$as_val
5763 if test $ac_count -gt ${ac_path_SED_max-0}; then
5764 # Best one so far, save it but keep looking for a better one
5765 ac_cv_path_SED="$ac_path_SED"
5766 ac_path_SED_max=$ac_count
5767 fi
5768 # 10*(2^10) chars as input seems more than enough
5769 test $ac_count -gt 10 && break
5770 done
5771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5772 esac
5773
5774 $ac_path_SED_found && break 3
5775 done
5776 done
5777 done
5778 IFS=$as_save_IFS
5779 if test -z "$ac_cv_path_SED"; then
5780 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5781 fi
5782 else
5783 ac_cv_path_SED=$SED
5784 fi
5785
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5788 $as_echo "$ac_cv_path_SED" >&6; }
5789 SED="$ac_cv_path_SED"
5790 rm -f conftest.sed
5791
5792 test -z "$SED" && SED=sed
5793 Xsed="$SED -e 1s/^X//"
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5806 $as_echo_n "checking for fgrep... " >&6; }
5807 if ${ac_cv_path_FGREP+:} false; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5811 then ac_cv_path_FGREP="$GREP -F"
5812 else
5813 if test -z "$FGREP"; then
5814 ac_path_FGREP_found=false
5815 # Loop through the user's path and test for each of PROGNAME-LIST
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5818 do
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_prog in fgrep; do
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5824 as_fn_executable_p "$ac_path_FGREP" || continue
5825 # Check for GNU ac_path_FGREP and select it if it is found.
5826 # Check for GNU $ac_path_FGREP
5827 case `"$ac_path_FGREP" --version 2>&1` in
5828 *GNU*)
5829 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5830 *)
5831 ac_count=0
5832 $as_echo_n 0123456789 >"conftest.in"
5833 while :
5834 do
5835 cat "conftest.in" "conftest.in" >"conftest.tmp"
5836 mv "conftest.tmp" "conftest.in"
5837 cp "conftest.in" "conftest.nl"
5838 $as_echo 'FGREP' >> "conftest.nl"
5839 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5840 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5841 as_fn_arith $ac_count + 1 && ac_count=$as_val
5842 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5843 # Best one so far, save it but keep looking for a better one
5844 ac_cv_path_FGREP="$ac_path_FGREP"
5845 ac_path_FGREP_max=$ac_count
5846 fi
5847 # 10*(2^10) chars as input seems more than enough
5848 test $ac_count -gt 10 && break
5849 done
5850 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5851 esac
5852
5853 $ac_path_FGREP_found && break 3
5854 done
5855 done
5856 done
5857 IFS=$as_save_IFS
5858 if test -z "$ac_cv_path_FGREP"; then
5859 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5860 fi
5861 else
5862 ac_cv_path_FGREP=$FGREP
5863 fi
5864
5865 fi
5866 fi
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5868 $as_echo "$ac_cv_path_FGREP" >&6; }
5869 FGREP="$ac_cv_path_FGREP"
5870
5871
5872 test -z "$GREP" && GREP=grep
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892 # Check whether --with-gnu-ld was given.
5893 if test "${with_gnu_ld+set}" = set; then :
5894 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5895 else
5896 with_gnu_ld=no
5897 fi
5898
5899 ac_prog=ld
5900 if test "$GCC" = yes; then
5901 # Check if gcc -print-prog-name=ld gives a path.
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5903 $as_echo_n "checking for ld used by $CC... " >&6; }
5904 case $host in
5905 *-*-mingw*)
5906 # gcc leaves a trailing carriage return which upsets mingw
5907 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5908 *)
5909 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5910 esac
5911 case $ac_prog in
5912 # Accept absolute paths.
5913 [\\/]* | ?:[\\/]*)
5914 re_direlt='/[^/][^/]*/\.\./'
5915 # Canonicalize the pathname of ld
5916 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5917 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5918 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5919 done
5920 test -z "$LD" && LD="$ac_prog"
5921 ;;
5922 "")
5923 # If it fails, then pretend we aren't using GCC.
5924 ac_prog=ld
5925 ;;
5926 *)
5927 # If it is relative, then search for the first ld in PATH.
5928 with_gnu_ld=unknown
5929 ;;
5930 esac
5931 elif test "$with_gnu_ld" = yes; then
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5933 $as_echo_n "checking for GNU ld... " >&6; }
5934 else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5936 $as_echo_n "checking for non-GNU ld... " >&6; }
5937 fi
5938 if ${lt_cv_path_LD+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test -z "$LD"; then
5942 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5943 for ac_dir in $PATH; do
5944 IFS="$lt_save_ifs"
5945 test -z "$ac_dir" && ac_dir=.
5946 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5947 lt_cv_path_LD="$ac_dir/$ac_prog"
5948 # Check to see if the program is GNU ld. I'd rather use --version,
5949 # but apparently some variants of GNU ld only accept -v.
5950 # Break only if it was the GNU/non-GNU ld that we prefer.
5951 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5952 *GNU* | *'with BFD'*)
5953 test "$with_gnu_ld" != no && break
5954 ;;
5955 *)
5956 test "$with_gnu_ld" != yes && break
5957 ;;
5958 esac
5959 fi
5960 done
5961 IFS="$lt_save_ifs"
5962 else
5963 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5964 fi
5965 fi
5966
5967 LD="$lt_cv_path_LD"
5968 if test -n "$LD"; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5970 $as_echo "$LD" >&6; }
5971 else
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973 $as_echo "no" >&6; }
5974 fi
5975 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5977 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5978 if ${lt_cv_prog_gnu_ld+:} false; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5982 case `$LD -v 2>&1 </dev/null` in
5983 *GNU* | *'with BFD'*)
5984 lt_cv_prog_gnu_ld=yes
5985 ;;
5986 *)
5987 lt_cv_prog_gnu_ld=no
5988 ;;
5989 esac
5990 fi
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5992 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5993 with_gnu_ld=$lt_cv_prog_gnu_ld
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6004 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6005 if ${lt_cv_path_NM+:} false; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 if test -n "$NM"; then
6009 # Let the user override the nm to test.
6010 lt_nm_to_check="$NM"
6011 else
6012 lt_nm_to_check="${ac_tool_prefix}nm"
6013 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6014 lt_nm_to_check="$lt_nm_to_check nm"
6015 fi
6016 fi
6017 for lt_tmp_nm in "$lt_nm_to_check"; do
6018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6019 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6020 IFS="$lt_save_ifs"
6021 test -z "$ac_dir" && ac_dir=.
6022 # Strip out any user-provided options from the nm to test twice,
6023 # the first time to test to see if nm (rather than its options) has
6024 # an explicit path, the second time to yield a file which can be
6025 # nm'ed itself.
6026 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6027 case "$tmp_nm_path" in
6028 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6029 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6030 esac
6031 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6032 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6033 # Check to see if the nm accepts a BSD-compat flag.
6034 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6035 # nm: unknown option "B" ignored
6036 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6037 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6038 break
6039 ;;
6040 *)
6041 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6042 *$tmp_nm*)
6043 lt_cv_path_NM="$tmp_nm -p"
6044 break
6045 ;;
6046 *)
6047 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6048 continue # so that we can try to find one that supports BSD flags
6049 ;;
6050 esac
6051 ;;
6052 esac
6053 fi
6054 done
6055 IFS="$lt_save_ifs"
6056 done
6057 : ${lt_cv_path_NM=no}
6058 fi
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6060 $as_echo "$lt_cv_path_NM" >&6; }
6061 if test "$lt_cv_path_NM" != "no"; then
6062 NM="$lt_cv_path_NM"
6063 else
6064 # Didn't find any BSD compatible name lister, look for dumpbin.
6065 if test -n "$DUMPBIN"; then :
6066 # Let the user override the test.
6067 else
6068 if test -n "$ac_tool_prefix"; then
6069 for ac_prog in dumpbin "link -dump"
6070 do
6071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if ${ac_cv_prog_DUMPBIN+:} false; then :
6076 $as_echo_n "(cached) " >&6
6077 else
6078 if test -n "$DUMPBIN"; then
6079 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6083 do
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6091 fi
6092 done
6093 done
6094 IFS=$as_save_IFS
6095
6096 fi
6097 fi
6098 DUMPBIN=$ac_cv_prog_DUMPBIN
6099 if test -n "$DUMPBIN"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6101 $as_echo "$DUMPBIN" >&6; }
6102 else
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6105 fi
6106
6107
6108 test -n "$DUMPBIN" && break
6109 done
6110 fi
6111 if test -z "$DUMPBIN"; then
6112 ac_ct_DUMPBIN=$DUMPBIN
6113 for ac_prog in dumpbin "link -dump"
6114 do
6115 # Extract the first word of "$ac_prog", so it can be a program name with args.
6116 set dummy $ac_prog; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 if test -n "$ac_ct_DUMPBIN"; then
6123 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6127 do
6128 IFS=$as_save_IFS
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6132 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 break 2
6135 fi
6136 done
6137 done
6138 IFS=$as_save_IFS
6139
6140 fi
6141 fi
6142 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6143 if test -n "$ac_ct_DUMPBIN"; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6145 $as_echo "$ac_ct_DUMPBIN" >&6; }
6146 else
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 $as_echo "no" >&6; }
6149 fi
6150
6151
6152 test -n "$ac_ct_DUMPBIN" && break
6153 done
6154
6155 if test "x$ac_ct_DUMPBIN" = x; then
6156 DUMPBIN=":"
6157 else
6158 case $cross_compiling:$ac_tool_warned in
6159 yes:)
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6162 ac_tool_warned=yes ;;
6163 esac
6164 DUMPBIN=$ac_ct_DUMPBIN
6165 fi
6166 fi
6167
6168 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6169 *COFF*)
6170 DUMPBIN="$DUMPBIN -symbols"
6171 ;;
6172 *)
6173 DUMPBIN=:
6174 ;;
6175 esac
6176 fi
6177
6178 if test "$DUMPBIN" != ":"; then
6179 NM="$DUMPBIN"
6180 fi
6181 fi
6182 test -z "$NM" && NM=nm
6183
6184
6185
6186
6187
6188
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6190 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6191 if ${lt_cv_nm_interface+:} false; then :
6192 $as_echo_n "(cached) " >&6
6193 else
6194 lt_cv_nm_interface="BSD nm"
6195 echo "int some_variable = 0;" > conftest.$ac_ext
6196 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6197 (eval "$ac_compile" 2>conftest.err)
6198 cat conftest.err >&5
6199 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6200 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6201 cat conftest.err >&5
6202 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6203 cat conftest.out >&5
6204 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6205 lt_cv_nm_interface="MS dumpbin"
6206 fi
6207 rm -f conftest*
6208 fi
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6210 $as_echo "$lt_cv_nm_interface" >&6; }
6211
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6213 $as_echo_n "checking whether ln -s works... " >&6; }
6214 LN_S=$as_ln_s
6215 if test "$LN_S" = "ln -s"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6217 $as_echo "yes" >&6; }
6218 else
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6220 $as_echo "no, using $LN_S" >&6; }
6221 fi
6222
6223 # find the maximum length of command line arguments
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6225 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6226 if ${lt_cv_sys_max_cmd_len+:} false; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229 i=0
6230 teststring="ABCD"
6231
6232 case $build_os in
6233 msdosdjgpp*)
6234 # On DJGPP, this test can blow up pretty badly due to problems in libc
6235 # (any single argument exceeding 2000 bytes causes a buffer overrun
6236 # during glob expansion). Even if it were fixed, the result of this
6237 # check would be larger than it should be.
6238 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6239 ;;
6240
6241 gnu*)
6242 # Under GNU Hurd, this test is not required because there is
6243 # no limit to the length of command line arguments.
6244 # Libtool will interpret -1 as no limit whatsoever
6245 lt_cv_sys_max_cmd_len=-1;
6246 ;;
6247
6248 cygwin* | mingw* | cegcc*)
6249 # On Win9x/ME, this test blows up -- it succeeds, but takes
6250 # about 5 minutes as the teststring grows exponentially.
6251 # Worse, since 9x/ME are not pre-emptively multitasking,
6252 # you end up with a "frozen" computer, even though with patience
6253 # the test eventually succeeds (with a max line length of 256k).
6254 # Instead, let's just punt: use the minimum linelength reported by
6255 # all of the supported platforms: 8192 (on NT/2K/XP).
6256 lt_cv_sys_max_cmd_len=8192;
6257 ;;
6258
6259 mint*)
6260 # On MiNT this can take a long time and run out of memory.
6261 lt_cv_sys_max_cmd_len=8192;
6262 ;;
6263
6264 amigaos*)
6265 # On AmigaOS with pdksh, this test takes hours, literally.
6266 # So we just punt and use a minimum line length of 8192.
6267 lt_cv_sys_max_cmd_len=8192;
6268 ;;
6269
6270 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6271 # This has been around since 386BSD, at least. Likely further.
6272 if test -x /sbin/sysctl; then
6273 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6274 elif test -x /usr/sbin/sysctl; then
6275 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6276 else
6277 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6278 fi
6279 # And add a safety zone
6280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6282 ;;
6283
6284 interix*)
6285 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6286 lt_cv_sys_max_cmd_len=196608
6287 ;;
6288
6289 osf*)
6290 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6291 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6292 # nice to cause kernel panics so lets avoid the loop below.
6293 # First set a reasonable default.
6294 lt_cv_sys_max_cmd_len=16384
6295 #
6296 if test -x /sbin/sysconfig; then
6297 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6298 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6299 esac
6300 fi
6301 ;;
6302 sco3.2v5*)
6303 lt_cv_sys_max_cmd_len=102400
6304 ;;
6305 sysv5* | sco5v6* | sysv4.2uw2*)
6306 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6307 if test -n "$kargmax"; then
6308 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6309 else
6310 lt_cv_sys_max_cmd_len=32768
6311 fi
6312 ;;
6313 *)
6314 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6315 if test -n "$lt_cv_sys_max_cmd_len"; then
6316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6318 else
6319 # Make teststring a little bigger before we do anything with it.
6320 # a 1K string should be a reasonable start.
6321 for i in 1 2 3 4 5 6 7 8 ; do
6322 teststring=$teststring$teststring
6323 done
6324 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6325 # If test is not a shell built-in, we'll probably end up computing a
6326 # maximum length that is only half of the actual maximum length, but
6327 # we can't tell.
6328 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6329 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6330 test $i != 17 # 1/2 MB should be enough
6331 do
6332 i=`expr $i + 1`
6333 teststring=$teststring$teststring
6334 done
6335 # Only check the string length outside the loop.
6336 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6337 teststring=
6338 # Add a significant safety factor because C++ compilers can tack on
6339 # massive amounts of additional arguments before passing them to the
6340 # linker. It appears as though 1/2 is a usable value.
6341 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6342 fi
6343 ;;
6344 esac
6345
6346 fi
6347
6348 if test -n $lt_cv_sys_max_cmd_len ; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6350 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6351 else
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6353 $as_echo "none" >&6; }
6354 fi
6355 max_cmd_len=$lt_cv_sys_max_cmd_len
6356
6357
6358
6359
6360
6361
6362 : ${CP="cp -f"}
6363 : ${MV="mv -f"}
6364 : ${RM="rm -f"}
6365
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6367 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6368 # Try some XSI features
6369 xsi_shell=no
6370 ( _lt_dummy="a/b/c"
6371 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6372 = c,a/b,, \
6373 && eval 'test $(( 1 + 1 )) -eq 2 \
6374 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6375 && xsi_shell=yes
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6377 $as_echo "$xsi_shell" >&6; }
6378
6379
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6381 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6382 lt_shell_append=no
6383 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6384 >/dev/null 2>&1 \
6385 && lt_shell_append=yes
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6387 $as_echo "$lt_shell_append" >&6; }
6388
6389
6390 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6391 lt_unset=unset
6392 else
6393 lt_unset=false
6394 fi
6395
6396
6397
6398
6399
6400 # test EBCDIC or ASCII
6401 case `echo X|tr X '\101'` in
6402 A) # ASCII based system
6403 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6404 lt_SP2NL='tr \040 \012'
6405 lt_NL2SP='tr \015\012 \040\040'
6406 ;;
6407 *) # EBCDIC based system
6408 lt_SP2NL='tr \100 \n'
6409 lt_NL2SP='tr \r\n \100\100'
6410 ;;
6411 esac
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6422 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6423 if ${lt_cv_ld_reload_flag+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 lt_cv_ld_reload_flag='-r'
6427 fi
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6429 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6430 reload_flag=$lt_cv_ld_reload_flag
6431 case $reload_flag in
6432 "" | " "*) ;;
6433 *) reload_flag=" $reload_flag" ;;
6434 esac
6435 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6436 case $host_os in
6437 darwin*)
6438 if test "$GCC" = yes; then
6439 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6440 else
6441 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6442 fi
6443 ;;
6444 esac
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454 if test -n "$ac_tool_prefix"; then
6455 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6456 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if ${ac_cv_prog_OBJDUMP+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 if test -n "$OBJDUMP"; then
6463 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6472 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6475 fi
6476 done
6477 done
6478 IFS=$as_save_IFS
6479
6480 fi
6481 fi
6482 OBJDUMP=$ac_cv_prog_OBJDUMP
6483 if test -n "$OBJDUMP"; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6485 $as_echo "$OBJDUMP" >&6; }
6486 else
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 $as_echo "no" >&6; }
6489 fi
6490
6491
6492 fi
6493 if test -z "$ac_cv_prog_OBJDUMP"; then
6494 ac_ct_OBJDUMP=$OBJDUMP
6495 # Extract the first word of "objdump", so it can be a program name with args.
6496 set dummy objdump; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 if test -n "$ac_ct_OBJDUMP"; then
6503 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516 done
6517 done
6518 IFS=$as_save_IFS
6519
6520 fi
6521 fi
6522 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6523 if test -n "$ac_ct_OBJDUMP"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6525 $as_echo "$ac_ct_OBJDUMP" >&6; }
6526 else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6529 fi
6530
6531 if test "x$ac_ct_OBJDUMP" = x; then
6532 OBJDUMP="false"
6533 else
6534 case $cross_compiling:$ac_tool_warned in
6535 yes:)
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6538 ac_tool_warned=yes ;;
6539 esac
6540 OBJDUMP=$ac_ct_OBJDUMP
6541 fi
6542 else
6543 OBJDUMP="$ac_cv_prog_OBJDUMP"
6544 fi
6545
6546 test -z "$OBJDUMP" && OBJDUMP=objdump
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6557 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6558 if ${lt_cv_deplibs_check_method+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 lt_cv_file_magic_cmd='$MAGIC_CMD'
6562 lt_cv_file_magic_test_file=
6563 lt_cv_deplibs_check_method='unknown'
6564 # Need to set the preceding variable on all platforms that support
6565 # interlibrary dependencies.
6566 # 'none' -- dependencies not supported.
6567 # `unknown' -- same as none, but documents that we really don't know.
6568 # 'pass_all' -- all dependencies passed with no checks.
6569 # 'test_compile' -- check by making test program.
6570 # 'file_magic [[regex]]' -- check by looking for files in library path
6571 # which responds to the $file_magic_cmd with a given extended regex.
6572 # If you have `file' or equivalent on your system and you're not sure
6573 # whether `pass_all' will *always* work, you probably want this one.
6574
6575 case $host_os in
6576 aix[4-9]*)
6577 lt_cv_deplibs_check_method=pass_all
6578 ;;
6579
6580 beos*)
6581 lt_cv_deplibs_check_method=pass_all
6582 ;;
6583
6584 bsdi[45]*)
6585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6586 lt_cv_file_magic_cmd='/usr/bin/file -L'
6587 lt_cv_file_magic_test_file=/shlib/libc.so
6588 ;;
6589
6590 cygwin*)
6591 # func_win32_libid is a shell function defined in ltmain.sh
6592 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6593 lt_cv_file_magic_cmd='func_win32_libid'
6594 ;;
6595
6596 mingw* | pw32*)
6597 # Base MSYS/MinGW do not provide the 'file' command needed by
6598 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6599 # unless we find 'file', for example because we are cross-compiling.
6600 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6601 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6602 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6603 lt_cv_file_magic_cmd='func_win32_libid'
6604 else
6605 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6606 lt_cv_file_magic_cmd='$OBJDUMP -f'
6607 fi
6608 ;;
6609
6610 cegcc*)
6611 # use the weaker test based on 'objdump'. See mingw*.
6612 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6613 lt_cv_file_magic_cmd='$OBJDUMP -f'
6614 ;;
6615
6616 darwin* | rhapsody*)
6617 lt_cv_deplibs_check_method=pass_all
6618 ;;
6619
6620 freebsd* | dragonfly*)
6621 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6622 case $host_cpu in
6623 i*86 )
6624 # Not sure whether the presence of OpenBSD here was a mistake.
6625 # Let's accept both of them until this is cleared up.
6626 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6627 lt_cv_file_magic_cmd=/usr/bin/file
6628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6629 ;;
6630 esac
6631 else
6632 lt_cv_deplibs_check_method=pass_all
6633 fi
6634 ;;
6635
6636 gnu*)
6637 lt_cv_deplibs_check_method=pass_all
6638 ;;
6639
6640 haiku*)
6641 lt_cv_deplibs_check_method=pass_all
6642 ;;
6643
6644 hpux10.20* | hpux11*)
6645 lt_cv_file_magic_cmd=/usr/bin/file
6646 case $host_cpu in
6647 ia64*)
6648 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6649 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6650 ;;
6651 hppa*64*)
6652 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]'
6653 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6654 ;;
6655 *)
6656 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6657 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6658 ;;
6659 esac
6660 ;;
6661
6662 interix[3-9]*)
6663 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6665 ;;
6666
6667 irix5* | irix6* | nonstopux*)
6668 case $LD in
6669 *-32|*"-32 ") libmagic=32-bit;;
6670 *-n32|*"-n32 ") libmagic=N32;;
6671 *-64|*"-64 ") libmagic=64-bit;;
6672 *) libmagic=never-match;;
6673 esac
6674 lt_cv_deplibs_check_method=pass_all
6675 ;;
6676
6677 # This must be Linux ELF.
6678 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6679 lt_cv_deplibs_check_method=pass_all
6680 ;;
6681
6682 netbsd*)
6683 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6685 else
6686 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6687 fi
6688 ;;
6689
6690 newos6*)
6691 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6692 lt_cv_file_magic_cmd=/usr/bin/file
6693 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6694 ;;
6695
6696 *nto* | *qnx*)
6697 lt_cv_deplibs_check_method=pass_all
6698 ;;
6699
6700 openbsd*)
6701 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6703 else
6704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6705 fi
6706 ;;
6707
6708 osf3* | osf4* | osf5*)
6709 lt_cv_deplibs_check_method=pass_all
6710 ;;
6711
6712 rdos*)
6713 lt_cv_deplibs_check_method=pass_all
6714 ;;
6715
6716 solaris*)
6717 lt_cv_deplibs_check_method=pass_all
6718 ;;
6719
6720 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6721 lt_cv_deplibs_check_method=pass_all
6722 ;;
6723
6724 sysv4 | sysv4.3*)
6725 case $host_vendor in
6726 motorola)
6727 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]'
6728 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6729 ;;
6730 ncr)
6731 lt_cv_deplibs_check_method=pass_all
6732 ;;
6733 sequent)
6734 lt_cv_file_magic_cmd='/bin/file'
6735 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6736 ;;
6737 sni)
6738 lt_cv_file_magic_cmd='/bin/file'
6739 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6740 lt_cv_file_magic_test_file=/lib/libc.so
6741 ;;
6742 siemens)
6743 lt_cv_deplibs_check_method=pass_all
6744 ;;
6745 pc)
6746 lt_cv_deplibs_check_method=pass_all
6747 ;;
6748 esac
6749 ;;
6750
6751 tpf*)
6752 lt_cv_deplibs_check_method=pass_all
6753 ;;
6754 esac
6755
6756 fi
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6758 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6759 file_magic_cmd=$lt_cv_file_magic_cmd
6760 deplibs_check_method=$lt_cv_deplibs_check_method
6761 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774 plugin_option=
6775 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6776 for plugin in $plugin_names; do
6777 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6778 if test x$plugin_so = x$plugin; then
6779 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6780 fi
6781 if test x$plugin_so != x$plugin; then
6782 plugin_option="--plugin $plugin_so"
6783 break
6784 fi
6785 done
6786
6787 if test -n "$ac_tool_prefix"; then
6788 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6789 set dummy ${ac_tool_prefix}ar; ac_word=$2
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791 $as_echo_n "checking for $ac_word... " >&6; }
6792 if ${ac_cv_prog_AR+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 if test -n "$AR"; then
6796 ac_cv_prog_AR="$AR" # Let the user override the test.
6797 else
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6800 do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6805 ac_cv_prog_AR="${ac_tool_prefix}ar"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6808 fi
6809 done
6810 done
6811 IFS=$as_save_IFS
6812
6813 fi
6814 fi
6815 AR=$ac_cv_prog_AR
6816 if test -n "$AR"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6818 $as_echo "$AR" >&6; }
6819 else
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 $as_echo "no" >&6; }
6822 fi
6823
6824
6825 fi
6826 if test -z "$ac_cv_prog_AR"; then
6827 ac_ct_AR=$AR
6828 # Extract the first word of "ar", so it can be a program name with args.
6829 set dummy ar; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 if test -n "$ac_ct_AR"; then
6836 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6837 else
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6840 do
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6845 ac_cv_prog_ac_ct_AR="ar"
6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 break 2
6848 fi
6849 done
6850 done
6851 IFS=$as_save_IFS
6852
6853 fi
6854 fi
6855 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6856 if test -n "$ac_ct_AR"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6858 $as_echo "$ac_ct_AR" >&6; }
6859 else
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6862 fi
6863
6864 if test "x$ac_ct_AR" = x; then
6865 AR="false"
6866 else
6867 case $cross_compiling:$ac_tool_warned in
6868 yes:)
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871 ac_tool_warned=yes ;;
6872 esac
6873 AR=$ac_ct_AR
6874 fi
6875 else
6876 AR="$ac_cv_prog_AR"
6877 fi
6878
6879 test -z "$AR" && AR=ar
6880 if test -n "$plugin_option"; then
6881 if $AR --help 2>&1 | grep -q "\--plugin"; then
6882 touch conftest.c
6883 $AR $plugin_option rc conftest.a conftest.c
6884 if test "$?" != 0; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6886 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6887 else
6888 AR="$AR $plugin_option"
6889 fi
6890 rm -f conftest.*
6891 fi
6892 fi
6893 test -z "$AR_FLAGS" && AR_FLAGS=cru
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905 if test -n "$ac_tool_prefix"; then
6906 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6907 set dummy ${ac_tool_prefix}strip; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_prog_STRIP+:} false; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 if test -n "$STRIP"; then
6914 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6915 else
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6923 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927 done
6928 done
6929 IFS=$as_save_IFS
6930
6931 fi
6932 fi
6933 STRIP=$ac_cv_prog_STRIP
6934 if test -n "$STRIP"; then
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6936 $as_echo "$STRIP" >&6; }
6937 else
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 $as_echo "no" >&6; }
6940 fi
6941
6942
6943 fi
6944 if test -z "$ac_cv_prog_STRIP"; then
6945 ac_ct_STRIP=$STRIP
6946 # Extract the first word of "strip", so it can be a program name with args.
6947 set dummy strip; ac_word=$2
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949 $as_echo_n "checking for $ac_word... " >&6; }
6950 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 if test -n "$ac_ct_STRIP"; then
6954 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6955 else
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH
6958 do
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6963 ac_cv_prog_ac_ct_STRIP="strip"
6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 break 2
6966 fi
6967 done
6968 done
6969 IFS=$as_save_IFS
6970
6971 fi
6972 fi
6973 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6974 if test -n "$ac_ct_STRIP"; then
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6976 $as_echo "$ac_ct_STRIP" >&6; }
6977 else
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979 $as_echo "no" >&6; }
6980 fi
6981
6982 if test "x$ac_ct_STRIP" = x; then
6983 STRIP=":"
6984 else
6985 case $cross_compiling:$ac_tool_warned in
6986 yes:)
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6989 ac_tool_warned=yes ;;
6990 esac
6991 STRIP=$ac_ct_STRIP
6992 fi
6993 else
6994 STRIP="$ac_cv_prog_STRIP"
6995 fi
6996
6997 test -z "$STRIP" && STRIP=:
6998
6999
7000
7001
7002
7003
7004 if test -n "$ac_tool_prefix"; then
7005 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7006 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if ${ac_cv_prog_RANLIB+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 if test -n "$RANLIB"; then
7013 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7029
7030 fi
7031 fi
7032 RANLIB=$ac_cv_prog_RANLIB
7033 if test -n "$RANLIB"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7035 $as_echo "$RANLIB" >&6; }
7036 else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040
7041
7042 fi
7043 if test -z "$ac_cv_prog_RANLIB"; then
7044 ac_ct_RANLIB=$RANLIB
7045 # Extract the first word of "ranlib", so it can be a program name with args.
7046 set dummy ranlib; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 if test -n "$ac_ct_RANLIB"; then
7053 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_ac_ct_RANLIB="ranlib"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7065 fi
7066 done
7067 done
7068 IFS=$as_save_IFS
7069
7070 fi
7071 fi
7072 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7073 if test -n "$ac_ct_RANLIB"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7075 $as_echo "$ac_ct_RANLIB" >&6; }
7076 else
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7079 fi
7080
7081 if test "x$ac_ct_RANLIB" = x; then
7082 RANLIB=":"
7083 else
7084 case $cross_compiling:$ac_tool_warned in
7085 yes:)
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088 ac_tool_warned=yes ;;
7089 esac
7090 RANLIB=$ac_ct_RANLIB
7091 fi
7092 else
7093 RANLIB="$ac_cv_prog_RANLIB"
7094 fi
7095
7096 test -z "$RANLIB" && RANLIB=:
7097 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7098 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7099 RANLIB="$RANLIB $plugin_option"
7100 fi
7101 fi
7102
7103
7104
7105
7106
7107
7108 # Determine commands to create old-style static archives.
7109 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7110 old_postinstall_cmds='chmod 644 $oldlib'
7111 old_postuninstall_cmds=
7112
7113 if test -n "$RANLIB"; then
7114 case $host_os in
7115 openbsd*)
7116 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7117 ;;
7118 *)
7119 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7120 ;;
7121 esac
7122 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7123 fi
7124
7125 case $host_os in
7126 darwin*)
7127 lock_old_archive_extraction=yes ;;
7128 *)
7129 lock_old_archive_extraction=no ;;
7130 esac
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152 for ac_prog in gawk mawk nawk awk
7153 do
7154 # Extract the first word of "$ac_prog", so it can be a program name with args.
7155 set dummy $ac_prog; ac_word=$2
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 $as_echo_n "checking for $ac_word... " >&6; }
7158 if ${ac_cv_prog_AWK+:} false; then :
7159 $as_echo_n "(cached) " >&6
7160 else
7161 if test -n "$AWK"; then
7162 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7163 else
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7166 do
7167 IFS=$as_save_IFS
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171 ac_cv_prog_AWK="$ac_prog"
7172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 break 2
7174 fi
7175 done
7176 done
7177 IFS=$as_save_IFS
7178
7179 fi
7180 fi
7181 AWK=$ac_cv_prog_AWK
7182 if test -n "$AWK"; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7184 $as_echo "$AWK" >&6; }
7185 else
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7188 fi
7189
7190
7191 test -n "$AWK" && break
7192 done
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212 # If no C compiler was specified, use CC.
7213 LTCC=${LTCC-"$CC"}
7214
7215 # If no C compiler flags were specified, use CFLAGS.
7216 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7217
7218 # Allow CC to be a program name with arguments.
7219 compiler=$CC
7220
7221
7222 # Check for command to grab the raw symbol name followed by C symbol from nm.
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7224 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7225 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7226 $as_echo_n "(cached) " >&6
7227 else
7228
7229 # These are sane defaults that work on at least a few old systems.
7230 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7231
7232 # Character class describing NM global symbol codes.
7233 symcode='[BCDEGRST]'
7234
7235 # Regexp to match symbols that can be accessed directly from C.
7236 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7237
7238 # Define system-specific variables.
7239 case $host_os in
7240 aix*)
7241 symcode='[BCDT]'
7242 ;;
7243 cygwin* | mingw* | pw32* | cegcc*)
7244 symcode='[ABCDGISTW]'
7245 ;;
7246 hpux*)
7247 if test "$host_cpu" = ia64; then
7248 symcode='[ABCDEGRST]'
7249 fi
7250 ;;
7251 irix* | nonstopux*)
7252 symcode='[BCDEGRST]'
7253 ;;
7254 osf*)
7255 symcode='[BCDEGQRST]'
7256 ;;
7257 solaris*)
7258 symcode='[BCDRT]'
7259 ;;
7260 sco3.2v5*)
7261 symcode='[DT]'
7262 ;;
7263 sysv4.2uw2*)
7264 symcode='[DT]'
7265 ;;
7266 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7267 symcode='[ABDT]'
7268 ;;
7269 sysv4)
7270 symcode='[DFNSTU]'
7271 ;;
7272 esac
7273
7274 # If we're using GNU nm, then use its standard symbol codes.
7275 case `$NM -V 2>&1` in
7276 *GNU* | *'with BFD'*)
7277 symcode='[ABCDGIRSTW]' ;;
7278 esac
7279
7280 # Transform an extracted symbol line into a proper C declaration.
7281 # Some systems (esp. on ia64) link data and code symbols differently,
7282 # so use this general approach.
7283 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7284
7285 # Transform an extracted symbol line into symbol name and symbol address
7286 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7287 lt_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'"
7288
7289 # Handle CRLF in mingw tool chain
7290 opt_cr=
7291 case $build_os in
7292 mingw*)
7293 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7294 ;;
7295 esac
7296
7297 # Try without a prefix underscore, then with it.
7298 for ac_symprfx in "" "_"; do
7299
7300 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7301 symxfrm="\\1 $ac_symprfx\\2 \\2"
7302
7303 # Write the raw and C identifiers.
7304 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7305 # Fake it for dumpbin and say T for any non-static function
7306 # and D for any global variable.
7307 # Also find C++ and __fastcall symbols from MSVC++,
7308 # which start with @ or ?.
7309 lt_cv_sys_global_symbol_pipe="$AWK '"\
7310 " {last_section=section; section=\$ 3};"\
7311 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7312 " \$ 0!~/External *\|/{next};"\
7313 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7314 " {if(hide[section]) next};"\
7315 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7316 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7317 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7318 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7319 " ' prfx=^$ac_symprfx"
7320 else
7321 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7322 fi
7323
7324 # Check to see that the pipe works correctly.
7325 pipe_works=no
7326
7327 rm -f conftest*
7328 cat > conftest.$ac_ext <<_LT_EOF
7329 #ifdef __cplusplus
7330 extern "C" {
7331 #endif
7332 char nm_test_var;
7333 void nm_test_func(void);
7334 void nm_test_func(void){}
7335 #ifdef __cplusplus
7336 }
7337 #endif
7338 int main(){nm_test_var='a';nm_test_func();return(0);}
7339 _LT_EOF
7340
7341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7342 (eval $ac_compile) 2>&5
7343 ac_status=$?
7344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7345 test $ac_status = 0; }; then
7346 # Now try to grab the symbols.
7347 nlist=conftest.nm
7348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7349 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7350 ac_status=$?
7351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7352 test $ac_status = 0; } && test -s "$nlist"; then
7353 # Try sorting and uniquifying the output.
7354 if sort "$nlist" | uniq > "$nlist"T; then
7355 mv -f "$nlist"T "$nlist"
7356 else
7357 rm -f "$nlist"T
7358 fi
7359
7360 # Make sure that we snagged all the symbols we need.
7361 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7362 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7363 cat <<_LT_EOF > conftest.$ac_ext
7364 #ifdef __cplusplus
7365 extern "C" {
7366 #endif
7367
7368 _LT_EOF
7369 # Now generate the symbol file.
7370 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7371
7372 cat <<_LT_EOF >> conftest.$ac_ext
7373
7374 /* The mapping between symbol names and symbols. */
7375 const struct {
7376 const char *name;
7377 void *address;
7378 }
7379 lt__PROGRAM__LTX_preloaded_symbols[] =
7380 {
7381 { "@PROGRAM@", (void *) 0 },
7382 _LT_EOF
7383 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7384 cat <<\_LT_EOF >> conftest.$ac_ext
7385 {0, (void *) 0}
7386 };
7387
7388 /* This works around a problem in FreeBSD linker */
7389 #ifdef FREEBSD_WORKAROUND
7390 static const void *lt_preloaded_setup() {
7391 return lt__PROGRAM__LTX_preloaded_symbols;
7392 }
7393 #endif
7394
7395 #ifdef __cplusplus
7396 }
7397 #endif
7398 _LT_EOF
7399 # Now try linking the two files.
7400 mv conftest.$ac_objext conftstm.$ac_objext
7401 lt_save_LIBS="$LIBS"
7402 lt_save_CFLAGS="$CFLAGS"
7403 LIBS="conftstm.$ac_objext"
7404 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7406 (eval $ac_link) 2>&5
7407 ac_status=$?
7408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7409 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7410 pipe_works=yes
7411 fi
7412 LIBS="$lt_save_LIBS"
7413 CFLAGS="$lt_save_CFLAGS"
7414 else
7415 echo "cannot find nm_test_func in $nlist" >&5
7416 fi
7417 else
7418 echo "cannot find nm_test_var in $nlist" >&5
7419 fi
7420 else
7421 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7422 fi
7423 else
7424 echo "$progname: failed program was:" >&5
7425 cat conftest.$ac_ext >&5
7426 fi
7427 rm -rf conftest* conftst*
7428
7429 # Do not use the global_symbol_pipe unless it works.
7430 if test "$pipe_works" = yes; then
7431 break
7432 else
7433 lt_cv_sys_global_symbol_pipe=
7434 fi
7435 done
7436
7437 fi
7438
7439 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7440 lt_cv_sys_global_symbol_to_cdecl=
7441 fi
7442 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7444 $as_echo "failed" >&6; }
7445 else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7447 $as_echo "ok" >&6; }
7448 fi
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471 # Check whether --enable-libtool-lock was given.
7472 if test "${enable_libtool_lock+set}" = set; then :
7473 enableval=$enable_libtool_lock;
7474 fi
7475
7476 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7477
7478 # Some flags need to be propagated to the compiler or linker for good
7479 # libtool support.
7480 case $host in
7481 ia64-*-hpux*)
7482 # Find out which ABI we are using.
7483 echo 'int i;' > conftest.$ac_ext
7484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7485 (eval $ac_compile) 2>&5
7486 ac_status=$?
7487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7488 test $ac_status = 0; }; then
7489 case `/usr/bin/file conftest.$ac_objext` in
7490 *ELF-32*)
7491 HPUX_IA64_MODE="32"
7492 ;;
7493 *ELF-64*)
7494 HPUX_IA64_MODE="64"
7495 ;;
7496 esac
7497 fi
7498 rm -rf conftest*
7499 ;;
7500 *-*-irix6*)
7501 # Find out which ABI we are using.
7502 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7504 (eval $ac_compile) 2>&5
7505 ac_status=$?
7506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7507 test $ac_status = 0; }; then
7508 if test "$lt_cv_prog_gnu_ld" = yes; then
7509 case `/usr/bin/file conftest.$ac_objext` in
7510 *32-bit*)
7511 LD="${LD-ld} -melf32bsmip"
7512 ;;
7513 *N32*)
7514 LD="${LD-ld} -melf32bmipn32"
7515 ;;
7516 *64-bit*)
7517 LD="${LD-ld} -melf64bmip"
7518 ;;
7519 esac
7520 else
7521 case `/usr/bin/file conftest.$ac_objext` in
7522 *32-bit*)
7523 LD="${LD-ld} -32"
7524 ;;
7525 *N32*)
7526 LD="${LD-ld} -n32"
7527 ;;
7528 *64-bit*)
7529 LD="${LD-ld} -64"
7530 ;;
7531 esac
7532 fi
7533 fi
7534 rm -rf conftest*
7535 ;;
7536
7537 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7538 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7539 # Find out which ABI we are using.
7540 echo 'int i;' > conftest.$ac_ext
7541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7542 (eval $ac_compile) 2>&5
7543 ac_status=$?
7544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7545 test $ac_status = 0; }; then
7546 case `/usr/bin/file conftest.o` in
7547 *32-bit*)
7548 case $host in
7549 x86_64-*kfreebsd*-gnu)
7550 LD="${LD-ld} -m elf_i386_fbsd"
7551 ;;
7552 x86_64-*linux*)
7553 case `/usr/bin/file conftest.o` in
7554 *x86-64*)
7555 LD="${LD-ld} -m elf32_x86_64"
7556 ;;
7557 *)
7558 LD="${LD-ld} -m elf_i386"
7559 ;;
7560 esac
7561 ;;
7562 powerpc64le-*linux*)
7563 LD="${LD-ld} -m elf32lppclinux"
7564 ;;
7565 powerpc64-*linux*)
7566 LD="${LD-ld} -m elf32ppclinux"
7567 ;;
7568 s390x-*linux*)
7569 LD="${LD-ld} -m elf_s390"
7570 ;;
7571 sparc64-*linux*)
7572 LD="${LD-ld} -m elf32_sparc"
7573 ;;
7574 esac
7575 ;;
7576 *64-bit*)
7577 case $host in
7578 x86_64-*kfreebsd*-gnu)
7579 LD="${LD-ld} -m elf_x86_64_fbsd"
7580 ;;
7581 x86_64-*linux*)
7582 LD="${LD-ld} -m elf_x86_64"
7583 ;;
7584 powerpcle-*linux*)
7585 LD="${LD-ld} -m elf64lppc"
7586 ;;
7587 powerpc-*linux*)
7588 LD="${LD-ld} -m elf64ppc"
7589 ;;
7590 s390*-*linux*|s390*-*tpf*)
7591 LD="${LD-ld} -m elf64_s390"
7592 ;;
7593 sparc*-*linux*)
7594 LD="${LD-ld} -m elf64_sparc"
7595 ;;
7596 esac
7597 ;;
7598 esac
7599 fi
7600 rm -rf conftest*
7601 ;;
7602
7603 *-*-sco3.2v5*)
7604 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7605 SAVE_CFLAGS="$CFLAGS"
7606 CFLAGS="$CFLAGS -belf"
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7608 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7609 if ${lt_cv_cc_needs_belf+:} false; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 ac_ext=c
7613 ac_cpp='$CPP $CPPFLAGS'
7614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7617
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7620
7621 int
7622 main ()
7623 {
7624
7625 ;
7626 return 0;
7627 }
7628 _ACEOF
7629 if ac_fn_c_try_link "$LINENO"; then :
7630 lt_cv_cc_needs_belf=yes
7631 else
7632 lt_cv_cc_needs_belf=no
7633 fi
7634 rm -f core conftest.err conftest.$ac_objext \
7635 conftest$ac_exeext conftest.$ac_ext
7636 ac_ext=c
7637 ac_cpp='$CPP $CPPFLAGS'
7638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7641
7642 fi
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7644 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7645 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7646 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7647 CFLAGS="$SAVE_CFLAGS"
7648 fi
7649 ;;
7650 sparc*-*solaris*)
7651 # Find out which ABI we are using.
7652 echo 'int i;' > conftest.$ac_ext
7653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7654 (eval $ac_compile) 2>&5
7655 ac_status=$?
7656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7657 test $ac_status = 0; }; then
7658 case `/usr/bin/file conftest.o` in
7659 *64-bit*)
7660 case $lt_cv_prog_gnu_ld in
7661 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7662 *)
7663 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7664 LD="${LD-ld} -64"
7665 fi
7666 ;;
7667 esac
7668 ;;
7669 esac
7670 fi
7671 rm -rf conftest*
7672 ;;
7673 esac
7674
7675 need_locks="$enable_libtool_lock"
7676
7677
7678 case $host_os in
7679 rhapsody* | darwin*)
7680 if test -n "$ac_tool_prefix"; then
7681 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7682 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7684 $as_echo_n "checking for $ac_word... " >&6; }
7685 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 if test -n "$DSYMUTIL"; then
7689 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7690 else
7691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692 for as_dir in $PATH
7693 do
7694 IFS=$as_save_IFS
7695 test -z "$as_dir" && as_dir=.
7696 for ac_exec_ext in '' $ac_executable_extensions; do
7697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7698 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 break 2
7701 fi
7702 done
7703 done
7704 IFS=$as_save_IFS
7705
7706 fi
7707 fi
7708 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7709 if test -n "$DSYMUTIL"; then
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7711 $as_echo "$DSYMUTIL" >&6; }
7712 else
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714 $as_echo "no" >&6; }
7715 fi
7716
7717
7718 fi
7719 if test -z "$ac_cv_prog_DSYMUTIL"; then
7720 ac_ct_DSYMUTIL=$DSYMUTIL
7721 # Extract the first word of "dsymutil", so it can be a program name with args.
7722 set dummy dsymutil; ac_word=$2
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724 $as_echo_n "checking for $ac_word... " >&6; }
7725 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7726 $as_echo_n "(cached) " >&6
7727 else
7728 if test -n "$ac_ct_DSYMUTIL"; then
7729 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7730 else
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7733 do
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7738 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 break 2
7741 fi
7742 done
7743 done
7744 IFS=$as_save_IFS
7745
7746 fi
7747 fi
7748 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7749 if test -n "$ac_ct_DSYMUTIL"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7751 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7752 else
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7755 fi
7756
7757 if test "x$ac_ct_DSYMUTIL" = x; then
7758 DSYMUTIL=":"
7759 else
7760 case $cross_compiling:$ac_tool_warned in
7761 yes:)
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7764 ac_tool_warned=yes ;;
7765 esac
7766 DSYMUTIL=$ac_ct_DSYMUTIL
7767 fi
7768 else
7769 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7770 fi
7771
7772 if test -n "$ac_tool_prefix"; then
7773 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7774 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if ${ac_cv_prog_NMEDIT+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 if test -n "$NMEDIT"; then
7781 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7782 else
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 for as_dir in $PATH
7785 do
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 break 2
7793 fi
7794 done
7795 done
7796 IFS=$as_save_IFS
7797
7798 fi
7799 fi
7800 NMEDIT=$ac_cv_prog_NMEDIT
7801 if test -n "$NMEDIT"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7803 $as_echo "$NMEDIT" >&6; }
7804 else
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7807 fi
7808
7809
7810 fi
7811 if test -z "$ac_cv_prog_NMEDIT"; then
7812 ac_ct_NMEDIT=$NMEDIT
7813 # Extract the first word of "nmedit", so it can be a program name with args.
7814 set dummy nmedit; ac_word=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 $as_echo_n "checking for $ac_word... " >&6; }
7817 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7818 $as_echo_n "(cached) " >&6
7819 else
7820 if test -n "$ac_ct_NMEDIT"; then
7821 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7825 do
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 break 2
7833 fi
7834 done
7835 done
7836 IFS=$as_save_IFS
7837
7838 fi
7839 fi
7840 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7841 if test -n "$ac_ct_NMEDIT"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7843 $as_echo "$ac_ct_NMEDIT" >&6; }
7844 else
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7847 fi
7848
7849 if test "x$ac_ct_NMEDIT" = x; then
7850 NMEDIT=":"
7851 else
7852 case $cross_compiling:$ac_tool_warned in
7853 yes:)
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7856 ac_tool_warned=yes ;;
7857 esac
7858 NMEDIT=$ac_ct_NMEDIT
7859 fi
7860 else
7861 NMEDIT="$ac_cv_prog_NMEDIT"
7862 fi
7863
7864 if test -n "$ac_tool_prefix"; then
7865 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7866 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7868 $as_echo_n "checking for $ac_word... " >&6; }
7869 if ${ac_cv_prog_LIPO+:} false; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872 if test -n "$LIPO"; then
7873 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7874 else
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 for as_dir in $PATH
7877 do
7878 IFS=$as_save_IFS
7879 test -z "$as_dir" && as_dir=.
7880 for ac_exec_ext in '' $ac_executable_extensions; do
7881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7882 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 break 2
7885 fi
7886 done
7887 done
7888 IFS=$as_save_IFS
7889
7890 fi
7891 fi
7892 LIPO=$ac_cv_prog_LIPO
7893 if test -n "$LIPO"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7895 $as_echo "$LIPO" >&6; }
7896 else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7899 fi
7900
7901
7902 fi
7903 if test -z "$ac_cv_prog_LIPO"; then
7904 ac_ct_LIPO=$LIPO
7905 # Extract the first word of "lipo", so it can be a program name with args.
7906 set dummy lipo; ac_word=$2
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7908 $as_echo_n "checking for $ac_word... " >&6; }
7909 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 if test -n "$ac_ct_LIPO"; then
7913 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7914 else
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH
7917 do
7918 IFS=$as_save_IFS
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7922 ac_cv_prog_ac_ct_LIPO="lipo"
7923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 break 2
7925 fi
7926 done
7927 done
7928 IFS=$as_save_IFS
7929
7930 fi
7931 fi
7932 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7933 if test -n "$ac_ct_LIPO"; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7935 $as_echo "$ac_ct_LIPO" >&6; }
7936 else
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7939 fi
7940
7941 if test "x$ac_ct_LIPO" = x; then
7942 LIPO=":"
7943 else
7944 case $cross_compiling:$ac_tool_warned in
7945 yes:)
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7948 ac_tool_warned=yes ;;
7949 esac
7950 LIPO=$ac_ct_LIPO
7951 fi
7952 else
7953 LIPO="$ac_cv_prog_LIPO"
7954 fi
7955
7956 if test -n "$ac_tool_prefix"; then
7957 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7958 set dummy ${ac_tool_prefix}otool; ac_word=$2
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960 $as_echo_n "checking for $ac_word... " >&6; }
7961 if ${ac_cv_prog_OTOOL+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 if test -n "$OTOOL"; then
7965 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7966 else
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH
7969 do
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7974 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 break 2
7977 fi
7978 done
7979 done
7980 IFS=$as_save_IFS
7981
7982 fi
7983 fi
7984 OTOOL=$ac_cv_prog_OTOOL
7985 if test -n "$OTOOL"; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7987 $as_echo "$OTOOL" >&6; }
7988 else
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 $as_echo "no" >&6; }
7991 fi
7992
7993
7994 fi
7995 if test -z "$ac_cv_prog_OTOOL"; then
7996 ac_ct_OTOOL=$OTOOL
7997 # Extract the first word of "otool", so it can be a program name with args.
7998 set dummy otool; ac_word=$2
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8000 $as_echo_n "checking for $ac_word... " >&6; }
8001 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004 if test -n "$ac_ct_OTOOL"; then
8005 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8006 else
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 for as_dir in $PATH
8009 do
8010 IFS=$as_save_IFS
8011 test -z "$as_dir" && as_dir=.
8012 for ac_exec_ext in '' $ac_executable_extensions; do
8013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8014 ac_cv_prog_ac_ct_OTOOL="otool"
8015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 break 2
8017 fi
8018 done
8019 done
8020 IFS=$as_save_IFS
8021
8022 fi
8023 fi
8024 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8025 if test -n "$ac_ct_OTOOL"; then
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8027 $as_echo "$ac_ct_OTOOL" >&6; }
8028 else
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 $as_echo "no" >&6; }
8031 fi
8032
8033 if test "x$ac_ct_OTOOL" = x; then
8034 OTOOL=":"
8035 else
8036 case $cross_compiling:$ac_tool_warned in
8037 yes:)
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8040 ac_tool_warned=yes ;;
8041 esac
8042 OTOOL=$ac_ct_OTOOL
8043 fi
8044 else
8045 OTOOL="$ac_cv_prog_OTOOL"
8046 fi
8047
8048 if test -n "$ac_tool_prefix"; then
8049 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8050 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if ${ac_cv_prog_OTOOL64+:} false; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 if test -n "$OTOOL64"; then
8057 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8069 fi
8070 done
8071 done
8072 IFS=$as_save_IFS
8073
8074 fi
8075 fi
8076 OTOOL64=$ac_cv_prog_OTOOL64
8077 if test -n "$OTOOL64"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8079 $as_echo "$OTOOL64" >&6; }
8080 else
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8083 fi
8084
8085
8086 fi
8087 if test -z "$ac_cv_prog_OTOOL64"; then
8088 ac_ct_OTOOL64=$OTOOL64
8089 # Extract the first word of "otool64", so it can be a program name with args.
8090 set dummy otool64; ac_word=$2
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 $as_echo_n "checking for $ac_word... " >&6; }
8093 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096 if test -n "$ac_ct_OTOOL64"; then
8097 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8098 else
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8101 do
8102 IFS=$as_save_IFS
8103 test -z "$as_dir" && as_dir=.
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8106 ac_cv_prog_ac_ct_OTOOL64="otool64"
8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 break 2
8109 fi
8110 done
8111 done
8112 IFS=$as_save_IFS
8113
8114 fi
8115 fi
8116 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8117 if test -n "$ac_ct_OTOOL64"; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8119 $as_echo "$ac_ct_OTOOL64" >&6; }
8120 else
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122 $as_echo "no" >&6; }
8123 fi
8124
8125 if test "x$ac_ct_OTOOL64" = x; then
8126 OTOOL64=":"
8127 else
8128 case $cross_compiling:$ac_tool_warned in
8129 yes:)
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8132 ac_tool_warned=yes ;;
8133 esac
8134 OTOOL64=$ac_ct_OTOOL64
8135 fi
8136 else
8137 OTOOL64="$ac_cv_prog_OTOOL64"
8138 fi
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8167 $as_echo_n "checking for -single_module linker flag... " >&6; }
8168 if ${lt_cv_apple_cc_single_mod+:} false; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 lt_cv_apple_cc_single_mod=no
8172 if test -z "${LT_MULTI_MODULE}"; then
8173 # By default we will add the -single_module flag. You can override
8174 # by either setting the environment variable LT_MULTI_MODULE
8175 # non-empty at configure time, or by adding -multi_module to the
8176 # link flags.
8177 rm -rf libconftest.dylib*
8178 echo "int foo(void){return 1;}" > conftest.c
8179 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8180 -dynamiclib -Wl,-single_module conftest.c" >&5
8181 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8182 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8183 _lt_result=$?
8184 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8185 lt_cv_apple_cc_single_mod=yes
8186 else
8187 cat conftest.err >&5
8188 fi
8189 rm -rf libconftest.dylib*
8190 rm -f conftest.*
8191 fi
8192 fi
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8194 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8196 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8197 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 lt_cv_ld_exported_symbols_list=no
8201 save_LDFLAGS=$LDFLAGS
8202 echo "_main" > conftest.sym
8203 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8206
8207 int
8208 main ()
8209 {
8210
8211 ;
8212 return 0;
8213 }
8214 _ACEOF
8215 if ac_fn_c_try_link "$LINENO"; then :
8216 lt_cv_ld_exported_symbols_list=yes
8217 else
8218 lt_cv_ld_exported_symbols_list=no
8219 fi
8220 rm -f core conftest.err conftest.$ac_objext \
8221 conftest$ac_exeext conftest.$ac_ext
8222 LDFLAGS="$save_LDFLAGS"
8223
8224 fi
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8226 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8228 $as_echo_n "checking for -force_load linker flag... " >&6; }
8229 if ${lt_cv_ld_force_load+:} false; then :
8230 $as_echo_n "(cached) " >&6
8231 else
8232 lt_cv_ld_force_load=no
8233 cat > conftest.c << _LT_EOF
8234 int forced_loaded() { return 2;}
8235 _LT_EOF
8236 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8237 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8238 echo "$AR cru libconftest.a conftest.o" >&5
8239 $AR cru libconftest.a conftest.o 2>&5
8240 cat > conftest.c << _LT_EOF
8241 int main() { return 0;}
8242 _LT_EOF
8243 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8244 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8245 _lt_result=$?
8246 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8247 lt_cv_ld_force_load=yes
8248 else
8249 cat conftest.err >&5
8250 fi
8251 rm -f conftest.err libconftest.a conftest conftest.c
8252 rm -rf conftest.dSYM
8253
8254 fi
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8256 $as_echo "$lt_cv_ld_force_load" >&6; }
8257 case $host_os in
8258 rhapsody* | darwin1.[012])
8259 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8260 darwin1.*)
8261 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8262 darwin*) # darwin 5.x on
8263 # if running on 10.5 or later, the deployment target defaults
8264 # to the OS version, if on x86, and 10.4, the deployment
8265 # target defaults to 10.4. Don't you love it?
8266 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8267 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8268 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8269 10.[012][,.]*)
8270 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8271 10.*)
8272 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8273 esac
8274 ;;
8275 esac
8276 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8277 _lt_dar_single_mod='$single_module'
8278 fi
8279 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8280 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8281 else
8282 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8283 fi
8284 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8285 _lt_dsymutil='~$DSYMUTIL $lib || :'
8286 else
8287 _lt_dsymutil=
8288 fi
8289 ;;
8290 esac
8291
8292 for ac_header in dlfcn.h
8293 do :
8294 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8295 "
8296 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8297 cat >>confdefs.h <<_ACEOF
8298 #define HAVE_DLFCN_H 1
8299 _ACEOF
8300
8301 fi
8302
8303 done
8304
8305
8306 ac_header_dirent=no
8307 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8308 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8310 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8311 if eval \${$as_ac_Header+:} false; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315 /* end confdefs.h. */
8316 #include <sys/types.h>
8317 #include <$ac_hdr>
8318
8319 int
8320 main ()
8321 {
8322 if ((DIR *) 0)
8323 return 0;
8324 ;
8325 return 0;
8326 }
8327 _ACEOF
8328 if ac_fn_c_try_compile "$LINENO"; then :
8329 eval "$as_ac_Header=yes"
8330 else
8331 eval "$as_ac_Header=no"
8332 fi
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 fi
8335 eval ac_res=\$$as_ac_Header
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8337 $as_echo "$ac_res" >&6; }
8338 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8339 cat >>confdefs.h <<_ACEOF
8340 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8341 _ACEOF
8342
8343 ac_header_dirent=$ac_hdr; break
8344 fi
8345
8346 done
8347 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8348 if test $ac_header_dirent = dirent.h; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8350 $as_echo_n "checking for library containing opendir... " >&6; }
8351 if ${ac_cv_search_opendir+:} false; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 ac_func_search_save_LIBS=$LIBS
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357
8358 /* Override any GCC internal prototype to avoid an error.
8359 Use char because int might match the return type of a GCC
8360 builtin and then its argument prototype would still apply. */
8361 #ifdef __cplusplus
8362 extern "C"
8363 #endif
8364 char opendir ();
8365 int
8366 main ()
8367 {
8368 return opendir ();
8369 ;
8370 return 0;
8371 }
8372 _ACEOF
8373 for ac_lib in '' dir; do
8374 if test -z "$ac_lib"; then
8375 ac_res="none required"
8376 else
8377 ac_res=-l$ac_lib
8378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8379 fi
8380 if ac_fn_c_try_link "$LINENO"; then :
8381 ac_cv_search_opendir=$ac_res
8382 fi
8383 rm -f core conftest.err conftest.$ac_objext \
8384 conftest$ac_exeext
8385 if ${ac_cv_search_opendir+:} false; then :
8386 break
8387 fi
8388 done
8389 if ${ac_cv_search_opendir+:} false; then :
8390
8391 else
8392 ac_cv_search_opendir=no
8393 fi
8394 rm conftest.$ac_ext
8395 LIBS=$ac_func_search_save_LIBS
8396 fi
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8398 $as_echo "$ac_cv_search_opendir" >&6; }
8399 ac_res=$ac_cv_search_opendir
8400 if test "$ac_res" != no; then :
8401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8402
8403 fi
8404
8405 else
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8407 $as_echo_n "checking for library containing opendir... " >&6; }
8408 if ${ac_cv_search_opendir+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 ac_func_search_save_LIBS=$LIBS
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414
8415 /* Override any GCC internal prototype to avoid an error.
8416 Use char because int might match the return type of a GCC
8417 builtin and then its argument prototype would still apply. */
8418 #ifdef __cplusplus
8419 extern "C"
8420 #endif
8421 char opendir ();
8422 int
8423 main ()
8424 {
8425 return opendir ();
8426 ;
8427 return 0;
8428 }
8429 _ACEOF
8430 for ac_lib in '' x; do
8431 if test -z "$ac_lib"; then
8432 ac_res="none required"
8433 else
8434 ac_res=-l$ac_lib
8435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8436 fi
8437 if ac_fn_c_try_link "$LINENO"; then :
8438 ac_cv_search_opendir=$ac_res
8439 fi
8440 rm -f core conftest.err conftest.$ac_objext \
8441 conftest$ac_exeext
8442 if ${ac_cv_search_opendir+:} false; then :
8443 break
8444 fi
8445 done
8446 if ${ac_cv_search_opendir+:} false; then :
8447
8448 else
8449 ac_cv_search_opendir=no
8450 fi
8451 rm conftest.$ac_ext
8452 LIBS=$ac_func_search_save_LIBS
8453 fi
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8455 $as_echo "$ac_cv_search_opendir" >&6; }
8456 ac_res=$ac_cv_search_opendir
8457 if test "$ac_res" != no; then :
8458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8459
8460 fi
8461
8462 fi
8463
8464
8465
8466
8467 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8468 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8469
8470 cat >>confdefs.h <<_ACEOF
8471 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8472 _ACEOF
8473
8474
8475 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8476
8477 fi
8478
8479
8480 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8481 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8482
8483 cat >>confdefs.h <<_ACEOF
8484 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8485 _ACEOF
8486
8487
8488 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8489
8490 else
8491 case " $LIBOBJS " in
8492 *" fileblocks.$ac_objext "* ) ;;
8493 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8494 ;;
8495 esac
8496
8497 fi
8498
8499
8500 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8501 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8502
8503 cat >>confdefs.h <<_ACEOF
8504 #define HAVE_STRUCT_STAT_ST_RDEV 1
8505 _ACEOF
8506
8507
8508 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8509
8510 fi
8511
8512
8513 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8514 #include <$ac_cv_struct_tm>
8515
8516 "
8517 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8518
8519 cat >>confdefs.h <<_ACEOF
8520 #define HAVE_STRUCT_TM_TM_ZONE 1
8521 _ACEOF
8522
8523
8524 fi
8525
8526 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8527
8528 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8529
8530 else
8531 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8532 "
8533 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8534 ac_have_decl=1
8535 else
8536 ac_have_decl=0
8537 fi
8538
8539 cat >>confdefs.h <<_ACEOF
8540 #define HAVE_DECL_TZNAME $ac_have_decl
8541 _ACEOF
8542
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8544 $as_echo_n "checking for tzname... " >&6; }
8545 if ${ac_cv_var_tzname+:} false; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8550 #include <time.h>
8551 #if !HAVE_DECL_TZNAME
8552 extern char *tzname[];
8553 #endif
8554
8555 int
8556 main ()
8557 {
8558 return tzname[0][0];
8559 ;
8560 return 0;
8561 }
8562 _ACEOF
8563 if ac_fn_c_try_link "$LINENO"; then :
8564 ac_cv_var_tzname=yes
8565 else
8566 ac_cv_var_tzname=no
8567 fi
8568 rm -f core conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
8570 fi
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8572 $as_echo "$ac_cv_var_tzname" >&6; }
8573 if test $ac_cv_var_tzname = yes; then
8574
8575 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8576
8577 fi
8578 fi
8579
8580
8581 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8582 #include <sys/types.h>
8583 #endif
8584 #ifdef HAVE_SYS_STAT_H
8585 #include <sys/stat.h>
8586 #endif
8587 "
8588 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8589
8590 cat >>confdefs.h <<_ACEOF
8591 #define HAVE_STRUCT_STAT_ST_DEV 1
8592 _ACEOF
8593
8594
8595 fi
8596 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8597 #include <sys/types.h>
8598 #endif
8599 #ifdef HAVE_SYS_STAT_H
8600 #include <sys/stat.h>
8601 #endif
8602 "
8603 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8604
8605 cat >>confdefs.h <<_ACEOF
8606 #define HAVE_STRUCT_STAT_ST_INO 1
8607 _ACEOF
8608
8609
8610 fi
8611 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8612 #include <sys/types.h>
8613 #endif
8614 #ifdef HAVE_SYS_STAT_H
8615 #include <sys/stat.h>
8616 #endif
8617 "
8618 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8619
8620 cat >>confdefs.h <<_ACEOF
8621 #define HAVE_STRUCT_STAT_ST_MODE 1
8622 _ACEOF
8623
8624
8625 fi
8626 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8627 #include <sys/types.h>
8628 #endif
8629 #ifdef HAVE_SYS_STAT_H
8630 #include <sys/stat.h>
8631 #endif
8632 "
8633 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8634
8635 cat >>confdefs.h <<_ACEOF
8636 #define HAVE_STRUCT_STAT_ST_NLINK 1
8637 _ACEOF
8638
8639
8640 fi
8641 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8642 #include <sys/types.h>
8643 #endif
8644 #ifdef HAVE_SYS_STAT_H
8645 #include <sys/stat.h>
8646 #endif
8647 "
8648 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8649
8650 cat >>confdefs.h <<_ACEOF
8651 #define HAVE_STRUCT_STAT_ST_UID 1
8652 _ACEOF
8653
8654
8655 fi
8656 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8657 #include <sys/types.h>
8658 #endif
8659 #ifdef HAVE_SYS_STAT_H
8660 #include <sys/stat.h>
8661 #endif
8662 "
8663 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8664
8665 cat >>confdefs.h <<_ACEOF
8666 #define HAVE_STRUCT_STAT_ST_GID 1
8667 _ACEOF
8668
8669
8670 fi
8671 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8672 #include <sys/types.h>
8673 #endif
8674 #ifdef HAVE_SYS_STAT_H
8675 #include <sys/stat.h>
8676 #endif
8677 "
8678 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8679
8680 cat >>confdefs.h <<_ACEOF
8681 #define HAVE_STRUCT_STAT_ST_RDEV 1
8682 _ACEOF
8683
8684
8685 fi
8686 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8687 #include <sys/types.h>
8688 #endif
8689 #ifdef HAVE_SYS_STAT_H
8690 #include <sys/stat.h>
8691 #endif
8692 "
8693 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8694
8695 cat >>confdefs.h <<_ACEOF
8696 #define HAVE_STRUCT_STAT_ST_SIZE 1
8697 _ACEOF
8698
8699
8700 fi
8701 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8702 #include <sys/types.h>
8703 #endif
8704 #ifdef HAVE_SYS_STAT_H
8705 #include <sys/stat.h>
8706 #endif
8707 "
8708 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8709
8710 cat >>confdefs.h <<_ACEOF
8711 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8712 _ACEOF
8713
8714
8715 fi
8716 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8717 #include <sys/types.h>
8718 #endif
8719 #ifdef HAVE_SYS_STAT_H
8720 #include <sys/stat.h>
8721 #endif
8722 "
8723 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8724
8725 cat >>confdefs.h <<_ACEOF
8726 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8727 _ACEOF
8728
8729
8730 fi
8731 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8732 #include <sys/types.h>
8733 #endif
8734 #ifdef HAVE_SYS_STAT_H
8735 #include <sys/stat.h>
8736 #endif
8737 "
8738 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8739
8740 cat >>confdefs.h <<_ACEOF
8741 #define HAVE_STRUCT_STAT_ST_ATIME 1
8742 _ACEOF
8743
8744
8745 fi
8746 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8747 #include <sys/types.h>
8748 #endif
8749 #ifdef HAVE_SYS_STAT_H
8750 #include <sys/stat.h>
8751 #endif
8752 "
8753 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8754
8755 cat >>confdefs.h <<_ACEOF
8756 #define HAVE_STRUCT_STAT_ST_MTIME 1
8757 _ACEOF
8758
8759
8760 fi
8761 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8762 #include <sys/types.h>
8763 #endif
8764 #ifdef HAVE_SYS_STAT_H
8765 #include <sys/stat.h>
8766 #endif
8767 "
8768 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8769
8770 cat >>confdefs.h <<_ACEOF
8771 #define HAVE_STRUCT_STAT_ST_CTIME 1
8772 _ACEOF
8773
8774
8775 fi
8776
8777
8778 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8779 if test "x$ac_cv_type___int128" = xyes; then :
8780
8781 cat >>confdefs.h <<_ACEOF
8782 #define HAVE___INT128 1
8783 _ACEOF
8784
8785
8786 fi
8787
8788 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8789 #include <sys/socket.h>
8790
8791 "
8792 if test "x$ac_cv_type_socklen_t" = xyes; then :
8793
8794 cat >>confdefs.h <<_ACEOF
8795 #define HAVE_SOCKLEN_T 1
8796 _ACEOF
8797
8798
8799 fi
8800
8801
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8803 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8804 if ${ac_cv_type_getgroups+:} false; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 if test "$cross_compiling" = yes; then :
8808 ac_cv_type_getgroups=cross
8809 else
8810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8812 /* Thanks to Mike Rendell for this test. */
8813 $ac_includes_default
8814 #define NGID 256
8815 #undef MAX
8816 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8817
8818 int
8819 main ()
8820 {
8821 gid_t gidset[NGID];
8822 int i, n;
8823 union { gid_t gval; long int lval; } val;
8824
8825 val.lval = -1;
8826 for (i = 0; i < NGID; i++)
8827 gidset[i] = val.gval;
8828 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8829 gidset);
8830 /* Exit non-zero if getgroups seems to require an array of ints. This
8831 happens when gid_t is short int but getgroups modifies an array
8832 of ints. */
8833 return n > 0 && gidset[n] != val.gval;
8834 }
8835 _ACEOF
8836 if ac_fn_c_try_run "$LINENO"; then :
8837 ac_cv_type_getgroups=gid_t
8838 else
8839 ac_cv_type_getgroups=int
8840 fi
8841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8842 conftest.$ac_objext conftest.beam conftest.$ac_ext
8843 fi
8844
8845 if test $ac_cv_type_getgroups = cross; then
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8848 #include <unistd.h>
8849
8850 _ACEOF
8851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8852 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8853 ac_cv_type_getgroups=gid_t
8854 else
8855 ac_cv_type_getgroups=int
8856 fi
8857 rm -f conftest*
8858
8859 fi
8860 fi
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8862 $as_echo "$ac_cv_type_getgroups" >&6; }
8863
8864 cat >>confdefs.h <<_ACEOF
8865 #define GETGROUPS_T $ac_cv_type_getgroups
8866 _ACEOF
8867
8868
8869 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8870 if test "x$ac_cv_type_mode_t" = xyes; then :
8871
8872 else
8873
8874 cat >>confdefs.h <<_ACEOF
8875 #define mode_t int
8876 _ACEOF
8877
8878 fi
8879
8880 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8881 if test "x$ac_cv_type_off_t" = xyes; then :
8882
8883 else
8884
8885 cat >>confdefs.h <<_ACEOF
8886 #define off_t long int
8887 _ACEOF
8888
8889 fi
8890
8891 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8892 if test "x$ac_cv_type_pid_t" = xyes; then :
8893
8894 else
8895
8896 cat >>confdefs.h <<_ACEOF
8897 #define pid_t int
8898 _ACEOF
8899
8900 fi
8901
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8903 $as_echo_n "checking return type of signal handlers... " >&6; }
8904 if ${ac_cv_type_signal+:} false; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909 #include <sys/types.h>
8910 #include <signal.h>
8911
8912 int
8913 main ()
8914 {
8915 return *(signal (0, 0)) (0) == 1;
8916 ;
8917 return 0;
8918 }
8919 _ACEOF
8920 if ac_fn_c_try_compile "$LINENO"; then :
8921 ac_cv_type_signal=int
8922 else
8923 ac_cv_type_signal=void
8924 fi
8925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926 fi
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8928 $as_echo "$ac_cv_type_signal" >&6; }
8929
8930 cat >>confdefs.h <<_ACEOF
8931 #define RETSIGTYPE $ac_cv_type_signal
8932 _ACEOF
8933
8934
8935 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8936 if test "x$ac_cv_type_size_t" = xyes; then :
8937
8938 else
8939
8940 cat >>confdefs.h <<_ACEOF
8941 #define size_t unsigned int
8942 _ACEOF
8943
8944 fi
8945
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8947 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8948 if ${ac_cv_type_uid_t+:} false; then :
8949 $as_echo_n "(cached) " >&6
8950 else
8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8953 #include <sys/types.h>
8954
8955 _ACEOF
8956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8957 $EGREP "uid_t" >/dev/null 2>&1; then :
8958 ac_cv_type_uid_t=yes
8959 else
8960 ac_cv_type_uid_t=no
8961 fi
8962 rm -f conftest*
8963
8964 fi
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8966 $as_echo "$ac_cv_type_uid_t" >&6; }
8967 if test $ac_cv_type_uid_t = no; then
8968
8969 $as_echo "#define uid_t int" >>confdefs.h
8970
8971
8972 $as_echo "#define gid_t int" >>confdefs.h
8973
8974 fi
8975
8976
8977 ALL_LINGUAS=
8978 # If we haven't got the data from the intl directory,
8979 # assume NLS is disabled.
8980 USE_NLS=no
8981 LIBINTL=
8982 LIBINTL_DEP=
8983 INCINTL=
8984 XGETTEXT=
8985 GMSGFMT=
8986 POSUB=
8987
8988 if test -f ../intl/config.intl; then
8989 . ../intl/config.intl
8990 fi
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8992 $as_echo_n "checking whether NLS is requested... " >&6; }
8993 if test x"$USE_NLS" != xyes; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
8996 else
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8998 $as_echo "yes" >&6; }
8999
9000 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9001
9002
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
9004 $as_echo_n "checking for catalogs to be installed... " >&6; }
9005 # Look for .po and .gmo files in the source directory.
9006 CATALOGS=
9007 XLINGUAS=
9008 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9009 # If there aren't any .gmo files the shell will give us the
9010 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9011 # weeded out.
9012 case "$cat" in *\**)
9013 continue;;
9014 esac
9015 # The quadruple backslash is collapsed to a double backslash
9016 # by the backticks, then collapsed again by the double quotes,
9017 # leaving us with one backslash in the sed expression (right
9018 # before the dot that mustn't act as a wildcard).
9019 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
9020 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
9021 # The user is allowed to set LINGUAS to a list of languages to
9022 # install catalogs for. If it's empty that means "all of them."
9023 if test "x$LINGUAS" = x; then
9024 CATALOGS="$CATALOGS $cat"
9025 XLINGUAS="$XLINGUAS $lang"
9026 else
9027 case "$LINGUAS" in *$lang*)
9028 CATALOGS="$CATALOGS $cat"
9029 XLINGUAS="$XLINGUAS $lang"
9030 ;;
9031 esac
9032 fi
9033 done
9034 LINGUAS="$XLINGUAS"
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
9036 $as_echo "$LINGUAS" >&6; }
9037
9038
9039 DATADIRNAME=share
9040
9041 INSTOBJEXT=.mo
9042
9043 GENCAT=gencat
9044
9045 CATOBJEXT=.gmo
9046
9047 fi
9048
9049
9050 # Use the system's zlib library.
9051 zlibdir="-L\$(top_builddir)/../zlib"
9052 zlibinc="-I\$(top_srcdir)/../zlib"
9053
9054 # Check whether --with-system-zlib was given.
9055 if test "${with_system_zlib+set}" = set; then :
9056 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
9057 zlibdir=
9058 zlibinc=
9059 fi
9060
9061 fi
9062
9063
9064
9065
9066
9067
9068 maybe_plugins=no
9069 for ac_header in dlfcn.h
9070 do :
9071 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9072 "
9073 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9074 cat >>confdefs.h <<_ACEOF
9075 #define HAVE_DLFCN_H 1
9076 _ACEOF
9077 maybe_plugins=yes
9078 fi
9079
9080 done
9081
9082 for ac_header in windows.h
9083 do :
9084 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
9085 "
9086 if test "x$ac_cv_header_windows_h" = xyes; then :
9087 cat >>confdefs.h <<_ACEOF
9088 #define HAVE_WINDOWS_H 1
9089 _ACEOF
9090 maybe_plugins=yes
9091 fi
9092
9093 done
9094
9095
9096 # Check whether --enable-plugins was given.
9097 if test "${enable_plugins+set}" = set; then :
9098 enableval=$enable_plugins; case "${enableval}" in
9099 no) plugins=no ;;
9100 *) plugins=yes
9101 if test "$maybe_plugins" != "yes" ; then
9102 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
9103 fi ;;
9104 esac
9105 else
9106 plugins=$maybe_plugins
9107
9108 fi
9109
9110 if test "$plugins" = "yes"; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
9112 $as_echo_n "checking for library containing dlsym... " >&6; }
9113 if ${ac_cv_search_dlsym+:} false; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 ac_func_search_save_LIBS=$LIBS
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119
9120 /* Override any GCC internal prototype to avoid an error.
9121 Use char because int might match the return type of a GCC
9122 builtin and then its argument prototype would still apply. */
9123 #ifdef __cplusplus
9124 extern "C"
9125 #endif
9126 char dlsym ();
9127 int
9128 main ()
9129 {
9130 return dlsym ();
9131 ;
9132 return 0;
9133 }
9134 _ACEOF
9135 for ac_lib in '' dl; do
9136 if test -z "$ac_lib"; then
9137 ac_res="none required"
9138 else
9139 ac_res=-l$ac_lib
9140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9141 fi
9142 if ac_fn_c_try_link "$LINENO"; then :
9143 ac_cv_search_dlsym=$ac_res
9144 fi
9145 rm -f core conftest.err conftest.$ac_objext \
9146 conftest$ac_exeext
9147 if ${ac_cv_search_dlsym+:} false; then :
9148 break
9149 fi
9150 done
9151 if ${ac_cv_search_dlsym+:} false; then :
9152
9153 else
9154 ac_cv_search_dlsym=no
9155 fi
9156 rm conftest.$ac_ext
9157 LIBS=$ac_func_search_save_LIBS
9158 fi
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
9160 $as_echo "$ac_cv_search_dlsym" >&6; }
9161 ac_res=$ac_cv_search_dlsym
9162 if test "$ac_res" != no; then :
9163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9164
9165 fi
9166
9167 fi
9168
9169 if test "$plugins" = yes; then
9170 PLUGINS_TRUE=
9171 PLUGINS_FALSE='#'
9172 else
9173 PLUGINS_TRUE='#'
9174 PLUGINS_FALSE=
9175 fi
9176
9177
9178
9179
9180
9181 # Set options
9182 enable_dlopen=yes
9183
9184
9185
9186
9187 enable_win32_dll=no
9188
9189
9190 # Check whether --enable-shared was given.
9191 if test "${enable_shared+set}" = set; then :
9192 enableval=$enable_shared; p=${PACKAGE-default}
9193 case $enableval in
9194 yes) enable_shared=yes ;;
9195 no) enable_shared=no ;;
9196 *)
9197 enable_shared=no
9198 # Look at the argument we got. We use all the common list separators.
9199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9200 for pkg in $enableval; do
9201 IFS="$lt_save_ifs"
9202 if test "X$pkg" = "X$p"; then
9203 enable_shared=yes
9204 fi
9205 done
9206 IFS="$lt_save_ifs"
9207 ;;
9208 esac
9209 else
9210 enable_shared=yes
9211 fi
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221 # Check whether --enable-static was given.
9222 if test "${enable_static+set}" = set; then :
9223 enableval=$enable_static; p=${PACKAGE-default}
9224 case $enableval in
9225 yes) enable_static=yes ;;
9226 no) enable_static=no ;;
9227 *)
9228 enable_static=no
9229 # Look at the argument we got. We use all the common list separators.
9230 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9231 for pkg in $enableval; do
9232 IFS="$lt_save_ifs"
9233 if test "X$pkg" = "X$p"; then
9234 enable_static=yes
9235 fi
9236 done
9237 IFS="$lt_save_ifs"
9238 ;;
9239 esac
9240 else
9241 enable_static=yes
9242 fi
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253 # Check whether --with-pic was given.
9254 if test "${with_pic+set}" = set; then :
9255 withval=$with_pic; pic_mode="$withval"
9256 else
9257 pic_mode=default
9258 fi
9259
9260
9261 test -z "$pic_mode" && pic_mode=default
9262
9263
9264
9265
9266
9267
9268
9269 # Check whether --enable-fast-install was given.
9270 if test "${enable_fast_install+set}" = set; then :
9271 enableval=$enable_fast_install; p=${PACKAGE-default}
9272 case $enableval in
9273 yes) enable_fast_install=yes ;;
9274 no) enable_fast_install=no ;;
9275 *)
9276 enable_fast_install=no
9277 # Look at the argument we got. We use all the common list separators.
9278 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9279 for pkg in $enableval; do
9280 IFS="$lt_save_ifs"
9281 if test "X$pkg" = "X$p"; then
9282 enable_fast_install=yes
9283 fi
9284 done
9285 IFS="$lt_save_ifs"
9286 ;;
9287 esac
9288 else
9289 enable_fast_install=yes
9290 fi
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302 # This can be used to rebuild libtool when needed
9303 LIBTOOL_DEPS="$ltmain"
9304
9305 # Always use our own libtool.
9306 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333 test -z "$LN_S" && LN_S="ln -s"
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348 if test -n "${ZSH_VERSION+set}" ; then
9349 setopt NO_GLOB_SUBST
9350 fi
9351
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9353 $as_echo_n "checking for objdir... " >&6; }
9354 if ${lt_cv_objdir+:} false; then :
9355 $as_echo_n "(cached) " >&6
9356 else
9357 rm -f .libs 2>/dev/null
9358 mkdir .libs 2>/dev/null
9359 if test -d .libs; then
9360 lt_cv_objdir=.libs
9361 else
9362 # MS-DOS does not allow filenames that begin with a dot.
9363 lt_cv_objdir=_libs
9364 fi
9365 rmdir .libs 2>/dev/null
9366 fi
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9368 $as_echo "$lt_cv_objdir" >&6; }
9369 objdir=$lt_cv_objdir
9370
9371
9372
9373
9374
9375 cat >>confdefs.h <<_ACEOF
9376 #define LT_OBJDIR "$lt_cv_objdir/"
9377 _ACEOF
9378
9379
9380
9381
9382 case $host_os in
9383 aix3*)
9384 # AIX sometimes has problems with the GCC collect2 program. For some
9385 # reason, if we set the COLLECT_NAMES environment variable, the problems
9386 # vanish in a puff of smoke.
9387 if test "X${COLLECT_NAMES+set}" != Xset; then
9388 COLLECT_NAMES=
9389 export COLLECT_NAMES
9390 fi
9391 ;;
9392 esac
9393
9394 # Global variables:
9395 ofile=libtool
9396 can_build_shared=yes
9397
9398 # All known linkers require a `.a' archive for static linking (except MSVC,
9399 # which needs '.lib').
9400 libext=a
9401
9402 with_gnu_ld="$lt_cv_prog_gnu_ld"
9403
9404 old_CC="$CC"
9405 old_CFLAGS="$CFLAGS"
9406
9407 # Set sane defaults for various variables
9408 test -z "$CC" && CC=cc
9409 test -z "$LTCC" && LTCC=$CC
9410 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9411 test -z "$LD" && LD=ld
9412 test -z "$ac_objext" && ac_objext=o
9413
9414 for cc_temp in $compiler""; do
9415 case $cc_temp in
9416 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9417 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9418 \-*) ;;
9419 *) break;;
9420 esac
9421 done
9422 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9423
9424
9425 # Only perform the check for file, if the check method requires it
9426 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9427 case $deplibs_check_method in
9428 file_magic*)
9429 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9431 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9432 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 case $MAGIC_CMD in
9436 [\\/*] | ?:[\\/]*)
9437 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9438 ;;
9439 *)
9440 lt_save_MAGIC_CMD="$MAGIC_CMD"
9441 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9442 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9443 for ac_dir in $ac_dummy; do
9444 IFS="$lt_save_ifs"
9445 test -z "$ac_dir" && ac_dir=.
9446 if test -f $ac_dir/${ac_tool_prefix}file; then
9447 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9448 if test -n "$file_magic_test_file"; then
9449 case $deplibs_check_method in
9450 "file_magic "*)
9451 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9452 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9453 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9454 $EGREP "$file_magic_regex" > /dev/null; then
9455 :
9456 else
9457 cat <<_LT_EOF 1>&2
9458
9459 *** Warning: the command libtool uses to detect shared libraries,
9460 *** $file_magic_cmd, produces output that libtool cannot recognize.
9461 *** The result is that libtool may fail to recognize shared libraries
9462 *** as such. This will affect the creation of libtool libraries that
9463 *** depend on shared libraries, but programs linked with such libtool
9464 *** libraries will work regardless of this problem. Nevertheless, you
9465 *** may want to report the problem to your system manager and/or to
9466 *** bug-libtool@gnu.org
9467
9468 _LT_EOF
9469 fi ;;
9470 esac
9471 fi
9472 break
9473 fi
9474 done
9475 IFS="$lt_save_ifs"
9476 MAGIC_CMD="$lt_save_MAGIC_CMD"
9477 ;;
9478 esac
9479 fi
9480
9481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9482 if test -n "$MAGIC_CMD"; then
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9484 $as_echo "$MAGIC_CMD" >&6; }
9485 else
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 $as_echo "no" >&6; }
9488 fi
9489
9490
9491
9492
9493
9494 if test -z "$lt_cv_path_MAGIC_CMD"; then
9495 if test -n "$ac_tool_prefix"; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9497 $as_echo_n "checking for file... " >&6; }
9498 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9499 $as_echo_n "(cached) " >&6
9500 else
9501 case $MAGIC_CMD in
9502 [\\/*] | ?:[\\/]*)
9503 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9504 ;;
9505 *)
9506 lt_save_MAGIC_CMD="$MAGIC_CMD"
9507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9508 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9509 for ac_dir in $ac_dummy; do
9510 IFS="$lt_save_ifs"
9511 test -z "$ac_dir" && ac_dir=.
9512 if test -f $ac_dir/file; then
9513 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9514 if test -n "$file_magic_test_file"; then
9515 case $deplibs_check_method in
9516 "file_magic "*)
9517 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9519 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9520 $EGREP "$file_magic_regex" > /dev/null; then
9521 :
9522 else
9523 cat <<_LT_EOF 1>&2
9524
9525 *** Warning: the command libtool uses to detect shared libraries,
9526 *** $file_magic_cmd, produces output that libtool cannot recognize.
9527 *** The result is that libtool may fail to recognize shared libraries
9528 *** as such. This will affect the creation of libtool libraries that
9529 *** depend on shared libraries, but programs linked with such libtool
9530 *** libraries will work regardless of this problem. Nevertheless, you
9531 *** may want to report the problem to your system manager and/or to
9532 *** bug-libtool@gnu.org
9533
9534 _LT_EOF
9535 fi ;;
9536 esac
9537 fi
9538 break
9539 fi
9540 done
9541 IFS="$lt_save_ifs"
9542 MAGIC_CMD="$lt_save_MAGIC_CMD"
9543 ;;
9544 esac
9545 fi
9546
9547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9548 if test -n "$MAGIC_CMD"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9550 $as_echo "$MAGIC_CMD" >&6; }
9551 else
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9554 fi
9555
9556
9557 else
9558 MAGIC_CMD=:
9559 fi
9560 fi
9561
9562 fi
9563 ;;
9564 esac
9565
9566 # Use C for the default configuration in the libtool script
9567
9568 lt_save_CC="$CC"
9569 ac_ext=c
9570 ac_cpp='$CPP $CPPFLAGS'
9571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9574
9575
9576 # Source file extension for C test sources.
9577 ac_ext=c
9578
9579 # Object file extension for compiled C test sources.
9580 objext=o
9581 objext=$objext
9582
9583 # Code to be used in simple compile tests
9584 lt_simple_compile_test_code="int some_variable = 0;"
9585
9586 # Code to be used in simple link tests
9587 lt_simple_link_test_code='int main(){return(0);}'
9588
9589
9590
9591
9592
9593
9594
9595 # If no C compiler was specified, use CC.
9596 LTCC=${LTCC-"$CC"}
9597
9598 # If no C compiler flags were specified, use CFLAGS.
9599 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9600
9601 # Allow CC to be a program name with arguments.
9602 compiler=$CC
9603
9604 # Save the default compiler, since it gets overwritten when the other
9605 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9606 compiler_DEFAULT=$CC
9607
9608 # save warnings/boilerplate of simple test code
9609 ac_outfile=conftest.$ac_objext
9610 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9611 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9612 _lt_compiler_boilerplate=`cat conftest.err`
9613 $RM conftest*
9614
9615 ac_outfile=conftest.$ac_objext
9616 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9617 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9618 _lt_linker_boilerplate=`cat conftest.err`
9619 $RM -r conftest*
9620
9621
9622 ## CAVEAT EMPTOR:
9623 ## There is no encapsulation within the following macros, do not change
9624 ## the running order or otherwise move them around unless you know exactly
9625 ## what you are doing...
9626 if test -n "$compiler"; then
9627
9628 lt_prog_compiler_no_builtin_flag=
9629
9630 if test "$GCC" = yes; then
9631 case $cc_basename in
9632 nvcc*)
9633 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9634 *)
9635 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9636 esac
9637
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9639 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9640 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9641 $as_echo_n "(cached) " >&6
9642 else
9643 lt_cv_prog_compiler_rtti_exceptions=no
9644 ac_outfile=conftest.$ac_objext
9645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9646 lt_compiler_flag="-fno-rtti -fno-exceptions"
9647 # Insert the option either (1) after the last *FLAGS variable, or
9648 # (2) before a word containing "conftest.", or (3) at the end.
9649 # Note that $ac_compile itself does not contain backslashes and begins
9650 # with a dollar sign (not a hyphen), so the echo should work correctly.
9651 # The option is referenced via a variable to avoid confusing sed.
9652 lt_compile=`echo "$ac_compile" | $SED \
9653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9655 -e 's:$: $lt_compiler_flag:'`
9656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9657 (eval "$lt_compile" 2>conftest.err)
9658 ac_status=$?
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 if (exit $ac_status) && test -s "$ac_outfile"; then
9662 # The compiler can only warn and ignore the option if not recognized
9663 # So say no if there are warnings other than the usual output.
9664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9666 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9667 lt_cv_prog_compiler_rtti_exceptions=yes
9668 fi
9669 fi
9670 $RM conftest*
9671
9672 fi
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9674 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9675
9676 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9677 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9678 else
9679 :
9680 fi
9681
9682 fi
9683
9684
9685
9686
9687
9688
9689 lt_prog_compiler_wl=
9690 lt_prog_compiler_pic=
9691 lt_prog_compiler_static=
9692
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9694 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9695
9696 if test "$GCC" = yes; then
9697 lt_prog_compiler_wl='-Wl,'
9698 lt_prog_compiler_static='-static'
9699
9700 case $host_os in
9701 aix*)
9702 # All AIX code is PIC.
9703 if test "$host_cpu" = ia64; then
9704 # AIX 5 now supports IA64 processor
9705 lt_prog_compiler_static='-Bstatic'
9706 fi
9707 lt_prog_compiler_pic='-fPIC'
9708 ;;
9709
9710 amigaos*)
9711 case $host_cpu in
9712 powerpc)
9713 # see comment about AmigaOS4 .so support
9714 lt_prog_compiler_pic='-fPIC'
9715 ;;
9716 m68k)
9717 # FIXME: we need at least 68020 code to build shared libraries, but
9718 # adding the `-m68020' flag to GCC prevents building anything better,
9719 # like `-m68040'.
9720 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9721 ;;
9722 esac
9723 ;;
9724
9725 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9726 # PIC is the default for these OSes.
9727 ;;
9728
9729 mingw* | cygwin* | pw32* | os2* | cegcc*)
9730 # This hack is so that the source file can tell whether it is being
9731 # built for inclusion in a dll (and should export symbols for example).
9732 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9733 # (--disable-auto-import) libraries
9734 lt_prog_compiler_pic='-DDLL_EXPORT'
9735 ;;
9736
9737 darwin* | rhapsody*)
9738 # PIC is the default on this platform
9739 # Common symbols not allowed in MH_DYLIB files
9740 lt_prog_compiler_pic='-fno-common'
9741 ;;
9742
9743 haiku*)
9744 # PIC is the default for Haiku.
9745 # The "-static" flag exists, but is broken.
9746 lt_prog_compiler_static=
9747 ;;
9748
9749 hpux*)
9750 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9751 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9752 # sets the default TLS model and affects inlining.
9753 case $host_cpu in
9754 hppa*64*)
9755 # +Z the default
9756 ;;
9757 *)
9758 lt_prog_compiler_pic='-fPIC'
9759 ;;
9760 esac
9761 ;;
9762
9763 interix[3-9]*)
9764 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9765 # Instead, we relocate shared libraries at runtime.
9766 ;;
9767
9768 msdosdjgpp*)
9769 # Just because we use GCC doesn't mean we suddenly get shared libraries
9770 # on systems that don't support them.
9771 lt_prog_compiler_can_build_shared=no
9772 enable_shared=no
9773 ;;
9774
9775 *nto* | *qnx*)
9776 # QNX uses GNU C++, but need to define -shared option too, otherwise
9777 # it will coredump.
9778 lt_prog_compiler_pic='-fPIC -shared'
9779 ;;
9780
9781 sysv4*MP*)
9782 if test -d /usr/nec; then
9783 lt_prog_compiler_pic=-Kconform_pic
9784 fi
9785 ;;
9786
9787 *)
9788 lt_prog_compiler_pic='-fPIC'
9789 ;;
9790 esac
9791
9792 case $cc_basename in
9793 nvcc*) # Cuda Compiler Driver 2.2
9794 lt_prog_compiler_wl='-Xlinker '
9795 lt_prog_compiler_pic='-Xcompiler -fPIC'
9796 ;;
9797 esac
9798 else
9799 # PORTME Check for flag to pass linker flags through the system compiler.
9800 case $host_os in
9801 aix*)
9802 lt_prog_compiler_wl='-Wl,'
9803 if test "$host_cpu" = ia64; then
9804 # AIX 5 now supports IA64 processor
9805 lt_prog_compiler_static='-Bstatic'
9806 else
9807 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9808 fi
9809 ;;
9810
9811 mingw* | cygwin* | pw32* | os2* | cegcc*)
9812 # This hack is so that the source file can tell whether it is being
9813 # built for inclusion in a dll (and should export symbols for example).
9814 lt_prog_compiler_pic='-DDLL_EXPORT'
9815 ;;
9816
9817 hpux9* | hpux10* | hpux11*)
9818 lt_prog_compiler_wl='-Wl,'
9819 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9820 # not for PA HP-UX.
9821 case $host_cpu in
9822 hppa*64*|ia64*)
9823 # +Z the default
9824 ;;
9825 *)
9826 lt_prog_compiler_pic='+Z'
9827 ;;
9828 esac
9829 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9830 lt_prog_compiler_static='${wl}-a ${wl}archive'
9831 ;;
9832
9833 irix5* | irix6* | nonstopux*)
9834 lt_prog_compiler_wl='-Wl,'
9835 # PIC (with -KPIC) is the default.
9836 lt_prog_compiler_static='-non_shared'
9837 ;;
9838
9839 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9840 case $cc_basename in
9841 # old Intel for x86_64 which still supported -KPIC.
9842 ecc*)
9843 lt_prog_compiler_wl='-Wl,'
9844 lt_prog_compiler_pic='-KPIC'
9845 lt_prog_compiler_static='-static'
9846 ;;
9847 # icc used to be incompatible with GCC.
9848 # ICC 10 doesn't accept -KPIC any more.
9849 icc* | ifort*)
9850 lt_prog_compiler_wl='-Wl,'
9851 lt_prog_compiler_pic='-fPIC'
9852 lt_prog_compiler_static='-static'
9853 ;;
9854 # Lahey Fortran 8.1.
9855 lf95*)
9856 lt_prog_compiler_wl='-Wl,'
9857 lt_prog_compiler_pic='--shared'
9858 lt_prog_compiler_static='--static'
9859 ;;
9860 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9861 # Portland Group compilers (*not* the Pentium gcc compiler,
9862 # which looks to be a dead project)
9863 lt_prog_compiler_wl='-Wl,'
9864 lt_prog_compiler_pic='-fpic'
9865 lt_prog_compiler_static='-Bstatic'
9866 ;;
9867 ccc*)
9868 lt_prog_compiler_wl='-Wl,'
9869 # All Alpha code is PIC.
9870 lt_prog_compiler_static='-non_shared'
9871 ;;
9872 xl* | bgxl* | bgf* | mpixl*)
9873 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9874 lt_prog_compiler_wl='-Wl,'
9875 lt_prog_compiler_pic='-qpic'
9876 lt_prog_compiler_static='-qstaticlink'
9877 ;;
9878 *)
9879 case `$CC -V 2>&1 | sed 5q` in
9880 *Sun\ F* | *Sun*Fortran*)
9881 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9882 lt_prog_compiler_pic='-KPIC'
9883 lt_prog_compiler_static='-Bstatic'
9884 lt_prog_compiler_wl=''
9885 ;;
9886 *Sun\ C*)
9887 # Sun C 5.9
9888 lt_prog_compiler_pic='-KPIC'
9889 lt_prog_compiler_static='-Bstatic'
9890 lt_prog_compiler_wl='-Wl,'
9891 ;;
9892 esac
9893 ;;
9894 esac
9895 ;;
9896
9897 newsos6)
9898 lt_prog_compiler_pic='-KPIC'
9899 lt_prog_compiler_static='-Bstatic'
9900 ;;
9901
9902 *nto* | *qnx*)
9903 # QNX uses GNU C++, but need to define -shared option too, otherwise
9904 # it will coredump.
9905 lt_prog_compiler_pic='-fPIC -shared'
9906 ;;
9907
9908 osf3* | osf4* | osf5*)
9909 lt_prog_compiler_wl='-Wl,'
9910 # All OSF/1 code is PIC.
9911 lt_prog_compiler_static='-non_shared'
9912 ;;
9913
9914 rdos*)
9915 lt_prog_compiler_static='-non_shared'
9916 ;;
9917
9918 solaris*)
9919 lt_prog_compiler_pic='-KPIC'
9920 lt_prog_compiler_static='-Bstatic'
9921 case $cc_basename in
9922 f77* | f90* | f95*)
9923 lt_prog_compiler_wl='-Qoption ld ';;
9924 *)
9925 lt_prog_compiler_wl='-Wl,';;
9926 esac
9927 ;;
9928
9929 sunos4*)
9930 lt_prog_compiler_wl='-Qoption ld '
9931 lt_prog_compiler_pic='-PIC'
9932 lt_prog_compiler_static='-Bstatic'
9933 ;;
9934
9935 sysv4 | sysv4.2uw2* | sysv4.3*)
9936 lt_prog_compiler_wl='-Wl,'
9937 lt_prog_compiler_pic='-KPIC'
9938 lt_prog_compiler_static='-Bstatic'
9939 ;;
9940
9941 sysv4*MP*)
9942 if test -d /usr/nec ;then
9943 lt_prog_compiler_pic='-Kconform_pic'
9944 lt_prog_compiler_static='-Bstatic'
9945 fi
9946 ;;
9947
9948 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9949 lt_prog_compiler_wl='-Wl,'
9950 lt_prog_compiler_pic='-KPIC'
9951 lt_prog_compiler_static='-Bstatic'
9952 ;;
9953
9954 unicos*)
9955 lt_prog_compiler_wl='-Wl,'
9956 lt_prog_compiler_can_build_shared=no
9957 ;;
9958
9959 uts4*)
9960 lt_prog_compiler_pic='-pic'
9961 lt_prog_compiler_static='-Bstatic'
9962 ;;
9963
9964 *)
9965 lt_prog_compiler_can_build_shared=no
9966 ;;
9967 esac
9968 fi
9969
9970 case $host_os in
9971 # For platforms which do not support PIC, -DPIC is meaningless:
9972 *djgpp*)
9973 lt_prog_compiler_pic=
9974 ;;
9975 *)
9976 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9977 ;;
9978 esac
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9980 $as_echo "$lt_prog_compiler_pic" >&6; }
9981
9982
9983
9984
9985
9986
9987 #
9988 # Check to make sure the PIC flag actually works.
9989 #
9990 if test -n "$lt_prog_compiler_pic"; then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9992 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9993 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9994 $as_echo_n "(cached) " >&6
9995 else
9996 lt_cv_prog_compiler_pic_works=no
9997 ac_outfile=conftest.$ac_objext
9998 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9999 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10000 # Insert the option either (1) after the last *FLAGS variable, or
10001 # (2) before a word containing "conftest.", or (3) at the end.
10002 # Note that $ac_compile itself does not contain backslashes and begins
10003 # with a dollar sign (not a hyphen), so the echo should work correctly.
10004 # The option is referenced via a variable to avoid confusing sed.
10005 lt_compile=`echo "$ac_compile" | $SED \
10006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10008 -e 's:$: $lt_compiler_flag:'`
10009 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10010 (eval "$lt_compile" 2>conftest.err)
10011 ac_status=$?
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 if (exit $ac_status) && test -s "$ac_outfile"; then
10015 # The compiler can only warn and ignore the option if not recognized
10016 # So say no if there are warnings other than the usual output.
10017 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10019 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10020 lt_cv_prog_compiler_pic_works=yes
10021 fi
10022 fi
10023 $RM conftest*
10024
10025 fi
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10027 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10028
10029 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10030 case $lt_prog_compiler_pic in
10031 "" | " "*) ;;
10032 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10033 esac
10034 else
10035 lt_prog_compiler_pic=
10036 lt_prog_compiler_can_build_shared=no
10037 fi
10038
10039 fi
10040
10041
10042
10043
10044
10045
10046 #
10047 # Check to make sure the static flag actually works.
10048 #
10049 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10051 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10052 if ${lt_cv_prog_compiler_static_works+:} false; then :
10053 $as_echo_n "(cached) " >&6
10054 else
10055 lt_cv_prog_compiler_static_works=no
10056 save_LDFLAGS="$LDFLAGS"
10057 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10058 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10059 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10060 # The linker can only warn and ignore the option if not recognized
10061 # So say no if there are warnings
10062 if test -s conftest.err; then
10063 # Append any errors to the config.log.
10064 cat conftest.err 1>&5
10065 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10067 if diff conftest.exp conftest.er2 >/dev/null; then
10068 lt_cv_prog_compiler_static_works=yes
10069 fi
10070 else
10071 lt_cv_prog_compiler_static_works=yes
10072 fi
10073 fi
10074 $RM -r conftest*
10075 LDFLAGS="$save_LDFLAGS"
10076
10077 fi
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10079 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10080
10081 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10082 :
10083 else
10084 lt_prog_compiler_static=
10085 fi
10086
10087
10088
10089
10090
10091
10092
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10094 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10095 if ${lt_cv_prog_compiler_c_o+:} false; then :
10096 $as_echo_n "(cached) " >&6
10097 else
10098 lt_cv_prog_compiler_c_o=no
10099 $RM -r conftest 2>/dev/null
10100 mkdir conftest
10101 cd conftest
10102 mkdir out
10103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10104
10105 lt_compiler_flag="-o out/conftest2.$ac_objext"
10106 # Insert the option either (1) after the last *FLAGS variable, or
10107 # (2) before a word containing "conftest.", or (3) at the end.
10108 # Note that $ac_compile itself does not contain backslashes and begins
10109 # with a dollar sign (not a hyphen), so the echo should work correctly.
10110 lt_compile=`echo "$ac_compile" | $SED \
10111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10113 -e 's:$: $lt_compiler_flag:'`
10114 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10115 (eval "$lt_compile" 2>out/conftest.err)
10116 ac_status=$?
10117 cat out/conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10120 then
10121 # The compiler can only warn and ignore the option if not recognized
10122 # So say no if there are warnings
10123 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10124 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10125 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10126 lt_cv_prog_compiler_c_o=yes
10127 fi
10128 fi
10129 chmod u+w . 2>&5
10130 $RM conftest*
10131 # SGI C++ compiler will create directory out/ii_files/ for
10132 # template instantiation
10133 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10134 $RM out/* && rmdir out
10135 cd ..
10136 $RM -r conftest
10137 $RM conftest*
10138
10139 fi
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10141 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10142
10143
10144
10145
10146
10147
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10149 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10150 if ${lt_cv_prog_compiler_c_o+:} false; then :
10151 $as_echo_n "(cached) " >&6
10152 else
10153 lt_cv_prog_compiler_c_o=no
10154 $RM -r conftest 2>/dev/null
10155 mkdir conftest
10156 cd conftest
10157 mkdir out
10158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10159
10160 lt_compiler_flag="-o out/conftest2.$ac_objext"
10161 # Insert the option either (1) after the last *FLAGS variable, or
10162 # (2) before a word containing "conftest.", or (3) at the end.
10163 # Note that $ac_compile itself does not contain backslashes and begins
10164 # with a dollar sign (not a hyphen), so the echo should work correctly.
10165 lt_compile=`echo "$ac_compile" | $SED \
10166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10168 -e 's:$: $lt_compiler_flag:'`
10169 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10170 (eval "$lt_compile" 2>out/conftest.err)
10171 ac_status=$?
10172 cat out/conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10175 then
10176 # The compiler can only warn and ignore the option if not recognized
10177 # So say no if there are warnings
10178 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10179 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10180 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10181 lt_cv_prog_compiler_c_o=yes
10182 fi
10183 fi
10184 chmod u+w . 2>&5
10185 $RM conftest*
10186 # SGI C++ compiler will create directory out/ii_files/ for
10187 # template instantiation
10188 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10189 $RM out/* && rmdir out
10190 cd ..
10191 $RM -r conftest
10192 $RM conftest*
10193
10194 fi
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10196 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10197
10198
10199
10200
10201 hard_links="nottested"
10202 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10203 # do not overwrite the value of need_locks provided by the user
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10205 $as_echo_n "checking if we can lock with hard links... " >&6; }
10206 hard_links=yes
10207 $RM conftest*
10208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10209 touch conftest.a
10210 ln conftest.a conftest.b 2>&5 || hard_links=no
10211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10213 $as_echo "$hard_links" >&6; }
10214 if test "$hard_links" = no; then
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10216 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10217 need_locks=warn
10218 fi
10219 else
10220 need_locks=no
10221 fi
10222
10223
10224
10225
10226
10227
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10229 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10230
10231 runpath_var=
10232 allow_undefined_flag=
10233 always_export_symbols=no
10234 archive_cmds=
10235 archive_expsym_cmds=
10236 compiler_needs_object=no
10237 enable_shared_with_static_runtimes=no
10238 export_dynamic_flag_spec=
10239 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10240 hardcode_automatic=no
10241 hardcode_direct=no
10242 hardcode_direct_absolute=no
10243 hardcode_libdir_flag_spec=
10244 hardcode_libdir_flag_spec_ld=
10245 hardcode_libdir_separator=
10246 hardcode_minus_L=no
10247 hardcode_shlibpath_var=unsupported
10248 inherit_rpath=no
10249 link_all_deplibs=unknown
10250 module_cmds=
10251 module_expsym_cmds=
10252 old_archive_from_new_cmds=
10253 old_archive_from_expsyms_cmds=
10254 thread_safe_flag_spec=
10255 whole_archive_flag_spec=
10256 # include_expsyms should be a list of space-separated symbols to be *always*
10257 # included in the symbol list
10258 include_expsyms=
10259 # exclude_expsyms can be an extended regexp of symbols to exclude
10260 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10261 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10262 # as well as any symbol that contains `d'.
10263 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10264 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10265 # platforms (ab)use it in PIC code, but their linkers get confused if
10266 # the symbol is explicitly referenced. Since portable code cannot
10267 # rely on this symbol name, it's probably fine to never include it in
10268 # preloaded symbol tables.
10269 # Exclude shared library initialization/finalization symbols.
10270 extract_expsyms_cmds=
10271
10272 case $host_os in
10273 cygwin* | mingw* | pw32* | cegcc*)
10274 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10275 # When not using gcc, we currently assume that we are using
10276 # Microsoft Visual C++.
10277 if test "$GCC" != yes; then
10278 with_gnu_ld=no
10279 fi
10280 ;;
10281 interix*)
10282 # we just hope/assume this is gcc and not c89 (= MSVC++)
10283 with_gnu_ld=yes
10284 ;;
10285 openbsd*)
10286 with_gnu_ld=no
10287 ;;
10288 esac
10289
10290 ld_shlibs=yes
10291
10292 # On some targets, GNU ld is compatible enough with the native linker
10293 # that we're better off using the native interface for both.
10294 lt_use_gnu_ld_interface=no
10295 if test "$with_gnu_ld" = yes; then
10296 case $host_os in
10297 aix*)
10298 # The AIX port of GNU ld has always aspired to compatibility
10299 # with the native linker. However, as the warning in the GNU ld
10300 # block says, versions before 2.19.5* couldn't really create working
10301 # shared libraries, regardless of the interface used.
10302 case `$LD -v 2>&1` in
10303 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10304 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10305 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10306 *)
10307 lt_use_gnu_ld_interface=yes
10308 ;;
10309 esac
10310 ;;
10311 *)
10312 lt_use_gnu_ld_interface=yes
10313 ;;
10314 esac
10315 fi
10316
10317 if test "$lt_use_gnu_ld_interface" = yes; then
10318 # If archive_cmds runs LD, not CC, wlarc should be empty
10319 wlarc='${wl}'
10320
10321 # Set some defaults for GNU ld with shared library support. These
10322 # are reset later if shared libraries are not supported. Putting them
10323 # here allows them to be overridden if necessary.
10324 runpath_var=LD_RUN_PATH
10325 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10326 export_dynamic_flag_spec='${wl}--export-dynamic'
10327 # ancient GNU ld didn't support --whole-archive et. al.
10328 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10329 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10330 else
10331 whole_archive_flag_spec=
10332 fi
10333 supports_anon_versioning=no
10334 case `$LD -v 2>&1` in
10335 *GNU\ gold*) supports_anon_versioning=yes ;;
10336 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10337 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10338 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10339 *\ 2.11.*) ;; # other 2.11 versions
10340 *) supports_anon_versioning=yes ;;
10341 esac
10342
10343 # See if GNU ld supports shared libraries.
10344 case $host_os in
10345 aix[3-9]*)
10346 # On AIX/PPC, the GNU linker is very broken
10347 if test "$host_cpu" != ia64; then
10348 ld_shlibs=no
10349 cat <<_LT_EOF 1>&2
10350
10351 *** Warning: the GNU linker, at least up to release 2.19, is reported
10352 *** to be unable to reliably create shared libraries on AIX.
10353 *** Therefore, libtool is disabling shared libraries support. If you
10354 *** really care for shared libraries, you may want to install binutils
10355 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10356 *** You will then need to restart the configuration process.
10357
10358 _LT_EOF
10359 fi
10360 ;;
10361
10362 amigaos*)
10363 case $host_cpu in
10364 powerpc)
10365 # see comment about AmigaOS4 .so support
10366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10367 archive_expsym_cmds=''
10368 ;;
10369 m68k)
10370 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)'
10371 hardcode_libdir_flag_spec='-L$libdir'
10372 hardcode_minus_L=yes
10373 ;;
10374 esac
10375 ;;
10376
10377 beos*)
10378 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10379 allow_undefined_flag=unsupported
10380 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10381 # support --undefined. This deserves some investigation. FIXME
10382 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10383 else
10384 ld_shlibs=no
10385 fi
10386 ;;
10387
10388 cygwin* | mingw* | pw32* | cegcc*)
10389 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10390 # as there is no search path for DLLs.
10391 hardcode_libdir_flag_spec='-L$libdir'
10392 export_dynamic_flag_spec='${wl}--export-all-symbols'
10393 allow_undefined_flag=unsupported
10394 always_export_symbols=no
10395 enable_shared_with_static_runtimes=yes
10396 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10397
10398 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10400 # If the export-symbols file already is a .def file (1st line
10401 # is EXPORTS), use it as is; otherwise, prepend...
10402 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10403 cp $export_symbols $output_objdir/$soname.def;
10404 else
10405 echo EXPORTS > $output_objdir/$soname.def;
10406 cat $export_symbols >> $output_objdir/$soname.def;
10407 fi~
10408 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10409 else
10410 ld_shlibs=no
10411 fi
10412 ;;
10413
10414 haiku*)
10415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10416 link_all_deplibs=yes
10417 ;;
10418
10419 interix[3-9]*)
10420 hardcode_direct=no
10421 hardcode_shlibpath_var=no
10422 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10423 export_dynamic_flag_spec='${wl}-E'
10424 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10425 # Instead, shared libraries are loaded at an image base (0x10000000 by
10426 # default) and relocated if they conflict, which is a slow very memory
10427 # consuming and fragmenting process. To avoid this, we pick a random,
10428 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10429 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10430 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10431 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'
10432 ;;
10433
10434 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10435 tmp_diet=no
10436 if test "$host_os" = linux-dietlibc; then
10437 case $cc_basename in
10438 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10439 esac
10440 fi
10441 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10442 && test "$tmp_diet" = no
10443 then
10444 tmp_addflag=' $pic_flag'
10445 tmp_sharedflag='-shared'
10446 case $cc_basename,$host_cpu in
10447 pgcc*) # Portland Group C compiler
10448 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'
10449 tmp_addflag=' $pic_flag'
10450 ;;
10451 pgf77* | pgf90* | pgf95* | pgfortran*)
10452 # Portland Group f77 and f90 compilers
10453 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'
10454 tmp_addflag=' $pic_flag -Mnomain' ;;
10455 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10456 tmp_addflag=' -i_dynamic' ;;
10457 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10458 tmp_addflag=' -i_dynamic -nofor_main' ;;
10459 ifc* | ifort*) # Intel Fortran compiler
10460 tmp_addflag=' -nofor_main' ;;
10461 lf95*) # Lahey Fortran 8.1
10462 whole_archive_flag_spec=
10463 tmp_sharedflag='--shared' ;;
10464 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10465 tmp_sharedflag='-qmkshrobj'
10466 tmp_addflag= ;;
10467 nvcc*) # Cuda Compiler Driver 2.2
10468 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'
10469 compiler_needs_object=yes
10470 ;;
10471 esac
10472 case `$CC -V 2>&1 | sed 5q` in
10473 *Sun\ C*) # Sun C 5.9
10474 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'
10475 compiler_needs_object=yes
10476 tmp_sharedflag='-G' ;;
10477 *Sun\ F*) # Sun Fortran 8.3
10478 tmp_sharedflag='-G' ;;
10479 esac
10480 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10481
10482 if test "x$supports_anon_versioning" = xyes; then
10483 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10484 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10485 echo "local: *; };" >> $output_objdir/$libname.ver~
10486 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10487 fi
10488
10489 case $cc_basename in
10490 xlf* | bgf* | bgxlf* | mpixlf*)
10491 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10492 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10493 hardcode_libdir_flag_spec=
10494 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10495 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10496 if test "x$supports_anon_versioning" = xyes; then
10497 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10498 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10499 echo "local: *; };" >> $output_objdir/$libname.ver~
10500 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10501 fi
10502 ;;
10503 esac
10504 else
10505 ld_shlibs=no
10506 fi
10507 ;;
10508
10509 netbsd*)
10510 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10511 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10512 wlarc=
10513 else
10514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10515 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10516 fi
10517 ;;
10518
10519 solaris*)
10520 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10521 ld_shlibs=no
10522 cat <<_LT_EOF 1>&2
10523
10524 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10525 *** create shared libraries on Solaris systems. Therefore, libtool
10526 *** is disabling shared libraries support. We urge you to upgrade GNU
10527 *** binutils to release 2.9.1 or newer. Another option is to modify
10528 *** your PATH or compiler configuration so that the native linker is
10529 *** used, and then restart.
10530
10531 _LT_EOF
10532 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10534 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10535 else
10536 ld_shlibs=no
10537 fi
10538 ;;
10539
10540 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10541 case `$LD -v 2>&1` in
10542 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10543 ld_shlibs=no
10544 cat <<_LT_EOF 1>&2
10545
10546 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10547 *** reliably create shared libraries on SCO systems. Therefore, libtool
10548 *** is disabling shared libraries support. We urge you to upgrade GNU
10549 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10550 *** your PATH or compiler configuration so that the native linker is
10551 *** used, and then restart.
10552
10553 _LT_EOF
10554 ;;
10555 *)
10556 # For security reasons, it is highly recommended that you always
10557 # use absolute paths for naming shared libraries, and exclude the
10558 # DT_RUNPATH tag from executables and libraries. But doing so
10559 # requires that you compile everything twice, which is a pain.
10560 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10562 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10563 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10564 else
10565 ld_shlibs=no
10566 fi
10567 ;;
10568 esac
10569 ;;
10570
10571 sunos4*)
10572 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10573 wlarc=
10574 hardcode_direct=yes
10575 hardcode_shlibpath_var=no
10576 ;;
10577
10578 *)
10579 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10581 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10582 else
10583 ld_shlibs=no
10584 fi
10585 ;;
10586 esac
10587
10588 if test "$ld_shlibs" = no; then
10589 runpath_var=
10590 hardcode_libdir_flag_spec=
10591 export_dynamic_flag_spec=
10592 whole_archive_flag_spec=
10593 fi
10594 else
10595 # PORTME fill in a description of your system's linker (not GNU ld)
10596 case $host_os in
10597 aix3*)
10598 allow_undefined_flag=unsupported
10599 always_export_symbols=yes
10600 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'
10601 # Note: this linker hardcodes the directories in LIBPATH if there
10602 # are no directories specified by -L.
10603 hardcode_minus_L=yes
10604 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10605 # Neither direct hardcoding nor static linking is supported with a
10606 # broken collect2.
10607 hardcode_direct=unsupported
10608 fi
10609 ;;
10610
10611 aix[4-9]*)
10612 if test "$host_cpu" = ia64; then
10613 # On IA64, the linker does run time linking by default, so we don't
10614 # have to do anything special.
10615 aix_use_runtimelinking=no
10616 exp_sym_flag='-Bexport'
10617 no_entry_flag=""
10618 else
10619 # If we're using GNU nm, then we don't want the "-C" option.
10620 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10621 # Also, AIX nm treats weak defined symbols like other global
10622 # defined symbols, whereas GNU nm marks them as "W".
10623 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10624 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'
10625 else
10626 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'
10627 fi
10628 aix_use_runtimelinking=no
10629
10630 # Test if we are trying to use run time linking or normal
10631 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10632 # need to do runtime linking.
10633 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10634 for ld_flag in $LDFLAGS; do
10635 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10636 aix_use_runtimelinking=yes
10637 break
10638 fi
10639 done
10640 ;;
10641 esac
10642
10643 exp_sym_flag='-bexport'
10644 no_entry_flag='-bnoentry'
10645 fi
10646
10647 # When large executables or shared objects are built, AIX ld can
10648 # have problems creating the table of contents. If linking a library
10649 # or program results in "error TOC overflow" add -mminimal-toc to
10650 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10651 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10652
10653 archive_cmds=''
10654 hardcode_direct=yes
10655 hardcode_direct_absolute=yes
10656 hardcode_libdir_separator=':'
10657 link_all_deplibs=yes
10658 file_list_spec='${wl}-f,'
10659
10660 if test "$GCC" = yes; then
10661 case $host_os in aix4.[012]|aix4.[012].*)
10662 # We only want to do this on AIX 4.2 and lower, the check
10663 # below for broken collect2 doesn't work under 4.3+
10664 collect2name=`${CC} -print-prog-name=collect2`
10665 if test -f "$collect2name" &&
10666 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10667 then
10668 # We have reworked collect2
10669 :
10670 else
10671 # We have old collect2
10672 hardcode_direct=unsupported
10673 # It fails to find uninstalled libraries when the uninstalled
10674 # path is not listed in the libpath. Setting hardcode_minus_L
10675 # to unsupported forces relinking
10676 hardcode_minus_L=yes
10677 hardcode_libdir_flag_spec='-L$libdir'
10678 hardcode_libdir_separator=
10679 fi
10680 ;;
10681 esac
10682 shared_flag='-shared'
10683 if test "$aix_use_runtimelinking" = yes; then
10684 shared_flag="$shared_flag "'${wl}-G'
10685 fi
10686 else
10687 # not using gcc
10688 if test "$host_cpu" = ia64; then
10689 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10690 # chokes on -Wl,-G. The following line is correct:
10691 shared_flag='-G'
10692 else
10693 if test "$aix_use_runtimelinking" = yes; then
10694 shared_flag='${wl}-G'
10695 else
10696 shared_flag='${wl}-bM:SRE'
10697 fi
10698 fi
10699 fi
10700
10701 export_dynamic_flag_spec='${wl}-bexpall'
10702 # It seems that -bexpall does not export symbols beginning with
10703 # underscore (_), so it is better to generate a list of symbols to export.
10704 always_export_symbols=yes
10705 if test "$aix_use_runtimelinking" = yes; then
10706 # Warning - without using the other runtime loading flags (-brtl),
10707 # -berok will link without error, but may produce a broken library.
10708 allow_undefined_flag='-berok'
10709 # Determine the default libpath from the value encoded in an
10710 # empty executable.
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10713
10714 int
10715 main ()
10716 {
10717
10718 ;
10719 return 0;
10720 }
10721 _ACEOF
10722 if ac_fn_c_try_link "$LINENO"; then :
10723
10724 lt_aix_libpath_sed='
10725 /Import File Strings/,/^$/ {
10726 /^0/ {
10727 s/^0 *\(.*\)$/\1/
10728 p
10729 }
10730 }'
10731 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10732 # Check for a 64-bit object if we didn't find anything.
10733 if test -z "$aix_libpath"; then
10734 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10735 fi
10736 fi
10737 rm -f core conftest.err conftest.$ac_objext \
10738 conftest$ac_exeext conftest.$ac_ext
10739 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10740
10741 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10742 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"
10743 else
10744 if test "$host_cpu" = ia64; then
10745 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10746 allow_undefined_flag="-z nodefs"
10747 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"
10748 else
10749 # Determine the default libpath from the value encoded in an
10750 # empty executable.
10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10753
10754 int
10755 main ()
10756 {
10757
10758 ;
10759 return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_link "$LINENO"; then :
10763
10764 lt_aix_libpath_sed='
10765 /Import File Strings/,/^$/ {
10766 /^0/ {
10767 s/^0 *\(.*\)$/\1/
10768 p
10769 }
10770 }'
10771 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10772 # Check for a 64-bit object if we didn't find anything.
10773 if test -z "$aix_libpath"; then
10774 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10775 fi
10776 fi
10777 rm -f core conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext conftest.$ac_ext
10779 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10780
10781 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10782 # Warning - without using the other run time loading flags,
10783 # -berok will link without error, but may produce a broken library.
10784 no_undefined_flag=' ${wl}-bernotok'
10785 allow_undefined_flag=' ${wl}-berok'
10786 if test "$with_gnu_ld" = yes; then
10787 # We only use this code for GNU lds that support --whole-archive.
10788 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10789 else
10790 # Exported symbols can be pulled into shared objects from archives
10791 whole_archive_flag_spec='$convenience'
10792 fi
10793 archive_cmds_need_lc=yes
10794 # This is similar to how AIX traditionally builds its shared libraries.
10795 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'
10796 fi
10797 fi
10798 ;;
10799
10800 amigaos*)
10801 case $host_cpu in
10802 powerpc)
10803 # see comment about AmigaOS4 .so support
10804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10805 archive_expsym_cmds=''
10806 ;;
10807 m68k)
10808 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)'
10809 hardcode_libdir_flag_spec='-L$libdir'
10810 hardcode_minus_L=yes
10811 ;;
10812 esac
10813 ;;
10814
10815 bsdi[45]*)
10816 export_dynamic_flag_spec=-rdynamic
10817 ;;
10818
10819 cygwin* | mingw* | pw32* | cegcc*)
10820 # When not using gcc, we currently assume that we are using
10821 # Microsoft Visual C++.
10822 # hardcode_libdir_flag_spec is actually meaningless, as there is
10823 # no search path for DLLs.
10824 hardcode_libdir_flag_spec=' '
10825 allow_undefined_flag=unsupported
10826 # Tell ltmain to make .lib files, not .a files.
10827 libext=lib
10828 # Tell ltmain to make .dll files, not .so files.
10829 shrext_cmds=".dll"
10830 # FIXME: Setting linknames here is a bad hack.
10831 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10832 # The linker will automatically build a .lib file if we build a DLL.
10833 old_archive_from_new_cmds='true'
10834 # FIXME: Should let the user specify the lib program.
10835 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10836 fix_srcfile_path='`cygpath -w "$srcfile"`'
10837 enable_shared_with_static_runtimes=yes
10838 ;;
10839
10840 darwin* | rhapsody*)
10841
10842
10843 archive_cmds_need_lc=no
10844 hardcode_direct=no
10845 hardcode_automatic=yes
10846 hardcode_shlibpath_var=unsupported
10847 if test "$lt_cv_ld_force_load" = "yes"; then
10848 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\"`'
10849 else
10850 whole_archive_flag_spec=''
10851 fi
10852 link_all_deplibs=yes
10853 allow_undefined_flag="$_lt_dar_allow_undefined"
10854 case $cc_basename in
10855 ifort*) _lt_dar_can_shared=yes ;;
10856 *) _lt_dar_can_shared=$GCC ;;
10857 esac
10858 if test "$_lt_dar_can_shared" = "yes"; then
10859 output_verbose_link_cmd=func_echo_all
10860 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10861 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10862 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}"
10863 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}"
10864
10865 else
10866 ld_shlibs=no
10867 fi
10868
10869 ;;
10870
10871 dgux*)
10872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10873 hardcode_libdir_flag_spec='-L$libdir'
10874 hardcode_shlibpath_var=no
10875 ;;
10876
10877 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10878 # support. Future versions do this automatically, but an explicit c++rt0.o
10879 # does not break anything, and helps significantly (at the cost of a little
10880 # extra space).
10881 freebsd2.2*)
10882 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10883 hardcode_libdir_flag_spec='-R$libdir'
10884 hardcode_direct=yes
10885 hardcode_shlibpath_var=no
10886 ;;
10887
10888 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10889 freebsd2.*)
10890 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10891 hardcode_direct=yes
10892 hardcode_minus_L=yes
10893 hardcode_shlibpath_var=no
10894 ;;
10895
10896 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10897 freebsd* | dragonfly*)
10898 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10899 hardcode_libdir_flag_spec='-R$libdir'
10900 hardcode_direct=yes
10901 hardcode_shlibpath_var=no
10902 ;;
10903
10904 hpux9*)
10905 if test "$GCC" = yes; then
10906 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'
10907 else
10908 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'
10909 fi
10910 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10911 hardcode_libdir_separator=:
10912 hardcode_direct=yes
10913
10914 # hardcode_minus_L: Not really in the search PATH,
10915 # but as the default location of the library.
10916 hardcode_minus_L=yes
10917 export_dynamic_flag_spec='${wl}-E'
10918 ;;
10919
10920 hpux10*)
10921 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10922 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10923 else
10924 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10925 fi
10926 if test "$with_gnu_ld" = no; then
10927 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10928 hardcode_libdir_flag_spec_ld='+b $libdir'
10929 hardcode_libdir_separator=:
10930 hardcode_direct=yes
10931 hardcode_direct_absolute=yes
10932 export_dynamic_flag_spec='${wl}-E'
10933 # hardcode_minus_L: Not really in the search PATH,
10934 # but as the default location of the library.
10935 hardcode_minus_L=yes
10936 fi
10937 ;;
10938
10939 hpux11*)
10940 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10941 case $host_cpu in
10942 hppa*64*)
10943 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10944 ;;
10945 ia64*)
10946 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10947 ;;
10948 *)
10949 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10950 ;;
10951 esac
10952 else
10953 case $host_cpu in
10954 hppa*64*)
10955 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10956 ;;
10957 ia64*)
10958 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10959 ;;
10960 *)
10961
10962 # Older versions of the 11.00 compiler do not understand -b yet
10963 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10965 $as_echo_n "checking if $CC understands -b... " >&6; }
10966 if ${lt_cv_prog_compiler__b+:} false; then :
10967 $as_echo_n "(cached) " >&6
10968 else
10969 lt_cv_prog_compiler__b=no
10970 save_LDFLAGS="$LDFLAGS"
10971 LDFLAGS="$LDFLAGS -b"
10972 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10973 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10974 # The linker can only warn and ignore the option if not recognized
10975 # So say no if there are warnings
10976 if test -s conftest.err; then
10977 # Append any errors to the config.log.
10978 cat conftest.err 1>&5
10979 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10981 if diff conftest.exp conftest.er2 >/dev/null; then
10982 lt_cv_prog_compiler__b=yes
10983 fi
10984 else
10985 lt_cv_prog_compiler__b=yes
10986 fi
10987 fi
10988 $RM -r conftest*
10989 LDFLAGS="$save_LDFLAGS"
10990
10991 fi
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10993 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10994
10995 if test x"$lt_cv_prog_compiler__b" = xyes; then
10996 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10997 else
10998 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10999 fi
11000
11001 ;;
11002 esac
11003 fi
11004 if test "$with_gnu_ld" = no; then
11005 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11006 hardcode_libdir_separator=:
11007
11008 case $host_cpu in
11009 hppa*64*|ia64*)
11010 hardcode_direct=no
11011 hardcode_shlibpath_var=no
11012 ;;
11013 *)
11014 hardcode_direct=yes
11015 hardcode_direct_absolute=yes
11016 export_dynamic_flag_spec='${wl}-E'
11017
11018 # hardcode_minus_L: Not really in the search PATH,
11019 # but as the default location of the library.
11020 hardcode_minus_L=yes
11021 ;;
11022 esac
11023 fi
11024 ;;
11025
11026 irix5* | irix6* | nonstopux*)
11027 if test "$GCC" = yes; then
11028 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'
11029 # Try to use the -exported_symbol ld option, if it does not
11030 # work, assume that -exports_file does not work either and
11031 # implicitly export all symbols.
11032 save_LDFLAGS="$LDFLAGS"
11033 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11036 int foo(void) {}
11037 _ACEOF
11038 if ac_fn_c_try_link "$LINENO"; then :
11039 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'
11040
11041 fi
11042 rm -f core conftest.err conftest.$ac_objext \
11043 conftest$ac_exeext conftest.$ac_ext
11044 LDFLAGS="$save_LDFLAGS"
11045 else
11046 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'
11047 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'
11048 fi
11049 archive_cmds_need_lc='no'
11050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11051 hardcode_libdir_separator=:
11052 inherit_rpath=yes
11053 link_all_deplibs=yes
11054 ;;
11055
11056 netbsd*)
11057 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11058 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11059 else
11060 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11061 fi
11062 hardcode_libdir_flag_spec='-R$libdir'
11063 hardcode_direct=yes
11064 hardcode_shlibpath_var=no
11065 ;;
11066
11067 newsos6)
11068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11069 hardcode_direct=yes
11070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11071 hardcode_libdir_separator=:
11072 hardcode_shlibpath_var=no
11073 ;;
11074
11075 *nto* | *qnx*)
11076 ;;
11077
11078 openbsd*)
11079 if test -f /usr/libexec/ld.so; then
11080 hardcode_direct=yes
11081 hardcode_shlibpath_var=no
11082 hardcode_direct_absolute=yes
11083 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11084 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11085 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11086 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11087 export_dynamic_flag_spec='${wl}-E'
11088 else
11089 case $host_os in
11090 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11092 hardcode_libdir_flag_spec='-R$libdir'
11093 ;;
11094 *)
11095 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11096 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11097 ;;
11098 esac
11099 fi
11100 else
11101 ld_shlibs=no
11102 fi
11103 ;;
11104
11105 os2*)
11106 hardcode_libdir_flag_spec='-L$libdir'
11107 hardcode_minus_L=yes
11108 allow_undefined_flag=unsupported
11109 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'
11110 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11111 ;;
11112
11113 osf3*)
11114 if test "$GCC" = yes; then
11115 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11116 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'
11117 else
11118 allow_undefined_flag=' -expect_unresolved \*'
11119 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'
11120 fi
11121 archive_cmds_need_lc='no'
11122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11123 hardcode_libdir_separator=:
11124 ;;
11125
11126 osf4* | osf5*) # as osf3* with the addition of -msym flag
11127 if test "$GCC" = yes; then
11128 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11129 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'
11130 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11131 else
11132 allow_undefined_flag=' -expect_unresolved \*'
11133 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'
11134 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~
11135 $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'
11136
11137 # Both c and cxx compiler support -rpath directly
11138 hardcode_libdir_flag_spec='-rpath $libdir'
11139 fi
11140 archive_cmds_need_lc='no'
11141 hardcode_libdir_separator=:
11142 ;;
11143
11144 solaris*)
11145 no_undefined_flag=' -z defs'
11146 if test "$GCC" = yes; then
11147 wlarc='${wl}'
11148 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11149 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11150 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11151 else
11152 case `$CC -V 2>&1` in
11153 *"Compilers 5.0"*)
11154 wlarc=''
11155 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11156 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11157 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11158 ;;
11159 *)
11160 wlarc='${wl}'
11161 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11162 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11163 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11164 ;;
11165 esac
11166 fi
11167 hardcode_libdir_flag_spec='-R$libdir'
11168 hardcode_shlibpath_var=no
11169 case $host_os in
11170 solaris2.[0-5] | solaris2.[0-5].*) ;;
11171 *)
11172 # The compiler driver will combine and reorder linker options,
11173 # but understands `-z linker_flag'. GCC discards it without `$wl',
11174 # but is careful enough not to reorder.
11175 # Supported since Solaris 2.6 (maybe 2.5.1?)
11176 if test "$GCC" = yes; then
11177 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11178 else
11179 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11180 fi
11181 ;;
11182 esac
11183 link_all_deplibs=yes
11184 ;;
11185
11186 sunos4*)
11187 if test "x$host_vendor" = xsequent; then
11188 # Use $CC to link under sequent, because it throws in some extra .o
11189 # files that make .init and .fini sections work.
11190 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11191 else
11192 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11193 fi
11194 hardcode_libdir_flag_spec='-L$libdir'
11195 hardcode_direct=yes
11196 hardcode_minus_L=yes
11197 hardcode_shlibpath_var=no
11198 ;;
11199
11200 sysv4)
11201 case $host_vendor in
11202 sni)
11203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11204 hardcode_direct=yes # is this really true???
11205 ;;
11206 siemens)
11207 ## LD is ld it makes a PLAMLIB
11208 ## CC just makes a GrossModule.
11209 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11210 reload_cmds='$CC -r -o $output$reload_objs'
11211 hardcode_direct=no
11212 ;;
11213 motorola)
11214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11215 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11216 ;;
11217 esac
11218 runpath_var='LD_RUN_PATH'
11219 hardcode_shlibpath_var=no
11220 ;;
11221
11222 sysv4.3*)
11223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11224 hardcode_shlibpath_var=no
11225 export_dynamic_flag_spec='-Bexport'
11226 ;;
11227
11228 sysv4*MP*)
11229 if test -d /usr/nec; then
11230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11231 hardcode_shlibpath_var=no
11232 runpath_var=LD_RUN_PATH
11233 hardcode_runpath_var=yes
11234 ld_shlibs=yes
11235 fi
11236 ;;
11237
11238 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11239 no_undefined_flag='${wl}-z,text'
11240 archive_cmds_need_lc=no
11241 hardcode_shlibpath_var=no
11242 runpath_var='LD_RUN_PATH'
11243
11244 if test "$GCC" = yes; then
11245 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11246 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11247 else
11248 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11249 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11250 fi
11251 ;;
11252
11253 sysv5* | sco3.2v5* | sco5v6*)
11254 # Note: We can NOT use -z defs as we might desire, because we do not
11255 # link with -lc, and that would cause any symbols used from libc to
11256 # always be unresolved, which means just about no library would
11257 # ever link correctly. If we're not using GNU ld we use -z text
11258 # though, which does catch some bad symbols but isn't as heavy-handed
11259 # as -z defs.
11260 no_undefined_flag='${wl}-z,text'
11261 allow_undefined_flag='${wl}-z,nodefs'
11262 archive_cmds_need_lc=no
11263 hardcode_shlibpath_var=no
11264 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11265 hardcode_libdir_separator=':'
11266 link_all_deplibs=yes
11267 export_dynamic_flag_spec='${wl}-Bexport'
11268 runpath_var='LD_RUN_PATH'
11269
11270 if test "$GCC" = yes; then
11271 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11272 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11273 else
11274 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11275 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11276 fi
11277 ;;
11278
11279 uts4*)
11280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11281 hardcode_libdir_flag_spec='-L$libdir'
11282 hardcode_shlibpath_var=no
11283 ;;
11284
11285 *)
11286 ld_shlibs=no
11287 ;;
11288 esac
11289
11290 if test x$host_vendor = xsni; then
11291 case $host in
11292 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11293 export_dynamic_flag_spec='${wl}-Blargedynsym'
11294 ;;
11295 esac
11296 fi
11297 fi
11298
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11300 $as_echo "$ld_shlibs" >&6; }
11301 test "$ld_shlibs" = no && can_build_shared=no
11302
11303 with_gnu_ld=$with_gnu_ld
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319 #
11320 # Do we need to explicitly link libc?
11321 #
11322 case "x$archive_cmds_need_lc" in
11323 x|xyes)
11324 # Assume -lc should be added
11325 archive_cmds_need_lc=yes
11326
11327 if test "$enable_shared" = yes && test "$GCC" = yes; then
11328 case $archive_cmds in
11329 *'~'*)
11330 # FIXME: we may have to deal with multi-command sequences.
11331 ;;
11332 '$CC '*)
11333 # Test whether the compiler implicitly links with -lc since on some
11334 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11335 # to ld, don't add -lc before -lgcc.
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11337 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11338 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11341 $RM conftest*
11342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11343
11344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11345 (eval $ac_compile) 2>&5
11346 ac_status=$?
11347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11348 test $ac_status = 0; } 2>conftest.err; then
11349 soname=conftest
11350 lib=conftest
11351 libobjs=conftest.$ac_objext
11352 deplibs=
11353 wl=$lt_prog_compiler_wl
11354 pic_flag=$lt_prog_compiler_pic
11355 compiler_flags=-v
11356 linker_flags=-v
11357 verstring=
11358 output_objdir=.
11359 libname=conftest
11360 lt_save_allow_undefined_flag=$allow_undefined_flag
11361 allow_undefined_flag=
11362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11363 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11364 ac_status=$?
11365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11366 test $ac_status = 0; }
11367 then
11368 lt_cv_archive_cmds_need_lc=no
11369 else
11370 lt_cv_archive_cmds_need_lc=yes
11371 fi
11372 allow_undefined_flag=$lt_save_allow_undefined_flag
11373 else
11374 cat conftest.err 1>&5
11375 fi
11376 $RM conftest*
11377
11378 fi
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11380 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11381 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11382 ;;
11383 esac
11384 fi
11385 ;;
11386 esac
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11545 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11546
11547 if test "$GCC" = yes; then
11548 case $host_os in
11549 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11550 *) lt_awk_arg="/^libraries:/" ;;
11551 esac
11552 case $host_os in
11553 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11554 *) lt_sed_strip_eq="s,=/,/,g" ;;
11555 esac
11556 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11557 case $lt_search_path_spec in
11558 *\;*)
11559 # if the path contains ";" then we assume it to be the separator
11560 # otherwise default to the standard path separator (i.e. ":") - it is
11561 # assumed that no part of a normal pathname contains ";" but that should
11562 # okay in the real world where ";" in dirpaths is itself problematic.
11563 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11564 ;;
11565 *)
11566 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11567 ;;
11568 esac
11569 # Ok, now we have the path, separated by spaces, we can step through it
11570 # and add multilib dir if necessary.
11571 lt_tmp_lt_search_path_spec=
11572 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11573 for lt_sys_path in $lt_search_path_spec; do
11574 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11575 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11576 else
11577 test -d "$lt_sys_path" && \
11578 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11579 fi
11580 done
11581 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11582 BEGIN {RS=" "; FS="/|\n";} {
11583 lt_foo="";
11584 lt_count=0;
11585 for (lt_i = NF; lt_i > 0; lt_i--) {
11586 if ($lt_i != "" && $lt_i != ".") {
11587 if ($lt_i == "..") {
11588 lt_count++;
11589 } else {
11590 if (lt_count == 0) {
11591 lt_foo="/" $lt_i lt_foo;
11592 } else {
11593 lt_count--;
11594 }
11595 }
11596 }
11597 }
11598 if (lt_foo != "") { lt_freq[lt_foo]++; }
11599 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11600 }'`
11601 # AWK program above erroneously prepends '/' to C:/dos/paths
11602 # for these hosts.
11603 case $host_os in
11604 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11605 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11606 esac
11607 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11608 else
11609 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11610 fi
11611 library_names_spec=
11612 libname_spec='lib$name'
11613 soname_spec=
11614 shrext_cmds=".so"
11615 postinstall_cmds=
11616 postuninstall_cmds=
11617 finish_cmds=
11618 finish_eval=
11619 shlibpath_var=
11620 shlibpath_overrides_runpath=unknown
11621 version_type=none
11622 dynamic_linker="$host_os ld.so"
11623 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11624 need_lib_prefix=unknown
11625 hardcode_into_libs=no
11626
11627 # when you set need_version to no, make sure it does not cause -set_version
11628 # flags to be left without arguments
11629 need_version=unknown
11630
11631 case $host_os in
11632 aix3*)
11633 version_type=linux
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11635 shlibpath_var=LIBPATH
11636
11637 # AIX 3 has no versioning support, so we append a major version to the name.
11638 soname_spec='${libname}${release}${shared_ext}$major'
11639 ;;
11640
11641 aix[4-9]*)
11642 version_type=linux
11643 need_lib_prefix=no
11644 need_version=no
11645 hardcode_into_libs=yes
11646 if test "$host_cpu" = ia64; then
11647 # AIX 5 supports IA64
11648 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 else
11651 # With GCC up to 2.95.x, collect2 would create an import file
11652 # for dependence libraries. The import file would start with
11653 # the line `#! .'. This would cause the generated library to
11654 # depend on `.', always an invalid library. This was fixed in
11655 # development snapshots of GCC prior to 3.0.
11656 case $host_os in
11657 aix4 | aix4.[01] | aix4.[01].*)
11658 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11659 echo ' yes '
11660 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11661 :
11662 else
11663 can_build_shared=no
11664 fi
11665 ;;
11666 esac
11667 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11668 # soname into executable. Probably we can add versioning support to
11669 # collect2, so additional links can be useful in future.
11670 if test "$aix_use_runtimelinking" = yes; then
11671 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11672 # instead of lib<name>.a to let people know that these are not
11673 # typical AIX shared libraries.
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11675 else
11676 # We preserve .a as extension for shared libraries through AIX4.2
11677 # and later when we are not doing run time linking.
11678 library_names_spec='${libname}${release}.a $libname.a'
11679 soname_spec='${libname}${release}${shared_ext}$major'
11680 fi
11681 shlibpath_var=LIBPATH
11682 fi
11683 ;;
11684
11685 amigaos*)
11686 case $host_cpu in
11687 powerpc)
11688 # Since July 2007 AmigaOS4 officially supports .so libraries.
11689 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11691 ;;
11692 m68k)
11693 library_names_spec='$libname.ixlibrary $libname.a'
11694 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11695 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'
11696 ;;
11697 esac
11698 ;;
11699
11700 beos*)
11701 library_names_spec='${libname}${shared_ext}'
11702 dynamic_linker="$host_os ld.so"
11703 shlibpath_var=LIBRARY_PATH
11704 ;;
11705
11706 bsdi[45]*)
11707 version_type=linux
11708 need_version=no
11709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11710 soname_spec='${libname}${release}${shared_ext}$major'
11711 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11712 shlibpath_var=LD_LIBRARY_PATH
11713 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11714 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11715 # the default ld.so.conf also contains /usr/contrib/lib and
11716 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11717 # libtool to hard-code these into programs
11718 ;;
11719
11720 cygwin* | mingw* | pw32* | cegcc*)
11721 version_type=windows
11722 shrext_cmds=".dll"
11723 need_version=no
11724 need_lib_prefix=no
11725
11726 case $GCC,$host_os in
11727 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11728 library_names_spec='$libname.dll.a'
11729 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11730 postinstall_cmds='base_file=`basename \${file}`~
11731 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11732 dldir=$destdir/`dirname \$dlpath`~
11733 test -d \$dldir || mkdir -p \$dldir~
11734 $install_prog $dir/$dlname \$dldir/$dlname~
11735 chmod a+x \$dldir/$dlname~
11736 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11737 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11738 fi'
11739 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11740 dlpath=$dir/\$dldll~
11741 $RM \$dlpath'
11742 shlibpath_overrides_runpath=yes
11743
11744 case $host_os in
11745 cygwin*)
11746 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11747 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11748
11749 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11750 ;;
11751 mingw* | cegcc*)
11752 # MinGW DLLs use traditional 'lib' prefix
11753 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11754 ;;
11755 pw32*)
11756 # pw32 DLLs use 'pw' prefix rather than 'lib'
11757 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11758 ;;
11759 esac
11760 ;;
11761
11762 *)
11763 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11764 ;;
11765 esac
11766 dynamic_linker='Win32 ld.exe'
11767 # FIXME: first we should search . and the directory the executable is in
11768 shlibpath_var=PATH
11769 ;;
11770
11771 darwin* | rhapsody*)
11772 dynamic_linker="$host_os dyld"
11773 version_type=darwin
11774 need_lib_prefix=no
11775 need_version=no
11776 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11777 soname_spec='${libname}${release}${major}$shared_ext'
11778 shlibpath_overrides_runpath=yes
11779 shlibpath_var=DYLD_LIBRARY_PATH
11780 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11781
11782 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11783 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11784 ;;
11785
11786 dgux*)
11787 version_type=linux
11788 need_lib_prefix=no
11789 need_version=no
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11791 soname_spec='${libname}${release}${shared_ext}$major'
11792 shlibpath_var=LD_LIBRARY_PATH
11793 ;;
11794
11795 freebsd* | dragonfly*)
11796 # DragonFly does not have aout. When/if they implement a new
11797 # versioning mechanism, adjust this.
11798 if test -x /usr/bin/objformat; then
11799 objformat=`/usr/bin/objformat`
11800 else
11801 case $host_os in
11802 freebsd[23].*) objformat=aout ;;
11803 *) objformat=elf ;;
11804 esac
11805 fi
11806 version_type=freebsd-$objformat
11807 case $version_type in
11808 freebsd-elf*)
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11810 need_version=no
11811 need_lib_prefix=no
11812 ;;
11813 freebsd-*)
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11815 need_version=yes
11816 ;;
11817 esac
11818 shlibpath_var=LD_LIBRARY_PATH
11819 case $host_os in
11820 freebsd2.*)
11821 shlibpath_overrides_runpath=yes
11822 ;;
11823 freebsd3.[01]* | freebsdelf3.[01]*)
11824 shlibpath_overrides_runpath=yes
11825 hardcode_into_libs=yes
11826 ;;
11827 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11828 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11829 shlibpath_overrides_runpath=no
11830 hardcode_into_libs=yes
11831 ;;
11832 *) # from 4.6 on, and DragonFly
11833 shlibpath_overrides_runpath=yes
11834 hardcode_into_libs=yes
11835 ;;
11836 esac
11837 ;;
11838
11839 haiku*)
11840 version_type=linux
11841 need_lib_prefix=no
11842 need_version=no
11843 dynamic_linker="$host_os runtime_loader"
11844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11845 soname_spec='${libname}${release}${shared_ext}$major'
11846 shlibpath_var=LIBRARY_PATH
11847 shlibpath_overrides_runpath=yes
11848 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11849 hardcode_into_libs=yes
11850 ;;
11851
11852 hpux9* | hpux10* | hpux11*)
11853 # Give a soname corresponding to the major version so that dld.sl refuses to
11854 # link against other versions.
11855 version_type=sunos
11856 need_lib_prefix=no
11857 need_version=no
11858 case $host_cpu in
11859 ia64*)
11860 shrext_cmds='.so'
11861 hardcode_into_libs=yes
11862 dynamic_linker="$host_os dld.so"
11863 shlibpath_var=LD_LIBRARY_PATH
11864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11866 soname_spec='${libname}${release}${shared_ext}$major'
11867 if test "X$HPUX_IA64_MODE" = X32; then
11868 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11869 else
11870 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11871 fi
11872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11873 ;;
11874 hppa*64*)
11875 shrext_cmds='.sl'
11876 hardcode_into_libs=yes
11877 dynamic_linker="$host_os dld.sl"
11878 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881 soname_spec='${libname}${release}${shared_ext}$major'
11882 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11884 ;;
11885 *)
11886 shrext_cmds='.sl'
11887 dynamic_linker="$host_os dld.sl"
11888 shlibpath_var=SHLIB_PATH
11889 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11891 soname_spec='${libname}${release}${shared_ext}$major'
11892 ;;
11893 esac
11894 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11895 postinstall_cmds='chmod 555 $lib'
11896 # or fails outright, so override atomically:
11897 install_override_mode=555
11898 ;;
11899
11900 interix[3-9]*)
11901 version_type=linux
11902 need_lib_prefix=no
11903 need_version=no
11904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11905 soname_spec='${libname}${release}${shared_ext}$major'
11906 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11907 shlibpath_var=LD_LIBRARY_PATH
11908 shlibpath_overrides_runpath=no
11909 hardcode_into_libs=yes
11910 ;;
11911
11912 irix5* | irix6* | nonstopux*)
11913 case $host_os in
11914 nonstopux*) version_type=nonstopux ;;
11915 *)
11916 if test "$lt_cv_prog_gnu_ld" = yes; then
11917 version_type=linux
11918 else
11919 version_type=irix
11920 fi ;;
11921 esac
11922 need_lib_prefix=no
11923 need_version=no
11924 soname_spec='${libname}${release}${shared_ext}$major'
11925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11926 case $host_os in
11927 irix5* | nonstopux*)
11928 libsuff= shlibsuff=
11929 ;;
11930 *)
11931 case $LD in # libtool.m4 will add one of these switches to LD
11932 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11933 libsuff= shlibsuff= libmagic=32-bit;;
11934 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11935 libsuff=32 shlibsuff=N32 libmagic=N32;;
11936 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11937 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11938 *) libsuff= shlibsuff= libmagic=never-match;;
11939 esac
11940 ;;
11941 esac
11942 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11943 shlibpath_overrides_runpath=no
11944 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11945 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11946 hardcode_into_libs=yes
11947 ;;
11948
11949 # No shared lib support for Linux oldld, aout, or coff.
11950 linux*oldld* | linux*aout* | linux*coff*)
11951 dynamic_linker=no
11952 ;;
11953
11954 # This must be Linux ELF.
11955 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11956 version_type=linux
11957 need_lib_prefix=no
11958 need_version=no
11959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11960 soname_spec='${libname}${release}${shared_ext}$major'
11961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 shlibpath_overrides_runpath=no
11964
11965 # Some binutils ld are patched to set DT_RUNPATH
11966 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11967 $as_echo_n "(cached) " >&6
11968 else
11969 lt_cv_shlibpath_overrides_runpath=no
11970 save_LDFLAGS=$LDFLAGS
11971 save_libdir=$libdir
11972 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11973 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975 /* end confdefs.h. */
11976
11977 int
11978 main ()
11979 {
11980
11981 ;
11982 return 0;
11983 }
11984 _ACEOF
11985 if ac_fn_c_try_link "$LINENO"; then :
11986 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11987 lt_cv_shlibpath_overrides_runpath=yes
11988 fi
11989 fi
11990 rm -f core conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11992 LDFLAGS=$save_LDFLAGS
11993 libdir=$save_libdir
11994
11995 fi
11996
11997 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11998
11999 # This implies no fast_install, which is unacceptable.
12000 # Some rework will be needed to allow for fast_install
12001 # before this can be enabled.
12002 hardcode_into_libs=yes
12003
12004 # Append ld.so.conf contents to the search path
12005 if test -f /etc/ld.so.conf; then
12006 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' ' '`
12007 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12008 fi
12009
12010 # We used to test for /lib/ld.so.1 and disable shared libraries on
12011 # powerpc, because MkLinux only supported shared libraries with the
12012 # GNU dynamic linker. Since this was broken with cross compilers,
12013 # most powerpc-linux boxes support dynamic linking these days and
12014 # people can always --disable-shared, the test was removed, and we
12015 # assume the GNU/Linux dynamic linker is in use.
12016 dynamic_linker='GNU/Linux ld.so'
12017 ;;
12018
12019 netbsd*)
12020 version_type=sunos
12021 need_lib_prefix=no
12022 need_version=no
12023 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12026 dynamic_linker='NetBSD (a.out) ld.so'
12027 else
12028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12029 soname_spec='${libname}${release}${shared_ext}$major'
12030 dynamic_linker='NetBSD ld.elf_so'
12031 fi
12032 shlibpath_var=LD_LIBRARY_PATH
12033 shlibpath_overrides_runpath=yes
12034 hardcode_into_libs=yes
12035 ;;
12036
12037 newsos6)
12038 version_type=linux
12039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12040 shlibpath_var=LD_LIBRARY_PATH
12041 shlibpath_overrides_runpath=yes
12042 ;;
12043
12044 *nto* | *qnx*)
12045 version_type=qnx
12046 need_lib_prefix=no
12047 need_version=no
12048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12049 soname_spec='${libname}${release}${shared_ext}$major'
12050 shlibpath_var=LD_LIBRARY_PATH
12051 shlibpath_overrides_runpath=no
12052 hardcode_into_libs=yes
12053 dynamic_linker='ldqnx.so'
12054 ;;
12055
12056 openbsd*)
12057 version_type=sunos
12058 sys_lib_dlsearch_path_spec="/usr/lib"
12059 need_lib_prefix=no
12060 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12061 case $host_os in
12062 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12063 *) need_version=no ;;
12064 esac
12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12067 shlibpath_var=LD_LIBRARY_PATH
12068 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12069 case $host_os in
12070 openbsd2.[89] | openbsd2.[89].*)
12071 shlibpath_overrides_runpath=no
12072 ;;
12073 *)
12074 shlibpath_overrides_runpath=yes
12075 ;;
12076 esac
12077 else
12078 shlibpath_overrides_runpath=yes
12079 fi
12080 ;;
12081
12082 os2*)
12083 libname_spec='$name'
12084 shrext_cmds=".dll"
12085 need_lib_prefix=no
12086 library_names_spec='$libname${shared_ext} $libname.a'
12087 dynamic_linker='OS/2 ld.exe'
12088 shlibpath_var=LIBPATH
12089 ;;
12090
12091 osf3* | osf4* | osf5*)
12092 version_type=osf
12093 need_lib_prefix=no
12094 need_version=no
12095 soname_spec='${libname}${release}${shared_ext}$major'
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097 shlibpath_var=LD_LIBRARY_PATH
12098 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12099 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12100 ;;
12101
12102 rdos*)
12103 dynamic_linker=no
12104 ;;
12105
12106 solaris*)
12107 version_type=linux
12108 need_lib_prefix=no
12109 need_version=no
12110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12111 soname_spec='${libname}${release}${shared_ext}$major'
12112 shlibpath_var=LD_LIBRARY_PATH
12113 shlibpath_overrides_runpath=yes
12114 hardcode_into_libs=yes
12115 # ldd complains unless libraries are executable
12116 postinstall_cmds='chmod +x $lib'
12117 ;;
12118
12119 sunos4*)
12120 version_type=sunos
12121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12122 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12123 shlibpath_var=LD_LIBRARY_PATH
12124 shlibpath_overrides_runpath=yes
12125 if test "$with_gnu_ld" = yes; then
12126 need_lib_prefix=no
12127 fi
12128 need_version=yes
12129 ;;
12130
12131 sysv4 | sysv4.3*)
12132 version_type=linux
12133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12134 soname_spec='${libname}${release}${shared_ext}$major'
12135 shlibpath_var=LD_LIBRARY_PATH
12136 case $host_vendor in
12137 sni)
12138 shlibpath_overrides_runpath=no
12139 need_lib_prefix=no
12140 runpath_var=LD_RUN_PATH
12141 ;;
12142 siemens)
12143 need_lib_prefix=no
12144 ;;
12145 motorola)
12146 need_lib_prefix=no
12147 need_version=no
12148 shlibpath_overrides_runpath=no
12149 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12150 ;;
12151 esac
12152 ;;
12153
12154 sysv4*MP*)
12155 if test -d /usr/nec ;then
12156 version_type=linux
12157 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12158 soname_spec='$libname${shared_ext}.$major'
12159 shlibpath_var=LD_LIBRARY_PATH
12160 fi
12161 ;;
12162
12163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12164 version_type=freebsd-elf
12165 need_lib_prefix=no
12166 need_version=no
12167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12168 soname_spec='${libname}${release}${shared_ext}$major'
12169 shlibpath_var=LD_LIBRARY_PATH
12170 shlibpath_overrides_runpath=yes
12171 hardcode_into_libs=yes
12172 if test "$with_gnu_ld" = yes; then
12173 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12174 else
12175 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12176 case $host_os in
12177 sco3.2v5*)
12178 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12179 ;;
12180 esac
12181 fi
12182 sys_lib_dlsearch_path_spec='/usr/lib'
12183 ;;
12184
12185 tpf*)
12186 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12187 version_type=linux
12188 need_lib_prefix=no
12189 need_version=no
12190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12191 shlibpath_var=LD_LIBRARY_PATH
12192 shlibpath_overrides_runpath=no
12193 hardcode_into_libs=yes
12194 ;;
12195
12196 uts4*)
12197 version_type=linux
12198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12199 soname_spec='${libname}${release}${shared_ext}$major'
12200 shlibpath_var=LD_LIBRARY_PATH
12201 ;;
12202
12203 *)
12204 dynamic_linker=no
12205 ;;
12206 esac
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12208 $as_echo "$dynamic_linker" >&6; }
12209 test "$dynamic_linker" = no && can_build_shared=no
12210
12211 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12212 if test "$GCC" = yes; then
12213 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12214 fi
12215
12216 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12217 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12218 fi
12219 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12220 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12221 fi
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12315 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12316 hardcode_action=
12317 if test -n "$hardcode_libdir_flag_spec" ||
12318 test -n "$runpath_var" ||
12319 test "X$hardcode_automatic" = "Xyes" ; then
12320
12321 # We can hardcode non-existent directories.
12322 if test "$hardcode_direct" != no &&
12323 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12324 # have to relink, otherwise we might link with an installed library
12325 # when we should be linking with a yet-to-be-installed one
12326 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12327 test "$hardcode_minus_L" != no; then
12328 # Linking always hardcodes the temporary library directory.
12329 hardcode_action=relink
12330 else
12331 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12332 hardcode_action=immediate
12333 fi
12334 else
12335 # We cannot hardcode anything, or else we can only hardcode existing
12336 # directories.
12337 hardcode_action=unsupported
12338 fi
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12340 $as_echo "$hardcode_action" >&6; }
12341
12342 if test "$hardcode_action" = relink ||
12343 test "$inherit_rpath" = yes; then
12344 # Fast installation is not supported
12345 enable_fast_install=no
12346 elif test "$shlibpath_overrides_runpath" = yes ||
12347 test "$enable_shared" = no; then
12348 # Fast installation is not necessary
12349 enable_fast_install=needless
12350 fi
12351
12352
12353
12354
12355
12356
12357 if test "x$enable_dlopen" != xyes; then
12358 enable_dlopen=unknown
12359 enable_dlopen_self=unknown
12360 enable_dlopen_self_static=unknown
12361 else
12362 lt_cv_dlopen=no
12363 lt_cv_dlopen_libs=
12364
12365 case $host_os in
12366 beos*)
12367 lt_cv_dlopen="load_add_on"
12368 lt_cv_dlopen_libs=
12369 lt_cv_dlopen_self=yes
12370 ;;
12371
12372 mingw* | pw32* | cegcc*)
12373 lt_cv_dlopen="LoadLibrary"
12374 lt_cv_dlopen_libs=
12375 ;;
12376
12377 cygwin*)
12378 lt_cv_dlopen="dlopen"
12379 lt_cv_dlopen_libs=
12380 ;;
12381
12382 darwin*)
12383 # if libdl is installed we need to link against it
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12385 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12386 if ${ac_cv_lib_dl_dlopen+:} false; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389 ac_check_lib_save_LIBS=$LIBS
12390 LIBS="-ldl $LIBS"
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12393
12394 /* Override any GCC internal prototype to avoid an error.
12395 Use char because int might match the return type of a GCC
12396 builtin and then its argument prototype would still apply. */
12397 #ifdef __cplusplus
12398 extern "C"
12399 #endif
12400 char dlopen ();
12401 int
12402 main ()
12403 {
12404 return dlopen ();
12405 ;
12406 return 0;
12407 }
12408 _ACEOF
12409 if ac_fn_c_try_link "$LINENO"; then :
12410 ac_cv_lib_dl_dlopen=yes
12411 else
12412 ac_cv_lib_dl_dlopen=no
12413 fi
12414 rm -f core conftest.err conftest.$ac_objext \
12415 conftest$ac_exeext conftest.$ac_ext
12416 LIBS=$ac_check_lib_save_LIBS
12417 fi
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12419 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12420 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12422 else
12423
12424 lt_cv_dlopen="dyld"
12425 lt_cv_dlopen_libs=
12426 lt_cv_dlopen_self=yes
12427
12428 fi
12429
12430 ;;
12431
12432 *)
12433 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12434 if test "x$ac_cv_func_shl_load" = xyes; then :
12435 lt_cv_dlopen="shl_load"
12436 else
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12438 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12439 if ${ac_cv_lib_dld_shl_load+:} false; then :
12440 $as_echo_n "(cached) " >&6
12441 else
12442 ac_check_lib_save_LIBS=$LIBS
12443 LIBS="-ldld $LIBS"
12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445 /* end confdefs.h. */
12446
12447 /* Override any GCC internal prototype to avoid an error.
12448 Use char because int might match the return type of a GCC
12449 builtin and then its argument prototype would still apply. */
12450 #ifdef __cplusplus
12451 extern "C"
12452 #endif
12453 char shl_load ();
12454 int
12455 main ()
12456 {
12457 return shl_load ();
12458 ;
12459 return 0;
12460 }
12461 _ACEOF
12462 if ac_fn_c_try_link "$LINENO"; then :
12463 ac_cv_lib_dld_shl_load=yes
12464 else
12465 ac_cv_lib_dld_shl_load=no
12466 fi
12467 rm -f core conftest.err conftest.$ac_objext \
12468 conftest$ac_exeext conftest.$ac_ext
12469 LIBS=$ac_check_lib_save_LIBS
12470 fi
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12472 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12473 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12474 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12475 else
12476 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12477 if test "x$ac_cv_func_dlopen" = xyes; then :
12478 lt_cv_dlopen="dlopen"
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12481 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12482 if ${ac_cv_lib_dl_dlopen+:} false; then :
12483 $as_echo_n "(cached) " >&6
12484 else
12485 ac_check_lib_save_LIBS=$LIBS
12486 LIBS="-ldl $LIBS"
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12489
12490 /* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply. */
12493 #ifdef __cplusplus
12494 extern "C"
12495 #endif
12496 char dlopen ();
12497 int
12498 main ()
12499 {
12500 return dlopen ();
12501 ;
12502 return 0;
12503 }
12504 _ACEOF
12505 if ac_fn_c_try_link "$LINENO"; then :
12506 ac_cv_lib_dl_dlopen=yes
12507 else
12508 ac_cv_lib_dl_dlopen=no
12509 fi
12510 rm -f core conftest.err conftest.$ac_objext \
12511 conftest$ac_exeext conftest.$ac_ext
12512 LIBS=$ac_check_lib_save_LIBS
12513 fi
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12515 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12516 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12517 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12518 else
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12520 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12521 if ${ac_cv_lib_svld_dlopen+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 ac_check_lib_save_LIBS=$LIBS
12525 LIBS="-lsvld $LIBS"
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12528
12529 /* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12532 #ifdef __cplusplus
12533 extern "C"
12534 #endif
12535 char dlopen ();
12536 int
12537 main ()
12538 {
12539 return dlopen ();
12540 ;
12541 return 0;
12542 }
12543 _ACEOF
12544 if ac_fn_c_try_link "$LINENO"; then :
12545 ac_cv_lib_svld_dlopen=yes
12546 else
12547 ac_cv_lib_svld_dlopen=no
12548 fi
12549 rm -f core conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12551 LIBS=$ac_check_lib_save_LIBS
12552 fi
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12554 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12555 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12556 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12557 else
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12559 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12560 if ${ac_cv_lib_dld_dld_link+:} false; then :
12561 $as_echo_n "(cached) " >&6
12562 else
12563 ac_check_lib_save_LIBS=$LIBS
12564 LIBS="-ldld $LIBS"
12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566 /* end confdefs.h. */
12567
12568 /* Override any GCC internal prototype to avoid an error.
12569 Use char because int might match the return type of a GCC
12570 builtin and then its argument prototype would still apply. */
12571 #ifdef __cplusplus
12572 extern "C"
12573 #endif
12574 char dld_link ();
12575 int
12576 main ()
12577 {
12578 return dld_link ();
12579 ;
12580 return 0;
12581 }
12582 _ACEOF
12583 if ac_fn_c_try_link "$LINENO"; then :
12584 ac_cv_lib_dld_dld_link=yes
12585 else
12586 ac_cv_lib_dld_dld_link=no
12587 fi
12588 rm -f core conftest.err conftest.$ac_objext \
12589 conftest$ac_exeext conftest.$ac_ext
12590 LIBS=$ac_check_lib_save_LIBS
12591 fi
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12593 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12594 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12595 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12596 fi
12597
12598
12599 fi
12600
12601
12602 fi
12603
12604
12605 fi
12606
12607
12608 fi
12609
12610
12611 fi
12612
12613 ;;
12614 esac
12615
12616 if test "x$lt_cv_dlopen" != xno; then
12617 enable_dlopen=yes
12618 else
12619 enable_dlopen=no
12620 fi
12621
12622 case $lt_cv_dlopen in
12623 dlopen)
12624 save_CPPFLAGS="$CPPFLAGS"
12625 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12626
12627 save_LDFLAGS="$LDFLAGS"
12628 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12629
12630 save_LIBS="$LIBS"
12631 LIBS="$lt_cv_dlopen_libs $LIBS"
12632
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12634 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12635 if ${lt_cv_dlopen_self+:} false; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 if test "$cross_compiling" = yes; then :
12639 lt_cv_dlopen_self=cross
12640 else
12641 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12642 lt_status=$lt_dlunknown
12643 cat > conftest.$ac_ext <<_LT_EOF
12644 #line 12644 "configure"
12645 #include "confdefs.h"
12646
12647 #if HAVE_DLFCN_H
12648 #include <dlfcn.h>
12649 #endif
12650
12651 #include <stdio.h>
12652
12653 #ifdef RTLD_GLOBAL
12654 # define LT_DLGLOBAL RTLD_GLOBAL
12655 #else
12656 # ifdef DL_GLOBAL
12657 # define LT_DLGLOBAL DL_GLOBAL
12658 # else
12659 # define LT_DLGLOBAL 0
12660 # endif
12661 #endif
12662
12663 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12664 find out it does not work in some platform. */
12665 #ifndef LT_DLLAZY_OR_NOW
12666 # ifdef RTLD_LAZY
12667 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12668 # else
12669 # ifdef DL_LAZY
12670 # define LT_DLLAZY_OR_NOW DL_LAZY
12671 # else
12672 # ifdef RTLD_NOW
12673 # define LT_DLLAZY_OR_NOW RTLD_NOW
12674 # else
12675 # ifdef DL_NOW
12676 # define LT_DLLAZY_OR_NOW DL_NOW
12677 # else
12678 # define LT_DLLAZY_OR_NOW 0
12679 # endif
12680 # endif
12681 # endif
12682 # endif
12683 #endif
12684
12685 /* When -fvisbility=hidden is used, assume the code has been annotated
12686 correspondingly for the symbols needed. */
12687 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12688 void fnord () __attribute__((visibility("default")));
12689 #endif
12690
12691 void fnord () { int i=42; }
12692 int main ()
12693 {
12694 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12695 int status = $lt_dlunknown;
12696
12697 if (self)
12698 {
12699 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12700 else
12701 {
12702 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12703 else puts (dlerror ());
12704 }
12705 /* dlclose (self); */
12706 }
12707 else
12708 puts (dlerror ());
12709
12710 return status;
12711 }
12712 _LT_EOF
12713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12714 (eval $ac_link) 2>&5
12715 ac_status=$?
12716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12717 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12718 (./conftest; exit; ) >&5 2>/dev/null
12719 lt_status=$?
12720 case x$lt_status in
12721 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12722 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12723 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12724 esac
12725 else :
12726 # compilation failed
12727 lt_cv_dlopen_self=no
12728 fi
12729 fi
12730 rm -fr conftest*
12731
12732
12733 fi
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12735 $as_echo "$lt_cv_dlopen_self" >&6; }
12736
12737 if test "x$lt_cv_dlopen_self" = xyes; then
12738 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12740 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12741 if ${lt_cv_dlopen_self_static+:} false; then :
12742 $as_echo_n "(cached) " >&6
12743 else
12744 if test "$cross_compiling" = yes; then :
12745 lt_cv_dlopen_self_static=cross
12746 else
12747 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12748 lt_status=$lt_dlunknown
12749 cat > conftest.$ac_ext <<_LT_EOF
12750 #line 12750 "configure"
12751 #include "confdefs.h"
12752
12753 #if HAVE_DLFCN_H
12754 #include <dlfcn.h>
12755 #endif
12756
12757 #include <stdio.h>
12758
12759 #ifdef RTLD_GLOBAL
12760 # define LT_DLGLOBAL RTLD_GLOBAL
12761 #else
12762 # ifdef DL_GLOBAL
12763 # define LT_DLGLOBAL DL_GLOBAL
12764 # else
12765 # define LT_DLGLOBAL 0
12766 # endif
12767 #endif
12768
12769 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12770 find out it does not work in some platform. */
12771 #ifndef LT_DLLAZY_OR_NOW
12772 # ifdef RTLD_LAZY
12773 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12774 # else
12775 # ifdef DL_LAZY
12776 # define LT_DLLAZY_OR_NOW DL_LAZY
12777 # else
12778 # ifdef RTLD_NOW
12779 # define LT_DLLAZY_OR_NOW RTLD_NOW
12780 # else
12781 # ifdef DL_NOW
12782 # define LT_DLLAZY_OR_NOW DL_NOW
12783 # else
12784 # define LT_DLLAZY_OR_NOW 0
12785 # endif
12786 # endif
12787 # endif
12788 # endif
12789 #endif
12790
12791 /* When -fvisbility=hidden is used, assume the code has been annotated
12792 correspondingly for the symbols needed. */
12793 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12794 void fnord () __attribute__((visibility("default")));
12795 #endif
12796
12797 void fnord () { int i=42; }
12798 int main ()
12799 {
12800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12801 int status = $lt_dlunknown;
12802
12803 if (self)
12804 {
12805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12806 else
12807 {
12808 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12809 else puts (dlerror ());
12810 }
12811 /* dlclose (self); */
12812 }
12813 else
12814 puts (dlerror ());
12815
12816 return status;
12817 }
12818 _LT_EOF
12819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12820 (eval $ac_link) 2>&5
12821 ac_status=$?
12822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12823 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12824 (./conftest; exit; ) >&5 2>/dev/null
12825 lt_status=$?
12826 case x$lt_status in
12827 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12828 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12829 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12830 esac
12831 else :
12832 # compilation failed
12833 lt_cv_dlopen_self_static=no
12834 fi
12835 fi
12836 rm -fr conftest*
12837
12838
12839 fi
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12841 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12842 fi
12843
12844 CPPFLAGS="$save_CPPFLAGS"
12845 LDFLAGS="$save_LDFLAGS"
12846 LIBS="$save_LIBS"
12847 ;;
12848 esac
12849
12850 case $lt_cv_dlopen_self in
12851 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12852 *) enable_dlopen_self=unknown ;;
12853 esac
12854
12855 case $lt_cv_dlopen_self_static in
12856 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12857 *) enable_dlopen_self_static=unknown ;;
12858 esac
12859 fi
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877 striplib=
12878 old_striplib=
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12880 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12881 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12882 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12883 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12885 $as_echo "yes" >&6; }
12886 else
12887 # FIXME - insert some real tests, host_os isn't really good enough
12888 case $host_os in
12889 darwin*)
12890 if test -n "$STRIP" ; then
12891 striplib="$STRIP -x"
12892 old_striplib="$STRIP -S"
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12894 $as_echo "yes" >&6; }
12895 else
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12897 $as_echo "no" >&6; }
12898 fi
12899 ;;
12900 *)
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12903 ;;
12904 esac
12905 fi
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918 # Report which library types will actually be built
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12920 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12922 $as_echo "$can_build_shared" >&6; }
12923
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12925 $as_echo_n "checking whether to build shared libraries... " >&6; }
12926 test "$can_build_shared" = "no" && enable_shared=no
12927
12928 # On AIX, shared libraries and static libraries use the same namespace, and
12929 # are all built from PIC.
12930 case $host_os in
12931 aix3*)
12932 test "$enable_shared" = yes && enable_static=no
12933 if test -n "$RANLIB"; then
12934 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12935 postinstall_cmds='$RANLIB $lib'
12936 fi
12937 ;;
12938
12939 aix[4-9]*)
12940 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12941 test "$enable_shared" = yes && enable_static=no
12942 fi
12943 ;;
12944 esac
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12946 $as_echo "$enable_shared" >&6; }
12947
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12949 $as_echo_n "checking whether to build static libraries... " >&6; }
12950 # Make sure either enable_shared or enable_static is yes.
12951 test "$enable_shared" = yes || enable_static=yes
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12953 $as_echo "$enable_static" >&6; }
12954
12955
12956
12957
12958 fi
12959 ac_ext=c
12960 ac_cpp='$CPP $CPPFLAGS'
12961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12964
12965 CC="$lt_save_CC"
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979 ac_config_commands="$ac_config_commands libtool"
12980
12981
12982
12983
12984 # Only expand once:
12985
12986
12987
12988
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
12990 $as_echo_n "checking for bind in -lsocket... " >&6; }
12991 if ${ac_cv_lib_socket_bind+:} false; then :
12992 $as_echo_n "(cached) " >&6
12993 else
12994 ac_check_lib_save_LIBS=$LIBS
12995 LIBS="-lsocket $LIBS"
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12998
12999 /* Override any GCC internal prototype to avoid an error.
13000 Use char because int might match the return type of a GCC
13001 builtin and then its argument prototype would still apply. */
13002 #ifdef __cplusplus
13003 extern "C"
13004 #endif
13005 char bind ();
13006 int
13007 main ()
13008 {
13009 return bind ();
13010 ;
13011 return 0;
13012 }
13013 _ACEOF
13014 if ac_fn_c_try_link "$LINENO"; then :
13015 ac_cv_lib_socket_bind=yes
13016 else
13017 ac_cv_lib_socket_bind=no
13018 fi
13019 rm -f core conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext conftest.$ac_ext
13021 LIBS=$ac_check_lib_save_LIBS
13022 fi
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
13024 $as_echo "$ac_cv_lib_socket_bind" >&6; }
13025 if test "x$ac_cv_lib_socket_bind" = xyes; then :
13026 cat >>confdefs.h <<_ACEOF
13027 #define HAVE_LIBSOCKET 1
13028 _ACEOF
13029
13030 LIBS="-lsocket $LIBS"
13031
13032 fi
13033
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13035 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13036 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
13037 $as_echo_n "(cached) " >&6
13038 else
13039 ac_check_lib_save_LIBS=$LIBS
13040 LIBS="-lnsl $LIBS"
13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13042 /* end confdefs.h. */
13043
13044 /* Override any GCC internal prototype to avoid an error.
13045 Use char because int might match the return type of a GCC
13046 builtin and then its argument prototype would still apply. */
13047 #ifdef __cplusplus
13048 extern "C"
13049 #endif
13050 char gethostbyname ();
13051 int
13052 main ()
13053 {
13054 return gethostbyname ();
13055 ;
13056 return 0;
13057 }
13058 _ACEOF
13059 if ac_fn_c_try_link "$LINENO"; then :
13060 ac_cv_lib_nsl_gethostbyname=yes
13061 else
13062 ac_cv_lib_nsl_gethostbyname=no
13063 fi
13064 rm -f core conftest.err conftest.$ac_objext \
13065 conftest$ac_exeext conftest.$ac_ext
13066 LIBS=$ac_check_lib_save_LIBS
13067 fi
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13069 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13070 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
13071 cat >>confdefs.h <<_ACEOF
13072 #define HAVE_LIBNSL 1
13073 _ACEOF
13074
13075 LIBS="-lnsl $LIBS"
13076
13077 fi
13078
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
13080 $as_echo_n "checking for fabs in -lm... " >&6; }
13081 if ${ac_cv_lib_m_fabs+:} false; then :
13082 $as_echo_n "(cached) " >&6
13083 else
13084 ac_check_lib_save_LIBS=$LIBS
13085 LIBS="-lm $LIBS"
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h. */
13088
13089 /* Override any GCC internal prototype to avoid an error.
13090 Use char because int might match the return type of a GCC
13091 builtin and then its argument prototype would still apply. */
13092 #ifdef __cplusplus
13093 extern "C"
13094 #endif
13095 char fabs ();
13096 int
13097 main ()
13098 {
13099 return fabs ();
13100 ;
13101 return 0;
13102 }
13103 _ACEOF
13104 if ac_fn_c_try_link "$LINENO"; then :
13105 ac_cv_lib_m_fabs=yes
13106 else
13107 ac_cv_lib_m_fabs=no
13108 fi
13109 rm -f core conftest.err conftest.$ac_objext \
13110 conftest$ac_exeext conftest.$ac_ext
13111 LIBS=$ac_check_lib_save_LIBS
13112 fi
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
13114 $as_echo "$ac_cv_lib_m_fabs" >&6; }
13115 if test "x$ac_cv_lib_m_fabs" = xyes; then :
13116 cat >>confdefs.h <<_ACEOF
13117 #define HAVE_LIBM 1
13118 _ACEOF
13119
13120 LIBS="-lm $LIBS"
13121
13122 fi
13123
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
13125 $as_echo_n "checking for log2 in -lm... " >&6; }
13126 if ${ac_cv_lib_m_log2+:} false; then :
13127 $as_echo_n "(cached) " >&6
13128 else
13129 ac_check_lib_save_LIBS=$LIBS
13130 LIBS="-lm $LIBS"
13131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h. */
13133
13134 /* Override any GCC internal prototype to avoid an error.
13135 Use char because int might match the return type of a GCC
13136 builtin and then its argument prototype would still apply. */
13137 #ifdef __cplusplus
13138 extern "C"
13139 #endif
13140 char log2 ();
13141 int
13142 main ()
13143 {
13144 return log2 ();
13145 ;
13146 return 0;
13147 }
13148 _ACEOF
13149 if ac_fn_c_try_link "$LINENO"; then :
13150 ac_cv_lib_m_log2=yes
13151 else
13152 ac_cv_lib_m_log2=no
13153 fi
13154 rm -f core conftest.err conftest.$ac_objext \
13155 conftest$ac_exeext conftest.$ac_ext
13156 LIBS=$ac_check_lib_save_LIBS
13157 fi
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
13159 $as_echo "$ac_cv_lib_m_log2" >&6; }
13160 if test "x$ac_cv_lib_m_log2" = xyes; then :
13161 cat >>confdefs.h <<_ACEOF
13162 #define HAVE_LIBM 1
13163 _ACEOF
13164
13165 LIBS="-lm $LIBS"
13166
13167 fi
13168
13169
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13171 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13172 if ${ac_cv_lib_dl_dlopen+:} false; then :
13173 $as_echo_n "(cached) " >&6
13174 else
13175 ac_check_lib_save_LIBS=$LIBS
13176 LIBS="-ldl $LIBS"
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13179
13180 /* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13183 #ifdef __cplusplus
13184 extern "C"
13185 #endif
13186 char dlopen ();
13187 int
13188 main ()
13189 {
13190 return dlopen ();
13191 ;
13192 return 0;
13193 }
13194 _ACEOF
13195 if ac_fn_c_try_link "$LINENO"; then :
13196 ac_cv_lib_dl_dlopen=yes
13197 else
13198 ac_cv_lib_dl_dlopen=no
13199 fi
13200 rm -f core conftest.err conftest.$ac_objext \
13201 conftest$ac_exeext conftest.$ac_ext
13202 LIBS=$ac_check_lib_save_LIBS
13203 fi
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13205 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13206 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13207 cat >>confdefs.h <<_ACEOF
13208 #define HAVE_LIBDL 1
13209 _ACEOF
13210
13211 LIBS="-ldl $LIBS"
13212
13213 fi
13214
13215 if test "${ac_cv_lib_dl_dlopen}" = "yes"; then
13216
13217 pkg_failed=no
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
13219 $as_echo_n "checking for sdl2... " >&6; }
13220
13221 if test -n "$SDL_CFLAGS"; then
13222 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13223 elif test -n "$PKG_CONFIG"; then
13224 if test -n "$PKG_CONFIG" && \
13225 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13226 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13227 ac_status=$?
13228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13229 test $ac_status = 0; }; then
13230 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
13231 test "x$?" != "x0" && pkg_failed=yes
13232 else
13233 pkg_failed=yes
13234 fi
13235 else
13236 pkg_failed=untried
13237 fi
13238 if test -n "$SDL_LIBS"; then
13239 pkg_cv_SDL_LIBS="$SDL_LIBS"
13240 elif test -n "$PKG_CONFIG"; then
13241 if test -n "$PKG_CONFIG" && \
13242 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13243 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13244 ac_status=$?
13245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13246 test $ac_status = 0; }; then
13247 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
13248 test "x$?" != "x0" && pkg_failed=yes
13249 else
13250 pkg_failed=yes
13251 fi
13252 else
13253 pkg_failed=untried
13254 fi
13255
13256 if test $pkg_failed = no; then
13257 pkg_save_LDFLAGS="$LDFLAGS"
13258 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13261
13262 int
13263 main ()
13264 {
13265
13266 ;
13267 return 0;
13268 }
13269 _ACEOF
13270 if ac_fn_c_try_link "$LINENO"; then :
13271
13272 else
13273 pkg_failed=yes
13274 fi
13275 rm -f core conftest.err conftest.$ac_objext \
13276 conftest$ac_exeext conftest.$ac_ext
13277 LDFLAGS=$pkg_save_LDFLAGS
13278 fi
13279
13280
13281
13282 if test $pkg_failed = yes; then
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284 $as_echo "no" >&6; }
13285
13286 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13287 _pkg_short_errors_supported=yes
13288 else
13289 _pkg_short_errors_supported=no
13290 fi
13291 if test $_pkg_short_errors_supported = yes; then
13292 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
13293 else
13294 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
13295 fi
13296 # Put the nasty error message in config.log where it belongs
13297 echo "$SDL_PKG_ERRORS" >&5
13298
13299
13300
13301 pkg_failed=no
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13303 $as_echo_n "checking for sdl... " >&6; }
13304
13305 if test -n "$SDL_CFLAGS"; then
13306 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13307 elif test -n "$PKG_CONFIG"; then
13308 if test -n "$PKG_CONFIG" && \
13309 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13310 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13311 ac_status=$?
13312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13313 test $ac_status = 0; }; then
13314 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13315 test "x$?" != "x0" && pkg_failed=yes
13316 else
13317 pkg_failed=yes
13318 fi
13319 else
13320 pkg_failed=untried
13321 fi
13322 if test -n "$SDL_LIBS"; then
13323 pkg_cv_SDL_LIBS="$SDL_LIBS"
13324 elif test -n "$PKG_CONFIG"; then
13325 if test -n "$PKG_CONFIG" && \
13326 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13327 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13328 ac_status=$?
13329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13330 test $ac_status = 0; }; then
13331 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13332 test "x$?" != "x0" && pkg_failed=yes
13333 else
13334 pkg_failed=yes
13335 fi
13336 else
13337 pkg_failed=untried
13338 fi
13339
13340 if test $pkg_failed = no; then
13341 pkg_save_LDFLAGS="$LDFLAGS"
13342 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13345
13346 int
13347 main ()
13348 {
13349
13350 ;
13351 return 0;
13352 }
13353 _ACEOF
13354 if ac_fn_c_try_link "$LINENO"; then :
13355
13356 else
13357 pkg_failed=yes
13358 fi
13359 rm -f core conftest.err conftest.$ac_objext \
13360 conftest$ac_exeext conftest.$ac_ext
13361 LDFLAGS=$pkg_save_LDFLAGS
13362 fi
13363
13364
13365
13366 if test $pkg_failed = yes; then
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 $as_echo "no" >&6; }
13369
13370 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13371 _pkg_short_errors_supported=yes
13372 else
13373 _pkg_short_errors_supported=no
13374 fi
13375 if test $_pkg_short_errors_supported = yes; then
13376 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13377 else
13378 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13379 fi
13380 # Put the nasty error message in config.log where it belongs
13381 echo "$SDL_PKG_ERRORS" >&5
13382
13383 :
13384 elif test $pkg_failed = untried; then
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13387 :
13388 else
13389 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13390 SDL_LIBS=$pkg_cv_SDL_LIBS
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13392 $as_echo "yes" >&6; }
13393 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13394 SDL_LIBS="-ldl"
13395
13396 fi
13397
13398 elif test $pkg_failed = untried; then
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400 $as_echo "no" >&6; }
13401
13402
13403 pkg_failed=no
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13405 $as_echo_n "checking for sdl... " >&6; }
13406
13407 if test -n "$SDL_CFLAGS"; then
13408 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13409 elif test -n "$PKG_CONFIG"; then
13410 if test -n "$PKG_CONFIG" && \
13411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13412 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13413 ac_status=$?
13414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13415 test $ac_status = 0; }; then
13416 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13417 test "x$?" != "x0" && pkg_failed=yes
13418 else
13419 pkg_failed=yes
13420 fi
13421 else
13422 pkg_failed=untried
13423 fi
13424 if test -n "$SDL_LIBS"; then
13425 pkg_cv_SDL_LIBS="$SDL_LIBS"
13426 elif test -n "$PKG_CONFIG"; then
13427 if test -n "$PKG_CONFIG" && \
13428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13429 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13430 ac_status=$?
13431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13432 test $ac_status = 0; }; then
13433 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13434 test "x$?" != "x0" && pkg_failed=yes
13435 else
13436 pkg_failed=yes
13437 fi
13438 else
13439 pkg_failed=untried
13440 fi
13441
13442 if test $pkg_failed = no; then
13443 pkg_save_LDFLAGS="$LDFLAGS"
13444 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13447
13448 int
13449 main ()
13450 {
13451
13452 ;
13453 return 0;
13454 }
13455 _ACEOF
13456 if ac_fn_c_try_link "$LINENO"; then :
13457
13458 else
13459 pkg_failed=yes
13460 fi
13461 rm -f core conftest.err conftest.$ac_objext \
13462 conftest$ac_exeext conftest.$ac_ext
13463 LDFLAGS=$pkg_save_LDFLAGS
13464 fi
13465
13466
13467
13468 if test $pkg_failed = yes; then
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13470 $as_echo "no" >&6; }
13471
13472 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13473 _pkg_short_errors_supported=yes
13474 else
13475 _pkg_short_errors_supported=no
13476 fi
13477 if test $_pkg_short_errors_supported = yes; then
13478 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13479 else
13480 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13481 fi
13482 # Put the nasty error message in config.log where it belongs
13483 echo "$SDL_PKG_ERRORS" >&5
13484
13485 :
13486 elif test $pkg_failed = untried; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13488 $as_echo "no" >&6; }
13489 :
13490 else
13491 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13492 SDL_LIBS=$pkg_cv_SDL_LIBS
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13494 $as_echo "yes" >&6; }
13495 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13496 SDL_LIBS="-ldl"
13497
13498 fi
13499
13500 else
13501 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13502 SDL_LIBS=$pkg_cv_SDL_LIBS
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13504 $as_echo "yes" >&6; }
13505 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
13506 SDL_LIBS="-ldl"
13507
13508 fi
13509 else
13510 SDL_CFLAGS=
13511 SDL_LIBS=
13512 fi
13513
13514
13515
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13517 $as_echo_n "checking for cygwin... " >&6; }
13518 if ${sim_cv_os_cygwin+:} false; then :
13519 $as_echo_n "(cached) " >&6
13520 else
13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h. */
13523
13524 #ifdef __CYGWIN__
13525 lose
13526 #endif
13527 _ACEOF
13528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13529 $EGREP "lose" >/dev/null 2>&1; then :
13530 sim_cv_os_cygwin=yes
13531 else
13532 sim_cv_os_cygwin=no
13533 fi
13534 rm -f conftest*
13535
13536 fi
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13538 $as_echo "$sim_cv_os_cygwin" >&6; }
13539
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13541 $as_echo_n "checking for library containing tgetent... " >&6; }
13542 if ${ac_cv_search_tgetent+:} false; then :
13543 $as_echo_n "(cached) " >&6
13544 else
13545 ac_func_search_save_LIBS=$LIBS
13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547 /* end confdefs.h. */
13548
13549 /* Override any GCC internal prototype to avoid an error.
13550 Use char because int might match the return type of a GCC
13551 builtin and then its argument prototype would still apply. */
13552 #ifdef __cplusplus
13553 extern "C"
13554 #endif
13555 char tgetent ();
13556 int
13557 main ()
13558 {
13559 return tgetent ();
13560 ;
13561 return 0;
13562 }
13563 _ACEOF
13564 for ac_lib in '' termcap tinfo curses ncurses; do
13565 if test -z "$ac_lib"; then
13566 ac_res="none required"
13567 else
13568 ac_res=-l$ac_lib
13569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13570 fi
13571 if ac_fn_c_try_link "$LINENO"; then :
13572 ac_cv_search_tgetent=$ac_res
13573 fi
13574 rm -f core conftest.err conftest.$ac_objext \
13575 conftest$ac_exeext
13576 if ${ac_cv_search_tgetent+:} false; then :
13577 break
13578 fi
13579 done
13580 if ${ac_cv_search_tgetent+:} false; then :
13581
13582 else
13583 ac_cv_search_tgetent=no
13584 fi
13585 rm conftest.$ac_ext
13586 LIBS=$ac_func_search_save_LIBS
13587 fi
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13589 $as_echo "$ac_cv_search_tgetent" >&6; }
13590 ac_res=$ac_cv_search_tgetent
13591 if test "$ac_res" != no; then :
13592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13593 TERMCAP_LIB=$ac_cv_search_tgetent
13594 else
13595 TERMCAP_LIB=""
13596 fi
13597
13598 if test x$sim_cv_os_cygwin = xyes; then
13599 TERMCAP_LIB="${TERMCAP_LIB} -luser32"
13600 fi
13601
13602
13603 if test -r ../readline/Makefile; then
13604 READLINE_LIB=../../readline/readline/libreadline.a
13605 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
13606 else
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13608 $as_echo_n "checking for readline in -lreadline... " >&6; }
13609 if ${ac_cv_lib_readline_readline+:} false; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612 ac_check_lib_save_LIBS=$LIBS
13613 LIBS="-lreadline $TERMCAP_LIB $LIBS"
13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13615 /* end confdefs.h. */
13616
13617 /* Override any GCC internal prototype to avoid an error.
13618 Use char because int might match the return type of a GCC
13619 builtin and then its argument prototype would still apply. */
13620 #ifdef __cplusplus
13621 extern "C"
13622 #endif
13623 char readline ();
13624 int
13625 main ()
13626 {
13627 return readline ();
13628 ;
13629 return 0;
13630 }
13631 _ACEOF
13632 if ac_fn_c_try_link "$LINENO"; then :
13633 ac_cv_lib_readline_readline=yes
13634 else
13635 ac_cv_lib_readline_readline=no
13636 fi
13637 rm -f core conftest.err conftest.$ac_objext \
13638 conftest$ac_exeext conftest.$ac_ext
13639 LIBS=$ac_check_lib_save_LIBS
13640 fi
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13642 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13643 if test "x$ac_cv_lib_readline_readline" = xyes; then :
13644 READLINE_LIB=-lreadline
13645 else
13646 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
13647 fi
13648
13649 READLINE_CFLAGS=
13650 fi
13651
13652
13653
13654
13655
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13657 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13658 # Check whether --enable-maintainer-mode was given.
13659 if test "${enable_maintainer_mode+set}" = set; then :
13660 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13661 else
13662 USE_MAINTAINER_MODE=no
13663 fi
13664
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13666 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13667 if test $USE_MAINTAINER_MODE = yes; then
13668 MAINTAINER_MODE_TRUE=
13669 MAINTAINER_MODE_FALSE='#'
13670 else
13671 MAINTAINER_MODE_TRUE='#'
13672 MAINTAINER_MODE_FALSE=
13673 fi
13674
13675 MAINT=$MAINTAINER_MODE_TRUE
13676
13677
13678 am__api_version='1.15'
13679
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13681 $as_echo_n "checking whether build environment is sane... " >&6; }
13682 # Reject unsafe characters in $srcdir or the absolute working directory
13683 # name. Accept space and tab only in the latter.
13684 am_lf='
13685 '
13686 case `pwd` in
13687 *[\\\"\#\$\&\'\`$am_lf]*)
13688 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13689 esac
13690 case $srcdir in
13691 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13692 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13693 esac
13694
13695 # Do 'set' in a subshell so we don't clobber the current shell's
13696 # arguments. Must try -L first in case configure is actually a
13697 # symlink; some systems play weird games with the mod time of symlinks
13698 # (eg FreeBSD returns the mod time of the symlink's containing
13699 # directory).
13700 if (
13701 am_has_slept=no
13702 for am_try in 1 2; do
13703 echo "timestamp, slept: $am_has_slept" > conftest.file
13704 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13705 if test "$*" = "X"; then
13706 # -L didn't work.
13707 set X `ls -t "$srcdir/configure" conftest.file`
13708 fi
13709 if test "$*" != "X $srcdir/configure conftest.file" \
13710 && test "$*" != "X conftest.file $srcdir/configure"; then
13711
13712 # If neither matched, then we have a broken ls. This can happen
13713 # if, for instance, CONFIG_SHELL is bash and it inherits a
13714 # broken ls alias from the environment. This has actually
13715 # happened. Such a system could not be considered "sane".
13716 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13717 alias in your environment" "$LINENO" 5
13718 fi
13719 if test "$2" = conftest.file || test $am_try -eq 2; then
13720 break
13721 fi
13722 # Just in case.
13723 sleep 1
13724 am_has_slept=yes
13725 done
13726 test "$2" = conftest.file
13727 )
13728 then
13729 # Ok.
13730 :
13731 else
13732 as_fn_error $? "newly created file is older than distributed files!
13733 Check your system clock" "$LINENO" 5
13734 fi
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13736 $as_echo "yes" >&6; }
13737 # If we didn't sleep, we still need to ensure time stamps of config.status and
13738 # generated files are strictly newer.
13739 am_sleep_pid=
13740 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13741 ( sleep 1 ) &
13742 am_sleep_pid=$!
13743 fi
13744
13745 rm -f conftest.file
13746
13747 if test x"${MISSING+set}" != xset; then
13748 case $am_aux_dir in
13749 *\ * | *\ *)
13750 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13751 *)
13752 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13753 esac
13754 fi
13755 # Use eval to expand $SHELL
13756 if eval "$MISSING --is-lightweight"; then
13757 am_missing_run="$MISSING "
13758 else
13759 am_missing_run=
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13761 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13762 fi
13763
13764 if test x"${install_sh+set}" != xset; then
13765 case $am_aux_dir in
13766 *\ * | *\ *)
13767 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13768 *)
13769 install_sh="\${SHELL} $am_aux_dir/install-sh"
13770 esac
13771 fi
13772
13773 # Installed binaries are usually stripped using 'strip' when the user
13774 # run "make install-strip". However 'strip' might not be the right
13775 # tool to use in cross-compilation environments, therefore Automake
13776 # will honor the 'STRIP' environment variable to overrule this program.
13777 if test "$cross_compiling" != no; then
13778 if test -n "$ac_tool_prefix"; then
13779 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13780 set dummy ${ac_tool_prefix}strip; ac_word=$2
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13782 $as_echo_n "checking for $ac_word... " >&6; }
13783 if ${ac_cv_prog_STRIP+:} false; then :
13784 $as_echo_n "(cached) " >&6
13785 else
13786 if test -n "$STRIP"; then
13787 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13788 else
13789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790 for as_dir in $PATH
13791 do
13792 IFS=$as_save_IFS
13793 test -z "$as_dir" && as_dir=.
13794 for ac_exec_ext in '' $ac_executable_extensions; do
13795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13796 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13798 break 2
13799 fi
13800 done
13801 done
13802 IFS=$as_save_IFS
13803
13804 fi
13805 fi
13806 STRIP=$ac_cv_prog_STRIP
13807 if test -n "$STRIP"; then
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13809 $as_echo "$STRIP" >&6; }
13810 else
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13812 $as_echo "no" >&6; }
13813 fi
13814
13815
13816 fi
13817 if test -z "$ac_cv_prog_STRIP"; then
13818 ac_ct_STRIP=$STRIP
13819 # Extract the first word of "strip", so it can be a program name with args.
13820 set dummy strip; ac_word=$2
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13822 $as_echo_n "checking for $ac_word... " >&6; }
13823 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13824 $as_echo_n "(cached) " >&6
13825 else
13826 if test -n "$ac_ct_STRIP"; then
13827 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13828 else
13829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $PATH
13831 do
13832 IFS=$as_save_IFS
13833 test -z "$as_dir" && as_dir=.
13834 for ac_exec_ext in '' $ac_executable_extensions; do
13835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13836 ac_cv_prog_ac_ct_STRIP="strip"
13837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13838 break 2
13839 fi
13840 done
13841 done
13842 IFS=$as_save_IFS
13843
13844 fi
13845 fi
13846 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13847 if test -n "$ac_ct_STRIP"; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13849 $as_echo "$ac_ct_STRIP" >&6; }
13850 else
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13852 $as_echo "no" >&6; }
13853 fi
13854
13855 if test "x$ac_ct_STRIP" = x; then
13856 STRIP=":"
13857 else
13858 case $cross_compiling:$ac_tool_warned in
13859 yes:)
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13862 ac_tool_warned=yes ;;
13863 esac
13864 STRIP=$ac_ct_STRIP
13865 fi
13866 else
13867 STRIP="$ac_cv_prog_STRIP"
13868 fi
13869
13870 fi
13871 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13872
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13874 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13875 if test -z "$MKDIR_P"; then
13876 if ${ac_cv_path_mkdir+:} false; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13880 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13881 do
13882 IFS=$as_save_IFS
13883 test -z "$as_dir" && as_dir=.
13884 for ac_prog in mkdir gmkdir; do
13885 for ac_exec_ext in '' $ac_executable_extensions; do
13886 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13887 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13888 'mkdir (GNU coreutils) '* | \
13889 'mkdir (coreutils) '* | \
13890 'mkdir (fileutils) '4.1*)
13891 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13892 break 3;;
13893 esac
13894 done
13895 done
13896 done
13897 IFS=$as_save_IFS
13898
13899 fi
13900
13901 test -d ./--version && rmdir ./--version
13902 if test "${ac_cv_path_mkdir+set}" = set; then
13903 MKDIR_P="$ac_cv_path_mkdir -p"
13904 else
13905 # As a last resort, use the slow shell script. Don't cache a
13906 # value for MKDIR_P within a source directory, because that will
13907 # break other packages using the cache if that directory is
13908 # removed, or if the value is a relative name.
13909 MKDIR_P="$ac_install_sh -d"
13910 fi
13911 fi
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13913 $as_echo "$MKDIR_P" >&6; }
13914
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13916 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13917 set x ${MAKE-make}
13918 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13919 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13920 $as_echo_n "(cached) " >&6
13921 else
13922 cat >conftest.make <<\_ACEOF
13923 SHELL = /bin/sh
13924 all:
13925 @echo '@@@%%%=$(MAKE)=@@@%%%'
13926 _ACEOF
13927 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13928 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13929 *@@@%%%=?*=@@@%%%*)
13930 eval ac_cv_prog_make_${ac_make}_set=yes;;
13931 *)
13932 eval ac_cv_prog_make_${ac_make}_set=no;;
13933 esac
13934 rm -f conftest.make
13935 fi
13936 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13938 $as_echo "yes" >&6; }
13939 SET_MAKE=
13940 else
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13942 $as_echo "no" >&6; }
13943 SET_MAKE="MAKE=${MAKE-make}"
13944 fi
13945
13946 rm -rf .tst 2>/dev/null
13947 mkdir .tst 2>/dev/null
13948 if test -d .tst; then
13949 am__leading_dot=.
13950 else
13951 am__leading_dot=_
13952 fi
13953 rmdir .tst 2>/dev/null
13954
13955 DEPDIR="${am__leading_dot}deps"
13956
13957 ac_config_commands="$ac_config_commands depfiles"
13958
13959
13960 am_make=${MAKE-make}
13961 cat > confinc << 'END'
13962 am__doit:
13963 @echo this is the am__doit target
13964 .PHONY: am__doit
13965 END
13966 # If we don't find an include directive, just comment out the code.
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13968 $as_echo_n "checking for style of include used by $am_make... " >&6; }
13969 am__include="#"
13970 am__quote=
13971 _am_result=none
13972 # First try GNU make style include.
13973 echo "include confinc" > confmf
13974 # Ignore all kinds of additional output from 'make'.
13975 case `$am_make -s -f confmf 2> /dev/null` in #(
13976 *the\ am__doit\ target*)
13977 am__include=include
13978 am__quote=
13979 _am_result=GNU
13980 ;;
13981 esac
13982 # Now try BSD make style include.
13983 if test "$am__include" = "#"; then
13984 echo '.include "confinc"' > confmf
13985 case `$am_make -s -f confmf 2> /dev/null` in #(
13986 *the\ am__doit\ target*)
13987 am__include=.include
13988 am__quote="\""
13989 _am_result=BSD
13990 ;;
13991 esac
13992 fi
13993
13994
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13996 $as_echo "$_am_result" >&6; }
13997 rm -f confinc confmf
13998
13999 # Check whether --enable-dependency-tracking was given.
14000 if test "${enable_dependency_tracking+set}" = set; then :
14001 enableval=$enable_dependency_tracking;
14002 fi
14003
14004 if test "x$enable_dependency_tracking" != xno; then
14005 am_depcomp="$ac_aux_dir/depcomp"
14006 AMDEPBACKSLASH='\'
14007 am__nodep='_no'
14008 fi
14009 if test "x$enable_dependency_tracking" != xno; then
14010 AMDEP_TRUE=
14011 AMDEP_FALSE='#'
14012 else
14013 AMDEP_TRUE='#'
14014 AMDEP_FALSE=
14015 fi
14016
14017
14018 # Check whether --enable-silent-rules was given.
14019 if test "${enable_silent_rules+set}" = set; then :
14020 enableval=$enable_silent_rules;
14021 fi
14022
14023 case $enable_silent_rules in # (((
14024 yes) AM_DEFAULT_VERBOSITY=0;;
14025 no) AM_DEFAULT_VERBOSITY=1;;
14026 *) AM_DEFAULT_VERBOSITY=1;;
14027 esac
14028 am_make=${MAKE-make}
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14030 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14031 if ${am_cv_make_support_nested_variables+:} false; then :
14032 $as_echo_n "(cached) " >&6
14033 else
14034 if $as_echo 'TRUE=$(BAR$(V))
14035 BAR0=false
14036 BAR1=true
14037 V=1
14038 am__doit:
14039 @$(TRUE)
14040 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14041 am_cv_make_support_nested_variables=yes
14042 else
14043 am_cv_make_support_nested_variables=no
14044 fi
14045 fi
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14047 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14048 if test $am_cv_make_support_nested_variables = yes; then
14049 AM_V='$(V)'
14050 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14051 else
14052 AM_V=$AM_DEFAULT_VERBOSITY
14053 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14054 fi
14055 AM_BACKSLASH='\'
14056
14057 if test "`cd $srcdir && pwd`" != "`pwd`"; then
14058 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14059 # is not polluted with repeated "-I."
14060 am__isrc=' -I$(srcdir)'
14061 # test to see if srcdir already configured
14062 if test -f $srcdir/config.status; then
14063 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14064 fi
14065 fi
14066
14067 # test whether we have cygpath
14068 if test -z "$CYGPATH_W"; then
14069 if (cygpath --version) >/dev/null 2>/dev/null; then
14070 CYGPATH_W='cygpath -w'
14071 else
14072 CYGPATH_W=echo
14073 fi
14074 fi
14075
14076
14077 # Define the identity of the package.
14078 PACKAGE='sim'
14079 VERSION='0'
14080
14081
14082 cat >>confdefs.h <<_ACEOF
14083 #define PACKAGE "$PACKAGE"
14084 _ACEOF
14085
14086
14087 cat >>confdefs.h <<_ACEOF
14088 #define VERSION "$VERSION"
14089 _ACEOF
14090
14091 # Some tools Automake needs.
14092
14093 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14094
14095
14096 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
14097
14098
14099 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14100
14101
14102 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
14103
14104
14105 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
14106
14107 # For better backward compatibility. To be removed once Automake 1.9.x
14108 # dies out for good. For more background, see:
14109 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
14110 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
14111 mkdir_p='$(MKDIR_P)'
14112
14113 # We need awk for the "check" target (and possibly the TAP driver). The
14114 # system "awk" is bad on some platforms.
14115 # Always define AMTAR for backward compatibility. Yes, it's still used
14116 # in the wild :-( We should find a proper way to deprecate it ...
14117 AMTAR='$${TAR-tar}'
14118
14119
14120 # We'll loop over all known methods to create a tar archive until one works.
14121 _am_tools='gnutar pax cpio none'
14122
14123 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
14124
14125
14126
14127
14128
14129 depcc="$CC" am_compiler_list=
14130
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14132 $as_echo_n "checking dependency style of $depcc... " >&6; }
14133 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14134 $as_echo_n "(cached) " >&6
14135 else
14136 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14137 # We make a subdir and do the tests there. Otherwise we can end up
14138 # making bogus files that we don't know about and never remove. For
14139 # instance it was reported that on HP-UX the gcc test will end up
14140 # making a dummy file named 'D' -- because '-MD' means "put the output
14141 # in D".
14142 rm -rf conftest.dir
14143 mkdir conftest.dir
14144 # Copy depcomp to subdir because otherwise we won't find it if we're
14145 # using a relative directory.
14146 cp "$am_depcomp" conftest.dir
14147 cd conftest.dir
14148 # We will build objects and dependencies in a subdirectory because
14149 # it helps to detect inapplicable dependency modes. For instance
14150 # both Tru64's cc and ICC support -MD to output dependencies as a
14151 # side effect of compilation, but ICC will put the dependencies in
14152 # the current directory while Tru64 will put them in the object
14153 # directory.
14154 mkdir sub
14155
14156 am_cv_CC_dependencies_compiler_type=none
14157 if test "$am_compiler_list" = ""; then
14158 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14159 fi
14160 am__universal=false
14161 case " $depcc " in #(
14162 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14163 esac
14164
14165 for depmode in $am_compiler_list; do
14166 # Setup a source with many dependencies, because some compilers
14167 # like to wrap large dependency lists on column 80 (with \), and
14168 # we should not choose a depcomp mode which is confused by this.
14169 #
14170 # We need to recreate these files for each test, as the compiler may
14171 # overwrite some of them when testing with obscure command lines.
14172 # This happens at least with the AIX C compiler.
14173 : > sub/conftest.c
14174 for i in 1 2 3 4 5 6; do
14175 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14176 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14177 # Solaris 10 /bin/sh.
14178 echo '/* dummy */' > sub/conftst$i.h
14179 done
14180 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14181
14182 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14183 # mode. It turns out that the SunPro C++ compiler does not properly
14184 # handle '-M -o', and we need to detect this. Also, some Intel
14185 # versions had trouble with output in subdirs.
14186 am__obj=sub/conftest.${OBJEXT-o}
14187 am__minus_obj="-o $am__obj"
14188 case $depmode in
14189 gcc)
14190 # This depmode causes a compiler race in universal mode.
14191 test "$am__universal" = false || continue
14192 ;;
14193 nosideeffect)
14194 # After this tag, mechanisms are not by side-effect, so they'll
14195 # only be used when explicitly requested.
14196 if test "x$enable_dependency_tracking" = xyes; then
14197 continue
14198 else
14199 break
14200 fi
14201 ;;
14202 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14203 # This compiler won't grok '-c -o', but also, the minuso test has
14204 # not run yet. These depmodes are late enough in the game, and
14205 # so weak that their functioning should not be impacted.
14206 am__obj=conftest.${OBJEXT-o}
14207 am__minus_obj=
14208 ;;
14209 none) break ;;
14210 esac
14211 if depmode=$depmode \
14212 source=sub/conftest.c object=$am__obj \
14213 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14214 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14215 >/dev/null 2>conftest.err &&
14216 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14217 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14218 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14219 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14220 # icc doesn't choke on unknown options, it will just issue warnings
14221 # or remarks (even with -Werror). So we grep stderr for any message
14222 # that says an option was ignored or not supported.
14223 # When given -MP, icc 7.0 and 7.1 complain thusly:
14224 # icc: Command line warning: ignoring option '-M'; no argument required
14225 # The diagnosis changed in icc 8.0:
14226 # icc: Command line remark: option '-MP' not supported
14227 if (grep 'ignoring option' conftest.err ||
14228 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14229 am_cv_CC_dependencies_compiler_type=$depmode
14230 break
14231 fi
14232 fi
14233 done
14234
14235 cd ..
14236 rm -rf conftest.dir
14237 else
14238 am_cv_CC_dependencies_compiler_type=none
14239 fi
14240
14241 fi
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14243 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14244 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14245
14246 if
14247 test "x$enable_dependency_tracking" != xno \
14248 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14249 am__fastdepCC_TRUE=
14250 am__fastdepCC_FALSE='#'
14251 else
14252 am__fastdepCC_TRUE='#'
14253 am__fastdepCC_FALSE=
14254 fi
14255
14256
14257
14258 # POSIX will say in a future version that running "rm -f" with no argument
14259 # is OK; and we want to be able to make that assumption in our Makefile
14260 # recipes. So use an aggressive probe to check that the usage we want is
14261 # actually supported "in the wild" to an acceptable degree.
14262 # See automake bug#10828.
14263 # To make any issue more visible, cause the running configure to be aborted
14264 # by default if the 'rm' program in use doesn't match our expectations; the
14265 # user can still override this though.
14266 if rm -f && rm -fr && rm -rf; then : OK; else
14267 cat >&2 <<'END'
14268 Oops!
14269
14270 Your 'rm' program seems unable to run without file operands specified
14271 on the command line, even when the '-f' option is present. This is contrary
14272 to the behaviour of most rm programs out there, and not conforming with
14273 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
14274
14275 Please tell bug-automake@gnu.org about your system, including the value
14276 of your $PATH and any error possibly output before this message. This
14277 can help us improve future automake versions.
14278
14279 END
14280 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
14281 echo 'Configuration will proceed anyway, since you have set the' >&2
14282 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
14283 echo >&2
14284 else
14285 cat >&2 <<'END'
14286 Aborting the configuration process, to ensure you take notice of the issue.
14287
14288 You can download and install GNU coreutils to get an 'rm' implementation
14289 that behaves properly: <http://www.gnu.org/software/coreutils/>.
14290
14291 If you want to complete the configuration process using your problematic
14292 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14293 to "yes", and re-run configure.
14294
14295 END
14296 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
14297 fi
14298 fi
14299
14300 # Check whether --enable-silent-rules was given.
14301 if test "${enable_silent_rules+set}" = set; then :
14302 enableval=$enable_silent_rules;
14303 fi
14304
14305 case $enable_silent_rules in # (((
14306 yes) AM_DEFAULT_VERBOSITY=0;;
14307 no) AM_DEFAULT_VERBOSITY=1;;
14308 *) AM_DEFAULT_VERBOSITY=0;;
14309 esac
14310 am_make=${MAKE-make}
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14312 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14313 if ${am_cv_make_support_nested_variables+:} false; then :
14314 $as_echo_n "(cached) " >&6
14315 else
14316 if $as_echo 'TRUE=$(BAR$(V))
14317 BAR0=false
14318 BAR1=true
14319 V=1
14320 am__doit:
14321 @$(TRUE)
14322 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14323 am_cv_make_support_nested_variables=yes
14324 else
14325 am_cv_make_support_nested_variables=no
14326 fi
14327 fi
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14329 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14330 if test $am_cv_make_support_nested_variables = yes; then
14331 AM_V='$(V)'
14332 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14333 else
14334 AM_V=$AM_DEFAULT_VERBOSITY
14335 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14336 fi
14337 AM_BACKSLASH='\'
14338
14339
14340 # If a cpu ever has more than one simulator to choose from, use
14341 # --enable-sim=... to choose.
14342 # Check whether --enable-sim was given.
14343 if test "${enable_sim+set}" = set; then :
14344 enableval=$enable_sim; case "${enableval}" in
14345 yes | no) ;;
14346 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
14347 esac
14348 fi
14349
14350
14351 # Check whether --enable-example-sims was given.
14352 if test "${enable_example_sims+set}" = set; then :
14353 enableval=$enable_example_sims;
14354 fi
14355
14356
14357 # Check whether --enable-targets was given.
14358 if test "${enable_targets+set}" = set; then :
14359 enableval=$enable_targets; case "${enableval}" in
14360 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
14361 ;;
14362 no) enable_targets= ;;
14363 *) enable_targets=$enableval ;;
14364 esac
14365 fi
14366
14367
14368 SIM_PRIMARY_TARGET=
14369
14370
14371 SIM_SUBDIRS=
14372
14373
14374 SIM_COMMON_BUILD_TRUE=
14375 SIM_COMMON_BUILD_FALSE='#'
14376
14377
14378
14379 ac_config_files="$ac_config_files Make-common.sim:common/Make-common.in"
14380
14381
14382
14383
14384 if test "${enable_sim}" != no; then
14385 sim_igen=no
14386 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
14387 do
14388 sim_enable_arch_aarch64=false
14389 case "${targ}" in
14390 all|aarch64*-*-*)
14391 if test "${targ}" = "${target}"; then
14392 SIM_PRIMARY_TARGET=aarch64
14393 fi
14394 ac_config_files="$ac_config_files aarch64/Makefile.sim:aarch64/Makefile.in"
14395
14396 ac_config_commands="$ac_config_commands aarch64/Makefile"
14397
14398 as_fn_append SIM_SUBDIRS " aarch64"
14399
14400 ac_config_commands="$ac_config_commands depdir-aarch64"
14401
14402
14403 sim_enable_arch_aarch64=true
14404
14405 ;;
14406 esac
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14408 $as_echo_n "checking where to find the target cc... " >&6; }
14409 if test "x${build}" != "x${host}" ; then
14410 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14411 # We already found the complete path
14412 ac_dir=`dirname $CC_FOR_TARGET`
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14414 $as_echo "pre-installed in $ac_dir" >&6; }
14415 else
14416 # Canadian cross, just use what we found
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14418 $as_echo "pre-installed" >&6; }
14419 fi
14420 else
14421 ok=yes
14422 case " ${configdirs} " in
14423 *" ${target_alias}-gcc "*) ;;
14424 *) ok=no ;;
14425 esac
14426
14427 if test $ok = yes; then
14428 # An in-tree tool is available and we can use it
14429 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc'
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14431 $as_echo "just compiled" >&6; }
14432 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14433 # We already found the complete path
14434 ac_dir=`dirname $CC_FOR_TARGET`
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14436 $as_echo "pre-installed in $ac_dir" >&6; }
14437 elif test "x$target" = "x$host"; then
14438 # We can use an host tool
14439 CC_FOR_TARGET='$(CC)'
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14441 $as_echo "host tool" >&6; }
14442 else
14443 # We need a cross tool
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14445 $as_echo "pre-installed" >&6; }
14446 fi
14447 fi
14448
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14450 $as_echo_n "checking where to find the target as... " >&6; }
14451 if test "x${build}" != "x${host}" ; then
14452 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14453 # We already found the complete path
14454 ac_dir=`dirname $AS_FOR_TARGET`
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14456 $as_echo "pre-installed in $ac_dir" >&6; }
14457 else
14458 # Canadian cross, just use what we found
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14460 $as_echo "pre-installed" >&6; }
14461 fi
14462 else
14463 ok=yes
14464 case " ${configdirs} " in
14465 *" \$(abs_builddir) "*) ;;
14466 *) ok=no ;;
14467 esac
14468
14469 if test $ok = yes; then
14470 # An in-tree tool is available and we can use it
14471 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new'
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14473 $as_echo "just compiled" >&6; }
14474 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14475 # We already found the complete path
14476 ac_dir=`dirname $AS_FOR_TARGET`
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14478 $as_echo "pre-installed in $ac_dir" >&6; }
14479 elif test "x$target" = "x$host"; then
14480 # We can use an host tool
14481 AS_FOR_TARGET='$(AS)'
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14483 $as_echo "host tool" >&6; }
14484 else
14485 # We need a cross tool
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14487 $as_echo "pre-installed" >&6; }
14488 fi
14489 fi
14490
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14492 $as_echo_n "checking where to find the target ld... " >&6; }
14493 if test "x${build}" != "x${host}" ; then
14494 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14495 # We already found the complete path
14496 ac_dir=`dirname $LD_FOR_TARGET`
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14498 $as_echo "pre-installed in $ac_dir" >&6; }
14499 else
14500 # Canadian cross, just use what we found
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14502 $as_echo "pre-installed" >&6; }
14503 fi
14504 else
14505 ok=yes
14506 case " ${configdirs} " in
14507 *" \$(abs_builddir) "*) ;;
14508 *) ok=no ;;
14509 esac
14510
14511 if test $ok = yes; then
14512 # An in-tree tool is available and we can use it
14513 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new'
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14515 $as_echo "just compiled" >&6; }
14516 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14517 # We already found the complete path
14518 ac_dir=`dirname $LD_FOR_TARGET`
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14520 $as_echo "pre-installed in $ac_dir" >&6; }
14521 elif test "x$target" = "x$host"; then
14522 # We can use an host tool
14523 LD_FOR_TARGET='$(LD)'
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14525 $as_echo "host tool" >&6; }
14526 else
14527 # We need a cross tool
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14529 $as_echo "pre-installed" >&6; }
14530 fi
14531 fi
14532
14533
14534
14535
14536
14537
14538 if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
14539 : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
14540 : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
14541 : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
14542
14543 fi
14544
14545 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
14546
14547 if ${sim_enable_arch_aarch64}; then
14548 SIM_ENABLE_ARCH_aarch64_TRUE=
14549 SIM_ENABLE_ARCH_aarch64_FALSE='#'
14550 else
14551 SIM_ENABLE_ARCH_aarch64_TRUE='#'
14552 SIM_ENABLE_ARCH_aarch64_FALSE=
14553 fi
14554
14555
14556 sim_enable_arch_arm=false
14557 case "${targ}" in
14558 all|arm*-*-*)
14559 if test "${targ}" = "${target}"; then
14560 SIM_PRIMARY_TARGET=arm
14561 fi
14562 ac_config_files="$ac_config_files arm/Makefile.sim:arm/Makefile.in"
14563
14564 ac_config_commands="$ac_config_commands arm/Makefile"
14565
14566 as_fn_append SIM_SUBDIRS " arm"
14567
14568 ac_config_commands="$ac_config_commands depdir-arm"
14569
14570
14571 sim_enable_arch_arm=true
14572
14573 ;;
14574 esac
14575
14576
14577
14578
14579 if test "$SIM_PRIMARY_TARGET" = "arm"; then :
14580 : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}"
14581 : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}"
14582 : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}"
14583
14584 fi
14585
14586 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM"
14587
14588 if ${sim_enable_arch_arm}; then
14589 SIM_ENABLE_ARCH_arm_TRUE=
14590 SIM_ENABLE_ARCH_arm_FALSE='#'
14591 else
14592 SIM_ENABLE_ARCH_arm_TRUE='#'
14593 SIM_ENABLE_ARCH_arm_FALSE=
14594 fi
14595
14596
14597 sim_enable_arch_avr=false
14598 case "${targ}" in
14599 all|avr*-*-*)
14600 if test "${targ}" = "${target}"; then
14601 SIM_PRIMARY_TARGET=avr
14602 fi
14603 ac_config_files="$ac_config_files avr/Makefile.sim:avr/Makefile.in"
14604
14605 ac_config_commands="$ac_config_commands avr/Makefile"
14606
14607 as_fn_append SIM_SUBDIRS " avr"
14608
14609 ac_config_commands="$ac_config_commands depdir-avr"
14610
14611
14612 sim_enable_arch_avr=true
14613
14614 ;;
14615 esac
14616
14617
14618
14619
14620 if test "$SIM_PRIMARY_TARGET" = "avr"; then :
14621 : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
14622 : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
14623 : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
14624
14625 fi
14626
14627 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
14628
14629 if ${sim_enable_arch_avr}; then
14630 SIM_ENABLE_ARCH_avr_TRUE=
14631 SIM_ENABLE_ARCH_avr_FALSE='#'
14632 else
14633 SIM_ENABLE_ARCH_avr_TRUE='#'
14634 SIM_ENABLE_ARCH_avr_FALSE=
14635 fi
14636
14637
14638 sim_enable_arch_bfin=false
14639 case "${targ}" in
14640 all|bfin-*-*)
14641 if test "${targ}" = "${target}"; then
14642 SIM_PRIMARY_TARGET=bfin
14643 fi
14644 ac_config_files="$ac_config_files bfin/Makefile.sim:bfin/Makefile.in"
14645
14646 ac_config_commands="$ac_config_commands bfin/Makefile"
14647
14648 as_fn_append SIM_SUBDIRS " bfin"
14649
14650 ac_config_commands="$ac_config_commands depdir-bfin"
14651
14652
14653 sim_enable_arch_bfin=true
14654
14655 ;;
14656 esac
14657
14658
14659
14660
14661 if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
14662 : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
14663 : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
14664 : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
14665
14666 fi
14667
14668 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
14669
14670 if ${sim_enable_arch_bfin}; then
14671 SIM_ENABLE_ARCH_bfin_TRUE=
14672 SIM_ENABLE_ARCH_bfin_FALSE='#'
14673 else
14674 SIM_ENABLE_ARCH_bfin_TRUE='#'
14675 SIM_ENABLE_ARCH_bfin_FALSE=
14676 fi
14677
14678
14679 sim_enable_arch_bpf=false
14680 case "${targ}" in
14681 all|bpf-*-*)
14682 if test "${targ}" = "${target}"; then
14683 SIM_PRIMARY_TARGET=bpf
14684 fi
14685
14686
14687 subdirs="$subdirs bpf"
14688
14689
14690 ac_config_commands="$ac_config_commands depdir-bpf"
14691
14692
14693 sim_enable_arch_bpf=true
14694
14695 ;;
14696 esac
14697
14698
14699
14700
14701 if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
14702 : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
14703 : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
14704 : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
14705
14706 fi
14707
14708 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
14709
14710 if ${sim_enable_arch_bpf}; then
14711 SIM_ENABLE_ARCH_bpf_TRUE=
14712 SIM_ENABLE_ARCH_bpf_FALSE='#'
14713 else
14714 SIM_ENABLE_ARCH_bpf_TRUE='#'
14715 SIM_ENABLE_ARCH_bpf_FALSE=
14716 fi
14717
14718
14719 sim_enable_arch_cr16=false
14720 case "${targ}" in
14721 all|cr16*-*-*)
14722 if test "${targ}" = "${target}"; then
14723 SIM_PRIMARY_TARGET=cr16
14724 fi
14725 ac_config_files="$ac_config_files cr16/Makefile.sim:cr16/Makefile.in"
14726
14727 ac_config_commands="$ac_config_commands cr16/Makefile"
14728
14729 as_fn_append SIM_SUBDIRS " cr16"
14730
14731 ac_config_commands="$ac_config_commands depdir-cr16"
14732
14733
14734 sim_enable_arch_cr16=true
14735
14736 ;;
14737 esac
14738
14739
14740
14741
14742 if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
14743 : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
14744 : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
14745 : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
14746
14747 fi
14748
14749 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
14750
14751 if ${sim_enable_arch_cr16}; then
14752 SIM_ENABLE_ARCH_cr16_TRUE=
14753 SIM_ENABLE_ARCH_cr16_FALSE='#'
14754 else
14755 SIM_ENABLE_ARCH_cr16_TRUE='#'
14756 SIM_ENABLE_ARCH_cr16_FALSE=
14757 fi
14758
14759
14760 sim_enable_arch_cris=false
14761 case "${targ}" in
14762 all|cris-*-* | crisv32-*-*)
14763 if test "${targ}" = "${target}"; then
14764 SIM_PRIMARY_TARGET=cris
14765 fi
14766 ac_config_files="$ac_config_files cris/Makefile.sim:cris/Makefile.in"
14767
14768 ac_config_commands="$ac_config_commands cris/Makefile"
14769
14770 as_fn_append SIM_SUBDIRS " cris"
14771
14772 ac_config_commands="$ac_config_commands depdir-cris"
14773
14774
14775 sim_enable_arch_cris=true
14776
14777 ;;
14778 esac
14779
14780
14781
14782
14783 if test "$SIM_PRIMARY_TARGET" = "cris"; then :
14784 : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
14785 : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
14786 : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
14787
14788 fi
14789
14790 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
14791
14792 if ${sim_enable_arch_cris}; then
14793 SIM_ENABLE_ARCH_cris_TRUE=
14794 SIM_ENABLE_ARCH_cris_FALSE='#'
14795 else
14796 SIM_ENABLE_ARCH_cris_TRUE='#'
14797 SIM_ENABLE_ARCH_cris_FALSE=
14798 fi
14799
14800
14801 sim_enable_arch_d10v=false
14802 case "${targ}" in
14803 all|d10v-*-*)
14804 if test "${targ}" = "${target}"; then
14805 SIM_PRIMARY_TARGET=d10v
14806 fi
14807 ac_config_files="$ac_config_files d10v/Makefile.sim:d10v/Makefile.in"
14808
14809 ac_config_commands="$ac_config_commands d10v/Makefile"
14810
14811 as_fn_append SIM_SUBDIRS " d10v"
14812
14813 ac_config_commands="$ac_config_commands depdir-d10v"
14814
14815
14816 sim_enable_arch_d10v=true
14817
14818 ;;
14819 esac
14820
14821
14822
14823
14824 if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
14825 : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
14826 : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
14827 : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
14828
14829 fi
14830
14831 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
14832
14833 if ${sim_enable_arch_d10v}; then
14834 SIM_ENABLE_ARCH_d10v_TRUE=
14835 SIM_ENABLE_ARCH_d10v_FALSE='#'
14836 else
14837 SIM_ENABLE_ARCH_d10v_TRUE='#'
14838 SIM_ENABLE_ARCH_d10v_FALSE=
14839 fi
14840
14841
14842 sim_enable_arch_frv=false
14843 case "${targ}" in
14844 all|frv-*-*)
14845 if test "${targ}" = "${target}"; then
14846 SIM_PRIMARY_TARGET=frv
14847 fi
14848 ac_config_files="$ac_config_files frv/Makefile.sim:frv/Makefile.in"
14849
14850 ac_config_commands="$ac_config_commands frv/Makefile"
14851
14852 as_fn_append SIM_SUBDIRS " frv"
14853
14854 ac_config_commands="$ac_config_commands depdir-frv"
14855
14856
14857 sim_enable_arch_frv=true
14858
14859 ;;
14860 esac
14861
14862
14863
14864
14865 if test "$SIM_PRIMARY_TARGET" = "frv"; then :
14866 : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
14867 : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
14868 : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
14869
14870 fi
14871
14872 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
14873
14874 if ${sim_enable_arch_frv}; then
14875 SIM_ENABLE_ARCH_frv_TRUE=
14876 SIM_ENABLE_ARCH_frv_FALSE='#'
14877 else
14878 SIM_ENABLE_ARCH_frv_TRUE='#'
14879 SIM_ENABLE_ARCH_frv_FALSE=
14880 fi
14881
14882
14883 sim_enable_arch_ft32=false
14884 case "${targ}" in
14885 all|ft32-*-*)
14886 if test "${targ}" = "${target}"; then
14887 SIM_PRIMARY_TARGET=ft32
14888 fi
14889 ac_config_files="$ac_config_files ft32/Makefile.sim:ft32/Makefile.in"
14890
14891 ac_config_commands="$ac_config_commands ft32/Makefile"
14892
14893 as_fn_append SIM_SUBDIRS " ft32"
14894
14895 ac_config_commands="$ac_config_commands depdir-ft32"
14896
14897
14898 sim_enable_arch_ft32=true
14899
14900 ;;
14901 esac
14902
14903
14904
14905
14906 if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
14907 : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
14908 : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
14909 : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
14910
14911 fi
14912
14913 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
14914
14915 if ${sim_enable_arch_ft32}; then
14916 SIM_ENABLE_ARCH_ft32_TRUE=
14917 SIM_ENABLE_ARCH_ft32_FALSE='#'
14918 else
14919 SIM_ENABLE_ARCH_ft32_TRUE='#'
14920 SIM_ENABLE_ARCH_ft32_FALSE=
14921 fi
14922
14923
14924 sim_enable_arch_h8300=false
14925 case "${targ}" in
14926 all|h8300*-*-*)
14927 if test "${targ}" = "${target}"; then
14928 SIM_PRIMARY_TARGET=h8300
14929 fi
14930 ac_config_files="$ac_config_files h8300/Makefile.sim:h8300/Makefile.in"
14931
14932 ac_config_commands="$ac_config_commands h8300/Makefile"
14933
14934 as_fn_append SIM_SUBDIRS " h8300"
14935
14936 ac_config_commands="$ac_config_commands depdir-h8300"
14937
14938
14939 sim_enable_arch_h8300=true
14940
14941 ;;
14942 esac
14943
14944
14945
14946
14947 if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
14948 : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
14949 : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
14950 : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
14951
14952 fi
14953
14954 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
14955
14956 if ${sim_enable_arch_h8300}; then
14957 SIM_ENABLE_ARCH_h8300_TRUE=
14958 SIM_ENABLE_ARCH_h8300_FALSE='#'
14959 else
14960 SIM_ENABLE_ARCH_h8300_TRUE='#'
14961 SIM_ENABLE_ARCH_h8300_FALSE=
14962 fi
14963
14964
14965 sim_enable_arch_iq2000=false
14966 case "${targ}" in
14967 all|iq2000-*-*)
14968 if test "${targ}" = "${target}"; then
14969 SIM_PRIMARY_TARGET=iq2000
14970 fi
14971 ac_config_files="$ac_config_files iq2000/Makefile.sim:iq2000/Makefile.in"
14972
14973 ac_config_commands="$ac_config_commands iq2000/Makefile"
14974
14975 as_fn_append SIM_SUBDIRS " iq2000"
14976
14977 ac_config_commands="$ac_config_commands depdir-iq2000"
14978
14979
14980 sim_enable_arch_iq2000=true
14981
14982 ;;
14983 esac
14984
14985
14986
14987
14988 if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
14989 : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
14990 : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
14991 : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
14992
14993 fi
14994
14995 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
14996
14997 if ${sim_enable_arch_iq2000}; then
14998 SIM_ENABLE_ARCH_iq2000_TRUE=
14999 SIM_ENABLE_ARCH_iq2000_FALSE='#'
15000 else
15001 SIM_ENABLE_ARCH_iq2000_TRUE='#'
15002 SIM_ENABLE_ARCH_iq2000_FALSE=
15003 fi
15004
15005
15006 sim_enable_arch_lm32=false
15007 case "${targ}" in
15008 all|lm32-*-*)
15009 if test "${targ}" = "${target}"; then
15010 SIM_PRIMARY_TARGET=lm32
15011 fi
15012 ac_config_files="$ac_config_files lm32/Makefile.sim:lm32/Makefile.in"
15013
15014 ac_config_commands="$ac_config_commands lm32/Makefile"
15015
15016 as_fn_append SIM_SUBDIRS " lm32"
15017
15018 ac_config_commands="$ac_config_commands depdir-lm32"
15019
15020
15021 sim_enable_arch_lm32=true
15022
15023 ;;
15024 esac
15025
15026
15027
15028
15029 if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
15030 : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
15031 : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
15032 : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
15033
15034 fi
15035
15036 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
15037
15038 if ${sim_enable_arch_lm32}; then
15039 SIM_ENABLE_ARCH_lm32_TRUE=
15040 SIM_ENABLE_ARCH_lm32_FALSE='#'
15041 else
15042 SIM_ENABLE_ARCH_lm32_TRUE='#'
15043 SIM_ENABLE_ARCH_lm32_FALSE=
15044 fi
15045
15046
15047 sim_enable_arch_m32c=false
15048 case "${targ}" in
15049 all|m32c-*-*)
15050 if test "${targ}" = "${target}"; then
15051 SIM_PRIMARY_TARGET=m32c
15052 fi
15053 ac_config_files="$ac_config_files m32c/Makefile.sim:m32c/Makefile.in"
15054
15055 ac_config_commands="$ac_config_commands m32c/Makefile"
15056
15057 as_fn_append SIM_SUBDIRS " m32c"
15058
15059 ac_config_commands="$ac_config_commands depdir-m32c"
15060
15061
15062 sim_enable_arch_m32c=true
15063
15064 ;;
15065 esac
15066
15067
15068
15069
15070 if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
15071 : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
15072 : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
15073 : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
15074
15075 fi
15076
15077 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
15078
15079 if ${sim_enable_arch_m32c}; then
15080 SIM_ENABLE_ARCH_m32c_TRUE=
15081 SIM_ENABLE_ARCH_m32c_FALSE='#'
15082 else
15083 SIM_ENABLE_ARCH_m32c_TRUE='#'
15084 SIM_ENABLE_ARCH_m32c_FALSE=
15085 fi
15086
15087
15088 sim_enable_arch_m32r=false
15089 case "${targ}" in
15090 all|m32r-*-*)
15091 if test "${targ}" = "${target}"; then
15092 SIM_PRIMARY_TARGET=m32r
15093 fi
15094 ac_config_files="$ac_config_files m32r/Makefile.sim:m32r/Makefile.in"
15095
15096 ac_config_commands="$ac_config_commands m32r/Makefile"
15097
15098 as_fn_append SIM_SUBDIRS " m32r"
15099
15100 ac_config_commands="$ac_config_commands depdir-m32r"
15101
15102
15103 sim_enable_arch_m32r=true
15104
15105 ;;
15106 esac
15107
15108
15109
15110
15111 if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
15112 : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
15113 : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
15114 : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
15115
15116 fi
15117
15118 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
15119
15120 if ${sim_enable_arch_m32r}; then
15121 SIM_ENABLE_ARCH_m32r_TRUE=
15122 SIM_ENABLE_ARCH_m32r_FALSE='#'
15123 else
15124 SIM_ENABLE_ARCH_m32r_TRUE='#'
15125 SIM_ENABLE_ARCH_m32r_FALSE=
15126 fi
15127
15128
15129 sim_enable_arch_m68hc11=false
15130 case "${targ}" in
15131 all|m68hc11-*-*|m6811-*-*)
15132 if test "${targ}" = "${target}"; then
15133 SIM_PRIMARY_TARGET=m68hc11
15134 fi
15135 ac_config_files="$ac_config_files m68hc11/Makefile.sim:m68hc11/Makefile.in"
15136
15137 ac_config_commands="$ac_config_commands m68hc11/Makefile"
15138
15139 as_fn_append SIM_SUBDIRS " m68hc11"
15140
15141 ac_config_commands="$ac_config_commands depdir-m68hc11"
15142
15143
15144 sim_enable_arch_m68hc11=true
15145
15146 ;;
15147 esac
15148
15149
15150
15151
15152 if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
15153 : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
15154 : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
15155 : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
15156
15157 fi
15158
15159 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
15160
15161 if ${sim_enable_arch_m68hc11}; then
15162 SIM_ENABLE_ARCH_m68hc11_TRUE=
15163 SIM_ENABLE_ARCH_m68hc11_FALSE='#'
15164 else
15165 SIM_ENABLE_ARCH_m68hc11_TRUE='#'
15166 SIM_ENABLE_ARCH_m68hc11_FALSE=
15167 fi
15168
15169
15170 sim_enable_arch_mcore=false
15171 case "${targ}" in
15172 all|mcore-*-*)
15173 if test "${targ}" = "${target}"; then
15174 SIM_PRIMARY_TARGET=mcore
15175 fi
15176 ac_config_files="$ac_config_files mcore/Makefile.sim:mcore/Makefile.in"
15177
15178 ac_config_commands="$ac_config_commands mcore/Makefile"
15179
15180 as_fn_append SIM_SUBDIRS " mcore"
15181
15182 ac_config_commands="$ac_config_commands depdir-mcore"
15183
15184
15185 sim_enable_arch_mcore=true
15186
15187 ;;
15188 esac
15189
15190
15191
15192
15193 if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
15194 : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
15195 : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
15196 : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
15197
15198 fi
15199
15200 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
15201
15202 if ${sim_enable_arch_mcore}; then
15203 SIM_ENABLE_ARCH_mcore_TRUE=
15204 SIM_ENABLE_ARCH_mcore_FALSE='#'
15205 else
15206 SIM_ENABLE_ARCH_mcore_TRUE='#'
15207 SIM_ENABLE_ARCH_mcore_FALSE=
15208 fi
15209
15210
15211 sim_enable_arch_microblaze=false
15212 case "${targ}" in
15213 all|microblaze*-*-*)
15214 if test "${targ}" = "${target}"; then
15215 SIM_PRIMARY_TARGET=microblaze
15216 fi
15217 ac_config_files="$ac_config_files microblaze/Makefile.sim:microblaze/Makefile.in"
15218
15219 ac_config_commands="$ac_config_commands microblaze/Makefile"
15220
15221 as_fn_append SIM_SUBDIRS " microblaze"
15222
15223 ac_config_commands="$ac_config_commands depdir-microblaze"
15224
15225
15226 sim_enable_arch_microblaze=true
15227
15228 ;;
15229 esac
15230
15231
15232
15233
15234 if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
15235 : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
15236 : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
15237 : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
15238
15239 fi
15240
15241 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
15242
15243 if ${sim_enable_arch_microblaze}; then
15244 SIM_ENABLE_ARCH_microblaze_TRUE=
15245 SIM_ENABLE_ARCH_microblaze_FALSE='#'
15246 else
15247 SIM_ENABLE_ARCH_microblaze_TRUE='#'
15248 SIM_ENABLE_ARCH_microblaze_FALSE=
15249 fi
15250
15251
15252 sim_enable_arch_mips=false
15253 case "${targ}" in
15254 all|mips*-*-*)
15255 if test "${targ}" = "${target}"; then
15256 SIM_PRIMARY_TARGET=mips
15257 fi
15258 subdirs="$subdirs mips"
15259
15260
15261 ac_config_commands="$ac_config_commands depdir-mips"
15262
15263
15264 sim_enable_arch_mips=true
15265 sim_igen=yes
15266 ;;
15267 esac
15268
15269
15270
15271
15272 if test "$SIM_PRIMARY_TARGET" = "mips"; then :
15273 : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
15274 : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
15275 : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
15276
15277 fi
15278
15279 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
15280
15281 if ${sim_enable_arch_mips}; then
15282 SIM_ENABLE_ARCH_mips_TRUE=
15283 SIM_ENABLE_ARCH_mips_FALSE='#'
15284 else
15285 SIM_ENABLE_ARCH_mips_TRUE='#'
15286 SIM_ENABLE_ARCH_mips_FALSE=
15287 fi
15288
15289
15290 sim_enable_arch_mn10300=false
15291 case "${targ}" in
15292 all|mn10300*-*-*)
15293 if test "${targ}" = "${target}"; then
15294 SIM_PRIMARY_TARGET=mn10300
15295 fi
15296 subdirs="$subdirs mn10300"
15297
15298
15299 ac_config_commands="$ac_config_commands depdir-mn10300"
15300
15301
15302 sim_enable_arch_mn10300=true
15303 sim_igen=yes
15304 ;;
15305 esac
15306
15307
15308
15309
15310 if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
15311 : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
15312 : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
15313 : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
15314
15315 fi
15316
15317 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
15318
15319 if ${sim_enable_arch_mn10300}; then
15320 SIM_ENABLE_ARCH_mn10300_TRUE=
15321 SIM_ENABLE_ARCH_mn10300_FALSE='#'
15322 else
15323 SIM_ENABLE_ARCH_mn10300_TRUE='#'
15324 SIM_ENABLE_ARCH_mn10300_FALSE=
15325 fi
15326
15327
15328 sim_enable_arch_moxie=false
15329 case "${targ}" in
15330 all|moxie-*-*)
15331 if test "${targ}" = "${target}"; then
15332 SIM_PRIMARY_TARGET=moxie
15333 fi
15334 ac_config_files="$ac_config_files moxie/Makefile.sim:moxie/Makefile.in"
15335
15336 ac_config_commands="$ac_config_commands moxie/Makefile"
15337
15338 as_fn_append SIM_SUBDIRS " moxie"
15339
15340 ac_config_commands="$ac_config_commands depdir-moxie"
15341
15342
15343 sim_enable_arch_moxie=true
15344
15345 ;;
15346 esac
15347
15348
15349
15350
15351 if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
15352 : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
15353 : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
15354 : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
15355
15356 fi
15357
15358 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
15359
15360 if ${sim_enable_arch_moxie}; then
15361 SIM_ENABLE_ARCH_moxie_TRUE=
15362 SIM_ENABLE_ARCH_moxie_FALSE='#'
15363 else
15364 SIM_ENABLE_ARCH_moxie_TRUE='#'
15365 SIM_ENABLE_ARCH_moxie_FALSE=
15366 fi
15367
15368
15369 sim_enable_arch_msp430=false
15370 case "${targ}" in
15371 all|msp430*-*-*)
15372 if test "${targ}" = "${target}"; then
15373 SIM_PRIMARY_TARGET=msp430
15374 fi
15375 ac_config_files="$ac_config_files msp430/Makefile.sim:msp430/Makefile.in"
15376
15377 ac_config_commands="$ac_config_commands msp430/Makefile"
15378
15379 as_fn_append SIM_SUBDIRS " msp430"
15380
15381 ac_config_commands="$ac_config_commands depdir-msp430"
15382
15383
15384 sim_enable_arch_msp430=true
15385
15386 ;;
15387 esac
15388
15389
15390
15391
15392 if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
15393 : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
15394 : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
15395 : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
15396
15397 fi
15398
15399 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15400
15401 if ${sim_enable_arch_msp430}; then
15402 SIM_ENABLE_ARCH_msp430_TRUE=
15403 SIM_ENABLE_ARCH_msp430_FALSE='#'
15404 else
15405 SIM_ENABLE_ARCH_msp430_TRUE='#'
15406 SIM_ENABLE_ARCH_msp430_FALSE=
15407 fi
15408
15409
15410 sim_enable_arch_or1k=false
15411 case "${targ}" in
15412 all|or1k*-*-*)
15413 if test "${targ}" = "${target}"; then
15414 SIM_PRIMARY_TARGET=or1k
15415 fi
15416 subdirs="$subdirs or1k"
15417
15418
15419 ac_config_commands="$ac_config_commands depdir-or1k"
15420
15421
15422 sim_enable_arch_or1k=true
15423
15424 ;;
15425 esac
15426
15427
15428
15429
15430 if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
15431 : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
15432 : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
15433 : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
15434
15435 fi
15436
15437 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15438
15439 if ${sim_enable_arch_or1k}; then
15440 SIM_ENABLE_ARCH_or1k_TRUE=
15441 SIM_ENABLE_ARCH_or1k_FALSE='#'
15442 else
15443 SIM_ENABLE_ARCH_or1k_TRUE='#'
15444 SIM_ENABLE_ARCH_or1k_FALSE=
15445 fi
15446
15447
15448 sim_enable_arch_ppc=false
15449 case "${targ}" in
15450 all|powerpc*-*-*)
15451 if test "${targ}" = "${target}"; then
15452 SIM_PRIMARY_TARGET=ppc
15453 fi
15454 subdirs="$subdirs ppc"
15455
15456
15457 ac_config_commands="$ac_config_commands depdir-ppc"
15458
15459
15460 sim_enable_arch_ppc=true
15461
15462 ;;
15463 esac
15464
15465
15466
15467
15468 if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
15469 : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
15470 : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
15471 : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
15472
15473 fi
15474
15475 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15476
15477 if ${sim_enable_arch_ppc}; then
15478 SIM_ENABLE_ARCH_ppc_TRUE=
15479 SIM_ENABLE_ARCH_ppc_FALSE='#'
15480 else
15481 SIM_ENABLE_ARCH_ppc_TRUE='#'
15482 SIM_ENABLE_ARCH_ppc_FALSE=
15483 fi
15484
15485
15486 sim_enable_arch_pru=false
15487 case "${targ}" in
15488 all|pru*-*-*)
15489 if test "${targ}" = "${target}"; then
15490 SIM_PRIMARY_TARGET=pru
15491 fi
15492 ac_config_files="$ac_config_files pru/Makefile.sim:pru/Makefile.in"
15493
15494 ac_config_commands="$ac_config_commands pru/Makefile"
15495
15496 as_fn_append SIM_SUBDIRS " pru"
15497
15498 ac_config_commands="$ac_config_commands depdir-pru"
15499
15500
15501 sim_enable_arch_pru=true
15502
15503 ;;
15504 esac
15505
15506
15507
15508
15509 if test "$SIM_PRIMARY_TARGET" = "pru"; then :
15510 : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
15511 : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
15512 : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
15513
15514 fi
15515
15516 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15517
15518 if ${sim_enable_arch_pru}; then
15519 SIM_ENABLE_ARCH_pru_TRUE=
15520 SIM_ENABLE_ARCH_pru_FALSE='#'
15521 else
15522 SIM_ENABLE_ARCH_pru_TRUE='#'
15523 SIM_ENABLE_ARCH_pru_FALSE=
15524 fi
15525
15526
15527 sim_enable_arch_riscv=false
15528 case "${targ}" in
15529 all|riscv*-*-*)
15530 if test "${targ}" = "${target}"; then
15531 SIM_PRIMARY_TARGET=riscv
15532 fi
15533 subdirs="$subdirs riscv"
15534
15535
15536 ac_config_commands="$ac_config_commands depdir-riscv"
15537
15538
15539 sim_enable_arch_riscv=true
15540
15541 ;;
15542 esac
15543
15544
15545
15546
15547 if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
15548 : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
15549 : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
15550 : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
15551
15552 fi
15553
15554 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15555
15556 if ${sim_enable_arch_riscv}; then
15557 SIM_ENABLE_ARCH_riscv_TRUE=
15558 SIM_ENABLE_ARCH_riscv_FALSE='#'
15559 else
15560 SIM_ENABLE_ARCH_riscv_TRUE='#'
15561 SIM_ENABLE_ARCH_riscv_FALSE=
15562 fi
15563
15564
15565 sim_enable_arch_rl78=false
15566 case "${targ}" in
15567 all|rl78-*-*)
15568 if test "${targ}" = "${target}"; then
15569 SIM_PRIMARY_TARGET=rl78
15570 fi
15571 ac_config_files="$ac_config_files rl78/Makefile.sim:rl78/Makefile.in"
15572
15573 ac_config_commands="$ac_config_commands rl78/Makefile"
15574
15575 as_fn_append SIM_SUBDIRS " rl78"
15576
15577 ac_config_commands="$ac_config_commands depdir-rl78"
15578
15579
15580 sim_enable_arch_rl78=true
15581
15582 ;;
15583 esac
15584
15585
15586
15587
15588 if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
15589 : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
15590 : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
15591 : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
15592
15593 fi
15594
15595 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15596
15597 if ${sim_enable_arch_rl78}; then
15598 SIM_ENABLE_ARCH_rl78_TRUE=
15599 SIM_ENABLE_ARCH_rl78_FALSE='#'
15600 else
15601 SIM_ENABLE_ARCH_rl78_TRUE='#'
15602 SIM_ENABLE_ARCH_rl78_FALSE=
15603 fi
15604
15605
15606 sim_enable_arch_rx=false
15607 case "${targ}" in
15608 all|rx-*-*)
15609 if test "${targ}" = "${target}"; then
15610 SIM_PRIMARY_TARGET=rx
15611 fi
15612 ac_config_files="$ac_config_files rx/Makefile.sim:rx/Makefile.in"
15613
15614 ac_config_commands="$ac_config_commands rx/Makefile"
15615
15616 as_fn_append SIM_SUBDIRS " rx"
15617
15618 ac_config_commands="$ac_config_commands depdir-rx"
15619
15620
15621 sim_enable_arch_rx=true
15622
15623 ;;
15624 esac
15625
15626
15627
15628
15629 if test "$SIM_PRIMARY_TARGET" = "rx"; then :
15630 : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
15631 : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
15632 : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
15633
15634 fi
15635
15636 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15637
15638 if ${sim_enable_arch_rx}; then
15639 SIM_ENABLE_ARCH_rx_TRUE=
15640 SIM_ENABLE_ARCH_rx_FALSE='#'
15641 else
15642 SIM_ENABLE_ARCH_rx_TRUE='#'
15643 SIM_ENABLE_ARCH_rx_FALSE=
15644 fi
15645
15646
15647 sim_enable_arch_sh=false
15648 case "${targ}" in
15649 all|sh*-*-*)
15650 if test "${targ}" = "${target}"; then
15651 SIM_PRIMARY_TARGET=sh
15652 fi
15653 ac_config_files="$ac_config_files sh/Makefile.sim:sh/Makefile.in"
15654
15655 ac_config_commands="$ac_config_commands sh/Makefile"
15656
15657 as_fn_append SIM_SUBDIRS " sh"
15658
15659 ac_config_commands="$ac_config_commands depdir-sh"
15660
15661
15662 sim_enable_arch_sh=true
15663
15664 ;;
15665 esac
15666
15667
15668
15669
15670 if test "$SIM_PRIMARY_TARGET" = "sh"; then :
15671 : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
15672 : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
15673 : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
15674
15675 fi
15676
15677 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
15678
15679 if ${sim_enable_arch_sh}; then
15680 SIM_ENABLE_ARCH_sh_TRUE=
15681 SIM_ENABLE_ARCH_sh_FALSE='#'
15682 else
15683 SIM_ENABLE_ARCH_sh_TRUE='#'
15684 SIM_ENABLE_ARCH_sh_FALSE=
15685 fi
15686
15687
15688 sim_enable_arch_erc32=false
15689 case "${targ}" in
15690 all|sparc-*-*)
15691 if test "${targ}" = "${target}"; then
15692 SIM_PRIMARY_TARGET=erc32
15693 fi
15694 ac_config_files="$ac_config_files erc32/Makefile.sim:erc32/Makefile.in"
15695
15696 ac_config_commands="$ac_config_commands erc32/Makefile"
15697
15698 as_fn_append SIM_SUBDIRS " erc32"
15699
15700 ac_config_commands="$ac_config_commands depdir-erc32"
15701
15702
15703 sim_enable_arch_erc32=true
15704
15705 ;;
15706 esac
15707
15708
15709
15710
15711 if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
15712 : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
15713 : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
15714 : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
15715
15716 fi
15717
15718 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
15719
15720 if ${sim_enable_arch_erc32}; then
15721 SIM_ENABLE_ARCH_erc32_TRUE=
15722 SIM_ENABLE_ARCH_erc32_FALSE='#'
15723 else
15724 SIM_ENABLE_ARCH_erc32_TRUE='#'
15725 SIM_ENABLE_ARCH_erc32_FALSE=
15726 fi
15727
15728
15729 sim_enable_arch_v850=false
15730 case "${targ}" in
15731 all|v850*-*-*)
15732 if test "${targ}" = "${target}"; then
15733 SIM_PRIMARY_TARGET=v850
15734 fi
15735 subdirs="$subdirs v850"
15736
15737
15738 ac_config_commands="$ac_config_commands depdir-v850"
15739
15740
15741 sim_enable_arch_v850=true
15742 sim_igen=yes
15743 ;;
15744 esac
15745
15746
15747
15748
15749 if test "$SIM_PRIMARY_TARGET" = "v850"; then :
15750 : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
15751 : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
15752 : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
15753
15754 fi
15755
15756 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
15757
15758 if ${sim_enable_arch_v850}; then
15759 SIM_ENABLE_ARCH_v850_TRUE=
15760 SIM_ENABLE_ARCH_v850_FALSE='#'
15761 else
15762 SIM_ENABLE_ARCH_v850_TRUE='#'
15763 SIM_ENABLE_ARCH_v850_FALSE=
15764 fi
15765
15766
15767 done
15768
15769 if test "x${enable_example_sims}" = xyes; then
15770
15771
15772
15773
15774 : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
15775 : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
15776 : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
15777
15778 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
15779
15780 ac_config_files="$ac_config_files example-synacor/Makefile.sim:example-synacor/Makefile.in"
15781
15782 ac_config_commands="$ac_config_commands example-synacor/Makefile"
15783
15784 as_fn_append SIM_SUBDIRS " example-synacor"
15785
15786 ac_config_commands="$ac_config_commands depdir-example-synacor"
15787
15788
15789 fi
15790 fi
15791 if test "$sim_igen" = "yes"; then
15792 SIM_ENABLE_IGEN_TRUE=
15793 SIM_ENABLE_IGEN_FALSE='#'
15794 else
15795 SIM_ENABLE_IGEN_TRUE='#'
15796 SIM_ENABLE_IGEN_FALSE=
15797 fi
15798
15799 if test -n "$SIM_SUBDIRS"; then
15800 ENABLE_SIM_TRUE=
15801 ENABLE_SIM_FALSE='#'
15802 else
15803 ENABLE_SIM_TRUE='#'
15804 ENABLE_SIM_FALSE=
15805 fi
15806
15807
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
15809 $as_echo_n "checking whether to force sim alignment... " >&6; }
15810 sim_alignment=
15811 # Check whether --enable-sim-alignment was given.
15812 if test "${enable_sim_alignment+set}" = set; then :
15813 enableval=$enable_sim_alignment; case "${enableval}" in
15814 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
15815 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
15816 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
15817 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
15818 esac
15819 fi
15820
15821 cat >>confdefs.h <<_ACEOF
15822 #define WITH_ALIGNMENT ${sim_alignment:-0}
15823 _ACEOF
15824
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15826 $as_echo "${sim_alignment:-no}" >&6; }
15827
15828
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
15830 $as_echo_n "checking whether to enable sim asserts... " >&6; }
15831 sim_assert="1"
15832 # Check whether --enable-sim-assert was given.
15833 if test "${enable_sim_assert+set}" = set; then :
15834 enableval=$enable_sim_assert; case "${enableval}" in
15835 yes) sim_assert="1";;
15836 no) sim_assert="0";;
15837 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
15838 esac
15839 fi
15840
15841 cat >>confdefs.h <<_ACEOF
15842 #define WITH_ASSERT $sim_assert
15843 _ACEOF
15844
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
15846 $as_echo "$sim_assert" >&6; }
15847
15848
15849 cgen_maint=no
15850 cgen=guile
15851 cgendir='$(srcdir)/../../cgen'
15852 # Check whether --enable-cgen-maint was given.
15853 if test "${enable_cgen_maint+set}" = set; then :
15854 enableval=$enable_cgen_maint; case "${enableval}" in
15855 yes) cgen_maint=yes ;;
15856 no) cgen_maint=no ;;
15857 *)
15858 # Argument is a directory where cgen can be found. In some
15859 # future world cgen could be installable, but right now this
15860 # is not the case. Instead we assume the directory is a path
15861 # to the cgen source tree.
15862 cgen_maint=yes
15863 if test -r ${enableval}/iformat.scm; then
15864 # This looks like a cgen source tree.
15865 cgendir=${enableval}
15866 else
15867 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
15868 fi
15869 ;;
15870 esac
15871 fi
15872 if test x${cgen_maint} != xno ; then
15873 CGEN_MAINT=''
15874 else
15875 CGEN_MAINT='#'
15876 fi
15877
15878
15879
15880
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
15882 $as_echo_n "checking for sim debug setting... " >&6; }
15883 sim_debug="0"
15884 # Check whether --enable-sim-debug was given.
15885 if test "${enable_sim_debug+set}" = set; then :
15886 enableval=$enable_sim_debug; case "${enableval}" in
15887 yes) sim_debug="7";;
15888 no) sim_debug="0";;
15889 *) sim_debug="($enableval)";;
15890 esac
15891 fi
15892 if test "$sim_debug" != "0"; then
15893
15894 cat >>confdefs.h <<_ACEOF
15895 #define DEBUG $sim_debug
15896 _ACEOF
15897
15898 fi
15899
15900 cat >>confdefs.h <<_ACEOF
15901 #define WITH_DEBUG $sim_debug
15902 _ACEOF
15903
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
15905 $as_echo "$sim_debug" >&6; }
15906
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
15908 $as_echo_n "checking whether to force sim endianness... " >&6; }
15909 sim_endian=
15910 # Check whether --enable-sim-endian was given.
15911 if test "${enable_sim_endian+set}" = set; then :
15912 enableval=$enable_sim_endian; case "${enableval}" in
15913 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
15914 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
15915 yes | no) ;;
15916 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
15917 esac
15918 fi
15919
15920 cat >>confdefs.h <<_ACEOF
15921 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
15922 _ACEOF
15923
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15925 $as_echo "${sim_alignment:-no}" >&6; }
15926
15927
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
15929 $as_echo_n "checking default sim environment setting... " >&6; }
15930 sim_environment="ALL_ENVIRONMENT"
15931 # Check whether --enable-sim-environment was given.
15932 if test "${enable_sim_environment+set}" = set; then :
15933 enableval=$enable_sim_environment; case "${enableval}" in
15934 all | ALL) sim_environment="ALL_ENVIRONMENT";;
15935 user | USER) sim_environment="USER_ENVIRONMENT";;
15936 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
15937 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
15938 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
15939 esac
15940 fi
15941
15942 cat >>confdefs.h <<_ACEOF
15943 #define WITH_ENVIRONMENT $sim_environment
15944 _ACEOF
15945
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
15947 $as_echo "$sim_environment" >&6; }
15948
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
15950 $as_echo_n "checking for sim hardware settings... " >&6; }
15951 # Check whether --enable-sim-hardware was given.
15952 if test "${enable_sim_hardware+set}" = set; then :
15953 enableval=$enable_sim_hardware;
15954 else
15955 enable_sim_hardware="yes"
15956 fi
15957
15958 sim_hw_sockser=
15959 if test "$enable_sim_hardware" = no; then
15960 sim_hw_cflags="-DWITH_HW=0"
15961 elif test "$enable_sim_hardware" = yes; then
15962 sim_hw_cflags="-DWITH_HW=1"
15963 sim_hw_sockser="dv-sockser.o"
15964 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
15965 else
15966 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
15967 fi
15968 if test "$enable_sim_hardware" = "yes"; then
15969 SIM_ENABLE_HW_TRUE=
15970 SIM_ENABLE_HW_FALSE='#'
15971 else
15972 SIM_ENABLE_HW_TRUE='#'
15973 SIM_ENABLE_HW_FALSE=
15974 fi
15975
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
15977 $as_echo "${enable_sim_hardware}" >&6; }
15978
15979
15980
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
15982 $as_echo_n "checking sim inline settings... " >&6; }
15983 sim_inline="-DDEFAULT_INLINE=0"
15984 # Check whether --enable-sim-inline was given.
15985 if test "${enable_sim_inline+set}" = set; then :
15986 enableval=$enable_sim_inline; sim_inline=""
15987 case "$enableval" in
15988 no) sim_inline="-DDEFAULT_INLINE=0";;
15989 0) sim_inline="-DDEFAULT_INLINE=0";;
15990 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
15991 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
15992 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15993 new_flag=""
15994 case "$x" in
15995 *_INLINE=*) new_flag="-D$x";;
15996 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
15997 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
15998 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
15999 esac
16000 if test x"$sim_inline" = x""; then
16001 sim_inline="$new_flag"
16002 else
16003 sim_inline="$sim_inline $new_flag"
16004 fi
16005 done;;
16006 esac
16007
16008 fi
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
16010 $as_echo "$sim_inline" >&6; }
16011 SIM_INLINE=$sim_inline
16012
16013
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
16015 $as_echo_n "checking for sim profile settings... " >&6; }
16016 profile="1"
16017 sim_profile="-1"
16018 # Check whether --enable-sim-profile was given.
16019 if test "${enable_sim_profile+set}" = set; then :
16020 enableval=$enable_sim_profile; case "${enableval}" in
16021 yes) profile="1" sim_profile="-1";;
16022 no) profile="0" sim_profile="0";;
16023 [-0-9]*)
16024 profile="(${enableval})" sim_profile="(${enableval})";;
16025 [a-z]*)
16026 profile="1"
16027 sim_profile=""
16028 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16029 if test x"$sim_profile" = x; then
16030 sim_profile="(PROFILE_$x"
16031 else
16032 sim_profile="${sim_profile}|PROFILE_$x"
16033 fi
16034 done
16035 sim_profile="$sim_profile)" ;;
16036 esac
16037 fi
16038
16039 cat >>confdefs.h <<_ACEOF
16040 #define PROFILE $profile
16041 _ACEOF
16042
16043
16044 cat >>confdefs.h <<_ACEOF
16045 #define WITH_PROFILE $sim_profile
16046 _ACEOF
16047
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
16049 $as_echo "$sim_profile" >&6; }
16050
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
16052 $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
16053 # Check whether --enable-sim-reserved-bits was given.
16054 if test "${enable_sim_reserved_bits+set}" = set; then :
16055 enableval=$enable_sim_reserved_bits; case "${enableval}" in
16056 yes|no) ;;
16057 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
16058 esac
16059 fi
16060
16061 if test "x${enable_sim_reserved_bits}" != xno; then
16062 sim_reserved_bits=1
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16064 $as_echo "yes" >&6; }
16065 else
16066 sim_reserved_bits=0
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16068 $as_echo "no" >&6; }
16069 fi
16070
16071 cat >>confdefs.h <<_ACEOF
16072 #define WITH_RESERVED_BITS $sim_reserved_bits
16073 _ACEOF
16074
16075
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
16077 $as_echo_n "checking for sim cache size... " >&6; }
16078 sim_scache="16384"
16079 # Check whether --enable-sim-scache was given.
16080 if test "${enable_sim_scache+set}" = set; then :
16081 enableval=$enable_sim_scache; case "${enableval}" in
16082 yes) ;;
16083 no) sim_scache="0";;
16084 [0-9]*) sim_scache="${enableval}";;
16085 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
16086 esac
16087 fi
16088
16089
16090 cat >>confdefs.h <<_ACEOF
16091 #define WITH_SCACHE $sim_scache
16092 _ACEOF
16093
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
16095 $as_echo "$sim_scache" >&6; }
16096
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
16098 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
16099 sim_stdio="0"
16100 # Check whether --enable-sim-stdio was given.
16101 if test "${enable_sim_stdio+set}" = set; then :
16102 enableval=$enable_sim_stdio; case "${enableval}" in
16103 yes) sim_stdio="DO_USE_STDIO";;
16104 no) sim_stdio="DONT_USE_STDIO";;
16105 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
16106 esac
16107 fi
16108
16109 cat >>confdefs.h <<_ACEOF
16110 #define WITH_STDIO $sim_stdio
16111 _ACEOF
16112
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
16114 $as_echo "$sim_stdio" >&6; }
16115
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
16117 $as_echo_n "checking for sim trace settings... " >&6; }
16118 sim_trace="~TRACE_debug"
16119 # Check whether --enable-sim-trace was given.
16120 if test "${enable_sim_trace+set}" = set; then :
16121 enableval=$enable_sim_trace; case "${enableval}" in
16122 yes) sim_trace="-1";;
16123 no) sim_trace="0";;
16124 [-0-9]*)
16125 sim_trace="'(${enableval})'";;
16126 [[:lower:]]*)
16127 sim_trace=""
16128 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16129 if test x"$sim_trace" = x; then
16130 sim_trace="(TRACE_$x"
16131 else
16132 sim_trace="${sim_trace}|TRACE_$x"
16133 fi
16134 done
16135 sim_trace="$sim_trace)" ;;
16136 esac
16137 fi
16138
16139 cat >>confdefs.h <<_ACEOF
16140 #define WITH_TRACE $sim_trace
16141 _ACEOF
16142
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
16144 $as_echo "$sim_trace" >&6; }
16145
16146
16147 # Check whether --enable-werror was given.
16148 if test "${enable_werror+set}" = set; then :
16149 enableval=$enable_werror; case "${enableval}" in
16150 yes | y) ERROR_ON_WARNING="yes" ;;
16151 no | n) ERROR_ON_WARNING="no" ;;
16152 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16153 esac
16154 fi
16155
16156
16157 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16158 ERROR_ON_WARNING=yes
16159 fi
16160
16161 WERROR_CFLAGS=""
16162 if test "${ERROR_ON_WARNING}" = yes ; then
16163 WERROR_CFLAGS="-Werror"
16164 fi
16165
16166 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith
16167 -Wno-unused -Wunused-value -Wunused-function
16168 -Wno-switch -Wno-char-subscripts
16169 -Wempty-body -Wunused-but-set-parameter
16170 -Wno-error=maybe-uninitialized
16171 -Wmissing-declarations
16172 -Wmissing-prototypes
16173 -Wdeclaration-after-statement -Wmissing-parameter-type
16174 -Wpointer-sign
16175 -Wold-style-declaration -Wold-style-definition
16176 "
16177
16178 # Enable -Wno-format by default when using gcc on mingw since many
16179 # GCC versions complain about %I64.
16180 case "${host}" in
16181 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
16182 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
16183 esac
16184
16185 # Check whether --enable-build-warnings was given.
16186 if test "${enable_build_warnings+set}" = set; then :
16187 enableval=$enable_build_warnings; case "${enableval}" in
16188 yes) ;;
16189 no) build_warnings="-w";;
16190 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16191 build_warnings="${build_warnings} ${t}";;
16192 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16193 build_warnings="${t} ${build_warnings}";;
16194 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16195 esac
16196 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16197 echo "Setting compiler warning flags = $build_warnings" 6>&1
16198 fi
16199 fi
16200 # Check whether --enable-sim-build-warnings was given.
16201 if test "${enable_sim_build_warnings+set}" = set; then :
16202 enableval=$enable_sim_build_warnings; case "${enableval}" in
16203 yes) ;;
16204 no) build_warnings="-w";;
16205 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16206 build_warnings="${build_warnings} ${t}";;
16207 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16208 build_warnings="${t} ${build_warnings}";;
16209 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16210 esac
16211 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16212 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16213 fi
16214 fi
16215 WARN_CFLAGS=""
16216 if test "x${build_warnings}" != x -a "x$GCC" = xyes
16217 then
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16219 $as_echo_n "checking compiler warning flags... " >&6; }
16220 # Separate out the -Werror flag as some files just cannot be
16221 # compiled with it enabled.
16222 for w in ${build_warnings}; do
16223 case $w in
16224 -Werr*) WERROR_CFLAGS=-Werror ;;
16225 *) # Check that GCC accepts it
16226 saved_CFLAGS="$CFLAGS"
16227 CFLAGS="$CFLAGS -Werror $w"
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h. */
16230
16231 int
16232 main ()
16233 {
16234
16235 ;
16236 return 0;
16237 }
16238 _ACEOF
16239 if ac_fn_c_try_compile "$LINENO"; then :
16240 WARN_CFLAGS="${WARN_CFLAGS} $w"
16241 fi
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16243 CFLAGS="$saved_CFLAGS"
16244 esac
16245 done
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16247 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16248 fi
16249
16250
16251
16252
16253
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
16255 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
16256 # Check whether --enable-sim-frv-trapdump was given.
16257 if test "${enable_sim_frv_trapdump+set}" = set; then :
16258 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
16259 yes|no) ;;
16260 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
16261 esac
16262 fi
16263
16264 if test "x${enable_sim_frv_trapdump}" = xyes; then
16265 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16267 $as_echo "yes" >&6; }
16268 else
16269 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16271 $as_echo "no" >&6; }
16272 fi
16273
16274
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
16276 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
16277 # Check whether --enable-sim-rx-cycle-accurate was given.
16278 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
16279 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
16280 yes | no) ;;
16281 *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
16282 esac
16283 fi
16284
16285 if test "x${enable_sim_rx_cycle_accurate}" != xno; then
16286 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16288 $as_echo "yes" >&6; }
16289 else
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16291 $as_echo "no" >&6; }
16292 fi
16293
16294
16295
16296 ac_config_files="$ac_config_files arch-subdir.mk Makefile .gdbinit:gdbinit.in"
16297
16298 cat >confcache <<\_ACEOF
16299 # This file is a shell script that caches the results of configure
16300 # tests run on this system so they can be shared between configure
16301 # scripts and configure runs, see configure's option --config-cache.
16302 # It is not useful on other systems. If it contains results you don't
16303 # want to keep, you may remove or edit it.
16304 #
16305 # config.status only pays attention to the cache file if you give it
16306 # the --recheck option to rerun configure.
16307 #
16308 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16309 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16310 # following values.
16311
16312 _ACEOF
16313
16314 # The following way of writing the cache mishandles newlines in values,
16315 # but we know of no workaround that is simple, portable, and efficient.
16316 # So, we kill variables containing newlines.
16317 # Ultrix sh set writes to stderr and can't be redirected directly,
16318 # and sets the high bit in the cache file unless we assign to the vars.
16319 (
16320 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16321 eval ac_val=\$$ac_var
16322 case $ac_val in #(
16323 *${as_nl}*)
16324 case $ac_var in #(
16325 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16326 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16327 esac
16328 case $ac_var in #(
16329 _ | IFS | as_nl) ;; #(
16330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16331 *) { eval $ac_var=; unset $ac_var;} ;;
16332 esac ;;
16333 esac
16334 done
16335
16336 (set) 2>&1 |
16337 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16338 *${as_nl}ac_space=\ *)
16339 # `set' does not quote correctly, so add quotes: double-quote
16340 # substitution turns \\\\ into \\, and sed turns \\ into \.
16341 sed -n \
16342 "s/'/'\\\\''/g;
16343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16344 ;; #(
16345 *)
16346 # `set' quotes correctly as required by POSIX, so do not add quotes.
16347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16348 ;;
16349 esac |
16350 sort
16351 ) |
16352 sed '
16353 /^ac_cv_env_/b end
16354 t clear
16355 :clear
16356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16357 t end
16358 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16359 :end' >>confcache
16360 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16361 if test -w "$cache_file"; then
16362 if test "x$cache_file" != "x/dev/null"; then
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16364 $as_echo "$as_me: updating cache $cache_file" >&6;}
16365 if test ! -f "$cache_file" || test -h "$cache_file"; then
16366 cat confcache >"$cache_file"
16367 else
16368 case $cache_file in #(
16369 */* | ?:*)
16370 mv -f confcache "$cache_file"$$ &&
16371 mv -f "$cache_file"$$ "$cache_file" ;; #(
16372 *)
16373 mv -f confcache "$cache_file" ;;
16374 esac
16375 fi
16376 fi
16377 else
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16379 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16380 fi
16381 fi
16382 rm -f confcache
16383
16384 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16385 # Let make expand exec_prefix.
16386 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16387
16388 DEFS=-DHAVE_CONFIG_H
16389
16390 ac_libobjs=
16391 ac_ltlibobjs=
16392 U=
16393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16394 # 1. Remove the extension, and $U if already installed.
16395 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16396 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16397 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16398 # will be set to the directory where LIBOBJS objects are built.
16399 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16400 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16401 done
16402 LIBOBJS=$ac_libobjs
16403
16404 LTLIBOBJS=$ac_ltlibobjs
16405
16406
16407
16408 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
16409 as_fn_error $? "conditional \"PLUGINS\" was never defined.
16410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16411 fi
16412 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16413 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16415 fi
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16417 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16418 if test -n "$am_sleep_pid"; then
16419 # Hide warnings about reused PIDs.
16420 wait $am_sleep_pid 2>/dev/null
16421 fi
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16423 $as_echo "done" >&6; }
16424 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16425 as_fn_error $? "conditional \"AMDEP\" was never defined.
16426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16427 fi
16428 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16429 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16431 fi
16432 if test -n "$EXEEXT"; then
16433 am__EXEEXT_TRUE=
16434 am__EXEEXT_FALSE='#'
16435 else
16436 am__EXEEXT_TRUE='#'
16437 am__EXEEXT_FALSE=
16438 fi
16439
16440 if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
16441 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
16442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16443 fi
16444 if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
16445 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
16446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16447 fi
16448 if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
16449 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
16450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16451 fi
16452 if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
16453 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
16454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16455 fi
16456 if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
16457 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
16458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16459 fi
16460 if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
16461 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
16462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16463 fi
16464 if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
16465 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
16466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16467 fi
16468 if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
16469 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
16470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16471 fi
16472 if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
16473 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
16474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16475 fi
16476 if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
16477 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
16478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16479 fi
16480 if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
16481 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
16482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16483 fi
16484 if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
16485 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
16486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16487 fi
16488 if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
16489 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
16490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16491 fi
16492 if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
16493 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
16494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16495 fi
16496 if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
16497 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
16498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16499 fi
16500 if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
16501 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
16502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16503 fi
16504 if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
16505 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
16506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16507 fi
16508 if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
16509 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
16510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16511 fi
16512 if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
16513 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
16514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16515 fi
16516 if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
16517 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
16518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16519 fi
16520 if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
16521 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
16522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16523 fi
16524 if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
16525 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
16526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16527 fi
16528 if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
16529 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
16530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16531 fi
16532 if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
16533 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
16534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16535 fi
16536 if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
16537 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
16538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16539 fi
16540 if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
16541 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
16542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16543 fi
16544 if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
16545 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
16546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16547 fi
16548 if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
16549 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
16550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16551 fi
16552 if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
16553 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
16554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16555 fi
16556 if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
16557 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
16558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16559 fi
16560 if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
16561 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
16562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16563 fi
16564 if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
16565 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
16566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16567 fi
16568 if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
16569 as_fn_error $? "conditional \"ENABLE_SIM\" was never defined.
16570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16571 fi
16572 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
16573 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
16574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16575 fi
16576
16577 : "${CONFIG_STATUS=./config.status}"
16578 ac_write_fail=0
16579 ac_clean_files_save=$ac_clean_files
16580 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16582 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16583 as_write_fail=0
16584 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16585 #! $SHELL
16586 # Generated by $as_me.
16587 # Run this file to recreate the current configuration.
16588 # Compiler output produced by configure, useful for debugging
16589 # configure, is in config.log if it exists.
16590
16591 debug=false
16592 ac_cs_recheck=false
16593 ac_cs_silent=false
16594
16595 SHELL=\${CONFIG_SHELL-$SHELL}
16596 export SHELL
16597 _ASEOF
16598 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16599 ## -------------------- ##
16600 ## M4sh Initialization. ##
16601 ## -------------------- ##
16602
16603 # Be more Bourne compatible
16604 DUALCASE=1; export DUALCASE # for MKS sh
16605 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16606 emulate sh
16607 NULLCMD=:
16608 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16609 # is contrary to our usage. Disable this feature.
16610 alias -g '${1+"$@"}'='"$@"'
16611 setopt NO_GLOB_SUBST
16612 else
16613 case `(set -o) 2>/dev/null` in #(
16614 *posix*) :
16615 set -o posix ;; #(
16616 *) :
16617 ;;
16618 esac
16619 fi
16620
16621
16622 as_nl='
16623 '
16624 export as_nl
16625 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16626 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16627 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16628 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16629 # Prefer a ksh shell builtin over an external printf program on Solaris,
16630 # but without wasting forks for bash or zsh.
16631 if test -z "$BASH_VERSION$ZSH_VERSION" \
16632 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16633 as_echo='print -r --'
16634 as_echo_n='print -rn --'
16635 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16636 as_echo='printf %s\n'
16637 as_echo_n='printf %s'
16638 else
16639 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16640 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16641 as_echo_n='/usr/ucb/echo -n'
16642 else
16643 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16644 as_echo_n_body='eval
16645 arg=$1;
16646 case $arg in #(
16647 *"$as_nl"*)
16648 expr "X$arg" : "X\\(.*\\)$as_nl";
16649 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16650 esac;
16651 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16652 '
16653 export as_echo_n_body
16654 as_echo_n='sh -c $as_echo_n_body as_echo'
16655 fi
16656 export as_echo_body
16657 as_echo='sh -c $as_echo_body as_echo'
16658 fi
16659
16660 # The user is always right.
16661 if test "${PATH_SEPARATOR+set}" != set; then
16662 PATH_SEPARATOR=:
16663 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16664 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16665 PATH_SEPARATOR=';'
16666 }
16667 fi
16668
16669
16670 # IFS
16671 # We need space, tab and new line, in precisely that order. Quoting is
16672 # there to prevent editors from complaining about space-tab.
16673 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16674 # splitting by setting IFS to empty value.)
16675 IFS=" "" $as_nl"
16676
16677 # Find who we are. Look in the path if we contain no directory separator.
16678 as_myself=
16679 case $0 in #((
16680 *[\\/]* ) as_myself=$0 ;;
16681 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16682 for as_dir in $PATH
16683 do
16684 IFS=$as_save_IFS
16685 test -z "$as_dir" && as_dir=.
16686 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16687 done
16688 IFS=$as_save_IFS
16689
16690 ;;
16691 esac
16692 # We did not find ourselves, most probably we were run as `sh COMMAND'
16693 # in which case we are not to be found in the path.
16694 if test "x$as_myself" = x; then
16695 as_myself=$0
16696 fi
16697 if test ! -f "$as_myself"; then
16698 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16699 exit 1
16700 fi
16701
16702 # Unset variables that we do not need and which cause bugs (e.g. in
16703 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16704 # suppresses any "Segmentation fault" message there. '((' could
16705 # trigger a bug in pdksh 5.2.14.
16706 for as_var in BASH_ENV ENV MAIL MAILPATH
16707 do eval test x\${$as_var+set} = xset \
16708 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16709 done
16710 PS1='$ '
16711 PS2='> '
16712 PS4='+ '
16713
16714 # NLS nuisances.
16715 LC_ALL=C
16716 export LC_ALL
16717 LANGUAGE=C
16718 export LANGUAGE
16719
16720 # CDPATH.
16721 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16722
16723
16724 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16725 # ----------------------------------------
16726 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16727 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16728 # script with STATUS, using 1 if that was 0.
16729 as_fn_error ()
16730 {
16731 as_status=$1; test $as_status -eq 0 && as_status=1
16732 if test "$4"; then
16733 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16734 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16735 fi
16736 $as_echo "$as_me: error: $2" >&2
16737 as_fn_exit $as_status
16738 } # as_fn_error
16739
16740
16741 # as_fn_set_status STATUS
16742 # -----------------------
16743 # Set $? to STATUS, without forking.
16744 as_fn_set_status ()
16745 {
16746 return $1
16747 } # as_fn_set_status
16748
16749 # as_fn_exit STATUS
16750 # -----------------
16751 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16752 as_fn_exit ()
16753 {
16754 set +e
16755 as_fn_set_status $1
16756 exit $1
16757 } # as_fn_exit
16758
16759 # as_fn_unset VAR
16760 # ---------------
16761 # Portably unset VAR.
16762 as_fn_unset ()
16763 {
16764 { eval $1=; unset $1;}
16765 }
16766 as_unset=as_fn_unset
16767 # as_fn_append VAR VALUE
16768 # ----------------------
16769 # Append the text in VALUE to the end of the definition contained in VAR. Take
16770 # advantage of any shell optimizations that allow amortized linear growth over
16771 # repeated appends, instead of the typical quadratic growth present in naive
16772 # implementations.
16773 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16774 eval 'as_fn_append ()
16775 {
16776 eval $1+=\$2
16777 }'
16778 else
16779 as_fn_append ()
16780 {
16781 eval $1=\$$1\$2
16782 }
16783 fi # as_fn_append
16784
16785 # as_fn_arith ARG...
16786 # ------------------
16787 # Perform arithmetic evaluation on the ARGs, and store the result in the
16788 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16789 # must be portable across $(()) and expr.
16790 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16791 eval 'as_fn_arith ()
16792 {
16793 as_val=$(( $* ))
16794 }'
16795 else
16796 as_fn_arith ()
16797 {
16798 as_val=`expr "$@" || test $? -eq 1`
16799 }
16800 fi # as_fn_arith
16801
16802
16803 if expr a : '\(a\)' >/dev/null 2>&1 &&
16804 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16805 as_expr=expr
16806 else
16807 as_expr=false
16808 fi
16809
16810 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16811 as_basename=basename
16812 else
16813 as_basename=false
16814 fi
16815
16816 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16817 as_dirname=dirname
16818 else
16819 as_dirname=false
16820 fi
16821
16822 as_me=`$as_basename -- "$0" ||
16823 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16824 X"$0" : 'X\(//\)$' \| \
16825 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16826 $as_echo X/"$0" |
16827 sed '/^.*\/\([^/][^/]*\)\/*$/{
16828 s//\1/
16829 q
16830 }
16831 /^X\/\(\/\/\)$/{
16832 s//\1/
16833 q
16834 }
16835 /^X\/\(\/\).*/{
16836 s//\1/
16837 q
16838 }
16839 s/.*/./; q'`
16840
16841 # Avoid depending upon Character Ranges.
16842 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16843 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16844 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16845 as_cr_digits='0123456789'
16846 as_cr_alnum=$as_cr_Letters$as_cr_digits
16847
16848 ECHO_C= ECHO_N= ECHO_T=
16849 case `echo -n x` in #(((((
16850 -n*)
16851 case `echo 'xy\c'` in
16852 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16853 xy) ECHO_C='\c';;
16854 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16855 ECHO_T=' ';;
16856 esac;;
16857 *)
16858 ECHO_N='-n';;
16859 esac
16860
16861 rm -f conf$$ conf$$.exe conf$$.file
16862 if test -d conf$$.dir; then
16863 rm -f conf$$.dir/conf$$.file
16864 else
16865 rm -f conf$$.dir
16866 mkdir conf$$.dir 2>/dev/null
16867 fi
16868 if (echo >conf$$.file) 2>/dev/null; then
16869 if ln -s conf$$.file conf$$ 2>/dev/null; then
16870 as_ln_s='ln -s'
16871 # ... but there are two gotchas:
16872 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16873 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16874 # In both cases, we have to default to `cp -pR'.
16875 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16876 as_ln_s='cp -pR'
16877 elif ln conf$$.file conf$$ 2>/dev/null; then
16878 as_ln_s=ln
16879 else
16880 as_ln_s='cp -pR'
16881 fi
16882 else
16883 as_ln_s='cp -pR'
16884 fi
16885 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16886 rmdir conf$$.dir 2>/dev/null
16887
16888
16889 # as_fn_mkdir_p
16890 # -------------
16891 # Create "$as_dir" as a directory, including parents if necessary.
16892 as_fn_mkdir_p ()
16893 {
16894
16895 case $as_dir in #(
16896 -*) as_dir=./$as_dir;;
16897 esac
16898 test -d "$as_dir" || eval $as_mkdir_p || {
16899 as_dirs=
16900 while :; do
16901 case $as_dir in #(
16902 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16903 *) as_qdir=$as_dir;;
16904 esac
16905 as_dirs="'$as_qdir' $as_dirs"
16906 as_dir=`$as_dirname -- "$as_dir" ||
16907 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16908 X"$as_dir" : 'X\(//\)[^/]' \| \
16909 X"$as_dir" : 'X\(//\)$' \| \
16910 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16911 $as_echo X"$as_dir" |
16912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16913 s//\1/
16914 q
16915 }
16916 /^X\(\/\/\)[^/].*/{
16917 s//\1/
16918 q
16919 }
16920 /^X\(\/\/\)$/{
16921 s//\1/
16922 q
16923 }
16924 /^X\(\/\).*/{
16925 s//\1/
16926 q
16927 }
16928 s/.*/./; q'`
16929 test -d "$as_dir" && break
16930 done
16931 test -z "$as_dirs" || eval "mkdir $as_dirs"
16932 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16933
16934
16935 } # as_fn_mkdir_p
16936 if mkdir -p . 2>/dev/null; then
16937 as_mkdir_p='mkdir -p "$as_dir"'
16938 else
16939 test -d ./-p && rmdir ./-p
16940 as_mkdir_p=false
16941 fi
16942
16943
16944 # as_fn_executable_p FILE
16945 # -----------------------
16946 # Test if FILE is an executable regular file.
16947 as_fn_executable_p ()
16948 {
16949 test -f "$1" && test -x "$1"
16950 } # as_fn_executable_p
16951 as_test_x='test -x'
16952 as_executable_p=as_fn_executable_p
16953
16954 # Sed expression to map a string onto a valid CPP name.
16955 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16956
16957 # Sed expression to map a string onto a valid variable name.
16958 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16959
16960
16961 exec 6>&1
16962 ## ----------------------------------- ##
16963 ## Main body of $CONFIG_STATUS script. ##
16964 ## ----------------------------------- ##
16965 _ASEOF
16966 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16967
16968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16969 # Save the log message, to keep $0 and so on meaningful, and to
16970 # report actual input values of CONFIG_FILES etc. instead of their
16971 # values after options handling.
16972 ac_log="
16973 This file was extended by sim $as_me 0, which was
16974 generated by GNU Autoconf 2.69. Invocation command line was
16975
16976 CONFIG_FILES = $CONFIG_FILES
16977 CONFIG_HEADERS = $CONFIG_HEADERS
16978 CONFIG_LINKS = $CONFIG_LINKS
16979 CONFIG_COMMANDS = $CONFIG_COMMANDS
16980 $ $0 $@
16981
16982 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16983 "
16984
16985 _ACEOF
16986
16987 case $ac_config_files in *"
16988 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16989 esac
16990
16991 case $ac_config_headers in *"
16992 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16993 esac
16994
16995
16996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16997 # Files that config.status was made for.
16998 config_files="$ac_config_files"
16999 config_headers="$ac_config_headers"
17000 config_commands="$ac_config_commands"
17001
17002 _ACEOF
17003
17004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17005 ac_cs_usage="\
17006 \`$as_me' instantiates files and other configuration actions
17007 from templates according to the current configuration. Unless the files
17008 and actions are specified as TAGs, all are instantiated by default.
17009
17010 Usage: $0 [OPTION]... [TAG]...
17011
17012 -h, --help print this help, then exit
17013 -V, --version print version number and configuration settings, then exit
17014 --config print configuration, then exit
17015 -q, --quiet, --silent
17016 do not print progress messages
17017 -d, --debug don't remove temporary files
17018 --recheck update $as_me by reconfiguring in the same conditions
17019 --file=FILE[:TEMPLATE]
17020 instantiate the configuration file FILE
17021 --header=FILE[:TEMPLATE]
17022 instantiate the configuration header FILE
17023
17024 Configuration files:
17025 $config_files
17026
17027 Configuration headers:
17028 $config_headers
17029
17030 Configuration commands:
17031 $config_commands
17032
17033 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
17034 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
17035
17036 _ACEOF
17037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17038 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17039 ac_cs_version="\\
17040 sim config.status 0
17041 configured by $0, generated by GNU Autoconf 2.69,
17042 with options \\"\$ac_cs_config\\"
17043
17044 Copyright (C) 2012 Free Software Foundation, Inc.
17045 This config.status script is free software; the Free Software Foundation
17046 gives unlimited permission to copy, distribute and modify it."
17047
17048 ac_pwd='$ac_pwd'
17049 srcdir='$srcdir'
17050 INSTALL='$INSTALL'
17051 MKDIR_P='$MKDIR_P'
17052 AWK='$AWK'
17053 test -n "\$AWK" || AWK=awk
17054 _ACEOF
17055
17056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17057 # The default lists apply if the user does not specify any file.
17058 ac_need_defaults=:
17059 while test $# != 0
17060 do
17061 case $1 in
17062 --*=?*)
17063 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17064 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17065 ac_shift=:
17066 ;;
17067 --*=)
17068 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17069 ac_optarg=
17070 ac_shift=:
17071 ;;
17072 *)
17073 ac_option=$1
17074 ac_optarg=$2
17075 ac_shift=shift
17076 ;;
17077 esac
17078
17079 case $ac_option in
17080 # Handling of the options.
17081 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17082 ac_cs_recheck=: ;;
17083 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17084 $as_echo "$ac_cs_version"; exit ;;
17085 --config | --confi | --conf | --con | --co | --c )
17086 $as_echo "$ac_cs_config"; exit ;;
17087 --debug | --debu | --deb | --de | --d | -d )
17088 debug=: ;;
17089 --file | --fil | --fi | --f )
17090 $ac_shift
17091 case $ac_optarg in
17092 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17093 '') as_fn_error $? "missing file argument" ;;
17094 esac
17095 as_fn_append CONFIG_FILES " '$ac_optarg'"
17096 ac_need_defaults=false;;
17097 --header | --heade | --head | --hea )
17098 $ac_shift
17099 case $ac_optarg in
17100 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17101 esac
17102 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17103 ac_need_defaults=false;;
17104 --he | --h)
17105 # Conflict between --help and --header
17106 as_fn_error $? "ambiguous option: \`$1'
17107 Try \`$0 --help' for more information.";;
17108 --help | --hel | -h )
17109 $as_echo "$ac_cs_usage"; exit ;;
17110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17111 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17112 ac_cs_silent=: ;;
17113
17114 # This is an error.
17115 -*) as_fn_error $? "unrecognized option: \`$1'
17116 Try \`$0 --help' for more information." ;;
17117
17118 *) as_fn_append ac_config_targets " $1"
17119 ac_need_defaults=false ;;
17120
17121 esac
17122 shift
17123 done
17124
17125 ac_configure_extra_args=
17126
17127 if $ac_cs_silent; then
17128 exec 6>/dev/null
17129 ac_configure_extra_args="$ac_configure_extra_args --silent"
17130 fi
17131
17132 _ACEOF
17133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17134 if \$ac_cs_recheck; then
17135 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17136 shift
17137 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17138 CONFIG_SHELL='$SHELL'
17139 export CONFIG_SHELL
17140 exec "\$@"
17141 fi
17142
17143 _ACEOF
17144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17145 exec 5>>config.log
17146 {
17147 echo
17148 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17149 ## Running $as_me. ##
17150 _ASBOX
17151 $as_echo "$ac_log"
17152 } >&5
17153
17154 _ACEOF
17155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17156 #
17157 # INIT-COMMANDS
17158 #
17159
17160
17161 # The HP-UX ksh and POSIX shell print the target directory to stdout
17162 # if CDPATH is set.
17163 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17164
17165 sed_quote_subst='$sed_quote_subst'
17166 double_quote_subst='$double_quote_subst'
17167 delay_variable_subst='$delay_variable_subst'
17168 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17169 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17170 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17171 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17172 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17173 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17174 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17175 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17176 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17177 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17178 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17179 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17180 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17181 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17182 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17183 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17184 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17185 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17186 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17187 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17188 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17189 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17190 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17191 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17192 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17193 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17194 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17195 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17196 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17197 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17198 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17199 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17200 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17201 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17202 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17203 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17204 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17205 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17206 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17207 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17208 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17209 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17210 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17211 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17212 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17213 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17214 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17215 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17216 lt_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"`'
17217 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17218 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17219 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17220 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17221 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17222 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17223 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17224 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17225 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17226 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17227 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17228 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17229 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17230 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17231 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17232 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17233 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17234 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17235 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17236 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17237 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17238 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17239 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17240 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17241 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17242 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17243 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17244 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17245 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17246 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17247 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17248 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17249 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17250 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17251 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17252 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17253 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17254 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17255 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17256 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17257 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17258 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17259 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17260 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17261 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17262 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17263 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17264 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17265 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17266 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17267 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17268 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17269 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17270 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17271 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17272 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17273 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17274 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17275 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17276 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17277 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17278 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17279 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17280 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17281 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17282 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17283 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17284 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17285 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17286 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17287 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17288
17289 LTCC='$LTCC'
17290 LTCFLAGS='$LTCFLAGS'
17291 compiler='$compiler_DEFAULT'
17292
17293 # A function that is used when there is no print builtin or printf.
17294 func_fallback_echo ()
17295 {
17296 eval 'cat <<_LTECHO_EOF
17297 \$1
17298 _LTECHO_EOF'
17299 }
17300
17301 # Quote evaled strings.
17302 for var in SHELL \
17303 ECHO \
17304 SED \
17305 GREP \
17306 EGREP \
17307 FGREP \
17308 LD \
17309 NM \
17310 LN_S \
17311 lt_SP2NL \
17312 lt_NL2SP \
17313 reload_flag \
17314 OBJDUMP \
17315 deplibs_check_method \
17316 file_magic_cmd \
17317 AR \
17318 AR_FLAGS \
17319 STRIP \
17320 RANLIB \
17321 CC \
17322 CFLAGS \
17323 compiler \
17324 lt_cv_sys_global_symbol_pipe \
17325 lt_cv_sys_global_symbol_to_cdecl \
17326 lt_cv_sys_global_symbol_to_c_name_address \
17327 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17328 lt_prog_compiler_no_builtin_flag \
17329 lt_prog_compiler_wl \
17330 lt_prog_compiler_pic \
17331 lt_prog_compiler_static \
17332 lt_cv_prog_compiler_c_o \
17333 need_locks \
17334 DSYMUTIL \
17335 NMEDIT \
17336 LIPO \
17337 OTOOL \
17338 OTOOL64 \
17339 shrext_cmds \
17340 export_dynamic_flag_spec \
17341 whole_archive_flag_spec \
17342 compiler_needs_object \
17343 with_gnu_ld \
17344 allow_undefined_flag \
17345 no_undefined_flag \
17346 hardcode_libdir_flag_spec \
17347 hardcode_libdir_flag_spec_ld \
17348 hardcode_libdir_separator \
17349 fix_srcfile_path \
17350 exclude_expsyms \
17351 include_expsyms \
17352 file_list_spec \
17353 variables_saved_for_relink \
17354 libname_spec \
17355 library_names_spec \
17356 soname_spec \
17357 install_override_mode \
17358 finish_eval \
17359 old_striplib \
17360 striplib; do
17361 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17362 *[\\\\\\\`\\"\\\$]*)
17363 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17364 ;;
17365 *)
17366 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17367 ;;
17368 esac
17369 done
17370
17371 # Double-quote double-evaled strings.
17372 for var in reload_cmds \
17373 old_postinstall_cmds \
17374 old_postuninstall_cmds \
17375 old_archive_cmds \
17376 extract_expsyms_cmds \
17377 old_archive_from_new_cmds \
17378 old_archive_from_expsyms_cmds \
17379 archive_cmds \
17380 archive_expsym_cmds \
17381 module_cmds \
17382 module_expsym_cmds \
17383 export_symbols_cmds \
17384 prelink_cmds \
17385 postinstall_cmds \
17386 postuninstall_cmds \
17387 finish_cmds \
17388 sys_lib_search_path_spec \
17389 sys_lib_dlsearch_path_spec; do
17390 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17391 *[\\\\\\\`\\"\\\$]*)
17392 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17393 ;;
17394 *)
17395 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17396 ;;
17397 esac
17398 done
17399
17400 ac_aux_dir='$ac_aux_dir'
17401 xsi_shell='$xsi_shell'
17402 lt_shell_append='$lt_shell_append'
17403
17404 # See if we are running on zsh, and set the options which allow our
17405 # commands through without removal of \ escapes INIT.
17406 if test -n "\${ZSH_VERSION+set}" ; then
17407 setopt NO_GLOB_SUBST
17408 fi
17409
17410
17411 PACKAGE='$PACKAGE'
17412 VERSION='$VERSION'
17413 TIMESTAMP='$TIMESTAMP'
17414 RM='$RM'
17415 ofile='$ofile'
17416
17417
17418
17419 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17420 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17421 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17422 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17423 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17424 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17425 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17426 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17427 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17428 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17429 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17430 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17431 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17432 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17433 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17434 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17435 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17436 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17437 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17438 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17439 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17440 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17441 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17442 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17443 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17444 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17445 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17446 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17447 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17448 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17449 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17450 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17451 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17452
17453 _ACEOF
17454
17455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17456
17457 # Handling of arguments.
17458 for ac_config_target in $ac_config_targets
17459 do
17460 case $ac_config_target in
17461 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17462 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17463 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17464 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:common/Make-common.in" ;;
17465 "aarch64/Makefile.sim") CONFIG_FILES="$CONFIG_FILES aarch64/Makefile.sim:aarch64/Makefile.in" ;;
17466 "aarch64/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS aarch64/Makefile" ;;
17467 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
17468 "arm/Makefile.sim") CONFIG_FILES="$CONFIG_FILES arm/Makefile.sim:arm/Makefile.in" ;;
17469 "arm/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS arm/Makefile" ;;
17470 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
17471 "avr/Makefile.sim") CONFIG_FILES="$CONFIG_FILES avr/Makefile.sim:avr/Makefile.in" ;;
17472 "avr/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS avr/Makefile" ;;
17473 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
17474 "bfin/Makefile.sim") CONFIG_FILES="$CONFIG_FILES bfin/Makefile.sim:bfin/Makefile.in" ;;
17475 "bfin/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bfin/Makefile" ;;
17476 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
17477 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
17478 "cr16/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cr16/Makefile.sim:cr16/Makefile.in" ;;
17479 "cr16/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cr16/Makefile" ;;
17480 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
17481 "cris/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cris/Makefile.sim:cris/Makefile.in" ;;
17482 "cris/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cris/Makefile" ;;
17483 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
17484 "d10v/Makefile.sim") CONFIG_FILES="$CONFIG_FILES d10v/Makefile.sim:d10v/Makefile.in" ;;
17485 "d10v/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS d10v/Makefile" ;;
17486 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
17487 "frv/Makefile.sim") CONFIG_FILES="$CONFIG_FILES frv/Makefile.sim:frv/Makefile.in" ;;
17488 "frv/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS frv/Makefile" ;;
17489 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
17490 "ft32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES ft32/Makefile.sim:ft32/Makefile.in" ;;
17491 "ft32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS ft32/Makefile" ;;
17492 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
17493 "h8300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES h8300/Makefile.sim:h8300/Makefile.in" ;;
17494 "h8300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS h8300/Makefile" ;;
17495 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
17496 "iq2000/Makefile.sim") CONFIG_FILES="$CONFIG_FILES iq2000/Makefile.sim:iq2000/Makefile.in" ;;
17497 "iq2000/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS iq2000/Makefile" ;;
17498 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
17499 "lm32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES lm32/Makefile.sim:lm32/Makefile.in" ;;
17500 "lm32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lm32/Makefile" ;;
17501 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
17502 "m32c/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32c/Makefile.sim:m32c/Makefile.in" ;;
17503 "m32c/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32c/Makefile" ;;
17504 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
17505 "m32r/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32r/Makefile.sim:m32r/Makefile.in" ;;
17506 "m32r/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32r/Makefile" ;;
17507 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
17508 "m68hc11/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile.sim:m68hc11/Makefile.in" ;;
17509 "m68hc11/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m68hc11/Makefile" ;;
17510 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
17511 "mcore/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mcore/Makefile.sim:mcore/Makefile.in" ;;
17512 "mcore/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mcore/Makefile" ;;
17513 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
17514 "microblaze/Makefile.sim") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile.sim:microblaze/Makefile.in" ;;
17515 "microblaze/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS microblaze/Makefile" ;;
17516 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
17517 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
17518 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
17519 "moxie/Makefile.sim") CONFIG_FILES="$CONFIG_FILES moxie/Makefile.sim:moxie/Makefile.in" ;;
17520 "moxie/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS moxie/Makefile" ;;
17521 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
17522 "msp430/Makefile.sim") CONFIG_FILES="$CONFIG_FILES msp430/Makefile.sim:msp430/Makefile.in" ;;
17523 "msp430/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS msp430/Makefile" ;;
17524 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
17525 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
17526 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
17527 "pru/Makefile.sim") CONFIG_FILES="$CONFIG_FILES pru/Makefile.sim:pru/Makefile.in" ;;
17528 "pru/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS pru/Makefile" ;;
17529 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
17530 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
17531 "rl78/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rl78/Makefile.sim:rl78/Makefile.in" ;;
17532 "rl78/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rl78/Makefile" ;;
17533 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
17534 "rx/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rx/Makefile.sim:rx/Makefile.in" ;;
17535 "rx/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rx/Makefile" ;;
17536 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
17537 "sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;;
17538 "sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;;
17539 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
17540 "erc32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES erc32/Makefile.sim:erc32/Makefile.in" ;;
17541 "erc32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS erc32/Makefile" ;;
17542 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
17543 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
17544 "example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;;
17545 "example-synacor/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS example-synacor/Makefile" ;;
17546 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
17547 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
17548 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17549 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17550
17551 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17552 esac
17553 done
17554
17555
17556 # If the user did not use the arguments to specify the items to instantiate,
17557 # then the envvar interface is used. Set only those that are not.
17558 # We use the long form for the default assignment because of an extremely
17559 # bizarre bug on SunOS 4.1.3.
17560 if $ac_need_defaults; then
17561 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17562 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17563 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17564 fi
17565
17566 # Have a temporary directory for convenience. Make it in the build tree
17567 # simply because there is no reason against having it here, and in addition,
17568 # creating and moving files from /tmp can sometimes cause problems.
17569 # Hook for its removal unless debugging.
17570 # Note that there is a small window in which the directory will not be cleaned:
17571 # after its creation but before its name has been assigned to `$tmp'.
17572 $debug ||
17573 {
17574 tmp= ac_tmp=
17575 trap 'exit_status=$?
17576 : "${ac_tmp:=$tmp}"
17577 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17578 ' 0
17579 trap 'as_fn_exit 1' 1 2 13 15
17580 }
17581 # Create a (secure) tmp directory for tmp files.
17582
17583 {
17584 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17585 test -d "$tmp"
17586 } ||
17587 {
17588 tmp=./conf$$-$RANDOM
17589 (umask 077 && mkdir "$tmp")
17590 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17591 ac_tmp=$tmp
17592
17593 # Set up the scripts for CONFIG_FILES section.
17594 # No need to generate them if there are no CONFIG_FILES.
17595 # This happens for instance with `./config.status config.h'.
17596 if test -n "$CONFIG_FILES"; then
17597
17598
17599 ac_cr=`echo X | tr X '\015'`
17600 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17601 # But we know of no other shell where ac_cr would be empty at this
17602 # point, so we can use a bashism as a fallback.
17603 if test "x$ac_cr" = x; then
17604 eval ac_cr=\$\'\\r\'
17605 fi
17606 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17607 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17608 ac_cs_awk_cr='\\r'
17609 else
17610 ac_cs_awk_cr=$ac_cr
17611 fi
17612
17613 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17614 _ACEOF
17615
17616
17617 {
17618 echo "cat >conf$$subs.awk <<_ACEOF" &&
17619 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17620 echo "_ACEOF"
17621 } >conf$$subs.sh ||
17622 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17623 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17624 ac_delim='%!_!# '
17625 for ac_last_try in false false false false false :; do
17626 . ./conf$$subs.sh ||
17627 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17628
17629 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17630 if test $ac_delim_n = $ac_delim_num; then
17631 break
17632 elif $ac_last_try; then
17633 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17634 else
17635 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17636 fi
17637 done
17638 rm -f conf$$subs.sh
17639
17640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17641 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17642 _ACEOF
17643 sed -n '
17644 h
17645 s/^/S["/; s/!.*/"]=/
17646 p
17647 g
17648 s/^[^!]*!//
17649 :repl
17650 t repl
17651 s/'"$ac_delim"'$//
17652 t delim
17653 :nl
17654 h
17655 s/\(.\{148\}\)..*/\1/
17656 t more1
17657 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17658 p
17659 n
17660 b repl
17661 :more1
17662 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17663 p
17664 g
17665 s/.\{148\}//
17666 t nl
17667 :delim
17668 h
17669 s/\(.\{148\}\)..*/\1/
17670 t more2
17671 s/["\\]/\\&/g; s/^/"/; s/$/"/
17672 p
17673 b
17674 :more2
17675 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17676 p
17677 g
17678 s/.\{148\}//
17679 t delim
17680 ' <conf$$subs.awk | sed '
17681 /^[^""]/{
17682 N
17683 s/\n//
17684 }
17685 ' >>$CONFIG_STATUS || ac_write_fail=1
17686 rm -f conf$$subs.awk
17687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17688 _ACAWK
17689 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17690 for (key in S) S_is_set[key] = 1
17691 FS = "\a"
17692
17693 }
17694 {
17695 line = $ 0
17696 nfields = split(line, field, "@")
17697 substed = 0
17698 len = length(field[1])
17699 for (i = 2; i < nfields; i++) {
17700 key = field[i]
17701 keylen = length(key)
17702 if (S_is_set[key]) {
17703 value = S[key]
17704 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17705 len += length(value) + length(field[++i])
17706 substed = 1
17707 } else
17708 len += 1 + keylen
17709 }
17710
17711 print line
17712 }
17713
17714 _ACAWK
17715 _ACEOF
17716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17717 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17718 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17719 else
17720 cat
17721 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17722 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17723 _ACEOF
17724
17725 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17726 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17727 # trailing colons and then remove the whole line if VPATH becomes empty
17728 # (actually we leave an empty line to preserve line numbers).
17729 if test "x$srcdir" = x.; then
17730 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17731 h
17732 s///
17733 s/^/:/
17734 s/[ ]*$/:/
17735 s/:\$(srcdir):/:/g
17736 s/:\${srcdir}:/:/g
17737 s/:@srcdir@:/:/g
17738 s/^:*//
17739 s/:*$//
17740 x
17741 s/\(=[ ]*\).*/\1/
17742 G
17743 s/\n//
17744 s/^[^=]*=[ ]*$//
17745 }'
17746 fi
17747
17748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17749 fi # test -n "$CONFIG_FILES"
17750
17751 # Set up the scripts for CONFIG_HEADERS section.
17752 # No need to generate them if there are no CONFIG_HEADERS.
17753 # This happens for instance with `./config.status Makefile'.
17754 if test -n "$CONFIG_HEADERS"; then
17755 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17756 BEGIN {
17757 _ACEOF
17758
17759 # Transform confdefs.h into an awk script `defines.awk', embedded as
17760 # here-document in config.status, that substitutes the proper values into
17761 # config.h.in to produce config.h.
17762
17763 # Create a delimiter string that does not exist in confdefs.h, to ease
17764 # handling of long lines.
17765 ac_delim='%!_!# '
17766 for ac_last_try in false false :; do
17767 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17768 if test -z "$ac_tt"; then
17769 break
17770 elif $ac_last_try; then
17771 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17772 else
17773 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17774 fi
17775 done
17776
17777 # For the awk script, D is an array of macro values keyed by name,
17778 # likewise P contains macro parameters if any. Preserve backslash
17779 # newline sequences.
17780
17781 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17782 sed -n '
17783 s/.\{148\}/&'"$ac_delim"'/g
17784 t rset
17785 :rset
17786 s/^[ ]*#[ ]*define[ ][ ]*/ /
17787 t def
17788 d
17789 :def
17790 s/\\$//
17791 t bsnl
17792 s/["\\]/\\&/g
17793 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17794 D["\1"]=" \3"/p
17795 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17796 d
17797 :bsnl
17798 s/["\\]/\\&/g
17799 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17800 D["\1"]=" \3\\\\\\n"\\/p
17801 t cont
17802 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17803 t cont
17804 d
17805 :cont
17806 n
17807 s/.\{148\}/&'"$ac_delim"'/g
17808 t clear
17809 :clear
17810 s/\\$//
17811 t bsnlc
17812 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17813 d
17814 :bsnlc
17815 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17816 b cont
17817 ' <confdefs.h | sed '
17818 s/'"$ac_delim"'/"\\\
17819 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17820
17821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17822 for (key in D) D_is_set[key] = 1
17823 FS = "\a"
17824 }
17825 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17826 line = \$ 0
17827 split(line, arg, " ")
17828 if (arg[1] == "#") {
17829 defundef = arg[2]
17830 mac1 = arg[3]
17831 } else {
17832 defundef = substr(arg[1], 2)
17833 mac1 = arg[2]
17834 }
17835 split(mac1, mac2, "(") #)
17836 macro = mac2[1]
17837 prefix = substr(line, 1, index(line, defundef) - 1)
17838 if (D_is_set[macro]) {
17839 # Preserve the white space surrounding the "#".
17840 print prefix "define", macro P[macro] D[macro]
17841 next
17842 } else {
17843 # Replace #undef with comments. This is necessary, for example,
17844 # in the case of _POSIX_SOURCE, which is predefined and required
17845 # on some systems where configure will not decide to define it.
17846 if (defundef == "undef") {
17847 print "/*", prefix defundef, macro, "*/"
17848 next
17849 }
17850 }
17851 }
17852 { print }
17853 _ACAWK
17854 _ACEOF
17855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17856 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17857 fi # test -n "$CONFIG_HEADERS"
17858
17859
17860 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17861 shift
17862 for ac_tag
17863 do
17864 case $ac_tag in
17865 :[FHLC]) ac_mode=$ac_tag; continue;;
17866 esac
17867 case $ac_mode$ac_tag in
17868 :[FHL]*:*);;
17869 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17870 :[FH]-) ac_tag=-:-;;
17871 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17872 esac
17873 ac_save_IFS=$IFS
17874 IFS=:
17875 set x $ac_tag
17876 IFS=$ac_save_IFS
17877 shift
17878 ac_file=$1
17879 shift
17880
17881 case $ac_mode in
17882 :L) ac_source=$1;;
17883 :[FH])
17884 ac_file_inputs=
17885 for ac_f
17886 do
17887 case $ac_f in
17888 -) ac_f="$ac_tmp/stdin";;
17889 *) # Look for the file first in the build tree, then in the source tree
17890 # (if the path is not absolute). The absolute path cannot be DOS-style,
17891 # because $ac_f cannot contain `:'.
17892 test -f "$ac_f" ||
17893 case $ac_f in
17894 [\\/$]*) false;;
17895 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17896 esac ||
17897 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17898 esac
17899 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17900 as_fn_append ac_file_inputs " '$ac_f'"
17901 done
17902
17903 # Let's still pretend it is `configure' which instantiates (i.e., don't
17904 # use $as_me), people would be surprised to read:
17905 # /* config.h. Generated by config.status. */
17906 configure_input='Generated from '`
17907 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17908 `' by configure.'
17909 if test x"$ac_file" != x-; then
17910 configure_input="$ac_file. $configure_input"
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17912 $as_echo "$as_me: creating $ac_file" >&6;}
17913 fi
17914 # Neutralize special characters interpreted by sed in replacement strings.
17915 case $configure_input in #(
17916 *\&* | *\|* | *\\* )
17917 ac_sed_conf_input=`$as_echo "$configure_input" |
17918 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17919 *) ac_sed_conf_input=$configure_input;;
17920 esac
17921
17922 case $ac_tag in
17923 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17924 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17925 esac
17926 ;;
17927 esac
17928
17929 ac_dir=`$as_dirname -- "$ac_file" ||
17930 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17931 X"$ac_file" : 'X\(//\)[^/]' \| \
17932 X"$ac_file" : 'X\(//\)$' \| \
17933 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17934 $as_echo X"$ac_file" |
17935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17936 s//\1/
17937 q
17938 }
17939 /^X\(\/\/\)[^/].*/{
17940 s//\1/
17941 q
17942 }
17943 /^X\(\/\/\)$/{
17944 s//\1/
17945 q
17946 }
17947 /^X\(\/\).*/{
17948 s//\1/
17949 q
17950 }
17951 s/.*/./; q'`
17952 as_dir="$ac_dir"; as_fn_mkdir_p
17953 ac_builddir=.
17954
17955 case "$ac_dir" in
17956 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17957 *)
17958 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17959 # A ".." for each directory in $ac_dir_suffix.
17960 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17961 case $ac_top_builddir_sub in
17962 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17963 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17964 esac ;;
17965 esac
17966 ac_abs_top_builddir=$ac_pwd
17967 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17968 # for backward compatibility:
17969 ac_top_builddir=$ac_top_build_prefix
17970
17971 case $srcdir in
17972 .) # We are building in place.
17973 ac_srcdir=.
17974 ac_top_srcdir=$ac_top_builddir_sub
17975 ac_abs_top_srcdir=$ac_pwd ;;
17976 [\\/]* | ?:[\\/]* ) # Absolute name.
17977 ac_srcdir=$srcdir$ac_dir_suffix;
17978 ac_top_srcdir=$srcdir
17979 ac_abs_top_srcdir=$srcdir ;;
17980 *) # Relative name.
17981 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17982 ac_top_srcdir=$ac_top_build_prefix$srcdir
17983 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17984 esac
17985 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17986
17987
17988 case $ac_mode in
17989 :F)
17990 #
17991 # CONFIG_FILE
17992 #
17993
17994 case $INSTALL in
17995 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17996 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17997 esac
17998 ac_MKDIR_P=$MKDIR_P
17999 case $MKDIR_P in
18000 [\\/$]* | ?:[\\/]* ) ;;
18001 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18002 esac
18003 _ACEOF
18004
18005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18006 # If the template does not know about datarootdir, expand it.
18007 # FIXME: This hack should be removed a few years after 2.60.
18008 ac_datarootdir_hack=; ac_datarootdir_seen=
18009 ac_sed_dataroot='
18010 /datarootdir/ {
18011 p
18012 q
18013 }
18014 /@datadir@/p
18015 /@docdir@/p
18016 /@infodir@/p
18017 /@localedir@/p
18018 /@mandir@/p'
18019 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18020 *datarootdir*) ac_datarootdir_seen=yes;;
18021 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18023 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18024 _ACEOF
18025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18026 ac_datarootdir_hack='
18027 s&@datadir@&$datadir&g
18028 s&@docdir@&$docdir&g
18029 s&@infodir@&$infodir&g
18030 s&@localedir@&$localedir&g
18031 s&@mandir@&$mandir&g
18032 s&\\\${datarootdir}&$datarootdir&g' ;;
18033 esac
18034 _ACEOF
18035
18036 # Neutralize VPATH when `$srcdir' = `.'.
18037 # Shell code in configure.ac might set extrasub.
18038 # FIXME: do we really want to maintain this feature?
18039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18040 ac_sed_extra="$ac_vpsub
18041 $extrasub
18042 _ACEOF
18043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18044 :t
18045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18046 s|@configure_input@|$ac_sed_conf_input|;t t
18047 s&@top_builddir@&$ac_top_builddir_sub&;t t
18048 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18049 s&@srcdir@&$ac_srcdir&;t t
18050 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18051 s&@top_srcdir@&$ac_top_srcdir&;t t
18052 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18053 s&@builddir@&$ac_builddir&;t t
18054 s&@abs_builddir@&$ac_abs_builddir&;t t
18055 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18056 s&@INSTALL@&$ac_INSTALL&;t t
18057 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18058 $ac_datarootdir_hack
18059 "
18060 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18061 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18062
18063 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18064 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18065 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18066 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18068 which seems to be undefined. Please make sure it is defined" >&5
18069 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18070 which seems to be undefined. Please make sure it is defined" >&2;}
18071
18072 rm -f "$ac_tmp/stdin"
18073 case $ac_file in
18074 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18075 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18076 esac \
18077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18078 ;;
18079 :H)
18080 #
18081 # CONFIG_HEADER
18082 #
18083 if test x"$ac_file" != x-; then
18084 {
18085 $as_echo "/* $configure_input */" \
18086 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18087 } >"$ac_tmp/config.h" \
18088 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18089 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18091 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18092 else
18093 rm -f "$ac_file"
18094 mv "$ac_tmp/config.h" "$ac_file" \
18095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18096 fi
18097 else
18098 $as_echo "/* $configure_input */" \
18099 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18100 || as_fn_error $? "could not create -" "$LINENO" 5
18101 fi
18102 # Compute "$ac_file"'s index in $config_headers.
18103 _am_arg="$ac_file"
18104 _am_stamp_count=1
18105 for _am_header in $config_headers :; do
18106 case $_am_header in
18107 $_am_arg | $_am_arg:* )
18108 break ;;
18109 * )
18110 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18111 esac
18112 done
18113 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18114 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18115 X"$_am_arg" : 'X\(//\)[^/]' \| \
18116 X"$_am_arg" : 'X\(//\)$' \| \
18117 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18118 $as_echo X"$_am_arg" |
18119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18120 s//\1/
18121 q
18122 }
18123 /^X\(\/\/\)[^/].*/{
18124 s//\1/
18125 q
18126 }
18127 /^X\(\/\/\)$/{
18128 s//\1/
18129 q
18130 }
18131 /^X\(\/\).*/{
18132 s//\1/
18133 q
18134 }
18135 s/.*/./; q'`/stamp-h$_am_stamp_count
18136 ;;
18137
18138 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18139 $as_echo "$as_me: executing $ac_file commands" >&6;}
18140 ;;
18141 esac
18142
18143
18144 case $ac_file$ac_mode in
18145 "libtool":C)
18146
18147 # See if we are running on zsh, and set the options which allow our
18148 # commands through without removal of \ escapes.
18149 if test -n "${ZSH_VERSION+set}" ; then
18150 setopt NO_GLOB_SUBST
18151 fi
18152
18153 cfgfile="${ofile}T"
18154 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18155 $RM "$cfgfile"
18156
18157 cat <<_LT_EOF >> "$cfgfile"
18158 #! $SHELL
18159
18160 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18161 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18162 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18163 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18164 #
18165 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18166 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18167 # Written by Gordon Matzigkeit, 1996
18168 #
18169 # This file is part of GNU Libtool.
18170 #
18171 # GNU Libtool is free software; you can redistribute it and/or
18172 # modify it under the terms of the GNU General Public License as
18173 # published by the Free Software Foundation; either version 2 of
18174 # the License, or (at your option) any later version.
18175 #
18176 # As a special exception to the GNU General Public License,
18177 # if you distribute this file as part of a program or library that
18178 # is built using GNU Libtool, you may include this file under the
18179 # same distribution terms that you use for the rest of that program.
18180 #
18181 # GNU Libtool is distributed in the hope that it will be useful,
18182 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18183 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18184 # GNU General Public License for more details.
18185 #
18186 # You should have received a copy of the GNU General Public License
18187 # along with GNU Libtool; see the file COPYING. If not, a copy
18188 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18189 # obtained by writing to the Free Software Foundation, Inc.,
18190 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18191
18192
18193 # The names of the tagged configurations supported by this script.
18194 available_tags=""
18195
18196 # ### BEGIN LIBTOOL CONFIG
18197
18198 # Which release of libtool.m4 was used?
18199 macro_version=$macro_version
18200 macro_revision=$macro_revision
18201
18202 # Whether or not to build shared libraries.
18203 build_libtool_libs=$enable_shared
18204
18205 # Whether or not to build static libraries.
18206 build_old_libs=$enable_static
18207
18208 # What type of objects to build.
18209 pic_mode=$pic_mode
18210
18211 # Whether or not to optimize for fast installation.
18212 fast_install=$enable_fast_install
18213
18214 # Shell to use when invoking shell scripts.
18215 SHELL=$lt_SHELL
18216
18217 # An echo program that protects backslashes.
18218 ECHO=$lt_ECHO
18219
18220 # The host system.
18221 host_alias=$host_alias
18222 host=$host
18223 host_os=$host_os
18224
18225 # The build system.
18226 build_alias=$build_alias
18227 build=$build
18228 build_os=$build_os
18229
18230 # A sed program that does not truncate output.
18231 SED=$lt_SED
18232
18233 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18234 Xsed="\$SED -e 1s/^X//"
18235
18236 # A grep program that handles long lines.
18237 GREP=$lt_GREP
18238
18239 # An ERE matcher.
18240 EGREP=$lt_EGREP
18241
18242 # A literal string matcher.
18243 FGREP=$lt_FGREP
18244
18245 # A BSD- or MS-compatible name lister.
18246 NM=$lt_NM
18247
18248 # Whether we need soft or hard links.
18249 LN_S=$lt_LN_S
18250
18251 # What is the maximum length of a command?
18252 max_cmd_len=$max_cmd_len
18253
18254 # Object file suffix (normally "o").
18255 objext=$ac_objext
18256
18257 # Executable file suffix (normally "").
18258 exeext=$exeext
18259
18260 # whether the shell understands "unset".
18261 lt_unset=$lt_unset
18262
18263 # turn spaces into newlines.
18264 SP2NL=$lt_lt_SP2NL
18265
18266 # turn newlines into spaces.
18267 NL2SP=$lt_lt_NL2SP
18268
18269 # An object symbol dumper.
18270 OBJDUMP=$lt_OBJDUMP
18271
18272 # Method to check whether dependent libraries are shared objects.
18273 deplibs_check_method=$lt_deplibs_check_method
18274
18275 # Command to use when deplibs_check_method == "file_magic".
18276 file_magic_cmd=$lt_file_magic_cmd
18277
18278 # The archiver.
18279 AR=$lt_AR
18280 AR_FLAGS=$lt_AR_FLAGS
18281
18282 # A symbol stripping program.
18283 STRIP=$lt_STRIP
18284
18285 # Commands used to install an old-style archive.
18286 RANLIB=$lt_RANLIB
18287 old_postinstall_cmds=$lt_old_postinstall_cmds
18288 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18289
18290 # Whether to use a lock for old archive extraction.
18291 lock_old_archive_extraction=$lock_old_archive_extraction
18292
18293 # A C compiler.
18294 LTCC=$lt_CC
18295
18296 # LTCC compiler flags.
18297 LTCFLAGS=$lt_CFLAGS
18298
18299 # Take the output of nm and produce a listing of raw symbols and C names.
18300 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18301
18302 # Transform the output of nm in a proper C declaration.
18303 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18304
18305 # Transform the output of nm in a C name address pair.
18306 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18307
18308 # Transform the output of nm in a C name address pair when lib prefix is needed.
18309 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18310
18311 # The name of the directory that contains temporary libtool files.
18312 objdir=$objdir
18313
18314 # Used to examine libraries when file_magic_cmd begins with "file".
18315 MAGIC_CMD=$MAGIC_CMD
18316
18317 # Must we lock files when doing compilation?
18318 need_locks=$lt_need_locks
18319
18320 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18321 DSYMUTIL=$lt_DSYMUTIL
18322
18323 # Tool to change global to local symbols on Mac OS X.
18324 NMEDIT=$lt_NMEDIT
18325
18326 # Tool to manipulate fat objects and archives on Mac OS X.
18327 LIPO=$lt_LIPO
18328
18329 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18330 OTOOL=$lt_OTOOL
18331
18332 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18333 OTOOL64=$lt_OTOOL64
18334
18335 # Old archive suffix (normally "a").
18336 libext=$libext
18337
18338 # Shared library suffix (normally ".so").
18339 shrext_cmds=$lt_shrext_cmds
18340
18341 # The commands to extract the exported symbol list from a shared archive.
18342 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18343
18344 # Variables whose values should be saved in libtool wrapper scripts and
18345 # restored at link time.
18346 variables_saved_for_relink=$lt_variables_saved_for_relink
18347
18348 # Do we need the "lib" prefix for modules?
18349 need_lib_prefix=$need_lib_prefix
18350
18351 # Do we need a version for libraries?
18352 need_version=$need_version
18353
18354 # Library versioning type.
18355 version_type=$version_type
18356
18357 # Shared library runtime path variable.
18358 runpath_var=$runpath_var
18359
18360 # Shared library path variable.
18361 shlibpath_var=$shlibpath_var
18362
18363 # Is shlibpath searched before the hard-coded library search path?
18364 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18365
18366 # Format of library name prefix.
18367 libname_spec=$lt_libname_spec
18368
18369 # List of archive names. First name is the real one, the rest are links.
18370 # The last name is the one that the linker finds with -lNAME
18371 library_names_spec=$lt_library_names_spec
18372
18373 # The coded name of the library, if different from the real name.
18374 soname_spec=$lt_soname_spec
18375
18376 # Permission mode override for installation of shared libraries.
18377 install_override_mode=$lt_install_override_mode
18378
18379 # Command to use after installation of a shared archive.
18380 postinstall_cmds=$lt_postinstall_cmds
18381
18382 # Command to use after uninstallation of a shared archive.
18383 postuninstall_cmds=$lt_postuninstall_cmds
18384
18385 # Commands used to finish a libtool library installation in a directory.
18386 finish_cmds=$lt_finish_cmds
18387
18388 # As "finish_cmds", except a single script fragment to be evaled but
18389 # not shown.
18390 finish_eval=$lt_finish_eval
18391
18392 # Whether we should hardcode library paths into libraries.
18393 hardcode_into_libs=$hardcode_into_libs
18394
18395 # Compile-time system search path for libraries.
18396 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18397
18398 # Run-time system search path for libraries.
18399 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18400
18401 # Whether dlopen is supported.
18402 dlopen_support=$enable_dlopen
18403
18404 # Whether dlopen of programs is supported.
18405 dlopen_self=$enable_dlopen_self
18406
18407 # Whether dlopen of statically linked programs is supported.
18408 dlopen_self_static=$enable_dlopen_self_static
18409
18410 # Commands to strip libraries.
18411 old_striplib=$lt_old_striplib
18412 striplib=$lt_striplib
18413
18414
18415 # The linker used to build libraries.
18416 LD=$lt_LD
18417
18418 # How to create reloadable object files.
18419 reload_flag=$lt_reload_flag
18420 reload_cmds=$lt_reload_cmds
18421
18422 # Commands used to build an old-style archive.
18423 old_archive_cmds=$lt_old_archive_cmds
18424
18425 # A language specific compiler.
18426 CC=$lt_compiler
18427
18428 # Is the compiler the GNU compiler?
18429 with_gcc=$GCC
18430
18431 # Compiler flag to turn off builtin functions.
18432 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18433
18434 # How to pass a linker flag through the compiler.
18435 wl=$lt_lt_prog_compiler_wl
18436
18437 # Additional compiler flags for building library objects.
18438 pic_flag=$lt_lt_prog_compiler_pic
18439
18440 # Compiler flag to prevent dynamic linking.
18441 link_static_flag=$lt_lt_prog_compiler_static
18442
18443 # Does compiler simultaneously support -c and -o options?
18444 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18445
18446 # Whether or not to add -lc for building shared libraries.
18447 build_libtool_need_lc=$archive_cmds_need_lc
18448
18449 # Whether or not to disallow shared libs when runtime libs are static.
18450 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18451
18452 # Compiler flag to allow reflexive dlopens.
18453 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18454
18455 # Compiler flag to generate shared objects directly from archives.
18456 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18457
18458 # Whether the compiler copes with passing no objects directly.
18459 compiler_needs_object=$lt_compiler_needs_object
18460
18461 # Create an old-style archive from a shared archive.
18462 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18463
18464 # Create a temporary old-style archive to link instead of a shared archive.
18465 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18466
18467 # Commands used to build a shared archive.
18468 archive_cmds=$lt_archive_cmds
18469 archive_expsym_cmds=$lt_archive_expsym_cmds
18470
18471 # Commands used to build a loadable module if different from building
18472 # a shared archive.
18473 module_cmds=$lt_module_cmds
18474 module_expsym_cmds=$lt_module_expsym_cmds
18475
18476 # Whether we are building with GNU ld or not.
18477 with_gnu_ld=$lt_with_gnu_ld
18478
18479 # Flag that allows shared libraries with undefined symbols to be built.
18480 allow_undefined_flag=$lt_allow_undefined_flag
18481
18482 # Flag that enforces no undefined symbols.
18483 no_undefined_flag=$lt_no_undefined_flag
18484
18485 # Flag to hardcode \$libdir into a binary during linking.
18486 # This must work even if \$libdir does not exist
18487 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18488
18489 # If ld is used when linking, flag to hardcode \$libdir into a binary
18490 # during linking. This must work even if \$libdir does not exist.
18491 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18492
18493 # Whether we need a single "-rpath" flag with a separated argument.
18494 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18495
18496 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18497 # DIR into the resulting binary.
18498 hardcode_direct=$hardcode_direct
18499
18500 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18501 # DIR into the resulting binary and the resulting library dependency is
18502 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18503 # library is relocated.
18504 hardcode_direct_absolute=$hardcode_direct_absolute
18505
18506 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18507 # into the resulting binary.
18508 hardcode_minus_L=$hardcode_minus_L
18509
18510 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18511 # into the resulting binary.
18512 hardcode_shlibpath_var=$hardcode_shlibpath_var
18513
18514 # Set to "yes" if building a shared library automatically hardcodes DIR
18515 # into the library and all subsequent libraries and executables linked
18516 # against it.
18517 hardcode_automatic=$hardcode_automatic
18518
18519 # Set to yes if linker adds runtime paths of dependent libraries
18520 # to runtime path list.
18521 inherit_rpath=$inherit_rpath
18522
18523 # Whether libtool must link a program against all its dependency libraries.
18524 link_all_deplibs=$link_all_deplibs
18525
18526 # Fix the shell variable \$srcfile for the compiler.
18527 fix_srcfile_path=$lt_fix_srcfile_path
18528
18529 # Set to "yes" if exported symbols are required.
18530 always_export_symbols=$always_export_symbols
18531
18532 # The commands to list exported symbols.
18533 export_symbols_cmds=$lt_export_symbols_cmds
18534
18535 # Symbols that should not be listed in the preloaded symbols.
18536 exclude_expsyms=$lt_exclude_expsyms
18537
18538 # Symbols that must always be exported.
18539 include_expsyms=$lt_include_expsyms
18540
18541 # Commands necessary for linking programs (against libraries) with templates.
18542 prelink_cmds=$lt_prelink_cmds
18543
18544 # Specify filename containing input files.
18545 file_list_spec=$lt_file_list_spec
18546
18547 # How to hardcode a shared library path into an executable.
18548 hardcode_action=$hardcode_action
18549
18550 # ### END LIBTOOL CONFIG
18551
18552 _LT_EOF
18553
18554 case $host_os in
18555 aix3*)
18556 cat <<\_LT_EOF >> "$cfgfile"
18557 # AIX sometimes has problems with the GCC collect2 program. For some
18558 # reason, if we set the COLLECT_NAMES environment variable, the problems
18559 # vanish in a puff of smoke.
18560 if test "X${COLLECT_NAMES+set}" != Xset; then
18561 COLLECT_NAMES=
18562 export COLLECT_NAMES
18563 fi
18564 _LT_EOF
18565 ;;
18566 esac
18567
18568
18569 ltmain="$ac_aux_dir/ltmain.sh"
18570
18571
18572 # We use sed instead of cat because bash on DJGPP gets confused if
18573 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18574 # text mode, it properly converts lines to CR/LF. This bash problem
18575 # is reportedly fixed, but why not run on old versions too?
18576 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18577 || (rm -f "$cfgfile"; exit 1)
18578
18579 case $xsi_shell in
18580 yes)
18581 cat << \_LT_EOF >> "$cfgfile"
18582
18583 # func_dirname file append nondir_replacement
18584 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18585 # otherwise set result to NONDIR_REPLACEMENT.
18586 func_dirname ()
18587 {
18588 case ${1} in
18589 */*) func_dirname_result="${1%/*}${2}" ;;
18590 * ) func_dirname_result="${3}" ;;
18591 esac
18592 }
18593
18594 # func_basename file
18595 func_basename ()
18596 {
18597 func_basename_result="${1##*/}"
18598 }
18599
18600 # func_dirname_and_basename file append nondir_replacement
18601 # perform func_basename and func_dirname in a single function
18602 # call:
18603 # dirname: Compute the dirname of FILE. If nonempty,
18604 # add APPEND to the result, otherwise set result
18605 # to NONDIR_REPLACEMENT.
18606 # value returned in "$func_dirname_result"
18607 # basename: Compute filename of FILE.
18608 # value retuned in "$func_basename_result"
18609 # Implementation must be kept synchronized with func_dirname
18610 # and func_basename. For efficiency, we do not delegate to
18611 # those functions but instead duplicate the functionality here.
18612 func_dirname_and_basename ()
18613 {
18614 case ${1} in
18615 */*) func_dirname_result="${1%/*}${2}" ;;
18616 * ) func_dirname_result="${3}" ;;
18617 esac
18618 func_basename_result="${1##*/}"
18619 }
18620
18621 # func_stripname prefix suffix name
18622 # strip PREFIX and SUFFIX off of NAME.
18623 # PREFIX and SUFFIX must not contain globbing or regex special
18624 # characters, hashes, percent signs, but SUFFIX may contain a leading
18625 # dot (in which case that matches only a dot).
18626 func_stripname ()
18627 {
18628 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18629 # positional parameters, so assign one to ordinary parameter first.
18630 func_stripname_result=${3}
18631 func_stripname_result=${func_stripname_result#"${1}"}
18632 func_stripname_result=${func_stripname_result%"${2}"}
18633 }
18634
18635 # func_opt_split
18636 func_opt_split ()
18637 {
18638 func_opt_split_opt=${1%%=*}
18639 func_opt_split_arg=${1#*=}
18640 }
18641
18642 # func_lo2o object
18643 func_lo2o ()
18644 {
18645 case ${1} in
18646 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18647 *) func_lo2o_result=${1} ;;
18648 esac
18649 }
18650
18651 # func_xform libobj-or-source
18652 func_xform ()
18653 {
18654 func_xform_result=${1%.*}.lo
18655 }
18656
18657 # func_arith arithmetic-term...
18658 func_arith ()
18659 {
18660 func_arith_result=$(( $* ))
18661 }
18662
18663 # func_len string
18664 # STRING may not start with a hyphen.
18665 func_len ()
18666 {
18667 func_len_result=${#1}
18668 }
18669
18670 _LT_EOF
18671 ;;
18672 *) # Bourne compatible functions.
18673 cat << \_LT_EOF >> "$cfgfile"
18674
18675 # func_dirname file append nondir_replacement
18676 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18677 # otherwise set result to NONDIR_REPLACEMENT.
18678 func_dirname ()
18679 {
18680 # Extract subdirectory from the argument.
18681 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18682 if test "X$func_dirname_result" = "X${1}"; then
18683 func_dirname_result="${3}"
18684 else
18685 func_dirname_result="$func_dirname_result${2}"
18686 fi
18687 }
18688
18689 # func_basename file
18690 func_basename ()
18691 {
18692 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18693 }
18694
18695
18696 # func_stripname prefix suffix name
18697 # strip PREFIX and SUFFIX off of NAME.
18698 # PREFIX and SUFFIX must not contain globbing or regex special
18699 # characters, hashes, percent signs, but SUFFIX may contain a leading
18700 # dot (in which case that matches only a dot).
18701 # func_strip_suffix prefix name
18702 func_stripname ()
18703 {
18704 case ${2} in
18705 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18706 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18707 esac
18708 }
18709
18710 # sed scripts:
18711 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18712 my_sed_long_arg='1s/^-[^=]*=//'
18713
18714 # func_opt_split
18715 func_opt_split ()
18716 {
18717 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18718 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18719 }
18720
18721 # func_lo2o object
18722 func_lo2o ()
18723 {
18724 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18725 }
18726
18727 # func_xform libobj-or-source
18728 func_xform ()
18729 {
18730 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18731 }
18732
18733 # func_arith arithmetic-term...
18734 func_arith ()
18735 {
18736 func_arith_result=`expr "$@"`
18737 }
18738
18739 # func_len string
18740 # STRING may not start with a hyphen.
18741 func_len ()
18742 {
18743 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18744 }
18745
18746 _LT_EOF
18747 esac
18748
18749 case $lt_shell_append in
18750 yes)
18751 cat << \_LT_EOF >> "$cfgfile"
18752
18753 # func_append var value
18754 # Append VALUE to the end of shell variable VAR.
18755 func_append ()
18756 {
18757 eval "$1+=\$2"
18758 }
18759 _LT_EOF
18760 ;;
18761 *)
18762 cat << \_LT_EOF >> "$cfgfile"
18763
18764 # func_append var value
18765 # Append VALUE to the end of shell variable VAR.
18766 func_append ()
18767 {
18768 eval "$1=\$$1\$2"
18769 }
18770
18771 _LT_EOF
18772 ;;
18773 esac
18774
18775
18776 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18777 || (rm -f "$cfgfile"; exit 1)
18778
18779 mv -f "$cfgfile" "$ofile" ||
18780 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18781 chmod +x "$ofile"
18782
18783 ;;
18784 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18785 # Older Autoconf quotes --file arguments for eval, but not when files
18786 # are listed without --file. Let's play safe and only enable the eval
18787 # if we detect the quoting.
18788 case $CONFIG_FILES in
18789 *\'*) eval set x "$CONFIG_FILES" ;;
18790 *) set x $CONFIG_FILES ;;
18791 esac
18792 shift
18793 for mf
18794 do
18795 # Strip MF so we end up with the name of the file.
18796 mf=`echo "$mf" | sed -e 's/:.*$//'`
18797 # Check whether this is an Automake generated Makefile or not.
18798 # We used to match only the files named 'Makefile.in', but
18799 # some people rename them; so instead we look at the file content.
18800 # Grep'ing the first line is not enough: some people post-process
18801 # each Makefile.in and add a new line on top of each file to say so.
18802 # Grep'ing the whole file is not good either: AIX grep has a line
18803 # limit of 2048, but all sed's we know have understand at least 4000.
18804 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18805 dirpart=`$as_dirname -- "$mf" ||
18806 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18807 X"$mf" : 'X\(//\)[^/]' \| \
18808 X"$mf" : 'X\(//\)$' \| \
18809 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18810 $as_echo X"$mf" |
18811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18812 s//\1/
18813 q
18814 }
18815 /^X\(\/\/\)[^/].*/{
18816 s//\1/
18817 q
18818 }
18819 /^X\(\/\/\)$/{
18820 s//\1/
18821 q
18822 }
18823 /^X\(\/\).*/{
18824 s//\1/
18825 q
18826 }
18827 s/.*/./; q'`
18828 else
18829 continue
18830 fi
18831 # Extract the definition of DEPDIR, am__include, and am__quote
18832 # from the Makefile without running 'make'.
18833 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18834 test -z "$DEPDIR" && continue
18835 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18836 test -z "$am__include" && continue
18837 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18838 # Find all dependency output files, they are included files with
18839 # $(DEPDIR) in their names. We invoke sed twice because it is the
18840 # simplest approach to changing $(DEPDIR) to its actual value in the
18841 # expansion.
18842 for file in `sed -n "
18843 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18844 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18845 # Make sure the directory exists.
18846 test -f "$dirpart/$file" && continue
18847 fdir=`$as_dirname -- "$file" ||
18848 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18849 X"$file" : 'X\(//\)[^/]' \| \
18850 X"$file" : 'X\(//\)$' \| \
18851 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18852 $as_echo X"$file" |
18853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18854 s//\1/
18855 q
18856 }
18857 /^X\(\/\/\)[^/].*/{
18858 s//\1/
18859 q
18860 }
18861 /^X\(\/\/\)$/{
18862 s//\1/
18863 q
18864 }
18865 /^X\(\/\).*/{
18866 s//\1/
18867 q
18868 }
18869 s/.*/./; q'`
18870 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18871 # echo "creating $dirpart/$file"
18872 echo '# dummy' > "$dirpart/$file"
18873 done
18874 done
18875 }
18876 ;;
18877 "aarch64/Makefile":C) sed -n \
18878 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18879 /^srcdir = / s:$:/aarch64:
18880 p
18881 }' \
18882 <Make-common.sim >aarch64/Makesim1.tmp
18883 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >aarch64/Makesim2.tmp
18884 sed -e '/^## COMMON_PRE_/ r aarch64/Makesim1.tmp' \
18885 -e '/^## COMMON_POST_/ r aarch64/Makesim2.tmp' \
18886 <aarch64/Makefile.sim >aarch64/Makefile
18887 rm -f aarch64/Makesim1.tmp aarch64/Makesim2.tmp
18888 ;;
18889 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
18890 "arm/Makefile":C) sed -n \
18891 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18892 /^srcdir = / s:$:/arm:
18893 p
18894 }' \
18895 <Make-common.sim >arm/Makesim1.tmp
18896 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >arm/Makesim2.tmp
18897 sed -e '/^## COMMON_PRE_/ r arm/Makesim1.tmp' \
18898 -e '/^## COMMON_POST_/ r arm/Makesim2.tmp' \
18899 <arm/Makefile.sim >arm/Makefile
18900 rm -f arm/Makesim1.tmp arm/Makesim2.tmp
18901 ;;
18902 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
18903 "avr/Makefile":C) sed -n \
18904 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18905 /^srcdir = / s:$:/avr:
18906 p
18907 }' \
18908 <Make-common.sim >avr/Makesim1.tmp
18909 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >avr/Makesim2.tmp
18910 sed -e '/^## COMMON_PRE_/ r avr/Makesim1.tmp' \
18911 -e '/^## COMMON_POST_/ r avr/Makesim2.tmp' \
18912 <avr/Makefile.sim >avr/Makefile
18913 rm -f avr/Makesim1.tmp avr/Makesim2.tmp
18914 ;;
18915 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
18916 "bfin/Makefile":C) sed -n \
18917 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18918 /^srcdir = / s:$:/bfin:
18919 p
18920 }' \
18921 <Make-common.sim >bfin/Makesim1.tmp
18922 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >bfin/Makesim2.tmp
18923 sed -e '/^## COMMON_PRE_/ r bfin/Makesim1.tmp' \
18924 -e '/^## COMMON_POST_/ r bfin/Makesim2.tmp' \
18925 <bfin/Makefile.sim >bfin/Makefile
18926 rm -f bfin/Makesim1.tmp bfin/Makesim2.tmp
18927 ;;
18928 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
18929 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
18930 "cr16/Makefile":C) sed -n \
18931 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18932 /^srcdir = / s:$:/cr16:
18933 p
18934 }' \
18935 <Make-common.sim >cr16/Makesim1.tmp
18936 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cr16/Makesim2.tmp
18937 sed -e '/^## COMMON_PRE_/ r cr16/Makesim1.tmp' \
18938 -e '/^## COMMON_POST_/ r cr16/Makesim2.tmp' \
18939 <cr16/Makefile.sim >cr16/Makefile
18940 rm -f cr16/Makesim1.tmp cr16/Makesim2.tmp
18941 ;;
18942 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
18943 "cris/Makefile":C) sed -n \
18944 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18945 /^srcdir = / s:$:/cris:
18946 p
18947 }' \
18948 <Make-common.sim >cris/Makesim1.tmp
18949 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cris/Makesim2.tmp
18950 sed -e '/^## COMMON_PRE_/ r cris/Makesim1.tmp' \
18951 -e '/^## COMMON_POST_/ r cris/Makesim2.tmp' \
18952 <cris/Makefile.sim >cris/Makefile
18953 rm -f cris/Makesim1.tmp cris/Makesim2.tmp
18954 ;;
18955 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
18956 "d10v/Makefile":C) sed -n \
18957 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18958 /^srcdir = / s:$:/d10v:
18959 p
18960 }' \
18961 <Make-common.sim >d10v/Makesim1.tmp
18962 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >d10v/Makesim2.tmp
18963 sed -e '/^## COMMON_PRE_/ r d10v/Makesim1.tmp' \
18964 -e '/^## COMMON_POST_/ r d10v/Makesim2.tmp' \
18965 <d10v/Makefile.sim >d10v/Makefile
18966 rm -f d10v/Makesim1.tmp d10v/Makesim2.tmp
18967 ;;
18968 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
18969 "frv/Makefile":C) sed -n \
18970 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18971 /^srcdir = / s:$:/frv:
18972 p
18973 }' \
18974 <Make-common.sim >frv/Makesim1.tmp
18975 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >frv/Makesim2.tmp
18976 sed -e '/^## COMMON_PRE_/ r frv/Makesim1.tmp' \
18977 -e '/^## COMMON_POST_/ r frv/Makesim2.tmp' \
18978 <frv/Makefile.sim >frv/Makefile
18979 rm -f frv/Makesim1.tmp frv/Makesim2.tmp
18980 ;;
18981 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
18982 "ft32/Makefile":C) sed -n \
18983 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18984 /^srcdir = / s:$:/ft32:
18985 p
18986 }' \
18987 <Make-common.sim >ft32/Makesim1.tmp
18988 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >ft32/Makesim2.tmp
18989 sed -e '/^## COMMON_PRE_/ r ft32/Makesim1.tmp' \
18990 -e '/^## COMMON_POST_/ r ft32/Makesim2.tmp' \
18991 <ft32/Makefile.sim >ft32/Makefile
18992 rm -f ft32/Makesim1.tmp ft32/Makesim2.tmp
18993 ;;
18994 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
18995 "h8300/Makefile":C) sed -n \
18996 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18997 /^srcdir = / s:$:/h8300:
18998 p
18999 }' \
19000 <Make-common.sim >h8300/Makesim1.tmp
19001 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >h8300/Makesim2.tmp
19002 sed -e '/^## COMMON_PRE_/ r h8300/Makesim1.tmp' \
19003 -e '/^## COMMON_POST_/ r h8300/Makesim2.tmp' \
19004 <h8300/Makefile.sim >h8300/Makefile
19005 rm -f h8300/Makesim1.tmp h8300/Makesim2.tmp
19006 ;;
19007 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
19008 "iq2000/Makefile":C) sed -n \
19009 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19010 /^srcdir = / s:$:/iq2000:
19011 p
19012 }' \
19013 <Make-common.sim >iq2000/Makesim1.tmp
19014 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >iq2000/Makesim2.tmp
19015 sed -e '/^## COMMON_PRE_/ r iq2000/Makesim1.tmp' \
19016 -e '/^## COMMON_POST_/ r iq2000/Makesim2.tmp' \
19017 <iq2000/Makefile.sim >iq2000/Makefile
19018 rm -f iq2000/Makesim1.tmp iq2000/Makesim2.tmp
19019 ;;
19020 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
19021 "lm32/Makefile":C) sed -n \
19022 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19023 /^srcdir = / s:$:/lm32:
19024 p
19025 }' \
19026 <Make-common.sim >lm32/Makesim1.tmp
19027 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >lm32/Makesim2.tmp
19028 sed -e '/^## COMMON_PRE_/ r lm32/Makesim1.tmp' \
19029 -e '/^## COMMON_POST_/ r lm32/Makesim2.tmp' \
19030 <lm32/Makefile.sim >lm32/Makefile
19031 rm -f lm32/Makesim1.tmp lm32/Makesim2.tmp
19032 ;;
19033 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
19034 "m32c/Makefile":C) sed -n \
19035 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19036 /^srcdir = / s:$:/m32c:
19037 p
19038 }' \
19039 <Make-common.sim >m32c/Makesim1.tmp
19040 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32c/Makesim2.tmp
19041 sed -e '/^## COMMON_PRE_/ r m32c/Makesim1.tmp' \
19042 -e '/^## COMMON_POST_/ r m32c/Makesim2.tmp' \
19043 <m32c/Makefile.sim >m32c/Makefile
19044 rm -f m32c/Makesim1.tmp m32c/Makesim2.tmp
19045 ;;
19046 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
19047 "m32r/Makefile":C) sed -n \
19048 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19049 /^srcdir = / s:$:/m32r:
19050 p
19051 }' \
19052 <Make-common.sim >m32r/Makesim1.tmp
19053 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32r/Makesim2.tmp
19054 sed -e '/^## COMMON_PRE_/ r m32r/Makesim1.tmp' \
19055 -e '/^## COMMON_POST_/ r m32r/Makesim2.tmp' \
19056 <m32r/Makefile.sim >m32r/Makefile
19057 rm -f m32r/Makesim1.tmp m32r/Makesim2.tmp
19058 ;;
19059 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
19060 "m68hc11/Makefile":C) sed -n \
19061 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19062 /^srcdir = / s:$:/m68hc11:
19063 p
19064 }' \
19065 <Make-common.sim >m68hc11/Makesim1.tmp
19066 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m68hc11/Makesim2.tmp
19067 sed -e '/^## COMMON_PRE_/ r m68hc11/Makesim1.tmp' \
19068 -e '/^## COMMON_POST_/ r m68hc11/Makesim2.tmp' \
19069 <m68hc11/Makefile.sim >m68hc11/Makefile
19070 rm -f m68hc11/Makesim1.tmp m68hc11/Makesim2.tmp
19071 ;;
19072 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
19073 "mcore/Makefile":C) sed -n \
19074 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19075 /^srcdir = / s:$:/mcore:
19076 p
19077 }' \
19078 <Make-common.sim >mcore/Makesim1.tmp
19079 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mcore/Makesim2.tmp
19080 sed -e '/^## COMMON_PRE_/ r mcore/Makesim1.tmp' \
19081 -e '/^## COMMON_POST_/ r mcore/Makesim2.tmp' \
19082 <mcore/Makefile.sim >mcore/Makefile
19083 rm -f mcore/Makesim1.tmp mcore/Makesim2.tmp
19084 ;;
19085 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
19086 "microblaze/Makefile":C) sed -n \
19087 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19088 /^srcdir = / s:$:/microblaze:
19089 p
19090 }' \
19091 <Make-common.sim >microblaze/Makesim1.tmp
19092 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >microblaze/Makesim2.tmp
19093 sed -e '/^## COMMON_PRE_/ r microblaze/Makesim1.tmp' \
19094 -e '/^## COMMON_POST_/ r microblaze/Makesim2.tmp' \
19095 <microblaze/Makefile.sim >microblaze/Makefile
19096 rm -f microblaze/Makesim1.tmp microblaze/Makesim2.tmp
19097 ;;
19098 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
19099 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
19100 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
19101 "moxie/Makefile":C) sed -n \
19102 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19103 /^srcdir = / s:$:/moxie:
19104 p
19105 }' \
19106 <Make-common.sim >moxie/Makesim1.tmp
19107 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >moxie/Makesim2.tmp
19108 sed -e '/^## COMMON_PRE_/ r moxie/Makesim1.tmp' \
19109 -e '/^## COMMON_POST_/ r moxie/Makesim2.tmp' \
19110 <moxie/Makefile.sim >moxie/Makefile
19111 rm -f moxie/Makesim1.tmp moxie/Makesim2.tmp
19112 ;;
19113 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
19114 "msp430/Makefile":C) sed -n \
19115 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19116 /^srcdir = / s:$:/msp430:
19117 p
19118 }' \
19119 <Make-common.sim >msp430/Makesim1.tmp
19120 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >msp430/Makesim2.tmp
19121 sed -e '/^## COMMON_PRE_/ r msp430/Makesim1.tmp' \
19122 -e '/^## COMMON_POST_/ r msp430/Makesim2.tmp' \
19123 <msp430/Makefile.sim >msp430/Makefile
19124 rm -f msp430/Makesim1.tmp msp430/Makesim2.tmp
19125 ;;
19126 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
19127 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
19128 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
19129 "pru/Makefile":C) sed -n \
19130 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19131 /^srcdir = / s:$:/pru:
19132 p
19133 }' \
19134 <Make-common.sim >pru/Makesim1.tmp
19135 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >pru/Makesim2.tmp
19136 sed -e '/^## COMMON_PRE_/ r pru/Makesim1.tmp' \
19137 -e '/^## COMMON_POST_/ r pru/Makesim2.tmp' \
19138 <pru/Makefile.sim >pru/Makefile
19139 rm -f pru/Makesim1.tmp pru/Makesim2.tmp
19140 ;;
19141 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
19142 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
19143 "rl78/Makefile":C) sed -n \
19144 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19145 /^srcdir = / s:$:/rl78:
19146 p
19147 }' \
19148 <Make-common.sim >rl78/Makesim1.tmp
19149 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rl78/Makesim2.tmp
19150 sed -e '/^## COMMON_PRE_/ r rl78/Makesim1.tmp' \
19151 -e '/^## COMMON_POST_/ r rl78/Makesim2.tmp' \
19152 <rl78/Makefile.sim >rl78/Makefile
19153 rm -f rl78/Makesim1.tmp rl78/Makesim2.tmp
19154 ;;
19155 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
19156 "rx/Makefile":C) sed -n \
19157 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19158 /^srcdir = / s:$:/rx:
19159 p
19160 }' \
19161 <Make-common.sim >rx/Makesim1.tmp
19162 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rx/Makesim2.tmp
19163 sed -e '/^## COMMON_PRE_/ r rx/Makesim1.tmp' \
19164 -e '/^## COMMON_POST_/ r rx/Makesim2.tmp' \
19165 <rx/Makefile.sim >rx/Makefile
19166 rm -f rx/Makesim1.tmp rx/Makesim2.tmp
19167 ;;
19168 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
19169 "sh/Makefile":C) sed -n \
19170 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19171 /^srcdir = / s:$:/sh:
19172 p
19173 }' \
19174 <Make-common.sim >sh/Makesim1.tmp
19175 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >sh/Makesim2.tmp
19176 sed -e '/^## COMMON_PRE_/ r sh/Makesim1.tmp' \
19177 -e '/^## COMMON_POST_/ r sh/Makesim2.tmp' \
19178 <sh/Makefile.sim >sh/Makefile
19179 rm -f sh/Makesim1.tmp sh/Makesim2.tmp
19180 ;;
19181 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
19182 "erc32/Makefile":C) sed -n \
19183 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19184 /^srcdir = / s:$:/erc32:
19185 p
19186 }' \
19187 <Make-common.sim >erc32/Makesim1.tmp
19188 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >erc32/Makesim2.tmp
19189 sed -e '/^## COMMON_PRE_/ r erc32/Makesim1.tmp' \
19190 -e '/^## COMMON_POST_/ r erc32/Makesim2.tmp' \
19191 <erc32/Makefile.sim >erc32/Makefile
19192 rm -f erc32/Makesim1.tmp erc32/Makesim2.tmp
19193 ;;
19194 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
19195 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
19196 "example-synacor/Makefile":C) sed -n \
19197 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19198 /^srcdir = / s:$:/example-synacor:
19199 p
19200 }' \
19201 <Make-common.sim >example-synacor/Makesim1.tmp
19202 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >example-synacor/Makesim2.tmp
19203 sed -e '/^## COMMON_PRE_/ r example-synacor/Makesim1.tmp' \
19204 -e '/^## COMMON_POST_/ r example-synacor/Makesim2.tmp' \
19205 <example-synacor/Makefile.sim >example-synacor/Makefile
19206 rm -f example-synacor/Makesim1.tmp example-synacor/Makesim2.tmp
19207 ;;
19208 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
19209
19210 esac
19211 done # for ac_tag
19212
19213
19214 as_fn_exit 0
19215 _ACEOF
19216 ac_clean_files=$ac_clean_files_save
19217
19218 test $ac_write_fail = 0 ||
19219 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19220
19221
19222 # configure is writing to config.log, and then calls config.status.
19223 # config.status does its own redirection, appending to config.log.
19224 # Unfortunately, on DOS this fails, as config.log is still kept open
19225 # by configure, so config.status won't be able to write to it; its
19226 # output is simply discarded. So we exec the FD to /dev/null,
19227 # effectively closing config.log, so it can be properly (re)opened and
19228 # appended to by config.status. When coming back to configure, we
19229 # need to make the FD available again.
19230 if test "$no_create" != yes; then
19231 ac_cs_success=:
19232 ac_config_status_args=
19233 test "$silent" = yes &&
19234 ac_config_status_args="$ac_config_status_args --quiet"
19235 exec 5>/dev/null
19236 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19237 exec 5>>config.log
19238 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19239 # would make configure fail if this is the last instruction.
19240 $ac_cs_success || as_fn_exit 1
19241 fi
19242
19243 #
19244 # CONFIG_SUBDIRS section.
19245 #
19246 if test "$no_recursion" != yes; then
19247
19248 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19249 # so they do not pile up.
19250 ac_sub_configure_args=
19251 ac_prev=
19252 eval "set x $ac_configure_args"
19253 shift
19254 for ac_arg
19255 do
19256 if test -n "$ac_prev"; then
19257 ac_prev=
19258 continue
19259 fi
19260 case $ac_arg in
19261 -cache-file | --cache-file | --cache-fil | --cache-fi \
19262 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19263 ac_prev=cache_file ;;
19264 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19265 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19266 | --c=*)
19267 ;;
19268 --config-cache | -C)
19269 ;;
19270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19271 ac_prev=srcdir ;;
19272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19273 ;;
19274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19275 ac_prev=prefix ;;
19276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19277 ;;
19278 --disable-option-checking)
19279 ;;
19280 *)
19281 case $ac_arg in
19282 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19283 esac
19284 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19285 esac
19286 done
19287
19288 # Always prepend --prefix to ensure using the same prefix
19289 # in subdir configurations.
19290 ac_arg="--prefix=$prefix"
19291 case $ac_arg in
19292 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19293 esac
19294 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19295
19296 # Pass --silent
19297 if test "$silent" = yes; then
19298 ac_sub_configure_args="--silent $ac_sub_configure_args"
19299 fi
19300
19301 # Always prepend --disable-option-checking to silence warnings, since
19302 # different subdirs can have different --enable and --with options.
19303 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19304
19305 ac_popdir=`pwd`
19306 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19307
19308 # Do not complain, so a configure script can configure whichever
19309 # parts of a large source tree are present.
19310 test -d "$srcdir/$ac_dir" || continue
19311
19312 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19313 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19314 $as_echo "$ac_msg" >&6
19315 as_dir="$ac_dir"; as_fn_mkdir_p
19316 ac_builddir=.
19317
19318 case "$ac_dir" in
19319 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19320 *)
19321 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19322 # A ".." for each directory in $ac_dir_suffix.
19323 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19324 case $ac_top_builddir_sub in
19325 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19326 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19327 esac ;;
19328 esac
19329 ac_abs_top_builddir=$ac_pwd
19330 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19331 # for backward compatibility:
19332 ac_top_builddir=$ac_top_build_prefix
19333
19334 case $srcdir in
19335 .) # We are building in place.
19336 ac_srcdir=.
19337 ac_top_srcdir=$ac_top_builddir_sub
19338 ac_abs_top_srcdir=$ac_pwd ;;
19339 [\\/]* | ?:[\\/]* ) # Absolute name.
19340 ac_srcdir=$srcdir$ac_dir_suffix;
19341 ac_top_srcdir=$srcdir
19342 ac_abs_top_srcdir=$srcdir ;;
19343 *) # Relative name.
19344 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19345 ac_top_srcdir=$ac_top_build_prefix$srcdir
19346 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19347 esac
19348 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19349
19350
19351 cd "$ac_dir"
19352
19353 # Check for guested configure; otherwise get Cygnus style configure.
19354 if test -f "$ac_srcdir/configure.gnu"; then
19355 ac_sub_configure=$ac_srcdir/configure.gnu
19356 elif test -f "$ac_srcdir/configure"; then
19357 ac_sub_configure=$ac_srcdir/configure
19358 elif test -f "$ac_srcdir/configure.in"; then
19359 # This should be Cygnus configure.
19360 ac_sub_configure=$ac_aux_dir/configure
19361 else
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19363 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19364 ac_sub_configure=
19365 fi
19366
19367 # The recursion is here.
19368 if test -n "$ac_sub_configure"; then
19369 # Make the cache file name correct relative to the subdirectory.
19370 case $cache_file in
19371 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19372 *) # Relative name.
19373 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19374 esac
19375
19376 { $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
19377 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19378 # The eval makes quoting arguments work.
19379 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19380 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19381 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19382 fi
19383
19384 cd "$ac_popdir"
19385 done
19386 fi
19387 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19389 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19390 fi
19391