]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/configure
sim: formally assume unistd.h always exists (via gnulib)
[thirdparty/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_RISCV_BITSIZE
643 SIM_MIPS_GEN_MODE_MULTI_FALSE
644 SIM_MIPS_GEN_MODE_MULTI_TRUE
645 SIM_MIPS_GEN_MODE_M16_FALSE
646 SIM_MIPS_GEN_MODE_M16_TRUE
647 SIM_MIPS_GEN_MODE_SINGLE_FALSE
648 SIM_MIPS_GEN_MODE_SINGLE_TRUE
649 SIM_MIPS_MULTI_OBJ
650 SIM_MIPS_MULTI_SRC
651 SIM_MIPS_MULTI_IGEN_CONFIGS
652 SIM_MIPS_IGEN_ITABLE_FLAGS
653 SIM_MIPS_GEN
654 SIM_MIPS_M16_FLAGS
655 SIM_MIPS_SINGLE_FLAGS
656 SIM_MIPS_FPU_BITSIZE
657 SIM_MIPS_BITSIZE
658 SIM_MIPS_SUBTARGET
659 SIM_FRV_TRAPDUMP_FLAGS
660 IGEN_FLAGS_SMP
661 SIM_INLINE
662 SIM_HW_SOCKSER
663 SIM_HW_CFLAGS
664 SIM_ENABLE_HW_FALSE
665 SIM_ENABLE_HW_TRUE
666 cgen
667 cgendir
668 CGEN_MAINT
669 ENABLE_SIM_FALSE
670 ENABLE_SIM_TRUE
671 SIM_ENABLE_ARCH_examples_FALSE
672 SIM_ENABLE_ARCH_examples_TRUE
673 CC_FOR_TARGET_EXAMPLE_SYNACOR
674 LD_FOR_TARGET_EXAMPLE_SYNACOR
675 AS_FOR_TARGET_EXAMPLE_SYNACOR
676 SIM_ENABLE_ARCH_v850_FALSE
677 SIM_ENABLE_ARCH_v850_TRUE
678 CC_FOR_TARGET_V850
679 LD_FOR_TARGET_V850
680 AS_FOR_TARGET_V850
681 SIM_ENABLE_ARCH_erc32_FALSE
682 SIM_ENABLE_ARCH_erc32_TRUE
683 CC_FOR_TARGET_ERC32
684 LD_FOR_TARGET_ERC32
685 AS_FOR_TARGET_ERC32
686 SIM_ENABLE_ARCH_sh_FALSE
687 SIM_ENABLE_ARCH_sh_TRUE
688 CC_FOR_TARGET_SH
689 LD_FOR_TARGET_SH
690 AS_FOR_TARGET_SH
691 SIM_ENABLE_ARCH_rx_FALSE
692 SIM_ENABLE_ARCH_rx_TRUE
693 CC_FOR_TARGET_RX
694 LD_FOR_TARGET_RX
695 AS_FOR_TARGET_RX
696 SIM_ENABLE_ARCH_rl78_FALSE
697 SIM_ENABLE_ARCH_rl78_TRUE
698 CC_FOR_TARGET_RL78
699 LD_FOR_TARGET_RL78
700 AS_FOR_TARGET_RL78
701 SIM_ENABLE_ARCH_riscv_FALSE
702 SIM_ENABLE_ARCH_riscv_TRUE
703 CC_FOR_TARGET_RISCV
704 LD_FOR_TARGET_RISCV
705 AS_FOR_TARGET_RISCV
706 SIM_ENABLE_ARCH_pru_FALSE
707 SIM_ENABLE_ARCH_pru_TRUE
708 CC_FOR_TARGET_PRU
709 LD_FOR_TARGET_PRU
710 AS_FOR_TARGET_PRU
711 SIM_ENABLE_ARCH_ppc_FALSE
712 SIM_ENABLE_ARCH_ppc_TRUE
713 CC_FOR_TARGET_PPC
714 LD_FOR_TARGET_PPC
715 AS_FOR_TARGET_PPC
716 subdirs
717 SIM_ENABLE_ARCH_or1k_FALSE
718 SIM_ENABLE_ARCH_or1k_TRUE
719 CC_FOR_TARGET_OR1K
720 LD_FOR_TARGET_OR1K
721 AS_FOR_TARGET_OR1K
722 SIM_ENABLE_ARCH_msp430_FALSE
723 SIM_ENABLE_ARCH_msp430_TRUE
724 CC_FOR_TARGET_MSP430
725 LD_FOR_TARGET_MSP430
726 AS_FOR_TARGET_MSP430
727 SIM_ENABLE_ARCH_moxie_FALSE
728 SIM_ENABLE_ARCH_moxie_TRUE
729 CC_FOR_TARGET_MOXIE
730 LD_FOR_TARGET_MOXIE
731 AS_FOR_TARGET_MOXIE
732 SIM_ENABLE_ARCH_mn10300_FALSE
733 SIM_ENABLE_ARCH_mn10300_TRUE
734 CC_FOR_TARGET_MN10300
735 LD_FOR_TARGET_MN10300
736 AS_FOR_TARGET_MN10300
737 SIM_ENABLE_ARCH_mips_FALSE
738 SIM_ENABLE_ARCH_mips_TRUE
739 CC_FOR_TARGET_MIPS
740 LD_FOR_TARGET_MIPS
741 AS_FOR_TARGET_MIPS
742 SIM_ENABLE_ARCH_microblaze_FALSE
743 SIM_ENABLE_ARCH_microblaze_TRUE
744 CC_FOR_TARGET_MICROBLAZE
745 LD_FOR_TARGET_MICROBLAZE
746 AS_FOR_TARGET_MICROBLAZE
747 SIM_ENABLE_ARCH_mcore_FALSE
748 SIM_ENABLE_ARCH_mcore_TRUE
749 CC_FOR_TARGET_MCORE
750 LD_FOR_TARGET_MCORE
751 AS_FOR_TARGET_MCORE
752 SIM_ENABLE_ARCH_m68hc11_FALSE
753 SIM_ENABLE_ARCH_m68hc11_TRUE
754 CC_FOR_TARGET_M68HC11
755 LD_FOR_TARGET_M68HC11
756 AS_FOR_TARGET_M68HC11
757 SIM_ENABLE_ARCH_m32r_FALSE
758 SIM_ENABLE_ARCH_m32r_TRUE
759 CC_FOR_TARGET_M32R
760 LD_FOR_TARGET_M32R
761 AS_FOR_TARGET_M32R
762 SIM_ENABLE_ARCH_m32c_FALSE
763 SIM_ENABLE_ARCH_m32c_TRUE
764 CC_FOR_TARGET_M32C
765 LD_FOR_TARGET_M32C
766 AS_FOR_TARGET_M32C
767 SIM_ENABLE_ARCH_lm32_FALSE
768 SIM_ENABLE_ARCH_lm32_TRUE
769 CC_FOR_TARGET_LM32
770 LD_FOR_TARGET_LM32
771 AS_FOR_TARGET_LM32
772 SIM_ENABLE_ARCH_iq2000_FALSE
773 SIM_ENABLE_ARCH_iq2000_TRUE
774 CC_FOR_TARGET_IQ2000
775 LD_FOR_TARGET_IQ2000
776 AS_FOR_TARGET_IQ2000
777 SIM_ENABLE_ARCH_h8300_FALSE
778 SIM_ENABLE_ARCH_h8300_TRUE
779 CC_FOR_TARGET_H8300
780 LD_FOR_TARGET_H8300
781 AS_FOR_TARGET_H8300
782 SIM_ENABLE_ARCH_ft32_FALSE
783 SIM_ENABLE_ARCH_ft32_TRUE
784 CC_FOR_TARGET_FT32
785 LD_FOR_TARGET_FT32
786 AS_FOR_TARGET_FT32
787 SIM_ENABLE_ARCH_frv_FALSE
788 SIM_ENABLE_ARCH_frv_TRUE
789 CC_FOR_TARGET_FRV
790 LD_FOR_TARGET_FRV
791 AS_FOR_TARGET_FRV
792 SIM_ENABLE_ARCH_d10v_FALSE
793 SIM_ENABLE_ARCH_d10v_TRUE
794 CC_FOR_TARGET_D10V
795 LD_FOR_TARGET_D10V
796 AS_FOR_TARGET_D10V
797 SIM_ENABLE_ARCH_cris_FALSE
798 SIM_ENABLE_ARCH_cris_TRUE
799 CC_FOR_TARGET_CRIS
800 LD_FOR_TARGET_CRIS
801 AS_FOR_TARGET_CRIS
802 SIM_ENABLE_ARCH_cr16_FALSE
803 SIM_ENABLE_ARCH_cr16_TRUE
804 CC_FOR_TARGET_CR16
805 LD_FOR_TARGET_CR16
806 AS_FOR_TARGET_CR16
807 SIM_ENABLE_ARCH_bpf_FALSE
808 SIM_ENABLE_ARCH_bpf_TRUE
809 CC_FOR_TARGET_BPF
810 LD_FOR_TARGET_BPF
811 AS_FOR_TARGET_BPF
812 SIM_ENABLE_ARCH_bfin_FALSE
813 SIM_ENABLE_ARCH_bfin_TRUE
814 CC_FOR_TARGET_BFIN
815 LD_FOR_TARGET_BFIN
816 AS_FOR_TARGET_BFIN
817 SIM_ENABLE_ARCH_avr_FALSE
818 SIM_ENABLE_ARCH_avr_TRUE
819 CC_FOR_TARGET_AVR
820 LD_FOR_TARGET_AVR
821 AS_FOR_TARGET_AVR
822 SIM_ENABLE_ARCH_arm_FALSE
823 SIM_ENABLE_ARCH_arm_TRUE
824 CC_FOR_TARGET_ARM
825 LD_FOR_TARGET_ARM
826 AS_FOR_TARGET_ARM
827 SIM_ENABLE_ARCH_aarch64_FALSE
828 SIM_ENABLE_ARCH_aarch64_TRUE
829 CC_FOR_TARGET_AARCH64
830 LD_FOR_TARGET_AARCH64
831 AS_FOR_TARGET_AARCH64
832 LD_FOR_TARGET
833 AS_FOR_TARGET
834 CC_FOR_TARGET
835 SIM_ENABLED_ARCHES
836 SIM_PRIMARY_TARGET
837 AM_BACKSLASH
838 AM_DEFAULT_VERBOSITY
839 AM_DEFAULT_V
840 AM_V
841 am__fastdepCC_FALSE
842 am__fastdepCC_TRUE
843 CCDEPMODE
844 am__nodep
845 AMDEPBACKSLASH
846 AMDEP_FALSE
847 AMDEP_TRUE
848 am__quote
849 am__include
850 DEPDIR
851 am__untar
852 am__tar
853 AMTAR
854 am__leading_dot
855 SET_MAKE
856 mkdir_p
857 MKDIR_P
858 INSTALL_STRIP_PROGRAM
859 install_sh
860 MAKEINFO
861 AUTOHEADER
862 AUTOMAKE
863 AUTOCONF
864 ACLOCAL
865 VERSION
866 PACKAGE
867 CYGPATH_W
868 am__isrc
869 MAINT
870 MAINTAINER_MODE_FALSE
871 MAINTAINER_MODE_TRUE
872 READLINE_CFLAGS
873 READLINE_LIB
874 TERMCAP_LIB
875 SDL_LIBS
876 SDL_CFLAGS
877 OTOOL64
878 OTOOL
879 LIPO
880 NMEDIT
881 DSYMUTIL
882 AWK
883 STRIP
884 OBJDUMP
885 LN_S
886 NM
887 ac_ct_DUMPBIN
888 DUMPBIN
889 LD
890 FGREP
891 SED
892 LIBTOOL
893 LIBOBJS
894 C_DIALECT
895 PKG_CONFIG_LIBDIR
896 PKG_CONFIG_PATH
897 PKG_CONFIG
898 RANLIB
899 AR
900 LDFLAGS_FOR_BUILD
901 CPPFLAGS_FOR_BUILD
902 CFLAGS_FOR_BUILD
903 RANLIB_FOR_BUILD
904 CC_FOR_BUILD
905 AR_FOR_BUILD
906 DTC
907 INSTALL_DATA
908 INSTALL_SCRIPT
909 INSTALL_PROGRAM
910 EGREP
911 GREP
912 CPP
913 OBJEXT
914 EXEEXT
915 ac_ct_CC
916 CPPFLAGS
917 LDFLAGS
918 CFLAGS
919 CC
920 target_os
921 target_vendor
922 target_cpu
923 target
924 host_os
925 host_vendor
926 host_cpu
927 host
928 build_os
929 build_vendor
930 build_cpu
931 build
932 REPORT_BUGS_TEXI
933 REPORT_BUGS_TO
934 PKGVERSION
935 target_alias
936 host_alias
937 build_alias
938 LIBS
939 ECHO_T
940 ECHO_N
941 ECHO_C
942 DEFS
943 mandir
944 localedir
945 libdir
946 psdir
947 pdfdir
948 dvidir
949 htmldir
950 infodir
951 docdir
952 oldincludedir
953 includedir
954 localstatedir
955 sharedstatedir
956 sysconfdir
957 datadir
958 datarootdir
959 libexecdir
960 sbindir
961 bindir
962 program_transform_name
963 prefix
964 exec_prefix
965 PACKAGE_URL
966 PACKAGE_BUGREPORT
967 PACKAGE_STRING
968 PACKAGE_VERSION
969 PACKAGE_TARNAME
970 PACKAGE_NAME
971 PATH_SEPARATOR
972 SHELL
973 SIM_TOOLCHAIN_VARS
974 WERROR_CFLAGS
975 WARN_CFLAGS'
976 ac_subst_files=''
977 ac_user_opts='
978 enable_option_checking
979 with_pkgversion
980 with_bugurl
981 enable_shared
982 enable_static
983 with_pic
984 enable_fast_install
985 with_gnu_ld
986 enable_libtool_lock
987 enable_maintainer_mode
988 enable_dependency_tracking
989 enable_silent_rules
990 enable_sim
991 enable_example_sims
992 enable_targets
993 enable_sim_alignment
994 enable_sim_assert
995 enable_cgen_maint
996 enable_sim_debug
997 enable_sim_endian
998 enable_sim_environment
999 enable_sim_hardware
1000 enable_sim_inline
1001 enable_sim_profile
1002 enable_sim_reserved_bits
1003 enable_sim_scache
1004 enable_sim_smp
1005 enable_sim_stdio
1006 enable_sim_trace
1007 enable_werror
1008 enable_build_warnings
1009 enable_sim_build_warnings
1010 enable_sim_frv_trapdump
1011 enable_sim_rx_cycle_accurate
1012 '
1013 ac_precious_vars='build_alias
1014 host_alias
1015 target_alias
1016 CC
1017 CFLAGS
1018 LDFLAGS
1019 LIBS
1020 CPPFLAGS
1021 CPP
1022 PKG_CONFIG
1023 PKG_CONFIG_PATH
1024 PKG_CONFIG_LIBDIR
1025 SDL_CFLAGS
1026 SDL_LIBS
1027 AS_FOR_TARGET_AARCH64
1028 LD_FOR_TARGET_AARCH64
1029 CC_FOR_TARGET_AARCH64
1030 AS_FOR_TARGET_ARM
1031 LD_FOR_TARGET_ARM
1032 CC_FOR_TARGET_ARM
1033 AS_FOR_TARGET_AVR
1034 LD_FOR_TARGET_AVR
1035 CC_FOR_TARGET_AVR
1036 AS_FOR_TARGET_BFIN
1037 LD_FOR_TARGET_BFIN
1038 CC_FOR_TARGET_BFIN
1039 AS_FOR_TARGET_BPF
1040 LD_FOR_TARGET_BPF
1041 CC_FOR_TARGET_BPF
1042 AS_FOR_TARGET_CR16
1043 LD_FOR_TARGET_CR16
1044 CC_FOR_TARGET_CR16
1045 AS_FOR_TARGET_CRIS
1046 LD_FOR_TARGET_CRIS
1047 CC_FOR_TARGET_CRIS
1048 AS_FOR_TARGET_D10V
1049 LD_FOR_TARGET_D10V
1050 CC_FOR_TARGET_D10V
1051 AS_FOR_TARGET_FRV
1052 LD_FOR_TARGET_FRV
1053 CC_FOR_TARGET_FRV
1054 AS_FOR_TARGET_FT32
1055 LD_FOR_TARGET_FT32
1056 CC_FOR_TARGET_FT32
1057 AS_FOR_TARGET_H8300
1058 LD_FOR_TARGET_H8300
1059 CC_FOR_TARGET_H8300
1060 AS_FOR_TARGET_IQ2000
1061 LD_FOR_TARGET_IQ2000
1062 CC_FOR_TARGET_IQ2000
1063 AS_FOR_TARGET_LM32
1064 LD_FOR_TARGET_LM32
1065 CC_FOR_TARGET_LM32
1066 AS_FOR_TARGET_M32C
1067 LD_FOR_TARGET_M32C
1068 CC_FOR_TARGET_M32C
1069 AS_FOR_TARGET_M32R
1070 LD_FOR_TARGET_M32R
1071 CC_FOR_TARGET_M32R
1072 AS_FOR_TARGET_M68HC11
1073 LD_FOR_TARGET_M68HC11
1074 CC_FOR_TARGET_M68HC11
1075 AS_FOR_TARGET_MCORE
1076 LD_FOR_TARGET_MCORE
1077 CC_FOR_TARGET_MCORE
1078 AS_FOR_TARGET_MICROBLAZE
1079 LD_FOR_TARGET_MICROBLAZE
1080 CC_FOR_TARGET_MICROBLAZE
1081 AS_FOR_TARGET_MIPS
1082 LD_FOR_TARGET_MIPS
1083 CC_FOR_TARGET_MIPS
1084 AS_FOR_TARGET_MN10300
1085 LD_FOR_TARGET_MN10300
1086 CC_FOR_TARGET_MN10300
1087 AS_FOR_TARGET_MOXIE
1088 LD_FOR_TARGET_MOXIE
1089 CC_FOR_TARGET_MOXIE
1090 AS_FOR_TARGET_MSP430
1091 LD_FOR_TARGET_MSP430
1092 CC_FOR_TARGET_MSP430
1093 AS_FOR_TARGET_OR1K
1094 LD_FOR_TARGET_OR1K
1095 CC_FOR_TARGET_OR1K
1096 AS_FOR_TARGET_PPC
1097 LD_FOR_TARGET_PPC
1098 CC_FOR_TARGET_PPC
1099 AS_FOR_TARGET_PRU
1100 LD_FOR_TARGET_PRU
1101 CC_FOR_TARGET_PRU
1102 AS_FOR_TARGET_RISCV
1103 LD_FOR_TARGET_RISCV
1104 CC_FOR_TARGET_RISCV
1105 AS_FOR_TARGET_RL78
1106 LD_FOR_TARGET_RL78
1107 CC_FOR_TARGET_RL78
1108 AS_FOR_TARGET_RX
1109 LD_FOR_TARGET_RX
1110 CC_FOR_TARGET_RX
1111 AS_FOR_TARGET_SH
1112 LD_FOR_TARGET_SH
1113 CC_FOR_TARGET_SH
1114 AS_FOR_TARGET_ERC32
1115 LD_FOR_TARGET_ERC32
1116 CC_FOR_TARGET_ERC32
1117 AS_FOR_TARGET_V850
1118 LD_FOR_TARGET_V850
1119 CC_FOR_TARGET_V850
1120 AS_FOR_TARGET_EXAMPLE_SYNACOR
1121 LD_FOR_TARGET_EXAMPLE_SYNACOR
1122 CC_FOR_TARGET_EXAMPLE_SYNACOR'
1123 ac_subdirs_all='ppc'
1124
1125 # Initialize some variables set by options.
1126 ac_init_help=
1127 ac_init_version=false
1128 ac_unrecognized_opts=
1129 ac_unrecognized_sep=
1130 # The variables have the same names as the options, with
1131 # dashes changed to underlines.
1132 cache_file=/dev/null
1133 exec_prefix=NONE
1134 no_create=
1135 no_recursion=
1136 prefix=NONE
1137 program_prefix=NONE
1138 program_suffix=NONE
1139 program_transform_name=s,x,x,
1140 silent=
1141 site=
1142 srcdir=
1143 verbose=
1144 x_includes=NONE
1145 x_libraries=NONE
1146
1147 # Installation directory options.
1148 # These are left unexpanded so users can "make install exec_prefix=/foo"
1149 # and all the variables that are supposed to be based on exec_prefix
1150 # by default will actually change.
1151 # Use braces instead of parens because sh, perl, etc. also accept them.
1152 # (The list follows the same order as the GNU Coding Standards.)
1153 bindir='${exec_prefix}/bin'
1154 sbindir='${exec_prefix}/sbin'
1155 libexecdir='${exec_prefix}/libexec'
1156 datarootdir='${prefix}/share'
1157 datadir='${datarootdir}'
1158 sysconfdir='${prefix}/etc'
1159 sharedstatedir='${prefix}/com'
1160 localstatedir='${prefix}/var'
1161 includedir='${prefix}/include'
1162 oldincludedir='/usr/include'
1163 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1164 infodir='${datarootdir}/info'
1165 htmldir='${docdir}'
1166 dvidir='${docdir}'
1167 pdfdir='${docdir}'
1168 psdir='${docdir}'
1169 libdir='${exec_prefix}/lib'
1170 localedir='${datarootdir}/locale'
1171 mandir='${datarootdir}/man'
1172
1173 ac_prev=
1174 ac_dashdash=
1175 for ac_option
1176 do
1177 # If the previous option needs an argument, assign it.
1178 if test -n "$ac_prev"; then
1179 eval $ac_prev=\$ac_option
1180 ac_prev=
1181 continue
1182 fi
1183
1184 case $ac_option in
1185 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1186 *=) ac_optarg= ;;
1187 *) ac_optarg=yes ;;
1188 esac
1189
1190 # Accept the important Cygnus configure options, so we can diagnose typos.
1191
1192 case $ac_dashdash$ac_option in
1193 --)
1194 ac_dashdash=yes ;;
1195
1196 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1197 ac_prev=bindir ;;
1198 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1199 bindir=$ac_optarg ;;
1200
1201 -build | --build | --buil | --bui | --bu)
1202 ac_prev=build_alias ;;
1203 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1204 build_alias=$ac_optarg ;;
1205
1206 -cache-file | --cache-file | --cache-fil | --cache-fi \
1207 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1208 ac_prev=cache_file ;;
1209 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1210 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1211 cache_file=$ac_optarg ;;
1212
1213 --config-cache | -C)
1214 cache_file=config.cache ;;
1215
1216 -datadir | --datadir | --datadi | --datad)
1217 ac_prev=datadir ;;
1218 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1219 datadir=$ac_optarg ;;
1220
1221 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1222 | --dataroo | --dataro | --datar)
1223 ac_prev=datarootdir ;;
1224 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1225 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1226 datarootdir=$ac_optarg ;;
1227
1228 -disable-* | --disable-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid feature name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237 "enable_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval enable_$ac_useropt=no ;;
1243
1244 -docdir | --docdir | --docdi | --doc | --do)
1245 ac_prev=docdir ;;
1246 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1247 docdir=$ac_optarg ;;
1248
1249 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1250 ac_prev=dvidir ;;
1251 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1252 dvidir=$ac_optarg ;;
1253
1254 -enable-* | --enable-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error $? "invalid feature name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263 "enable_$ac_useropt"
1264 "*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval enable_$ac_useropt=\$ac_optarg ;;
1269
1270 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1271 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1272 | --exec | --exe | --ex)
1273 ac_prev=exec_prefix ;;
1274 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1275 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1276 | --exec=* | --exe=* | --ex=*)
1277 exec_prefix=$ac_optarg ;;
1278
1279 -gas | --gas | --ga | --g)
1280 # Obsolete; use --with-gas.
1281 with_gas=yes ;;
1282
1283 -help | --help | --hel | --he | -h)
1284 ac_init_help=long ;;
1285 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1286 ac_init_help=recursive ;;
1287 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1288 ac_init_help=short ;;
1289
1290 -host | --host | --hos | --ho)
1291 ac_prev=host_alias ;;
1292 -host=* | --host=* | --hos=* | --ho=*)
1293 host_alias=$ac_optarg ;;
1294
1295 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1296 ac_prev=htmldir ;;
1297 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1298 | --ht=*)
1299 htmldir=$ac_optarg ;;
1300
1301 -includedir | --includedir | --includedi | --included | --include \
1302 | --includ | --inclu | --incl | --inc)
1303 ac_prev=includedir ;;
1304 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1305 | --includ=* | --inclu=* | --incl=* | --inc=*)
1306 includedir=$ac_optarg ;;
1307
1308 -infodir | --infodir | --infodi | --infod | --info | --inf)
1309 ac_prev=infodir ;;
1310 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1311 infodir=$ac_optarg ;;
1312
1313 -libdir | --libdir | --libdi | --libd)
1314 ac_prev=libdir ;;
1315 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1316 libdir=$ac_optarg ;;
1317
1318 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1319 | --libexe | --libex | --libe)
1320 ac_prev=libexecdir ;;
1321 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1322 | --libexe=* | --libex=* | --libe=*)
1323 libexecdir=$ac_optarg ;;
1324
1325 -localedir | --localedir | --localedi | --localed | --locale)
1326 ac_prev=localedir ;;
1327 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1328 localedir=$ac_optarg ;;
1329
1330 -localstatedir | --localstatedir | --localstatedi | --localstated \
1331 | --localstate | --localstat | --localsta | --localst | --locals)
1332 ac_prev=localstatedir ;;
1333 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1334 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1335 localstatedir=$ac_optarg ;;
1336
1337 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1338 ac_prev=mandir ;;
1339 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1340 mandir=$ac_optarg ;;
1341
1342 -nfp | --nfp | --nf)
1343 # Obsolete; use --without-fp.
1344 with_fp=no ;;
1345
1346 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1347 | --no-cr | --no-c | -n)
1348 no_create=yes ;;
1349
1350 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1351 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1352 no_recursion=yes ;;
1353
1354 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1355 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1356 | --oldin | --oldi | --old | --ol | --o)
1357 ac_prev=oldincludedir ;;
1358 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1359 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1360 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1361 oldincludedir=$ac_optarg ;;
1362
1363 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1364 ac_prev=prefix ;;
1365 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1366 prefix=$ac_optarg ;;
1367
1368 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1369 | --program-pre | --program-pr | --program-p)
1370 ac_prev=program_prefix ;;
1371 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1372 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1373 program_prefix=$ac_optarg ;;
1374
1375 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1376 | --program-suf | --program-su | --program-s)
1377 ac_prev=program_suffix ;;
1378 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1379 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1380 program_suffix=$ac_optarg ;;
1381
1382 -program-transform-name | --program-transform-name \
1383 | --program-transform-nam | --program-transform-na \
1384 | --program-transform-n | --program-transform- \
1385 | --program-transform | --program-transfor \
1386 | --program-transfo | --program-transf \
1387 | --program-trans | --program-tran \
1388 | --progr-tra | --program-tr | --program-t)
1389 ac_prev=program_transform_name ;;
1390 -program-transform-name=* | --program-transform-name=* \
1391 | --program-transform-nam=* | --program-transform-na=* \
1392 | --program-transform-n=* | --program-transform-=* \
1393 | --program-transform=* | --program-transfor=* \
1394 | --program-transfo=* | --program-transf=* \
1395 | --program-trans=* | --program-tran=* \
1396 | --progr-tra=* | --program-tr=* | --program-t=*)
1397 program_transform_name=$ac_optarg ;;
1398
1399 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1400 ac_prev=pdfdir ;;
1401 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1402 pdfdir=$ac_optarg ;;
1403
1404 -psdir | --psdir | --psdi | --psd | --ps)
1405 ac_prev=psdir ;;
1406 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1407 psdir=$ac_optarg ;;
1408
1409 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1410 | -silent | --silent | --silen | --sile | --sil)
1411 silent=yes ;;
1412
1413 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1414 ac_prev=sbindir ;;
1415 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1416 | --sbi=* | --sb=*)
1417 sbindir=$ac_optarg ;;
1418
1419 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1420 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1421 | --sharedst | --shareds | --shared | --share | --shar \
1422 | --sha | --sh)
1423 ac_prev=sharedstatedir ;;
1424 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1425 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1426 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1427 | --sha=* | --sh=*)
1428 sharedstatedir=$ac_optarg ;;
1429
1430 -site | --site | --sit)
1431 ac_prev=site ;;
1432 -site=* | --site=* | --sit=*)
1433 site=$ac_optarg ;;
1434
1435 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1436 ac_prev=srcdir ;;
1437 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1438 srcdir=$ac_optarg ;;
1439
1440 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1441 | --syscon | --sysco | --sysc | --sys | --sy)
1442 ac_prev=sysconfdir ;;
1443 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1444 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1445 sysconfdir=$ac_optarg ;;
1446
1447 -target | --target | --targe | --targ | --tar | --ta | --t)
1448 ac_prev=target_alias ;;
1449 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1450 target_alias=$ac_optarg ;;
1451
1452 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1453 verbose=yes ;;
1454
1455 -version | --version | --versio | --versi | --vers | -V)
1456 ac_init_version=: ;;
1457
1458 -with-* | --with-*)
1459 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1460 # Reject names that are not valid shell variable names.
1461 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1462 as_fn_error $? "invalid package name: $ac_useropt"
1463 ac_useropt_orig=$ac_useropt
1464 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1465 case $ac_user_opts in
1466 *"
1467 "with_$ac_useropt"
1468 "*) ;;
1469 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1470 ac_unrecognized_sep=', ';;
1471 esac
1472 eval with_$ac_useropt=\$ac_optarg ;;
1473
1474 -without-* | --without-*)
1475 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1476 # Reject names that are not valid shell variable names.
1477 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1478 as_fn_error $? "invalid package name: $ac_useropt"
1479 ac_useropt_orig=$ac_useropt
1480 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1481 case $ac_user_opts in
1482 *"
1483 "with_$ac_useropt"
1484 "*) ;;
1485 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1486 ac_unrecognized_sep=', ';;
1487 esac
1488 eval with_$ac_useropt=no ;;
1489
1490 --x)
1491 # Obsolete; use --with-x.
1492 with_x=yes ;;
1493
1494 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1495 | --x-incl | --x-inc | --x-in | --x-i)
1496 ac_prev=x_includes ;;
1497 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1498 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1499 x_includes=$ac_optarg ;;
1500
1501 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1502 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1503 ac_prev=x_libraries ;;
1504 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1505 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1506 x_libraries=$ac_optarg ;;
1507
1508 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1509 Try \`$0 --help' for more information"
1510 ;;
1511
1512 *=*)
1513 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1514 # Reject names that are not valid shell variable names.
1515 case $ac_envvar in #(
1516 '' | [0-9]* | *[!_$as_cr_alnum]* )
1517 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1518 esac
1519 eval $ac_envvar=\$ac_optarg
1520 export $ac_envvar ;;
1521
1522 *)
1523 # FIXME: should be removed in autoconf 3.0.
1524 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1525 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1526 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1527 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1528 ;;
1529
1530 esac
1531 done
1532
1533 if test -n "$ac_prev"; then
1534 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1535 as_fn_error $? "missing argument to $ac_option"
1536 fi
1537
1538 if test -n "$ac_unrecognized_opts"; then
1539 case $enable_option_checking in
1540 no) ;;
1541 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1542 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1543 esac
1544 fi
1545
1546 # Check all directory arguments for consistency.
1547 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1548 datadir sysconfdir sharedstatedir localstatedir includedir \
1549 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1550 libdir localedir mandir
1551 do
1552 eval ac_val=\$$ac_var
1553 # Remove trailing slashes.
1554 case $ac_val in
1555 */ )
1556 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1557 eval $ac_var=\$ac_val;;
1558 esac
1559 # Be sure to have absolute directory names.
1560 case $ac_val in
1561 [\\/$]* | ?:[\\/]* ) continue;;
1562 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1563 esac
1564 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1565 done
1566
1567 # There might be people who depend on the old broken behavior: `$host'
1568 # used to hold the argument of --host etc.
1569 # FIXME: To remove some day.
1570 build=$build_alias
1571 host=$host_alias
1572 target=$target_alias
1573
1574 # FIXME: To remove some day.
1575 if test "x$host_alias" != x; then
1576 if test "x$build_alias" = x; then
1577 cross_compiling=maybe
1578 elif test "x$build_alias" != "x$host_alias"; then
1579 cross_compiling=yes
1580 fi
1581 fi
1582
1583 ac_tool_prefix=
1584 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1585
1586 test "$silent" = yes && exec 6>/dev/null
1587
1588
1589 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1590 ac_ls_di=`ls -di .` &&
1591 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1592 as_fn_error $? "working directory cannot be determined"
1593 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1594 as_fn_error $? "pwd does not report name of working directory"
1595
1596
1597 # Find the source files, if location was not specified.
1598 if test -z "$srcdir"; then
1599 ac_srcdir_defaulted=yes
1600 # Try the directory containing this script, then the parent directory.
1601 ac_confdir=`$as_dirname -- "$as_myself" ||
1602 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1603 X"$as_myself" : 'X\(//\)[^/]' \| \
1604 X"$as_myself" : 'X\(//\)$' \| \
1605 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1606 $as_echo X"$as_myself" |
1607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1608 s//\1/
1609 q
1610 }
1611 /^X\(\/\/\)[^/].*/{
1612 s//\1/
1613 q
1614 }
1615 /^X\(\/\/\)$/{
1616 s//\1/
1617 q
1618 }
1619 /^X\(\/\).*/{
1620 s//\1/
1621 q
1622 }
1623 s/.*/./; q'`
1624 srcdir=$ac_confdir
1625 if test ! -r "$srcdir/$ac_unique_file"; then
1626 srcdir=..
1627 fi
1628 else
1629 ac_srcdir_defaulted=no
1630 fi
1631 if test ! -r "$srcdir/$ac_unique_file"; then
1632 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1633 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1634 fi
1635 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1636 ac_abs_confdir=`(
1637 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1638 pwd)`
1639 # When building in place, set srcdir=.
1640 if test "$ac_abs_confdir" = "$ac_pwd"; then
1641 srcdir=.
1642 fi
1643 # Remove unnecessary trailing slashes from srcdir.
1644 # Double slashes in file names in object file debugging info
1645 # mess up M-x gdb in Emacs.
1646 case $srcdir in
1647 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1648 esac
1649 for ac_var in $ac_precious_vars; do
1650 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1651 eval ac_env_${ac_var}_value=\$${ac_var}
1652 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1653 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1654 done
1655
1656 #
1657 # Report the --help message.
1658 #
1659 if test "$ac_init_help" = "long"; then
1660 # Omit some internal or obsolete options to make the list less imposing.
1661 # This message is too long to be a string in the A/UX 3.1 sh.
1662 cat <<_ACEOF
1663 \`configure' configures sim 0 to adapt to many kinds of systems.
1664
1665 Usage: $0 [OPTION]... [VAR=VALUE]...
1666
1667 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1668 VAR=VALUE. See below for descriptions of some of the useful variables.
1669
1670 Defaults for the options are specified in brackets.
1671
1672 Configuration:
1673 -h, --help display this help and exit
1674 --help=short display options specific to this package
1675 --help=recursive display the short help of all the included packages
1676 -V, --version display version information and exit
1677 -q, --quiet, --silent do not print \`checking ...' messages
1678 --cache-file=FILE cache test results in FILE [disabled]
1679 -C, --config-cache alias for \`--cache-file=config.cache'
1680 -n, --no-create do not create output files
1681 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1682
1683 Installation directories:
1684 --prefix=PREFIX install architecture-independent files in PREFIX
1685 [$ac_default_prefix]
1686 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1687 [PREFIX]
1688
1689 By default, \`make install' will install all the files in
1690 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1691 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1692 for instance \`--prefix=\$HOME'.
1693
1694 For better control, use the options below.
1695
1696 Fine tuning of the installation directories:
1697 --bindir=DIR user executables [EPREFIX/bin]
1698 --sbindir=DIR system admin executables [EPREFIX/sbin]
1699 --libexecdir=DIR program executables [EPREFIX/libexec]
1700 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1701 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1702 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1703 --libdir=DIR object code libraries [EPREFIX/lib]
1704 --includedir=DIR C header files [PREFIX/include]
1705 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1706 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1707 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1708 --infodir=DIR info documentation [DATAROOTDIR/info]
1709 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1710 --mandir=DIR man documentation [DATAROOTDIR/man]
1711 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1712 --htmldir=DIR html documentation [DOCDIR]
1713 --dvidir=DIR dvi documentation [DOCDIR]
1714 --pdfdir=DIR pdf documentation [DOCDIR]
1715 --psdir=DIR ps documentation [DOCDIR]
1716 _ACEOF
1717
1718 cat <<\_ACEOF
1719
1720 Program names:
1721 --program-prefix=PREFIX prepend PREFIX to installed program names
1722 --program-suffix=SUFFIX append SUFFIX to installed program names
1723 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1724
1725 System types:
1726 --build=BUILD configure for building on BUILD [guessed]
1727 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1728 --target=TARGET configure for building compilers for TARGET [HOST]
1729 _ACEOF
1730 fi
1731
1732 if test -n "$ac_init_help"; then
1733 case $ac_init_help in
1734 short | recursive ) echo "Configuration of sim 0:";;
1735 esac
1736 cat <<\_ACEOF
1737
1738 Optional Features:
1739 --disable-option-checking ignore unrecognized --enable/--with options
1740 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1741 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1742 --enable-shared[=PKGS] build shared libraries [default=yes]
1743 --enable-static[=PKGS] build static libraries [default=yes]
1744 --enable-fast-install[=PKGS]
1745 optimize for fast installation [default=yes]
1746 --disable-libtool-lock avoid locking (might break parallel builds)
1747 --enable-maintainer-mode
1748 enable make rules and dependencies not useful (and
1749 sometimes confusing) to the casual installer
1750 --enable-dependency-tracking
1751 do not reject slow dependency extractors
1752 --disable-dependency-tracking
1753 speeds up one-time build
1754 --enable-silent-rules less verbose build output (undo: "make V=1")
1755 --disable-silent-rules verbose build output (undo: "make V=0")
1756 --enable-sim Enable the GNU simulator
1757 --enable-example-sims enable example GNU simulators
1758 --enable-targets alternative target configurations
1759 --enable-sim-alignment=align
1760 Specify strict, nonstrict or forced alignment of
1761 memory accesses
1762 --enable-sim-assert Specify whether to perform random assertions
1763 --enable-cgen-maint=DIR build cgen generated files
1764 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1765 itself)
1766 --enable-sim-endian=endian
1767 Specify target byte endian orientation
1768 --enable-sim-environment=environment
1769 Specify mixed, user, virtual or operating
1770 environment
1771 --enable-sim-hardware Whether to enable hardware/device simulation
1772 --enable-sim-inline=inlines
1773 Specify which functions should be inlined
1774 --enable-sim-profile=opts
1775 Enable profiling flags
1776 --enable-sim-reserved-bits
1777 Specify whether to check reserved bits in
1778 instruction
1779 --enable-sim-scache=size
1780 Specify simulator execution cache size
1781 --enable-sim-smp=n Specify number of processors to configure for
1782 (default 1)
1783 --enable-sim-stdio Specify whether to use stdio for console
1784 input/output
1785 --enable-sim-trace=opts Enable tracing of simulated programs
1786 --enable-werror treat compile warnings as errors
1787 --enable-build-warnings enable build-time compiler warnings if gcc is used
1788 --enable-sim-build-warnings
1789 enable SIM specific build-time compiler warnings if
1790 gcc is used
1791 --enable-sim-frv-trapdump
1792 Make unknown traps dump the registers
1793 --disable-sim-rx-cycle-accurate
1794 Disable cycle accurate simulation (faster runtime)
1795
1796 Optional Packages:
1797 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1798 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1799 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1800 --with-bugurl=URL Direct users to URL to report a bug
1801 --with-pic try to use only PIC/non-PIC objects [default=use
1802 both]
1803 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1804
1805 Some influential environment variables:
1806 CC C compiler command
1807 CFLAGS C compiler flags
1808 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1809 nonstandard directory <lib dir>
1810 LIBS libraries to pass to the linker, e.g. -l<library>
1811 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1812 you have headers in a nonstandard directory <include dir>
1813 CPP C preprocessor
1814 PKG_CONFIG path to pkg-config utility
1815 PKG_CONFIG_PATH
1816 directories to add to pkg-config's search path
1817 PKG_CONFIG_LIBDIR
1818 path overriding pkg-config's built-in search path
1819 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1820 SDL_LIBS linker flags for SDL, overriding pkg-config
1821 AS_FOR_TARGET_AARCH64
1822 Assembler for aarch64 tests
1823 LD_FOR_TARGET_AARCH64
1824 Linker for aarch64 tests
1825 CC_FOR_TARGET_AARCH64
1826 C compiler for aarch64 tests
1827 AS_FOR_TARGET_ARM
1828 Assembler for arm tests
1829 LD_FOR_TARGET_ARM
1830 Linker for arm tests
1831 CC_FOR_TARGET_ARM
1832 C compiler for arm tests
1833 AS_FOR_TARGET_AVR
1834 Assembler for avr tests
1835 LD_FOR_TARGET_AVR
1836 Linker for avr tests
1837 CC_FOR_TARGET_AVR
1838 C compiler for avr tests
1839 AS_FOR_TARGET_BFIN
1840 Assembler for bfin tests
1841 LD_FOR_TARGET_BFIN
1842 Linker for bfin tests
1843 CC_FOR_TARGET_BFIN
1844 C compiler for bfin tests
1845 AS_FOR_TARGET_BPF
1846 Assembler for bpf tests
1847 LD_FOR_TARGET_BPF
1848 Linker for bpf tests
1849 CC_FOR_TARGET_BPF
1850 C compiler for bpf tests
1851 AS_FOR_TARGET_CR16
1852 Assembler for cr16 tests
1853 LD_FOR_TARGET_CR16
1854 Linker for cr16 tests
1855 CC_FOR_TARGET_CR16
1856 C compiler for cr16 tests
1857 AS_FOR_TARGET_CRIS
1858 Assembler for cris tests
1859 LD_FOR_TARGET_CRIS
1860 Linker for cris tests
1861 CC_FOR_TARGET_CRIS
1862 C compiler for cris tests
1863 AS_FOR_TARGET_D10V
1864 Assembler for d10v tests
1865 LD_FOR_TARGET_D10V
1866 Linker for d10v tests
1867 CC_FOR_TARGET_D10V
1868 C compiler for d10v tests
1869 AS_FOR_TARGET_FRV
1870 Assembler for frv tests
1871 LD_FOR_TARGET_FRV
1872 Linker for frv tests
1873 CC_FOR_TARGET_FRV
1874 C compiler for frv tests
1875 AS_FOR_TARGET_FT32
1876 Assembler for ft32 tests
1877 LD_FOR_TARGET_FT32
1878 Linker for ft32 tests
1879 CC_FOR_TARGET_FT32
1880 C compiler for ft32 tests
1881 AS_FOR_TARGET_H8300
1882 Assembler for h8300 tests
1883 LD_FOR_TARGET_H8300
1884 Linker for h8300 tests
1885 CC_FOR_TARGET_H8300
1886 C compiler for h8300 tests
1887 AS_FOR_TARGET_IQ2000
1888 Assembler for iq2000 tests
1889 LD_FOR_TARGET_IQ2000
1890 Linker for iq2000 tests
1891 CC_FOR_TARGET_IQ2000
1892 C compiler for iq2000 tests
1893 AS_FOR_TARGET_LM32
1894 Assembler for lm32 tests
1895 LD_FOR_TARGET_LM32
1896 Linker for lm32 tests
1897 CC_FOR_TARGET_LM32
1898 C compiler for lm32 tests
1899 AS_FOR_TARGET_M32C
1900 Assembler for m32c tests
1901 LD_FOR_TARGET_M32C
1902 Linker for m32c tests
1903 CC_FOR_TARGET_M32C
1904 C compiler for m32c tests
1905 AS_FOR_TARGET_M32R
1906 Assembler for m32r tests
1907 LD_FOR_TARGET_M32R
1908 Linker for m32r tests
1909 CC_FOR_TARGET_M32R
1910 C compiler for m32r tests
1911 AS_FOR_TARGET_M68HC11
1912 Assembler for m68hc11 tests
1913 LD_FOR_TARGET_M68HC11
1914 Linker for m68hc11 tests
1915 CC_FOR_TARGET_M68HC11
1916 C compiler for m68hc11 tests
1917 AS_FOR_TARGET_MCORE
1918 Assembler for mcore tests
1919 LD_FOR_TARGET_MCORE
1920 Linker for mcore tests
1921 CC_FOR_TARGET_MCORE
1922 C compiler for mcore tests
1923 AS_FOR_TARGET_MICROBLAZE
1924 Assembler for microblaze tests
1925 LD_FOR_TARGET_MICROBLAZE
1926 Linker for microblaze tests
1927 CC_FOR_TARGET_MICROBLAZE
1928 C compiler for microblaze tests
1929 AS_FOR_TARGET_MIPS
1930 Assembler for mips tests
1931 LD_FOR_TARGET_MIPS
1932 Linker for mips tests
1933 CC_FOR_TARGET_MIPS
1934 C compiler for mips tests
1935 AS_FOR_TARGET_MN10300
1936 Assembler for mn10300 tests
1937 LD_FOR_TARGET_MN10300
1938 Linker for mn10300 tests
1939 CC_FOR_TARGET_MN10300
1940 C compiler for mn10300 tests
1941 AS_FOR_TARGET_MOXIE
1942 Assembler for moxie tests
1943 LD_FOR_TARGET_MOXIE
1944 Linker for moxie tests
1945 CC_FOR_TARGET_MOXIE
1946 C compiler for moxie tests
1947 AS_FOR_TARGET_MSP430
1948 Assembler for msp430 tests
1949 LD_FOR_TARGET_MSP430
1950 Linker for msp430 tests
1951 CC_FOR_TARGET_MSP430
1952 C compiler for msp430 tests
1953 AS_FOR_TARGET_OR1K
1954 Assembler for or1k tests
1955 LD_FOR_TARGET_OR1K
1956 Linker for or1k tests
1957 CC_FOR_TARGET_OR1K
1958 C compiler for or1k tests
1959 AS_FOR_TARGET_PPC
1960 Assembler for ppc tests
1961 LD_FOR_TARGET_PPC
1962 Linker for ppc tests
1963 CC_FOR_TARGET_PPC
1964 C compiler for ppc tests
1965 AS_FOR_TARGET_PRU
1966 Assembler for pru tests
1967 LD_FOR_TARGET_PRU
1968 Linker for pru tests
1969 CC_FOR_TARGET_PRU
1970 C compiler for pru tests
1971 AS_FOR_TARGET_RISCV
1972 Assembler for riscv tests
1973 LD_FOR_TARGET_RISCV
1974 Linker for riscv tests
1975 CC_FOR_TARGET_RISCV
1976 C compiler for riscv tests
1977 AS_FOR_TARGET_RL78
1978 Assembler for rl78 tests
1979 LD_FOR_TARGET_RL78
1980 Linker for rl78 tests
1981 CC_FOR_TARGET_RL78
1982 C compiler for rl78 tests
1983 AS_FOR_TARGET_RX
1984 Assembler for rx tests
1985 LD_FOR_TARGET_RX
1986 Linker for rx tests
1987 CC_FOR_TARGET_RX
1988 C compiler for rx tests
1989 AS_FOR_TARGET_SH
1990 Assembler for sh tests
1991 LD_FOR_TARGET_SH
1992 Linker for sh tests
1993 CC_FOR_TARGET_SH
1994 C compiler for sh tests
1995 AS_FOR_TARGET_ERC32
1996 Assembler for erc32 tests
1997 LD_FOR_TARGET_ERC32
1998 Linker for erc32 tests
1999 CC_FOR_TARGET_ERC32
2000 C compiler for erc32 tests
2001 AS_FOR_TARGET_V850
2002 Assembler for v850 tests
2003 LD_FOR_TARGET_V850
2004 Linker for v850 tests
2005 CC_FOR_TARGET_V850
2006 C compiler for v850 tests
2007 AS_FOR_TARGET_EXAMPLE_SYNACOR
2008 Assembler for example-synacor tests
2009 LD_FOR_TARGET_EXAMPLE_SYNACOR
2010 Linker for example-synacor tests
2011 CC_FOR_TARGET_EXAMPLE_SYNACOR
2012 C compiler for example-synacor tests
2013
2014 Use these variables to override the choices made by `configure' or to help
2015 it to find libraries and programs with nonstandard names/locations.
2016
2017 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
2018 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
2019 _ACEOF
2020 ac_status=$?
2021 fi
2022
2023 if test "$ac_init_help" = "recursive"; then
2024 # If there are subdirs, report their specific --help.
2025 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2026 test -d "$ac_dir" ||
2027 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2028 continue
2029 ac_builddir=.
2030
2031 case "$ac_dir" in
2032 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2033 *)
2034 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2035 # A ".." for each directory in $ac_dir_suffix.
2036 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2037 case $ac_top_builddir_sub in
2038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2040 esac ;;
2041 esac
2042 ac_abs_top_builddir=$ac_pwd
2043 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2044 # for backward compatibility:
2045 ac_top_builddir=$ac_top_build_prefix
2046
2047 case $srcdir in
2048 .) # We are building in place.
2049 ac_srcdir=.
2050 ac_top_srcdir=$ac_top_builddir_sub
2051 ac_abs_top_srcdir=$ac_pwd ;;
2052 [\\/]* | ?:[\\/]* ) # Absolute name.
2053 ac_srcdir=$srcdir$ac_dir_suffix;
2054 ac_top_srcdir=$srcdir
2055 ac_abs_top_srcdir=$srcdir ;;
2056 *) # Relative name.
2057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2058 ac_top_srcdir=$ac_top_build_prefix$srcdir
2059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2060 esac
2061 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2062
2063 cd "$ac_dir" || { ac_status=$?; continue; }
2064 # Check for guested configure.
2065 if test -f "$ac_srcdir/configure.gnu"; then
2066 echo &&
2067 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2068 elif test -f "$ac_srcdir/configure"; then
2069 echo &&
2070 $SHELL "$ac_srcdir/configure" --help=recursive
2071 else
2072 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2073 fi || ac_status=$?
2074 cd "$ac_pwd" || { ac_status=$?; break; }
2075 done
2076 fi
2077
2078 test -n "$ac_init_help" && exit $ac_status
2079 if $ac_init_version; then
2080 cat <<\_ACEOF
2081 sim configure 0
2082 generated by GNU Autoconf 2.69
2083
2084 Copyright (C) 2012 Free Software Foundation, Inc.
2085 This configure script is free software; the Free Software Foundation
2086 gives unlimited permission to copy, distribute and modify it.
2087 _ACEOF
2088 exit
2089 fi
2090
2091 ## ------------------------ ##
2092 ## Autoconf initialization. ##
2093 ## ------------------------ ##
2094
2095 # ac_fn_c_try_compile LINENO
2096 # --------------------------
2097 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_c_try_compile ()
2099 {
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 rm -f conftest.$ac_objext
2102 if { { ac_try="$ac_compile"
2103 case "(($ac_try" in
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2106 esac
2107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108 $as_echo "$ac_try_echo"; } >&5
2109 (eval "$ac_compile") 2>conftest.err
2110 ac_status=$?
2111 if test -s conftest.err; then
2112 grep -v '^ *+' conftest.err >conftest.er1
2113 cat conftest.er1 >&5
2114 mv -f conftest.er1 conftest.err
2115 fi
2116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117 test $ac_status = 0; } && {
2118 test -z "$ac_c_werror_flag" ||
2119 test ! -s conftest.err
2120 } && test -s conftest.$ac_objext; then :
2121 ac_retval=0
2122 else
2123 $as_echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126 ac_retval=1
2127 fi
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 as_fn_set_status $ac_retval
2130
2131 } # ac_fn_c_try_compile
2132
2133 # ac_fn_c_try_cpp LINENO
2134 # ----------------------
2135 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2136 ac_fn_c_try_cpp ()
2137 {
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 if { { ac_try="$ac_cpp conftest.$ac_ext"
2140 case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2147 ac_status=$?
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2152 fi
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } > conftest.i && {
2155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2156 test ! -s conftest.err
2157 }; then :
2158 ac_retval=0
2159 else
2160 $as_echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2162
2163 ac_retval=1
2164 fi
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 as_fn_set_status $ac_retval
2167
2168 } # ac_fn_c_try_cpp
2169
2170 # ac_fn_c_try_run LINENO
2171 # ----------------------
2172 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2173 # that executables *can* be run.
2174 ac_fn_c_try_run ()
2175 {
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 if { { ac_try="$ac_link"
2178 case "(($ac_try" in
2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180 *) ac_try_echo=$ac_try;;
2181 esac
2182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2183 $as_echo "$ac_try_echo"; } >&5
2184 (eval "$ac_link") 2>&5
2185 ac_status=$?
2186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2188 { { case "(($ac_try" in
2189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190 *) ac_try_echo=$ac_try;;
2191 esac
2192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2193 $as_echo "$ac_try_echo"; } >&5
2194 (eval "$ac_try") 2>&5
2195 ac_status=$?
2196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197 test $ac_status = 0; }; }; then :
2198 ac_retval=0
2199 else
2200 $as_echo "$as_me: program exited with status $ac_status" >&5
2201 $as_echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2203
2204 ac_retval=$ac_status
2205 fi
2206 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208 as_fn_set_status $ac_retval
2209
2210 } # ac_fn_c_try_run
2211
2212 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2213 # -------------------------------------------------------
2214 # Tests whether HEADER exists and can be compiled using the include files in
2215 # INCLUDES, setting the cache variable VAR accordingly.
2216 ac_fn_c_check_header_compile ()
2217 {
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2220 $as_echo_n "checking for $2... " >&6; }
2221 if eval \${$3+:} false; then :
2222 $as_echo_n "(cached) " >&6
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $4
2227 #include <$2>
2228 _ACEOF
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230 eval "$3=yes"
2231 else
2232 eval "$3=no"
2233 fi
2234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 fi
2236 eval ac_res=\$$3
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2238 $as_echo "$ac_res" >&6; }
2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240
2241 } # ac_fn_c_check_header_compile
2242
2243 # ac_fn_c_try_link LINENO
2244 # -----------------------
2245 # Try to link conftest.$ac_ext, and return whether this succeeded.
2246 ac_fn_c_try_link ()
2247 {
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 rm -f conftest.$ac_objext conftest$ac_exeext
2250 if { { ac_try="$ac_link"
2251 case "(($ac_try" in
2252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253 *) ac_try_echo=$ac_try;;
2254 esac
2255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2256 $as_echo "$ac_try_echo"; } >&5
2257 (eval "$ac_link") 2>conftest.err
2258 ac_status=$?
2259 if test -s conftest.err; then
2260 grep -v '^ *+' conftest.err >conftest.er1
2261 cat conftest.er1 >&5
2262 mv -f conftest.er1 conftest.err
2263 fi
2264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2265 test $ac_status = 0; } && {
2266 test -z "$ac_c_werror_flag" ||
2267 test ! -s conftest.err
2268 } && test -s conftest$ac_exeext && {
2269 test "$cross_compiling" = yes ||
2270 test -x conftest$ac_exeext
2271 }; then :
2272 ac_retval=0
2273 else
2274 $as_echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 ac_retval=1
2278 fi
2279 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2280 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2281 # interfere with the next link command; also delete a directory that is
2282 # left behind by Apple's compiler. We do this before executing the actions.
2283 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 as_fn_set_status $ac_retval
2286
2287 } # ac_fn_c_try_link
2288
2289 # ac_fn_c_check_func LINENO FUNC VAR
2290 # ----------------------------------
2291 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2292 ac_fn_c_check_func ()
2293 {
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296 $as_echo_n "checking for $2... " >&6; }
2297 if eval \${$3+:} false; then :
2298 $as_echo_n "(cached) " >&6
2299 else
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2302 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2304 #define $2 innocuous_$2
2305
2306 /* System header to define __stub macros and hopefully few prototypes,
2307 which can conflict with char $2 (); below.
2308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2309 <limits.h> exists even on freestanding compilers. */
2310
2311 #ifdef __STDC__
2312 # include <limits.h>
2313 #else
2314 # include <assert.h>
2315 #endif
2316
2317 #undef $2
2318
2319 /* Override any GCC internal prototype to avoid an error.
2320 Use char because int might match the return type of a GCC
2321 builtin and then its argument prototype would still apply. */
2322 #ifdef __cplusplus
2323 extern "C"
2324 #endif
2325 char $2 ();
2326 /* The GNU C library defines this for functions which it implements
2327 to always fail with ENOSYS. Some functions are actually named
2328 something starting with __ and the normal name is an alias. */
2329 #if defined __stub_$2 || defined __stub___$2
2330 choke me
2331 #endif
2332
2333 int
2334 main ()
2335 {
2336 return $2 ();
2337 ;
2338 return 0;
2339 }
2340 _ACEOF
2341 if ac_fn_c_try_link "$LINENO"; then :
2342 eval "$3=yes"
2343 else
2344 eval "$3=no"
2345 fi
2346 rm -f core conftest.err conftest.$ac_objext \
2347 conftest$ac_exeext conftest.$ac_ext
2348 fi
2349 eval ac_res=\$$3
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351 $as_echo "$ac_res" >&6; }
2352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353
2354 } # ac_fn_c_check_func
2355
2356 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2357 # ----------------------------------------------------
2358 # Tries to find if the field MEMBER exists in type AGGR, after including
2359 # INCLUDES, setting cache variable VAR accordingly.
2360 ac_fn_c_check_member ()
2361 {
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2364 $as_echo_n "checking for $2.$3... " >&6; }
2365 if eval \${$4+:} false; then :
2366 $as_echo_n "(cached) " >&6
2367 else
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2370 $5
2371 int
2372 main ()
2373 {
2374 static $2 ac_aggr;
2375 if (ac_aggr.$3)
2376 return 0;
2377 ;
2378 return 0;
2379 }
2380 _ACEOF
2381 if ac_fn_c_try_compile "$LINENO"; then :
2382 eval "$4=yes"
2383 else
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h. */
2386 $5
2387 int
2388 main ()
2389 {
2390 static $2 ac_aggr;
2391 if (sizeof ac_aggr.$3)
2392 return 0;
2393 ;
2394 return 0;
2395 }
2396 _ACEOF
2397 if ac_fn_c_try_compile "$LINENO"; then :
2398 eval "$4=yes"
2399 else
2400 eval "$4=no"
2401 fi
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 fi
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 fi
2406 eval ac_res=\$$4
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2408 $as_echo "$ac_res" >&6; }
2409 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410
2411 } # ac_fn_c_check_member
2412
2413 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2414 # ---------------------------------------------
2415 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2416 # accordingly.
2417 ac_fn_c_check_decl ()
2418 {
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 as_decl_name=`echo $2|sed 's/ *(.*//'`
2421 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2423 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2424 if eval \${$3+:} false; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2429 $4
2430 int
2431 main ()
2432 {
2433 #ifndef $as_decl_name
2434 #ifdef __cplusplus
2435 (void) $as_decl_use;
2436 #else
2437 (void) $as_decl_name;
2438 #endif
2439 #endif
2440
2441 ;
2442 return 0;
2443 }
2444 _ACEOF
2445 if ac_fn_c_try_compile "$LINENO"; then :
2446 eval "$3=yes"
2447 else
2448 eval "$3=no"
2449 fi
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 fi
2452 eval ac_res=\$$3
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2456
2457 } # ac_fn_c_check_decl
2458
2459 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2460 # -------------------------------------------
2461 # Tests whether TYPE exists after having included INCLUDES, setting cache
2462 # variable VAR accordingly.
2463 ac_fn_c_check_type ()
2464 {
2465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2467 $as_echo_n "checking for $2... " >&6; }
2468 if eval \${$3+:} false; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 eval "$3=no"
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2474 $4
2475 int
2476 main ()
2477 {
2478 if (sizeof ($2))
2479 return 0;
2480 ;
2481 return 0;
2482 }
2483 _ACEOF
2484 if ac_fn_c_try_compile "$LINENO"; then :
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2487 $4
2488 int
2489 main ()
2490 {
2491 if (sizeof (($2)))
2492 return 0;
2493 ;
2494 return 0;
2495 }
2496 _ACEOF
2497 if ac_fn_c_try_compile "$LINENO"; then :
2498
2499 else
2500 eval "$3=yes"
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=\$$3
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_type
2512 cat >config.log <<_ACEOF
2513 This file contains any messages produced by compilers while
2514 running configure, to aid debugging if configure makes a mistake.
2515
2516 It was created by sim $as_me 0, which was
2517 generated by GNU Autoconf 2.69. Invocation command line was
2518
2519 $ $0 $@
2520
2521 _ACEOF
2522 exec 5>>config.log
2523 {
2524 cat <<_ASUNAME
2525 ## --------- ##
2526 ## Platform. ##
2527 ## --------- ##
2528
2529 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2530 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2531 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2532 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2533 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2534
2535 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2536 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2537
2538 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2539 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2540 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2541 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2542 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2543 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2544 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2545
2546 _ASUNAME
2547
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 $as_echo "PATH: $as_dir"
2554 done
2555 IFS=$as_save_IFS
2556
2557 } >&5
2558
2559 cat >&5 <<_ACEOF
2560
2561
2562 ## ----------- ##
2563 ## Core tests. ##
2564 ## ----------- ##
2565
2566 _ACEOF
2567
2568
2569 # Keep a trace of the command line.
2570 # Strip out --no-create and --no-recursion so they do not pile up.
2571 # Strip out --silent because we don't want to record it for future runs.
2572 # Also quote any args containing shell meta-characters.
2573 # Make two passes to allow for proper duplicate-argument suppression.
2574 ac_configure_args=
2575 ac_configure_args0=
2576 ac_configure_args1=
2577 ac_must_keep_next=false
2578 for ac_pass in 1 2
2579 do
2580 for ac_arg
2581 do
2582 case $ac_arg in
2583 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2585 | -silent | --silent | --silen | --sile | --sil)
2586 continue ;;
2587 *\'*)
2588 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2589 esac
2590 case $ac_pass in
2591 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2592 2)
2593 as_fn_append ac_configure_args1 " '$ac_arg'"
2594 if test $ac_must_keep_next = true; then
2595 ac_must_keep_next=false # Got value, back to normal.
2596 else
2597 case $ac_arg in
2598 *=* | --config-cache | -C | -disable-* | --disable-* \
2599 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2600 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2601 | -with-* | --with-* | -without-* | --without-* | --x)
2602 case "$ac_configure_args0 " in
2603 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2604 esac
2605 ;;
2606 -* ) ac_must_keep_next=true ;;
2607 esac
2608 fi
2609 as_fn_append ac_configure_args " '$ac_arg'"
2610 ;;
2611 esac
2612 done
2613 done
2614 { ac_configure_args0=; unset ac_configure_args0;}
2615 { ac_configure_args1=; unset ac_configure_args1;}
2616
2617 # When interrupted or exit'd, cleanup temporary files, and complete
2618 # config.log. We remove comments because anyway the quotes in there
2619 # would cause problems or look ugly.
2620 # WARNING: Use '\'' to represent an apostrophe within the trap.
2621 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2622 trap 'exit_status=$?
2623 # Save into config.log some information that might help in debugging.
2624 {
2625 echo
2626
2627 $as_echo "## ---------------- ##
2628 ## Cache variables. ##
2629 ## ---------------- ##"
2630 echo
2631 # The following way of writing the cache mishandles newlines in values,
2632 (
2633 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2634 eval ac_val=\$$ac_var
2635 case $ac_val in #(
2636 *${as_nl}*)
2637 case $ac_var in #(
2638 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2639 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2640 esac
2641 case $ac_var in #(
2642 _ | IFS | as_nl) ;; #(
2643 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2644 *) { eval $ac_var=; unset $ac_var;} ;;
2645 esac ;;
2646 esac
2647 done
2648 (set) 2>&1 |
2649 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2650 *${as_nl}ac_space=\ *)
2651 sed -n \
2652 "s/'\''/'\''\\\\'\'''\''/g;
2653 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2654 ;; #(
2655 *)
2656 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2657 ;;
2658 esac |
2659 sort
2660 )
2661 echo
2662
2663 $as_echo "## ----------------- ##
2664 ## Output variables. ##
2665 ## ----------------- ##"
2666 echo
2667 for ac_var in $ac_subst_vars
2668 do
2669 eval ac_val=\$$ac_var
2670 case $ac_val in
2671 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2672 esac
2673 $as_echo "$ac_var='\''$ac_val'\''"
2674 done | sort
2675 echo
2676
2677 if test -n "$ac_subst_files"; then
2678 $as_echo "## ------------------- ##
2679 ## File substitutions. ##
2680 ## ------------------- ##"
2681 echo
2682 for ac_var in $ac_subst_files
2683 do
2684 eval ac_val=\$$ac_var
2685 case $ac_val in
2686 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2687 esac
2688 $as_echo "$ac_var='\''$ac_val'\''"
2689 done | sort
2690 echo
2691 fi
2692
2693 if test -s confdefs.h; then
2694 $as_echo "## ----------- ##
2695 ## confdefs.h. ##
2696 ## ----------- ##"
2697 echo
2698 cat confdefs.h
2699 echo
2700 fi
2701 test "$ac_signal" != 0 &&
2702 $as_echo "$as_me: caught signal $ac_signal"
2703 $as_echo "$as_me: exit $exit_status"
2704 } >&5
2705 rm -f core *.core core.conftest.* &&
2706 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2707 exit $exit_status
2708 ' 0
2709 for ac_signal in 1 2 13 15; do
2710 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2711 done
2712 ac_signal=0
2713
2714 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2715 rm -f -r conftest* confdefs.h
2716
2717 $as_echo "/* confdefs.h */" > confdefs.h
2718
2719 # Predefined preprocessor variables.
2720
2721 cat >>confdefs.h <<_ACEOF
2722 #define PACKAGE_NAME "$PACKAGE_NAME"
2723 _ACEOF
2724
2725 cat >>confdefs.h <<_ACEOF
2726 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2727 _ACEOF
2728
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2731 _ACEOF
2732
2733 cat >>confdefs.h <<_ACEOF
2734 #define PACKAGE_STRING "$PACKAGE_STRING"
2735 _ACEOF
2736
2737 cat >>confdefs.h <<_ACEOF
2738 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2739 _ACEOF
2740
2741 cat >>confdefs.h <<_ACEOF
2742 #define PACKAGE_URL "$PACKAGE_URL"
2743 _ACEOF
2744
2745
2746 # Let the site file select an alternate cache file if it wants to.
2747 # Prefer an explicitly selected file to automatically selected ones.
2748 ac_site_file1=NONE
2749 ac_site_file2=NONE
2750 if test -n "$CONFIG_SITE"; then
2751 # We do not want a PATH search for config.site.
2752 case $CONFIG_SITE in #((
2753 -*) ac_site_file1=./$CONFIG_SITE;;
2754 */*) ac_site_file1=$CONFIG_SITE;;
2755 *) ac_site_file1=./$CONFIG_SITE;;
2756 esac
2757 elif test "x$prefix" != xNONE; then
2758 ac_site_file1=$prefix/share/config.site
2759 ac_site_file2=$prefix/etc/config.site
2760 else
2761 ac_site_file1=$ac_default_prefix/share/config.site
2762 ac_site_file2=$ac_default_prefix/etc/config.site
2763 fi
2764 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2765 do
2766 test "x$ac_site_file" = xNONE && continue
2767 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2769 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2770 sed 's/^/| /' "$ac_site_file" >&5
2771 . "$ac_site_file" \
2772 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2774 as_fn_error $? "failed to load site script $ac_site_file
2775 See \`config.log' for more details" "$LINENO" 5; }
2776 fi
2777 done
2778
2779 if test -r "$cache_file"; then
2780 # Some versions of bash will fail to source /dev/null (special files
2781 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2782 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2784 $as_echo "$as_me: loading cache $cache_file" >&6;}
2785 case $cache_file in
2786 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2787 *) . "./$cache_file";;
2788 esac
2789 fi
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2792 $as_echo "$as_me: creating cache $cache_file" >&6;}
2793 >$cache_file
2794 fi
2795
2796 as_fn_append ac_header_list " dlfcn.h"
2797 as_fn_append ac_header_list " fcntl.h"
2798 as_fn_append ac_header_list " fpu_control.h"
2799 as_fn_append ac_header_list " termios.h"
2800 as_fn_append ac_header_list " utime.h"
2801 as_fn_append ac_header_list " linux/if_tun.h"
2802 as_fn_append ac_header_list " linux/mii.h"
2803 as_fn_append ac_header_list " linux/types.h"
2804 as_fn_append ac_header_list " net/if.h"
2805 as_fn_append ac_header_list " netinet/in.h"
2806 as_fn_append ac_header_list " netinet/tcp.h"
2807 as_fn_append ac_header_list " sys/ioctl.h"
2808 as_fn_append ac_header_list " sys/mman.h"
2809 as_fn_append ac_header_list " sys/mount.h"
2810 as_fn_append ac_header_list " sys/param.h"
2811 as_fn_append ac_header_list " sys/resource.h"
2812 as_fn_append ac_header_list " sys/socket.h"
2813 as_fn_append ac_header_list " sys/stat.h"
2814 as_fn_append ac_header_list " sys/statfs.h"
2815 as_fn_append ac_header_list " sys/termio.h"
2816 as_fn_append ac_header_list " sys/termios.h"
2817 as_fn_append ac_header_list " sys/types.h"
2818 as_fn_append ac_header_list " sys/vfs.h"
2819 as_fn_append ac_func_list " __setfpucw"
2820 as_fn_append ac_func_list " access"
2821 as_fn_append ac_func_list " aint"
2822 as_fn_append ac_func_list " anint"
2823 as_fn_append ac_func_list " cfgetispeed"
2824 as_fn_append ac_func_list " cfgetospeed"
2825 as_fn_append ac_func_list " cfsetispeed"
2826 as_fn_append ac_func_list " cfsetospeed"
2827 as_fn_append ac_func_list " chdir"
2828 as_fn_append ac_func_list " chmod"
2829 as_fn_append ac_func_list " dup"
2830 as_fn_append ac_func_list " dup2"
2831 as_fn_append ac_func_list " execv"
2832 as_fn_append ac_func_list " execve"
2833 as_fn_append ac_func_list " fcntl"
2834 as_fn_append ac_func_list " fork"
2835 as_fn_append ac_func_list " fstat"
2836 as_fn_append ac_func_list " fstatfs"
2837 as_fn_append ac_func_list " ftruncate"
2838 as_fn_append ac_func_list " getdirentries"
2839 as_fn_append ac_func_list " getegid"
2840 as_fn_append ac_func_list " geteuid"
2841 as_fn_append ac_func_list " getgid"
2842 as_fn_append ac_func_list " getpid"
2843 as_fn_append ac_func_list " getppid"
2844 as_fn_append ac_func_list " getrusage"
2845 as_fn_append ac_func_list " gettimeofday"
2846 as_fn_append ac_func_list " getuid"
2847 as_fn_append ac_func_list " ioctl"
2848 as_fn_append ac_func_list " kill"
2849 as_fn_append ac_func_list " link"
2850 as_fn_append ac_func_list " lseek"
2851 as_fn_append ac_func_list " lstat"
2852 as_fn_append ac_func_list " mkdir"
2853 as_fn_append ac_func_list " mmap"
2854 as_fn_append ac_func_list " munmap"
2855 as_fn_append ac_func_list " pipe"
2856 as_fn_append ac_func_list " posix_fallocate"
2857 as_fn_append ac_func_list " pread"
2858 as_fn_append ac_func_list " rmdir"
2859 as_fn_append ac_func_list " setregid"
2860 as_fn_append ac_func_list " setreuid"
2861 as_fn_append ac_func_list " setgid"
2862 as_fn_append ac_func_list " setuid"
2863 as_fn_append ac_func_list " sigaction"
2864 as_fn_append ac_func_list " sigprocmask"
2865 as_fn_append ac_func_list " sqrt"
2866 as_fn_append ac_func_list " stat"
2867 as_fn_append ac_func_list " strsignal"
2868 as_fn_append ac_func_list " symlink"
2869 as_fn_append ac_func_list " tcdrain"
2870 as_fn_append ac_func_list " tcflow"
2871 as_fn_append ac_func_list " tcflush"
2872 as_fn_append ac_func_list " tcgetattr"
2873 as_fn_append ac_func_list " tcgetpgrp"
2874 as_fn_append ac_func_list " tcsendbreak"
2875 as_fn_append ac_func_list " tcsetattr"
2876 as_fn_append ac_func_list " tcsetpgrp"
2877 as_fn_append ac_func_list " time"
2878 as_fn_append ac_func_list " truncate"
2879 as_fn_append ac_func_list " umask"
2880 as_fn_append ac_func_list " unlink"
2881 as_fn_append ac_func_list " utime"
2882 # Check that the precious variables saved in the cache have kept the same
2883 # value.
2884 ac_cache_corrupted=false
2885 for ac_var in $ac_precious_vars; do
2886 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2887 eval ac_new_set=\$ac_env_${ac_var}_set
2888 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2889 eval ac_new_val=\$ac_env_${ac_var}_value
2890 case $ac_old_set,$ac_new_set in
2891 set,)
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2893 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2894 ac_cache_corrupted=: ;;
2895 ,set)
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2897 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2898 ac_cache_corrupted=: ;;
2899 ,);;
2900 *)
2901 if test "x$ac_old_val" != "x$ac_new_val"; then
2902 # differences in whitespace do not lead to failure.
2903 ac_old_val_w=`echo x $ac_old_val`
2904 ac_new_val_w=`echo x $ac_new_val`
2905 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2907 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2908 ac_cache_corrupted=:
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2911 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2912 eval $ac_var=\$ac_old_val
2913 fi
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2915 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2917 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2918 fi;;
2919 esac
2920 # Pass precious variables to config.status.
2921 if test "$ac_new_set" = set; then
2922 case $ac_new_val in
2923 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2924 *) ac_arg=$ac_var=$ac_new_val ;;
2925 esac
2926 case " $ac_configure_args " in
2927 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2928 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2929 esac
2930 fi
2931 done
2932 if $ac_cache_corrupted; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2936 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2937 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2938 fi
2939 ## -------------------- ##
2940 ## Main body of script. ##
2941 ## -------------------- ##
2942
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948
2949
2950
2951
2952
2953
2954
2955
2956 # Check whether --with-pkgversion was given.
2957 if test "${with_pkgversion+set}" = set; then :
2958 withval=$with_pkgversion; case "$withval" in
2959 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2960 no) PKGVERSION= ;;
2961 *) PKGVERSION="($withval) " ;;
2962 esac
2963 else
2964 PKGVERSION="(SIM) "
2965
2966 fi
2967
2968
2969
2970
2971 cat >>confdefs.h <<_ACEOF
2972 #define PKGVERSION "$PKGVERSION"
2973 _ACEOF
2974
2975
2976
2977 # Check whether --with-bugurl was given.
2978 if test "${with_bugurl+set}" = set; then :
2979 withval=$with_bugurl; case "$withval" in
2980 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2981 no) BUGURL=
2982 ;;
2983 *) BUGURL="$withval"
2984 ;;
2985 esac
2986 else
2987 BUGURL="$PACKAGE_BUGREPORT"
2988
2989 fi
2990
2991 case ${BUGURL} in
2992 "")
2993 REPORT_BUGS_TO=
2994 REPORT_BUGS_TEXI=
2995 ;;
2996 *)
2997 REPORT_BUGS_TO="<$BUGURL>"
2998 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2999 ;;
3000 esac;
3001
3002
3003
3004
3005 cat >>confdefs.h <<_ACEOF
3006 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3007 _ACEOF
3008
3009
3010 ac_config_headers="$ac_config_headers config.h"
3011
3012
3013 ac_aux_dir=
3014 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3015 if test -f "$ac_dir/install-sh"; then
3016 ac_aux_dir=$ac_dir
3017 ac_install_sh="$ac_aux_dir/install-sh -c"
3018 break
3019 elif test -f "$ac_dir/install.sh"; then
3020 ac_aux_dir=$ac_dir
3021 ac_install_sh="$ac_aux_dir/install.sh -c"
3022 break
3023 elif test -f "$ac_dir/shtool"; then
3024 ac_aux_dir=$ac_dir
3025 ac_install_sh="$ac_aux_dir/shtool install -c"
3026 break
3027 fi
3028 done
3029 if test -z "$ac_aux_dir"; then
3030 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3031 fi
3032
3033 # These three variables are undocumented and unsupported,
3034 # and are intended to be withdrawn in a future Autoconf release.
3035 # They can cause serious problems if a builder's source tree is in a directory
3036 # whose full name contains unusual characters.
3037 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3038 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3039 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3040
3041
3042 # Make sure we can run config.sub.
3043 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3044 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3045
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3047 $as_echo_n "checking build system type... " >&6; }
3048 if ${ac_cv_build+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 ac_build_alias=$build_alias
3052 test "x$ac_build_alias" = x &&
3053 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3054 test "x$ac_build_alias" = x &&
3055 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3056 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3057 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3058
3059 fi
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3061 $as_echo "$ac_cv_build" >&6; }
3062 case $ac_cv_build in
3063 *-*-*) ;;
3064 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3065 esac
3066 build=$ac_cv_build
3067 ac_save_IFS=$IFS; IFS='-'
3068 set x $ac_cv_build
3069 shift
3070 build_cpu=$1
3071 build_vendor=$2
3072 shift; shift
3073 # Remember, the first character of IFS is used to create $*,
3074 # except with old shells:
3075 build_os=$*
3076 IFS=$ac_save_IFS
3077 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3078
3079
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3081 $as_echo_n "checking host system type... " >&6; }
3082 if ${ac_cv_host+:} false; then :
3083 $as_echo_n "(cached) " >&6
3084 else
3085 if test "x$host_alias" = x; then
3086 ac_cv_host=$ac_cv_build
3087 else
3088 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3089 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3090 fi
3091
3092 fi
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3094 $as_echo "$ac_cv_host" >&6; }
3095 case $ac_cv_host in
3096 *-*-*) ;;
3097 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3098 esac
3099 host=$ac_cv_host
3100 ac_save_IFS=$IFS; IFS='-'
3101 set x $ac_cv_host
3102 shift
3103 host_cpu=$1
3104 host_vendor=$2
3105 shift; shift
3106 # Remember, the first character of IFS is used to create $*,
3107 # except with old shells:
3108 host_os=$*
3109 IFS=$ac_save_IFS
3110 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3111
3112
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3114 $as_echo_n "checking target system type... " >&6; }
3115 if ${ac_cv_target+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if test "x$target_alias" = x; then
3119 ac_cv_target=$ac_cv_host
3120 else
3121 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3122 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3123 fi
3124
3125 fi
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3127 $as_echo "$ac_cv_target" >&6; }
3128 case $ac_cv_target in
3129 *-*-*) ;;
3130 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3131 esac
3132 target=$ac_cv_target
3133 ac_save_IFS=$IFS; IFS='-'
3134 set x $ac_cv_target
3135 shift
3136 target_cpu=$1
3137 target_vendor=$2
3138 shift; shift
3139 # Remember, the first character of IFS is used to create $*,
3140 # except with old shells:
3141 target_os=$*
3142 IFS=$ac_save_IFS
3143 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3144
3145
3146 # The aliases save the names the user supplied, while $host etc.
3147 # will get canonicalized.
3148 test -n "$target_alias" &&
3149 test "$program_prefix$program_suffix$program_transform_name" = \
3150 NONENONEs,x,x, &&
3151 program_prefix=${target_alias}-
3152 # Expand $ac_aux_dir to an absolute path.
3153 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3154
3155 ac_ext=c
3156 ac_cpp='$CPP $CPPFLAGS'
3157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160 if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if ${ac_cv_prog_CC+:} false; then :
3166 $as_echo_n "(cached) " >&6
3167 else
3168 if test -n "$CC"; then
3169 ac_cv_prog_CC="$CC" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182 done
3183 done
3184 IFS=$as_save_IFS
3185
3186 fi
3187 fi
3188 CC=$ac_cv_prog_CC
3189 if test -n "$CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3191 $as_echo "$CC" >&6; }
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 fi
3196
3197
3198 fi
3199 if test -z "$ac_cv_prog_CC"; then
3200 ac_ct_CC=$CC
3201 # Extract the first word of "gcc", so it can be a program name with args.
3202 set dummy gcc; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3206 $as_echo_n "(cached) " >&6
3207 else
3208 if test -n "$ac_ct_CC"; then
3209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_ac_ct_CC="gcc"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3221 fi
3222 done
3223 done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3229 if test -n "$ac_ct_CC"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3231 $as_echo "$ac_ct_CC" >&6; }
3232 else
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237 if test "x$ac_ct_CC" = x; then
3238 CC=""
3239 else
3240 case $cross_compiling:$ac_tool_warned in
3241 yes:)
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244 ac_tool_warned=yes ;;
3245 esac
3246 CC=$ac_ct_CC
3247 fi
3248 else
3249 CC="$ac_cv_prog_CC"
3250 fi
3251
3252 if test -z "$CC"; then
3253 if test -n "$ac_tool_prefix"; then
3254 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3255 set dummy ${ac_tool_prefix}cc; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if ${ac_cv_prog_CC+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 if test -n "$CC"; then
3262 ac_cv_prog_CC="$CC" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267 IFS=$as_save_IFS
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271 ac_cv_prog_CC="${ac_tool_prefix}cc"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275 done
3276 done
3277 IFS=$as_save_IFS
3278
3279 fi
3280 fi
3281 CC=$ac_cv_prog_CC
3282 if test -n "$CC"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284 $as_echo "$CC" >&6; }
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 fi
3289
3290
3291 fi
3292 fi
3293 if test -z "$CC"; then
3294 # Extract the first word of "cc", so it can be a program name with args.
3295 set dummy cc; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if ${ac_cv_prog_CC+:} false; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 if test -n "$CC"; then
3302 ac_cv_prog_CC="$CC" # Let the user override the test.
3303 else
3304 ac_prog_rejected=no
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
3308 IFS=$as_save_IFS
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3313 ac_prog_rejected=yes
3314 continue
3315 fi
3316 ac_cv_prog_CC="cc"
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 break 2
3319 fi
3320 done
3321 done
3322 IFS=$as_save_IFS
3323
3324 if test $ac_prog_rejected = yes; then
3325 # We found a bogon in the path, so make sure we never use it.
3326 set dummy $ac_cv_prog_CC
3327 shift
3328 if test $# != 0; then
3329 # We chose a different compiler from the bogus one.
3330 # However, it has the same basename, so the bogon will be chosen
3331 # first if we set CC to just the basename; use the full file name.
3332 shift
3333 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3334 fi
3335 fi
3336 fi
3337 fi
3338 CC=$ac_cv_prog_CC
3339 if test -n "$CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3342 else
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 fi
3346
3347
3348 fi
3349 if test -z "$CC"; then
3350 if test -n "$ac_tool_prefix"; then
3351 for ac_prog in cl.exe
3352 do
3353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3354 set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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 test -n "$CC" && break
3391 done
3392 fi
3393 if test -z "$CC"; then
3394 ac_ct_CC=$CC
3395 for ac_prog in cl.exe
3396 do
3397 # Extract the first word of "$ac_prog", so it can be a program name with args.
3398 set dummy $ac_prog; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3402 $as_echo_n "(cached) " >&6
3403 else
3404 if test -n "$ac_ct_CC"; then
3405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3409 do
3410 IFS=$as_save_IFS
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414 ac_cv_prog_ac_ct_CC="$ac_prog"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 break 2
3417 fi
3418 done
3419 done
3420 IFS=$as_save_IFS
3421
3422 fi
3423 fi
3424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3425 if test -n "$ac_ct_CC"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3427 $as_echo "$ac_ct_CC" >&6; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3431 fi
3432
3433
3434 test -n "$ac_ct_CC" && break
3435 done
3436
3437 if test "x$ac_ct_CC" = x; then
3438 CC=""
3439 else
3440 case $cross_compiling:$ac_tool_warned in
3441 yes:)
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3444 ac_tool_warned=yes ;;
3445 esac
3446 CC=$ac_ct_CC
3447 fi
3448 fi
3449
3450 fi
3451
3452
3453 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error $? "no acceptable C compiler found in \$PATH
3456 See \`config.log' for more details" "$LINENO" 5; }
3457
3458 # Provide some information about the compiler.
3459 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3460 set X $ac_compile
3461 ac_compiler=$2
3462 for ac_option in --version -v -V -qversion; do
3463 { { ac_try="$ac_compiler $ac_option >&5"
3464 case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3471 ac_status=$?
3472 if test -s conftest.err; then
3473 sed '10a\
3474 ... rest of stderr output deleted ...
3475 10q' conftest.err >conftest.er1
3476 cat conftest.er1 >&5
3477 fi
3478 rm -f conftest.er1 conftest.err
3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480 test $ac_status = 0; }
3481 done
3482
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3485
3486 int
3487 main ()
3488 {
3489
3490 ;
3491 return 0;
3492 }
3493 _ACEOF
3494 ac_clean_files_save=$ac_clean_files
3495 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3496 # Try to create an executable without -o first, disregard a.out.
3497 # It will help us diagnose broken compilers, and finding out an intuition
3498 # of exeext.
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3500 $as_echo_n "checking whether the C compiler works... " >&6; }
3501 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3502
3503 # The possible output files:
3504 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3505
3506 ac_rmfiles=
3507 for ac_file in $ac_files
3508 do
3509 case $ac_file in
3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3511 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3512 esac
3513 done
3514 rm -f $ac_rmfiles
3515
3516 if { { ac_try="$ac_link_default"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_link_default") 2>&5
3524 ac_status=$?
3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }; then :
3527 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3528 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3529 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3530 # so that the user can short-circuit this test for compilers unknown to
3531 # Autoconf.
3532 for ac_file in $ac_files ''
3533 do
3534 test -f "$ac_file" || continue
3535 case $ac_file in
3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3537 ;;
3538 [ab].out )
3539 # We found the default executable, but exeext='' is most
3540 # certainly right.
3541 break;;
3542 *.* )
3543 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3544 then :; else
3545 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3546 fi
3547 # We set ac_cv_exeext here because the later test for it is not
3548 # safe: cross compilers may not add the suffix if given an `-o'
3549 # argument, so we may need to know it at that point already.
3550 # Even if this section looks crufty: it has the advantage of
3551 # actually working.
3552 break;;
3553 * )
3554 break;;
3555 esac
3556 done
3557 test "$ac_cv_exeext" = no && ac_cv_exeext=
3558
3559 else
3560 ac_file=''
3561 fi
3562 if test -z "$ac_file"; then :
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3565 $as_echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570 as_fn_error 77 "C compiler cannot create executables
3571 See \`config.log' for more details" "$LINENO" 5; }
3572 else
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3574 $as_echo "yes" >&6; }
3575 fi
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3577 $as_echo_n "checking for C compiler default output file name... " >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3579 $as_echo "$ac_file" >&6; }
3580 ac_exeext=$ac_cv_exeext
3581
3582 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3583 ac_clean_files=$ac_clean_files_save
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3585 $as_echo_n "checking for suffix of executables... " >&6; }
3586 if { { ac_try="$ac_link"
3587 case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593 (eval "$ac_link") 2>&5
3594 ac_status=$?
3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596 test $ac_status = 0; }; then :
3597 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3598 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3599 # work properly (i.e., refer to `conftest.exe'), while it won't with
3600 # `rm'.
3601 for ac_file in conftest.exe conftest conftest.*; do
3602 test -f "$ac_file" || continue
3603 case $ac_file in
3604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3605 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3606 break;;
3607 * ) break;;
3608 esac
3609 done
3610 else
3611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3614 See \`config.log' for more details" "$LINENO" 5; }
3615 fi
3616 rm -f conftest conftest$ac_cv_exeext
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3618 $as_echo "$ac_cv_exeext" >&6; }
3619
3620 rm -f conftest.$ac_ext
3621 EXEEXT=$ac_cv_exeext
3622 ac_exeext=$EXEEXT
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3625 #include <stdio.h>
3626 int
3627 main ()
3628 {
3629 FILE *f = fopen ("conftest.out", "w");
3630 return ferror (f) || fclose (f) != 0;
3631
3632 ;
3633 return 0;
3634 }
3635 _ACEOF
3636 ac_clean_files="$ac_clean_files conftest.out"
3637 # Check that the compiler produces executables we can run. If not, either
3638 # the compiler is broken, or we cross compile.
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3640 $as_echo_n "checking whether we are cross compiling... " >&6; }
3641 if test "$cross_compiling" != yes; then
3642 { { ac_try="$ac_link"
3643 case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3646 esac
3647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3648 $as_echo "$ac_try_echo"; } >&5
3649 (eval "$ac_link") 2>&5
3650 ac_status=$?
3651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652 test $ac_status = 0; }
3653 if { ac_try='./conftest$ac_cv_exeext'
3654 { { case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_try") 2>&5
3661 ac_status=$?
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }; }; then
3664 cross_compiling=no
3665 else
3666 if test "$cross_compiling" = maybe; then
3667 cross_compiling=yes
3668 else
3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error $? "cannot run C compiled programs.
3672 If you meant to cross compile, use \`--host'.
3673 See \`config.log' for more details" "$LINENO" 5; }
3674 fi
3675 fi
3676 fi
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3678 $as_echo "$cross_compiling" >&6; }
3679
3680 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3681 ac_clean_files=$ac_clean_files_save
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3683 $as_echo_n "checking for suffix of object files... " >&6; }
3684 if ${ac_cv_objext+:} false; then :
3685 $as_echo_n "(cached) " >&6
3686 else
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3689
3690 int
3691 main ()
3692 {
3693
3694 ;
3695 return 0;
3696 }
3697 _ACEOF
3698 rm -f conftest.o conftest.obj
3699 if { { ac_try="$ac_compile"
3700 case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703 esac
3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705 $as_echo "$ac_try_echo"; } >&5
3706 (eval "$ac_compile") 2>&5
3707 ac_status=$?
3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709 test $ac_status = 0; }; then :
3710 for ac_file in conftest.o conftest.obj conftest.*; do
3711 test -f "$ac_file" || continue;
3712 case $ac_file in
3713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3714 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3715 break;;
3716 esac
3717 done
3718 else
3719 $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724 as_fn_error $? "cannot compute suffix of object files: cannot compile
3725 See \`config.log' for more details" "$LINENO" 5; }
3726 fi
3727 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3728 fi
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3730 $as_echo "$ac_cv_objext" >&6; }
3731 OBJEXT=$ac_cv_objext
3732 ac_objext=$OBJEXT
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3734 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3735 if ${ac_cv_c_compiler_gnu+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740
3741 int
3742 main ()
3743 {
3744 #ifndef __GNUC__
3745 choke me
3746 #endif
3747
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 if ac_fn_c_try_compile "$LINENO"; then :
3753 ac_compiler_gnu=yes
3754 else
3755 ac_compiler_gnu=no
3756 fi
3757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3759
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3762 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3763 if test $ac_compiler_gnu = yes; then
3764 GCC=yes
3765 else
3766 GCC=
3767 fi
3768 ac_test_CFLAGS=${CFLAGS+set}
3769 ac_save_CFLAGS=$CFLAGS
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3771 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3772 if ${ac_cv_prog_cc_g+:} false; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 ac_save_c_werror_flag=$ac_c_werror_flag
3776 ac_c_werror_flag=yes
3777 ac_cv_prog_cc_g=no
3778 CFLAGS="-g"
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781
3782 int
3783 main ()
3784 {
3785
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 if ac_fn_c_try_compile "$LINENO"; then :
3791 ac_cv_prog_cc_g=yes
3792 else
3793 CFLAGS=""
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3796
3797 int
3798 main ()
3799 {
3800
3801 ;
3802 return 0;
3803 }
3804 _ACEOF
3805 if ac_fn_c_try_compile "$LINENO"; then :
3806
3807 else
3808 ac_c_werror_flag=$ac_save_c_werror_flag
3809 CFLAGS="-g"
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812
3813 int
3814 main ()
3815 {
3816
3817 ;
3818 return 0;
3819 }
3820 _ACEOF
3821 if ac_fn_c_try_compile "$LINENO"; then :
3822 ac_cv_prog_cc_g=yes
3823 fi
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 fi
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 fi
3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 ac_c_werror_flag=$ac_save_c_werror_flag
3830 fi
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3832 $as_echo "$ac_cv_prog_cc_g" >&6; }
3833 if test "$ac_test_CFLAGS" = set; then
3834 CFLAGS=$ac_save_CFLAGS
3835 elif test $ac_cv_prog_cc_g = yes; then
3836 if test "$GCC" = yes; then
3837 CFLAGS="-g -O2"
3838 else
3839 CFLAGS="-g"
3840 fi
3841 else
3842 if test "$GCC" = yes; then
3843 CFLAGS="-O2"
3844 else
3845 CFLAGS=
3846 fi
3847 fi
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3849 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3850 if ${ac_cv_prog_cc_c89+:} false; then :
3851 $as_echo_n "(cached) " >&6
3852 else
3853 ac_cv_prog_cc_c89=no
3854 ac_save_CC=$CC
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3857 #include <stdarg.h>
3858 #include <stdio.h>
3859 struct stat;
3860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3861 struct buf { int x; };
3862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3863 static char *e (p, i)
3864 char **p;
3865 int i;
3866 {
3867 return p[i];
3868 }
3869 static char *f (char * (*g) (char **, int), char **p, ...)
3870 {
3871 char *s;
3872 va_list v;
3873 va_start (v,p);
3874 s = g (p, va_arg (v,int));
3875 va_end (v);
3876 return s;
3877 }
3878
3879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3880 function prototypes and stuff, but not '\xHH' hex character constants.
3881 These don't provoke an error unfortunately, instead are silently treated
3882 as 'x'. The following induces an error, until -std is added to get
3883 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3884 array size at least. It's necessary to write '\x00'==0 to get something
3885 that's true only with -std. */
3886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3887
3888 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3889 inside strings and character constants. */
3890 #define FOO(x) 'x'
3891 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3892
3893 int test (int i, double x);
3894 struct s1 {int (*f) (int a);};
3895 struct s2 {int (*f) (double a);};
3896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3897 int argc;
3898 char **argv;
3899 int
3900 main ()
3901 {
3902 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3903 ;
3904 return 0;
3905 }
3906 _ACEOF
3907 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3908 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3909 do
3910 CC="$ac_save_CC $ac_arg"
3911 if ac_fn_c_try_compile "$LINENO"; then :
3912 ac_cv_prog_cc_c89=$ac_arg
3913 fi
3914 rm -f core conftest.err conftest.$ac_objext
3915 test "x$ac_cv_prog_cc_c89" != "xno" && break
3916 done
3917 rm -f conftest.$ac_ext
3918 CC=$ac_save_CC
3919
3920 fi
3921 # AC_CACHE_VAL
3922 case "x$ac_cv_prog_cc_c89" in
3923 x)
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3925 $as_echo "none needed" >&6; } ;;
3926 xno)
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3928 $as_echo "unsupported" >&6; } ;;
3929 *)
3930 CC="$CC $ac_cv_prog_cc_c89"
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3932 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3933 esac
3934 if test "x$ac_cv_prog_cc_c89" != xno; then :
3935
3936 fi
3937
3938 ac_ext=c
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943
3944 ac_ext=c
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3950 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3951 if ${am_cv_prog_cc_c_o+:} false; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956
3957 int
3958 main ()
3959 {
3960
3961 ;
3962 return 0;
3963 }
3964 _ACEOF
3965 # Make sure it works both with $CC and with simple cc.
3966 # Following AC_PROG_CC_C_O, we do the test twice because some
3967 # compilers refuse to overwrite an existing .o file with -o,
3968 # though they will create one.
3969 am_cv_prog_cc_c_o=yes
3970 for am_i in 1 2; do
3971 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3972 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } \
3976 && test -f conftest2.$ac_objext; then
3977 : OK
3978 else
3979 am_cv_prog_cc_c_o=no
3980 break
3981 fi
3982 done
3983 rm -f core conftest*
3984 unset am_i
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3987 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3988 if test "$am_cv_prog_cc_c_o" != yes; then
3989 # Losing compiler, so override with the script.
3990 # FIXME: It is wrong to rewrite CC.
3991 # But if we don't then we get into trouble of one sort or another.
3992 # A longer-term fix would be to have automake use am__CC in this case,
3993 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3994 CC="$am_aux_dir/compile $CC"
3995 fi
3996 ac_ext=c
3997 ac_cpp='$CPP $CPPFLAGS'
3998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4001
4002
4003 ac_ext=c
4004 ac_cpp='$CPP $CPPFLAGS'
4005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4009 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4010 # On Suns, sometimes $CPP names a directory.
4011 if test -n "$CPP" && test -d "$CPP"; then
4012 CPP=
4013 fi
4014 if test -z "$CPP"; then
4015 if ${ac_cv_prog_CPP+:} false; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 # Double quotes because CPP needs to be expanded
4019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4020 do
4021 ac_preproc_ok=false
4022 for ac_c_preproc_warn_flag in '' yes
4023 do
4024 # Use a header file that comes with gcc, so configuring glibc
4025 # with a fresh cross-compiler works.
4026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027 # <limits.h> exists even on freestanding compilers.
4028 # On the NeXT, cc -E runs the code through the compiler's parser,
4029 # not just through cpp. "Syntax error" is here to catch this case.
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4032 #ifdef __STDC__
4033 # include <limits.h>
4034 #else
4035 # include <assert.h>
4036 #endif
4037 Syntax error
4038 _ACEOF
4039 if ac_fn_c_try_cpp "$LINENO"; then :
4040
4041 else
4042 # Broken: fails on valid input.
4043 continue
4044 fi
4045 rm -f conftest.err conftest.i conftest.$ac_ext
4046
4047 # OK, works on sane cases. Now check whether nonexistent headers
4048 # can be detected and how.
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051 #include <ac_nonexistent.h>
4052 _ACEOF
4053 if ac_fn_c_try_cpp "$LINENO"; then :
4054 # Broken: success on invalid input.
4055 continue
4056 else
4057 # Passes both tests.
4058 ac_preproc_ok=:
4059 break
4060 fi
4061 rm -f conftest.err conftest.i conftest.$ac_ext
4062
4063 done
4064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4065 rm -f conftest.i conftest.err conftest.$ac_ext
4066 if $ac_preproc_ok; then :
4067 break
4068 fi
4069
4070 done
4071 ac_cv_prog_CPP=$CPP
4072
4073 fi
4074 CPP=$ac_cv_prog_CPP
4075 else
4076 ac_cv_prog_CPP=$CPP
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4079 $as_echo "$CPP" >&6; }
4080 ac_preproc_ok=false
4081 for ac_c_preproc_warn_flag in '' yes
4082 do
4083 # Use a header file that comes with gcc, so configuring glibc
4084 # with a fresh cross-compiler works.
4085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086 # <limits.h> exists even on freestanding compilers.
4087 # On the NeXT, cc -E runs the code through the compiler's parser,
4088 # not just through cpp. "Syntax error" is here to catch this case.
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4091 #ifdef __STDC__
4092 # include <limits.h>
4093 #else
4094 # include <assert.h>
4095 #endif
4096 Syntax error
4097 _ACEOF
4098 if ac_fn_c_try_cpp "$LINENO"; then :
4099
4100 else
4101 # Broken: fails on valid input.
4102 continue
4103 fi
4104 rm -f conftest.err conftest.i conftest.$ac_ext
4105
4106 # OK, works on sane cases. Now check whether nonexistent headers
4107 # can be detected and how.
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110 #include <ac_nonexistent.h>
4111 _ACEOF
4112 if ac_fn_c_try_cpp "$LINENO"; then :
4113 # Broken: success on invalid input.
4114 continue
4115 else
4116 # Passes both tests.
4117 ac_preproc_ok=:
4118 break
4119 fi
4120 rm -f conftest.err conftest.i conftest.$ac_ext
4121
4122 done
4123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4124 rm -f conftest.i conftest.err conftest.$ac_ext
4125 if $ac_preproc_ok; then :
4126
4127 else
4128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4130 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4131 See \`config.log' for more details" "$LINENO" 5; }
4132 fi
4133
4134 ac_ext=c
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139
4140
4141
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4143 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4144 if ${ac_cv_path_GREP+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 if test -z "$GREP"; then
4148 ac_path_GREP_found=false
4149 # Loop through the user's path and test for each of PROGNAME-LIST
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4152 do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_prog in grep ggrep; do
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4158 as_fn_executable_p "$ac_path_GREP" || continue
4159 # Check for GNU ac_path_GREP and select it if it is found.
4160 # Check for GNU $ac_path_GREP
4161 case `"$ac_path_GREP" --version 2>&1` in
4162 *GNU*)
4163 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4164 *)
4165 ac_count=0
4166 $as_echo_n 0123456789 >"conftest.in"
4167 while :
4168 do
4169 cat "conftest.in" "conftest.in" >"conftest.tmp"
4170 mv "conftest.tmp" "conftest.in"
4171 cp "conftest.in" "conftest.nl"
4172 $as_echo 'GREP' >> "conftest.nl"
4173 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4175 as_fn_arith $ac_count + 1 && ac_count=$as_val
4176 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4177 # Best one so far, save it but keep looking for a better one
4178 ac_cv_path_GREP="$ac_path_GREP"
4179 ac_path_GREP_max=$ac_count
4180 fi
4181 # 10*(2^10) chars as input seems more than enough
4182 test $ac_count -gt 10 && break
4183 done
4184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4185 esac
4186
4187 $ac_path_GREP_found && break 3
4188 done
4189 done
4190 done
4191 IFS=$as_save_IFS
4192 if test -z "$ac_cv_path_GREP"; then
4193 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4194 fi
4195 else
4196 ac_cv_path_GREP=$GREP
4197 fi
4198
4199 fi
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4201 $as_echo "$ac_cv_path_GREP" >&6; }
4202 GREP="$ac_cv_path_GREP"
4203
4204
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4206 $as_echo_n "checking for egrep... " >&6; }
4207 if ${ac_cv_path_EGREP+:} false; then :
4208 $as_echo_n "(cached) " >&6
4209 else
4210 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4211 then ac_cv_path_EGREP="$GREP -E"
4212 else
4213 if test -z "$EGREP"; then
4214 ac_path_EGREP_found=false
4215 # Loop through the user's path and test for each of PROGNAME-LIST
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4218 do
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_prog in egrep; do
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4224 as_fn_executable_p "$ac_path_EGREP" || continue
4225 # Check for GNU ac_path_EGREP and select it if it is found.
4226 # Check for GNU $ac_path_EGREP
4227 case `"$ac_path_EGREP" --version 2>&1` in
4228 *GNU*)
4229 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4230 *)
4231 ac_count=0
4232 $as_echo_n 0123456789 >"conftest.in"
4233 while :
4234 do
4235 cat "conftest.in" "conftest.in" >"conftest.tmp"
4236 mv "conftest.tmp" "conftest.in"
4237 cp "conftest.in" "conftest.nl"
4238 $as_echo 'EGREP' >> "conftest.nl"
4239 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4241 as_fn_arith $ac_count + 1 && ac_count=$as_val
4242 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4243 # Best one so far, save it but keep looking for a better one
4244 ac_cv_path_EGREP="$ac_path_EGREP"
4245 ac_path_EGREP_max=$ac_count
4246 fi
4247 # 10*(2^10) chars as input seems more than enough
4248 test $ac_count -gt 10 && break
4249 done
4250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4251 esac
4252
4253 $ac_path_EGREP_found && break 3
4254 done
4255 done
4256 done
4257 IFS=$as_save_IFS
4258 if test -z "$ac_cv_path_EGREP"; then
4259 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4260 fi
4261 else
4262 ac_cv_path_EGREP=$EGREP
4263 fi
4264
4265 fi
4266 fi
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4268 $as_echo "$ac_cv_path_EGREP" >&6; }
4269 EGREP="$ac_cv_path_EGREP"
4270
4271
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4273 $as_echo_n "checking for ANSI C header files... " >&6; }
4274 if ${ac_cv_header_stdc+:} false; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279 #include <stdlib.h>
4280 #include <stdarg.h>
4281 #include <string.h>
4282 #include <float.h>
4283
4284 int
4285 main ()
4286 {
4287
4288 ;
4289 return 0;
4290 }
4291 _ACEOF
4292 if ac_fn_c_try_compile "$LINENO"; then :
4293 ac_cv_header_stdc=yes
4294 else
4295 ac_cv_header_stdc=no
4296 fi
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298
4299 if test $ac_cv_header_stdc = yes; then
4300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4303 #include <string.h>
4304
4305 _ACEOF
4306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4307 $EGREP "memchr" >/dev/null 2>&1; then :
4308
4309 else
4310 ac_cv_header_stdc=no
4311 fi
4312 rm -f conftest*
4313
4314 fi
4315
4316 if test $ac_cv_header_stdc = yes; then
4317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4320 #include <stdlib.h>
4321
4322 _ACEOF
4323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4324 $EGREP "free" >/dev/null 2>&1; then :
4325
4326 else
4327 ac_cv_header_stdc=no
4328 fi
4329 rm -f conftest*
4330
4331 fi
4332
4333 if test $ac_cv_header_stdc = yes; then
4334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4335 if test "$cross_compiling" = yes; then :
4336 :
4337 else
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4340 #include <ctype.h>
4341 #include <stdlib.h>
4342 #if ((' ' & 0x0FF) == 0x020)
4343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4345 #else
4346 # define ISLOWER(c) \
4347 (('a' <= (c) && (c) <= 'i') \
4348 || ('j' <= (c) && (c) <= 'r') \
4349 || ('s' <= (c) && (c) <= 'z'))
4350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4351 #endif
4352
4353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4354 int
4355 main ()
4356 {
4357 int i;
4358 for (i = 0; i < 256; i++)
4359 if (XOR (islower (i), ISLOWER (i))
4360 || toupper (i) != TOUPPER (i))
4361 return 2;
4362 return 0;
4363 }
4364 _ACEOF
4365 if ac_fn_c_try_run "$LINENO"; then :
4366
4367 else
4368 ac_cv_header_stdc=no
4369 fi
4370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4371 conftest.$ac_objext conftest.beam conftest.$ac_ext
4372 fi
4373
4374 fi
4375 fi
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4377 $as_echo "$ac_cv_header_stdc" >&6; }
4378 if test $ac_cv_header_stdc = yes; then
4379
4380 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4381
4382 fi
4383
4384 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4385 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4386 inttypes.h stdint.h unistd.h
4387 do :
4388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4389 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4390 "
4391 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4392 cat >>confdefs.h <<_ACEOF
4393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4394 _ACEOF
4395
4396 fi
4397
4398 done
4399
4400
4401 test "$program_prefix" != NONE &&
4402 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4403 # Use a double $ so make ignores it.
4404 test "$program_suffix" != NONE &&
4405 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4406 # Double any \ or $.
4407 # By default was `s,x,x', remove it if useless.
4408 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4409 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4410
4411 # Find a good install program. We prefer a C program (faster),
4412 # so one script is as good as another. But avoid the broken or
4413 # incompatible versions:
4414 # SysV /etc/install, /usr/sbin/install
4415 # SunOS /usr/etc/install
4416 # IRIX /sbin/install
4417 # AIX /bin/install
4418 # AmigaOS /C/install, which installs bootblocks on floppy discs
4419 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4420 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4421 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4422 # OS/2's system install, which has a completely different semantic
4423 # ./install, which can be erroneously created by make from ./install.sh.
4424 # Reject install programs that cannot install multiple files.
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4426 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4427 if test -z "$INSTALL"; then
4428 if ${ac_cv_path_install+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 # Account for people who put trailing slashes in PATH elements.
4437 case $as_dir/ in #((
4438 ./ | .// | /[cC]/* | \
4439 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4440 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4441 /usr/ucb/* ) ;;
4442 *)
4443 # OSF1 and SCO ODT 3.0 have their own names for install.
4444 # Don't use installbsd from OSF since it installs stuff as root
4445 # by default.
4446 for ac_prog in ginstall scoinst install; do
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4449 if test $ac_prog = install &&
4450 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4451 # AIX install. It has an incompatible calling convention.
4452 :
4453 elif test $ac_prog = install &&
4454 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4455 # program-specific install script used by HP pwplus--don't use.
4456 :
4457 else
4458 rm -rf conftest.one conftest.two conftest.dir
4459 echo one > conftest.one
4460 echo two > conftest.two
4461 mkdir conftest.dir
4462 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4463 test -s conftest.one && test -s conftest.two &&
4464 test -s conftest.dir/conftest.one &&
4465 test -s conftest.dir/conftest.two
4466 then
4467 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4468 break 3
4469 fi
4470 fi
4471 fi
4472 done
4473 done
4474 ;;
4475 esac
4476
4477 done
4478 IFS=$as_save_IFS
4479
4480 rm -rf conftest.one conftest.two conftest.dir
4481
4482 fi
4483 if test "${ac_cv_path_install+set}" = set; then
4484 INSTALL=$ac_cv_path_install
4485 else
4486 # As a last resort, use the slow shell script. Don't cache a
4487 # value for INSTALL within a source directory, because that will
4488 # break other packages using the cache if that directory is
4489 # removed, or if the value is a relative name.
4490 INSTALL=$ac_install_sh
4491 fi
4492 fi
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4494 $as_echo "$INSTALL" >&6; }
4495
4496 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4497 # It thinks the first close brace ends the variable substitution.
4498 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4499
4500 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4501
4502 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4503
4504
4505
4506
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4508 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4509 if ${ac_cv_c_bigendian+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 ac_cv_c_bigendian=unknown
4513 # See if we're dealing with a universal compiler.
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4516 #ifndef __APPLE_CC__
4517 not a universal capable compiler
4518 #endif
4519 typedef int dummy;
4520
4521 _ACEOF
4522 if ac_fn_c_try_compile "$LINENO"; then :
4523
4524 # Check for potential -arch flags. It is not universal unless
4525 # there are at least two -arch flags with different values.
4526 ac_arch=
4527 ac_prev=
4528 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4529 if test -n "$ac_prev"; then
4530 case $ac_word in
4531 i?86 | x86_64 | ppc | ppc64)
4532 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4533 ac_arch=$ac_word
4534 else
4535 ac_cv_c_bigendian=universal
4536 break
4537 fi
4538 ;;
4539 esac
4540 ac_prev=
4541 elif test "x$ac_word" = "x-arch"; then
4542 ac_prev=arch
4543 fi
4544 done
4545 fi
4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547 if test $ac_cv_c_bigendian = unknown; then
4548 # See if sys/param.h defines the BYTE_ORDER macro.
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4551 #include <sys/types.h>
4552 #include <sys/param.h>
4553
4554 int
4555 main ()
4556 {
4557 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4558 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4559 && LITTLE_ENDIAN)
4560 bogus endian macros
4561 #endif
4562
4563 ;
4564 return 0;
4565 }
4566 _ACEOF
4567 if ac_fn_c_try_compile "$LINENO"; then :
4568 # It does; now see whether it defined to BIG_ENDIAN or not.
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4571 #include <sys/types.h>
4572 #include <sys/param.h>
4573
4574 int
4575 main ()
4576 {
4577 #if BYTE_ORDER != BIG_ENDIAN
4578 not big endian
4579 #endif
4580
4581 ;
4582 return 0;
4583 }
4584 _ACEOF
4585 if ac_fn_c_try_compile "$LINENO"; then :
4586 ac_cv_c_bigendian=yes
4587 else
4588 ac_cv_c_bigendian=no
4589 fi
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591 fi
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 fi
4594 if test $ac_cv_c_bigendian = unknown; then
4595 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598 #include <limits.h>
4599
4600 int
4601 main ()
4602 {
4603 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4604 bogus endian macros
4605 #endif
4606
4607 ;
4608 return 0;
4609 }
4610 _ACEOF
4611 if ac_fn_c_try_compile "$LINENO"; then :
4612 # It does; now see whether it defined to _BIG_ENDIAN or not.
4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4615 #include <limits.h>
4616
4617 int
4618 main ()
4619 {
4620 #ifndef _BIG_ENDIAN
4621 not big endian
4622 #endif
4623
4624 ;
4625 return 0;
4626 }
4627 _ACEOF
4628 if ac_fn_c_try_compile "$LINENO"; then :
4629 ac_cv_c_bigendian=yes
4630 else
4631 ac_cv_c_bigendian=no
4632 fi
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 fi
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 fi
4637 if test $ac_cv_c_bigendian = unknown; then
4638 # Compile a test program.
4639 if test "$cross_compiling" = yes; then :
4640 # Try to guess by grepping values from an object file.
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 short int ascii_mm[] =
4644 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4645 short int ascii_ii[] =
4646 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4647 int use_ascii (int i) {
4648 return ascii_mm[i] + ascii_ii[i];
4649 }
4650 short int ebcdic_ii[] =
4651 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4652 short int ebcdic_mm[] =
4653 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4654 int use_ebcdic (int i) {
4655 return ebcdic_mm[i] + ebcdic_ii[i];
4656 }
4657 extern int foo;
4658
4659 int
4660 main ()
4661 {
4662 return use_ascii (foo) == use_ebcdic (foo);
4663 ;
4664 return 0;
4665 }
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4669 ac_cv_c_bigendian=yes
4670 fi
4671 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4672 if test "$ac_cv_c_bigendian" = unknown; then
4673 ac_cv_c_bigendian=no
4674 else
4675 # finding both strings is unlikely to happen, but who knows?
4676 ac_cv_c_bigendian=unknown
4677 fi
4678 fi
4679 fi
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 else
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684 $ac_includes_default
4685 int
4686 main ()
4687 {
4688
4689 /* Are we little or big endian? From Harbison&Steele. */
4690 union
4691 {
4692 long int l;
4693 char c[sizeof (long int)];
4694 } u;
4695 u.l = 1;
4696 return u.c[sizeof (long int) - 1] == 1;
4697
4698 ;
4699 return 0;
4700 }
4701 _ACEOF
4702 if ac_fn_c_try_run "$LINENO"; then :
4703 ac_cv_c_bigendian=no
4704 else
4705 ac_cv_c_bigendian=yes
4706 fi
4707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4708 conftest.$ac_objext conftest.beam conftest.$ac_ext
4709 fi
4710
4711 fi
4712 fi
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4714 $as_echo "$ac_cv_c_bigendian" >&6; }
4715 case $ac_cv_c_bigendian in #(
4716 yes)
4717 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4718 ;; #(
4719 no)
4720 ;; #(
4721 universal)
4722
4723 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4724
4725 ;; #(
4726 *)
4727 as_fn_error $? "unknown endianness
4728 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4729 esac
4730
4731
4732
4733
4734 if test -n "$ac_tool_prefix"; then
4735 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4736 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if ${ac_cv_prog_DTC+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -n "$DTC"; then
4743 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4755 fi
4756 done
4757 done
4758 IFS=$as_save_IFS
4759
4760 fi
4761 fi
4762 DTC=$ac_cv_prog_DTC
4763 if test -n "$DTC"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4765 $as_echo "$DTC" >&6; }
4766 else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4769 fi
4770
4771
4772 fi
4773 if test -z "$ac_cv_prog_DTC"; then
4774 ac_ct_DTC=$DTC
4775 # Extract the first word of "dtc", so it can be a program name with args.
4776 set dummy dtc; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test -n "$ac_ct_DTC"; then
4783 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4792 ac_cv_prog_ac_ct_DTC="dtc"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4795 fi
4796 done
4797 done
4798 IFS=$as_save_IFS
4799
4800 fi
4801 fi
4802 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4803 if test -n "$ac_ct_DTC"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4805 $as_echo "$ac_ct_DTC" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4809 fi
4810
4811 if test "x$ac_ct_DTC" = x; then
4812 DTC=""
4813 else
4814 case $cross_compiling:$ac_tool_warned in
4815 yes:)
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4818 ac_tool_warned=yes ;;
4819 esac
4820 DTC=$ac_ct_DTC
4821 fi
4822 else
4823 DTC="$ac_cv_prog_DTC"
4824 fi
4825
4826
4827 if test "x$cross_compiling" = "xno"; then
4828 : "${AR_FOR_BUILD:=\$(AR)}"
4829 : "${CC_FOR_BUILD:=\$(CC)}"
4830 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4831 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4832 : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}"
4833 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4834 else
4835 : "${AR_FOR_BUILD:=ar}"
4836 : "${CC_FOR_BUILD:=gcc}"
4837 : "${RANLIB_FOR_BUILD:=ranlib}"
4838 : "${CFLAGS_FOR_BUILD:=-g -O}"
4839 : "${CPPFLAGS_FOR_BUILD:=}"
4840 : "${LDLFAGS_FOR_BUILD:=}"
4841 fi
4842
4843
4844
4845
4846
4847
4848
4849
4850 if test -n "$ac_tool_prefix"; then
4851 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4852 set dummy ${ac_tool_prefix}ar; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_AR+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$AR"; then
4859 ac_cv_prog_AR="$AR" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868 ac_cv_prog_AR="${ac_tool_prefix}ar"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4871 fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 AR=$ac_cv_prog_AR
4879 if test -n "$AR"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4881 $as_echo "$AR" >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4885 fi
4886
4887
4888 fi
4889 if test -z "$ac_cv_prog_AR"; then
4890 ac_ct_AR=$AR
4891 # Extract the first word of "ar", so it can be a program name with args.
4892 set dummy ar; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 if test -n "$ac_ct_AR"; then
4899 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908 ac_cv_prog_ac_ct_AR="ar"
4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 break 2
4911 fi
4912 done
4913 done
4914 IFS=$as_save_IFS
4915
4916 fi
4917 fi
4918 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4919 if test -n "$ac_ct_AR"; then
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4921 $as_echo "$ac_ct_AR" >&6; }
4922 else
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4925 fi
4926
4927 if test "x$ac_ct_AR" = x; then
4928 AR=""
4929 else
4930 case $cross_compiling:$ac_tool_warned in
4931 yes:)
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4934 ac_tool_warned=yes ;;
4935 esac
4936 AR=$ac_ct_AR
4937 fi
4938 else
4939 AR="$ac_cv_prog_AR"
4940 fi
4941
4942 if test -n "$ac_tool_prefix"; then
4943 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4944 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if ${ac_cv_prog_RANLIB+:} false; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 if test -n "$RANLIB"; then
4951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4952 else
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4955 do
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 break 2
4963 fi
4964 done
4965 done
4966 IFS=$as_save_IFS
4967
4968 fi
4969 fi
4970 RANLIB=$ac_cv_prog_RANLIB
4971 if test -n "$RANLIB"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4973 $as_echo "$RANLIB" >&6; }
4974 else
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4977 fi
4978
4979
4980 fi
4981 if test -z "$ac_cv_prog_RANLIB"; then
4982 ac_ct_RANLIB=$RANLIB
4983 # Extract the first word of "ranlib", so it can be a program name with args.
4984 set dummy ranlib; ac_word=$2
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 $as_echo_n "checking for $ac_word... " >&6; }
4987 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 if test -n "$ac_ct_RANLIB"; then
4991 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4992 else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_prog_ac_ct_RANLIB="ranlib"
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5003 fi
5004 done
5005 done
5006 IFS=$as_save_IFS
5007
5008 fi
5009 fi
5010 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5011 if test -n "$ac_ct_RANLIB"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5013 $as_echo "$ac_ct_RANLIB" >&6; }
5014 else
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5017 fi
5018
5019 if test "x$ac_ct_RANLIB" = x; then
5020 RANLIB=":"
5021 else
5022 case $cross_compiling:$ac_tool_warned in
5023 yes:)
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5026 ac_tool_warned=yes ;;
5027 esac
5028 RANLIB=$ac_ct_RANLIB
5029 fi
5030 else
5031 RANLIB="$ac_cv_prog_RANLIB"
5032 fi
5033
5034
5035
5036
5037
5038
5039
5040
5041 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5042 if test -n "$ac_tool_prefix"; then
5043 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5044 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 case $PKG_CONFIG in
5051 [\\/]* | ?:[\\/]*)
5052 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5053 ;;
5054 *)
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5062 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5065 fi
5066 done
5067 done
5068 IFS=$as_save_IFS
5069
5070 ;;
5071 esac
5072 fi
5073 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5074 if test -n "$PKG_CONFIG"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5076 $as_echo "$PKG_CONFIG" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5080 fi
5081
5082
5083 fi
5084 if test -z "$ac_cv_path_PKG_CONFIG"; then
5085 ac_pt_PKG_CONFIG=$PKG_CONFIG
5086 # Extract the first word of "pkg-config", so it can be a program name with args.
5087 set dummy pkg-config; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 case $ac_pt_PKG_CONFIG in
5094 [\\/]* | ?:[\\/]*)
5095 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5096 ;;
5097 *)
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5100 do
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5105 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 break 2
5108 fi
5109 done
5110 done
5111 IFS=$as_save_IFS
5112
5113 ;;
5114 esac
5115 fi
5116 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5117 if test -n "$ac_pt_PKG_CONFIG"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5119 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5120 else
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5123 fi
5124
5125 if test "x$ac_pt_PKG_CONFIG" = x; then
5126 PKG_CONFIG=""
5127 else
5128 case $cross_compiling:$ac_tool_warned in
5129 yes:)
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5132 ac_tool_warned=yes ;;
5133 esac
5134 PKG_CONFIG=$ac_pt_PKG_CONFIG
5135 fi
5136 else
5137 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5138 fi
5139
5140 fi
5141 if test -n "$PKG_CONFIG"; then
5142 _pkg_min_version=0.9.0
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5144 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5145 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5147 $as_echo "yes" >&6; }
5148 else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5151 PKG_CONFIG=""
5152 fi
5153 fi
5154
5155 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5156 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5157 # is C99. So handle it ourselves.
5158 :
5159 C_DIALECT=
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5161 $as_echo_n "checking whether C11 is supported by default... " >&6; }
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164
5165 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5166 # error "C11 support not found"
5167 #endif
5168
5169 _ACEOF
5170 if ac_fn_c_try_compile "$LINENO"; then :
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5172 $as_echo "yes" >&6; }
5173 else
5174
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5178 $as_echo_n "checking for -std=c11 support... " >&6; }
5179 ac_save_CC="$CC"
5180 CC="$CC -std=c11"
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5183
5184 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5185 # error "C11 support not found"
5186 #endif
5187
5188 _ACEOF
5189 if ac_fn_c_try_compile "$LINENO"; then :
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5192 $as_echo "yes" >&6; }
5193 CC="$ac_save_CC"
5194 C_DIALECT="-std=c11"
5195
5196 else
5197 as_fn_error $? "C11 is required" "$LINENO" 5
5198 fi
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200 fi
5201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5202
5203
5204
5205
5206
5207 for ac_header in $ac_header_list
5208 do :
5209 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5210 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5211 "
5212 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5213 cat >>confdefs.h <<_ACEOF
5214 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5215 _ACEOF
5216
5217 fi
5218
5219 done
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270 for ac_func in $ac_func_list
5271 do :
5272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5273 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5274 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5275 cat >>confdefs.h <<_ACEOF
5276 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5277 _ACEOF
5278
5279 fi
5280 done
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5409 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5410 if ${ac_cv_struct_tm+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5415 #include <sys/types.h>
5416 #include <time.h>
5417
5418 int
5419 main ()
5420 {
5421 struct tm tm;
5422 int *p = &tm.tm_sec;
5423 return !p;
5424 ;
5425 return 0;
5426 }
5427 _ACEOF
5428 if ac_fn_c_try_compile "$LINENO"; then :
5429 ac_cv_struct_tm=time.h
5430 else
5431 ac_cv_struct_tm=sys/time.h
5432 fi
5433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5434 fi
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5436 $as_echo "$ac_cv_struct_tm" >&6; }
5437 if test $ac_cv_struct_tm = sys/time.h; then
5438
5439 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5440
5441 fi
5442
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5444 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5445 if ${ac_cv_type_uid_t+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 #include <sys/types.h>
5451
5452 _ACEOF
5453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5454 $EGREP "uid_t" >/dev/null 2>&1; then :
5455 ac_cv_type_uid_t=yes
5456 else
5457 ac_cv_type_uid_t=no
5458 fi
5459 rm -f conftest*
5460
5461 fi
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5463 $as_echo "$ac_cv_type_uid_t" >&6; }
5464 if test $ac_cv_type_uid_t = no; then
5465
5466 $as_echo "#define uid_t int" >>confdefs.h
5467
5468
5469 $as_echo "#define gid_t int" >>confdefs.h
5470
5471 fi
5472
5473 case `pwd` in
5474 *\ * | *\ *)
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5476 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5477 esac
5478
5479
5480
5481 macro_version='2.2.7a'
5482 macro_revision='1.3134'
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496 ltmain="$ac_aux_dir/ltmain.sh"
5497
5498 # Backslashify metacharacters that are still active within
5499 # double-quoted strings.
5500 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5501
5502 # Same as above, but do not quote variable references.
5503 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5504
5505 # Sed substitution to delay expansion of an escaped shell variable in a
5506 # double_quote_subst'ed string.
5507 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5508
5509 # Sed substitution to delay expansion of an escaped single quote.
5510 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5511
5512 # Sed substitution to avoid accidental globbing in evaled expressions
5513 no_glob_subst='s/\*/\\\*/g'
5514
5515 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5516 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5517 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5518
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5520 $as_echo_n "checking how to print strings... " >&6; }
5521 # Test print first, because it will be a builtin if present.
5522 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5523 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5524 ECHO='print -r --'
5525 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5526 ECHO='printf %s\n'
5527 else
5528 # Use this function as a fallback that always works.
5529 func_fallback_echo ()
5530 {
5531 eval 'cat <<_LTECHO_EOF
5532 $1
5533 _LTECHO_EOF'
5534 }
5535 ECHO='func_fallback_echo'
5536 fi
5537
5538 # func_echo_all arg...
5539 # Invoke $ECHO with all args, space-separated.
5540 func_echo_all ()
5541 {
5542 $ECHO ""
5543 }
5544
5545 case "$ECHO" in
5546 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5547 $as_echo "printf" >&6; } ;;
5548 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5549 $as_echo "print -r" >&6; } ;;
5550 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5551 $as_echo "cat" >&6; } ;;
5552 esac
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5568 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5569 if ${ac_cv_path_SED+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5573 for ac_i in 1 2 3 4 5 6 7; do
5574 ac_script="$ac_script$as_nl$ac_script"
5575 done
5576 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5577 { ac_script=; unset ac_script;}
5578 if test -z "$SED"; then
5579 ac_path_SED_found=false
5580 # Loop through the user's path and test for each of PROGNAME-LIST
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584 IFS=$as_save_IFS
5585 test -z "$as_dir" && as_dir=.
5586 for ac_prog in sed gsed; do
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5589 as_fn_executable_p "$ac_path_SED" || continue
5590 # Check for GNU ac_path_SED and select it if it is found.
5591 # Check for GNU $ac_path_SED
5592 case `"$ac_path_SED" --version 2>&1` in
5593 *GNU*)
5594 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5595 *)
5596 ac_count=0
5597 $as_echo_n 0123456789 >"conftest.in"
5598 while :
5599 do
5600 cat "conftest.in" "conftest.in" >"conftest.tmp"
5601 mv "conftest.tmp" "conftest.in"
5602 cp "conftest.in" "conftest.nl"
5603 $as_echo '' >> "conftest.nl"
5604 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5606 as_fn_arith $ac_count + 1 && ac_count=$as_val
5607 if test $ac_count -gt ${ac_path_SED_max-0}; then
5608 # Best one so far, save it but keep looking for a better one
5609 ac_cv_path_SED="$ac_path_SED"
5610 ac_path_SED_max=$ac_count
5611 fi
5612 # 10*(2^10) chars as input seems more than enough
5613 test $ac_count -gt 10 && break
5614 done
5615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5616 esac
5617
5618 $ac_path_SED_found && break 3
5619 done
5620 done
5621 done
5622 IFS=$as_save_IFS
5623 if test -z "$ac_cv_path_SED"; then
5624 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5625 fi
5626 else
5627 ac_cv_path_SED=$SED
5628 fi
5629
5630 fi
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5632 $as_echo "$ac_cv_path_SED" >&6; }
5633 SED="$ac_cv_path_SED"
5634 rm -f conftest.sed
5635
5636 test -z "$SED" && SED=sed
5637 Xsed="$SED -e 1s/^X//"
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5650 $as_echo_n "checking for fgrep... " >&6; }
5651 if ${ac_cv_path_FGREP+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5655 then ac_cv_path_FGREP="$GREP -F"
5656 else
5657 if test -z "$FGREP"; then
5658 ac_path_FGREP_found=false
5659 # Loop through the user's path and test for each of PROGNAME-LIST
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5662 do
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_prog in fgrep; do
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5668 as_fn_executable_p "$ac_path_FGREP" || continue
5669 # Check for GNU ac_path_FGREP and select it if it is found.
5670 # Check for GNU $ac_path_FGREP
5671 case `"$ac_path_FGREP" --version 2>&1` in
5672 *GNU*)
5673 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5674 *)
5675 ac_count=0
5676 $as_echo_n 0123456789 >"conftest.in"
5677 while :
5678 do
5679 cat "conftest.in" "conftest.in" >"conftest.tmp"
5680 mv "conftest.tmp" "conftest.in"
5681 cp "conftest.in" "conftest.nl"
5682 $as_echo 'FGREP' >> "conftest.nl"
5683 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5685 as_fn_arith $ac_count + 1 && ac_count=$as_val
5686 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5687 # Best one so far, save it but keep looking for a better one
5688 ac_cv_path_FGREP="$ac_path_FGREP"
5689 ac_path_FGREP_max=$ac_count
5690 fi
5691 # 10*(2^10) chars as input seems more than enough
5692 test $ac_count -gt 10 && break
5693 done
5694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5695 esac
5696
5697 $ac_path_FGREP_found && break 3
5698 done
5699 done
5700 done
5701 IFS=$as_save_IFS
5702 if test -z "$ac_cv_path_FGREP"; then
5703 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5704 fi
5705 else
5706 ac_cv_path_FGREP=$FGREP
5707 fi
5708
5709 fi
5710 fi
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5712 $as_echo "$ac_cv_path_FGREP" >&6; }
5713 FGREP="$ac_cv_path_FGREP"
5714
5715
5716 test -z "$GREP" && GREP=grep
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736 # Check whether --with-gnu-ld was given.
5737 if test "${with_gnu_ld+set}" = set; then :
5738 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5739 else
5740 with_gnu_ld=no
5741 fi
5742
5743 ac_prog=ld
5744 if test "$GCC" = yes; then
5745 # Check if gcc -print-prog-name=ld gives a path.
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5747 $as_echo_n "checking for ld used by $CC... " >&6; }
5748 case $host in
5749 *-*-mingw*)
5750 # gcc leaves a trailing carriage return which upsets mingw
5751 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5752 *)
5753 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5754 esac
5755 case $ac_prog in
5756 # Accept absolute paths.
5757 [\\/]* | ?:[\\/]*)
5758 re_direlt='/[^/][^/]*/\.\./'
5759 # Canonicalize the pathname of ld
5760 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5761 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5762 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5763 done
5764 test -z "$LD" && LD="$ac_prog"
5765 ;;
5766 "")
5767 # If it fails, then pretend we aren't using GCC.
5768 ac_prog=ld
5769 ;;
5770 *)
5771 # If it is relative, then search for the first ld in PATH.
5772 with_gnu_ld=unknown
5773 ;;
5774 esac
5775 elif test "$with_gnu_ld" = yes; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5777 $as_echo_n "checking for GNU ld... " >&6; }
5778 else
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5780 $as_echo_n "checking for non-GNU ld... " >&6; }
5781 fi
5782 if ${lt_cv_path_LD+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 if test -z "$LD"; then
5786 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5787 for ac_dir in $PATH; do
5788 IFS="$lt_save_ifs"
5789 test -z "$ac_dir" && ac_dir=.
5790 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5791 lt_cv_path_LD="$ac_dir/$ac_prog"
5792 # Check to see if the program is GNU ld. I'd rather use --version,
5793 # but apparently some variants of GNU ld only accept -v.
5794 # Break only if it was the GNU/non-GNU ld that we prefer.
5795 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5796 *GNU* | *'with BFD'*)
5797 test "$with_gnu_ld" != no && break
5798 ;;
5799 *)
5800 test "$with_gnu_ld" != yes && break
5801 ;;
5802 esac
5803 fi
5804 done
5805 IFS="$lt_save_ifs"
5806 else
5807 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5808 fi
5809 fi
5810
5811 LD="$lt_cv_path_LD"
5812 if test -n "$LD"; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5814 $as_echo "$LD" >&6; }
5815 else
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 $as_echo "no" >&6; }
5818 fi
5819 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5821 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5822 if ${lt_cv_prog_gnu_ld+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5826 case `$LD -v 2>&1 </dev/null` in
5827 *GNU* | *'with BFD'*)
5828 lt_cv_prog_gnu_ld=yes
5829 ;;
5830 *)
5831 lt_cv_prog_gnu_ld=no
5832 ;;
5833 esac
5834 fi
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5836 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5837 with_gnu_ld=$lt_cv_prog_gnu_ld
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5848 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5849 if ${lt_cv_path_NM+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 if test -n "$NM"; then
5853 # Let the user override the nm to test.
5854 lt_nm_to_check="$NM"
5855 else
5856 lt_nm_to_check="${ac_tool_prefix}nm"
5857 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5858 lt_nm_to_check="$lt_nm_to_check nm"
5859 fi
5860 fi
5861 for lt_tmp_nm in "$lt_nm_to_check"; do
5862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5863 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5864 IFS="$lt_save_ifs"
5865 test -z "$ac_dir" && ac_dir=.
5866 # Strip out any user-provided options from the nm to test twice,
5867 # the first time to test to see if nm (rather than its options) has
5868 # an explicit path, the second time to yield a file which can be
5869 # nm'ed itself.
5870 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5871 case "$tmp_nm_path" in
5872 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5873 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5874 esac
5875 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5876 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5877 # Check to see if the nm accepts a BSD-compat flag.
5878 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5879 # nm: unknown option "B" ignored
5880 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5881 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5882 break
5883 ;;
5884 *)
5885 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5886 *$tmp_nm*)
5887 lt_cv_path_NM="$tmp_nm -p"
5888 break
5889 ;;
5890 *)
5891 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5892 continue # so that we can try to find one that supports BSD flags
5893 ;;
5894 esac
5895 ;;
5896 esac
5897 fi
5898 done
5899 IFS="$lt_save_ifs"
5900 done
5901 : ${lt_cv_path_NM=no}
5902 fi
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5904 $as_echo "$lt_cv_path_NM" >&6; }
5905 if test "$lt_cv_path_NM" != "no"; then
5906 NM="$lt_cv_path_NM"
5907 else
5908 # Didn't find any BSD compatible name lister, look for dumpbin.
5909 if test -n "$DUMPBIN"; then :
5910 # Let the user override the test.
5911 else
5912 if test -n "$ac_tool_prefix"; then
5913 for ac_prog in dumpbin "link -dump"
5914 do
5915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_prog_DUMPBIN+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 if test -n "$DUMPBIN"; then
5923 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936 done
5937 done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 DUMPBIN=$ac_cv_prog_DUMPBIN
5943 if test -n "$DUMPBIN"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5945 $as_echo "$DUMPBIN" >&6; }
5946 else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5949 fi
5950
5951
5952 test -n "$DUMPBIN" && break
5953 done
5954 fi
5955 if test -z "$DUMPBIN"; then
5956 ac_ct_DUMPBIN=$DUMPBIN
5957 for ac_prog in dumpbin "link -dump"
5958 do
5959 # Extract the first word of "$ac_prog", so it can be a program name with args.
5960 set dummy $ac_prog; ac_word=$2
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 $as_echo_n "checking for $ac_word... " >&6; }
5963 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 if test -n "$ac_ct_DUMPBIN"; then
5967 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5971 do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5976 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980 done
5981 done
5982 IFS=$as_save_IFS
5983
5984 fi
5985 fi
5986 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5987 if test -n "$ac_ct_DUMPBIN"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5989 $as_echo "$ac_ct_DUMPBIN" >&6; }
5990 else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992 $as_echo "no" >&6; }
5993 fi
5994
5995
5996 test -n "$ac_ct_DUMPBIN" && break
5997 done
5998
5999 if test "x$ac_ct_DUMPBIN" = x; then
6000 DUMPBIN=":"
6001 else
6002 case $cross_compiling:$ac_tool_warned in
6003 yes:)
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6006 ac_tool_warned=yes ;;
6007 esac
6008 DUMPBIN=$ac_ct_DUMPBIN
6009 fi
6010 fi
6011
6012 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6013 *COFF*)
6014 DUMPBIN="$DUMPBIN -symbols"
6015 ;;
6016 *)
6017 DUMPBIN=:
6018 ;;
6019 esac
6020 fi
6021
6022 if test "$DUMPBIN" != ":"; then
6023 NM="$DUMPBIN"
6024 fi
6025 fi
6026 test -z "$NM" && NM=nm
6027
6028
6029
6030
6031
6032
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6034 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6035 if ${lt_cv_nm_interface+:} false; then :
6036 $as_echo_n "(cached) " >&6
6037 else
6038 lt_cv_nm_interface="BSD nm"
6039 echo "int some_variable = 0;" > conftest.$ac_ext
6040 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6041 (eval "$ac_compile" 2>conftest.err)
6042 cat conftest.err >&5
6043 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6044 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6045 cat conftest.err >&5
6046 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6047 cat conftest.out >&5
6048 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6049 lt_cv_nm_interface="MS dumpbin"
6050 fi
6051 rm -f conftest*
6052 fi
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6054 $as_echo "$lt_cv_nm_interface" >&6; }
6055
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6057 $as_echo_n "checking whether ln -s works... " >&6; }
6058 LN_S=$as_ln_s
6059 if test "$LN_S" = "ln -s"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6061 $as_echo "yes" >&6; }
6062 else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6064 $as_echo "no, using $LN_S" >&6; }
6065 fi
6066
6067 # find the maximum length of command line arguments
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6069 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6070 if ${lt_cv_sys_max_cmd_len+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 i=0
6074 teststring="ABCD"
6075
6076 case $build_os in
6077 msdosdjgpp*)
6078 # On DJGPP, this test can blow up pretty badly due to problems in libc
6079 # (any single argument exceeding 2000 bytes causes a buffer overrun
6080 # during glob expansion). Even if it were fixed, the result of this
6081 # check would be larger than it should be.
6082 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6083 ;;
6084
6085 gnu*)
6086 # Under GNU Hurd, this test is not required because there is
6087 # no limit to the length of command line arguments.
6088 # Libtool will interpret -1 as no limit whatsoever
6089 lt_cv_sys_max_cmd_len=-1;
6090 ;;
6091
6092 cygwin* | mingw* | cegcc*)
6093 # On Win9x/ME, this test blows up -- it succeeds, but takes
6094 # about 5 minutes as the teststring grows exponentially.
6095 # Worse, since 9x/ME are not pre-emptively multitasking,
6096 # you end up with a "frozen" computer, even though with patience
6097 # the test eventually succeeds (with a max line length of 256k).
6098 # Instead, let's just punt: use the minimum linelength reported by
6099 # all of the supported platforms: 8192 (on NT/2K/XP).
6100 lt_cv_sys_max_cmd_len=8192;
6101 ;;
6102
6103 mint*)
6104 # On MiNT this can take a long time and run out of memory.
6105 lt_cv_sys_max_cmd_len=8192;
6106 ;;
6107
6108 amigaos*)
6109 # On AmigaOS with pdksh, this test takes hours, literally.
6110 # So we just punt and use a minimum line length of 8192.
6111 lt_cv_sys_max_cmd_len=8192;
6112 ;;
6113
6114 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6115 # This has been around since 386BSD, at least. Likely further.
6116 if test -x /sbin/sysctl; then
6117 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6118 elif test -x /usr/sbin/sysctl; then
6119 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6120 else
6121 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6122 fi
6123 # And add a safety zone
6124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6126 ;;
6127
6128 interix*)
6129 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6130 lt_cv_sys_max_cmd_len=196608
6131 ;;
6132
6133 osf*)
6134 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6135 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6136 # nice to cause kernel panics so lets avoid the loop below.
6137 # First set a reasonable default.
6138 lt_cv_sys_max_cmd_len=16384
6139 #
6140 if test -x /sbin/sysconfig; then
6141 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6142 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6143 esac
6144 fi
6145 ;;
6146 sco3.2v5*)
6147 lt_cv_sys_max_cmd_len=102400
6148 ;;
6149 sysv5* | sco5v6* | sysv4.2uw2*)
6150 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6151 if test -n "$kargmax"; then
6152 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6153 else
6154 lt_cv_sys_max_cmd_len=32768
6155 fi
6156 ;;
6157 *)
6158 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6159 if test -n "$lt_cv_sys_max_cmd_len"; then
6160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6162 else
6163 # Make teststring a little bigger before we do anything with it.
6164 # a 1K string should be a reasonable start.
6165 for i in 1 2 3 4 5 6 7 8 ; do
6166 teststring=$teststring$teststring
6167 done
6168 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6169 # If test is not a shell built-in, we'll probably end up computing a
6170 # maximum length that is only half of the actual maximum length, but
6171 # we can't tell.
6172 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6173 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6174 test $i != 17 # 1/2 MB should be enough
6175 do
6176 i=`expr $i + 1`
6177 teststring=$teststring$teststring
6178 done
6179 # Only check the string length outside the loop.
6180 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6181 teststring=
6182 # Add a significant safety factor because C++ compilers can tack on
6183 # massive amounts of additional arguments before passing them to the
6184 # linker. It appears as though 1/2 is a usable value.
6185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6186 fi
6187 ;;
6188 esac
6189
6190 fi
6191
6192 if test -n $lt_cv_sys_max_cmd_len ; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6194 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6195 else
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6197 $as_echo "none" >&6; }
6198 fi
6199 max_cmd_len=$lt_cv_sys_max_cmd_len
6200
6201
6202
6203
6204
6205
6206 : ${CP="cp -f"}
6207 : ${MV="mv -f"}
6208 : ${RM="rm -f"}
6209
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6211 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6212 # Try some XSI features
6213 xsi_shell=no
6214 ( _lt_dummy="a/b/c"
6215 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6216 = c,a/b,, \
6217 && eval 'test $(( 1 + 1 )) -eq 2 \
6218 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6219 && xsi_shell=yes
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6221 $as_echo "$xsi_shell" >&6; }
6222
6223
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6225 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6226 lt_shell_append=no
6227 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6228 >/dev/null 2>&1 \
6229 && lt_shell_append=yes
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6231 $as_echo "$lt_shell_append" >&6; }
6232
6233
6234 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6235 lt_unset=unset
6236 else
6237 lt_unset=false
6238 fi
6239
6240
6241
6242
6243
6244 # test EBCDIC or ASCII
6245 case `echo X|tr X '\101'` in
6246 A) # ASCII based system
6247 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6248 lt_SP2NL='tr \040 \012'
6249 lt_NL2SP='tr \015\012 \040\040'
6250 ;;
6251 *) # EBCDIC based system
6252 lt_SP2NL='tr \100 \n'
6253 lt_NL2SP='tr \r\n \100\100'
6254 ;;
6255 esac
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6266 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6267 if ${lt_cv_ld_reload_flag+:} false; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 lt_cv_ld_reload_flag='-r'
6271 fi
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6273 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6274 reload_flag=$lt_cv_ld_reload_flag
6275 case $reload_flag in
6276 "" | " "*) ;;
6277 *) reload_flag=" $reload_flag" ;;
6278 esac
6279 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6280 case $host_os in
6281 darwin*)
6282 if test "$GCC" = yes; then
6283 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6284 else
6285 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6286 fi
6287 ;;
6288 esac
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298 if test -n "$ac_tool_prefix"; then
6299 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6300 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if ${ac_cv_prog_OBJDUMP+:} false; then :
6304 $as_echo_n "(cached) " >&6
6305 else
6306 if test -n "$OBJDUMP"; then
6307 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6316 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320 done
6321 done
6322 IFS=$as_save_IFS
6323
6324 fi
6325 fi
6326 OBJDUMP=$ac_cv_prog_OBJDUMP
6327 if test -n "$OBJDUMP"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6329 $as_echo "$OBJDUMP" >&6; }
6330 else
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6333 fi
6334
6335
6336 fi
6337 if test -z "$ac_cv_prog_OBJDUMP"; then
6338 ac_ct_OBJDUMP=$OBJDUMP
6339 # Extract the first word of "objdump", so it can be a program name with args.
6340 set dummy objdump; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 if test -n "$ac_ct_OBJDUMP"; then
6347 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360 done
6361 done
6362 IFS=$as_save_IFS
6363
6364 fi
6365 fi
6366 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6367 if test -n "$ac_ct_OBJDUMP"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6369 $as_echo "$ac_ct_OBJDUMP" >&6; }
6370 else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6373 fi
6374
6375 if test "x$ac_ct_OBJDUMP" = x; then
6376 OBJDUMP="false"
6377 else
6378 case $cross_compiling:$ac_tool_warned in
6379 yes:)
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382 ac_tool_warned=yes ;;
6383 esac
6384 OBJDUMP=$ac_ct_OBJDUMP
6385 fi
6386 else
6387 OBJDUMP="$ac_cv_prog_OBJDUMP"
6388 fi
6389
6390 test -z "$OBJDUMP" && OBJDUMP=objdump
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6401 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6402 if ${lt_cv_deplibs_check_method+:} false; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 lt_cv_file_magic_cmd='$MAGIC_CMD'
6406 lt_cv_file_magic_test_file=
6407 lt_cv_deplibs_check_method='unknown'
6408 # Need to set the preceding variable on all platforms that support
6409 # interlibrary dependencies.
6410 # 'none' -- dependencies not supported.
6411 # `unknown' -- same as none, but documents that we really don't know.
6412 # 'pass_all' -- all dependencies passed with no checks.
6413 # 'test_compile' -- check by making test program.
6414 # 'file_magic [[regex]]' -- check by looking for files in library path
6415 # which responds to the $file_magic_cmd with a given extended regex.
6416 # If you have `file' or equivalent on your system and you're not sure
6417 # whether `pass_all' will *always* work, you probably want this one.
6418
6419 case $host_os in
6420 aix[4-9]*)
6421 lt_cv_deplibs_check_method=pass_all
6422 ;;
6423
6424 beos*)
6425 lt_cv_deplibs_check_method=pass_all
6426 ;;
6427
6428 bsdi[45]*)
6429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6430 lt_cv_file_magic_cmd='/usr/bin/file -L'
6431 lt_cv_file_magic_test_file=/shlib/libc.so
6432 ;;
6433
6434 cygwin*)
6435 # func_win32_libid is a shell function defined in ltmain.sh
6436 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6437 lt_cv_file_magic_cmd='func_win32_libid'
6438 ;;
6439
6440 mingw* | pw32*)
6441 # Base MSYS/MinGW do not provide the 'file' command needed by
6442 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6443 # unless we find 'file', for example because we are cross-compiling.
6444 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6445 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6446 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6447 lt_cv_file_magic_cmd='func_win32_libid'
6448 else
6449 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6450 lt_cv_file_magic_cmd='$OBJDUMP -f'
6451 fi
6452 ;;
6453
6454 cegcc*)
6455 # use the weaker test based on 'objdump'. See mingw*.
6456 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6457 lt_cv_file_magic_cmd='$OBJDUMP -f'
6458 ;;
6459
6460 darwin* | rhapsody*)
6461 lt_cv_deplibs_check_method=pass_all
6462 ;;
6463
6464 freebsd* | dragonfly*)
6465 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6466 case $host_cpu in
6467 i*86 )
6468 # Not sure whether the presence of OpenBSD here was a mistake.
6469 # Let's accept both of them until this is cleared up.
6470 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6471 lt_cv_file_magic_cmd=/usr/bin/file
6472 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6473 ;;
6474 esac
6475 else
6476 lt_cv_deplibs_check_method=pass_all
6477 fi
6478 ;;
6479
6480 gnu*)
6481 lt_cv_deplibs_check_method=pass_all
6482 ;;
6483
6484 haiku*)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
6487
6488 hpux10.20* | hpux11*)
6489 lt_cv_file_magic_cmd=/usr/bin/file
6490 case $host_cpu in
6491 ia64*)
6492 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6493 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6494 ;;
6495 hppa*64*)
6496 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]'
6497 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6498 ;;
6499 *)
6500 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6501 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6502 ;;
6503 esac
6504 ;;
6505
6506 interix[3-9]*)
6507 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6509 ;;
6510
6511 irix5* | irix6* | nonstopux*)
6512 case $LD in
6513 *-32|*"-32 ") libmagic=32-bit;;
6514 *-n32|*"-n32 ") libmagic=N32;;
6515 *-64|*"-64 ") libmagic=64-bit;;
6516 *) libmagic=never-match;;
6517 esac
6518 lt_cv_deplibs_check_method=pass_all
6519 ;;
6520
6521 # This must be Linux ELF.
6522 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6523 lt_cv_deplibs_check_method=pass_all
6524 ;;
6525
6526 netbsd*)
6527 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6528 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6529 else
6530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6531 fi
6532 ;;
6533
6534 newos6*)
6535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6536 lt_cv_file_magic_cmd=/usr/bin/file
6537 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6538 ;;
6539
6540 *nto* | *qnx*)
6541 lt_cv_deplibs_check_method=pass_all
6542 ;;
6543
6544 openbsd*)
6545 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6546 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6547 else
6548 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6549 fi
6550 ;;
6551
6552 osf3* | osf4* | osf5*)
6553 lt_cv_deplibs_check_method=pass_all
6554 ;;
6555
6556 rdos*)
6557 lt_cv_deplibs_check_method=pass_all
6558 ;;
6559
6560 solaris*)
6561 lt_cv_deplibs_check_method=pass_all
6562 ;;
6563
6564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6565 lt_cv_deplibs_check_method=pass_all
6566 ;;
6567
6568 sysv4 | sysv4.3*)
6569 case $host_vendor in
6570 motorola)
6571 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]'
6572 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6573 ;;
6574 ncr)
6575 lt_cv_deplibs_check_method=pass_all
6576 ;;
6577 sequent)
6578 lt_cv_file_magic_cmd='/bin/file'
6579 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6580 ;;
6581 sni)
6582 lt_cv_file_magic_cmd='/bin/file'
6583 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6584 lt_cv_file_magic_test_file=/lib/libc.so
6585 ;;
6586 siemens)
6587 lt_cv_deplibs_check_method=pass_all
6588 ;;
6589 pc)
6590 lt_cv_deplibs_check_method=pass_all
6591 ;;
6592 esac
6593 ;;
6594
6595 tpf*)
6596 lt_cv_deplibs_check_method=pass_all
6597 ;;
6598 esac
6599
6600 fi
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6602 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6603 file_magic_cmd=$lt_cv_file_magic_cmd
6604 deplibs_check_method=$lt_cv_deplibs_check_method
6605 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618 plugin_option=
6619 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6620 for plugin in $plugin_names; do
6621 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6622 if test x$plugin_so = x$plugin; then
6623 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6624 fi
6625 if test x$plugin_so != x$plugin; then
6626 plugin_option="--plugin $plugin_so"
6627 break
6628 fi
6629 done
6630
6631 if test -n "$ac_tool_prefix"; then
6632 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6633 set dummy ${ac_tool_prefix}ar; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 $as_echo_n "checking for $ac_word... " >&6; }
6636 if ${ac_cv_prog_AR+:} false; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 if test -n "$AR"; then
6640 ac_cv_prog_AR="$AR" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6644 do
6645 IFS=$as_save_IFS
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649 ac_cv_prog_AR="${ac_tool_prefix}ar"
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 break 2
6652 fi
6653 done
6654 done
6655 IFS=$as_save_IFS
6656
6657 fi
6658 fi
6659 AR=$ac_cv_prog_AR
6660 if test -n "$AR"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6662 $as_echo "$AR" >&6; }
6663 else
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6666 fi
6667
6668
6669 fi
6670 if test -z "$ac_cv_prog_AR"; then
6671 ac_ct_AR=$AR
6672 # Extract the first word of "ar", so it can be a program name with args.
6673 set dummy ar; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6677 $as_echo_n "(cached) " >&6
6678 else
6679 if test -n "$ac_ct_AR"; then
6680 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6681 else
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6684 do
6685 IFS=$as_save_IFS
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6689 ac_cv_prog_ac_ct_AR="ar"
6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 break 2
6692 fi
6693 done
6694 done
6695 IFS=$as_save_IFS
6696
6697 fi
6698 fi
6699 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6700 if test -n "$ac_ct_AR"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6702 $as_echo "$ac_ct_AR" >&6; }
6703 else
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6706 fi
6707
6708 if test "x$ac_ct_AR" = x; then
6709 AR="false"
6710 else
6711 case $cross_compiling:$ac_tool_warned in
6712 yes:)
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6715 ac_tool_warned=yes ;;
6716 esac
6717 AR=$ac_ct_AR
6718 fi
6719 else
6720 AR="$ac_cv_prog_AR"
6721 fi
6722
6723 test -z "$AR" && AR=ar
6724 if test -n "$plugin_option"; then
6725 if $AR --help 2>&1 | grep -q "\--plugin"; then
6726 touch conftest.c
6727 $AR $plugin_option rc conftest.a conftest.c
6728 if test "$?" != 0; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6730 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6731 else
6732 AR="$AR $plugin_option"
6733 fi
6734 rm -f conftest.*
6735 fi
6736 fi
6737 test -z "$AR_FLAGS" && AR_FLAGS=cru
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749 if test -n "$ac_tool_prefix"; then
6750 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6751 set dummy ${ac_tool_prefix}strip; ac_word=$2
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753 $as_echo_n "checking for $ac_word... " >&6; }
6754 if ${ac_cv_prog_STRIP+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 if test -n "$STRIP"; then
6758 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6759 else
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6762 do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6767 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6770 fi
6771 done
6772 done
6773 IFS=$as_save_IFS
6774
6775 fi
6776 fi
6777 STRIP=$ac_cv_prog_STRIP
6778 if test -n "$STRIP"; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6780 $as_echo "$STRIP" >&6; }
6781 else
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783 $as_echo "no" >&6; }
6784 fi
6785
6786
6787 fi
6788 if test -z "$ac_cv_prog_STRIP"; then
6789 ac_ct_STRIP=$STRIP
6790 # Extract the first word of "strip", so it can be a program name with args.
6791 set dummy strip; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6795 $as_echo_n "(cached) " >&6
6796 else
6797 if test -n "$ac_ct_STRIP"; then
6798 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807 ac_cv_prog_ac_ct_STRIP="strip"
6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6810 fi
6811 done
6812 done
6813 IFS=$as_save_IFS
6814
6815 fi
6816 fi
6817 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6818 if test -n "$ac_ct_STRIP"; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6820 $as_echo "$ac_ct_STRIP" >&6; }
6821 else
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6824 fi
6825
6826 if test "x$ac_ct_STRIP" = x; then
6827 STRIP=":"
6828 else
6829 case $cross_compiling:$ac_tool_warned in
6830 yes:)
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6833 ac_tool_warned=yes ;;
6834 esac
6835 STRIP=$ac_ct_STRIP
6836 fi
6837 else
6838 STRIP="$ac_cv_prog_STRIP"
6839 fi
6840
6841 test -z "$STRIP" && STRIP=:
6842
6843
6844
6845
6846
6847
6848 if test -n "$ac_tool_prefix"; then
6849 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6850 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if ${ac_cv_prog_RANLIB+:} false; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 if test -n "$RANLIB"; then
6857 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874 fi
6875 fi
6876 RANLIB=$ac_cv_prog_RANLIB
6877 if test -n "$RANLIB"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6879 $as_echo "$RANLIB" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6883 fi
6884
6885
6886 fi
6887 if test -z "$ac_cv_prog_RANLIB"; then
6888 ac_ct_RANLIB=$RANLIB
6889 # Extract the first word of "ranlib", so it can be a program name with args.
6890 set dummy ranlib; ac_word=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 if test -n "$ac_ct_RANLIB"; then
6897 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906 ac_cv_prog_ac_ct_RANLIB="ranlib"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910 done
6911 done
6912 IFS=$as_save_IFS
6913
6914 fi
6915 fi
6916 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6917 if test -n "$ac_ct_RANLIB"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6919 $as_echo "$ac_ct_RANLIB" >&6; }
6920 else
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6923 fi
6924
6925 if test "x$ac_ct_RANLIB" = x; then
6926 RANLIB=":"
6927 else
6928 case $cross_compiling:$ac_tool_warned in
6929 yes:)
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6932 ac_tool_warned=yes ;;
6933 esac
6934 RANLIB=$ac_ct_RANLIB
6935 fi
6936 else
6937 RANLIB="$ac_cv_prog_RANLIB"
6938 fi
6939
6940 test -z "$RANLIB" && RANLIB=:
6941 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6942 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6943 RANLIB="$RANLIB $plugin_option"
6944 fi
6945 fi
6946
6947
6948
6949
6950
6951
6952 # Determine commands to create old-style static archives.
6953 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6954 old_postinstall_cmds='chmod 644 $oldlib'
6955 old_postuninstall_cmds=
6956
6957 if test -n "$RANLIB"; then
6958 case $host_os in
6959 openbsd*)
6960 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6961 ;;
6962 *)
6963 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6964 ;;
6965 esac
6966 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6967 fi
6968
6969 case $host_os in
6970 darwin*)
6971 lock_old_archive_extraction=yes ;;
6972 *)
6973 lock_old_archive_extraction=no ;;
6974 esac
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996 for ac_prog in gawk mawk nawk awk
6997 do
6998 # Extract the first word of "$ac_prog", so it can be a program name with args.
6999 set dummy $ac_prog; ac_word=$2
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001 $as_echo_n "checking for $ac_word... " >&6; }
7002 if ${ac_cv_prog_AWK+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 if test -n "$AWK"; then
7006 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7007 else
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7010 do
7011 IFS=$as_save_IFS
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7015 ac_cv_prog_AWK="$ac_prog"
7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 break 2
7018 fi
7019 done
7020 done
7021 IFS=$as_save_IFS
7022
7023 fi
7024 fi
7025 AWK=$ac_cv_prog_AWK
7026 if test -n "$AWK"; then
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7028 $as_echo "$AWK" >&6; }
7029 else
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 $as_echo "no" >&6; }
7032 fi
7033
7034
7035 test -n "$AWK" && break
7036 done
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056 # If no C compiler was specified, use CC.
7057 LTCC=${LTCC-"$CC"}
7058
7059 # If no C compiler flags were specified, use CFLAGS.
7060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7061
7062 # Allow CC to be a program name with arguments.
7063 compiler=$CC
7064
7065
7066 # Check for command to grab the raw symbol name followed by C symbol from nm.
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7068 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7069 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072
7073 # These are sane defaults that work on at least a few old systems.
7074 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7075
7076 # Character class describing NM global symbol codes.
7077 symcode='[BCDEGRST]'
7078
7079 # Regexp to match symbols that can be accessed directly from C.
7080 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7081
7082 # Define system-specific variables.
7083 case $host_os in
7084 aix*)
7085 symcode='[BCDT]'
7086 ;;
7087 cygwin* | mingw* | pw32* | cegcc*)
7088 symcode='[ABCDGISTW]'
7089 ;;
7090 hpux*)
7091 if test "$host_cpu" = ia64; then
7092 symcode='[ABCDEGRST]'
7093 fi
7094 ;;
7095 irix* | nonstopux*)
7096 symcode='[BCDEGRST]'
7097 ;;
7098 osf*)
7099 symcode='[BCDEGQRST]'
7100 ;;
7101 solaris*)
7102 symcode='[BCDRT]'
7103 ;;
7104 sco3.2v5*)
7105 symcode='[DT]'
7106 ;;
7107 sysv4.2uw2*)
7108 symcode='[DT]'
7109 ;;
7110 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7111 symcode='[ABDT]'
7112 ;;
7113 sysv4)
7114 symcode='[DFNSTU]'
7115 ;;
7116 esac
7117
7118 # If we're using GNU nm, then use its standard symbol codes.
7119 case `$NM -V 2>&1` in
7120 *GNU* | *'with BFD'*)
7121 symcode='[ABCDGIRSTW]' ;;
7122 esac
7123
7124 # Transform an extracted symbol line into a proper C declaration.
7125 # Some systems (esp. on ia64) link data and code symbols differently,
7126 # so use this general approach.
7127 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7128
7129 # Transform an extracted symbol line into symbol name and symbol address
7130 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7131 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'"
7132
7133 # Handle CRLF in mingw tool chain
7134 opt_cr=
7135 case $build_os in
7136 mingw*)
7137 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7138 ;;
7139 esac
7140
7141 # Try without a prefix underscore, then with it.
7142 for ac_symprfx in "" "_"; do
7143
7144 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7145 symxfrm="\\1 $ac_symprfx\\2 \\2"
7146
7147 # Write the raw and C identifiers.
7148 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7149 # Fake it for dumpbin and say T for any non-static function
7150 # and D for any global variable.
7151 # Also find C++ and __fastcall symbols from MSVC++,
7152 # which start with @ or ?.
7153 lt_cv_sys_global_symbol_pipe="$AWK '"\
7154 " {last_section=section; section=\$ 3};"\
7155 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7156 " \$ 0!~/External *\|/{next};"\
7157 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7158 " {if(hide[section]) next};"\
7159 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7160 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7161 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7162 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7163 " ' prfx=^$ac_symprfx"
7164 else
7165 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7166 fi
7167
7168 # Check to see that the pipe works correctly.
7169 pipe_works=no
7170
7171 rm -f conftest*
7172 cat > conftest.$ac_ext <<_LT_EOF
7173 #ifdef __cplusplus
7174 extern "C" {
7175 #endif
7176 char nm_test_var;
7177 void nm_test_func(void);
7178 void nm_test_func(void){}
7179 #ifdef __cplusplus
7180 }
7181 #endif
7182 int main(){nm_test_var='a';nm_test_func();return(0);}
7183 _LT_EOF
7184
7185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7186 (eval $ac_compile) 2>&5
7187 ac_status=$?
7188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7189 test $ac_status = 0; }; then
7190 # Now try to grab the symbols.
7191 nlist=conftest.nm
7192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7193 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7194 ac_status=$?
7195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7196 test $ac_status = 0; } && test -s "$nlist"; then
7197 # Try sorting and uniquifying the output.
7198 if sort "$nlist" | uniq > "$nlist"T; then
7199 mv -f "$nlist"T "$nlist"
7200 else
7201 rm -f "$nlist"T
7202 fi
7203
7204 # Make sure that we snagged all the symbols we need.
7205 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7206 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7207 cat <<_LT_EOF > conftest.$ac_ext
7208 #ifdef __cplusplus
7209 extern "C" {
7210 #endif
7211
7212 _LT_EOF
7213 # Now generate the symbol file.
7214 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7215
7216 cat <<_LT_EOF >> conftest.$ac_ext
7217
7218 /* The mapping between symbol names and symbols. */
7219 const struct {
7220 const char *name;
7221 void *address;
7222 }
7223 lt__PROGRAM__LTX_preloaded_symbols[] =
7224 {
7225 { "@PROGRAM@", (void *) 0 },
7226 _LT_EOF
7227 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7228 cat <<\_LT_EOF >> conftest.$ac_ext
7229 {0, (void *) 0}
7230 };
7231
7232 /* This works around a problem in FreeBSD linker */
7233 #ifdef FREEBSD_WORKAROUND
7234 static const void *lt_preloaded_setup() {
7235 return lt__PROGRAM__LTX_preloaded_symbols;
7236 }
7237 #endif
7238
7239 #ifdef __cplusplus
7240 }
7241 #endif
7242 _LT_EOF
7243 # Now try linking the two files.
7244 mv conftest.$ac_objext conftstm.$ac_objext
7245 lt_save_LIBS="$LIBS"
7246 lt_save_CFLAGS="$CFLAGS"
7247 LIBS="conftstm.$ac_objext"
7248 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7250 (eval $ac_link) 2>&5
7251 ac_status=$?
7252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7253 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7254 pipe_works=yes
7255 fi
7256 LIBS="$lt_save_LIBS"
7257 CFLAGS="$lt_save_CFLAGS"
7258 else
7259 echo "cannot find nm_test_func in $nlist" >&5
7260 fi
7261 else
7262 echo "cannot find nm_test_var in $nlist" >&5
7263 fi
7264 else
7265 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7266 fi
7267 else
7268 echo "$progname: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 fi
7271 rm -rf conftest* conftst*
7272
7273 # Do not use the global_symbol_pipe unless it works.
7274 if test "$pipe_works" = yes; then
7275 break
7276 else
7277 lt_cv_sys_global_symbol_pipe=
7278 fi
7279 done
7280
7281 fi
7282
7283 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7284 lt_cv_sys_global_symbol_to_cdecl=
7285 fi
7286 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7288 $as_echo "failed" >&6; }
7289 else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7291 $as_echo "ok" >&6; }
7292 fi
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315 # Check whether --enable-libtool-lock was given.
7316 if test "${enable_libtool_lock+set}" = set; then :
7317 enableval=$enable_libtool_lock;
7318 fi
7319
7320 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7321
7322 # Some flags need to be propagated to the compiler or linker for good
7323 # libtool support.
7324 case $host in
7325 ia64-*-hpux*)
7326 # Find out which ABI we are using.
7327 echo 'int i;' > conftest.$ac_ext
7328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7329 (eval $ac_compile) 2>&5
7330 ac_status=$?
7331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7332 test $ac_status = 0; }; then
7333 case `/usr/bin/file conftest.$ac_objext` in
7334 *ELF-32*)
7335 HPUX_IA64_MODE="32"
7336 ;;
7337 *ELF-64*)
7338 HPUX_IA64_MODE="64"
7339 ;;
7340 esac
7341 fi
7342 rm -rf conftest*
7343 ;;
7344 *-*-irix6*)
7345 # Find out which ABI we are using.
7346 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7348 (eval $ac_compile) 2>&5
7349 ac_status=$?
7350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351 test $ac_status = 0; }; then
7352 if test "$lt_cv_prog_gnu_ld" = yes; then
7353 case `/usr/bin/file conftest.$ac_objext` in
7354 *32-bit*)
7355 LD="${LD-ld} -melf32bsmip"
7356 ;;
7357 *N32*)
7358 LD="${LD-ld} -melf32bmipn32"
7359 ;;
7360 *64-bit*)
7361 LD="${LD-ld} -melf64bmip"
7362 ;;
7363 esac
7364 else
7365 case `/usr/bin/file conftest.$ac_objext` in
7366 *32-bit*)
7367 LD="${LD-ld} -32"
7368 ;;
7369 *N32*)
7370 LD="${LD-ld} -n32"
7371 ;;
7372 *64-bit*)
7373 LD="${LD-ld} -64"
7374 ;;
7375 esac
7376 fi
7377 fi
7378 rm -rf conftest*
7379 ;;
7380
7381 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7382 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7383 # Find out which ABI we are using.
7384 echo 'int i;' > conftest.$ac_ext
7385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7386 (eval $ac_compile) 2>&5
7387 ac_status=$?
7388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7389 test $ac_status = 0; }; then
7390 case `/usr/bin/file conftest.o` in
7391 *32-bit*)
7392 case $host in
7393 x86_64-*kfreebsd*-gnu)
7394 LD="${LD-ld} -m elf_i386_fbsd"
7395 ;;
7396 x86_64-*linux*)
7397 case `/usr/bin/file conftest.o` in
7398 *x86-64*)
7399 LD="${LD-ld} -m elf32_x86_64"
7400 ;;
7401 *)
7402 LD="${LD-ld} -m elf_i386"
7403 ;;
7404 esac
7405 ;;
7406 powerpc64le-*linux*)
7407 LD="${LD-ld} -m elf32lppclinux"
7408 ;;
7409 powerpc64-*linux*)
7410 LD="${LD-ld} -m elf32ppclinux"
7411 ;;
7412 s390x-*linux*)
7413 LD="${LD-ld} -m elf_s390"
7414 ;;
7415 sparc64-*linux*)
7416 LD="${LD-ld} -m elf32_sparc"
7417 ;;
7418 esac
7419 ;;
7420 *64-bit*)
7421 case $host in
7422 x86_64-*kfreebsd*-gnu)
7423 LD="${LD-ld} -m elf_x86_64_fbsd"
7424 ;;
7425 x86_64-*linux*)
7426 LD="${LD-ld} -m elf_x86_64"
7427 ;;
7428 powerpcle-*linux*)
7429 LD="${LD-ld} -m elf64lppc"
7430 ;;
7431 powerpc-*linux*)
7432 LD="${LD-ld} -m elf64ppc"
7433 ;;
7434 s390*-*linux*|s390*-*tpf*)
7435 LD="${LD-ld} -m elf64_s390"
7436 ;;
7437 sparc*-*linux*)
7438 LD="${LD-ld} -m elf64_sparc"
7439 ;;
7440 esac
7441 ;;
7442 esac
7443 fi
7444 rm -rf conftest*
7445 ;;
7446
7447 *-*-sco3.2v5*)
7448 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7449 SAVE_CFLAGS="$CFLAGS"
7450 CFLAGS="$CFLAGS -belf"
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7452 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7453 if ${lt_cv_cc_needs_belf+:} false; then :
7454 $as_echo_n "(cached) " >&6
7455 else
7456 ac_ext=c
7457 ac_cpp='$CPP $CPPFLAGS'
7458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7461
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464
7465 int
7466 main ()
7467 {
7468
7469 ;
7470 return 0;
7471 }
7472 _ACEOF
7473 if ac_fn_c_try_link "$LINENO"; then :
7474 lt_cv_cc_needs_belf=yes
7475 else
7476 lt_cv_cc_needs_belf=no
7477 fi
7478 rm -f core conftest.err conftest.$ac_objext \
7479 conftest$ac_exeext conftest.$ac_ext
7480 ac_ext=c
7481 ac_cpp='$CPP $CPPFLAGS'
7482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7485
7486 fi
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7488 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7489 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7490 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7491 CFLAGS="$SAVE_CFLAGS"
7492 fi
7493 ;;
7494 sparc*-*solaris*)
7495 # Find out which ABI we are using.
7496 echo 'int i;' > conftest.$ac_ext
7497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7498 (eval $ac_compile) 2>&5
7499 ac_status=$?
7500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7501 test $ac_status = 0; }; then
7502 case `/usr/bin/file conftest.o` in
7503 *64-bit*)
7504 case $lt_cv_prog_gnu_ld in
7505 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7506 *)
7507 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7508 LD="${LD-ld} -64"
7509 fi
7510 ;;
7511 esac
7512 ;;
7513 esac
7514 fi
7515 rm -rf conftest*
7516 ;;
7517 esac
7518
7519 need_locks="$enable_libtool_lock"
7520
7521
7522 case $host_os in
7523 rhapsody* | darwin*)
7524 if test -n "$ac_tool_prefix"; then
7525 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7526 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 if test -n "$DSYMUTIL"; then
7533 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7534 else
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7537 do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546 done
7547 done
7548 IFS=$as_save_IFS
7549
7550 fi
7551 fi
7552 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7553 if test -n "$DSYMUTIL"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7555 $as_echo "$DSYMUTIL" >&6; }
7556 else
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7559 fi
7560
7561
7562 fi
7563 if test -z "$ac_cv_prog_DSYMUTIL"; then
7564 ac_ct_DSYMUTIL=$DSYMUTIL
7565 # Extract the first word of "dsymutil", so it can be a program name with args.
7566 set dummy dsymutil; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7570 $as_echo_n "(cached) " >&6
7571 else
7572 if test -n "$ac_ct_DSYMUTIL"; then
7573 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7574 else
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586 done
7587 done
7588 IFS=$as_save_IFS
7589
7590 fi
7591 fi
7592 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7593 if test -n "$ac_ct_DSYMUTIL"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7595 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7596 else
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7599 fi
7600
7601 if test "x$ac_ct_DSYMUTIL" = x; then
7602 DSYMUTIL=":"
7603 else
7604 case $cross_compiling:$ac_tool_warned in
7605 yes:)
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7608 ac_tool_warned=yes ;;
7609 esac
7610 DSYMUTIL=$ac_ct_DSYMUTIL
7611 fi
7612 else
7613 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7614 fi
7615
7616 if test -n "$ac_tool_prefix"; then
7617 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7618 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if ${ac_cv_prog_NMEDIT+:} false; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 if test -n "$NMEDIT"; then
7625 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7637 fi
7638 done
7639 done
7640 IFS=$as_save_IFS
7641
7642 fi
7643 fi
7644 NMEDIT=$ac_cv_prog_NMEDIT
7645 if test -n "$NMEDIT"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7647 $as_echo "$NMEDIT" >&6; }
7648 else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7651 fi
7652
7653
7654 fi
7655 if test -z "$ac_cv_prog_NMEDIT"; then
7656 ac_ct_NMEDIT=$NMEDIT
7657 # Extract the first word of "nmedit", so it can be a program name with args.
7658 set dummy nmedit; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7662 $as_echo_n "(cached) " >&6
7663 else
7664 if test -n "$ac_ct_NMEDIT"; then
7665 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7666 else
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7669 do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7677 fi
7678 done
7679 done
7680 IFS=$as_save_IFS
7681
7682 fi
7683 fi
7684 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7685 if test -n "$ac_ct_NMEDIT"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7687 $as_echo "$ac_ct_NMEDIT" >&6; }
7688 else
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7691 fi
7692
7693 if test "x$ac_ct_NMEDIT" = x; then
7694 NMEDIT=":"
7695 else
7696 case $cross_compiling:$ac_tool_warned in
7697 yes:)
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700 ac_tool_warned=yes ;;
7701 esac
7702 NMEDIT=$ac_ct_NMEDIT
7703 fi
7704 else
7705 NMEDIT="$ac_cv_prog_NMEDIT"
7706 fi
7707
7708 if test -n "$ac_tool_prefix"; then
7709 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7710 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if ${ac_cv_prog_LIPO+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 if test -n "$LIPO"; then
7717 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7726 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
7730 done
7731 done
7732 IFS=$as_save_IFS
7733
7734 fi
7735 fi
7736 LIPO=$ac_cv_prog_LIPO
7737 if test -n "$LIPO"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7739 $as_echo "$LIPO" >&6; }
7740 else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744
7745
7746 fi
7747 if test -z "$ac_cv_prog_LIPO"; then
7748 ac_ct_LIPO=$LIPO
7749 # Extract the first word of "lipo", so it can be a program name with args.
7750 set dummy lipo; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 if test -n "$ac_ct_LIPO"; then
7757 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7758 else
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7761 do
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7766 ac_cv_prog_ac_ct_LIPO="lipo"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7769 fi
7770 done
7771 done
7772 IFS=$as_save_IFS
7773
7774 fi
7775 fi
7776 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7777 if test -n "$ac_ct_LIPO"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7779 $as_echo "$ac_ct_LIPO" >&6; }
7780 else
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7783 fi
7784
7785 if test "x$ac_ct_LIPO" = x; then
7786 LIPO=":"
7787 else
7788 case $cross_compiling:$ac_tool_warned in
7789 yes:)
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7792 ac_tool_warned=yes ;;
7793 esac
7794 LIPO=$ac_ct_LIPO
7795 fi
7796 else
7797 LIPO="$ac_cv_prog_LIPO"
7798 fi
7799
7800 if test -n "$ac_tool_prefix"; then
7801 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7802 set dummy ${ac_tool_prefix}otool; ac_word=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if ${ac_cv_prog_OTOOL+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 if test -n "$OTOOL"; then
7809 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7810 else
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7813 do
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 break 2
7821 fi
7822 done
7823 done
7824 IFS=$as_save_IFS
7825
7826 fi
7827 fi
7828 OTOOL=$ac_cv_prog_OTOOL
7829 if test -n "$OTOOL"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7831 $as_echo "$OTOOL" >&6; }
7832 else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7835 fi
7836
7837
7838 fi
7839 if test -z "$ac_cv_prog_OTOOL"; then
7840 ac_ct_OTOOL=$OTOOL
7841 # Extract the first word of "otool", so it can be a program name with args.
7842 set dummy otool; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 if test -n "$ac_ct_OTOOL"; then
7849 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858 ac_cv_prog_ac_ct_OTOOL="otool"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7861 fi
7862 done
7863 done
7864 IFS=$as_save_IFS
7865
7866 fi
7867 fi
7868 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7869 if test -n "$ac_ct_OTOOL"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7871 $as_echo "$ac_ct_OTOOL" >&6; }
7872 else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7875 fi
7876
7877 if test "x$ac_ct_OTOOL" = x; then
7878 OTOOL=":"
7879 else
7880 case $cross_compiling:$ac_tool_warned in
7881 yes:)
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7884 ac_tool_warned=yes ;;
7885 esac
7886 OTOOL=$ac_ct_OTOOL
7887 fi
7888 else
7889 OTOOL="$ac_cv_prog_OTOOL"
7890 fi
7891
7892 if test -n "$ac_tool_prefix"; then
7893 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7894 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if ${ac_cv_prog_OTOOL64+:} false; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 if test -n "$OTOOL64"; then
7901 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7905 do
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7910 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 break 2
7913 fi
7914 done
7915 done
7916 IFS=$as_save_IFS
7917
7918 fi
7919 fi
7920 OTOOL64=$ac_cv_prog_OTOOL64
7921 if test -n "$OTOOL64"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7923 $as_echo "$OTOOL64" >&6; }
7924 else
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7927 fi
7928
7929
7930 fi
7931 if test -z "$ac_cv_prog_OTOOL64"; then
7932 ac_ct_OTOOL64=$OTOOL64
7933 # Extract the first word of "otool64", so it can be a program name with args.
7934 set dummy otool64; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 if test -n "$ac_ct_OTOOL64"; then
7941 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7942 else
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7945 do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_prog_ac_ct_OTOOL64="otool64"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7953 fi
7954 done
7955 done
7956 IFS=$as_save_IFS
7957
7958 fi
7959 fi
7960 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7961 if test -n "$ac_ct_OTOOL64"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7963 $as_echo "$ac_ct_OTOOL64" >&6; }
7964 else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7967 fi
7968
7969 if test "x$ac_ct_OTOOL64" = x; then
7970 OTOOL64=":"
7971 else
7972 case $cross_compiling:$ac_tool_warned in
7973 yes:)
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7976 ac_tool_warned=yes ;;
7977 esac
7978 OTOOL64=$ac_ct_OTOOL64
7979 fi
7980 else
7981 OTOOL64="$ac_cv_prog_OTOOL64"
7982 fi
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8011 $as_echo_n "checking for -single_module linker flag... " >&6; }
8012 if ${lt_cv_apple_cc_single_mod+:} false; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 lt_cv_apple_cc_single_mod=no
8016 if test -z "${LT_MULTI_MODULE}"; then
8017 # By default we will add the -single_module flag. You can override
8018 # by either setting the environment variable LT_MULTI_MODULE
8019 # non-empty at configure time, or by adding -multi_module to the
8020 # link flags.
8021 rm -rf libconftest.dylib*
8022 echo "int foo(void){return 1;}" > conftest.c
8023 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8024 -dynamiclib -Wl,-single_module conftest.c" >&5
8025 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8026 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8027 _lt_result=$?
8028 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8029 lt_cv_apple_cc_single_mod=yes
8030 else
8031 cat conftest.err >&5
8032 fi
8033 rm -rf libconftest.dylib*
8034 rm -f conftest.*
8035 fi
8036 fi
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8038 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8040 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8041 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8042 $as_echo_n "(cached) " >&6
8043 else
8044 lt_cv_ld_exported_symbols_list=no
8045 save_LDFLAGS=$LDFLAGS
8046 echo "_main" > conftest.sym
8047 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8050
8051 int
8052 main ()
8053 {
8054
8055 ;
8056 return 0;
8057 }
8058 _ACEOF
8059 if ac_fn_c_try_link "$LINENO"; then :
8060 lt_cv_ld_exported_symbols_list=yes
8061 else
8062 lt_cv_ld_exported_symbols_list=no
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext \
8065 conftest$ac_exeext conftest.$ac_ext
8066 LDFLAGS="$save_LDFLAGS"
8067
8068 fi
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8070 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8072 $as_echo_n "checking for -force_load linker flag... " >&6; }
8073 if ${lt_cv_ld_force_load+:} false; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 lt_cv_ld_force_load=no
8077 cat > conftest.c << _LT_EOF
8078 int forced_loaded() { return 2;}
8079 _LT_EOF
8080 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8081 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8082 echo "$AR cru libconftest.a conftest.o" >&5
8083 $AR cru libconftest.a conftest.o 2>&5
8084 cat > conftest.c << _LT_EOF
8085 int main() { return 0;}
8086 _LT_EOF
8087 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8088 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8089 _lt_result=$?
8090 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8091 lt_cv_ld_force_load=yes
8092 else
8093 cat conftest.err >&5
8094 fi
8095 rm -f conftest.err libconftest.a conftest conftest.c
8096 rm -rf conftest.dSYM
8097
8098 fi
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8100 $as_echo "$lt_cv_ld_force_load" >&6; }
8101 case $host_os in
8102 rhapsody* | darwin1.[012])
8103 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8104 darwin1.*)
8105 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8106 darwin*) # darwin 5.x on
8107 # if running on 10.5 or later, the deployment target defaults
8108 # to the OS version, if on x86, and 10.4, the deployment
8109 # target defaults to 10.4. Don't you love it?
8110 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8111 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8112 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8113 10.[012][,.]*)
8114 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8115 10.*)
8116 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8117 esac
8118 ;;
8119 esac
8120 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8121 _lt_dar_single_mod='$single_module'
8122 fi
8123 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8124 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8125 else
8126 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8127 fi
8128 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8129 _lt_dsymutil='~$DSYMUTIL $lib || :'
8130 else
8131 _lt_dsymutil=
8132 fi
8133 ;;
8134 esac
8135
8136 for ac_header in dlfcn.h
8137 do :
8138 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8139 "
8140 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8141 cat >>confdefs.h <<_ACEOF
8142 #define HAVE_DLFCN_H 1
8143 _ACEOF
8144
8145 fi
8146
8147 done
8148
8149
8150 ac_header_dirent=no
8151 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8152 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8154 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8155 if eval \${$as_ac_Header+:} false; then :
8156 $as_echo_n "(cached) " >&6
8157 else
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8160 #include <sys/types.h>
8161 #include <$ac_hdr>
8162
8163 int
8164 main ()
8165 {
8166 if ((DIR *) 0)
8167 return 0;
8168 ;
8169 return 0;
8170 }
8171 _ACEOF
8172 if ac_fn_c_try_compile "$LINENO"; then :
8173 eval "$as_ac_Header=yes"
8174 else
8175 eval "$as_ac_Header=no"
8176 fi
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 fi
8179 eval ac_res=\$$as_ac_Header
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8181 $as_echo "$ac_res" >&6; }
8182 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8183 cat >>confdefs.h <<_ACEOF
8184 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8185 _ACEOF
8186
8187 ac_header_dirent=$ac_hdr; break
8188 fi
8189
8190 done
8191 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8192 if test $ac_header_dirent = dirent.h; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8194 $as_echo_n "checking for library containing opendir... " >&6; }
8195 if ${ac_cv_search_opendir+:} false; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 ac_func_search_save_LIBS=$LIBS
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8201
8202 /* Override any GCC internal prototype to avoid an error.
8203 Use char because int might match the return type of a GCC
8204 builtin and then its argument prototype would still apply. */
8205 #ifdef __cplusplus
8206 extern "C"
8207 #endif
8208 char opendir ();
8209 int
8210 main ()
8211 {
8212 return opendir ();
8213 ;
8214 return 0;
8215 }
8216 _ACEOF
8217 for ac_lib in '' dir; do
8218 if test -z "$ac_lib"; then
8219 ac_res="none required"
8220 else
8221 ac_res=-l$ac_lib
8222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8223 fi
8224 if ac_fn_c_try_link "$LINENO"; then :
8225 ac_cv_search_opendir=$ac_res
8226 fi
8227 rm -f core conftest.err conftest.$ac_objext \
8228 conftest$ac_exeext
8229 if ${ac_cv_search_opendir+:} false; then :
8230 break
8231 fi
8232 done
8233 if ${ac_cv_search_opendir+:} false; then :
8234
8235 else
8236 ac_cv_search_opendir=no
8237 fi
8238 rm conftest.$ac_ext
8239 LIBS=$ac_func_search_save_LIBS
8240 fi
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8242 $as_echo "$ac_cv_search_opendir" >&6; }
8243 ac_res=$ac_cv_search_opendir
8244 if test "$ac_res" != no; then :
8245 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8246
8247 fi
8248
8249 else
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8251 $as_echo_n "checking for library containing opendir... " >&6; }
8252 if ${ac_cv_search_opendir+:} false; then :
8253 $as_echo_n "(cached) " >&6
8254 else
8255 ac_func_search_save_LIBS=$LIBS
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8258
8259 /* Override any GCC internal prototype to avoid an error.
8260 Use char because int might match the return type of a GCC
8261 builtin and then its argument prototype would still apply. */
8262 #ifdef __cplusplus
8263 extern "C"
8264 #endif
8265 char opendir ();
8266 int
8267 main ()
8268 {
8269 return opendir ();
8270 ;
8271 return 0;
8272 }
8273 _ACEOF
8274 for ac_lib in '' x; do
8275 if test -z "$ac_lib"; then
8276 ac_res="none required"
8277 else
8278 ac_res=-l$ac_lib
8279 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8280 fi
8281 if ac_fn_c_try_link "$LINENO"; then :
8282 ac_cv_search_opendir=$ac_res
8283 fi
8284 rm -f core conftest.err conftest.$ac_objext \
8285 conftest$ac_exeext
8286 if ${ac_cv_search_opendir+:} false; then :
8287 break
8288 fi
8289 done
8290 if ${ac_cv_search_opendir+:} false; then :
8291
8292 else
8293 ac_cv_search_opendir=no
8294 fi
8295 rm conftest.$ac_ext
8296 LIBS=$ac_func_search_save_LIBS
8297 fi
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8299 $as_echo "$ac_cv_search_opendir" >&6; }
8300 ac_res=$ac_cv_search_opendir
8301 if test "$ac_res" != no; then :
8302 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8303
8304 fi
8305
8306 fi
8307
8308
8309
8310
8311 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8312 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8313
8314 cat >>confdefs.h <<_ACEOF
8315 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8316 _ACEOF
8317
8318
8319 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8320
8321 fi
8322
8323
8324 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8325 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8326
8327 cat >>confdefs.h <<_ACEOF
8328 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8329 _ACEOF
8330
8331
8332 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8333
8334 else
8335 case " $LIBOBJS " in
8336 *" fileblocks.$ac_objext "* ) ;;
8337 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8338 ;;
8339 esac
8340
8341 fi
8342
8343
8344 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8345 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8346
8347 cat >>confdefs.h <<_ACEOF
8348 #define HAVE_STRUCT_STAT_ST_RDEV 1
8349 _ACEOF
8350
8351
8352 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8353
8354 fi
8355
8356
8357 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8358 #include <$ac_cv_struct_tm>
8359
8360 "
8361 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8362
8363 cat >>confdefs.h <<_ACEOF
8364 #define HAVE_STRUCT_TM_TM_ZONE 1
8365 _ACEOF
8366
8367
8368 fi
8369
8370 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8371
8372 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8373
8374 else
8375 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8376 "
8377 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8378 ac_have_decl=1
8379 else
8380 ac_have_decl=0
8381 fi
8382
8383 cat >>confdefs.h <<_ACEOF
8384 #define HAVE_DECL_TZNAME $ac_have_decl
8385 _ACEOF
8386
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8388 $as_echo_n "checking for tzname... " >&6; }
8389 if ${ac_cv_var_tzname+:} false; then :
8390 $as_echo_n "(cached) " >&6
8391 else
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h. */
8394 #include <time.h>
8395 #if !HAVE_DECL_TZNAME
8396 extern char *tzname[];
8397 #endif
8398
8399 int
8400 main ()
8401 {
8402 return tzname[0][0];
8403 ;
8404 return 0;
8405 }
8406 _ACEOF
8407 if ac_fn_c_try_link "$LINENO"; then :
8408 ac_cv_var_tzname=yes
8409 else
8410 ac_cv_var_tzname=no
8411 fi
8412 rm -f core conftest.err conftest.$ac_objext \
8413 conftest$ac_exeext conftest.$ac_ext
8414 fi
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8416 $as_echo "$ac_cv_var_tzname" >&6; }
8417 if test $ac_cv_var_tzname = yes; then
8418
8419 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8420
8421 fi
8422 fi
8423
8424
8425 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8426 #include <sys/types.h>
8427 #endif
8428 #ifdef HAVE_SYS_STAT_H
8429 #include <sys/stat.h>
8430 #endif
8431 "
8432 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8433
8434 cat >>confdefs.h <<_ACEOF
8435 #define HAVE_STRUCT_STAT_ST_DEV 1
8436 _ACEOF
8437
8438
8439 fi
8440 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8441 #include <sys/types.h>
8442 #endif
8443 #ifdef HAVE_SYS_STAT_H
8444 #include <sys/stat.h>
8445 #endif
8446 "
8447 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8448
8449 cat >>confdefs.h <<_ACEOF
8450 #define HAVE_STRUCT_STAT_ST_INO 1
8451 _ACEOF
8452
8453
8454 fi
8455 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8456 #include <sys/types.h>
8457 #endif
8458 #ifdef HAVE_SYS_STAT_H
8459 #include <sys/stat.h>
8460 #endif
8461 "
8462 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8463
8464 cat >>confdefs.h <<_ACEOF
8465 #define HAVE_STRUCT_STAT_ST_MODE 1
8466 _ACEOF
8467
8468
8469 fi
8470 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8471 #include <sys/types.h>
8472 #endif
8473 #ifdef HAVE_SYS_STAT_H
8474 #include <sys/stat.h>
8475 #endif
8476 "
8477 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8478
8479 cat >>confdefs.h <<_ACEOF
8480 #define HAVE_STRUCT_STAT_ST_NLINK 1
8481 _ACEOF
8482
8483
8484 fi
8485 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8486 #include <sys/types.h>
8487 #endif
8488 #ifdef HAVE_SYS_STAT_H
8489 #include <sys/stat.h>
8490 #endif
8491 "
8492 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8493
8494 cat >>confdefs.h <<_ACEOF
8495 #define HAVE_STRUCT_STAT_ST_UID 1
8496 _ACEOF
8497
8498
8499 fi
8500 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8501 #include <sys/types.h>
8502 #endif
8503 #ifdef HAVE_SYS_STAT_H
8504 #include <sys/stat.h>
8505 #endif
8506 "
8507 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8508
8509 cat >>confdefs.h <<_ACEOF
8510 #define HAVE_STRUCT_STAT_ST_GID 1
8511 _ACEOF
8512
8513
8514 fi
8515 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8516 #include <sys/types.h>
8517 #endif
8518 #ifdef HAVE_SYS_STAT_H
8519 #include <sys/stat.h>
8520 #endif
8521 "
8522 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8523
8524 cat >>confdefs.h <<_ACEOF
8525 #define HAVE_STRUCT_STAT_ST_RDEV 1
8526 _ACEOF
8527
8528
8529 fi
8530 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8531 #include <sys/types.h>
8532 #endif
8533 #ifdef HAVE_SYS_STAT_H
8534 #include <sys/stat.h>
8535 #endif
8536 "
8537 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8538
8539 cat >>confdefs.h <<_ACEOF
8540 #define HAVE_STRUCT_STAT_ST_SIZE 1
8541 _ACEOF
8542
8543
8544 fi
8545 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8546 #include <sys/types.h>
8547 #endif
8548 #ifdef HAVE_SYS_STAT_H
8549 #include <sys/stat.h>
8550 #endif
8551 "
8552 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8553
8554 cat >>confdefs.h <<_ACEOF
8555 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8556 _ACEOF
8557
8558
8559 fi
8560 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8561 #include <sys/types.h>
8562 #endif
8563 #ifdef HAVE_SYS_STAT_H
8564 #include <sys/stat.h>
8565 #endif
8566 "
8567 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8568
8569 cat >>confdefs.h <<_ACEOF
8570 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8571 _ACEOF
8572
8573
8574 fi
8575 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8576 #include <sys/types.h>
8577 #endif
8578 #ifdef HAVE_SYS_STAT_H
8579 #include <sys/stat.h>
8580 #endif
8581 "
8582 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8583
8584 cat >>confdefs.h <<_ACEOF
8585 #define HAVE_STRUCT_STAT_ST_ATIME 1
8586 _ACEOF
8587
8588
8589 fi
8590 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8591 #include <sys/types.h>
8592 #endif
8593 #ifdef HAVE_SYS_STAT_H
8594 #include <sys/stat.h>
8595 #endif
8596 "
8597 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8598
8599 cat >>confdefs.h <<_ACEOF
8600 #define HAVE_STRUCT_STAT_ST_MTIME 1
8601 _ACEOF
8602
8603
8604 fi
8605 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8606 #include <sys/types.h>
8607 #endif
8608 #ifdef HAVE_SYS_STAT_H
8609 #include <sys/stat.h>
8610 #endif
8611 "
8612 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8613
8614 cat >>confdefs.h <<_ACEOF
8615 #define HAVE_STRUCT_STAT_ST_CTIME 1
8616 _ACEOF
8617
8618
8619 fi
8620
8621
8622 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8623 if test "x$ac_cv_type___int128" = xyes; then :
8624
8625 cat >>confdefs.h <<_ACEOF
8626 #define HAVE___INT128 1
8627 _ACEOF
8628
8629
8630 fi
8631
8632 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8633 #include <sys/socket.h>
8634
8635 "
8636 if test "x$ac_cv_type_socklen_t" = xyes; then :
8637
8638 cat >>confdefs.h <<_ACEOF
8639 #define HAVE_SOCKLEN_T 1
8640 _ACEOF
8641
8642
8643 fi
8644
8645
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8647 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8648 if ${ac_cv_type_getgroups+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 if test "$cross_compiling" = yes; then :
8652 ac_cv_type_getgroups=cross
8653 else
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8656 /* Thanks to Mike Rendell for this test. */
8657 $ac_includes_default
8658 #define NGID 256
8659 #undef MAX
8660 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8661
8662 int
8663 main ()
8664 {
8665 gid_t gidset[NGID];
8666 int i, n;
8667 union { gid_t gval; long int lval; } val;
8668
8669 val.lval = -1;
8670 for (i = 0; i < NGID; i++)
8671 gidset[i] = val.gval;
8672 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8673 gidset);
8674 /* Exit non-zero if getgroups seems to require an array of ints. This
8675 happens when gid_t is short int but getgroups modifies an array
8676 of ints. */
8677 return n > 0 && gidset[n] != val.gval;
8678 }
8679 _ACEOF
8680 if ac_fn_c_try_run "$LINENO"; then :
8681 ac_cv_type_getgroups=gid_t
8682 else
8683 ac_cv_type_getgroups=int
8684 fi
8685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8686 conftest.$ac_objext conftest.beam conftest.$ac_ext
8687 fi
8688
8689 if test $ac_cv_type_getgroups = cross; then
8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8692 #include <unistd.h>
8693
8694 _ACEOF
8695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8696 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8697 ac_cv_type_getgroups=gid_t
8698 else
8699 ac_cv_type_getgroups=int
8700 fi
8701 rm -f conftest*
8702
8703 fi
8704 fi
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8706 $as_echo "$ac_cv_type_getgroups" >&6; }
8707
8708 cat >>confdefs.h <<_ACEOF
8709 #define GETGROUPS_T $ac_cv_type_getgroups
8710 _ACEOF
8711
8712
8713 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8714 if test "x$ac_cv_type_mode_t" = xyes; then :
8715
8716 else
8717
8718 cat >>confdefs.h <<_ACEOF
8719 #define mode_t int
8720 _ACEOF
8721
8722 fi
8723
8724 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8725 if test "x$ac_cv_type_off_t" = xyes; then :
8726
8727 else
8728
8729 cat >>confdefs.h <<_ACEOF
8730 #define off_t long int
8731 _ACEOF
8732
8733 fi
8734
8735 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8736 if test "x$ac_cv_type_pid_t" = xyes; then :
8737
8738 else
8739
8740 cat >>confdefs.h <<_ACEOF
8741 #define pid_t int
8742 _ACEOF
8743
8744 fi
8745
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8747 $as_echo_n "checking return type of signal handlers... " >&6; }
8748 if ${ac_cv_type_signal+:} false; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h. */
8753 #include <sys/types.h>
8754 #include <signal.h>
8755
8756 int
8757 main ()
8758 {
8759 return *(signal (0, 0)) (0) == 1;
8760 ;
8761 return 0;
8762 }
8763 _ACEOF
8764 if ac_fn_c_try_compile "$LINENO"; then :
8765 ac_cv_type_signal=int
8766 else
8767 ac_cv_type_signal=void
8768 fi
8769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8770 fi
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8772 $as_echo "$ac_cv_type_signal" >&6; }
8773
8774 cat >>confdefs.h <<_ACEOF
8775 #define RETSIGTYPE $ac_cv_type_signal
8776 _ACEOF
8777
8778
8779 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8780 if test "x$ac_cv_type_size_t" = xyes; then :
8781
8782 else
8783
8784 cat >>confdefs.h <<_ACEOF
8785 #define size_t unsigned int
8786 _ACEOF
8787
8788 fi
8789
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8791 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8792 if ${ac_cv_type_uid_t+:} false; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796 /* end confdefs.h. */
8797 #include <sys/types.h>
8798
8799 _ACEOF
8800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8801 $EGREP "uid_t" >/dev/null 2>&1; then :
8802 ac_cv_type_uid_t=yes
8803 else
8804 ac_cv_type_uid_t=no
8805 fi
8806 rm -f conftest*
8807
8808 fi
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8810 $as_echo "$ac_cv_type_uid_t" >&6; }
8811 if test $ac_cv_type_uid_t = no; then
8812
8813 $as_echo "#define uid_t int" >>confdefs.h
8814
8815
8816 $as_echo "#define gid_t int" >>confdefs.h
8817
8818 fi
8819
8820
8821
8822
8823
8824
8825 # Set options
8826
8827
8828
8829 enable_dlopen=no
8830
8831
8832 enable_win32_dll=no
8833
8834
8835 # Check whether --enable-shared was given.
8836 if test "${enable_shared+set}" = set; then :
8837 enableval=$enable_shared; p=${PACKAGE-default}
8838 case $enableval in
8839 yes) enable_shared=yes ;;
8840 no) enable_shared=no ;;
8841 *)
8842 enable_shared=no
8843 # Look at the argument we got. We use all the common list separators.
8844 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8845 for pkg in $enableval; do
8846 IFS="$lt_save_ifs"
8847 if test "X$pkg" = "X$p"; then
8848 enable_shared=yes
8849 fi
8850 done
8851 IFS="$lt_save_ifs"
8852 ;;
8853 esac
8854 else
8855 enable_shared=yes
8856 fi
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866 # Check whether --enable-static was given.
8867 if test "${enable_static+set}" = set; then :
8868 enableval=$enable_static; p=${PACKAGE-default}
8869 case $enableval in
8870 yes) enable_static=yes ;;
8871 no) enable_static=no ;;
8872 *)
8873 enable_static=no
8874 # Look at the argument we got. We use all the common list separators.
8875 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8876 for pkg in $enableval; do
8877 IFS="$lt_save_ifs"
8878 if test "X$pkg" = "X$p"; then
8879 enable_static=yes
8880 fi
8881 done
8882 IFS="$lt_save_ifs"
8883 ;;
8884 esac
8885 else
8886 enable_static=yes
8887 fi
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898 # Check whether --with-pic was given.
8899 if test "${with_pic+set}" = set; then :
8900 withval=$with_pic; pic_mode="$withval"
8901 else
8902 pic_mode=default
8903 fi
8904
8905
8906 test -z "$pic_mode" && pic_mode=default
8907
8908
8909
8910
8911
8912
8913
8914 # Check whether --enable-fast-install was given.
8915 if test "${enable_fast_install+set}" = set; then :
8916 enableval=$enable_fast_install; p=${PACKAGE-default}
8917 case $enableval in
8918 yes) enable_fast_install=yes ;;
8919 no) enable_fast_install=no ;;
8920 *)
8921 enable_fast_install=no
8922 # Look at the argument we got. We use all the common list separators.
8923 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8924 for pkg in $enableval; do
8925 IFS="$lt_save_ifs"
8926 if test "X$pkg" = "X$p"; then
8927 enable_fast_install=yes
8928 fi
8929 done
8930 IFS="$lt_save_ifs"
8931 ;;
8932 esac
8933 else
8934 enable_fast_install=yes
8935 fi
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947 # This can be used to rebuild libtool when needed
8948 LIBTOOL_DEPS="$ltmain"
8949
8950 # Always use our own libtool.
8951 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978 test -z "$LN_S" && LN_S="ln -s"
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993 if test -n "${ZSH_VERSION+set}" ; then
8994 setopt NO_GLOB_SUBST
8995 fi
8996
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8998 $as_echo_n "checking for objdir... " >&6; }
8999 if ${lt_cv_objdir+:} false; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002 rm -f .libs 2>/dev/null
9003 mkdir .libs 2>/dev/null
9004 if test -d .libs; then
9005 lt_cv_objdir=.libs
9006 else
9007 # MS-DOS does not allow filenames that begin with a dot.
9008 lt_cv_objdir=_libs
9009 fi
9010 rmdir .libs 2>/dev/null
9011 fi
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9013 $as_echo "$lt_cv_objdir" >&6; }
9014 objdir=$lt_cv_objdir
9015
9016
9017
9018
9019
9020 cat >>confdefs.h <<_ACEOF
9021 #define LT_OBJDIR "$lt_cv_objdir/"
9022 _ACEOF
9023
9024
9025
9026
9027 case $host_os in
9028 aix3*)
9029 # AIX sometimes has problems with the GCC collect2 program. For some
9030 # reason, if we set the COLLECT_NAMES environment variable, the problems
9031 # vanish in a puff of smoke.
9032 if test "X${COLLECT_NAMES+set}" != Xset; then
9033 COLLECT_NAMES=
9034 export COLLECT_NAMES
9035 fi
9036 ;;
9037 esac
9038
9039 # Global variables:
9040 ofile=libtool
9041 can_build_shared=yes
9042
9043 # All known linkers require a `.a' archive for static linking (except MSVC,
9044 # which needs '.lib').
9045 libext=a
9046
9047 with_gnu_ld="$lt_cv_prog_gnu_ld"
9048
9049 old_CC="$CC"
9050 old_CFLAGS="$CFLAGS"
9051
9052 # Set sane defaults for various variables
9053 test -z "$CC" && CC=cc
9054 test -z "$LTCC" && LTCC=$CC
9055 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9056 test -z "$LD" && LD=ld
9057 test -z "$ac_objext" && ac_objext=o
9058
9059 for cc_temp in $compiler""; do
9060 case $cc_temp in
9061 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9062 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9063 \-*) ;;
9064 *) break;;
9065 esac
9066 done
9067 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9068
9069
9070 # Only perform the check for file, if the check method requires it
9071 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9072 case $deplibs_check_method in
9073 file_magic*)
9074 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9076 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9077 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9078 $as_echo_n "(cached) " >&6
9079 else
9080 case $MAGIC_CMD in
9081 [\\/*] | ?:[\\/]*)
9082 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9083 ;;
9084 *)
9085 lt_save_MAGIC_CMD="$MAGIC_CMD"
9086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9087 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9088 for ac_dir in $ac_dummy; do
9089 IFS="$lt_save_ifs"
9090 test -z "$ac_dir" && ac_dir=.
9091 if test -f $ac_dir/${ac_tool_prefix}file; then
9092 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9093 if test -n "$file_magic_test_file"; then
9094 case $deplibs_check_method in
9095 "file_magic "*)
9096 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9097 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9098 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9099 $EGREP "$file_magic_regex" > /dev/null; then
9100 :
9101 else
9102 cat <<_LT_EOF 1>&2
9103
9104 *** Warning: the command libtool uses to detect shared libraries,
9105 *** $file_magic_cmd, produces output that libtool cannot recognize.
9106 *** The result is that libtool may fail to recognize shared libraries
9107 *** as such. This will affect the creation of libtool libraries that
9108 *** depend on shared libraries, but programs linked with such libtool
9109 *** libraries will work regardless of this problem. Nevertheless, you
9110 *** may want to report the problem to your system manager and/or to
9111 *** bug-libtool@gnu.org
9112
9113 _LT_EOF
9114 fi ;;
9115 esac
9116 fi
9117 break
9118 fi
9119 done
9120 IFS="$lt_save_ifs"
9121 MAGIC_CMD="$lt_save_MAGIC_CMD"
9122 ;;
9123 esac
9124 fi
9125
9126 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9127 if test -n "$MAGIC_CMD"; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9129 $as_echo "$MAGIC_CMD" >&6; }
9130 else
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 $as_echo "no" >&6; }
9133 fi
9134
9135
9136
9137
9138
9139 if test -z "$lt_cv_path_MAGIC_CMD"; then
9140 if test -n "$ac_tool_prefix"; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9142 $as_echo_n "checking for file... " >&6; }
9143 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9144 $as_echo_n "(cached) " >&6
9145 else
9146 case $MAGIC_CMD in
9147 [\\/*] | ?:[\\/]*)
9148 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9149 ;;
9150 *)
9151 lt_save_MAGIC_CMD="$MAGIC_CMD"
9152 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9153 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9154 for ac_dir in $ac_dummy; do
9155 IFS="$lt_save_ifs"
9156 test -z "$ac_dir" && ac_dir=.
9157 if test -f $ac_dir/file; then
9158 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9159 if test -n "$file_magic_test_file"; then
9160 case $deplibs_check_method in
9161 "file_magic "*)
9162 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9163 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9164 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9165 $EGREP "$file_magic_regex" > /dev/null; then
9166 :
9167 else
9168 cat <<_LT_EOF 1>&2
9169
9170 *** Warning: the command libtool uses to detect shared libraries,
9171 *** $file_magic_cmd, produces output that libtool cannot recognize.
9172 *** The result is that libtool may fail to recognize shared libraries
9173 *** as such. This will affect the creation of libtool libraries that
9174 *** depend on shared libraries, but programs linked with such libtool
9175 *** libraries will work regardless of this problem. Nevertheless, you
9176 *** may want to report the problem to your system manager and/or to
9177 *** bug-libtool@gnu.org
9178
9179 _LT_EOF
9180 fi ;;
9181 esac
9182 fi
9183 break
9184 fi
9185 done
9186 IFS="$lt_save_ifs"
9187 MAGIC_CMD="$lt_save_MAGIC_CMD"
9188 ;;
9189 esac
9190 fi
9191
9192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9193 if test -n "$MAGIC_CMD"; then
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9195 $as_echo "$MAGIC_CMD" >&6; }
9196 else
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9198 $as_echo "no" >&6; }
9199 fi
9200
9201
9202 else
9203 MAGIC_CMD=:
9204 fi
9205 fi
9206
9207 fi
9208 ;;
9209 esac
9210
9211 # Use C for the default configuration in the libtool script
9212
9213 lt_save_CC="$CC"
9214 ac_ext=c
9215 ac_cpp='$CPP $CPPFLAGS'
9216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9219
9220
9221 # Source file extension for C test sources.
9222 ac_ext=c
9223
9224 # Object file extension for compiled C test sources.
9225 objext=o
9226 objext=$objext
9227
9228 # Code to be used in simple compile tests
9229 lt_simple_compile_test_code="int some_variable = 0;"
9230
9231 # Code to be used in simple link tests
9232 lt_simple_link_test_code='int main(){return(0);}'
9233
9234
9235
9236
9237
9238
9239
9240 # If no C compiler was specified, use CC.
9241 LTCC=${LTCC-"$CC"}
9242
9243 # If no C compiler flags were specified, use CFLAGS.
9244 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9245
9246 # Allow CC to be a program name with arguments.
9247 compiler=$CC
9248
9249 # Save the default compiler, since it gets overwritten when the other
9250 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9251 compiler_DEFAULT=$CC
9252
9253 # save warnings/boilerplate of simple test code
9254 ac_outfile=conftest.$ac_objext
9255 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9256 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9257 _lt_compiler_boilerplate=`cat conftest.err`
9258 $RM conftest*
9259
9260 ac_outfile=conftest.$ac_objext
9261 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9262 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9263 _lt_linker_boilerplate=`cat conftest.err`
9264 $RM -r conftest*
9265
9266
9267 ## CAVEAT EMPTOR:
9268 ## There is no encapsulation within the following macros, do not change
9269 ## the running order or otherwise move them around unless you know exactly
9270 ## what you are doing...
9271 if test -n "$compiler"; then
9272
9273 lt_prog_compiler_no_builtin_flag=
9274
9275 if test "$GCC" = yes; then
9276 case $cc_basename in
9277 nvcc*)
9278 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9279 *)
9280 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9281 esac
9282
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9284 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9285 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9286 $as_echo_n "(cached) " >&6
9287 else
9288 lt_cv_prog_compiler_rtti_exceptions=no
9289 ac_outfile=conftest.$ac_objext
9290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9291 lt_compiler_flag="-fno-rtti -fno-exceptions"
9292 # Insert the option either (1) after the last *FLAGS variable, or
9293 # (2) before a word containing "conftest.", or (3) at the end.
9294 # Note that $ac_compile itself does not contain backslashes and begins
9295 # with a dollar sign (not a hyphen), so the echo should work correctly.
9296 # The option is referenced via a variable to avoid confusing sed.
9297 lt_compile=`echo "$ac_compile" | $SED \
9298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9300 -e 's:$: $lt_compiler_flag:'`
9301 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9302 (eval "$lt_compile" 2>conftest.err)
9303 ac_status=$?
9304 cat conftest.err >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 if (exit $ac_status) && test -s "$ac_outfile"; then
9307 # The compiler can only warn and ignore the option if not recognized
9308 # So say no if there are warnings other than the usual output.
9309 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9311 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9312 lt_cv_prog_compiler_rtti_exceptions=yes
9313 fi
9314 fi
9315 $RM conftest*
9316
9317 fi
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9319 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9320
9321 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9322 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9323 else
9324 :
9325 fi
9326
9327 fi
9328
9329
9330
9331
9332
9333
9334 lt_prog_compiler_wl=
9335 lt_prog_compiler_pic=
9336 lt_prog_compiler_static=
9337
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9339 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9340
9341 if test "$GCC" = yes; then
9342 lt_prog_compiler_wl='-Wl,'
9343 lt_prog_compiler_static='-static'
9344
9345 case $host_os in
9346 aix*)
9347 # All AIX code is PIC.
9348 if test "$host_cpu" = ia64; then
9349 # AIX 5 now supports IA64 processor
9350 lt_prog_compiler_static='-Bstatic'
9351 fi
9352 lt_prog_compiler_pic='-fPIC'
9353 ;;
9354
9355 amigaos*)
9356 case $host_cpu in
9357 powerpc)
9358 # see comment about AmigaOS4 .so support
9359 lt_prog_compiler_pic='-fPIC'
9360 ;;
9361 m68k)
9362 # FIXME: we need at least 68020 code to build shared libraries, but
9363 # adding the `-m68020' flag to GCC prevents building anything better,
9364 # like `-m68040'.
9365 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9366 ;;
9367 esac
9368 ;;
9369
9370 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9371 # PIC is the default for these OSes.
9372 ;;
9373
9374 mingw* | cygwin* | pw32* | os2* | cegcc*)
9375 # This hack is so that the source file can tell whether it is being
9376 # built for inclusion in a dll (and should export symbols for example).
9377 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9378 # (--disable-auto-import) libraries
9379 lt_prog_compiler_pic='-DDLL_EXPORT'
9380 ;;
9381
9382 darwin* | rhapsody*)
9383 # PIC is the default on this platform
9384 # Common symbols not allowed in MH_DYLIB files
9385 lt_prog_compiler_pic='-fno-common'
9386 ;;
9387
9388 haiku*)
9389 # PIC is the default for Haiku.
9390 # The "-static" flag exists, but is broken.
9391 lt_prog_compiler_static=
9392 ;;
9393
9394 hpux*)
9395 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9396 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9397 # sets the default TLS model and affects inlining.
9398 case $host_cpu in
9399 hppa*64*)
9400 # +Z the default
9401 ;;
9402 *)
9403 lt_prog_compiler_pic='-fPIC'
9404 ;;
9405 esac
9406 ;;
9407
9408 interix[3-9]*)
9409 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9410 # Instead, we relocate shared libraries at runtime.
9411 ;;
9412
9413 msdosdjgpp*)
9414 # Just because we use GCC doesn't mean we suddenly get shared libraries
9415 # on systems that don't support them.
9416 lt_prog_compiler_can_build_shared=no
9417 enable_shared=no
9418 ;;
9419
9420 *nto* | *qnx*)
9421 # QNX uses GNU C++, but need to define -shared option too, otherwise
9422 # it will coredump.
9423 lt_prog_compiler_pic='-fPIC -shared'
9424 ;;
9425
9426 sysv4*MP*)
9427 if test -d /usr/nec; then
9428 lt_prog_compiler_pic=-Kconform_pic
9429 fi
9430 ;;
9431
9432 *)
9433 lt_prog_compiler_pic='-fPIC'
9434 ;;
9435 esac
9436
9437 case $cc_basename in
9438 nvcc*) # Cuda Compiler Driver 2.2
9439 lt_prog_compiler_wl='-Xlinker '
9440 lt_prog_compiler_pic='-Xcompiler -fPIC'
9441 ;;
9442 esac
9443 else
9444 # PORTME Check for flag to pass linker flags through the system compiler.
9445 case $host_os in
9446 aix*)
9447 lt_prog_compiler_wl='-Wl,'
9448 if test "$host_cpu" = ia64; then
9449 # AIX 5 now supports IA64 processor
9450 lt_prog_compiler_static='-Bstatic'
9451 else
9452 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9453 fi
9454 ;;
9455
9456 mingw* | cygwin* | pw32* | os2* | cegcc*)
9457 # This hack is so that the source file can tell whether it is being
9458 # built for inclusion in a dll (and should export symbols for example).
9459 lt_prog_compiler_pic='-DDLL_EXPORT'
9460 ;;
9461
9462 hpux9* | hpux10* | hpux11*)
9463 lt_prog_compiler_wl='-Wl,'
9464 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9465 # not for PA HP-UX.
9466 case $host_cpu in
9467 hppa*64*|ia64*)
9468 # +Z the default
9469 ;;
9470 *)
9471 lt_prog_compiler_pic='+Z'
9472 ;;
9473 esac
9474 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9475 lt_prog_compiler_static='${wl}-a ${wl}archive'
9476 ;;
9477
9478 irix5* | irix6* | nonstopux*)
9479 lt_prog_compiler_wl='-Wl,'
9480 # PIC (with -KPIC) is the default.
9481 lt_prog_compiler_static='-non_shared'
9482 ;;
9483
9484 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9485 case $cc_basename in
9486 # old Intel for x86_64 which still supported -KPIC.
9487 ecc*)
9488 lt_prog_compiler_wl='-Wl,'
9489 lt_prog_compiler_pic='-KPIC'
9490 lt_prog_compiler_static='-static'
9491 ;;
9492 # icc used to be incompatible with GCC.
9493 # ICC 10 doesn't accept -KPIC any more.
9494 icc* | ifort*)
9495 lt_prog_compiler_wl='-Wl,'
9496 lt_prog_compiler_pic='-fPIC'
9497 lt_prog_compiler_static='-static'
9498 ;;
9499 # Lahey Fortran 8.1.
9500 lf95*)
9501 lt_prog_compiler_wl='-Wl,'
9502 lt_prog_compiler_pic='--shared'
9503 lt_prog_compiler_static='--static'
9504 ;;
9505 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9506 # Portland Group compilers (*not* the Pentium gcc compiler,
9507 # which looks to be a dead project)
9508 lt_prog_compiler_wl='-Wl,'
9509 lt_prog_compiler_pic='-fpic'
9510 lt_prog_compiler_static='-Bstatic'
9511 ;;
9512 ccc*)
9513 lt_prog_compiler_wl='-Wl,'
9514 # All Alpha code is PIC.
9515 lt_prog_compiler_static='-non_shared'
9516 ;;
9517 xl* | bgxl* | bgf* | mpixl*)
9518 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9519 lt_prog_compiler_wl='-Wl,'
9520 lt_prog_compiler_pic='-qpic'
9521 lt_prog_compiler_static='-qstaticlink'
9522 ;;
9523 *)
9524 case `$CC -V 2>&1 | sed 5q` in
9525 *Sun\ F* | *Sun*Fortran*)
9526 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9527 lt_prog_compiler_pic='-KPIC'
9528 lt_prog_compiler_static='-Bstatic'
9529 lt_prog_compiler_wl=''
9530 ;;
9531 *Sun\ C*)
9532 # Sun C 5.9
9533 lt_prog_compiler_pic='-KPIC'
9534 lt_prog_compiler_static='-Bstatic'
9535 lt_prog_compiler_wl='-Wl,'
9536 ;;
9537 esac
9538 ;;
9539 esac
9540 ;;
9541
9542 newsos6)
9543 lt_prog_compiler_pic='-KPIC'
9544 lt_prog_compiler_static='-Bstatic'
9545 ;;
9546
9547 *nto* | *qnx*)
9548 # QNX uses GNU C++, but need to define -shared option too, otherwise
9549 # it will coredump.
9550 lt_prog_compiler_pic='-fPIC -shared'
9551 ;;
9552
9553 osf3* | osf4* | osf5*)
9554 lt_prog_compiler_wl='-Wl,'
9555 # All OSF/1 code is PIC.
9556 lt_prog_compiler_static='-non_shared'
9557 ;;
9558
9559 rdos*)
9560 lt_prog_compiler_static='-non_shared'
9561 ;;
9562
9563 solaris*)
9564 lt_prog_compiler_pic='-KPIC'
9565 lt_prog_compiler_static='-Bstatic'
9566 case $cc_basename in
9567 f77* | f90* | f95*)
9568 lt_prog_compiler_wl='-Qoption ld ';;
9569 *)
9570 lt_prog_compiler_wl='-Wl,';;
9571 esac
9572 ;;
9573
9574 sunos4*)
9575 lt_prog_compiler_wl='-Qoption ld '
9576 lt_prog_compiler_pic='-PIC'
9577 lt_prog_compiler_static='-Bstatic'
9578 ;;
9579
9580 sysv4 | sysv4.2uw2* | sysv4.3*)
9581 lt_prog_compiler_wl='-Wl,'
9582 lt_prog_compiler_pic='-KPIC'
9583 lt_prog_compiler_static='-Bstatic'
9584 ;;
9585
9586 sysv4*MP*)
9587 if test -d /usr/nec ;then
9588 lt_prog_compiler_pic='-Kconform_pic'
9589 lt_prog_compiler_static='-Bstatic'
9590 fi
9591 ;;
9592
9593 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9594 lt_prog_compiler_wl='-Wl,'
9595 lt_prog_compiler_pic='-KPIC'
9596 lt_prog_compiler_static='-Bstatic'
9597 ;;
9598
9599 unicos*)
9600 lt_prog_compiler_wl='-Wl,'
9601 lt_prog_compiler_can_build_shared=no
9602 ;;
9603
9604 uts4*)
9605 lt_prog_compiler_pic='-pic'
9606 lt_prog_compiler_static='-Bstatic'
9607 ;;
9608
9609 *)
9610 lt_prog_compiler_can_build_shared=no
9611 ;;
9612 esac
9613 fi
9614
9615 case $host_os in
9616 # For platforms which do not support PIC, -DPIC is meaningless:
9617 *djgpp*)
9618 lt_prog_compiler_pic=
9619 ;;
9620 *)
9621 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9622 ;;
9623 esac
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9625 $as_echo "$lt_prog_compiler_pic" >&6; }
9626
9627
9628
9629
9630
9631
9632 #
9633 # Check to make sure the PIC flag actually works.
9634 #
9635 if test -n "$lt_prog_compiler_pic"; then
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9637 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9638 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9639 $as_echo_n "(cached) " >&6
9640 else
9641 lt_cv_prog_compiler_pic_works=no
9642 ac_outfile=conftest.$ac_objext
9643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9644 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9645 # Insert the option either (1) after the last *FLAGS variable, or
9646 # (2) before a word containing "conftest.", or (3) at the end.
9647 # Note that $ac_compile itself does not contain backslashes and begins
9648 # with a dollar sign (not a hyphen), so the echo should work correctly.
9649 # The option is referenced via a variable to avoid confusing sed.
9650 lt_compile=`echo "$ac_compile" | $SED \
9651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9653 -e 's:$: $lt_compiler_flag:'`
9654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9655 (eval "$lt_compile" 2>conftest.err)
9656 ac_status=$?
9657 cat conftest.err >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 if (exit $ac_status) && test -s "$ac_outfile"; then
9660 # The compiler can only warn and ignore the option if not recognized
9661 # So say no if there are warnings other than the usual output.
9662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9664 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9665 lt_cv_prog_compiler_pic_works=yes
9666 fi
9667 fi
9668 $RM conftest*
9669
9670 fi
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9672 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9673
9674 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9675 case $lt_prog_compiler_pic in
9676 "" | " "*) ;;
9677 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9678 esac
9679 else
9680 lt_prog_compiler_pic=
9681 lt_prog_compiler_can_build_shared=no
9682 fi
9683
9684 fi
9685
9686
9687
9688
9689
9690
9691 #
9692 # Check to make sure the static flag actually works.
9693 #
9694 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9696 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9697 if ${lt_cv_prog_compiler_static_works+:} false; then :
9698 $as_echo_n "(cached) " >&6
9699 else
9700 lt_cv_prog_compiler_static_works=no
9701 save_LDFLAGS="$LDFLAGS"
9702 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9703 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9704 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9705 # The linker can only warn and ignore the option if not recognized
9706 # So say no if there are warnings
9707 if test -s conftest.err; then
9708 # Append any errors to the config.log.
9709 cat conftest.err 1>&5
9710 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9712 if diff conftest.exp conftest.er2 >/dev/null; then
9713 lt_cv_prog_compiler_static_works=yes
9714 fi
9715 else
9716 lt_cv_prog_compiler_static_works=yes
9717 fi
9718 fi
9719 $RM -r conftest*
9720 LDFLAGS="$save_LDFLAGS"
9721
9722 fi
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9724 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9725
9726 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9727 :
9728 else
9729 lt_prog_compiler_static=
9730 fi
9731
9732
9733
9734
9735
9736
9737
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9739 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9740 if ${lt_cv_prog_compiler_c_o+:} false; then :
9741 $as_echo_n "(cached) " >&6
9742 else
9743 lt_cv_prog_compiler_c_o=no
9744 $RM -r conftest 2>/dev/null
9745 mkdir conftest
9746 cd conftest
9747 mkdir out
9748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9749
9750 lt_compiler_flag="-o out/conftest2.$ac_objext"
9751 # Insert the option either (1) after the last *FLAGS variable, or
9752 # (2) before a word containing "conftest.", or (3) at the end.
9753 # Note that $ac_compile itself does not contain backslashes and begins
9754 # with a dollar sign (not a hyphen), so the echo should work correctly.
9755 lt_compile=`echo "$ac_compile" | $SED \
9756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9758 -e 's:$: $lt_compiler_flag:'`
9759 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9760 (eval "$lt_compile" 2>out/conftest.err)
9761 ac_status=$?
9762 cat out/conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9765 then
9766 # The compiler can only warn and ignore the option if not recognized
9767 # So say no if there are warnings
9768 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9771 lt_cv_prog_compiler_c_o=yes
9772 fi
9773 fi
9774 chmod u+w . 2>&5
9775 $RM conftest*
9776 # SGI C++ compiler will create directory out/ii_files/ for
9777 # template instantiation
9778 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9779 $RM out/* && rmdir out
9780 cd ..
9781 $RM -r conftest
9782 $RM conftest*
9783
9784 fi
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9786 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9787
9788
9789
9790
9791
9792
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9794 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9795 if ${lt_cv_prog_compiler_c_o+:} false; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 lt_cv_prog_compiler_c_o=no
9799 $RM -r conftest 2>/dev/null
9800 mkdir conftest
9801 cd conftest
9802 mkdir out
9803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9804
9805 lt_compiler_flag="-o out/conftest2.$ac_objext"
9806 # Insert the option either (1) after the last *FLAGS variable, or
9807 # (2) before a word containing "conftest.", or (3) at the end.
9808 # Note that $ac_compile itself does not contain backslashes and begins
9809 # with a dollar sign (not a hyphen), so the echo should work correctly.
9810 lt_compile=`echo "$ac_compile" | $SED \
9811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9813 -e 's:$: $lt_compiler_flag:'`
9814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9815 (eval "$lt_compile" 2>out/conftest.err)
9816 ac_status=$?
9817 cat out/conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9820 then
9821 # The compiler can only warn and ignore the option if not recognized
9822 # So say no if there are warnings
9823 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9824 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9825 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9826 lt_cv_prog_compiler_c_o=yes
9827 fi
9828 fi
9829 chmod u+w . 2>&5
9830 $RM conftest*
9831 # SGI C++ compiler will create directory out/ii_files/ for
9832 # template instantiation
9833 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9834 $RM out/* && rmdir out
9835 cd ..
9836 $RM -r conftest
9837 $RM conftest*
9838
9839 fi
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9841 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9842
9843
9844
9845
9846 hard_links="nottested"
9847 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9848 # do not overwrite the value of need_locks provided by the user
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9850 $as_echo_n "checking if we can lock with hard links... " >&6; }
9851 hard_links=yes
9852 $RM conftest*
9853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9854 touch conftest.a
9855 ln conftest.a conftest.b 2>&5 || hard_links=no
9856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9858 $as_echo "$hard_links" >&6; }
9859 if test "$hard_links" = no; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9861 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9862 need_locks=warn
9863 fi
9864 else
9865 need_locks=no
9866 fi
9867
9868
9869
9870
9871
9872
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9874 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9875
9876 runpath_var=
9877 allow_undefined_flag=
9878 always_export_symbols=no
9879 archive_cmds=
9880 archive_expsym_cmds=
9881 compiler_needs_object=no
9882 enable_shared_with_static_runtimes=no
9883 export_dynamic_flag_spec=
9884 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9885 hardcode_automatic=no
9886 hardcode_direct=no
9887 hardcode_direct_absolute=no
9888 hardcode_libdir_flag_spec=
9889 hardcode_libdir_flag_spec_ld=
9890 hardcode_libdir_separator=
9891 hardcode_minus_L=no
9892 hardcode_shlibpath_var=unsupported
9893 inherit_rpath=no
9894 link_all_deplibs=unknown
9895 module_cmds=
9896 module_expsym_cmds=
9897 old_archive_from_new_cmds=
9898 old_archive_from_expsyms_cmds=
9899 thread_safe_flag_spec=
9900 whole_archive_flag_spec=
9901 # include_expsyms should be a list of space-separated symbols to be *always*
9902 # included in the symbol list
9903 include_expsyms=
9904 # exclude_expsyms can be an extended regexp of symbols to exclude
9905 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9906 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9907 # as well as any symbol that contains `d'.
9908 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9909 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9910 # platforms (ab)use it in PIC code, but their linkers get confused if
9911 # the symbol is explicitly referenced. Since portable code cannot
9912 # rely on this symbol name, it's probably fine to never include it in
9913 # preloaded symbol tables.
9914 # Exclude shared library initialization/finalization symbols.
9915 extract_expsyms_cmds=
9916
9917 case $host_os in
9918 cygwin* | mingw* | pw32* | cegcc*)
9919 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9920 # When not using gcc, we currently assume that we are using
9921 # Microsoft Visual C++.
9922 if test "$GCC" != yes; then
9923 with_gnu_ld=no
9924 fi
9925 ;;
9926 interix*)
9927 # we just hope/assume this is gcc and not c89 (= MSVC++)
9928 with_gnu_ld=yes
9929 ;;
9930 openbsd*)
9931 with_gnu_ld=no
9932 ;;
9933 esac
9934
9935 ld_shlibs=yes
9936
9937 # On some targets, GNU ld is compatible enough with the native linker
9938 # that we're better off using the native interface for both.
9939 lt_use_gnu_ld_interface=no
9940 if test "$with_gnu_ld" = yes; then
9941 case $host_os in
9942 aix*)
9943 # The AIX port of GNU ld has always aspired to compatibility
9944 # with the native linker. However, as the warning in the GNU ld
9945 # block says, versions before 2.19.5* couldn't really create working
9946 # shared libraries, regardless of the interface used.
9947 case `$LD -v 2>&1` in
9948 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9949 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9950 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9951 *)
9952 lt_use_gnu_ld_interface=yes
9953 ;;
9954 esac
9955 ;;
9956 *)
9957 lt_use_gnu_ld_interface=yes
9958 ;;
9959 esac
9960 fi
9961
9962 if test "$lt_use_gnu_ld_interface" = yes; then
9963 # If archive_cmds runs LD, not CC, wlarc should be empty
9964 wlarc='${wl}'
9965
9966 # Set some defaults for GNU ld with shared library support. These
9967 # are reset later if shared libraries are not supported. Putting them
9968 # here allows them to be overridden if necessary.
9969 runpath_var=LD_RUN_PATH
9970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9971 export_dynamic_flag_spec='${wl}--export-dynamic'
9972 # ancient GNU ld didn't support --whole-archive et. al.
9973 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9974 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9975 else
9976 whole_archive_flag_spec=
9977 fi
9978 supports_anon_versioning=no
9979 case `$LD -v 2>&1` in
9980 *GNU\ gold*) supports_anon_versioning=yes ;;
9981 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9982 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9983 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9984 *\ 2.11.*) ;; # other 2.11 versions
9985 *) supports_anon_versioning=yes ;;
9986 esac
9987
9988 # See if GNU ld supports shared libraries.
9989 case $host_os in
9990 aix[3-9]*)
9991 # On AIX/PPC, the GNU linker is very broken
9992 if test "$host_cpu" != ia64; then
9993 ld_shlibs=no
9994 cat <<_LT_EOF 1>&2
9995
9996 *** Warning: the GNU linker, at least up to release 2.19, is reported
9997 *** to be unable to reliably create shared libraries on AIX.
9998 *** Therefore, libtool is disabling shared libraries support. If you
9999 *** really care for shared libraries, you may want to install binutils
10000 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10001 *** You will then need to restart the configuration process.
10002
10003 _LT_EOF
10004 fi
10005 ;;
10006
10007 amigaos*)
10008 case $host_cpu in
10009 powerpc)
10010 # see comment about AmigaOS4 .so support
10011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10012 archive_expsym_cmds=''
10013 ;;
10014 m68k)
10015 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)'
10016 hardcode_libdir_flag_spec='-L$libdir'
10017 hardcode_minus_L=yes
10018 ;;
10019 esac
10020 ;;
10021
10022 beos*)
10023 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10024 allow_undefined_flag=unsupported
10025 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10026 # support --undefined. This deserves some investigation. FIXME
10027 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10028 else
10029 ld_shlibs=no
10030 fi
10031 ;;
10032
10033 cygwin* | mingw* | pw32* | cegcc*)
10034 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10035 # as there is no search path for DLLs.
10036 hardcode_libdir_flag_spec='-L$libdir'
10037 export_dynamic_flag_spec='${wl}--export-all-symbols'
10038 allow_undefined_flag=unsupported
10039 always_export_symbols=no
10040 enable_shared_with_static_runtimes=yes
10041 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10042
10043 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10045 # If the export-symbols file already is a .def file (1st line
10046 # is EXPORTS), use it as is; otherwise, prepend...
10047 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10048 cp $export_symbols $output_objdir/$soname.def;
10049 else
10050 echo EXPORTS > $output_objdir/$soname.def;
10051 cat $export_symbols >> $output_objdir/$soname.def;
10052 fi~
10053 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10054 else
10055 ld_shlibs=no
10056 fi
10057 ;;
10058
10059 haiku*)
10060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10061 link_all_deplibs=yes
10062 ;;
10063
10064 interix[3-9]*)
10065 hardcode_direct=no
10066 hardcode_shlibpath_var=no
10067 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10068 export_dynamic_flag_spec='${wl}-E'
10069 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10070 # Instead, shared libraries are loaded at an image base (0x10000000 by
10071 # default) and relocated if they conflict, which is a slow very memory
10072 # consuming and fragmenting process. To avoid this, we pick a random,
10073 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10074 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10075 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10076 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'
10077 ;;
10078
10079 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10080 tmp_diet=no
10081 if test "$host_os" = linux-dietlibc; then
10082 case $cc_basename in
10083 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10084 esac
10085 fi
10086 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10087 && test "$tmp_diet" = no
10088 then
10089 tmp_addflag=' $pic_flag'
10090 tmp_sharedflag='-shared'
10091 case $cc_basename,$host_cpu in
10092 pgcc*) # Portland Group C compiler
10093 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'
10094 tmp_addflag=' $pic_flag'
10095 ;;
10096 pgf77* | pgf90* | pgf95* | pgfortran*)
10097 # Portland Group f77 and f90 compilers
10098 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'
10099 tmp_addflag=' $pic_flag -Mnomain' ;;
10100 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10101 tmp_addflag=' -i_dynamic' ;;
10102 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10103 tmp_addflag=' -i_dynamic -nofor_main' ;;
10104 ifc* | ifort*) # Intel Fortran compiler
10105 tmp_addflag=' -nofor_main' ;;
10106 lf95*) # Lahey Fortran 8.1
10107 whole_archive_flag_spec=
10108 tmp_sharedflag='--shared' ;;
10109 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10110 tmp_sharedflag='-qmkshrobj'
10111 tmp_addflag= ;;
10112 nvcc*) # Cuda Compiler Driver 2.2
10113 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'
10114 compiler_needs_object=yes
10115 ;;
10116 esac
10117 case `$CC -V 2>&1 | sed 5q` in
10118 *Sun\ C*) # Sun C 5.9
10119 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'
10120 compiler_needs_object=yes
10121 tmp_sharedflag='-G' ;;
10122 *Sun\ F*) # Sun Fortran 8.3
10123 tmp_sharedflag='-G' ;;
10124 esac
10125 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10126
10127 if test "x$supports_anon_versioning" = xyes; then
10128 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10129 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10130 echo "local: *; };" >> $output_objdir/$libname.ver~
10131 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10132 fi
10133
10134 case $cc_basename in
10135 xlf* | bgf* | bgxlf* | mpixlf*)
10136 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10137 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10138 hardcode_libdir_flag_spec=
10139 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10140 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10141 if test "x$supports_anon_versioning" = xyes; then
10142 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10143 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10144 echo "local: *; };" >> $output_objdir/$libname.ver~
10145 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10146 fi
10147 ;;
10148 esac
10149 else
10150 ld_shlibs=no
10151 fi
10152 ;;
10153
10154 netbsd*)
10155 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10156 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10157 wlarc=
10158 else
10159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10160 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10161 fi
10162 ;;
10163
10164 solaris*)
10165 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10166 ld_shlibs=no
10167 cat <<_LT_EOF 1>&2
10168
10169 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10170 *** create shared libraries on Solaris systems. Therefore, libtool
10171 *** is disabling shared libraries support. We urge you to upgrade GNU
10172 *** binutils to release 2.9.1 or newer. Another option is to modify
10173 *** your PATH or compiler configuration so that the native linker is
10174 *** used, and then restart.
10175
10176 _LT_EOF
10177 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10179 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10180 else
10181 ld_shlibs=no
10182 fi
10183 ;;
10184
10185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10186 case `$LD -v 2>&1` in
10187 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10188 ld_shlibs=no
10189 cat <<_LT_EOF 1>&2
10190
10191 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10192 *** reliably create shared libraries on SCO systems. Therefore, libtool
10193 *** is disabling shared libraries support. We urge you to upgrade GNU
10194 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10195 *** your PATH or compiler configuration so that the native linker is
10196 *** used, and then restart.
10197
10198 _LT_EOF
10199 ;;
10200 *)
10201 # For security reasons, it is highly recommended that you always
10202 # use absolute paths for naming shared libraries, and exclude the
10203 # DT_RUNPATH tag from executables and libraries. But doing so
10204 # requires that you compile everything twice, which is a pain.
10205 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10208 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10209 else
10210 ld_shlibs=no
10211 fi
10212 ;;
10213 esac
10214 ;;
10215
10216 sunos4*)
10217 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10218 wlarc=
10219 hardcode_direct=yes
10220 hardcode_shlibpath_var=no
10221 ;;
10222
10223 *)
10224 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10226 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10227 else
10228 ld_shlibs=no
10229 fi
10230 ;;
10231 esac
10232
10233 if test "$ld_shlibs" = no; then
10234 runpath_var=
10235 hardcode_libdir_flag_spec=
10236 export_dynamic_flag_spec=
10237 whole_archive_flag_spec=
10238 fi
10239 else
10240 # PORTME fill in a description of your system's linker (not GNU ld)
10241 case $host_os in
10242 aix3*)
10243 allow_undefined_flag=unsupported
10244 always_export_symbols=yes
10245 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'
10246 # Note: this linker hardcodes the directories in LIBPATH if there
10247 # are no directories specified by -L.
10248 hardcode_minus_L=yes
10249 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10250 # Neither direct hardcoding nor static linking is supported with a
10251 # broken collect2.
10252 hardcode_direct=unsupported
10253 fi
10254 ;;
10255
10256 aix[4-9]*)
10257 if test "$host_cpu" = ia64; then
10258 # On IA64, the linker does run time linking by default, so we don't
10259 # have to do anything special.
10260 aix_use_runtimelinking=no
10261 exp_sym_flag='-Bexport'
10262 no_entry_flag=""
10263 else
10264 # If we're using GNU nm, then we don't want the "-C" option.
10265 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10266 # Also, AIX nm treats weak defined symbols like other global
10267 # defined symbols, whereas GNU nm marks them as "W".
10268 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10269 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'
10270 else
10271 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'
10272 fi
10273 aix_use_runtimelinking=no
10274
10275 # Test if we are trying to use run time linking or normal
10276 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10277 # need to do runtime linking.
10278 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10279 for ld_flag in $LDFLAGS; do
10280 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10281 aix_use_runtimelinking=yes
10282 break
10283 fi
10284 done
10285 ;;
10286 esac
10287
10288 exp_sym_flag='-bexport'
10289 no_entry_flag='-bnoentry'
10290 fi
10291
10292 # When large executables or shared objects are built, AIX ld can
10293 # have problems creating the table of contents. If linking a library
10294 # or program results in "error TOC overflow" add -mminimal-toc to
10295 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10296 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10297
10298 archive_cmds=''
10299 hardcode_direct=yes
10300 hardcode_direct_absolute=yes
10301 hardcode_libdir_separator=':'
10302 link_all_deplibs=yes
10303 file_list_spec='${wl}-f,'
10304
10305 if test "$GCC" = yes; then
10306 case $host_os in aix4.[012]|aix4.[012].*)
10307 # We only want to do this on AIX 4.2 and lower, the check
10308 # below for broken collect2 doesn't work under 4.3+
10309 collect2name=`${CC} -print-prog-name=collect2`
10310 if test -f "$collect2name" &&
10311 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10312 then
10313 # We have reworked collect2
10314 :
10315 else
10316 # We have old collect2
10317 hardcode_direct=unsupported
10318 # It fails to find uninstalled libraries when the uninstalled
10319 # path is not listed in the libpath. Setting hardcode_minus_L
10320 # to unsupported forces relinking
10321 hardcode_minus_L=yes
10322 hardcode_libdir_flag_spec='-L$libdir'
10323 hardcode_libdir_separator=
10324 fi
10325 ;;
10326 esac
10327 shared_flag='-shared'
10328 if test "$aix_use_runtimelinking" = yes; then
10329 shared_flag="$shared_flag "'${wl}-G'
10330 fi
10331 else
10332 # not using gcc
10333 if test "$host_cpu" = ia64; then
10334 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10335 # chokes on -Wl,-G. The following line is correct:
10336 shared_flag='-G'
10337 else
10338 if test "$aix_use_runtimelinking" = yes; then
10339 shared_flag='${wl}-G'
10340 else
10341 shared_flag='${wl}-bM:SRE'
10342 fi
10343 fi
10344 fi
10345
10346 export_dynamic_flag_spec='${wl}-bexpall'
10347 # It seems that -bexpall does not export symbols beginning with
10348 # underscore (_), so it is better to generate a list of symbols to export.
10349 always_export_symbols=yes
10350 if test "$aix_use_runtimelinking" = yes; then
10351 # Warning - without using the other runtime loading flags (-brtl),
10352 # -berok will link without error, but may produce a broken library.
10353 allow_undefined_flag='-berok'
10354 # Determine the default libpath from the value encoded in an
10355 # empty executable.
10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h. */
10358
10359 int
10360 main ()
10361 {
10362
10363 ;
10364 return 0;
10365 }
10366 _ACEOF
10367 if ac_fn_c_try_link "$LINENO"; then :
10368
10369 lt_aix_libpath_sed='
10370 /Import File Strings/,/^$/ {
10371 /^0/ {
10372 s/^0 *\(.*\)$/\1/
10373 p
10374 }
10375 }'
10376 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10377 # Check for a 64-bit object if we didn't find anything.
10378 if test -z "$aix_libpath"; then
10379 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10380 fi
10381 fi
10382 rm -f core conftest.err conftest.$ac_objext \
10383 conftest$ac_exeext conftest.$ac_ext
10384 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10385
10386 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10387 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"
10388 else
10389 if test "$host_cpu" = ia64; then
10390 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10391 allow_undefined_flag="-z nodefs"
10392 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"
10393 else
10394 # Determine the default libpath from the value encoded in an
10395 # empty executable.
10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397 /* end confdefs.h. */
10398
10399 int
10400 main ()
10401 {
10402
10403 ;
10404 return 0;
10405 }
10406 _ACEOF
10407 if ac_fn_c_try_link "$LINENO"; then :
10408
10409 lt_aix_libpath_sed='
10410 /Import File Strings/,/^$/ {
10411 /^0/ {
10412 s/^0 *\(.*\)$/\1/
10413 p
10414 }
10415 }'
10416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10417 # Check for a 64-bit object if we didn't find anything.
10418 if test -z "$aix_libpath"; then
10419 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10420 fi
10421 fi
10422 rm -f core conftest.err conftest.$ac_objext \
10423 conftest$ac_exeext conftest.$ac_ext
10424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10425
10426 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10427 # Warning - without using the other run time loading flags,
10428 # -berok will link without error, but may produce a broken library.
10429 no_undefined_flag=' ${wl}-bernotok'
10430 allow_undefined_flag=' ${wl}-berok'
10431 if test "$with_gnu_ld" = yes; then
10432 # We only use this code for GNU lds that support --whole-archive.
10433 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10434 else
10435 # Exported symbols can be pulled into shared objects from archives
10436 whole_archive_flag_spec='$convenience'
10437 fi
10438 archive_cmds_need_lc=yes
10439 # This is similar to how AIX traditionally builds its shared libraries.
10440 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'
10441 fi
10442 fi
10443 ;;
10444
10445 amigaos*)
10446 case $host_cpu in
10447 powerpc)
10448 # see comment about AmigaOS4 .so support
10449 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10450 archive_expsym_cmds=''
10451 ;;
10452 m68k)
10453 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)'
10454 hardcode_libdir_flag_spec='-L$libdir'
10455 hardcode_minus_L=yes
10456 ;;
10457 esac
10458 ;;
10459
10460 bsdi[45]*)
10461 export_dynamic_flag_spec=-rdynamic
10462 ;;
10463
10464 cygwin* | mingw* | pw32* | cegcc*)
10465 # When not using gcc, we currently assume that we are using
10466 # Microsoft Visual C++.
10467 # hardcode_libdir_flag_spec is actually meaningless, as there is
10468 # no search path for DLLs.
10469 hardcode_libdir_flag_spec=' '
10470 allow_undefined_flag=unsupported
10471 # Tell ltmain to make .lib files, not .a files.
10472 libext=lib
10473 # Tell ltmain to make .dll files, not .so files.
10474 shrext_cmds=".dll"
10475 # FIXME: Setting linknames here is a bad hack.
10476 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10477 # The linker will automatically build a .lib file if we build a DLL.
10478 old_archive_from_new_cmds='true'
10479 # FIXME: Should let the user specify the lib program.
10480 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10481 fix_srcfile_path='`cygpath -w "$srcfile"`'
10482 enable_shared_with_static_runtimes=yes
10483 ;;
10484
10485 darwin* | rhapsody*)
10486
10487
10488 archive_cmds_need_lc=no
10489 hardcode_direct=no
10490 hardcode_automatic=yes
10491 hardcode_shlibpath_var=unsupported
10492 if test "$lt_cv_ld_force_load" = "yes"; then
10493 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\"`'
10494 else
10495 whole_archive_flag_spec=''
10496 fi
10497 link_all_deplibs=yes
10498 allow_undefined_flag="$_lt_dar_allow_undefined"
10499 case $cc_basename in
10500 ifort*) _lt_dar_can_shared=yes ;;
10501 *) _lt_dar_can_shared=$GCC ;;
10502 esac
10503 if test "$_lt_dar_can_shared" = "yes"; then
10504 output_verbose_link_cmd=func_echo_all
10505 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10506 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10507 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}"
10508 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}"
10509
10510 else
10511 ld_shlibs=no
10512 fi
10513
10514 ;;
10515
10516 dgux*)
10517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10518 hardcode_libdir_flag_spec='-L$libdir'
10519 hardcode_shlibpath_var=no
10520 ;;
10521
10522 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10523 # support. Future versions do this automatically, but an explicit c++rt0.o
10524 # does not break anything, and helps significantly (at the cost of a little
10525 # extra space).
10526 freebsd2.2*)
10527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10528 hardcode_libdir_flag_spec='-R$libdir'
10529 hardcode_direct=yes
10530 hardcode_shlibpath_var=no
10531 ;;
10532
10533 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10534 freebsd2.*)
10535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10536 hardcode_direct=yes
10537 hardcode_minus_L=yes
10538 hardcode_shlibpath_var=no
10539 ;;
10540
10541 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10542 freebsd* | dragonfly*)
10543 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10544 hardcode_libdir_flag_spec='-R$libdir'
10545 hardcode_direct=yes
10546 hardcode_shlibpath_var=no
10547 ;;
10548
10549 hpux9*)
10550 if test "$GCC" = yes; then
10551 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'
10552 else
10553 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'
10554 fi
10555 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10556 hardcode_libdir_separator=:
10557 hardcode_direct=yes
10558
10559 # hardcode_minus_L: Not really in the search PATH,
10560 # but as the default location of the library.
10561 hardcode_minus_L=yes
10562 export_dynamic_flag_spec='${wl}-E'
10563 ;;
10564
10565 hpux10*)
10566 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10567 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10568 else
10569 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10570 fi
10571 if test "$with_gnu_ld" = no; then
10572 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10573 hardcode_libdir_flag_spec_ld='+b $libdir'
10574 hardcode_libdir_separator=:
10575 hardcode_direct=yes
10576 hardcode_direct_absolute=yes
10577 export_dynamic_flag_spec='${wl}-E'
10578 # hardcode_minus_L: Not really in the search PATH,
10579 # but as the default location of the library.
10580 hardcode_minus_L=yes
10581 fi
10582 ;;
10583
10584 hpux11*)
10585 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10586 case $host_cpu in
10587 hppa*64*)
10588 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10589 ;;
10590 ia64*)
10591 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10592 ;;
10593 *)
10594 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10595 ;;
10596 esac
10597 else
10598 case $host_cpu in
10599 hppa*64*)
10600 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10601 ;;
10602 ia64*)
10603 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10604 ;;
10605 *)
10606
10607 # Older versions of the 11.00 compiler do not understand -b yet
10608 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10610 $as_echo_n "checking if $CC understands -b... " >&6; }
10611 if ${lt_cv_prog_compiler__b+:} false; then :
10612 $as_echo_n "(cached) " >&6
10613 else
10614 lt_cv_prog_compiler__b=no
10615 save_LDFLAGS="$LDFLAGS"
10616 LDFLAGS="$LDFLAGS -b"
10617 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10618 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10619 # The linker can only warn and ignore the option if not recognized
10620 # So say no if there are warnings
10621 if test -s conftest.err; then
10622 # Append any errors to the config.log.
10623 cat conftest.err 1>&5
10624 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10625 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10626 if diff conftest.exp conftest.er2 >/dev/null; then
10627 lt_cv_prog_compiler__b=yes
10628 fi
10629 else
10630 lt_cv_prog_compiler__b=yes
10631 fi
10632 fi
10633 $RM -r conftest*
10634 LDFLAGS="$save_LDFLAGS"
10635
10636 fi
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10638 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10639
10640 if test x"$lt_cv_prog_compiler__b" = xyes; then
10641 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10642 else
10643 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10644 fi
10645
10646 ;;
10647 esac
10648 fi
10649 if test "$with_gnu_ld" = no; then
10650 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10651 hardcode_libdir_separator=:
10652
10653 case $host_cpu in
10654 hppa*64*|ia64*)
10655 hardcode_direct=no
10656 hardcode_shlibpath_var=no
10657 ;;
10658 *)
10659 hardcode_direct=yes
10660 hardcode_direct_absolute=yes
10661 export_dynamic_flag_spec='${wl}-E'
10662
10663 # hardcode_minus_L: Not really in the search PATH,
10664 # but as the default location of the library.
10665 hardcode_minus_L=yes
10666 ;;
10667 esac
10668 fi
10669 ;;
10670
10671 irix5* | irix6* | nonstopux*)
10672 if test "$GCC" = yes; then
10673 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'
10674 # Try to use the -exported_symbol ld option, if it does not
10675 # work, assume that -exports_file does not work either and
10676 # implicitly export all symbols.
10677 save_LDFLAGS="$LDFLAGS"
10678 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10681 int foo(void) {}
10682 _ACEOF
10683 if ac_fn_c_try_link "$LINENO"; then :
10684 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'
10685
10686 fi
10687 rm -f core conftest.err conftest.$ac_objext \
10688 conftest$ac_exeext conftest.$ac_ext
10689 LDFLAGS="$save_LDFLAGS"
10690 else
10691 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'
10692 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'
10693 fi
10694 archive_cmds_need_lc='no'
10695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10696 hardcode_libdir_separator=:
10697 inherit_rpath=yes
10698 link_all_deplibs=yes
10699 ;;
10700
10701 netbsd*)
10702 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10703 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10704 else
10705 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10706 fi
10707 hardcode_libdir_flag_spec='-R$libdir'
10708 hardcode_direct=yes
10709 hardcode_shlibpath_var=no
10710 ;;
10711
10712 newsos6)
10713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10714 hardcode_direct=yes
10715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10716 hardcode_libdir_separator=:
10717 hardcode_shlibpath_var=no
10718 ;;
10719
10720 *nto* | *qnx*)
10721 ;;
10722
10723 openbsd*)
10724 if test -f /usr/libexec/ld.so; then
10725 hardcode_direct=yes
10726 hardcode_shlibpath_var=no
10727 hardcode_direct_absolute=yes
10728 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10729 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10730 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10731 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10732 export_dynamic_flag_spec='${wl}-E'
10733 else
10734 case $host_os in
10735 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10737 hardcode_libdir_flag_spec='-R$libdir'
10738 ;;
10739 *)
10740 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10741 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10742 ;;
10743 esac
10744 fi
10745 else
10746 ld_shlibs=no
10747 fi
10748 ;;
10749
10750 os2*)
10751 hardcode_libdir_flag_spec='-L$libdir'
10752 hardcode_minus_L=yes
10753 allow_undefined_flag=unsupported
10754 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'
10755 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10756 ;;
10757
10758 osf3*)
10759 if test "$GCC" = yes; then
10760 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10761 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'
10762 else
10763 allow_undefined_flag=' -expect_unresolved \*'
10764 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'
10765 fi
10766 archive_cmds_need_lc='no'
10767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10768 hardcode_libdir_separator=:
10769 ;;
10770
10771 osf4* | osf5*) # as osf3* with the addition of -msym flag
10772 if test "$GCC" = yes; then
10773 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10774 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'
10775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10776 else
10777 allow_undefined_flag=' -expect_unresolved \*'
10778 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'
10779 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~
10780 $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'
10781
10782 # Both c and cxx compiler support -rpath directly
10783 hardcode_libdir_flag_spec='-rpath $libdir'
10784 fi
10785 archive_cmds_need_lc='no'
10786 hardcode_libdir_separator=:
10787 ;;
10788
10789 solaris*)
10790 no_undefined_flag=' -z defs'
10791 if test "$GCC" = yes; then
10792 wlarc='${wl}'
10793 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10794 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10795 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10796 else
10797 case `$CC -V 2>&1` in
10798 *"Compilers 5.0"*)
10799 wlarc=''
10800 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10801 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10802 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10803 ;;
10804 *)
10805 wlarc='${wl}'
10806 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10807 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10808 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10809 ;;
10810 esac
10811 fi
10812 hardcode_libdir_flag_spec='-R$libdir'
10813 hardcode_shlibpath_var=no
10814 case $host_os in
10815 solaris2.[0-5] | solaris2.[0-5].*) ;;
10816 *)
10817 # The compiler driver will combine and reorder linker options,
10818 # but understands `-z linker_flag'. GCC discards it without `$wl',
10819 # but is careful enough not to reorder.
10820 # Supported since Solaris 2.6 (maybe 2.5.1?)
10821 if test "$GCC" = yes; then
10822 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10823 else
10824 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10825 fi
10826 ;;
10827 esac
10828 link_all_deplibs=yes
10829 ;;
10830
10831 sunos4*)
10832 if test "x$host_vendor" = xsequent; then
10833 # Use $CC to link under sequent, because it throws in some extra .o
10834 # files that make .init and .fini sections work.
10835 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10836 else
10837 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10838 fi
10839 hardcode_libdir_flag_spec='-L$libdir'
10840 hardcode_direct=yes
10841 hardcode_minus_L=yes
10842 hardcode_shlibpath_var=no
10843 ;;
10844
10845 sysv4)
10846 case $host_vendor in
10847 sni)
10848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10849 hardcode_direct=yes # is this really true???
10850 ;;
10851 siemens)
10852 ## LD is ld it makes a PLAMLIB
10853 ## CC just makes a GrossModule.
10854 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10855 reload_cmds='$CC -r -o $output$reload_objs'
10856 hardcode_direct=no
10857 ;;
10858 motorola)
10859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10860 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10861 ;;
10862 esac
10863 runpath_var='LD_RUN_PATH'
10864 hardcode_shlibpath_var=no
10865 ;;
10866
10867 sysv4.3*)
10868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10869 hardcode_shlibpath_var=no
10870 export_dynamic_flag_spec='-Bexport'
10871 ;;
10872
10873 sysv4*MP*)
10874 if test -d /usr/nec; then
10875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10876 hardcode_shlibpath_var=no
10877 runpath_var=LD_RUN_PATH
10878 hardcode_runpath_var=yes
10879 ld_shlibs=yes
10880 fi
10881 ;;
10882
10883 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10884 no_undefined_flag='${wl}-z,text'
10885 archive_cmds_need_lc=no
10886 hardcode_shlibpath_var=no
10887 runpath_var='LD_RUN_PATH'
10888
10889 if test "$GCC" = yes; then
10890 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10891 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10892 else
10893 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10894 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10895 fi
10896 ;;
10897
10898 sysv5* | sco3.2v5* | sco5v6*)
10899 # Note: We can NOT use -z defs as we might desire, because we do not
10900 # link with -lc, and that would cause any symbols used from libc to
10901 # always be unresolved, which means just about no library would
10902 # ever link correctly. If we're not using GNU ld we use -z text
10903 # though, which does catch some bad symbols but isn't as heavy-handed
10904 # as -z defs.
10905 no_undefined_flag='${wl}-z,text'
10906 allow_undefined_flag='${wl}-z,nodefs'
10907 archive_cmds_need_lc=no
10908 hardcode_shlibpath_var=no
10909 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10910 hardcode_libdir_separator=':'
10911 link_all_deplibs=yes
10912 export_dynamic_flag_spec='${wl}-Bexport'
10913 runpath_var='LD_RUN_PATH'
10914
10915 if test "$GCC" = yes; then
10916 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10917 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10918 else
10919 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10920 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10921 fi
10922 ;;
10923
10924 uts4*)
10925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10926 hardcode_libdir_flag_spec='-L$libdir'
10927 hardcode_shlibpath_var=no
10928 ;;
10929
10930 *)
10931 ld_shlibs=no
10932 ;;
10933 esac
10934
10935 if test x$host_vendor = xsni; then
10936 case $host in
10937 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10938 export_dynamic_flag_spec='${wl}-Blargedynsym'
10939 ;;
10940 esac
10941 fi
10942 fi
10943
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10945 $as_echo "$ld_shlibs" >&6; }
10946 test "$ld_shlibs" = no && can_build_shared=no
10947
10948 with_gnu_ld=$with_gnu_ld
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964 #
10965 # Do we need to explicitly link libc?
10966 #
10967 case "x$archive_cmds_need_lc" in
10968 x|xyes)
10969 # Assume -lc should be added
10970 archive_cmds_need_lc=yes
10971
10972 if test "$enable_shared" = yes && test "$GCC" = yes; then
10973 case $archive_cmds in
10974 *'~'*)
10975 # FIXME: we may have to deal with multi-command sequences.
10976 ;;
10977 '$CC '*)
10978 # Test whether the compiler implicitly links with -lc since on some
10979 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10980 # to ld, don't add -lc before -lgcc.
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10982 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10983 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10984 $as_echo_n "(cached) " >&6
10985 else
10986 $RM conftest*
10987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10988
10989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10990 (eval $ac_compile) 2>&5
10991 ac_status=$?
10992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10993 test $ac_status = 0; } 2>conftest.err; then
10994 soname=conftest
10995 lib=conftest
10996 libobjs=conftest.$ac_objext
10997 deplibs=
10998 wl=$lt_prog_compiler_wl
10999 pic_flag=$lt_prog_compiler_pic
11000 compiler_flags=-v
11001 linker_flags=-v
11002 verstring=
11003 output_objdir=.
11004 libname=conftest
11005 lt_save_allow_undefined_flag=$allow_undefined_flag
11006 allow_undefined_flag=
11007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11008 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11009 ac_status=$?
11010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11011 test $ac_status = 0; }
11012 then
11013 lt_cv_archive_cmds_need_lc=no
11014 else
11015 lt_cv_archive_cmds_need_lc=yes
11016 fi
11017 allow_undefined_flag=$lt_save_allow_undefined_flag
11018 else
11019 cat conftest.err 1>&5
11020 fi
11021 $RM conftest*
11022
11023 fi
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11025 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11026 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11027 ;;
11028 esac
11029 fi
11030 ;;
11031 esac
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11190 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11191
11192 if test "$GCC" = yes; then
11193 case $host_os in
11194 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11195 *) lt_awk_arg="/^libraries:/" ;;
11196 esac
11197 case $host_os in
11198 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11199 *) lt_sed_strip_eq="s,=/,/,g" ;;
11200 esac
11201 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11202 case $lt_search_path_spec in
11203 *\;*)
11204 # if the path contains ";" then we assume it to be the separator
11205 # otherwise default to the standard path separator (i.e. ":") - it is
11206 # assumed that no part of a normal pathname contains ";" but that should
11207 # okay in the real world where ";" in dirpaths is itself problematic.
11208 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11209 ;;
11210 *)
11211 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11212 ;;
11213 esac
11214 # Ok, now we have the path, separated by spaces, we can step through it
11215 # and add multilib dir if necessary.
11216 lt_tmp_lt_search_path_spec=
11217 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11218 for lt_sys_path in $lt_search_path_spec; do
11219 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11220 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11221 else
11222 test -d "$lt_sys_path" && \
11223 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11224 fi
11225 done
11226 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11227 BEGIN {RS=" "; FS="/|\n";} {
11228 lt_foo="";
11229 lt_count=0;
11230 for (lt_i = NF; lt_i > 0; lt_i--) {
11231 if ($lt_i != "" && $lt_i != ".") {
11232 if ($lt_i == "..") {
11233 lt_count++;
11234 } else {
11235 if (lt_count == 0) {
11236 lt_foo="/" $lt_i lt_foo;
11237 } else {
11238 lt_count--;
11239 }
11240 }
11241 }
11242 }
11243 if (lt_foo != "") { lt_freq[lt_foo]++; }
11244 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11245 }'`
11246 # AWK program above erroneously prepends '/' to C:/dos/paths
11247 # for these hosts.
11248 case $host_os in
11249 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11250 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11251 esac
11252 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11253 else
11254 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11255 fi
11256 library_names_spec=
11257 libname_spec='lib$name'
11258 soname_spec=
11259 shrext_cmds=".so"
11260 postinstall_cmds=
11261 postuninstall_cmds=
11262 finish_cmds=
11263 finish_eval=
11264 shlibpath_var=
11265 shlibpath_overrides_runpath=unknown
11266 version_type=none
11267 dynamic_linker="$host_os ld.so"
11268 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11269 need_lib_prefix=unknown
11270 hardcode_into_libs=no
11271
11272 # when you set need_version to no, make sure it does not cause -set_version
11273 # flags to be left without arguments
11274 need_version=unknown
11275
11276 case $host_os in
11277 aix3*)
11278 version_type=linux
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11280 shlibpath_var=LIBPATH
11281
11282 # AIX 3 has no versioning support, so we append a major version to the name.
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 ;;
11285
11286 aix[4-9]*)
11287 version_type=linux
11288 need_lib_prefix=no
11289 need_version=no
11290 hardcode_into_libs=yes
11291 if test "$host_cpu" = ia64; then
11292 # AIX 5 supports IA64
11293 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11294 shlibpath_var=LD_LIBRARY_PATH
11295 else
11296 # With GCC up to 2.95.x, collect2 would create an import file
11297 # for dependence libraries. The import file would start with
11298 # the line `#! .'. This would cause the generated library to
11299 # depend on `.', always an invalid library. This was fixed in
11300 # development snapshots of GCC prior to 3.0.
11301 case $host_os in
11302 aix4 | aix4.[01] | aix4.[01].*)
11303 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11304 echo ' yes '
11305 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11306 :
11307 else
11308 can_build_shared=no
11309 fi
11310 ;;
11311 esac
11312 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11313 # soname into executable. Probably we can add versioning support to
11314 # collect2, so additional links can be useful in future.
11315 if test "$aix_use_runtimelinking" = yes; then
11316 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11317 # instead of lib<name>.a to let people know that these are not
11318 # typical AIX shared libraries.
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320 else
11321 # We preserve .a as extension for shared libraries through AIX4.2
11322 # and later when we are not doing run time linking.
11323 library_names_spec='${libname}${release}.a $libname.a'
11324 soname_spec='${libname}${release}${shared_ext}$major'
11325 fi
11326 shlibpath_var=LIBPATH
11327 fi
11328 ;;
11329
11330 amigaos*)
11331 case $host_cpu in
11332 powerpc)
11333 # Since July 2007 AmigaOS4 officially supports .so libraries.
11334 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11336 ;;
11337 m68k)
11338 library_names_spec='$libname.ixlibrary $libname.a'
11339 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11340 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'
11341 ;;
11342 esac
11343 ;;
11344
11345 beos*)
11346 library_names_spec='${libname}${shared_ext}'
11347 dynamic_linker="$host_os ld.so"
11348 shlibpath_var=LIBRARY_PATH
11349 ;;
11350
11351 bsdi[45]*)
11352 version_type=linux
11353 need_version=no
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 soname_spec='${libname}${release}${shared_ext}$major'
11356 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11357 shlibpath_var=LD_LIBRARY_PATH
11358 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11359 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11360 # the default ld.so.conf also contains /usr/contrib/lib and
11361 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11362 # libtool to hard-code these into programs
11363 ;;
11364
11365 cygwin* | mingw* | pw32* | cegcc*)
11366 version_type=windows
11367 shrext_cmds=".dll"
11368 need_version=no
11369 need_lib_prefix=no
11370
11371 case $GCC,$host_os in
11372 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11373 library_names_spec='$libname.dll.a'
11374 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11375 postinstall_cmds='base_file=`basename \${file}`~
11376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11377 dldir=$destdir/`dirname \$dlpath`~
11378 test -d \$dldir || mkdir -p \$dldir~
11379 $install_prog $dir/$dlname \$dldir/$dlname~
11380 chmod a+x \$dldir/$dlname~
11381 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11382 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11383 fi'
11384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11385 dlpath=$dir/\$dldll~
11386 $RM \$dlpath'
11387 shlibpath_overrides_runpath=yes
11388
11389 case $host_os in
11390 cygwin*)
11391 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11392 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11393
11394 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11395 ;;
11396 mingw* | cegcc*)
11397 # MinGW DLLs use traditional 'lib' prefix
11398 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11399 ;;
11400 pw32*)
11401 # pw32 DLLs use 'pw' prefix rather than 'lib'
11402 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11403 ;;
11404 esac
11405 ;;
11406
11407 *)
11408 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11409 ;;
11410 esac
11411 dynamic_linker='Win32 ld.exe'
11412 # FIXME: first we should search . and the directory the executable is in
11413 shlibpath_var=PATH
11414 ;;
11415
11416 darwin* | rhapsody*)
11417 dynamic_linker="$host_os dyld"
11418 version_type=darwin
11419 need_lib_prefix=no
11420 need_version=no
11421 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11422 soname_spec='${libname}${release}${major}$shared_ext'
11423 shlibpath_overrides_runpath=yes
11424 shlibpath_var=DYLD_LIBRARY_PATH
11425 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11426
11427 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11428 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11429 ;;
11430
11431 dgux*)
11432 version_type=linux
11433 need_lib_prefix=no
11434 need_version=no
11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11436 soname_spec='${libname}${release}${shared_ext}$major'
11437 shlibpath_var=LD_LIBRARY_PATH
11438 ;;
11439
11440 freebsd* | dragonfly*)
11441 # DragonFly does not have aout. When/if they implement a new
11442 # versioning mechanism, adjust this.
11443 if test -x /usr/bin/objformat; then
11444 objformat=`/usr/bin/objformat`
11445 else
11446 case $host_os in
11447 freebsd[23].*) objformat=aout ;;
11448 *) objformat=elf ;;
11449 esac
11450 fi
11451 version_type=freebsd-$objformat
11452 case $version_type in
11453 freebsd-elf*)
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11455 need_version=no
11456 need_lib_prefix=no
11457 ;;
11458 freebsd-*)
11459 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11460 need_version=yes
11461 ;;
11462 esac
11463 shlibpath_var=LD_LIBRARY_PATH
11464 case $host_os in
11465 freebsd2.*)
11466 shlibpath_overrides_runpath=yes
11467 ;;
11468 freebsd3.[01]* | freebsdelf3.[01]*)
11469 shlibpath_overrides_runpath=yes
11470 hardcode_into_libs=yes
11471 ;;
11472 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11473 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11474 shlibpath_overrides_runpath=no
11475 hardcode_into_libs=yes
11476 ;;
11477 *) # from 4.6 on, and DragonFly
11478 shlibpath_overrides_runpath=yes
11479 hardcode_into_libs=yes
11480 ;;
11481 esac
11482 ;;
11483
11484 haiku*)
11485 version_type=linux
11486 need_lib_prefix=no
11487 need_version=no
11488 dynamic_linker="$host_os runtime_loader"
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11490 soname_spec='${libname}${release}${shared_ext}$major'
11491 shlibpath_var=LIBRARY_PATH
11492 shlibpath_overrides_runpath=yes
11493 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11494 hardcode_into_libs=yes
11495 ;;
11496
11497 hpux9* | hpux10* | hpux11*)
11498 # Give a soname corresponding to the major version so that dld.sl refuses to
11499 # link against other versions.
11500 version_type=sunos
11501 need_lib_prefix=no
11502 need_version=no
11503 case $host_cpu in
11504 ia64*)
11505 shrext_cmds='.so'
11506 hardcode_into_libs=yes
11507 dynamic_linker="$host_os dld.so"
11508 shlibpath_var=LD_LIBRARY_PATH
11509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511 soname_spec='${libname}${release}${shared_ext}$major'
11512 if test "X$HPUX_IA64_MODE" = X32; then
11513 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11514 else
11515 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11516 fi
11517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11518 ;;
11519 hppa*64*)
11520 shrext_cmds='.sl'
11521 hardcode_into_libs=yes
11522 dynamic_linker="$host_os dld.sl"
11523 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11526 soname_spec='${libname}${release}${shared_ext}$major'
11527 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11529 ;;
11530 *)
11531 shrext_cmds='.sl'
11532 dynamic_linker="$host_os dld.sl"
11533 shlibpath_var=SHLIB_PATH
11534 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11536 soname_spec='${libname}${release}${shared_ext}$major'
11537 ;;
11538 esac
11539 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11540 postinstall_cmds='chmod 555 $lib'
11541 # or fails outright, so override atomically:
11542 install_override_mode=555
11543 ;;
11544
11545 interix[3-9]*)
11546 version_type=linux
11547 need_lib_prefix=no
11548 need_version=no
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11550 soname_spec='${libname}${release}${shared_ext}$major'
11551 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11552 shlibpath_var=LD_LIBRARY_PATH
11553 shlibpath_overrides_runpath=no
11554 hardcode_into_libs=yes
11555 ;;
11556
11557 irix5* | irix6* | nonstopux*)
11558 case $host_os in
11559 nonstopux*) version_type=nonstopux ;;
11560 *)
11561 if test "$lt_cv_prog_gnu_ld" = yes; then
11562 version_type=linux
11563 else
11564 version_type=irix
11565 fi ;;
11566 esac
11567 need_lib_prefix=no
11568 need_version=no
11569 soname_spec='${libname}${release}${shared_ext}$major'
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11571 case $host_os in
11572 irix5* | nonstopux*)
11573 libsuff= shlibsuff=
11574 ;;
11575 *)
11576 case $LD in # libtool.m4 will add one of these switches to LD
11577 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11578 libsuff= shlibsuff= libmagic=32-bit;;
11579 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11580 libsuff=32 shlibsuff=N32 libmagic=N32;;
11581 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11582 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11583 *) libsuff= shlibsuff= libmagic=never-match;;
11584 esac
11585 ;;
11586 esac
11587 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11588 shlibpath_overrides_runpath=no
11589 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11590 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11591 hardcode_into_libs=yes
11592 ;;
11593
11594 # No shared lib support for Linux oldld, aout, or coff.
11595 linux*oldld* | linux*aout* | linux*coff*)
11596 dynamic_linker=no
11597 ;;
11598
11599 # This must be Linux ELF.
11600 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11601 version_type=linux
11602 need_lib_prefix=no
11603 need_version=no
11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605 soname_spec='${libname}${release}${shared_ext}$major'
11606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11607 shlibpath_var=LD_LIBRARY_PATH
11608 shlibpath_overrides_runpath=no
11609
11610 # Some binutils ld are patched to set DT_RUNPATH
11611 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11612 $as_echo_n "(cached) " >&6
11613 else
11614 lt_cv_shlibpath_overrides_runpath=no
11615 save_LDFLAGS=$LDFLAGS
11616 save_libdir=$libdir
11617 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11618 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620 /* end confdefs.h. */
11621
11622 int
11623 main ()
11624 {
11625
11626 ;
11627 return 0;
11628 }
11629 _ACEOF
11630 if ac_fn_c_try_link "$LINENO"; then :
11631 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11632 lt_cv_shlibpath_overrides_runpath=yes
11633 fi
11634 fi
11635 rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
11637 LDFLAGS=$save_LDFLAGS
11638 libdir=$save_libdir
11639
11640 fi
11641
11642 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11643
11644 # This implies no fast_install, which is unacceptable.
11645 # Some rework will be needed to allow for fast_install
11646 # before this can be enabled.
11647 hardcode_into_libs=yes
11648
11649 # Append ld.so.conf contents to the search path
11650 if test -f /etc/ld.so.conf; then
11651 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' ' '`
11652 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11653 fi
11654
11655 # We used to test for /lib/ld.so.1 and disable shared libraries on
11656 # powerpc, because MkLinux only supported shared libraries with the
11657 # GNU dynamic linker. Since this was broken with cross compilers,
11658 # most powerpc-linux boxes support dynamic linking these days and
11659 # people can always --disable-shared, the test was removed, and we
11660 # assume the GNU/Linux dynamic linker is in use.
11661 dynamic_linker='GNU/Linux ld.so'
11662 ;;
11663
11664 netbsd*)
11665 version_type=sunos
11666 need_lib_prefix=no
11667 need_version=no
11668 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11671 dynamic_linker='NetBSD (a.out) ld.so'
11672 else
11673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11674 soname_spec='${libname}${release}${shared_ext}$major'
11675 dynamic_linker='NetBSD ld.elf_so'
11676 fi
11677 shlibpath_var=LD_LIBRARY_PATH
11678 shlibpath_overrides_runpath=yes
11679 hardcode_into_libs=yes
11680 ;;
11681
11682 newsos6)
11683 version_type=linux
11684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11685 shlibpath_var=LD_LIBRARY_PATH
11686 shlibpath_overrides_runpath=yes
11687 ;;
11688
11689 *nto* | *qnx*)
11690 version_type=qnx
11691 need_lib_prefix=no
11692 need_version=no
11693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11694 soname_spec='${libname}${release}${shared_ext}$major'
11695 shlibpath_var=LD_LIBRARY_PATH
11696 shlibpath_overrides_runpath=no
11697 hardcode_into_libs=yes
11698 dynamic_linker='ldqnx.so'
11699 ;;
11700
11701 openbsd*)
11702 version_type=sunos
11703 sys_lib_dlsearch_path_spec="/usr/lib"
11704 need_lib_prefix=no
11705 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11706 case $host_os in
11707 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11708 *) need_version=no ;;
11709 esac
11710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11712 shlibpath_var=LD_LIBRARY_PATH
11713 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11714 case $host_os in
11715 openbsd2.[89] | openbsd2.[89].*)
11716 shlibpath_overrides_runpath=no
11717 ;;
11718 *)
11719 shlibpath_overrides_runpath=yes
11720 ;;
11721 esac
11722 else
11723 shlibpath_overrides_runpath=yes
11724 fi
11725 ;;
11726
11727 os2*)
11728 libname_spec='$name'
11729 shrext_cmds=".dll"
11730 need_lib_prefix=no
11731 library_names_spec='$libname${shared_ext} $libname.a'
11732 dynamic_linker='OS/2 ld.exe'
11733 shlibpath_var=LIBPATH
11734 ;;
11735
11736 osf3* | osf4* | osf5*)
11737 version_type=osf
11738 need_lib_prefix=no
11739 need_version=no
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11742 shlibpath_var=LD_LIBRARY_PATH
11743 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11744 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11745 ;;
11746
11747 rdos*)
11748 dynamic_linker=no
11749 ;;
11750
11751 solaris*)
11752 version_type=linux
11753 need_lib_prefix=no
11754 need_version=no
11755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11756 soname_spec='${libname}${release}${shared_ext}$major'
11757 shlibpath_var=LD_LIBRARY_PATH
11758 shlibpath_overrides_runpath=yes
11759 hardcode_into_libs=yes
11760 # ldd complains unless libraries are executable
11761 postinstall_cmds='chmod +x $lib'
11762 ;;
11763
11764 sunos4*)
11765 version_type=sunos
11766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11767 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11768 shlibpath_var=LD_LIBRARY_PATH
11769 shlibpath_overrides_runpath=yes
11770 if test "$with_gnu_ld" = yes; then
11771 need_lib_prefix=no
11772 fi
11773 need_version=yes
11774 ;;
11775
11776 sysv4 | sysv4.3*)
11777 version_type=linux
11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11779 soname_spec='${libname}${release}${shared_ext}$major'
11780 shlibpath_var=LD_LIBRARY_PATH
11781 case $host_vendor in
11782 sni)
11783 shlibpath_overrides_runpath=no
11784 need_lib_prefix=no
11785 runpath_var=LD_RUN_PATH
11786 ;;
11787 siemens)
11788 need_lib_prefix=no
11789 ;;
11790 motorola)
11791 need_lib_prefix=no
11792 need_version=no
11793 shlibpath_overrides_runpath=no
11794 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11795 ;;
11796 esac
11797 ;;
11798
11799 sysv4*MP*)
11800 if test -d /usr/nec ;then
11801 version_type=linux
11802 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11803 soname_spec='$libname${shared_ext}.$major'
11804 shlibpath_var=LD_LIBRARY_PATH
11805 fi
11806 ;;
11807
11808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11809 version_type=freebsd-elf
11810 need_lib_prefix=no
11811 need_version=no
11812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11813 soname_spec='${libname}${release}${shared_ext}$major'
11814 shlibpath_var=LD_LIBRARY_PATH
11815 shlibpath_overrides_runpath=yes
11816 hardcode_into_libs=yes
11817 if test "$with_gnu_ld" = yes; then
11818 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11819 else
11820 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11821 case $host_os in
11822 sco3.2v5*)
11823 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11824 ;;
11825 esac
11826 fi
11827 sys_lib_dlsearch_path_spec='/usr/lib'
11828 ;;
11829
11830 tpf*)
11831 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11832 version_type=linux
11833 need_lib_prefix=no
11834 need_version=no
11835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11836 shlibpath_var=LD_LIBRARY_PATH
11837 shlibpath_overrides_runpath=no
11838 hardcode_into_libs=yes
11839 ;;
11840
11841 uts4*)
11842 version_type=linux
11843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11844 soname_spec='${libname}${release}${shared_ext}$major'
11845 shlibpath_var=LD_LIBRARY_PATH
11846 ;;
11847
11848 *)
11849 dynamic_linker=no
11850 ;;
11851 esac
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11853 $as_echo "$dynamic_linker" >&6; }
11854 test "$dynamic_linker" = no && can_build_shared=no
11855
11856 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11857 if test "$GCC" = yes; then
11858 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11859 fi
11860
11861 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11862 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11863 fi
11864 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11865 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11866 fi
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11960 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11961 hardcode_action=
11962 if test -n "$hardcode_libdir_flag_spec" ||
11963 test -n "$runpath_var" ||
11964 test "X$hardcode_automatic" = "Xyes" ; then
11965
11966 # We can hardcode non-existent directories.
11967 if test "$hardcode_direct" != no &&
11968 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11969 # have to relink, otherwise we might link with an installed library
11970 # when we should be linking with a yet-to-be-installed one
11971 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11972 test "$hardcode_minus_L" != no; then
11973 # Linking always hardcodes the temporary library directory.
11974 hardcode_action=relink
11975 else
11976 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11977 hardcode_action=immediate
11978 fi
11979 else
11980 # We cannot hardcode anything, or else we can only hardcode existing
11981 # directories.
11982 hardcode_action=unsupported
11983 fi
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11985 $as_echo "$hardcode_action" >&6; }
11986
11987 if test "$hardcode_action" = relink ||
11988 test "$inherit_rpath" = yes; then
11989 # Fast installation is not supported
11990 enable_fast_install=no
11991 elif test "$shlibpath_overrides_runpath" = yes ||
11992 test "$enable_shared" = no; then
11993 # Fast installation is not necessary
11994 enable_fast_install=needless
11995 fi
11996
11997
11998
11999
12000
12001
12002 if test "x$enable_dlopen" != xyes; then
12003 enable_dlopen=unknown
12004 enable_dlopen_self=unknown
12005 enable_dlopen_self_static=unknown
12006 else
12007 lt_cv_dlopen=no
12008 lt_cv_dlopen_libs=
12009
12010 case $host_os in
12011 beos*)
12012 lt_cv_dlopen="load_add_on"
12013 lt_cv_dlopen_libs=
12014 lt_cv_dlopen_self=yes
12015 ;;
12016
12017 mingw* | pw32* | cegcc*)
12018 lt_cv_dlopen="LoadLibrary"
12019 lt_cv_dlopen_libs=
12020 ;;
12021
12022 cygwin*)
12023 lt_cv_dlopen="dlopen"
12024 lt_cv_dlopen_libs=
12025 ;;
12026
12027 darwin*)
12028 # if libdl is installed we need to link against it
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12030 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12031 if ${ac_cv_lib_dl_dlopen+:} false; then :
12032 $as_echo_n "(cached) " >&6
12033 else
12034 ac_check_lib_save_LIBS=$LIBS
12035 LIBS="-ldl $LIBS"
12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h. */
12038
12039 /* Override any GCC internal prototype to avoid an error.
12040 Use char because int might match the return type of a GCC
12041 builtin and then its argument prototype would still apply. */
12042 #ifdef __cplusplus
12043 extern "C"
12044 #endif
12045 char dlopen ();
12046 int
12047 main ()
12048 {
12049 return dlopen ();
12050 ;
12051 return 0;
12052 }
12053 _ACEOF
12054 if ac_fn_c_try_link "$LINENO"; then :
12055 ac_cv_lib_dl_dlopen=yes
12056 else
12057 ac_cv_lib_dl_dlopen=no
12058 fi
12059 rm -f core conftest.err conftest.$ac_objext \
12060 conftest$ac_exeext conftest.$ac_ext
12061 LIBS=$ac_check_lib_save_LIBS
12062 fi
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12064 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12065 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12066 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12067 else
12068
12069 lt_cv_dlopen="dyld"
12070 lt_cv_dlopen_libs=
12071 lt_cv_dlopen_self=yes
12072
12073 fi
12074
12075 ;;
12076
12077 *)
12078 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12079 if test "x$ac_cv_func_shl_load" = xyes; then :
12080 lt_cv_dlopen="shl_load"
12081 else
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12083 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12084 if ${ac_cv_lib_dld_shl_load+:} false; then :
12085 $as_echo_n "(cached) " >&6
12086 else
12087 ac_check_lib_save_LIBS=$LIBS
12088 LIBS="-ldld $LIBS"
12089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12090 /* end confdefs.h. */
12091
12092 /* Override any GCC internal prototype to avoid an error.
12093 Use char because int might match the return type of a GCC
12094 builtin and then its argument prototype would still apply. */
12095 #ifdef __cplusplus
12096 extern "C"
12097 #endif
12098 char shl_load ();
12099 int
12100 main ()
12101 {
12102 return shl_load ();
12103 ;
12104 return 0;
12105 }
12106 _ACEOF
12107 if ac_fn_c_try_link "$LINENO"; then :
12108 ac_cv_lib_dld_shl_load=yes
12109 else
12110 ac_cv_lib_dld_shl_load=no
12111 fi
12112 rm -f core conftest.err conftest.$ac_objext \
12113 conftest$ac_exeext conftest.$ac_ext
12114 LIBS=$ac_check_lib_save_LIBS
12115 fi
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12117 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12118 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12119 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12120 else
12121 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12122 if test "x$ac_cv_func_dlopen" = xyes; then :
12123 lt_cv_dlopen="dlopen"
12124 else
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12126 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12127 if ${ac_cv_lib_dl_dlopen+:} false; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 ac_check_lib_save_LIBS=$LIBS
12131 LIBS="-ldl $LIBS"
12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h. */
12134
12135 /* Override any GCC internal prototype to avoid an error.
12136 Use char because int might match the return type of a GCC
12137 builtin and then its argument prototype would still apply. */
12138 #ifdef __cplusplus
12139 extern "C"
12140 #endif
12141 char dlopen ();
12142 int
12143 main ()
12144 {
12145 return dlopen ();
12146 ;
12147 return 0;
12148 }
12149 _ACEOF
12150 if ac_fn_c_try_link "$LINENO"; then :
12151 ac_cv_lib_dl_dlopen=yes
12152 else
12153 ac_cv_lib_dl_dlopen=no
12154 fi
12155 rm -f core conftest.err conftest.$ac_objext \
12156 conftest$ac_exeext conftest.$ac_ext
12157 LIBS=$ac_check_lib_save_LIBS
12158 fi
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12160 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12161 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12163 else
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12165 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12166 if ${ac_cv_lib_svld_dlopen+:} false; then :
12167 $as_echo_n "(cached) " >&6
12168 else
12169 ac_check_lib_save_LIBS=$LIBS
12170 LIBS="-lsvld $LIBS"
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12173
12174 /* Override any GCC internal prototype to avoid an error.
12175 Use char because int might match the return type of a GCC
12176 builtin and then its argument prototype would still apply. */
12177 #ifdef __cplusplus
12178 extern "C"
12179 #endif
12180 char dlopen ();
12181 int
12182 main ()
12183 {
12184 return dlopen ();
12185 ;
12186 return 0;
12187 }
12188 _ACEOF
12189 if ac_fn_c_try_link "$LINENO"; then :
12190 ac_cv_lib_svld_dlopen=yes
12191 else
12192 ac_cv_lib_svld_dlopen=no
12193 fi
12194 rm -f core conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12197 fi
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12199 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12200 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12201 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12202 else
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12204 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12205 if ${ac_cv_lib_dld_dld_link+:} false; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 ac_check_lib_save_LIBS=$LIBS
12209 LIBS="-ldld $LIBS"
12210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12211 /* end confdefs.h. */
12212
12213 /* Override any GCC internal prototype to avoid an error.
12214 Use char because int might match the return type of a GCC
12215 builtin and then its argument prototype would still apply. */
12216 #ifdef __cplusplus
12217 extern "C"
12218 #endif
12219 char dld_link ();
12220 int
12221 main ()
12222 {
12223 return dld_link ();
12224 ;
12225 return 0;
12226 }
12227 _ACEOF
12228 if ac_fn_c_try_link "$LINENO"; then :
12229 ac_cv_lib_dld_dld_link=yes
12230 else
12231 ac_cv_lib_dld_dld_link=no
12232 fi
12233 rm -f core conftest.err conftest.$ac_objext \
12234 conftest$ac_exeext conftest.$ac_ext
12235 LIBS=$ac_check_lib_save_LIBS
12236 fi
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12238 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12239 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12240 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12241 fi
12242
12243
12244 fi
12245
12246
12247 fi
12248
12249
12250 fi
12251
12252
12253 fi
12254
12255
12256 fi
12257
12258 ;;
12259 esac
12260
12261 if test "x$lt_cv_dlopen" != xno; then
12262 enable_dlopen=yes
12263 else
12264 enable_dlopen=no
12265 fi
12266
12267 case $lt_cv_dlopen in
12268 dlopen)
12269 save_CPPFLAGS="$CPPFLAGS"
12270 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12271
12272 save_LDFLAGS="$LDFLAGS"
12273 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12274
12275 save_LIBS="$LIBS"
12276 LIBS="$lt_cv_dlopen_libs $LIBS"
12277
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12279 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12280 if ${lt_cv_dlopen_self+:} false; then :
12281 $as_echo_n "(cached) " >&6
12282 else
12283 if test "$cross_compiling" = yes; then :
12284 lt_cv_dlopen_self=cross
12285 else
12286 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12287 lt_status=$lt_dlunknown
12288 cat > conftest.$ac_ext <<_LT_EOF
12289 #line 12289 "configure"
12290 #include "confdefs.h"
12291
12292 #if HAVE_DLFCN_H
12293 #include <dlfcn.h>
12294 #endif
12295
12296 #include <stdio.h>
12297
12298 #ifdef RTLD_GLOBAL
12299 # define LT_DLGLOBAL RTLD_GLOBAL
12300 #else
12301 # ifdef DL_GLOBAL
12302 # define LT_DLGLOBAL DL_GLOBAL
12303 # else
12304 # define LT_DLGLOBAL 0
12305 # endif
12306 #endif
12307
12308 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12309 find out it does not work in some platform. */
12310 #ifndef LT_DLLAZY_OR_NOW
12311 # ifdef RTLD_LAZY
12312 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12313 # else
12314 # ifdef DL_LAZY
12315 # define LT_DLLAZY_OR_NOW DL_LAZY
12316 # else
12317 # ifdef RTLD_NOW
12318 # define LT_DLLAZY_OR_NOW RTLD_NOW
12319 # else
12320 # ifdef DL_NOW
12321 # define LT_DLLAZY_OR_NOW DL_NOW
12322 # else
12323 # define LT_DLLAZY_OR_NOW 0
12324 # endif
12325 # endif
12326 # endif
12327 # endif
12328 #endif
12329
12330 /* When -fvisbility=hidden is used, assume the code has been annotated
12331 correspondingly for the symbols needed. */
12332 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12333 void fnord () __attribute__((visibility("default")));
12334 #endif
12335
12336 void fnord () { int i=42; }
12337 int main ()
12338 {
12339 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12340 int status = $lt_dlunknown;
12341
12342 if (self)
12343 {
12344 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12345 else
12346 {
12347 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12348 else puts (dlerror ());
12349 }
12350 /* dlclose (self); */
12351 }
12352 else
12353 puts (dlerror ());
12354
12355 return status;
12356 }
12357 _LT_EOF
12358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12359 (eval $ac_link) 2>&5
12360 ac_status=$?
12361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12362 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12363 (./conftest; exit; ) >&5 2>/dev/null
12364 lt_status=$?
12365 case x$lt_status in
12366 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12367 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12368 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12369 esac
12370 else :
12371 # compilation failed
12372 lt_cv_dlopen_self=no
12373 fi
12374 fi
12375 rm -fr conftest*
12376
12377
12378 fi
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12380 $as_echo "$lt_cv_dlopen_self" >&6; }
12381
12382 if test "x$lt_cv_dlopen_self" = xyes; then
12383 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12385 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12386 if ${lt_cv_dlopen_self_static+:} false; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389 if test "$cross_compiling" = yes; then :
12390 lt_cv_dlopen_self_static=cross
12391 else
12392 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12393 lt_status=$lt_dlunknown
12394 cat > conftest.$ac_ext <<_LT_EOF
12395 #line 12395 "configure"
12396 #include "confdefs.h"
12397
12398 #if HAVE_DLFCN_H
12399 #include <dlfcn.h>
12400 #endif
12401
12402 #include <stdio.h>
12403
12404 #ifdef RTLD_GLOBAL
12405 # define LT_DLGLOBAL RTLD_GLOBAL
12406 #else
12407 # ifdef DL_GLOBAL
12408 # define LT_DLGLOBAL DL_GLOBAL
12409 # else
12410 # define LT_DLGLOBAL 0
12411 # endif
12412 #endif
12413
12414 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12415 find out it does not work in some platform. */
12416 #ifndef LT_DLLAZY_OR_NOW
12417 # ifdef RTLD_LAZY
12418 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12419 # else
12420 # ifdef DL_LAZY
12421 # define LT_DLLAZY_OR_NOW DL_LAZY
12422 # else
12423 # ifdef RTLD_NOW
12424 # define LT_DLLAZY_OR_NOW RTLD_NOW
12425 # else
12426 # ifdef DL_NOW
12427 # define LT_DLLAZY_OR_NOW DL_NOW
12428 # else
12429 # define LT_DLLAZY_OR_NOW 0
12430 # endif
12431 # endif
12432 # endif
12433 # endif
12434 #endif
12435
12436 /* When -fvisbility=hidden is used, assume the code has been annotated
12437 correspondingly for the symbols needed. */
12438 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12439 void fnord () __attribute__((visibility("default")));
12440 #endif
12441
12442 void fnord () { int i=42; }
12443 int main ()
12444 {
12445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12446 int status = $lt_dlunknown;
12447
12448 if (self)
12449 {
12450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12451 else
12452 {
12453 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12454 else puts (dlerror ());
12455 }
12456 /* dlclose (self); */
12457 }
12458 else
12459 puts (dlerror ());
12460
12461 return status;
12462 }
12463 _LT_EOF
12464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12465 (eval $ac_link) 2>&5
12466 ac_status=$?
12467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12468 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12469 (./conftest; exit; ) >&5 2>/dev/null
12470 lt_status=$?
12471 case x$lt_status in
12472 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12473 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12474 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12475 esac
12476 else :
12477 # compilation failed
12478 lt_cv_dlopen_self_static=no
12479 fi
12480 fi
12481 rm -fr conftest*
12482
12483
12484 fi
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12486 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12487 fi
12488
12489 CPPFLAGS="$save_CPPFLAGS"
12490 LDFLAGS="$save_LDFLAGS"
12491 LIBS="$save_LIBS"
12492 ;;
12493 esac
12494
12495 case $lt_cv_dlopen_self in
12496 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12497 *) enable_dlopen_self=unknown ;;
12498 esac
12499
12500 case $lt_cv_dlopen_self_static in
12501 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12502 *) enable_dlopen_self_static=unknown ;;
12503 esac
12504 fi
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522 striplib=
12523 old_striplib=
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12525 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12526 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12527 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12528 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12530 $as_echo "yes" >&6; }
12531 else
12532 # FIXME - insert some real tests, host_os isn't really good enough
12533 case $host_os in
12534 darwin*)
12535 if test -n "$STRIP" ; then
12536 striplib="$STRIP -x"
12537 old_striplib="$STRIP -S"
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12539 $as_echo "yes" >&6; }
12540 else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12543 fi
12544 ;;
12545 *)
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547 $as_echo "no" >&6; }
12548 ;;
12549 esac
12550 fi
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563 # Report which library types will actually be built
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12565 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12567 $as_echo "$can_build_shared" >&6; }
12568
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12570 $as_echo_n "checking whether to build shared libraries... " >&6; }
12571 test "$can_build_shared" = "no" && enable_shared=no
12572
12573 # On AIX, shared libraries and static libraries use the same namespace, and
12574 # are all built from PIC.
12575 case $host_os in
12576 aix3*)
12577 test "$enable_shared" = yes && enable_static=no
12578 if test -n "$RANLIB"; then
12579 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12580 postinstall_cmds='$RANLIB $lib'
12581 fi
12582 ;;
12583
12584 aix[4-9]*)
12585 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12586 test "$enable_shared" = yes && enable_static=no
12587 fi
12588 ;;
12589 esac
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12591 $as_echo "$enable_shared" >&6; }
12592
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12594 $as_echo_n "checking whether to build static libraries... " >&6; }
12595 # Make sure either enable_shared or enable_static is yes.
12596 test "$enable_shared" = yes || enable_static=yes
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12598 $as_echo "$enable_static" >&6; }
12599
12600
12601
12602
12603 fi
12604 ac_ext=c
12605 ac_cpp='$CPP $CPPFLAGS'
12606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12609
12610 CC="$lt_save_CC"
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624 ac_config_commands="$ac_config_commands libtool"
12625
12626
12627
12628
12629 # Only expand once:
12630
12631
12632
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
12634 $as_echo_n "checking for library containing bind... " >&6; }
12635 if ${ac_cv_search_bind+:} false; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 ac_func_search_save_LIBS=$LIBS
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12641
12642 /* Override any GCC internal prototype to avoid an error.
12643 Use char because int might match the return type of a GCC
12644 builtin and then its argument prototype would still apply. */
12645 #ifdef __cplusplus
12646 extern "C"
12647 #endif
12648 char bind ();
12649 int
12650 main ()
12651 {
12652 return bind ();
12653 ;
12654 return 0;
12655 }
12656 _ACEOF
12657 for ac_lib in '' socket; do
12658 if test -z "$ac_lib"; then
12659 ac_res="none required"
12660 else
12661 ac_res=-l$ac_lib
12662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12663 fi
12664 if ac_fn_c_try_link "$LINENO"; then :
12665 ac_cv_search_bind=$ac_res
12666 fi
12667 rm -f core conftest.err conftest.$ac_objext \
12668 conftest$ac_exeext
12669 if ${ac_cv_search_bind+:} false; then :
12670 break
12671 fi
12672 done
12673 if ${ac_cv_search_bind+:} false; then :
12674
12675 else
12676 ac_cv_search_bind=no
12677 fi
12678 rm conftest.$ac_ext
12679 LIBS=$ac_func_search_save_LIBS
12680 fi
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
12682 $as_echo "$ac_cv_search_bind" >&6; }
12683 ac_res=$ac_cv_search_bind
12684 if test "$ac_res" != no; then :
12685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12686
12687 fi
12688
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12690 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12691 if ${ac_cv_search_gethostbyname+:} false; then :
12692 $as_echo_n "(cached) " >&6
12693 else
12694 ac_func_search_save_LIBS=$LIBS
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12697
12698 /* Override any GCC internal prototype to avoid an error.
12699 Use char because int might match the return type of a GCC
12700 builtin and then its argument prototype would still apply. */
12701 #ifdef __cplusplus
12702 extern "C"
12703 #endif
12704 char gethostbyname ();
12705 int
12706 main ()
12707 {
12708 return gethostbyname ();
12709 ;
12710 return 0;
12711 }
12712 _ACEOF
12713 for ac_lib in '' nsl; do
12714 if test -z "$ac_lib"; then
12715 ac_res="none required"
12716 else
12717 ac_res=-l$ac_lib
12718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12719 fi
12720 if ac_fn_c_try_link "$LINENO"; then :
12721 ac_cv_search_gethostbyname=$ac_res
12722 fi
12723 rm -f core conftest.err conftest.$ac_objext \
12724 conftest$ac_exeext
12725 if ${ac_cv_search_gethostbyname+:} false; then :
12726 break
12727 fi
12728 done
12729 if ${ac_cv_search_gethostbyname+:} false; then :
12730
12731 else
12732 ac_cv_search_gethostbyname=no
12733 fi
12734 rm conftest.$ac_ext
12735 LIBS=$ac_func_search_save_LIBS
12736 fi
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12738 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12739 ac_res=$ac_cv_search_gethostbyname
12740 if test "$ac_res" != no; then :
12741 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12742
12743 fi
12744
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
12746 $as_echo_n "checking for library containing fabs... " >&6; }
12747 if ${ac_cv_search_fabs+:} false; then :
12748 $as_echo_n "(cached) " >&6
12749 else
12750 ac_func_search_save_LIBS=$LIBS
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12753
12754 /* Override any GCC internal prototype to avoid an error.
12755 Use char because int might match the return type of a GCC
12756 builtin and then its argument prototype would still apply. */
12757 #ifdef __cplusplus
12758 extern "C"
12759 #endif
12760 char fabs ();
12761 int
12762 main ()
12763 {
12764 return fabs ();
12765 ;
12766 return 0;
12767 }
12768 _ACEOF
12769 for ac_lib in '' m; do
12770 if test -z "$ac_lib"; then
12771 ac_res="none required"
12772 else
12773 ac_res=-l$ac_lib
12774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12775 fi
12776 if ac_fn_c_try_link "$LINENO"; then :
12777 ac_cv_search_fabs=$ac_res
12778 fi
12779 rm -f core conftest.err conftest.$ac_objext \
12780 conftest$ac_exeext
12781 if ${ac_cv_search_fabs+:} false; then :
12782 break
12783 fi
12784 done
12785 if ${ac_cv_search_fabs+:} false; then :
12786
12787 else
12788 ac_cv_search_fabs=no
12789 fi
12790 rm conftest.$ac_ext
12791 LIBS=$ac_func_search_save_LIBS
12792 fi
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
12794 $as_echo "$ac_cv_search_fabs" >&6; }
12795 ac_res=$ac_cv_search_fabs
12796 if test "$ac_res" != no; then :
12797 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12798
12799 fi
12800
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5
12802 $as_echo_n "checking for library containing log2... " >&6; }
12803 if ${ac_cv_search_log2+:} false; then :
12804 $as_echo_n "(cached) " >&6
12805 else
12806 ac_func_search_save_LIBS=$LIBS
12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h. */
12809
12810 /* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12813 #ifdef __cplusplus
12814 extern "C"
12815 #endif
12816 char log2 ();
12817 int
12818 main ()
12819 {
12820 return log2 ();
12821 ;
12822 return 0;
12823 }
12824 _ACEOF
12825 for ac_lib in '' m; do
12826 if test -z "$ac_lib"; then
12827 ac_res="none required"
12828 else
12829 ac_res=-l$ac_lib
12830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12831 fi
12832 if ac_fn_c_try_link "$LINENO"; then :
12833 ac_cv_search_log2=$ac_res
12834 fi
12835 rm -f core conftest.err conftest.$ac_objext \
12836 conftest$ac_exeext
12837 if ${ac_cv_search_log2+:} false; then :
12838 break
12839 fi
12840 done
12841 if ${ac_cv_search_log2+:} false; then :
12842
12843 else
12844 ac_cv_search_log2=no
12845 fi
12846 rm conftest.$ac_ext
12847 LIBS=$ac_func_search_save_LIBS
12848 fi
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5
12850 $as_echo "$ac_cv_search_log2" >&6; }
12851 ac_res=$ac_cv_search_log2
12852 if test "$ac_res" != no; then :
12853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12854
12855 fi
12856
12857
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12859 $as_echo_n "checking for library containing dlopen... " >&6; }
12860 if ${ac_cv_search_dlopen+:} false; then :
12861 $as_echo_n "(cached) " >&6
12862 else
12863 ac_func_search_save_LIBS=$LIBS
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h. */
12866
12867 /* Override any GCC internal prototype to avoid an error.
12868 Use char because int might match the return type of a GCC
12869 builtin and then its argument prototype would still apply. */
12870 #ifdef __cplusplus
12871 extern "C"
12872 #endif
12873 char dlopen ();
12874 int
12875 main ()
12876 {
12877 return dlopen ();
12878 ;
12879 return 0;
12880 }
12881 _ACEOF
12882 for ac_lib in '' dl; do
12883 if test -z "$ac_lib"; then
12884 ac_res="none required"
12885 else
12886 ac_res=-l$ac_lib
12887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12888 fi
12889 if ac_fn_c_try_link "$LINENO"; then :
12890 ac_cv_search_dlopen=$ac_res
12891 fi
12892 rm -f core conftest.err conftest.$ac_objext \
12893 conftest$ac_exeext
12894 if ${ac_cv_search_dlopen+:} false; then :
12895 break
12896 fi
12897 done
12898 if ${ac_cv_search_dlopen+:} false; then :
12899
12900 else
12901 ac_cv_search_dlopen=no
12902 fi
12903 rm conftest.$ac_ext
12904 LIBS=$ac_func_search_save_LIBS
12905 fi
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12907 $as_echo "$ac_cv_search_dlopen" >&6; }
12908 ac_res=$ac_cv_search_dlopen
12909 if test "$ac_res" != no; then :
12910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12911
12912 fi
12913
12914 if test "${ac_cv_lib_dl_dlopen}" = "yes"; then
12915
12916 pkg_failed=no
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
12918 $as_echo_n "checking for sdl2... " >&6; }
12919
12920 if test -n "$SDL_CFLAGS"; then
12921 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12922 elif test -n "$PKG_CONFIG"; then
12923 if test -n "$PKG_CONFIG" && \
12924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
12925 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
12926 ac_status=$?
12927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12928 test $ac_status = 0; }; then
12929 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
12930 test "x$?" != "x0" && pkg_failed=yes
12931 else
12932 pkg_failed=yes
12933 fi
12934 else
12935 pkg_failed=untried
12936 fi
12937 if test -n "$SDL_LIBS"; then
12938 pkg_cv_SDL_LIBS="$SDL_LIBS"
12939 elif test -n "$PKG_CONFIG"; then
12940 if test -n "$PKG_CONFIG" && \
12941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
12942 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
12943 ac_status=$?
12944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12945 test $ac_status = 0; }; then
12946 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
12947 test "x$?" != "x0" && pkg_failed=yes
12948 else
12949 pkg_failed=yes
12950 fi
12951 else
12952 pkg_failed=untried
12953 fi
12954
12955 if test $pkg_failed = no; then
12956 pkg_save_LDFLAGS="$LDFLAGS"
12957 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h. */
12960
12961 int
12962 main ()
12963 {
12964
12965 ;
12966 return 0;
12967 }
12968 _ACEOF
12969 if ac_fn_c_try_link "$LINENO"; then :
12970
12971 else
12972 pkg_failed=yes
12973 fi
12974 rm -f core conftest.err conftest.$ac_objext \
12975 conftest$ac_exeext conftest.$ac_ext
12976 LDFLAGS=$pkg_save_LDFLAGS
12977 fi
12978
12979
12980
12981 if test $pkg_failed = yes; then
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 $as_echo "no" >&6; }
12984
12985 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12986 _pkg_short_errors_supported=yes
12987 else
12988 _pkg_short_errors_supported=no
12989 fi
12990 if test $_pkg_short_errors_supported = yes; then
12991 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
12992 else
12993 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
12994 fi
12995 # Put the nasty error message in config.log where it belongs
12996 echo "$SDL_PKG_ERRORS" >&5
12997
12998
12999
13000 pkg_failed=no
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13002 $as_echo_n "checking for sdl... " >&6; }
13003
13004 if test -n "$SDL_CFLAGS"; then
13005 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13006 elif test -n "$PKG_CONFIG"; then
13007 if test -n "$PKG_CONFIG" && \
13008 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13009 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13010 ac_status=$?
13011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13012 test $ac_status = 0; }; then
13013 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13014 test "x$?" != "x0" && pkg_failed=yes
13015 else
13016 pkg_failed=yes
13017 fi
13018 else
13019 pkg_failed=untried
13020 fi
13021 if test -n "$SDL_LIBS"; then
13022 pkg_cv_SDL_LIBS="$SDL_LIBS"
13023 elif test -n "$PKG_CONFIG"; then
13024 if test -n "$PKG_CONFIG" && \
13025 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13026 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13027 ac_status=$?
13028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13029 test $ac_status = 0; }; then
13030 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13031 test "x$?" != "x0" && pkg_failed=yes
13032 else
13033 pkg_failed=yes
13034 fi
13035 else
13036 pkg_failed=untried
13037 fi
13038
13039 if test $pkg_failed = no; then
13040 pkg_save_LDFLAGS="$LDFLAGS"
13041 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13044
13045 int
13046 main ()
13047 {
13048
13049 ;
13050 return 0;
13051 }
13052 _ACEOF
13053 if ac_fn_c_try_link "$LINENO"; then :
13054
13055 else
13056 pkg_failed=yes
13057 fi
13058 rm -f core conftest.err conftest.$ac_objext \
13059 conftest$ac_exeext conftest.$ac_ext
13060 LDFLAGS=$pkg_save_LDFLAGS
13061 fi
13062
13063
13064
13065 if test $pkg_failed = yes; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067 $as_echo "no" >&6; }
13068
13069 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13070 _pkg_short_errors_supported=yes
13071 else
13072 _pkg_short_errors_supported=no
13073 fi
13074 if test $_pkg_short_errors_supported = yes; then
13075 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13076 else
13077 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13078 fi
13079 # Put the nasty error message in config.log where it belongs
13080 echo "$SDL_PKG_ERRORS" >&5
13081
13082 :
13083 elif test $pkg_failed = untried; then
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13085 $as_echo "no" >&6; }
13086 :
13087 else
13088 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13089 SDL_LIBS=$pkg_cv_SDL_LIBS
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13091 $as_echo "yes" >&6; }
13092 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13093
13094 fi
13095
13096 elif test $pkg_failed = untried; then
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098 $as_echo "no" >&6; }
13099
13100
13101 pkg_failed=no
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13103 $as_echo_n "checking for sdl... " >&6; }
13104
13105 if test -n "$SDL_CFLAGS"; then
13106 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13107 elif test -n "$PKG_CONFIG"; then
13108 if test -n "$PKG_CONFIG" && \
13109 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13110 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13111 ac_status=$?
13112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13113 test $ac_status = 0; }; then
13114 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13115 test "x$?" != "x0" && pkg_failed=yes
13116 else
13117 pkg_failed=yes
13118 fi
13119 else
13120 pkg_failed=untried
13121 fi
13122 if test -n "$SDL_LIBS"; then
13123 pkg_cv_SDL_LIBS="$SDL_LIBS"
13124 elif test -n "$PKG_CONFIG"; then
13125 if test -n "$PKG_CONFIG" && \
13126 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13127 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13128 ac_status=$?
13129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13130 test $ac_status = 0; }; then
13131 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13132 test "x$?" != "x0" && pkg_failed=yes
13133 else
13134 pkg_failed=yes
13135 fi
13136 else
13137 pkg_failed=untried
13138 fi
13139
13140 if test $pkg_failed = no; then
13141 pkg_save_LDFLAGS="$LDFLAGS"
13142 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h. */
13145
13146 int
13147 main ()
13148 {
13149
13150 ;
13151 return 0;
13152 }
13153 _ACEOF
13154 if ac_fn_c_try_link "$LINENO"; then :
13155
13156 else
13157 pkg_failed=yes
13158 fi
13159 rm -f core conftest.err conftest.$ac_objext \
13160 conftest$ac_exeext conftest.$ac_ext
13161 LDFLAGS=$pkg_save_LDFLAGS
13162 fi
13163
13164
13165
13166 if test $pkg_failed = yes; then
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13169
13170 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13171 _pkg_short_errors_supported=yes
13172 else
13173 _pkg_short_errors_supported=no
13174 fi
13175 if test $_pkg_short_errors_supported = yes; then
13176 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13177 else
13178 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13179 fi
13180 # Put the nasty error message in config.log where it belongs
13181 echo "$SDL_PKG_ERRORS" >&5
13182
13183 :
13184 elif test $pkg_failed = untried; then
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186 $as_echo "no" >&6; }
13187 :
13188 else
13189 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13190 SDL_LIBS=$pkg_cv_SDL_LIBS
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13192 $as_echo "yes" >&6; }
13193 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13194
13195 fi
13196
13197 else
13198 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13199 SDL_LIBS=$pkg_cv_SDL_LIBS
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13201 $as_echo "yes" >&6; }
13202 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
13203
13204 fi
13205 if test -n "$SDL_CFLAGS"; then :
13206 if test "$ac_cv_search_dlopen" = no; then :
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5
13208 $as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;}
13209
13210 fi
13211
13212 fi
13213 else
13214 SDL_CFLAGS=
13215 fi
13216 SDL_LIBS=
13217
13218
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13220 $as_echo_n "checking for cygwin... " >&6; }
13221 if ${sim_cv_os_cygwin+:} false; then :
13222 $as_echo_n "(cached) " >&6
13223 else
13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13226
13227 #ifdef __CYGWIN__
13228 lose
13229 #endif
13230 _ACEOF
13231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13232 $EGREP "lose" >/dev/null 2>&1; then :
13233 sim_cv_os_cygwin=yes
13234 else
13235 sim_cv_os_cygwin=no
13236 fi
13237 rm -f conftest*
13238
13239 fi
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13241 $as_echo "$sim_cv_os_cygwin" >&6; }
13242
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13244 $as_echo_n "checking for library containing tgetent... " >&6; }
13245 if ${ac_cv_search_tgetent+:} false; then :
13246 $as_echo_n "(cached) " >&6
13247 else
13248 ac_func_search_save_LIBS=$LIBS
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13251
13252 /* Override any GCC internal prototype to avoid an error.
13253 Use char because int might match the return type of a GCC
13254 builtin and then its argument prototype would still apply. */
13255 #ifdef __cplusplus
13256 extern "C"
13257 #endif
13258 char tgetent ();
13259 int
13260 main ()
13261 {
13262 return tgetent ();
13263 ;
13264 return 0;
13265 }
13266 _ACEOF
13267 for ac_lib in '' termcap tinfo curses ncurses; do
13268 if test -z "$ac_lib"; then
13269 ac_res="none required"
13270 else
13271 ac_res=-l$ac_lib
13272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13273 fi
13274 if ac_fn_c_try_link "$LINENO"; then :
13275 ac_cv_search_tgetent=$ac_res
13276 fi
13277 rm -f core conftest.err conftest.$ac_objext \
13278 conftest$ac_exeext
13279 if ${ac_cv_search_tgetent+:} false; then :
13280 break
13281 fi
13282 done
13283 if ${ac_cv_search_tgetent+:} false; then :
13284
13285 else
13286 ac_cv_search_tgetent=no
13287 fi
13288 rm conftest.$ac_ext
13289 LIBS=$ac_func_search_save_LIBS
13290 fi
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13292 $as_echo "$ac_cv_search_tgetent" >&6; }
13293 ac_res=$ac_cv_search_tgetent
13294 if test "$ac_res" != no; then :
13295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13296 TERMCAP_LIB=$ac_cv_search_tgetent
13297 else
13298 TERMCAP_LIB=""
13299 fi
13300
13301 if test x$sim_cv_os_cygwin = xyes; then
13302 TERMCAP_LIB="${TERMCAP_LIB} -luser32"
13303 fi
13304
13305
13306 if test -r ../readline/Makefile; then
13307 READLINE_LIB=../readline/readline/libreadline.a
13308 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
13309 else
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13311 $as_echo_n "checking for readline in -lreadline... " >&6; }
13312 if ${ac_cv_lib_readline_readline+:} false; then :
13313 $as_echo_n "(cached) " >&6
13314 else
13315 ac_check_lib_save_LIBS=$LIBS
13316 LIBS="-lreadline $TERMCAP_LIB $LIBS"
13317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13319
13320 /* Override any GCC internal prototype to avoid an error.
13321 Use char because int might match the return type of a GCC
13322 builtin and then its argument prototype would still apply. */
13323 #ifdef __cplusplus
13324 extern "C"
13325 #endif
13326 char readline ();
13327 int
13328 main ()
13329 {
13330 return readline ();
13331 ;
13332 return 0;
13333 }
13334 _ACEOF
13335 if ac_fn_c_try_link "$LINENO"; then :
13336 ac_cv_lib_readline_readline=yes
13337 else
13338 ac_cv_lib_readline_readline=no
13339 fi
13340 rm -f core conftest.err conftest.$ac_objext \
13341 conftest$ac_exeext conftest.$ac_ext
13342 LIBS=$ac_check_lib_save_LIBS
13343 fi
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13345 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13346 if test "x$ac_cv_lib_readline_readline" = xyes; then :
13347 READLINE_LIB=-lreadline
13348 else
13349 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
13350 fi
13351
13352 READLINE_CFLAGS=
13353 fi
13354
13355
13356
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13358 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13359 if ${sim_cv_decl_getopt_unistd_h+:} false; then :
13360 $as_echo_n "(cached) " >&6
13361 else
13362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13363 /* end confdefs.h. */
13364 #include <unistd.h>
13365 int
13366 main ()
13367 {
13368 extern int getopt (int, char *const*, const char *);
13369 ;
13370 return 0;
13371 }
13372 _ACEOF
13373 if ac_fn_c_try_compile "$LINENO"; then :
13374 sim_cv_decl_getopt_unistd_h=yes
13375 else
13376 sim_cv_decl_getopt_unistd_h=no
13377 fi
13378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13379 fi
13380
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
13382 $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
13383 if test $sim_cv_decl_getopt_unistd_h = yes; then
13384
13385 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13386
13387 fi
13388
13389
13390
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13392 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13393 # Check whether --enable-maintainer-mode was given.
13394 if test "${enable_maintainer_mode+set}" = set; then :
13395 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13396 else
13397 USE_MAINTAINER_MODE=no
13398 fi
13399
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13401 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13402 if test $USE_MAINTAINER_MODE = yes; then
13403 MAINTAINER_MODE_TRUE=
13404 MAINTAINER_MODE_FALSE='#'
13405 else
13406 MAINTAINER_MODE_TRUE='#'
13407 MAINTAINER_MODE_FALSE=
13408 fi
13409
13410 MAINT=$MAINTAINER_MODE_TRUE
13411
13412
13413 am__api_version='1.15'
13414
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13416 $as_echo_n "checking whether build environment is sane... " >&6; }
13417 # Reject unsafe characters in $srcdir or the absolute working directory
13418 # name. Accept space and tab only in the latter.
13419 am_lf='
13420 '
13421 case `pwd` in
13422 *[\\\"\#\$\&\'\`$am_lf]*)
13423 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13424 esac
13425 case $srcdir in
13426 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13427 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13428 esac
13429
13430 # Do 'set' in a subshell so we don't clobber the current shell's
13431 # arguments. Must try -L first in case configure is actually a
13432 # symlink; some systems play weird games with the mod time of symlinks
13433 # (eg FreeBSD returns the mod time of the symlink's containing
13434 # directory).
13435 if (
13436 am_has_slept=no
13437 for am_try in 1 2; do
13438 echo "timestamp, slept: $am_has_slept" > conftest.file
13439 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13440 if test "$*" = "X"; then
13441 # -L didn't work.
13442 set X `ls -t "$srcdir/configure" conftest.file`
13443 fi
13444 if test "$*" != "X $srcdir/configure conftest.file" \
13445 && test "$*" != "X conftest.file $srcdir/configure"; then
13446
13447 # If neither matched, then we have a broken ls. This can happen
13448 # if, for instance, CONFIG_SHELL is bash and it inherits a
13449 # broken ls alias from the environment. This has actually
13450 # happened. Such a system could not be considered "sane".
13451 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13452 alias in your environment" "$LINENO" 5
13453 fi
13454 if test "$2" = conftest.file || test $am_try -eq 2; then
13455 break
13456 fi
13457 # Just in case.
13458 sleep 1
13459 am_has_slept=yes
13460 done
13461 test "$2" = conftest.file
13462 )
13463 then
13464 # Ok.
13465 :
13466 else
13467 as_fn_error $? "newly created file is older than distributed files!
13468 Check your system clock" "$LINENO" 5
13469 fi
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13471 $as_echo "yes" >&6; }
13472 # If we didn't sleep, we still need to ensure time stamps of config.status and
13473 # generated files are strictly newer.
13474 am_sleep_pid=
13475 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13476 ( sleep 1 ) &
13477 am_sleep_pid=$!
13478 fi
13479
13480 rm -f conftest.file
13481
13482 if test x"${MISSING+set}" != xset; then
13483 case $am_aux_dir in
13484 *\ * | *\ *)
13485 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13486 *)
13487 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13488 esac
13489 fi
13490 # Use eval to expand $SHELL
13491 if eval "$MISSING --is-lightweight"; then
13492 am_missing_run="$MISSING "
13493 else
13494 am_missing_run=
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13496 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13497 fi
13498
13499 if test x"${install_sh+set}" != xset; then
13500 case $am_aux_dir in
13501 *\ * | *\ *)
13502 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13503 *)
13504 install_sh="\${SHELL} $am_aux_dir/install-sh"
13505 esac
13506 fi
13507
13508 # Installed binaries are usually stripped using 'strip' when the user
13509 # run "make install-strip". However 'strip' might not be the right
13510 # tool to use in cross-compilation environments, therefore Automake
13511 # will honor the 'STRIP' environment variable to overrule this program.
13512 if test "$cross_compiling" != no; then
13513 if test -n "$ac_tool_prefix"; then
13514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13515 set dummy ${ac_tool_prefix}strip; ac_word=$2
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13517 $as_echo_n "checking for $ac_word... " >&6; }
13518 if ${ac_cv_prog_STRIP+:} false; then :
13519 $as_echo_n "(cached) " >&6
13520 else
13521 if test -n "$STRIP"; then
13522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13523 else
13524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13525 for as_dir in $PATH
13526 do
13527 IFS=$as_save_IFS
13528 test -z "$as_dir" && as_dir=.
13529 for ac_exec_ext in '' $ac_executable_extensions; do
13530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13531 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13533 break 2
13534 fi
13535 done
13536 done
13537 IFS=$as_save_IFS
13538
13539 fi
13540 fi
13541 STRIP=$ac_cv_prog_STRIP
13542 if test -n "$STRIP"; then
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13544 $as_echo "$STRIP" >&6; }
13545 else
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13547 $as_echo "no" >&6; }
13548 fi
13549
13550
13551 fi
13552 if test -z "$ac_cv_prog_STRIP"; then
13553 ac_ct_STRIP=$STRIP
13554 # Extract the first word of "strip", so it can be a program name with args.
13555 set dummy strip; ac_word=$2
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13557 $as_echo_n "checking for $ac_word... " >&6; }
13558 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13559 $as_echo_n "(cached) " >&6
13560 else
13561 if test -n "$ac_ct_STRIP"; then
13562 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13563 else
13564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565 for as_dir in $PATH
13566 do
13567 IFS=$as_save_IFS
13568 test -z "$as_dir" && as_dir=.
13569 for ac_exec_ext in '' $ac_executable_extensions; do
13570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13571 ac_cv_prog_ac_ct_STRIP="strip"
13572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13573 break 2
13574 fi
13575 done
13576 done
13577 IFS=$as_save_IFS
13578
13579 fi
13580 fi
13581 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13582 if test -n "$ac_ct_STRIP"; then
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13584 $as_echo "$ac_ct_STRIP" >&6; }
13585 else
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13587 $as_echo "no" >&6; }
13588 fi
13589
13590 if test "x$ac_ct_STRIP" = x; then
13591 STRIP=":"
13592 else
13593 case $cross_compiling:$ac_tool_warned in
13594 yes:)
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13597 ac_tool_warned=yes ;;
13598 esac
13599 STRIP=$ac_ct_STRIP
13600 fi
13601 else
13602 STRIP="$ac_cv_prog_STRIP"
13603 fi
13604
13605 fi
13606 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13607
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13609 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13610 if test -z "$MKDIR_P"; then
13611 if ${ac_cv_path_mkdir+:} false; then :
13612 $as_echo_n "(cached) " >&6
13613 else
13614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13615 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13616 do
13617 IFS=$as_save_IFS
13618 test -z "$as_dir" && as_dir=.
13619 for ac_prog in mkdir gmkdir; do
13620 for ac_exec_ext in '' $ac_executable_extensions; do
13621 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13622 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13623 'mkdir (GNU coreutils) '* | \
13624 'mkdir (coreutils) '* | \
13625 'mkdir (fileutils) '4.1*)
13626 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13627 break 3;;
13628 esac
13629 done
13630 done
13631 done
13632 IFS=$as_save_IFS
13633
13634 fi
13635
13636 test -d ./--version && rmdir ./--version
13637 if test "${ac_cv_path_mkdir+set}" = set; then
13638 MKDIR_P="$ac_cv_path_mkdir -p"
13639 else
13640 # As a last resort, use the slow shell script. Don't cache a
13641 # value for MKDIR_P within a source directory, because that will
13642 # break other packages using the cache if that directory is
13643 # removed, or if the value is a relative name.
13644 MKDIR_P="$ac_install_sh -d"
13645 fi
13646 fi
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13648 $as_echo "$MKDIR_P" >&6; }
13649
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13651 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13652 set x ${MAKE-make}
13653 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13654 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13655 $as_echo_n "(cached) " >&6
13656 else
13657 cat >conftest.make <<\_ACEOF
13658 SHELL = /bin/sh
13659 all:
13660 @echo '@@@%%%=$(MAKE)=@@@%%%'
13661 _ACEOF
13662 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13663 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13664 *@@@%%%=?*=@@@%%%*)
13665 eval ac_cv_prog_make_${ac_make}_set=yes;;
13666 *)
13667 eval ac_cv_prog_make_${ac_make}_set=no;;
13668 esac
13669 rm -f conftest.make
13670 fi
13671 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13673 $as_echo "yes" >&6; }
13674 SET_MAKE=
13675 else
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13677 $as_echo "no" >&6; }
13678 SET_MAKE="MAKE=${MAKE-make}"
13679 fi
13680
13681 rm -rf .tst 2>/dev/null
13682 mkdir .tst 2>/dev/null
13683 if test -d .tst; then
13684 am__leading_dot=.
13685 else
13686 am__leading_dot=_
13687 fi
13688 rmdir .tst 2>/dev/null
13689
13690 DEPDIR="${am__leading_dot}deps"
13691
13692 ac_config_commands="$ac_config_commands depfiles"
13693
13694
13695 am_make=${MAKE-make}
13696 cat > confinc << 'END'
13697 am__doit:
13698 @echo this is the am__doit target
13699 .PHONY: am__doit
13700 END
13701 # If we don't find an include directive, just comment out the code.
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13703 $as_echo_n "checking for style of include used by $am_make... " >&6; }
13704 am__include="#"
13705 am__quote=
13706 _am_result=none
13707 # First try GNU make style include.
13708 echo "include confinc" > confmf
13709 # Ignore all kinds of additional output from 'make'.
13710 case `$am_make -s -f confmf 2> /dev/null` in #(
13711 *the\ am__doit\ target*)
13712 am__include=include
13713 am__quote=
13714 _am_result=GNU
13715 ;;
13716 esac
13717 # Now try BSD make style include.
13718 if test "$am__include" = "#"; then
13719 echo '.include "confinc"' > confmf
13720 case `$am_make -s -f confmf 2> /dev/null` in #(
13721 *the\ am__doit\ target*)
13722 am__include=.include
13723 am__quote="\""
13724 _am_result=BSD
13725 ;;
13726 esac
13727 fi
13728
13729
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13731 $as_echo "$_am_result" >&6; }
13732 rm -f confinc confmf
13733
13734 # Check whether --enable-dependency-tracking was given.
13735 if test "${enable_dependency_tracking+set}" = set; then :
13736 enableval=$enable_dependency_tracking;
13737 fi
13738
13739 if test "x$enable_dependency_tracking" != xno; then
13740 am_depcomp="$ac_aux_dir/depcomp"
13741 AMDEPBACKSLASH='\'
13742 am__nodep='_no'
13743 fi
13744 if test "x$enable_dependency_tracking" != xno; then
13745 AMDEP_TRUE=
13746 AMDEP_FALSE='#'
13747 else
13748 AMDEP_TRUE='#'
13749 AMDEP_FALSE=
13750 fi
13751
13752
13753 # Check whether --enable-silent-rules was given.
13754 if test "${enable_silent_rules+set}" = set; then :
13755 enableval=$enable_silent_rules;
13756 fi
13757
13758 case $enable_silent_rules in # (((
13759 yes) AM_DEFAULT_VERBOSITY=0;;
13760 no) AM_DEFAULT_VERBOSITY=1;;
13761 *) AM_DEFAULT_VERBOSITY=1;;
13762 esac
13763 am_make=${MAKE-make}
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13765 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13766 if ${am_cv_make_support_nested_variables+:} false; then :
13767 $as_echo_n "(cached) " >&6
13768 else
13769 if $as_echo 'TRUE=$(BAR$(V))
13770 BAR0=false
13771 BAR1=true
13772 V=1
13773 am__doit:
13774 @$(TRUE)
13775 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13776 am_cv_make_support_nested_variables=yes
13777 else
13778 am_cv_make_support_nested_variables=no
13779 fi
13780 fi
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13782 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13783 if test $am_cv_make_support_nested_variables = yes; then
13784 AM_V='$(V)'
13785 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13786 else
13787 AM_V=$AM_DEFAULT_VERBOSITY
13788 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13789 fi
13790 AM_BACKSLASH='\'
13791
13792 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13793 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13794 # is not polluted with repeated "-I."
13795 am__isrc=' -I$(srcdir)'
13796 # test to see if srcdir already configured
13797 if test -f $srcdir/config.status; then
13798 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13799 fi
13800 fi
13801
13802 # test whether we have cygpath
13803 if test -z "$CYGPATH_W"; then
13804 if (cygpath --version) >/dev/null 2>/dev/null; then
13805 CYGPATH_W='cygpath -w'
13806 else
13807 CYGPATH_W=echo
13808 fi
13809 fi
13810
13811
13812 # Define the identity of the package.
13813 PACKAGE='sim'
13814 VERSION='0'
13815
13816
13817 cat >>confdefs.h <<_ACEOF
13818 #define PACKAGE "$PACKAGE"
13819 _ACEOF
13820
13821
13822 cat >>confdefs.h <<_ACEOF
13823 #define VERSION "$VERSION"
13824 _ACEOF
13825
13826 # Some tools Automake needs.
13827
13828 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13829
13830
13831 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13832
13833
13834 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13835
13836
13837 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13838
13839
13840 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13841
13842 # For better backward compatibility. To be removed once Automake 1.9.x
13843 # dies out for good. For more background, see:
13844 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13845 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13846 mkdir_p='$(MKDIR_P)'
13847
13848 # We need awk for the "check" target (and possibly the TAP driver). The
13849 # system "awk" is bad on some platforms.
13850 # Always define AMTAR for backward compatibility. Yes, it's still used
13851 # in the wild :-( We should find a proper way to deprecate it ...
13852 AMTAR='$${TAR-tar}'
13853
13854
13855 # We'll loop over all known methods to create a tar archive until one works.
13856 _am_tools='gnutar pax cpio none'
13857
13858 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13859
13860
13861
13862
13863
13864 depcc="$CC" am_compiler_list=
13865
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13867 $as_echo_n "checking dependency style of $depcc... " >&6; }
13868 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13869 $as_echo_n "(cached) " >&6
13870 else
13871 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13872 # We make a subdir and do the tests there. Otherwise we can end up
13873 # making bogus files that we don't know about and never remove. For
13874 # instance it was reported that on HP-UX the gcc test will end up
13875 # making a dummy file named 'D' -- because '-MD' means "put the output
13876 # in D".
13877 rm -rf conftest.dir
13878 mkdir conftest.dir
13879 # Copy depcomp to subdir because otherwise we won't find it if we're
13880 # using a relative directory.
13881 cp "$am_depcomp" conftest.dir
13882 cd conftest.dir
13883 # We will build objects and dependencies in a subdirectory because
13884 # it helps to detect inapplicable dependency modes. For instance
13885 # both Tru64's cc and ICC support -MD to output dependencies as a
13886 # side effect of compilation, but ICC will put the dependencies in
13887 # the current directory while Tru64 will put them in the object
13888 # directory.
13889 mkdir sub
13890
13891 am_cv_CC_dependencies_compiler_type=none
13892 if test "$am_compiler_list" = ""; then
13893 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13894 fi
13895 am__universal=false
13896 case " $depcc " in #(
13897 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13898 esac
13899
13900 for depmode in $am_compiler_list; do
13901 # Setup a source with many dependencies, because some compilers
13902 # like to wrap large dependency lists on column 80 (with \), and
13903 # we should not choose a depcomp mode which is confused by this.
13904 #
13905 # We need to recreate these files for each test, as the compiler may
13906 # overwrite some of them when testing with obscure command lines.
13907 # This happens at least with the AIX C compiler.
13908 : > sub/conftest.c
13909 for i in 1 2 3 4 5 6; do
13910 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13911 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13912 # Solaris 10 /bin/sh.
13913 echo '/* dummy */' > sub/conftst$i.h
13914 done
13915 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13916
13917 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13918 # mode. It turns out that the SunPro C++ compiler does not properly
13919 # handle '-M -o', and we need to detect this. Also, some Intel
13920 # versions had trouble with output in subdirs.
13921 am__obj=sub/conftest.${OBJEXT-o}
13922 am__minus_obj="-o $am__obj"
13923 case $depmode in
13924 gcc)
13925 # This depmode causes a compiler race in universal mode.
13926 test "$am__universal" = false || continue
13927 ;;
13928 nosideeffect)
13929 # After this tag, mechanisms are not by side-effect, so they'll
13930 # only be used when explicitly requested.
13931 if test "x$enable_dependency_tracking" = xyes; then
13932 continue
13933 else
13934 break
13935 fi
13936 ;;
13937 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13938 # This compiler won't grok '-c -o', but also, the minuso test has
13939 # not run yet. These depmodes are late enough in the game, and
13940 # so weak that their functioning should not be impacted.
13941 am__obj=conftest.${OBJEXT-o}
13942 am__minus_obj=
13943 ;;
13944 none) break ;;
13945 esac
13946 if depmode=$depmode \
13947 source=sub/conftest.c object=$am__obj \
13948 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13949 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13950 >/dev/null 2>conftest.err &&
13951 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13952 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13953 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13954 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13955 # icc doesn't choke on unknown options, it will just issue warnings
13956 # or remarks (even with -Werror). So we grep stderr for any message
13957 # that says an option was ignored or not supported.
13958 # When given -MP, icc 7.0 and 7.1 complain thusly:
13959 # icc: Command line warning: ignoring option '-M'; no argument required
13960 # The diagnosis changed in icc 8.0:
13961 # icc: Command line remark: option '-MP' not supported
13962 if (grep 'ignoring option' conftest.err ||
13963 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13964 am_cv_CC_dependencies_compiler_type=$depmode
13965 break
13966 fi
13967 fi
13968 done
13969
13970 cd ..
13971 rm -rf conftest.dir
13972 else
13973 am_cv_CC_dependencies_compiler_type=none
13974 fi
13975
13976 fi
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13978 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13979 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13980
13981 if
13982 test "x$enable_dependency_tracking" != xno \
13983 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13984 am__fastdepCC_TRUE=
13985 am__fastdepCC_FALSE='#'
13986 else
13987 am__fastdepCC_TRUE='#'
13988 am__fastdepCC_FALSE=
13989 fi
13990
13991
13992
13993 # POSIX will say in a future version that running "rm -f" with no argument
13994 # is OK; and we want to be able to make that assumption in our Makefile
13995 # recipes. So use an aggressive probe to check that the usage we want is
13996 # actually supported "in the wild" to an acceptable degree.
13997 # See automake bug#10828.
13998 # To make any issue more visible, cause the running configure to be aborted
13999 # by default if the 'rm' program in use doesn't match our expectations; the
14000 # user can still override this though.
14001 if rm -f && rm -fr && rm -rf; then : OK; else
14002 cat >&2 <<'END'
14003 Oops!
14004
14005 Your 'rm' program seems unable to run without file operands specified
14006 on the command line, even when the '-f' option is present. This is contrary
14007 to the behaviour of most rm programs out there, and not conforming with
14008 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
14009
14010 Please tell bug-automake@gnu.org about your system, including the value
14011 of your $PATH and any error possibly output before this message. This
14012 can help us improve future automake versions.
14013
14014 END
14015 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
14016 echo 'Configuration will proceed anyway, since you have set the' >&2
14017 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
14018 echo >&2
14019 else
14020 cat >&2 <<'END'
14021 Aborting the configuration process, to ensure you take notice of the issue.
14022
14023 You can download and install GNU coreutils to get an 'rm' implementation
14024 that behaves properly: <http://www.gnu.org/software/coreutils/>.
14025
14026 If you want to complete the configuration process using your problematic
14027 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14028 to "yes", and re-run configure.
14029
14030 END
14031 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
14032 fi
14033 fi
14034
14035 # Check whether --enable-silent-rules was given.
14036 if test "${enable_silent_rules+set}" = set; then :
14037 enableval=$enable_silent_rules;
14038 fi
14039
14040 case $enable_silent_rules in # (((
14041 yes) AM_DEFAULT_VERBOSITY=0;;
14042 no) AM_DEFAULT_VERBOSITY=1;;
14043 *) AM_DEFAULT_VERBOSITY=0;;
14044 esac
14045 am_make=${MAKE-make}
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14047 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14048 if ${am_cv_make_support_nested_variables+:} false; then :
14049 $as_echo_n "(cached) " >&6
14050 else
14051 if $as_echo 'TRUE=$(BAR$(V))
14052 BAR0=false
14053 BAR1=true
14054 V=1
14055 am__doit:
14056 @$(TRUE)
14057 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14058 am_cv_make_support_nested_variables=yes
14059 else
14060 am_cv_make_support_nested_variables=no
14061 fi
14062 fi
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14064 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14065 if test $am_cv_make_support_nested_variables = yes; then
14066 AM_V='$(V)'
14067 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14068 else
14069 AM_V=$AM_DEFAULT_VERBOSITY
14070 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14071 fi
14072 AM_BACKSLASH='\'
14073
14074
14075 # If a cpu ever has more than one simulator to choose from, use
14076 # --enable-sim=... to choose.
14077 # Check whether --enable-sim was given.
14078 if test "${enable_sim+set}" = set; then :
14079 enableval=$enable_sim; case "${enableval}" in
14080 yes | no) ;;
14081 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
14082 esac
14083 fi
14084
14085
14086 # Check whether --enable-example-sims was given.
14087 if test "${enable_example_sims+set}" = set; then :
14088 enableval=$enable_example_sims;
14089 fi
14090
14091
14092 # Check whether --enable-targets was given.
14093 if test "${enable_targets+set}" = set; then :
14094 enableval=$enable_targets; case "${enableval}" in
14095 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
14096 ;;
14097 no) enable_targets= ;;
14098 *) enable_targets=$enableval ;;
14099 esac
14100 fi
14101
14102
14103 SIM_PRIMARY_TARGET=
14104
14105
14106 SIM_ENABLED_ARCHES=
14107
14108
14109 ENABLE_SIM=no
14110
14111
14112
14113 if test "${enable_sim}" != no; then
14114 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
14115 do
14116 sim_enable_arch_aarch64=false
14117 case "${targ}" in
14118 all|aarch64*-*-*)
14119 if test "${targ}" = "${target}"; then
14120 SIM_PRIMARY_TARGET=aarch64
14121 fi
14122 ENABLE_SIM=yes
14123 as_fn_append SIM_ENABLED_ARCHES " aarch64"
14124
14125 ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in"
14126
14127
14128 sim_enable_arch_aarch64=true
14129 ;;
14130 esac
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14132 $as_echo_n "checking where to find the target cc... " >&6; }
14133 if test "x${build}" != "x${host}" ; then
14134 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14135 # We already found the complete path
14136 ac_dir=`dirname $CC_FOR_TARGET`
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14138 $as_echo "pre-installed in $ac_dir" >&6; }
14139 else
14140 # Canadian cross, just use what we found
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14142 $as_echo "pre-installed" >&6; }
14143 fi
14144 else
14145 ok=yes
14146 case " ${configdirs} " in
14147 *" ${target_alias}-gcc "*) ;;
14148 *) ok=no ;;
14149 esac
14150
14151 if test $ok = yes; then
14152 # An in-tree tool is available and we can use it
14153 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc'
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14155 $as_echo "just compiled" >&6; }
14156 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14157 # We already found the complete path
14158 ac_dir=`dirname $CC_FOR_TARGET`
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14160 $as_echo "pre-installed in $ac_dir" >&6; }
14161 elif test "x$target" = "x$host"; then
14162 # We can use an host tool
14163 CC_FOR_TARGET='$(CC)'
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14165 $as_echo "host tool" >&6; }
14166 else
14167 # We need a cross tool
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14169 $as_echo "pre-installed" >&6; }
14170 fi
14171 fi
14172
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14174 $as_echo_n "checking where to find the target as... " >&6; }
14175 if test "x${build}" != "x${host}" ; then
14176 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14177 # We already found the complete path
14178 ac_dir=`dirname $AS_FOR_TARGET`
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14180 $as_echo "pre-installed in $ac_dir" >&6; }
14181 else
14182 # Canadian cross, just use what we found
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14184 $as_echo "pre-installed" >&6; }
14185 fi
14186 else
14187 ok=yes
14188 case " ${configdirs} " in
14189 *" \$(abs_builddir) "*) ;;
14190 *) ok=no ;;
14191 esac
14192
14193 if test $ok = yes; then
14194 # An in-tree tool is available and we can use it
14195 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new'
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14197 $as_echo "just compiled" >&6; }
14198 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14199 # We already found the complete path
14200 ac_dir=`dirname $AS_FOR_TARGET`
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14202 $as_echo "pre-installed in $ac_dir" >&6; }
14203 elif test "x$target" = "x$host"; then
14204 # We can use an host tool
14205 AS_FOR_TARGET='$(AS)'
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14207 $as_echo "host tool" >&6; }
14208 else
14209 # We need a cross tool
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14211 $as_echo "pre-installed" >&6; }
14212 fi
14213 fi
14214
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14216 $as_echo_n "checking where to find the target ld... " >&6; }
14217 if test "x${build}" != "x${host}" ; then
14218 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14219 # We already found the complete path
14220 ac_dir=`dirname $LD_FOR_TARGET`
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14222 $as_echo "pre-installed in $ac_dir" >&6; }
14223 else
14224 # Canadian cross, just use what we found
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14226 $as_echo "pre-installed" >&6; }
14227 fi
14228 else
14229 ok=yes
14230 case " ${configdirs} " in
14231 *" \$(abs_builddir) "*) ;;
14232 *) ok=no ;;
14233 esac
14234
14235 if test $ok = yes; then
14236 # An in-tree tool is available and we can use it
14237 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new'
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14239 $as_echo "just compiled" >&6; }
14240 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14241 # We already found the complete path
14242 ac_dir=`dirname $LD_FOR_TARGET`
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14244 $as_echo "pre-installed in $ac_dir" >&6; }
14245 elif test "x$target" = "x$host"; then
14246 # We can use an host tool
14247 LD_FOR_TARGET='$(LD)'
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14249 $as_echo "host tool" >&6; }
14250 else
14251 # We need a cross tool
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14253 $as_echo "pre-installed" >&6; }
14254 fi
14255 fi
14256
14257
14258
14259
14260
14261
14262 if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
14263 : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
14264 : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
14265 : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
14266
14267 fi
14268
14269 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
14270
14271 if ${sim_enable_arch_aarch64}; then
14272 SIM_ENABLE_ARCH_aarch64_TRUE=
14273 SIM_ENABLE_ARCH_aarch64_FALSE='#'
14274 else
14275 SIM_ENABLE_ARCH_aarch64_TRUE='#'
14276 SIM_ENABLE_ARCH_aarch64_FALSE=
14277 fi
14278
14279
14280 sim_enable_arch_arm=false
14281 case "${targ}" in
14282 all|arm*-*-*)
14283 if test "${targ}" = "${target}"; then
14284 SIM_PRIMARY_TARGET=arm
14285 fi
14286 ENABLE_SIM=yes
14287 as_fn_append SIM_ENABLED_ARCHES " arm"
14288
14289 ac_config_files="$ac_config_files arm/.gdbinit:common/gdbinit.in"
14290
14291
14292 sim_enable_arch_arm=true
14293 ;;
14294 esac
14295
14296
14297
14298
14299 if test "$SIM_PRIMARY_TARGET" = "arm"; then :
14300 : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}"
14301 : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}"
14302 : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}"
14303
14304 fi
14305
14306 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM"
14307
14308 if ${sim_enable_arch_arm}; then
14309 SIM_ENABLE_ARCH_arm_TRUE=
14310 SIM_ENABLE_ARCH_arm_FALSE='#'
14311 else
14312 SIM_ENABLE_ARCH_arm_TRUE='#'
14313 SIM_ENABLE_ARCH_arm_FALSE=
14314 fi
14315
14316
14317 sim_enable_arch_avr=false
14318 case "${targ}" in
14319 all|avr*-*-*)
14320 if test "${targ}" = "${target}"; then
14321 SIM_PRIMARY_TARGET=avr
14322 fi
14323 ENABLE_SIM=yes
14324 as_fn_append SIM_ENABLED_ARCHES " avr"
14325
14326 ac_config_files="$ac_config_files avr/.gdbinit:common/gdbinit.in"
14327
14328
14329 sim_enable_arch_avr=true
14330 ;;
14331 esac
14332
14333
14334
14335
14336 if test "$SIM_PRIMARY_TARGET" = "avr"; then :
14337 : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
14338 : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
14339 : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
14340
14341 fi
14342
14343 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
14344
14345 if ${sim_enable_arch_avr}; then
14346 SIM_ENABLE_ARCH_avr_TRUE=
14347 SIM_ENABLE_ARCH_avr_FALSE='#'
14348 else
14349 SIM_ENABLE_ARCH_avr_TRUE='#'
14350 SIM_ENABLE_ARCH_avr_FALSE=
14351 fi
14352
14353
14354 sim_enable_arch_bfin=false
14355 case "${targ}" in
14356 all|bfin-*-*)
14357 if test "${targ}" = "${target}"; then
14358 SIM_PRIMARY_TARGET=bfin
14359 fi
14360 ENABLE_SIM=yes
14361 as_fn_append SIM_ENABLED_ARCHES " bfin"
14362
14363 ac_config_files="$ac_config_files bfin/.gdbinit:common/gdbinit.in"
14364
14365
14366 sim_enable_arch_bfin=true
14367 ;;
14368 esac
14369
14370
14371
14372
14373 if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
14374 : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
14375 : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
14376 : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
14377
14378 fi
14379
14380 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
14381
14382 if ${sim_enable_arch_bfin}; then
14383 SIM_ENABLE_ARCH_bfin_TRUE=
14384 SIM_ENABLE_ARCH_bfin_FALSE='#'
14385 else
14386 SIM_ENABLE_ARCH_bfin_TRUE='#'
14387 SIM_ENABLE_ARCH_bfin_FALSE=
14388 fi
14389
14390
14391 sim_enable_arch_bpf=false
14392 case "${targ}" in
14393 all|bpf-*-*)
14394 if test "${targ}" = "${target}"; then
14395 SIM_PRIMARY_TARGET=bpf
14396 fi
14397 ENABLE_SIM=yes
14398 as_fn_append SIM_ENABLED_ARCHES " bpf"
14399
14400 ac_config_files="$ac_config_files bpf/.gdbinit:common/gdbinit.in"
14401
14402
14403 sim_enable_arch_bpf=true
14404 ;;
14405 esac
14406
14407
14408
14409
14410 if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
14411 : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
14412 : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
14413 : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
14414
14415 fi
14416
14417 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
14418
14419 if ${sim_enable_arch_bpf}; then
14420 SIM_ENABLE_ARCH_bpf_TRUE=
14421 SIM_ENABLE_ARCH_bpf_FALSE='#'
14422 else
14423 SIM_ENABLE_ARCH_bpf_TRUE='#'
14424 SIM_ENABLE_ARCH_bpf_FALSE=
14425 fi
14426
14427
14428 sim_enable_arch_cr16=false
14429 case "${targ}" in
14430 all|cr16*-*-*)
14431 if test "${targ}" = "${target}"; then
14432 SIM_PRIMARY_TARGET=cr16
14433 fi
14434 ENABLE_SIM=yes
14435 as_fn_append SIM_ENABLED_ARCHES " cr16"
14436
14437 ac_config_files="$ac_config_files cr16/.gdbinit:common/gdbinit.in"
14438
14439
14440 sim_enable_arch_cr16=true
14441 ;;
14442 esac
14443
14444
14445
14446
14447 if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
14448 : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
14449 : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
14450 : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
14451
14452 fi
14453
14454 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
14455
14456 if ${sim_enable_arch_cr16}; then
14457 SIM_ENABLE_ARCH_cr16_TRUE=
14458 SIM_ENABLE_ARCH_cr16_FALSE='#'
14459 else
14460 SIM_ENABLE_ARCH_cr16_TRUE='#'
14461 SIM_ENABLE_ARCH_cr16_FALSE=
14462 fi
14463
14464
14465 sim_enable_arch_cris=false
14466 case "${targ}" in
14467 all|cris-*-* | crisv32-*-*)
14468 if test "${targ}" = "${target}"; then
14469 SIM_PRIMARY_TARGET=cris
14470 fi
14471 ENABLE_SIM=yes
14472 as_fn_append SIM_ENABLED_ARCHES " cris"
14473
14474 ac_config_files="$ac_config_files cris/.gdbinit:common/gdbinit.in"
14475
14476
14477 sim_enable_arch_cris=true
14478 ;;
14479 esac
14480
14481
14482
14483
14484 if test "$SIM_PRIMARY_TARGET" = "cris"; then :
14485 : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
14486 : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
14487 : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
14488
14489 fi
14490
14491 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
14492
14493 if ${sim_enable_arch_cris}; then
14494 SIM_ENABLE_ARCH_cris_TRUE=
14495 SIM_ENABLE_ARCH_cris_FALSE='#'
14496 else
14497 SIM_ENABLE_ARCH_cris_TRUE='#'
14498 SIM_ENABLE_ARCH_cris_FALSE=
14499 fi
14500
14501
14502 sim_enable_arch_d10v=false
14503 case "${targ}" in
14504 all|d10v-*-*)
14505 if test "${targ}" = "${target}"; then
14506 SIM_PRIMARY_TARGET=d10v
14507 fi
14508 ENABLE_SIM=yes
14509 as_fn_append SIM_ENABLED_ARCHES " d10v"
14510
14511 ac_config_files="$ac_config_files d10v/.gdbinit:common/gdbinit.in"
14512
14513
14514 sim_enable_arch_d10v=true
14515 ;;
14516 esac
14517
14518
14519
14520
14521 if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
14522 : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
14523 : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
14524 : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
14525
14526 fi
14527
14528 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
14529
14530 if ${sim_enable_arch_d10v}; then
14531 SIM_ENABLE_ARCH_d10v_TRUE=
14532 SIM_ENABLE_ARCH_d10v_FALSE='#'
14533 else
14534 SIM_ENABLE_ARCH_d10v_TRUE='#'
14535 SIM_ENABLE_ARCH_d10v_FALSE=
14536 fi
14537
14538
14539 sim_enable_arch_frv=false
14540 case "${targ}" in
14541 all|frv-*-*)
14542 if test "${targ}" = "${target}"; then
14543 SIM_PRIMARY_TARGET=frv
14544 fi
14545 ENABLE_SIM=yes
14546 as_fn_append SIM_ENABLED_ARCHES " frv"
14547
14548 ac_config_files="$ac_config_files frv/.gdbinit:common/gdbinit.in"
14549
14550
14551 sim_enable_arch_frv=true
14552 ;;
14553 esac
14554
14555
14556
14557
14558 if test "$SIM_PRIMARY_TARGET" = "frv"; then :
14559 : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
14560 : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
14561 : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
14562
14563 fi
14564
14565 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
14566
14567 if ${sim_enable_arch_frv}; then
14568 SIM_ENABLE_ARCH_frv_TRUE=
14569 SIM_ENABLE_ARCH_frv_FALSE='#'
14570 else
14571 SIM_ENABLE_ARCH_frv_TRUE='#'
14572 SIM_ENABLE_ARCH_frv_FALSE=
14573 fi
14574
14575
14576 sim_enable_arch_ft32=false
14577 case "${targ}" in
14578 all|ft32-*-*)
14579 if test "${targ}" = "${target}"; then
14580 SIM_PRIMARY_TARGET=ft32
14581 fi
14582 ENABLE_SIM=yes
14583 as_fn_append SIM_ENABLED_ARCHES " ft32"
14584
14585 ac_config_files="$ac_config_files ft32/.gdbinit:common/gdbinit.in"
14586
14587
14588 sim_enable_arch_ft32=true
14589 ;;
14590 esac
14591
14592
14593
14594
14595 if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
14596 : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
14597 : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
14598 : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
14599
14600 fi
14601
14602 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
14603
14604 if ${sim_enable_arch_ft32}; then
14605 SIM_ENABLE_ARCH_ft32_TRUE=
14606 SIM_ENABLE_ARCH_ft32_FALSE='#'
14607 else
14608 SIM_ENABLE_ARCH_ft32_TRUE='#'
14609 SIM_ENABLE_ARCH_ft32_FALSE=
14610 fi
14611
14612
14613 sim_enable_arch_h8300=false
14614 case "${targ}" in
14615 all|h8300*-*-*)
14616 if test "${targ}" = "${target}"; then
14617 SIM_PRIMARY_TARGET=h8300
14618 fi
14619 ENABLE_SIM=yes
14620 as_fn_append SIM_ENABLED_ARCHES " h8300"
14621
14622 ac_config_files="$ac_config_files h8300/.gdbinit:common/gdbinit.in"
14623
14624
14625 sim_enable_arch_h8300=true
14626 ;;
14627 esac
14628
14629
14630
14631
14632 if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
14633 : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
14634 : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
14635 : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
14636
14637 fi
14638
14639 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
14640
14641 if ${sim_enable_arch_h8300}; then
14642 SIM_ENABLE_ARCH_h8300_TRUE=
14643 SIM_ENABLE_ARCH_h8300_FALSE='#'
14644 else
14645 SIM_ENABLE_ARCH_h8300_TRUE='#'
14646 SIM_ENABLE_ARCH_h8300_FALSE=
14647 fi
14648
14649
14650 sim_enable_arch_iq2000=false
14651 case "${targ}" in
14652 all|iq2000-*-*)
14653 if test "${targ}" = "${target}"; then
14654 SIM_PRIMARY_TARGET=iq2000
14655 fi
14656 ENABLE_SIM=yes
14657 as_fn_append SIM_ENABLED_ARCHES " iq2000"
14658
14659 ac_config_files="$ac_config_files iq2000/.gdbinit:common/gdbinit.in"
14660
14661
14662 sim_enable_arch_iq2000=true
14663 ;;
14664 esac
14665
14666
14667
14668
14669 if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
14670 : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
14671 : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
14672 : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
14673
14674 fi
14675
14676 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
14677
14678 if ${sim_enable_arch_iq2000}; then
14679 SIM_ENABLE_ARCH_iq2000_TRUE=
14680 SIM_ENABLE_ARCH_iq2000_FALSE='#'
14681 else
14682 SIM_ENABLE_ARCH_iq2000_TRUE='#'
14683 SIM_ENABLE_ARCH_iq2000_FALSE=
14684 fi
14685
14686
14687 sim_enable_arch_lm32=false
14688 case "${targ}" in
14689 all|lm32-*-*)
14690 if test "${targ}" = "${target}"; then
14691 SIM_PRIMARY_TARGET=lm32
14692 fi
14693 ENABLE_SIM=yes
14694 as_fn_append SIM_ENABLED_ARCHES " lm32"
14695
14696 ac_config_files="$ac_config_files lm32/.gdbinit:common/gdbinit.in"
14697
14698
14699 sim_enable_arch_lm32=true
14700 ;;
14701 esac
14702
14703
14704
14705
14706 if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
14707 : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
14708 : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
14709 : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
14710
14711 fi
14712
14713 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
14714
14715 if ${sim_enable_arch_lm32}; then
14716 SIM_ENABLE_ARCH_lm32_TRUE=
14717 SIM_ENABLE_ARCH_lm32_FALSE='#'
14718 else
14719 SIM_ENABLE_ARCH_lm32_TRUE='#'
14720 SIM_ENABLE_ARCH_lm32_FALSE=
14721 fi
14722
14723
14724 sim_enable_arch_m32c=false
14725 case "${targ}" in
14726 all|m32c-*-*)
14727 if test "${targ}" = "${target}"; then
14728 SIM_PRIMARY_TARGET=m32c
14729 fi
14730 ENABLE_SIM=yes
14731 as_fn_append SIM_ENABLED_ARCHES " m32c"
14732
14733 ac_config_files="$ac_config_files m32c/.gdbinit:common/gdbinit.in"
14734
14735
14736 sim_enable_arch_m32c=true
14737 ;;
14738 esac
14739
14740
14741
14742
14743 if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
14744 : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
14745 : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
14746 : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
14747
14748 fi
14749
14750 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
14751
14752 if ${sim_enable_arch_m32c}; then
14753 SIM_ENABLE_ARCH_m32c_TRUE=
14754 SIM_ENABLE_ARCH_m32c_FALSE='#'
14755 else
14756 SIM_ENABLE_ARCH_m32c_TRUE='#'
14757 SIM_ENABLE_ARCH_m32c_FALSE=
14758 fi
14759
14760
14761 sim_enable_arch_m32r=false
14762 case "${targ}" in
14763 all|m32r-*-*)
14764 if test "${targ}" = "${target}"; then
14765 SIM_PRIMARY_TARGET=m32r
14766 fi
14767 ENABLE_SIM=yes
14768 as_fn_append SIM_ENABLED_ARCHES " m32r"
14769
14770 ac_config_files="$ac_config_files m32r/.gdbinit:common/gdbinit.in"
14771
14772
14773 sim_enable_arch_m32r=true
14774 ;;
14775 esac
14776
14777
14778
14779
14780 if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
14781 : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
14782 : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
14783 : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
14784
14785 fi
14786
14787 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
14788
14789 if ${sim_enable_arch_m32r}; then
14790 SIM_ENABLE_ARCH_m32r_TRUE=
14791 SIM_ENABLE_ARCH_m32r_FALSE='#'
14792 else
14793 SIM_ENABLE_ARCH_m32r_TRUE='#'
14794 SIM_ENABLE_ARCH_m32r_FALSE=
14795 fi
14796
14797
14798 sim_enable_arch_m68hc11=false
14799 case "${targ}" in
14800 all|m68hc11-*-*|m6811-*-*)
14801 if test "${targ}" = "${target}"; then
14802 SIM_PRIMARY_TARGET=m68hc11
14803 fi
14804 ENABLE_SIM=yes
14805 as_fn_append SIM_ENABLED_ARCHES " m68hc11"
14806
14807 ac_config_files="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in"
14808
14809
14810 sim_enable_arch_m68hc11=true
14811 ;;
14812 esac
14813
14814
14815
14816
14817 if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
14818 : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
14819 : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
14820 : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
14821
14822 fi
14823
14824 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
14825
14826 if ${sim_enable_arch_m68hc11}; then
14827 SIM_ENABLE_ARCH_m68hc11_TRUE=
14828 SIM_ENABLE_ARCH_m68hc11_FALSE='#'
14829 else
14830 SIM_ENABLE_ARCH_m68hc11_TRUE='#'
14831 SIM_ENABLE_ARCH_m68hc11_FALSE=
14832 fi
14833
14834
14835 sim_enable_arch_mcore=false
14836 case "${targ}" in
14837 all|mcore-*-*)
14838 if test "${targ}" = "${target}"; then
14839 SIM_PRIMARY_TARGET=mcore
14840 fi
14841 ENABLE_SIM=yes
14842 as_fn_append SIM_ENABLED_ARCHES " mcore"
14843
14844 ac_config_files="$ac_config_files mcore/.gdbinit:common/gdbinit.in"
14845
14846
14847 sim_enable_arch_mcore=true
14848 ;;
14849 esac
14850
14851
14852
14853
14854 if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
14855 : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
14856 : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
14857 : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
14858
14859 fi
14860
14861 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
14862
14863 if ${sim_enable_arch_mcore}; then
14864 SIM_ENABLE_ARCH_mcore_TRUE=
14865 SIM_ENABLE_ARCH_mcore_FALSE='#'
14866 else
14867 SIM_ENABLE_ARCH_mcore_TRUE='#'
14868 SIM_ENABLE_ARCH_mcore_FALSE=
14869 fi
14870
14871
14872 sim_enable_arch_microblaze=false
14873 case "${targ}" in
14874 all|microblaze*-*-*)
14875 if test "${targ}" = "${target}"; then
14876 SIM_PRIMARY_TARGET=microblaze
14877 fi
14878 ENABLE_SIM=yes
14879 as_fn_append SIM_ENABLED_ARCHES " microblaze"
14880
14881 ac_config_files="$ac_config_files microblaze/.gdbinit:common/gdbinit.in"
14882
14883
14884 sim_enable_arch_microblaze=true
14885 ;;
14886 esac
14887
14888
14889
14890
14891 if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
14892 : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
14893 : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
14894 : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
14895
14896 fi
14897
14898 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
14899
14900 if ${sim_enable_arch_microblaze}; then
14901 SIM_ENABLE_ARCH_microblaze_TRUE=
14902 SIM_ENABLE_ARCH_microblaze_FALSE='#'
14903 else
14904 SIM_ENABLE_ARCH_microblaze_TRUE='#'
14905 SIM_ENABLE_ARCH_microblaze_FALSE=
14906 fi
14907
14908
14909 sim_enable_arch_mips=false
14910 case "${targ}" in
14911 all|mips*-*-*)
14912 if test "${targ}" = "${target}"; then
14913 SIM_PRIMARY_TARGET=mips
14914 fi
14915 ENABLE_SIM=yes
14916 as_fn_append SIM_ENABLED_ARCHES " mips"
14917
14918 ac_config_files="$ac_config_files mips/.gdbinit:common/gdbinit.in"
14919
14920
14921 sim_enable_arch_mips=true
14922 ;;
14923 esac
14924
14925
14926
14927
14928 if test "$SIM_PRIMARY_TARGET" = "mips"; then :
14929 : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
14930 : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
14931 : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
14932
14933 fi
14934
14935 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
14936
14937 if ${sim_enable_arch_mips}; then
14938 SIM_ENABLE_ARCH_mips_TRUE=
14939 SIM_ENABLE_ARCH_mips_FALSE='#'
14940 else
14941 SIM_ENABLE_ARCH_mips_TRUE='#'
14942 SIM_ENABLE_ARCH_mips_FALSE=
14943 fi
14944
14945
14946 sim_enable_arch_mn10300=false
14947 case "${targ}" in
14948 all|mn10300*-*-*)
14949 if test "${targ}" = "${target}"; then
14950 SIM_PRIMARY_TARGET=mn10300
14951 fi
14952 ENABLE_SIM=yes
14953 as_fn_append SIM_ENABLED_ARCHES " mn10300"
14954
14955 ac_config_files="$ac_config_files mn10300/.gdbinit:common/gdbinit.in"
14956
14957
14958 sim_enable_arch_mn10300=true
14959 ;;
14960 esac
14961
14962
14963
14964
14965 if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
14966 : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
14967 : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
14968 : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
14969
14970 fi
14971
14972 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
14973
14974 if ${sim_enable_arch_mn10300}; then
14975 SIM_ENABLE_ARCH_mn10300_TRUE=
14976 SIM_ENABLE_ARCH_mn10300_FALSE='#'
14977 else
14978 SIM_ENABLE_ARCH_mn10300_TRUE='#'
14979 SIM_ENABLE_ARCH_mn10300_FALSE=
14980 fi
14981
14982
14983 sim_enable_arch_moxie=false
14984 case "${targ}" in
14985 all|moxie-*-*)
14986 if test "${targ}" = "${target}"; then
14987 SIM_PRIMARY_TARGET=moxie
14988 fi
14989 ENABLE_SIM=yes
14990 as_fn_append SIM_ENABLED_ARCHES " moxie"
14991
14992 ac_config_files="$ac_config_files moxie/.gdbinit:common/gdbinit.in"
14993
14994
14995 sim_enable_arch_moxie=true
14996 ;;
14997 esac
14998
14999
15000
15001
15002 if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
15003 : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
15004 : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
15005 : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
15006
15007 fi
15008
15009 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
15010
15011 if ${sim_enable_arch_moxie}; then
15012 SIM_ENABLE_ARCH_moxie_TRUE=
15013 SIM_ENABLE_ARCH_moxie_FALSE='#'
15014 else
15015 SIM_ENABLE_ARCH_moxie_TRUE='#'
15016 SIM_ENABLE_ARCH_moxie_FALSE=
15017 fi
15018
15019
15020 sim_enable_arch_msp430=false
15021 case "${targ}" in
15022 all|msp430*-*-*)
15023 if test "${targ}" = "${target}"; then
15024 SIM_PRIMARY_TARGET=msp430
15025 fi
15026 ENABLE_SIM=yes
15027 as_fn_append SIM_ENABLED_ARCHES " msp430"
15028
15029 ac_config_files="$ac_config_files msp430/.gdbinit:common/gdbinit.in"
15030
15031
15032 sim_enable_arch_msp430=true
15033 ;;
15034 esac
15035
15036
15037
15038
15039 if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
15040 : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
15041 : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
15042 : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
15043
15044 fi
15045
15046 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15047
15048 if ${sim_enable_arch_msp430}; then
15049 SIM_ENABLE_ARCH_msp430_TRUE=
15050 SIM_ENABLE_ARCH_msp430_FALSE='#'
15051 else
15052 SIM_ENABLE_ARCH_msp430_TRUE='#'
15053 SIM_ENABLE_ARCH_msp430_FALSE=
15054 fi
15055
15056
15057 sim_enable_arch_or1k=false
15058 case "${targ}" in
15059 all|or1k*-*-*)
15060 if test "${targ}" = "${target}"; then
15061 SIM_PRIMARY_TARGET=or1k
15062 fi
15063 ENABLE_SIM=yes
15064 as_fn_append SIM_ENABLED_ARCHES " or1k"
15065
15066 ac_config_files="$ac_config_files or1k/.gdbinit:common/gdbinit.in"
15067
15068
15069 sim_enable_arch_or1k=true
15070 ;;
15071 esac
15072
15073
15074
15075
15076 if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
15077 : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
15078 : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
15079 : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
15080
15081 fi
15082
15083 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15084
15085 if ${sim_enable_arch_or1k}; then
15086 SIM_ENABLE_ARCH_or1k_TRUE=
15087 SIM_ENABLE_ARCH_or1k_FALSE='#'
15088 else
15089 SIM_ENABLE_ARCH_or1k_TRUE='#'
15090 SIM_ENABLE_ARCH_or1k_FALSE=
15091 fi
15092
15093
15094 sim_enable_arch_ppc=false
15095 case "${targ}" in
15096 all|powerpc*-*-*)
15097 if test "${targ}" = "${target}"; then
15098 SIM_PRIMARY_TARGET=ppc
15099 fi
15100 ENABLE_SIM=yes
15101 as_fn_append SIM_ENABLED_ARCHES " ppc"
15102
15103
15104 subdirs="$subdirs ppc"
15105
15106
15107 ac_config_files="$ac_config_files ppc/.gdbinit:common/gdbinit.in"
15108
15109
15110 sim_enable_arch_ppc=true
15111 ;;
15112 esac
15113
15114
15115
15116
15117 if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
15118 : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
15119 : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
15120 : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
15121
15122 fi
15123
15124 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15125
15126 if ${sim_enable_arch_ppc}; then
15127 SIM_ENABLE_ARCH_ppc_TRUE=
15128 SIM_ENABLE_ARCH_ppc_FALSE='#'
15129 else
15130 SIM_ENABLE_ARCH_ppc_TRUE='#'
15131 SIM_ENABLE_ARCH_ppc_FALSE=
15132 fi
15133
15134
15135 sim_enable_arch_pru=false
15136 case "${targ}" in
15137 all|pru*-*-*)
15138 if test "${targ}" = "${target}"; then
15139 SIM_PRIMARY_TARGET=pru
15140 fi
15141 ENABLE_SIM=yes
15142 as_fn_append SIM_ENABLED_ARCHES " pru"
15143
15144 ac_config_files="$ac_config_files pru/.gdbinit:common/gdbinit.in"
15145
15146
15147 sim_enable_arch_pru=true
15148 ;;
15149 esac
15150
15151
15152
15153
15154 if test "$SIM_PRIMARY_TARGET" = "pru"; then :
15155 : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
15156 : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
15157 : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
15158
15159 fi
15160
15161 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15162
15163 if ${sim_enable_arch_pru}; then
15164 SIM_ENABLE_ARCH_pru_TRUE=
15165 SIM_ENABLE_ARCH_pru_FALSE='#'
15166 else
15167 SIM_ENABLE_ARCH_pru_TRUE='#'
15168 SIM_ENABLE_ARCH_pru_FALSE=
15169 fi
15170
15171
15172 sim_enable_arch_riscv=false
15173 case "${targ}" in
15174 all|riscv*-*-*)
15175 if test "${targ}" = "${target}"; then
15176 SIM_PRIMARY_TARGET=riscv
15177 fi
15178 ENABLE_SIM=yes
15179 as_fn_append SIM_ENABLED_ARCHES " riscv"
15180
15181 ac_config_files="$ac_config_files riscv/.gdbinit:common/gdbinit.in"
15182
15183
15184 sim_enable_arch_riscv=true
15185 ;;
15186 esac
15187
15188
15189
15190
15191 if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
15192 : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
15193 : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
15194 : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
15195
15196 fi
15197
15198 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15199
15200 if ${sim_enable_arch_riscv}; then
15201 SIM_ENABLE_ARCH_riscv_TRUE=
15202 SIM_ENABLE_ARCH_riscv_FALSE='#'
15203 else
15204 SIM_ENABLE_ARCH_riscv_TRUE='#'
15205 SIM_ENABLE_ARCH_riscv_FALSE=
15206 fi
15207
15208
15209 sim_enable_arch_rl78=false
15210 case "${targ}" in
15211 all|rl78-*-*)
15212 if test "${targ}" = "${target}"; then
15213 SIM_PRIMARY_TARGET=rl78
15214 fi
15215 ENABLE_SIM=yes
15216 as_fn_append SIM_ENABLED_ARCHES " rl78"
15217
15218 ac_config_files="$ac_config_files rl78/.gdbinit:common/gdbinit.in"
15219
15220
15221 sim_enable_arch_rl78=true
15222 ;;
15223 esac
15224
15225
15226
15227
15228 if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
15229 : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
15230 : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
15231 : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
15232
15233 fi
15234
15235 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15236
15237 if ${sim_enable_arch_rl78}; then
15238 SIM_ENABLE_ARCH_rl78_TRUE=
15239 SIM_ENABLE_ARCH_rl78_FALSE='#'
15240 else
15241 SIM_ENABLE_ARCH_rl78_TRUE='#'
15242 SIM_ENABLE_ARCH_rl78_FALSE=
15243 fi
15244
15245
15246 sim_enable_arch_rx=false
15247 case "${targ}" in
15248 all|rx-*-*)
15249 if test "${targ}" = "${target}"; then
15250 SIM_PRIMARY_TARGET=rx
15251 fi
15252 ENABLE_SIM=yes
15253 as_fn_append SIM_ENABLED_ARCHES " rx"
15254
15255 ac_config_files="$ac_config_files rx/.gdbinit:common/gdbinit.in"
15256
15257
15258 sim_enable_arch_rx=true
15259 ;;
15260 esac
15261
15262
15263
15264
15265 if test "$SIM_PRIMARY_TARGET" = "rx"; then :
15266 : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
15267 : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
15268 : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
15269
15270 fi
15271
15272 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15273
15274 if ${sim_enable_arch_rx}; then
15275 SIM_ENABLE_ARCH_rx_TRUE=
15276 SIM_ENABLE_ARCH_rx_FALSE='#'
15277 else
15278 SIM_ENABLE_ARCH_rx_TRUE='#'
15279 SIM_ENABLE_ARCH_rx_FALSE=
15280 fi
15281
15282
15283 sim_enable_arch_sh=false
15284 case "${targ}" in
15285 all|sh*-*-*)
15286 if test "${targ}" = "${target}"; then
15287 SIM_PRIMARY_TARGET=sh
15288 fi
15289 ENABLE_SIM=yes
15290 as_fn_append SIM_ENABLED_ARCHES " sh"
15291
15292 ac_config_files="$ac_config_files sh/.gdbinit:common/gdbinit.in"
15293
15294
15295 sim_enable_arch_sh=true
15296 ;;
15297 esac
15298
15299
15300
15301
15302 if test "$SIM_PRIMARY_TARGET" = "sh"; then :
15303 : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
15304 : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
15305 : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
15306
15307 fi
15308
15309 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
15310
15311 if ${sim_enable_arch_sh}; then
15312 SIM_ENABLE_ARCH_sh_TRUE=
15313 SIM_ENABLE_ARCH_sh_FALSE='#'
15314 else
15315 SIM_ENABLE_ARCH_sh_TRUE='#'
15316 SIM_ENABLE_ARCH_sh_FALSE=
15317 fi
15318
15319
15320 sim_enable_arch_erc32=false
15321 case "${targ}" in
15322 all|sparc-*-*)
15323 if test "${targ}" = "${target}"; then
15324 SIM_PRIMARY_TARGET=erc32
15325 fi
15326 ENABLE_SIM=yes
15327 as_fn_append SIM_ENABLED_ARCHES " erc32"
15328
15329 ac_config_files="$ac_config_files erc32/.gdbinit:common/gdbinit.in"
15330
15331
15332 sim_enable_arch_erc32=true
15333 ;;
15334 esac
15335
15336
15337
15338
15339 if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
15340 : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
15341 : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
15342 : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
15343
15344 fi
15345
15346 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
15347
15348 if ${sim_enable_arch_erc32}; then
15349 SIM_ENABLE_ARCH_erc32_TRUE=
15350 SIM_ENABLE_ARCH_erc32_FALSE='#'
15351 else
15352 SIM_ENABLE_ARCH_erc32_TRUE='#'
15353 SIM_ENABLE_ARCH_erc32_FALSE=
15354 fi
15355
15356
15357 sim_enable_arch_v850=false
15358 case "${targ}" in
15359 all|v850*-*-*)
15360 if test "${targ}" = "${target}"; then
15361 SIM_PRIMARY_TARGET=v850
15362 fi
15363 ENABLE_SIM=yes
15364 as_fn_append SIM_ENABLED_ARCHES " v850"
15365
15366 ac_config_files="$ac_config_files v850/.gdbinit:common/gdbinit.in"
15367
15368
15369 sim_enable_arch_v850=true
15370 ;;
15371 esac
15372
15373
15374
15375
15376 if test "$SIM_PRIMARY_TARGET" = "v850"; then :
15377 : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
15378 : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
15379 : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
15380
15381 fi
15382
15383 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
15384
15385 if ${sim_enable_arch_v850}; then
15386 SIM_ENABLE_ARCH_v850_TRUE=
15387 SIM_ENABLE_ARCH_v850_FALSE='#'
15388 else
15389 SIM_ENABLE_ARCH_v850_TRUE='#'
15390 SIM_ENABLE_ARCH_v850_FALSE=
15391 fi
15392
15393
15394 done
15395
15396 if test "x${enable_example_sims}" = xyes; then
15397
15398
15399
15400
15401 : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
15402 : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
15403 : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
15404
15405 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
15406
15407 ENABLE_SIM=yes
15408 as_fn_append SIM_ENABLED_ARCHES " example-synacor"
15409
15410 ac_config_files="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in"
15411
15412
15413 fi
15414 if test "${enable_example_sims}" = "yes"; then
15415 SIM_ENABLE_ARCH_examples_TRUE=
15416 SIM_ENABLE_ARCH_examples_FALSE='#'
15417 else
15418 SIM_ENABLE_ARCH_examples_TRUE='#'
15419 SIM_ENABLE_ARCH_examples_FALSE=
15420 fi
15421
15422 fi
15423 if test "$ENABLE_SIM" = "yes"; then
15424 ENABLE_SIM_TRUE=
15425 ENABLE_SIM_FALSE='#'
15426 else
15427 ENABLE_SIM_TRUE='#'
15428 ENABLE_SIM_FALSE=
15429 fi
15430
15431
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
15433 $as_echo_n "checking whether to force sim alignment... " >&6; }
15434 sim_alignment=
15435 # Check whether --enable-sim-alignment was given.
15436 if test "${enable_sim_alignment+set}" = set; then :
15437 enableval=$enable_sim_alignment; case "${enableval}" in
15438 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
15439 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
15440 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
15441 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
15442 esac
15443 fi
15444
15445 cat >>confdefs.h <<_ACEOF
15446 #define WITH_ALIGNMENT ${sim_alignment:-0}
15447 _ACEOF
15448
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15450 $as_echo "${sim_alignment:-no}" >&6; }
15451
15452
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
15454 $as_echo_n "checking whether to enable sim asserts... " >&6; }
15455 sim_assert="1"
15456 # Check whether --enable-sim-assert was given.
15457 if test "${enable_sim_assert+set}" = set; then :
15458 enableval=$enable_sim_assert; case "${enableval}" in
15459 yes) sim_assert="1";;
15460 no) sim_assert="0";;
15461 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
15462 esac
15463 fi
15464
15465 cat >>confdefs.h <<_ACEOF
15466 #define WITH_ASSERT $sim_assert
15467 _ACEOF
15468
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
15470 $as_echo "$sim_assert" >&6; }
15471
15472
15473 cgen_maint=no
15474 cgen=guile
15475 cgendir='$(srcdir)/../../cgen'
15476 # Check whether --enable-cgen-maint was given.
15477 if test "${enable_cgen_maint+set}" = set; then :
15478 enableval=$enable_cgen_maint; case "${enableval}" in
15479 yes) cgen_maint=yes ;;
15480 no) cgen_maint=no ;;
15481 *)
15482 # Argument is a directory where cgen can be found. In some
15483 # future world cgen could be installable, but right now this
15484 # is not the case. Instead we assume the directory is a path
15485 # to the cgen source tree.
15486 cgen_maint=yes
15487 if test -r ${enableval}/iformat.scm; then
15488 # This looks like a cgen source tree.
15489 cgendir=${enableval}
15490 else
15491 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
15492 fi
15493 ;;
15494 esac
15495 fi
15496 if test x${cgen_maint} != xno ; then
15497 CGEN_MAINT=''
15498 else
15499 CGEN_MAINT='#'
15500 fi
15501
15502
15503
15504
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
15506 $as_echo_n "checking for sim debug setting... " >&6; }
15507 sim_debug="0"
15508 # Check whether --enable-sim-debug was given.
15509 if test "${enable_sim_debug+set}" = set; then :
15510 enableval=$enable_sim_debug; case "${enableval}" in
15511 yes) sim_debug="7";;
15512 no) sim_debug="0";;
15513 *) sim_debug="($enableval)";;
15514 esac
15515 fi
15516 if test "$sim_debug" != "0"; then
15517
15518 cat >>confdefs.h <<_ACEOF
15519 #define DEBUG $sim_debug
15520 _ACEOF
15521
15522 fi
15523
15524 cat >>confdefs.h <<_ACEOF
15525 #define WITH_DEBUG $sim_debug
15526 _ACEOF
15527
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
15529 $as_echo "$sim_debug" >&6; }
15530
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
15532 $as_echo_n "checking whether to force sim endianness... " >&6; }
15533 sim_endian=
15534 # Check whether --enable-sim-endian was given.
15535 if test "${enable_sim_endian+set}" = set; then :
15536 enableval=$enable_sim_endian; case "${enableval}" in
15537 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
15538 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
15539 yes | no) ;;
15540 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
15541 esac
15542 fi
15543
15544 cat >>confdefs.h <<_ACEOF
15545 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
15546 _ACEOF
15547
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15549 $as_echo "${sim_alignment:-no}" >&6; }
15550
15551
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
15553 $as_echo_n "checking default sim environment setting... " >&6; }
15554 sim_environment="ALL_ENVIRONMENT"
15555 # Check whether --enable-sim-environment was given.
15556 if test "${enable_sim_environment+set}" = set; then :
15557 enableval=$enable_sim_environment; case "${enableval}" in
15558 all | ALL) sim_environment="ALL_ENVIRONMENT";;
15559 user | USER) sim_environment="USER_ENVIRONMENT";;
15560 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
15561 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
15562 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
15563 esac
15564 fi
15565
15566 cat >>confdefs.h <<_ACEOF
15567 #define WITH_ENVIRONMENT $sim_environment
15568 _ACEOF
15569
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
15571 $as_echo "$sim_environment" >&6; }
15572
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
15574 $as_echo_n "checking for sim hardware settings... " >&6; }
15575 # Check whether --enable-sim-hardware was given.
15576 if test "${enable_sim_hardware+set}" = set; then :
15577 enableval=$enable_sim_hardware;
15578 else
15579 enable_sim_hardware="yes"
15580 fi
15581
15582 sim_hw_sockser=
15583 if test "$enable_sim_hardware" = no; then
15584 sim_hw_cflags="-DWITH_HW=0"
15585 elif test "$enable_sim_hardware" = yes; then
15586 sim_hw_cflags="-DWITH_HW=1"
15587 sim_hw_sockser="dv-sockser.o"
15588 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
15589 else
15590 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
15591 fi
15592 if test "$enable_sim_hardware" = "yes"; then
15593 SIM_ENABLE_HW_TRUE=
15594 SIM_ENABLE_HW_FALSE='#'
15595 else
15596 SIM_ENABLE_HW_TRUE='#'
15597 SIM_ENABLE_HW_FALSE=
15598 fi
15599
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
15601 $as_echo "${enable_sim_hardware}" >&6; }
15602 SIM_HW_CFLAGS=$sim_hw_cflags
15603
15604 SIM_HW_SOCKSER=$sim_hw_sockser
15605
15606
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
15608 $as_echo_n "checking sim inline settings... " >&6; }
15609 sim_inline="-DDEFAULT_INLINE=0"
15610 # Check whether --enable-sim-inline was given.
15611 if test "${enable_sim_inline+set}" = set; then :
15612 enableval=$enable_sim_inline; sim_inline=""
15613 case "$enableval" in
15614 no) sim_inline="-DDEFAULT_INLINE=0";;
15615 0) sim_inline="-DDEFAULT_INLINE=0";;
15616 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
15617 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
15618 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15619 new_flag=""
15620 case "$x" in
15621 *_INLINE=*) new_flag="-D$x";;
15622 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
15623 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
15624 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
15625 esac
15626 if test x"$sim_inline" = x""; then
15627 sim_inline="$new_flag"
15628 else
15629 sim_inline="$sim_inline $new_flag"
15630 fi
15631 done;;
15632 esac
15633
15634 fi
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
15636 $as_echo "$sim_inline" >&6; }
15637 SIM_INLINE=$sim_inline
15638
15639
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
15641 $as_echo_n "checking for sim profile settings... " >&6; }
15642 profile="1"
15643 sim_profile="-1"
15644 # Check whether --enable-sim-profile was given.
15645 if test "${enable_sim_profile+set}" = set; then :
15646 enableval=$enable_sim_profile; case "${enableval}" in
15647 yes) profile="1" sim_profile="-1";;
15648 no) profile="0" sim_profile="0";;
15649 [-0-9]*)
15650 profile="(${enableval})" sim_profile="(${enableval})";;
15651 [a-z]*)
15652 profile="1"
15653 sim_profile=""
15654 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15655 if test x"$sim_profile" = x; then
15656 sim_profile="(PROFILE_$x"
15657 else
15658 sim_profile="${sim_profile}|PROFILE_$x"
15659 fi
15660 done
15661 sim_profile="$sim_profile)" ;;
15662 esac
15663 fi
15664
15665 cat >>confdefs.h <<_ACEOF
15666 #define PROFILE $profile
15667 _ACEOF
15668
15669
15670 cat >>confdefs.h <<_ACEOF
15671 #define WITH_PROFILE $sim_profile
15672 _ACEOF
15673
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
15675 $as_echo "$sim_profile" >&6; }
15676
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
15678 $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
15679 # Check whether --enable-sim-reserved-bits was given.
15680 if test "${enable_sim_reserved_bits+set}" = set; then :
15681 enableval=$enable_sim_reserved_bits; case "${enableval}" in
15682 yes|no) ;;
15683 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
15684 esac
15685 fi
15686
15687 if test "x${enable_sim_reserved_bits}" != xno; then
15688 sim_reserved_bits=1
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15690 $as_echo "yes" >&6; }
15691 else
15692 sim_reserved_bits=0
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15694 $as_echo "no" >&6; }
15695 fi
15696
15697 cat >>confdefs.h <<_ACEOF
15698 #define WITH_RESERVED_BITS $sim_reserved_bits
15699 _ACEOF
15700
15701
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
15703 $as_echo_n "checking for sim cache size... " >&6; }
15704 sim_scache="16384"
15705 # Check whether --enable-sim-scache was given.
15706 if test "${enable_sim_scache+set}" = set; then :
15707 enableval=$enable_sim_scache; case "${enableval}" in
15708 yes) ;;
15709 no) sim_scache="0";;
15710 [0-9]*) sim_scache="${enableval}";;
15711 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
15712 esac
15713 fi
15714
15715
15716 cat >>confdefs.h <<_ACEOF
15717 #define WITH_SCACHE $sim_scache
15718 _ACEOF
15719
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
15721 $as_echo "$sim_scache" >&6; }
15722
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of sim cpus to support" >&5
15724 $as_echo_n "checking number of sim cpus to support... " >&6; }
15725 default_sim_smp="0"
15726 sim_smp="$default_sim_smp"
15727 # Check whether --enable-sim-smp was given.
15728 if test "${enable_sim_smp+set}" = set; then :
15729 enableval=$enable_sim_smp; case "${enableval}" in
15730 yes) sim_smp="5";;
15731 no) sim_smp="0";;
15732 *) sim_smp="$enableval";;
15733 esac
15734 fi
15735 IGEN_FLAGS_SMP="-N ${sim_smp}"
15736
15737 if test "x$sim_smp" = x0; then :
15738
15739 else
15740
15741 cat >>confdefs.h <<_ACEOF
15742 #define WITH_SMP $sim_smp
15743 _ACEOF
15744
15745 fi
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_smp" >&5
15747 $as_echo "$sim_smp" >&6; }
15748
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
15750 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
15751 sim_stdio="0"
15752 # Check whether --enable-sim-stdio was given.
15753 if test "${enable_sim_stdio+set}" = set; then :
15754 enableval=$enable_sim_stdio; case "${enableval}" in
15755 yes) sim_stdio="DO_USE_STDIO";;
15756 no) sim_stdio="DONT_USE_STDIO";;
15757 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
15758 esac
15759 fi
15760
15761 cat >>confdefs.h <<_ACEOF
15762 #define WITH_STDIO $sim_stdio
15763 _ACEOF
15764
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
15766 $as_echo "$sim_stdio" >&6; }
15767
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
15769 $as_echo_n "checking for sim trace settings... " >&6; }
15770 sim_trace="~TRACE_debug"
15771 # Check whether --enable-sim-trace was given.
15772 if test "${enable_sim_trace+set}" = set; then :
15773 enableval=$enable_sim_trace; case "${enableval}" in
15774 yes) sim_trace="-1";;
15775 no) sim_trace="0";;
15776 [-0-9]*)
15777 sim_trace="'(${enableval})'";;
15778 [[:lower:]]*)
15779 sim_trace=""
15780 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15781 if test x"$sim_trace" = x; then
15782 sim_trace="(TRACE_$x"
15783 else
15784 sim_trace="${sim_trace}|TRACE_$x"
15785 fi
15786 done
15787 sim_trace="$sim_trace)" ;;
15788 esac
15789 fi
15790
15791 cat >>confdefs.h <<_ACEOF
15792 #define WITH_TRACE $sim_trace
15793 _ACEOF
15794
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
15796 $as_echo "$sim_trace" >&6; }
15797
15798
15799 # Check whether --enable-werror was given.
15800 if test "${enable_werror+set}" = set; then :
15801 enableval=$enable_werror; case "${enableval}" in
15802 yes | y) ERROR_ON_WARNING="yes" ;;
15803 no | n) ERROR_ON_WARNING="no" ;;
15804 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15805 esac
15806 fi
15807
15808
15809 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15810 ERROR_ON_WARNING=yes
15811 fi
15812
15813 WERROR_CFLAGS=""
15814 if test "${ERROR_ON_WARNING}" = yes ; then
15815 WERROR_CFLAGS="-Werror"
15816 fi
15817
15818 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith
15819 -Wno-unused -Wunused-value -Wunused-function
15820 -Wno-switch -Wno-char-subscripts
15821 -Wempty-body -Wunused-but-set-parameter
15822 -Wno-error=maybe-uninitialized
15823 -Wmissing-declarations
15824 -Wmissing-prototypes
15825 -Wdeclaration-after-statement -Wmissing-parameter-type
15826 -Wpointer-sign
15827 -Wold-style-declaration -Wold-style-definition
15828 "
15829
15830 # Enable -Wno-format by default when using gcc on mingw since many
15831 # GCC versions complain about %I64.
15832 case "${host}" in
15833 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
15834 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
15835 esac
15836
15837 # Check whether --enable-build-warnings was given.
15838 if test "${enable_build_warnings+set}" = set; then :
15839 enableval=$enable_build_warnings; case "${enableval}" in
15840 yes) ;;
15841 no) build_warnings="-w";;
15842 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15843 build_warnings="${build_warnings} ${t}";;
15844 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15845 build_warnings="${t} ${build_warnings}";;
15846 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15847 esac
15848 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15849 echo "Setting compiler warning flags = $build_warnings" 6>&1
15850 fi
15851 fi
15852 # Check whether --enable-sim-build-warnings was given.
15853 if test "${enable_sim_build_warnings+set}" = set; then :
15854 enableval=$enable_sim_build_warnings; case "${enableval}" in
15855 yes) ;;
15856 no) build_warnings="-w";;
15857 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15858 build_warnings="${build_warnings} ${t}";;
15859 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15860 build_warnings="${t} ${build_warnings}";;
15861 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15862 esac
15863 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15864 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15865 fi
15866 fi
15867 WARN_CFLAGS=""
15868 if test "x${build_warnings}" != x -a "x$GCC" = xyes
15869 then
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15871 $as_echo_n "checking compiler warning flags... " >&6; }
15872 # Separate out the -Werror flag as some files just cannot be
15873 # compiled with it enabled.
15874 for w in ${build_warnings}; do
15875 case $w in
15876 -Werr*) WERROR_CFLAGS=-Werror ;;
15877 *) # Check that GCC accepts it
15878 saved_CFLAGS="$CFLAGS"
15879 CFLAGS="$CFLAGS -Werror $w"
15880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881 /* end confdefs.h. */
15882
15883 int
15884 main ()
15885 {
15886
15887 ;
15888 return 0;
15889 }
15890 _ACEOF
15891 if ac_fn_c_try_compile "$LINENO"; then :
15892 WARN_CFLAGS="${WARN_CFLAGS} $w"
15893 fi
15894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895 CFLAGS="$saved_CFLAGS"
15896 esac
15897 done
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15899 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15900 fi
15901
15902
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
15904 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
15905 # Check whether --enable-sim-frv-trapdump was given.
15906 if test "${enable_sim_frv_trapdump+set}" = set; then :
15907 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
15908 yes|no) ;;
15909 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
15910 esac
15911 fi
15912
15913 if test "x${enable_sim_frv_trapdump}" = xyes; then
15914 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15916 $as_echo "yes" >&6; }
15917 else
15918 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15920 $as_echo "no" >&6; }
15921 fi
15922
15923
15924
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips subtarget" >&5
15926 $as_echo_n "checking mips subtarget... " >&6; }
15927 SIM_MIPS_SUBTARGET=
15928 case ${target} in #(
15929 mips64vr*-*-*) :
15930 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15931 mips*tx39*) :
15932 SIM_MIPS_SUBTARGET="-DSUBTARGET_R3900=1" ;; #(
15933 mips*-sde-elf*) :
15934 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15935 mips*-mti-elf*) :
15936 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15937 mipsisa32*-*-*) :
15938 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15939 mipsisa64*-*-*) :
15940 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15941 *) :
15942 ;;
15943 esac
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SIM_MIPS_SUBTARGET:-none}" >&5
15945 $as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; }
15946
15947
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips bitsize" >&5
15949 $as_echo_n "checking mips bitsize... " >&6; }
15950 SIM_MIPS_BITSIZE=64
15951 case ${target} in #(
15952 mips*-sde-elf*) :
15953 SIM_MIPS_BITSIZE=64 ;; #(
15954 mips*-mti-elf*) :
15955 SIM_MIPS_BITSIZE=64 ;; #(
15956 mips64*-*-*) :
15957 SIM_MIPS_BITSIZE=64 ;; #(
15958 mips16*-*-*) :
15959 SIM_MIPS_BITSIZE=64 ;; #(
15960 mipsisa32*-*-*) :
15961 SIM_MIPS_BITSIZE=32 ;; #(
15962 mipsisa64*-*-*) :
15963 SIM_MIPS_BITSIZE=64 ;; #(
15964 mips*-*-*) :
15965 SIM_MIPS_BITSIZE=32 ;; #(
15966 *) :
15967 ;;
15968 esac
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_BITSIZE" >&5
15970 $as_echo "$SIM_MIPS_BITSIZE" >&6; }
15971
15972
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips fpu bitsize" >&5
15974 $as_echo_n "checking mips fpu bitsize... " >&6; }
15975 SIM_MIPS_FPU_BITSIZE=64
15976 case ${target} in #(
15977 mips*tx39*) :
15978 SIM_MIPS_FPU_BITSIZE=32 ;; #(
15979 mips*-sde-elf*) :
15980 SIM_MIPS_FPU_BITSIZE=64 ;; #(
15981 mips*-mti-elf*) :
15982 SIM_MIPS_FPU_BITSIZE=64 ;; #(
15983 mipsisa32*-*-*) :
15984 SIM_MIPS_FPU_BITSIZE=64 ;; #(
15985 mipsisa64*-*-*) :
15986 SIM_MIPS_FPU_BITSIZE=64 ;; #(
15987 mips*-*-*) :
15988 SIM_MIPS_FPU_BITSIZE=32 ;; #(
15989 *) :
15990 ;;
15991 esac
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_FPU_BITSIZE" >&5
15993 $as_echo "$SIM_MIPS_FPU_BITSIZE" >&6; }
15994
15995
15996 SIM_MIPS_GEN=SINGLE
15997 sim_mips_single_machine="-M mipsIV"
15998 sim_mips_m16_machine="-M mips16,mipsIII"
15999 sim_mips_single_filter="32,64,f"
16000 sim_mips_m16_filter="16"
16001 case ${target} in #(
16002 mips*tx39*) :
16003 SIM_MIPS_GEN=SINGLE
16004 sim_mips_single_filter="32,f"
16005 sim_mips_single_machine="-M r3900" ;; #(
16006 mips64vr41*) :
16007 SIM_MIPS_GEN=M16
16008 sim_mips_single_machine="-M vr4100"
16009 sim_mips_m16_machine="-M vr4100" ;; #(
16010 mips64*) :
16011 SIM_MIPS_GEN=MULTI
16012 sim_mips_multi_configs="\
16013 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
16014 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
16015 vr5000:mipsIV:32,64,f:mips4300,mips5000,mips8000\
16016 vr5400:mipsIV,vr5400:32,64,f:mips5400\
16017 vr5500:mipsIV,vr5500:32,64,f:mips5500"
16018 sim_mips_multi_default=mips5000 ;; #(
16019 mips*-sde-elf* | mips*-mti-elf*) :
16020 SIM_MIPS_GEN=MULTI
16021 sim_mips_multi_configs="\
16022 micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
16023 mipsisa64r2:mips64r2,mips16,mips16e,mdmx,dsp,dsp2,mips3d,smartmips:32,64,f:mipsisa32r2,mipsisa64r2,mipsisa32r5,mipsisa64r5\
16024 mipsisa64r6:mips64r6:32,64,f:mipsisa32r6,mipsisa64r6"
16025 sim_mips_multi_default=mipsisa64r2 ;; #(
16026 mips16*) :
16027 SIM_MIPS_GEN=M16 ;; #(
16028 mipsisa32r2*) :
16029 SIM_MIPS_GEN=MULTI
16030 sim_mips_multi_configs="\
16031 micromips:micromips32,micromipsdsp:32,f:mips_micromips\
16032 mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
16033 sim_mips_multi_default=mipsisa32r2 ;; #(
16034 mipsisa32r6*) :
16035 SIM_MIPS_GEN=SINGLE
16036 sim_mips_single_machine="-M mips32r6"
16037 sim_mips_single_filter="32,f" ;; #(
16038 mipsisa32*) :
16039 SIM_MIPS_GEN=M16
16040 sim_mips_single_machine="-M mips32,mips16,mips16e,smartmips"
16041 sim_mips_m16_machine="-M mips16,mips16e,mips32"
16042 sim_mips_single_filter="32,f" ;; #(
16043 mipsisa64r2*) :
16044 SIM_MIPS_GEN=M16
16045 sim_mips_single_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
16046 sim_mips_m16_machine="-M mips16,mips16e,mips64r2" ;; #(
16047 mipsisa64r6*) :
16048 SIM_MIPS_GEN=SINGLE
16049 sim_mips_single_machine="-M mips64r6" ;; #(
16050 mipsisa64sb1*) :
16051 SIM_MIPS_GEN=SINGLE
16052 sim_mips_single_machine="-M mips64,mips3d,sb1" ;; #(
16053 mipsisa64*) :
16054 SIM_MIPS_GEN=M16
16055 sim_mips_single_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
16056 sim_mips_m16_machine="-M mips16,mips16e,mips64" ;; #(
16057 mips*lsi*) :
16058 SIM_MIPS_GEN=M16
16059 sim_mips_single_machine="-M mipsIII,mips16"
16060 sim_mips_m16_machine="-M mips16,mipsIII"
16061 sim_mips_single_filter="32,f" ;; #(
16062 mips*) :
16063 SIM_MIPS_GEN=SINGLE
16064 sim_mips_single_filter="32,f" ;; #(
16065 *) :
16066 ;;
16067 esac
16068
16069 SIM_MIPS_IGEN_ITABLE_FLAGS=
16070 SIM_MIPS_MULTI_SRC=
16071 SIM_MIPS_MULTI_OBJ=
16072 SIM_MIPS_MULTI_IGEN_CONFIGS=
16073 if test "x$SIM_MIPS_GEN" = x"MULTI"; then :
16074 if test -z "${sim_mips_multi_configs}" || test -z "${sim_mips_multi_default}"; then :
16075 as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
16076 fi
16077
16078 as_dir=mips; as_fn_mkdir_p
16079 rm -f mips/multi-include.h mips/multi-run.c
16080 sim_mips_seen_default=no
16081
16082 cat << __EOF__ > mips/multi-run.c
16083 /* Main entry point for MULTI simulators.
16084 Copyright (C) 2003-2023 Free Software Foundation, Inc.
16085
16086 This program is free software; you can redistribute it and/or modify
16087 it under the terms of the GNU General Public License as published by
16088 the Free Software Foundation; either version 3 of the License, or
16089 (at your option) any later version.
16090
16091 This program is distributed in the hope that it will be useful,
16092 but WITHOUT ANY WARRANTY; without even the implied warranty of
16093 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16094 GNU General Public License for more details.
16095
16096 You should have received a copy of the GNU General Public License
16097 along with this program. If not, see <http://www.gnu.org/licenses/>.
16098
16099 --
16100
16101 This file was generated by sim/mips/configure. */
16102
16103 #include "sim-main.h"
16104 #include "multi-include.h"
16105 #include "bfd/elf-bfd.h"
16106 #include "bfd/elfxx-mips.h"
16107 #include "elf/mips.h"
16108
16109 #define SD sd
16110 #define CPU cpu
16111
16112 void
16113 sim_engine_run (SIM_DESC sd,
16114 int next_cpu_nr,
16115 int nr_cpus,
16116 int signal) /* ignore */
16117 {
16118 int mach;
16119
16120 if (STATE_ARCHITECTURE (sd) == NULL)
16121 mach = bfd_mach_${sim_mips_multi_default};
16122 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
16123 & EF_MIPS_ARCH_ASE_MICROMIPS)
16124 mach = bfd_mach_mips_micromips;
16125 else
16126 {
16127 mach = _bfd_elf_mips_mach (elf_elfheader (STATE_PROG_BFD (sd))->e_flags);
16128 if (!mach)
16129 mach = STATE_ARCHITECTURE (SD)->mach;
16130 }
16131
16132 switch (mach)
16133 {
16134 __EOF__
16135
16136 for fc in ${sim_mips_multi_configs}; do
16137
16138 c=`echo ${fc} | sed 's/:[^:]*$//'`
16139 bfdmachs=`echo ${fc} | sed 's/.*://'`
16140 name=`echo ${c} | sed 's/:.*//'`
16141 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
16142 filter=`echo ${c} | sed 's/.*://'`
16143
16144 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F ${filter} -M ${machine}"
16145
16146 case ${c} in #(
16147 *:*mips16*:*) :
16148 ws="m32 m16"
16149
16150 as_fn_append SIM_MIPS_MULTI_SRC " mips/m16${name}_run.c"
16151 as_fn_append SIM_MIPS_MULTI_OBJ " mips/m16${name}_run.o"
16152 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16"
16153 ;; #(
16154 *:*micromips32*:*) :
16155 ws="micromips_m32 micromips16 micromips32"
16156
16157 as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c"
16158 as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o"
16159 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32"
16160 ;; #(
16161 *:*micromips64*:*) :
16162 ws="micromips_m64 micromips16 micromips64"
16163
16164 as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c"
16165 as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o"
16166 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32,64"
16167 ;; #(
16168 *) :
16169 ws=m32 ;;
16170 esac
16171
16172 for w in ${ws}; do
16173 for base in engine icache idecode model semantics support; do
16174 as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.c"
16175 as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.h"
16176 as_fn_append SIM_MIPS_MULTI_OBJ " mips/${w}${name}_${base}.o"
16177 done
16178 as_fn_append SIM_MIPS_MULTI_IGEN_CONFIGS " ${w}${c}"
16179 done
16180
16181 echo "#include \"${w}${name}_engine.h\"" >> mips/multi-include.h
16182
16183 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
16184 echo " case bfd_mach_${mach}:" >> mips/multi-run.c
16185 if test "x$mach" = x"${sim_mips_multi_default}"; then :
16186 echo " default:" >> mips/multi-run.c
16187 sim_mips_seen_default=yes
16188
16189 fi
16190 done
16191 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
16192 >> mips/multi-run.c
16193 echo " break;" >> mips/multi-run.c
16194 done
16195
16196 if test "x$sim_mips_seen_default" = xno; then :
16197 as_fn_error $? "Error in configure.ac: \${sim_mips_multi_configs} doesn't have an entry for \${sim_mips_multi_default}" "$LINENO" 5
16198 fi
16199
16200 cat << __EOF__ >> mips/multi-run.c
16201 }
16202 }
16203 __EOF__
16204
16205 else
16206 SIM_MIPS_MULTI_SRC=mips/doesnt-exist.c
16207 SIM_MIPS_IGEN_ITABLE_FLAGS='$(SIM_MIPS_SINGLE_FLAGS)'
16208 if test "x$SIM_MIPS_GEN" = x"M16"; then :
16209 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS ' $(SIM_MIPS_M16_FLAGS)'
16210 fi
16211
16212 fi
16213 SIM_MIPS_SINGLE_FLAGS="-F ${sim_mips_single_filter} ${sim_mips_single_machine}"
16214 SIM_MIPS_M16_FLAGS="-F ${sim_mips_m16_filter} ${sim_mips_m16_machine}"
16215
16216
16217
16218
16219
16220
16221
16222 if test "$SIM_MIPS_GEN" = "SINGLE"; then
16223 SIM_MIPS_GEN_MODE_SINGLE_TRUE=
16224 SIM_MIPS_GEN_MODE_SINGLE_FALSE='#'
16225 else
16226 SIM_MIPS_GEN_MODE_SINGLE_TRUE='#'
16227 SIM_MIPS_GEN_MODE_SINGLE_FALSE=
16228 fi
16229
16230 if test "$SIM_MIPS_GEN" = "M16"; then
16231 SIM_MIPS_GEN_MODE_M16_TRUE=
16232 SIM_MIPS_GEN_MODE_M16_FALSE='#'
16233 else
16234 SIM_MIPS_GEN_MODE_M16_TRUE='#'
16235 SIM_MIPS_GEN_MODE_M16_FALSE=
16236 fi
16237
16238 if test "$SIM_MIPS_GEN" = "MULTI"; then
16239 SIM_MIPS_GEN_MODE_MULTI_TRUE=
16240 SIM_MIPS_GEN_MODE_MULTI_FALSE='#'
16241 else
16242 SIM_MIPS_GEN_MODE_MULTI_TRUE='#'
16243 SIM_MIPS_GEN_MODE_MULTI_FALSE=
16244 fi
16245
16246
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5
16248 $as_echo_n "checking riscv bitsize... " >&6; }
16249 SIM_RISCV_BITSIZE=64
16250 case $target in #(
16251 riscv32*) :
16252 SIM_RISCV_BITSIZE=32 ;; #(
16253 *) :
16254 ;;
16255 esac
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_RISCV_BITSIZE" >&5
16257 $as_echo "$SIM_RISCV_BITSIZE" >&6; }
16258
16259
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
16261 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
16262 # Check whether --enable-sim-rx-cycle-accurate was given.
16263 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
16264 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
16265 yes | no) ;;
16266 *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
16267 esac
16268 fi
16269
16270 if test "x${enable_sim_rx_cycle_accurate}" != xno; then
16271 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16273 $as_echo "yes" >&6; }
16274 else
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16276 $as_echo "no" >&6; }
16277 fi
16278
16279
16280
16281 ac_config_files="$ac_config_files arch-subdir.mk Makefile .gdbinit:gdbinit.in"
16282
16283 cat >confcache <<\_ACEOF
16284 # This file is a shell script that caches the results of configure
16285 # tests run on this system so they can be shared between configure
16286 # scripts and configure runs, see configure's option --config-cache.
16287 # It is not useful on other systems. If it contains results you don't
16288 # want to keep, you may remove or edit it.
16289 #
16290 # config.status only pays attention to the cache file if you give it
16291 # the --recheck option to rerun configure.
16292 #
16293 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16294 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16295 # following values.
16296
16297 _ACEOF
16298
16299 # The following way of writing the cache mishandles newlines in values,
16300 # but we know of no workaround that is simple, portable, and efficient.
16301 # So, we kill variables containing newlines.
16302 # Ultrix sh set writes to stderr and can't be redirected directly,
16303 # and sets the high bit in the cache file unless we assign to the vars.
16304 (
16305 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16306 eval ac_val=\$$ac_var
16307 case $ac_val in #(
16308 *${as_nl}*)
16309 case $ac_var in #(
16310 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16311 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16312 esac
16313 case $ac_var in #(
16314 _ | IFS | as_nl) ;; #(
16315 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16316 *) { eval $ac_var=; unset $ac_var;} ;;
16317 esac ;;
16318 esac
16319 done
16320
16321 (set) 2>&1 |
16322 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16323 *${as_nl}ac_space=\ *)
16324 # `set' does not quote correctly, so add quotes: double-quote
16325 # substitution turns \\\\ into \\, and sed turns \\ into \.
16326 sed -n \
16327 "s/'/'\\\\''/g;
16328 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16329 ;; #(
16330 *)
16331 # `set' quotes correctly as required by POSIX, so do not add quotes.
16332 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16333 ;;
16334 esac |
16335 sort
16336 ) |
16337 sed '
16338 /^ac_cv_env_/b end
16339 t clear
16340 :clear
16341 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16342 t end
16343 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16344 :end' >>confcache
16345 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16346 if test -w "$cache_file"; then
16347 if test "x$cache_file" != "x/dev/null"; then
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16349 $as_echo "$as_me: updating cache $cache_file" >&6;}
16350 if test ! -f "$cache_file" || test -h "$cache_file"; then
16351 cat confcache >"$cache_file"
16352 else
16353 case $cache_file in #(
16354 */* | ?:*)
16355 mv -f confcache "$cache_file"$$ &&
16356 mv -f "$cache_file"$$ "$cache_file" ;; #(
16357 *)
16358 mv -f confcache "$cache_file" ;;
16359 esac
16360 fi
16361 fi
16362 else
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16364 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16365 fi
16366 fi
16367 rm -f confcache
16368
16369 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16370 # Let make expand exec_prefix.
16371 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16372
16373 DEFS=-DHAVE_CONFIG_H
16374
16375 ac_libobjs=
16376 ac_ltlibobjs=
16377 U=
16378 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16379 # 1. Remove the extension, and $U if already installed.
16380 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16381 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16382 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16383 # will be set to the directory where LIBOBJS objects are built.
16384 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16385 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16386 done
16387 LIBOBJS=$ac_libobjs
16388
16389 LTLIBOBJS=$ac_ltlibobjs
16390
16391
16392
16393 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16394 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16396 fi
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16398 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16399 if test -n "$am_sleep_pid"; then
16400 # Hide warnings about reused PIDs.
16401 wait $am_sleep_pid 2>/dev/null
16402 fi
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16404 $as_echo "done" >&6; }
16405 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16406 as_fn_error $? "conditional \"AMDEP\" was never defined.
16407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16408 fi
16409 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16410 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16412 fi
16413 if test -n "$EXEEXT"; then
16414 am__EXEEXT_TRUE=
16415 am__EXEEXT_FALSE='#'
16416 else
16417 am__EXEEXT_TRUE='#'
16418 am__EXEEXT_FALSE=
16419 fi
16420
16421 if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
16422 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
16423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16424 fi
16425 if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
16426 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
16427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16428 fi
16429 if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
16430 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
16431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16432 fi
16433 if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
16434 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
16435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16436 fi
16437 if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
16438 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
16439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16440 fi
16441 if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
16442 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
16443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16444 fi
16445 if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
16446 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
16447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16448 fi
16449 if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
16450 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
16451 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16452 fi
16453 if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
16454 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
16455 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16456 fi
16457 if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
16458 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
16459 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16460 fi
16461 if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
16462 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
16463 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16464 fi
16465 if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
16466 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
16467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16468 fi
16469 if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
16470 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
16471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16472 fi
16473 if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
16474 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
16475 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16476 fi
16477 if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
16478 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
16479 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16480 fi
16481 if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
16482 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
16483 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16484 fi
16485 if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
16486 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
16487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16488 fi
16489 if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
16490 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
16491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16492 fi
16493 if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
16494 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
16495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16496 fi
16497 if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
16498 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
16499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16500 fi
16501 if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
16502 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
16503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16504 fi
16505 if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
16506 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
16507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16508 fi
16509 if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
16510 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
16511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16512 fi
16513 if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
16514 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
16515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16516 fi
16517 if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
16518 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
16519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16520 fi
16521 if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
16522 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
16523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16524 fi
16525 if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
16526 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
16527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16528 fi
16529 if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
16530 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
16531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16532 fi
16533 if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
16534 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
16535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16536 fi
16537 if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
16538 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
16539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16540 fi
16541 if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
16542 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
16543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16544 fi
16545 if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then
16546 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_examples\" was never defined.
16547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16548 fi
16549 if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
16550 as_fn_error $? "conditional \"ENABLE_SIM\" was never defined.
16551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16552 fi
16553 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
16554 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
16555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16556 fi
16557 if test -z "${SIM_MIPS_GEN_MODE_SINGLE_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_SINGLE_FALSE}"; then
16558 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_SINGLE\" was never defined.
16559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16560 fi
16561 if test -z "${SIM_MIPS_GEN_MODE_M16_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_M16_FALSE}"; then
16562 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_M16\" was never defined.
16563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16564 fi
16565 if test -z "${SIM_MIPS_GEN_MODE_MULTI_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_MULTI_FALSE}"; then
16566 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_MULTI\" was never defined.
16567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16568 fi
16569
16570 : "${CONFIG_STATUS=./config.status}"
16571 ac_write_fail=0
16572 ac_clean_files_save=$ac_clean_files
16573 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16575 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16576 as_write_fail=0
16577 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16578 #! $SHELL
16579 # Generated by $as_me.
16580 # Run this file to recreate the current configuration.
16581 # Compiler output produced by configure, useful for debugging
16582 # configure, is in config.log if it exists.
16583
16584 debug=false
16585 ac_cs_recheck=false
16586 ac_cs_silent=false
16587
16588 SHELL=\${CONFIG_SHELL-$SHELL}
16589 export SHELL
16590 _ASEOF
16591 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16592 ## -------------------- ##
16593 ## M4sh Initialization. ##
16594 ## -------------------- ##
16595
16596 # Be more Bourne compatible
16597 DUALCASE=1; export DUALCASE # for MKS sh
16598 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16599 emulate sh
16600 NULLCMD=:
16601 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16602 # is contrary to our usage. Disable this feature.
16603 alias -g '${1+"$@"}'='"$@"'
16604 setopt NO_GLOB_SUBST
16605 else
16606 case `(set -o) 2>/dev/null` in #(
16607 *posix*) :
16608 set -o posix ;; #(
16609 *) :
16610 ;;
16611 esac
16612 fi
16613
16614
16615 as_nl='
16616 '
16617 export as_nl
16618 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16619 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16620 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16621 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16622 # Prefer a ksh shell builtin over an external printf program on Solaris,
16623 # but without wasting forks for bash or zsh.
16624 if test -z "$BASH_VERSION$ZSH_VERSION" \
16625 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16626 as_echo='print -r --'
16627 as_echo_n='print -rn --'
16628 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16629 as_echo='printf %s\n'
16630 as_echo_n='printf %s'
16631 else
16632 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16633 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16634 as_echo_n='/usr/ucb/echo -n'
16635 else
16636 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16637 as_echo_n_body='eval
16638 arg=$1;
16639 case $arg in #(
16640 *"$as_nl"*)
16641 expr "X$arg" : "X\\(.*\\)$as_nl";
16642 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16643 esac;
16644 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16645 '
16646 export as_echo_n_body
16647 as_echo_n='sh -c $as_echo_n_body as_echo'
16648 fi
16649 export as_echo_body
16650 as_echo='sh -c $as_echo_body as_echo'
16651 fi
16652
16653 # The user is always right.
16654 if test "${PATH_SEPARATOR+set}" != set; then
16655 PATH_SEPARATOR=:
16656 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16657 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16658 PATH_SEPARATOR=';'
16659 }
16660 fi
16661
16662
16663 # IFS
16664 # We need space, tab and new line, in precisely that order. Quoting is
16665 # there to prevent editors from complaining about space-tab.
16666 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16667 # splitting by setting IFS to empty value.)
16668 IFS=" "" $as_nl"
16669
16670 # Find who we are. Look in the path if we contain no directory separator.
16671 as_myself=
16672 case $0 in #((
16673 *[\\/]* ) as_myself=$0 ;;
16674 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16675 for as_dir in $PATH
16676 do
16677 IFS=$as_save_IFS
16678 test -z "$as_dir" && as_dir=.
16679 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16680 done
16681 IFS=$as_save_IFS
16682
16683 ;;
16684 esac
16685 # We did not find ourselves, most probably we were run as `sh COMMAND'
16686 # in which case we are not to be found in the path.
16687 if test "x$as_myself" = x; then
16688 as_myself=$0
16689 fi
16690 if test ! -f "$as_myself"; then
16691 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16692 exit 1
16693 fi
16694
16695 # Unset variables that we do not need and which cause bugs (e.g. in
16696 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16697 # suppresses any "Segmentation fault" message there. '((' could
16698 # trigger a bug in pdksh 5.2.14.
16699 for as_var in BASH_ENV ENV MAIL MAILPATH
16700 do eval test x\${$as_var+set} = xset \
16701 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16702 done
16703 PS1='$ '
16704 PS2='> '
16705 PS4='+ '
16706
16707 # NLS nuisances.
16708 LC_ALL=C
16709 export LC_ALL
16710 LANGUAGE=C
16711 export LANGUAGE
16712
16713 # CDPATH.
16714 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16715
16716
16717 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16718 # ----------------------------------------
16719 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16720 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16721 # script with STATUS, using 1 if that was 0.
16722 as_fn_error ()
16723 {
16724 as_status=$1; test $as_status -eq 0 && as_status=1
16725 if test "$4"; then
16726 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16727 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16728 fi
16729 $as_echo "$as_me: error: $2" >&2
16730 as_fn_exit $as_status
16731 } # as_fn_error
16732
16733
16734 # as_fn_set_status STATUS
16735 # -----------------------
16736 # Set $? to STATUS, without forking.
16737 as_fn_set_status ()
16738 {
16739 return $1
16740 } # as_fn_set_status
16741
16742 # as_fn_exit STATUS
16743 # -----------------
16744 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16745 as_fn_exit ()
16746 {
16747 set +e
16748 as_fn_set_status $1
16749 exit $1
16750 } # as_fn_exit
16751
16752 # as_fn_unset VAR
16753 # ---------------
16754 # Portably unset VAR.
16755 as_fn_unset ()
16756 {
16757 { eval $1=; unset $1;}
16758 }
16759 as_unset=as_fn_unset
16760 # as_fn_append VAR VALUE
16761 # ----------------------
16762 # Append the text in VALUE to the end of the definition contained in VAR. Take
16763 # advantage of any shell optimizations that allow amortized linear growth over
16764 # repeated appends, instead of the typical quadratic growth present in naive
16765 # implementations.
16766 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16767 eval 'as_fn_append ()
16768 {
16769 eval $1+=\$2
16770 }'
16771 else
16772 as_fn_append ()
16773 {
16774 eval $1=\$$1\$2
16775 }
16776 fi # as_fn_append
16777
16778 # as_fn_arith ARG...
16779 # ------------------
16780 # Perform arithmetic evaluation on the ARGs, and store the result in the
16781 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16782 # must be portable across $(()) and expr.
16783 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16784 eval 'as_fn_arith ()
16785 {
16786 as_val=$(( $* ))
16787 }'
16788 else
16789 as_fn_arith ()
16790 {
16791 as_val=`expr "$@" || test $? -eq 1`
16792 }
16793 fi # as_fn_arith
16794
16795
16796 if expr a : '\(a\)' >/dev/null 2>&1 &&
16797 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16798 as_expr=expr
16799 else
16800 as_expr=false
16801 fi
16802
16803 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16804 as_basename=basename
16805 else
16806 as_basename=false
16807 fi
16808
16809 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16810 as_dirname=dirname
16811 else
16812 as_dirname=false
16813 fi
16814
16815 as_me=`$as_basename -- "$0" ||
16816 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16817 X"$0" : 'X\(//\)$' \| \
16818 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16819 $as_echo X/"$0" |
16820 sed '/^.*\/\([^/][^/]*\)\/*$/{
16821 s//\1/
16822 q
16823 }
16824 /^X\/\(\/\/\)$/{
16825 s//\1/
16826 q
16827 }
16828 /^X\/\(\/\).*/{
16829 s//\1/
16830 q
16831 }
16832 s/.*/./; q'`
16833
16834 # Avoid depending upon Character Ranges.
16835 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16836 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16837 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16838 as_cr_digits='0123456789'
16839 as_cr_alnum=$as_cr_Letters$as_cr_digits
16840
16841 ECHO_C= ECHO_N= ECHO_T=
16842 case `echo -n x` in #(((((
16843 -n*)
16844 case `echo 'xy\c'` in
16845 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16846 xy) ECHO_C='\c';;
16847 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16848 ECHO_T=' ';;
16849 esac;;
16850 *)
16851 ECHO_N='-n';;
16852 esac
16853
16854 rm -f conf$$ conf$$.exe conf$$.file
16855 if test -d conf$$.dir; then
16856 rm -f conf$$.dir/conf$$.file
16857 else
16858 rm -f conf$$.dir
16859 mkdir conf$$.dir 2>/dev/null
16860 fi
16861 if (echo >conf$$.file) 2>/dev/null; then
16862 if ln -s conf$$.file conf$$ 2>/dev/null; then
16863 as_ln_s='ln -s'
16864 # ... but there are two gotchas:
16865 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16866 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16867 # In both cases, we have to default to `cp -pR'.
16868 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16869 as_ln_s='cp -pR'
16870 elif ln conf$$.file conf$$ 2>/dev/null; then
16871 as_ln_s=ln
16872 else
16873 as_ln_s='cp -pR'
16874 fi
16875 else
16876 as_ln_s='cp -pR'
16877 fi
16878 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16879 rmdir conf$$.dir 2>/dev/null
16880
16881
16882 # as_fn_mkdir_p
16883 # -------------
16884 # Create "$as_dir" as a directory, including parents if necessary.
16885 as_fn_mkdir_p ()
16886 {
16887
16888 case $as_dir in #(
16889 -*) as_dir=./$as_dir;;
16890 esac
16891 test -d "$as_dir" || eval $as_mkdir_p || {
16892 as_dirs=
16893 while :; do
16894 case $as_dir in #(
16895 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16896 *) as_qdir=$as_dir;;
16897 esac
16898 as_dirs="'$as_qdir' $as_dirs"
16899 as_dir=`$as_dirname -- "$as_dir" ||
16900 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16901 X"$as_dir" : 'X\(//\)[^/]' \| \
16902 X"$as_dir" : 'X\(//\)$' \| \
16903 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16904 $as_echo X"$as_dir" |
16905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16906 s//\1/
16907 q
16908 }
16909 /^X\(\/\/\)[^/].*/{
16910 s//\1/
16911 q
16912 }
16913 /^X\(\/\/\)$/{
16914 s//\1/
16915 q
16916 }
16917 /^X\(\/\).*/{
16918 s//\1/
16919 q
16920 }
16921 s/.*/./; q'`
16922 test -d "$as_dir" && break
16923 done
16924 test -z "$as_dirs" || eval "mkdir $as_dirs"
16925 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16926
16927
16928 } # as_fn_mkdir_p
16929 if mkdir -p . 2>/dev/null; then
16930 as_mkdir_p='mkdir -p "$as_dir"'
16931 else
16932 test -d ./-p && rmdir ./-p
16933 as_mkdir_p=false
16934 fi
16935
16936
16937 # as_fn_executable_p FILE
16938 # -----------------------
16939 # Test if FILE is an executable regular file.
16940 as_fn_executable_p ()
16941 {
16942 test -f "$1" && test -x "$1"
16943 } # as_fn_executable_p
16944 as_test_x='test -x'
16945 as_executable_p=as_fn_executable_p
16946
16947 # Sed expression to map a string onto a valid CPP name.
16948 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16949
16950 # Sed expression to map a string onto a valid variable name.
16951 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16952
16953
16954 exec 6>&1
16955 ## ----------------------------------- ##
16956 ## Main body of $CONFIG_STATUS script. ##
16957 ## ----------------------------------- ##
16958 _ASEOF
16959 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16960
16961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16962 # Save the log message, to keep $0 and so on meaningful, and to
16963 # report actual input values of CONFIG_FILES etc. instead of their
16964 # values after options handling.
16965 ac_log="
16966 This file was extended by sim $as_me 0, which was
16967 generated by GNU Autoconf 2.69. Invocation command line was
16968
16969 CONFIG_FILES = $CONFIG_FILES
16970 CONFIG_HEADERS = $CONFIG_HEADERS
16971 CONFIG_LINKS = $CONFIG_LINKS
16972 CONFIG_COMMANDS = $CONFIG_COMMANDS
16973 $ $0 $@
16974
16975 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16976 "
16977
16978 _ACEOF
16979
16980 case $ac_config_files in *"
16981 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16982 esac
16983
16984 case $ac_config_headers in *"
16985 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16986 esac
16987
16988
16989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16990 # Files that config.status was made for.
16991 config_files="$ac_config_files"
16992 config_headers="$ac_config_headers"
16993 config_commands="$ac_config_commands"
16994
16995 _ACEOF
16996
16997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16998 ac_cs_usage="\
16999 \`$as_me' instantiates files and other configuration actions
17000 from templates according to the current configuration. Unless the files
17001 and actions are specified as TAGs, all are instantiated by default.
17002
17003 Usage: $0 [OPTION]... [TAG]...
17004
17005 -h, --help print this help, then exit
17006 -V, --version print version number and configuration settings, then exit
17007 --config print configuration, then exit
17008 -q, --quiet, --silent
17009 do not print progress messages
17010 -d, --debug don't remove temporary files
17011 --recheck update $as_me by reconfiguring in the same conditions
17012 --file=FILE[:TEMPLATE]
17013 instantiate the configuration file FILE
17014 --header=FILE[:TEMPLATE]
17015 instantiate the configuration header FILE
17016
17017 Configuration files:
17018 $config_files
17019
17020 Configuration headers:
17021 $config_headers
17022
17023 Configuration commands:
17024 $config_commands
17025
17026 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
17027 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
17028
17029 _ACEOF
17030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17031 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17032 ac_cs_version="\\
17033 sim config.status 0
17034 configured by $0, generated by GNU Autoconf 2.69,
17035 with options \\"\$ac_cs_config\\"
17036
17037 Copyright (C) 2012 Free Software Foundation, Inc.
17038 This config.status script is free software; the Free Software Foundation
17039 gives unlimited permission to copy, distribute and modify it."
17040
17041 ac_pwd='$ac_pwd'
17042 srcdir='$srcdir'
17043 INSTALL='$INSTALL'
17044 MKDIR_P='$MKDIR_P'
17045 AWK='$AWK'
17046 test -n "\$AWK" || AWK=awk
17047 _ACEOF
17048
17049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17050 # The default lists apply if the user does not specify any file.
17051 ac_need_defaults=:
17052 while test $# != 0
17053 do
17054 case $1 in
17055 --*=?*)
17056 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17057 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17058 ac_shift=:
17059 ;;
17060 --*=)
17061 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17062 ac_optarg=
17063 ac_shift=:
17064 ;;
17065 *)
17066 ac_option=$1
17067 ac_optarg=$2
17068 ac_shift=shift
17069 ;;
17070 esac
17071
17072 case $ac_option in
17073 # Handling of the options.
17074 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17075 ac_cs_recheck=: ;;
17076 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17077 $as_echo "$ac_cs_version"; exit ;;
17078 --config | --confi | --conf | --con | --co | --c )
17079 $as_echo "$ac_cs_config"; exit ;;
17080 --debug | --debu | --deb | --de | --d | -d )
17081 debug=: ;;
17082 --file | --fil | --fi | --f )
17083 $ac_shift
17084 case $ac_optarg in
17085 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17086 '') as_fn_error $? "missing file argument" ;;
17087 esac
17088 as_fn_append CONFIG_FILES " '$ac_optarg'"
17089 ac_need_defaults=false;;
17090 --header | --heade | --head | --hea )
17091 $ac_shift
17092 case $ac_optarg in
17093 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17094 esac
17095 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17096 ac_need_defaults=false;;
17097 --he | --h)
17098 # Conflict between --help and --header
17099 as_fn_error $? "ambiguous option: \`$1'
17100 Try \`$0 --help' for more information.";;
17101 --help | --hel | -h )
17102 $as_echo "$ac_cs_usage"; exit ;;
17103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17104 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17105 ac_cs_silent=: ;;
17106
17107 # This is an error.
17108 -*) as_fn_error $? "unrecognized option: \`$1'
17109 Try \`$0 --help' for more information." ;;
17110
17111 *) as_fn_append ac_config_targets " $1"
17112 ac_need_defaults=false ;;
17113
17114 esac
17115 shift
17116 done
17117
17118 ac_configure_extra_args=
17119
17120 if $ac_cs_silent; then
17121 exec 6>/dev/null
17122 ac_configure_extra_args="$ac_configure_extra_args --silent"
17123 fi
17124
17125 _ACEOF
17126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17127 if \$ac_cs_recheck; then
17128 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17129 shift
17130 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17131 CONFIG_SHELL='$SHELL'
17132 export CONFIG_SHELL
17133 exec "\$@"
17134 fi
17135
17136 _ACEOF
17137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17138 exec 5>>config.log
17139 {
17140 echo
17141 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17142 ## Running $as_me. ##
17143 _ASBOX
17144 $as_echo "$ac_log"
17145 } >&5
17146
17147 _ACEOF
17148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17149 #
17150 # INIT-COMMANDS
17151 #
17152
17153
17154 # The HP-UX ksh and POSIX shell print the target directory to stdout
17155 # if CDPATH is set.
17156 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17157
17158 sed_quote_subst='$sed_quote_subst'
17159 double_quote_subst='$double_quote_subst'
17160 delay_variable_subst='$delay_variable_subst'
17161 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17162 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17163 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17164 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17165 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17166 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17167 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17168 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17169 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17170 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17171 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17172 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17173 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17174 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17175 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17176 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17177 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17178 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17179 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17180 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17181 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17182 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17183 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17184 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17185 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17186 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17187 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17188 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17189 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17190 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17191 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17192 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17193 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17194 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17195 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17196 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17197 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17198 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17199 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17200 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17201 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17202 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17203 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17204 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17205 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17206 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17207 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17208 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17209 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"`'
17210 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17211 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17212 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17213 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17214 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17215 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17216 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17217 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17218 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17219 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17220 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17221 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17222 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17223 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17224 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17225 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17226 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17227 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17228 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17229 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17230 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17231 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17232 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17233 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17234 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17235 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17236 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17237 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17238 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17239 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17240 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17241 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17242 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17243 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17244 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17245 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17246 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17247 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17248 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17249 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17250 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17251 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17252 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17253 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17254 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17255 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17256 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17257 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17258 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17259 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17260 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17261 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17262 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17263 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17264 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17265 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17266 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17267 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17268 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17269 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17270 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17271 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17272 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17273 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17274 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17275 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17276 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17277 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17278 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17279 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17280 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17281
17282 LTCC='$LTCC'
17283 LTCFLAGS='$LTCFLAGS'
17284 compiler='$compiler_DEFAULT'
17285
17286 # A function that is used when there is no print builtin or printf.
17287 func_fallback_echo ()
17288 {
17289 eval 'cat <<_LTECHO_EOF
17290 \$1
17291 _LTECHO_EOF'
17292 }
17293
17294 # Quote evaled strings.
17295 for var in SHELL \
17296 ECHO \
17297 SED \
17298 GREP \
17299 EGREP \
17300 FGREP \
17301 LD \
17302 NM \
17303 LN_S \
17304 lt_SP2NL \
17305 lt_NL2SP \
17306 reload_flag \
17307 OBJDUMP \
17308 deplibs_check_method \
17309 file_magic_cmd \
17310 AR \
17311 AR_FLAGS \
17312 STRIP \
17313 RANLIB \
17314 CC \
17315 CFLAGS \
17316 compiler \
17317 lt_cv_sys_global_symbol_pipe \
17318 lt_cv_sys_global_symbol_to_cdecl \
17319 lt_cv_sys_global_symbol_to_c_name_address \
17320 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17321 lt_prog_compiler_no_builtin_flag \
17322 lt_prog_compiler_wl \
17323 lt_prog_compiler_pic \
17324 lt_prog_compiler_static \
17325 lt_cv_prog_compiler_c_o \
17326 need_locks \
17327 DSYMUTIL \
17328 NMEDIT \
17329 LIPO \
17330 OTOOL \
17331 OTOOL64 \
17332 shrext_cmds \
17333 export_dynamic_flag_spec \
17334 whole_archive_flag_spec \
17335 compiler_needs_object \
17336 with_gnu_ld \
17337 allow_undefined_flag \
17338 no_undefined_flag \
17339 hardcode_libdir_flag_spec \
17340 hardcode_libdir_flag_spec_ld \
17341 hardcode_libdir_separator \
17342 fix_srcfile_path \
17343 exclude_expsyms \
17344 include_expsyms \
17345 file_list_spec \
17346 variables_saved_for_relink \
17347 libname_spec \
17348 library_names_spec \
17349 soname_spec \
17350 install_override_mode \
17351 finish_eval \
17352 old_striplib \
17353 striplib; do
17354 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17355 *[\\\\\\\`\\"\\\$]*)
17356 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17357 ;;
17358 *)
17359 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17360 ;;
17361 esac
17362 done
17363
17364 # Double-quote double-evaled strings.
17365 for var in reload_cmds \
17366 old_postinstall_cmds \
17367 old_postuninstall_cmds \
17368 old_archive_cmds \
17369 extract_expsyms_cmds \
17370 old_archive_from_new_cmds \
17371 old_archive_from_expsyms_cmds \
17372 archive_cmds \
17373 archive_expsym_cmds \
17374 module_cmds \
17375 module_expsym_cmds \
17376 export_symbols_cmds \
17377 prelink_cmds \
17378 postinstall_cmds \
17379 postuninstall_cmds \
17380 finish_cmds \
17381 sys_lib_search_path_spec \
17382 sys_lib_dlsearch_path_spec; do
17383 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17384 *[\\\\\\\`\\"\\\$]*)
17385 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17386 ;;
17387 *)
17388 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17389 ;;
17390 esac
17391 done
17392
17393 ac_aux_dir='$ac_aux_dir'
17394 xsi_shell='$xsi_shell'
17395 lt_shell_append='$lt_shell_append'
17396
17397 # See if we are running on zsh, and set the options which allow our
17398 # commands through without removal of \ escapes INIT.
17399 if test -n "\${ZSH_VERSION+set}" ; then
17400 setopt NO_GLOB_SUBST
17401 fi
17402
17403
17404 PACKAGE='$PACKAGE'
17405 VERSION='$VERSION'
17406 TIMESTAMP='$TIMESTAMP'
17407 RM='$RM'
17408 ofile='$ofile'
17409
17410
17411
17412 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17413
17414 _ACEOF
17415
17416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17417
17418 # Handling of arguments.
17419 for ac_config_target in $ac_config_targets
17420 do
17421 case $ac_config_target in
17422 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17423 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17424 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17425 "aarch64/.gdbinit") CONFIG_FILES="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;;
17426 "arm/.gdbinit") CONFIG_FILES="$CONFIG_FILES arm/.gdbinit:common/gdbinit.in" ;;
17427 "avr/.gdbinit") CONFIG_FILES="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;;
17428 "bfin/.gdbinit") CONFIG_FILES="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;;
17429 "bpf/.gdbinit") CONFIG_FILES="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;;
17430 "cr16/.gdbinit") CONFIG_FILES="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;;
17431 "cris/.gdbinit") CONFIG_FILES="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;;
17432 "d10v/.gdbinit") CONFIG_FILES="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;;
17433 "frv/.gdbinit") CONFIG_FILES="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;;
17434 "ft32/.gdbinit") CONFIG_FILES="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;;
17435 "h8300/.gdbinit") CONFIG_FILES="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;;
17436 "iq2000/.gdbinit") CONFIG_FILES="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;;
17437 "lm32/.gdbinit") CONFIG_FILES="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;;
17438 "m32c/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;;
17439 "m32r/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;;
17440 "m68hc11/.gdbinit") CONFIG_FILES="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;;
17441 "mcore/.gdbinit") CONFIG_FILES="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;;
17442 "microblaze/.gdbinit") CONFIG_FILES="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;;
17443 "mips/.gdbinit") CONFIG_FILES="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;;
17444 "mn10300/.gdbinit") CONFIG_FILES="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;;
17445 "moxie/.gdbinit") CONFIG_FILES="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;;
17446 "msp430/.gdbinit") CONFIG_FILES="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;;
17447 "or1k/.gdbinit") CONFIG_FILES="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;;
17448 "ppc/.gdbinit") CONFIG_FILES="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;;
17449 "pru/.gdbinit") CONFIG_FILES="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;;
17450 "riscv/.gdbinit") CONFIG_FILES="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;;
17451 "rl78/.gdbinit") CONFIG_FILES="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;;
17452 "rx/.gdbinit") CONFIG_FILES="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;;
17453 "sh/.gdbinit") CONFIG_FILES="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;;
17454 "erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
17455 "v850/.gdbinit") CONFIG_FILES="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;;
17456 "example-synacor/.gdbinit") CONFIG_FILES="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;;
17457 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
17458 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17459 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17460
17461 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17462 esac
17463 done
17464
17465
17466 # If the user did not use the arguments to specify the items to instantiate,
17467 # then the envvar interface is used. Set only those that are not.
17468 # We use the long form for the default assignment because of an extremely
17469 # bizarre bug on SunOS 4.1.3.
17470 if $ac_need_defaults; then
17471 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17472 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17473 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17474 fi
17475
17476 # Have a temporary directory for convenience. Make it in the build tree
17477 # simply because there is no reason against having it here, and in addition,
17478 # creating and moving files from /tmp can sometimes cause problems.
17479 # Hook for its removal unless debugging.
17480 # Note that there is a small window in which the directory will not be cleaned:
17481 # after its creation but before its name has been assigned to `$tmp'.
17482 $debug ||
17483 {
17484 tmp= ac_tmp=
17485 trap 'exit_status=$?
17486 : "${ac_tmp:=$tmp}"
17487 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17488 ' 0
17489 trap 'as_fn_exit 1' 1 2 13 15
17490 }
17491 # Create a (secure) tmp directory for tmp files.
17492
17493 {
17494 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17495 test -d "$tmp"
17496 } ||
17497 {
17498 tmp=./conf$$-$RANDOM
17499 (umask 077 && mkdir "$tmp")
17500 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17501 ac_tmp=$tmp
17502
17503 # Set up the scripts for CONFIG_FILES section.
17504 # No need to generate them if there are no CONFIG_FILES.
17505 # This happens for instance with `./config.status config.h'.
17506 if test -n "$CONFIG_FILES"; then
17507
17508
17509 ac_cr=`echo X | tr X '\015'`
17510 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17511 # But we know of no other shell where ac_cr would be empty at this
17512 # point, so we can use a bashism as a fallback.
17513 if test "x$ac_cr" = x; then
17514 eval ac_cr=\$\'\\r\'
17515 fi
17516 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17517 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17518 ac_cs_awk_cr='\\r'
17519 else
17520 ac_cs_awk_cr=$ac_cr
17521 fi
17522
17523 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17524 _ACEOF
17525
17526
17527 {
17528 echo "cat >conf$$subs.awk <<_ACEOF" &&
17529 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17530 echo "_ACEOF"
17531 } >conf$$subs.sh ||
17532 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17533 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17534 ac_delim='%!_!# '
17535 for ac_last_try in false false false false false :; do
17536 . ./conf$$subs.sh ||
17537 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17538
17539 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17540 if test $ac_delim_n = $ac_delim_num; then
17541 break
17542 elif $ac_last_try; then
17543 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17544 else
17545 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17546 fi
17547 done
17548 rm -f conf$$subs.sh
17549
17550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17551 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17552 _ACEOF
17553 sed -n '
17554 h
17555 s/^/S["/; s/!.*/"]=/
17556 p
17557 g
17558 s/^[^!]*!//
17559 :repl
17560 t repl
17561 s/'"$ac_delim"'$//
17562 t delim
17563 :nl
17564 h
17565 s/\(.\{148\}\)..*/\1/
17566 t more1
17567 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17568 p
17569 n
17570 b repl
17571 :more1
17572 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17573 p
17574 g
17575 s/.\{148\}//
17576 t nl
17577 :delim
17578 h
17579 s/\(.\{148\}\)..*/\1/
17580 t more2
17581 s/["\\]/\\&/g; s/^/"/; s/$/"/
17582 p
17583 b
17584 :more2
17585 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17586 p
17587 g
17588 s/.\{148\}//
17589 t delim
17590 ' <conf$$subs.awk | sed '
17591 /^[^""]/{
17592 N
17593 s/\n//
17594 }
17595 ' >>$CONFIG_STATUS || ac_write_fail=1
17596 rm -f conf$$subs.awk
17597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17598 _ACAWK
17599 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17600 for (key in S) S_is_set[key] = 1
17601 FS = "\a"
17602
17603 }
17604 {
17605 line = $ 0
17606 nfields = split(line, field, "@")
17607 substed = 0
17608 len = length(field[1])
17609 for (i = 2; i < nfields; i++) {
17610 key = field[i]
17611 keylen = length(key)
17612 if (S_is_set[key]) {
17613 value = S[key]
17614 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17615 len += length(value) + length(field[++i])
17616 substed = 1
17617 } else
17618 len += 1 + keylen
17619 }
17620
17621 print line
17622 }
17623
17624 _ACAWK
17625 _ACEOF
17626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17627 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17628 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17629 else
17630 cat
17631 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17632 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17633 _ACEOF
17634
17635 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17636 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17637 # trailing colons and then remove the whole line if VPATH becomes empty
17638 # (actually we leave an empty line to preserve line numbers).
17639 if test "x$srcdir" = x.; then
17640 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17641 h
17642 s///
17643 s/^/:/
17644 s/[ ]*$/:/
17645 s/:\$(srcdir):/:/g
17646 s/:\${srcdir}:/:/g
17647 s/:@srcdir@:/:/g
17648 s/^:*//
17649 s/:*$//
17650 x
17651 s/\(=[ ]*\).*/\1/
17652 G
17653 s/\n//
17654 s/^[^=]*=[ ]*$//
17655 }'
17656 fi
17657
17658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17659 fi # test -n "$CONFIG_FILES"
17660
17661 # Set up the scripts for CONFIG_HEADERS section.
17662 # No need to generate them if there are no CONFIG_HEADERS.
17663 # This happens for instance with `./config.status Makefile'.
17664 if test -n "$CONFIG_HEADERS"; then
17665 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17666 BEGIN {
17667 _ACEOF
17668
17669 # Transform confdefs.h into an awk script `defines.awk', embedded as
17670 # here-document in config.status, that substitutes the proper values into
17671 # config.h.in to produce config.h.
17672
17673 # Create a delimiter string that does not exist in confdefs.h, to ease
17674 # handling of long lines.
17675 ac_delim='%!_!# '
17676 for ac_last_try in false false :; do
17677 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17678 if test -z "$ac_tt"; then
17679 break
17680 elif $ac_last_try; then
17681 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17682 else
17683 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17684 fi
17685 done
17686
17687 # For the awk script, D is an array of macro values keyed by name,
17688 # likewise P contains macro parameters if any. Preserve backslash
17689 # newline sequences.
17690
17691 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17692 sed -n '
17693 s/.\{148\}/&'"$ac_delim"'/g
17694 t rset
17695 :rset
17696 s/^[ ]*#[ ]*define[ ][ ]*/ /
17697 t def
17698 d
17699 :def
17700 s/\\$//
17701 t bsnl
17702 s/["\\]/\\&/g
17703 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17704 D["\1"]=" \3"/p
17705 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17706 d
17707 :bsnl
17708 s/["\\]/\\&/g
17709 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17710 D["\1"]=" \3\\\\\\n"\\/p
17711 t cont
17712 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17713 t cont
17714 d
17715 :cont
17716 n
17717 s/.\{148\}/&'"$ac_delim"'/g
17718 t clear
17719 :clear
17720 s/\\$//
17721 t bsnlc
17722 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17723 d
17724 :bsnlc
17725 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17726 b cont
17727 ' <confdefs.h | sed '
17728 s/'"$ac_delim"'/"\\\
17729 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17730
17731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17732 for (key in D) D_is_set[key] = 1
17733 FS = "\a"
17734 }
17735 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17736 line = \$ 0
17737 split(line, arg, " ")
17738 if (arg[1] == "#") {
17739 defundef = arg[2]
17740 mac1 = arg[3]
17741 } else {
17742 defundef = substr(arg[1], 2)
17743 mac1 = arg[2]
17744 }
17745 split(mac1, mac2, "(") #)
17746 macro = mac2[1]
17747 prefix = substr(line, 1, index(line, defundef) - 1)
17748 if (D_is_set[macro]) {
17749 # Preserve the white space surrounding the "#".
17750 print prefix "define", macro P[macro] D[macro]
17751 next
17752 } else {
17753 # Replace #undef with comments. This is necessary, for example,
17754 # in the case of _POSIX_SOURCE, which is predefined and required
17755 # on some systems where configure will not decide to define it.
17756 if (defundef == "undef") {
17757 print "/*", prefix defundef, macro, "*/"
17758 next
17759 }
17760 }
17761 }
17762 { print }
17763 _ACAWK
17764 _ACEOF
17765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17766 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17767 fi # test -n "$CONFIG_HEADERS"
17768
17769
17770 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17771 shift
17772 for ac_tag
17773 do
17774 case $ac_tag in
17775 :[FHLC]) ac_mode=$ac_tag; continue;;
17776 esac
17777 case $ac_mode$ac_tag in
17778 :[FHL]*:*);;
17779 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17780 :[FH]-) ac_tag=-:-;;
17781 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17782 esac
17783 ac_save_IFS=$IFS
17784 IFS=:
17785 set x $ac_tag
17786 IFS=$ac_save_IFS
17787 shift
17788 ac_file=$1
17789 shift
17790
17791 case $ac_mode in
17792 :L) ac_source=$1;;
17793 :[FH])
17794 ac_file_inputs=
17795 for ac_f
17796 do
17797 case $ac_f in
17798 -) ac_f="$ac_tmp/stdin";;
17799 *) # Look for the file first in the build tree, then in the source tree
17800 # (if the path is not absolute). The absolute path cannot be DOS-style,
17801 # because $ac_f cannot contain `:'.
17802 test -f "$ac_f" ||
17803 case $ac_f in
17804 [\\/$]*) false;;
17805 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17806 esac ||
17807 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17808 esac
17809 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17810 as_fn_append ac_file_inputs " '$ac_f'"
17811 done
17812
17813 # Let's still pretend it is `configure' which instantiates (i.e., don't
17814 # use $as_me), people would be surprised to read:
17815 # /* config.h. Generated by config.status. */
17816 configure_input='Generated from '`
17817 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17818 `' by configure.'
17819 if test x"$ac_file" != x-; then
17820 configure_input="$ac_file. $configure_input"
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17822 $as_echo "$as_me: creating $ac_file" >&6;}
17823 fi
17824 # Neutralize special characters interpreted by sed in replacement strings.
17825 case $configure_input in #(
17826 *\&* | *\|* | *\\* )
17827 ac_sed_conf_input=`$as_echo "$configure_input" |
17828 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17829 *) ac_sed_conf_input=$configure_input;;
17830 esac
17831
17832 case $ac_tag in
17833 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17834 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17835 esac
17836 ;;
17837 esac
17838
17839 ac_dir=`$as_dirname -- "$ac_file" ||
17840 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17841 X"$ac_file" : 'X\(//\)[^/]' \| \
17842 X"$ac_file" : 'X\(//\)$' \| \
17843 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17844 $as_echo X"$ac_file" |
17845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17846 s//\1/
17847 q
17848 }
17849 /^X\(\/\/\)[^/].*/{
17850 s//\1/
17851 q
17852 }
17853 /^X\(\/\/\)$/{
17854 s//\1/
17855 q
17856 }
17857 /^X\(\/\).*/{
17858 s//\1/
17859 q
17860 }
17861 s/.*/./; q'`
17862 as_dir="$ac_dir"; as_fn_mkdir_p
17863 ac_builddir=.
17864
17865 case "$ac_dir" in
17866 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17867 *)
17868 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17869 # A ".." for each directory in $ac_dir_suffix.
17870 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17871 case $ac_top_builddir_sub in
17872 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17873 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17874 esac ;;
17875 esac
17876 ac_abs_top_builddir=$ac_pwd
17877 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17878 # for backward compatibility:
17879 ac_top_builddir=$ac_top_build_prefix
17880
17881 case $srcdir in
17882 .) # We are building in place.
17883 ac_srcdir=.
17884 ac_top_srcdir=$ac_top_builddir_sub
17885 ac_abs_top_srcdir=$ac_pwd ;;
17886 [\\/]* | ?:[\\/]* ) # Absolute name.
17887 ac_srcdir=$srcdir$ac_dir_suffix;
17888 ac_top_srcdir=$srcdir
17889 ac_abs_top_srcdir=$srcdir ;;
17890 *) # Relative name.
17891 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17892 ac_top_srcdir=$ac_top_build_prefix$srcdir
17893 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17894 esac
17895 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17896
17897
17898 case $ac_mode in
17899 :F)
17900 #
17901 # CONFIG_FILE
17902 #
17903
17904 case $INSTALL in
17905 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17906 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17907 esac
17908 ac_MKDIR_P=$MKDIR_P
17909 case $MKDIR_P in
17910 [\\/$]* | ?:[\\/]* ) ;;
17911 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17912 esac
17913 _ACEOF
17914
17915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17916 # If the template does not know about datarootdir, expand it.
17917 # FIXME: This hack should be removed a few years after 2.60.
17918 ac_datarootdir_hack=; ac_datarootdir_seen=
17919 ac_sed_dataroot='
17920 /datarootdir/ {
17921 p
17922 q
17923 }
17924 /@datadir@/p
17925 /@docdir@/p
17926 /@infodir@/p
17927 /@localedir@/p
17928 /@mandir@/p'
17929 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17930 *datarootdir*) ac_datarootdir_seen=yes;;
17931 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17933 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17934 _ACEOF
17935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17936 ac_datarootdir_hack='
17937 s&@datadir@&$datadir&g
17938 s&@docdir@&$docdir&g
17939 s&@infodir@&$infodir&g
17940 s&@localedir@&$localedir&g
17941 s&@mandir@&$mandir&g
17942 s&\\\${datarootdir}&$datarootdir&g' ;;
17943 esac
17944 _ACEOF
17945
17946 # Neutralize VPATH when `$srcdir' = `.'.
17947 # Shell code in configure.ac might set extrasub.
17948 # FIXME: do we really want to maintain this feature?
17949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17950 ac_sed_extra="$ac_vpsub
17951 $extrasub
17952 _ACEOF
17953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17954 :t
17955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17956 s|@configure_input@|$ac_sed_conf_input|;t t
17957 s&@top_builddir@&$ac_top_builddir_sub&;t t
17958 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17959 s&@srcdir@&$ac_srcdir&;t t
17960 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17961 s&@top_srcdir@&$ac_top_srcdir&;t t
17962 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17963 s&@builddir@&$ac_builddir&;t t
17964 s&@abs_builddir@&$ac_abs_builddir&;t t
17965 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17966 s&@INSTALL@&$ac_INSTALL&;t t
17967 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17968 $ac_datarootdir_hack
17969 "
17970 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17971 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17972
17973 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17974 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17975 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17976 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17978 which seems to be undefined. Please make sure it is defined" >&5
17979 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17980 which seems to be undefined. Please make sure it is defined" >&2;}
17981
17982 rm -f "$ac_tmp/stdin"
17983 case $ac_file in
17984 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17985 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17986 esac \
17987 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17988 ;;
17989 :H)
17990 #
17991 # CONFIG_HEADER
17992 #
17993 if test x"$ac_file" != x-; then
17994 {
17995 $as_echo "/* $configure_input */" \
17996 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17997 } >"$ac_tmp/config.h" \
17998 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17999 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18001 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18002 else
18003 rm -f "$ac_file"
18004 mv "$ac_tmp/config.h" "$ac_file" \
18005 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18006 fi
18007 else
18008 $as_echo "/* $configure_input */" \
18009 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18010 || as_fn_error $? "could not create -" "$LINENO" 5
18011 fi
18012 # Compute "$ac_file"'s index in $config_headers.
18013 _am_arg="$ac_file"
18014 _am_stamp_count=1
18015 for _am_header in $config_headers :; do
18016 case $_am_header in
18017 $_am_arg | $_am_arg:* )
18018 break ;;
18019 * )
18020 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18021 esac
18022 done
18023 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18024 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18025 X"$_am_arg" : 'X\(//\)[^/]' \| \
18026 X"$_am_arg" : 'X\(//\)$' \| \
18027 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18028 $as_echo X"$_am_arg" |
18029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18030 s//\1/
18031 q
18032 }
18033 /^X\(\/\/\)[^/].*/{
18034 s//\1/
18035 q
18036 }
18037 /^X\(\/\/\)$/{
18038 s//\1/
18039 q
18040 }
18041 /^X\(\/\).*/{
18042 s//\1/
18043 q
18044 }
18045 s/.*/./; q'`/stamp-h$_am_stamp_count
18046 ;;
18047
18048 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18049 $as_echo "$as_me: executing $ac_file commands" >&6;}
18050 ;;
18051 esac
18052
18053
18054 case $ac_file$ac_mode in
18055 "libtool":C)
18056
18057 # See if we are running on zsh, and set the options which allow our
18058 # commands through without removal of \ escapes.
18059 if test -n "${ZSH_VERSION+set}" ; then
18060 setopt NO_GLOB_SUBST
18061 fi
18062
18063 cfgfile="${ofile}T"
18064 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18065 $RM "$cfgfile"
18066
18067 cat <<_LT_EOF >> "$cfgfile"
18068 #! $SHELL
18069
18070 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18071 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18073 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18074 #
18075 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18076 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18077 # Written by Gordon Matzigkeit, 1996
18078 #
18079 # This file is part of GNU Libtool.
18080 #
18081 # GNU Libtool is free software; you can redistribute it and/or
18082 # modify it under the terms of the GNU General Public License as
18083 # published by the Free Software Foundation; either version 2 of
18084 # the License, or (at your option) any later version.
18085 #
18086 # As a special exception to the GNU General Public License,
18087 # if you distribute this file as part of a program or library that
18088 # is built using GNU Libtool, you may include this file under the
18089 # same distribution terms that you use for the rest of that program.
18090 #
18091 # GNU Libtool is distributed in the hope that it will be useful,
18092 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18093 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18094 # GNU General Public License for more details.
18095 #
18096 # You should have received a copy of the GNU General Public License
18097 # along with GNU Libtool; see the file COPYING. If not, a copy
18098 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18099 # obtained by writing to the Free Software Foundation, Inc.,
18100 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18101
18102
18103 # The names of the tagged configurations supported by this script.
18104 available_tags=""
18105
18106 # ### BEGIN LIBTOOL CONFIG
18107
18108 # Which release of libtool.m4 was used?
18109 macro_version=$macro_version
18110 macro_revision=$macro_revision
18111
18112 # Whether or not to build shared libraries.
18113 build_libtool_libs=$enable_shared
18114
18115 # Whether or not to build static libraries.
18116 build_old_libs=$enable_static
18117
18118 # What type of objects to build.
18119 pic_mode=$pic_mode
18120
18121 # Whether or not to optimize for fast installation.
18122 fast_install=$enable_fast_install
18123
18124 # Shell to use when invoking shell scripts.
18125 SHELL=$lt_SHELL
18126
18127 # An echo program that protects backslashes.
18128 ECHO=$lt_ECHO
18129
18130 # The host system.
18131 host_alias=$host_alias
18132 host=$host
18133 host_os=$host_os
18134
18135 # The build system.
18136 build_alias=$build_alias
18137 build=$build
18138 build_os=$build_os
18139
18140 # A sed program that does not truncate output.
18141 SED=$lt_SED
18142
18143 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18144 Xsed="\$SED -e 1s/^X//"
18145
18146 # A grep program that handles long lines.
18147 GREP=$lt_GREP
18148
18149 # An ERE matcher.
18150 EGREP=$lt_EGREP
18151
18152 # A literal string matcher.
18153 FGREP=$lt_FGREP
18154
18155 # A BSD- or MS-compatible name lister.
18156 NM=$lt_NM
18157
18158 # Whether we need soft or hard links.
18159 LN_S=$lt_LN_S
18160
18161 # What is the maximum length of a command?
18162 max_cmd_len=$max_cmd_len
18163
18164 # Object file suffix (normally "o").
18165 objext=$ac_objext
18166
18167 # Executable file suffix (normally "").
18168 exeext=$exeext
18169
18170 # whether the shell understands "unset".
18171 lt_unset=$lt_unset
18172
18173 # turn spaces into newlines.
18174 SP2NL=$lt_lt_SP2NL
18175
18176 # turn newlines into spaces.
18177 NL2SP=$lt_lt_NL2SP
18178
18179 # An object symbol dumper.
18180 OBJDUMP=$lt_OBJDUMP
18181
18182 # Method to check whether dependent libraries are shared objects.
18183 deplibs_check_method=$lt_deplibs_check_method
18184
18185 # Command to use when deplibs_check_method == "file_magic".
18186 file_magic_cmd=$lt_file_magic_cmd
18187
18188 # The archiver.
18189 AR=$lt_AR
18190 AR_FLAGS=$lt_AR_FLAGS
18191
18192 # A symbol stripping program.
18193 STRIP=$lt_STRIP
18194
18195 # Commands used to install an old-style archive.
18196 RANLIB=$lt_RANLIB
18197 old_postinstall_cmds=$lt_old_postinstall_cmds
18198 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18199
18200 # Whether to use a lock for old archive extraction.
18201 lock_old_archive_extraction=$lock_old_archive_extraction
18202
18203 # A C compiler.
18204 LTCC=$lt_CC
18205
18206 # LTCC compiler flags.
18207 LTCFLAGS=$lt_CFLAGS
18208
18209 # Take the output of nm and produce a listing of raw symbols and C names.
18210 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18211
18212 # Transform the output of nm in a proper C declaration.
18213 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18214
18215 # Transform the output of nm in a C name address pair.
18216 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18217
18218 # Transform the output of nm in a C name address pair when lib prefix is needed.
18219 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18220
18221 # The name of the directory that contains temporary libtool files.
18222 objdir=$objdir
18223
18224 # Used to examine libraries when file_magic_cmd begins with "file".
18225 MAGIC_CMD=$MAGIC_CMD
18226
18227 # Must we lock files when doing compilation?
18228 need_locks=$lt_need_locks
18229
18230 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18231 DSYMUTIL=$lt_DSYMUTIL
18232
18233 # Tool to change global to local symbols on Mac OS X.
18234 NMEDIT=$lt_NMEDIT
18235
18236 # Tool to manipulate fat objects and archives on Mac OS X.
18237 LIPO=$lt_LIPO
18238
18239 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18240 OTOOL=$lt_OTOOL
18241
18242 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18243 OTOOL64=$lt_OTOOL64
18244
18245 # Old archive suffix (normally "a").
18246 libext=$libext
18247
18248 # Shared library suffix (normally ".so").
18249 shrext_cmds=$lt_shrext_cmds
18250
18251 # The commands to extract the exported symbol list from a shared archive.
18252 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18253
18254 # Variables whose values should be saved in libtool wrapper scripts and
18255 # restored at link time.
18256 variables_saved_for_relink=$lt_variables_saved_for_relink
18257
18258 # Do we need the "lib" prefix for modules?
18259 need_lib_prefix=$need_lib_prefix
18260
18261 # Do we need a version for libraries?
18262 need_version=$need_version
18263
18264 # Library versioning type.
18265 version_type=$version_type
18266
18267 # Shared library runtime path variable.
18268 runpath_var=$runpath_var
18269
18270 # Shared library path variable.
18271 shlibpath_var=$shlibpath_var
18272
18273 # Is shlibpath searched before the hard-coded library search path?
18274 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18275
18276 # Format of library name prefix.
18277 libname_spec=$lt_libname_spec
18278
18279 # List of archive names. First name is the real one, the rest are links.
18280 # The last name is the one that the linker finds with -lNAME
18281 library_names_spec=$lt_library_names_spec
18282
18283 # The coded name of the library, if different from the real name.
18284 soname_spec=$lt_soname_spec
18285
18286 # Permission mode override for installation of shared libraries.
18287 install_override_mode=$lt_install_override_mode
18288
18289 # Command to use after installation of a shared archive.
18290 postinstall_cmds=$lt_postinstall_cmds
18291
18292 # Command to use after uninstallation of a shared archive.
18293 postuninstall_cmds=$lt_postuninstall_cmds
18294
18295 # Commands used to finish a libtool library installation in a directory.
18296 finish_cmds=$lt_finish_cmds
18297
18298 # As "finish_cmds", except a single script fragment to be evaled but
18299 # not shown.
18300 finish_eval=$lt_finish_eval
18301
18302 # Whether we should hardcode library paths into libraries.
18303 hardcode_into_libs=$hardcode_into_libs
18304
18305 # Compile-time system search path for libraries.
18306 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18307
18308 # Run-time system search path for libraries.
18309 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18310
18311 # Whether dlopen is supported.
18312 dlopen_support=$enable_dlopen
18313
18314 # Whether dlopen of programs is supported.
18315 dlopen_self=$enable_dlopen_self
18316
18317 # Whether dlopen of statically linked programs is supported.
18318 dlopen_self_static=$enable_dlopen_self_static
18319
18320 # Commands to strip libraries.
18321 old_striplib=$lt_old_striplib
18322 striplib=$lt_striplib
18323
18324
18325 # The linker used to build libraries.
18326 LD=$lt_LD
18327
18328 # How to create reloadable object files.
18329 reload_flag=$lt_reload_flag
18330 reload_cmds=$lt_reload_cmds
18331
18332 # Commands used to build an old-style archive.
18333 old_archive_cmds=$lt_old_archive_cmds
18334
18335 # A language specific compiler.
18336 CC=$lt_compiler
18337
18338 # Is the compiler the GNU compiler?
18339 with_gcc=$GCC
18340
18341 # Compiler flag to turn off builtin functions.
18342 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18343
18344 # How to pass a linker flag through the compiler.
18345 wl=$lt_lt_prog_compiler_wl
18346
18347 # Additional compiler flags for building library objects.
18348 pic_flag=$lt_lt_prog_compiler_pic
18349
18350 # Compiler flag to prevent dynamic linking.
18351 link_static_flag=$lt_lt_prog_compiler_static
18352
18353 # Does compiler simultaneously support -c and -o options?
18354 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18355
18356 # Whether or not to add -lc for building shared libraries.
18357 build_libtool_need_lc=$archive_cmds_need_lc
18358
18359 # Whether or not to disallow shared libs when runtime libs are static.
18360 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18361
18362 # Compiler flag to allow reflexive dlopens.
18363 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18364
18365 # Compiler flag to generate shared objects directly from archives.
18366 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18367
18368 # Whether the compiler copes with passing no objects directly.
18369 compiler_needs_object=$lt_compiler_needs_object
18370
18371 # Create an old-style archive from a shared archive.
18372 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18373
18374 # Create a temporary old-style archive to link instead of a shared archive.
18375 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18376
18377 # Commands used to build a shared archive.
18378 archive_cmds=$lt_archive_cmds
18379 archive_expsym_cmds=$lt_archive_expsym_cmds
18380
18381 # Commands used to build a loadable module if different from building
18382 # a shared archive.
18383 module_cmds=$lt_module_cmds
18384 module_expsym_cmds=$lt_module_expsym_cmds
18385
18386 # Whether we are building with GNU ld or not.
18387 with_gnu_ld=$lt_with_gnu_ld
18388
18389 # Flag that allows shared libraries with undefined symbols to be built.
18390 allow_undefined_flag=$lt_allow_undefined_flag
18391
18392 # Flag that enforces no undefined symbols.
18393 no_undefined_flag=$lt_no_undefined_flag
18394
18395 # Flag to hardcode \$libdir into a binary during linking.
18396 # This must work even if \$libdir does not exist
18397 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18398
18399 # If ld is used when linking, flag to hardcode \$libdir into a binary
18400 # during linking. This must work even if \$libdir does not exist.
18401 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18402
18403 # Whether we need a single "-rpath" flag with a separated argument.
18404 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18405
18406 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18407 # DIR into the resulting binary.
18408 hardcode_direct=$hardcode_direct
18409
18410 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18411 # DIR into the resulting binary and the resulting library dependency is
18412 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18413 # library is relocated.
18414 hardcode_direct_absolute=$hardcode_direct_absolute
18415
18416 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18417 # into the resulting binary.
18418 hardcode_minus_L=$hardcode_minus_L
18419
18420 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18421 # into the resulting binary.
18422 hardcode_shlibpath_var=$hardcode_shlibpath_var
18423
18424 # Set to "yes" if building a shared library automatically hardcodes DIR
18425 # into the library and all subsequent libraries and executables linked
18426 # against it.
18427 hardcode_automatic=$hardcode_automatic
18428
18429 # Set to yes if linker adds runtime paths of dependent libraries
18430 # to runtime path list.
18431 inherit_rpath=$inherit_rpath
18432
18433 # Whether libtool must link a program against all its dependency libraries.
18434 link_all_deplibs=$link_all_deplibs
18435
18436 # Fix the shell variable \$srcfile for the compiler.
18437 fix_srcfile_path=$lt_fix_srcfile_path
18438
18439 # Set to "yes" if exported symbols are required.
18440 always_export_symbols=$always_export_symbols
18441
18442 # The commands to list exported symbols.
18443 export_symbols_cmds=$lt_export_symbols_cmds
18444
18445 # Symbols that should not be listed in the preloaded symbols.
18446 exclude_expsyms=$lt_exclude_expsyms
18447
18448 # Symbols that must always be exported.
18449 include_expsyms=$lt_include_expsyms
18450
18451 # Commands necessary for linking programs (against libraries) with templates.
18452 prelink_cmds=$lt_prelink_cmds
18453
18454 # Specify filename containing input files.
18455 file_list_spec=$lt_file_list_spec
18456
18457 # How to hardcode a shared library path into an executable.
18458 hardcode_action=$hardcode_action
18459
18460 # ### END LIBTOOL CONFIG
18461
18462 _LT_EOF
18463
18464 case $host_os in
18465 aix3*)
18466 cat <<\_LT_EOF >> "$cfgfile"
18467 # AIX sometimes has problems with the GCC collect2 program. For some
18468 # reason, if we set the COLLECT_NAMES environment variable, the problems
18469 # vanish in a puff of smoke.
18470 if test "X${COLLECT_NAMES+set}" != Xset; then
18471 COLLECT_NAMES=
18472 export COLLECT_NAMES
18473 fi
18474 _LT_EOF
18475 ;;
18476 esac
18477
18478
18479 ltmain="$ac_aux_dir/ltmain.sh"
18480
18481
18482 # We use sed instead of cat because bash on DJGPP gets confused if
18483 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18484 # text mode, it properly converts lines to CR/LF. This bash problem
18485 # is reportedly fixed, but why not run on old versions too?
18486 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18487 || (rm -f "$cfgfile"; exit 1)
18488
18489 case $xsi_shell in
18490 yes)
18491 cat << \_LT_EOF >> "$cfgfile"
18492
18493 # func_dirname file append nondir_replacement
18494 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18495 # otherwise set result to NONDIR_REPLACEMENT.
18496 func_dirname ()
18497 {
18498 case ${1} in
18499 */*) func_dirname_result="${1%/*}${2}" ;;
18500 * ) func_dirname_result="${3}" ;;
18501 esac
18502 }
18503
18504 # func_basename file
18505 func_basename ()
18506 {
18507 func_basename_result="${1##*/}"
18508 }
18509
18510 # func_dirname_and_basename file append nondir_replacement
18511 # perform func_basename and func_dirname in a single function
18512 # call:
18513 # dirname: Compute the dirname of FILE. If nonempty,
18514 # add APPEND to the result, otherwise set result
18515 # to NONDIR_REPLACEMENT.
18516 # value returned in "$func_dirname_result"
18517 # basename: Compute filename of FILE.
18518 # value retuned in "$func_basename_result"
18519 # Implementation must be kept synchronized with func_dirname
18520 # and func_basename. For efficiency, we do not delegate to
18521 # those functions but instead duplicate the functionality here.
18522 func_dirname_and_basename ()
18523 {
18524 case ${1} in
18525 */*) func_dirname_result="${1%/*}${2}" ;;
18526 * ) func_dirname_result="${3}" ;;
18527 esac
18528 func_basename_result="${1##*/}"
18529 }
18530
18531 # func_stripname prefix suffix name
18532 # strip PREFIX and SUFFIX off of NAME.
18533 # PREFIX and SUFFIX must not contain globbing or regex special
18534 # characters, hashes, percent signs, but SUFFIX may contain a leading
18535 # dot (in which case that matches only a dot).
18536 func_stripname ()
18537 {
18538 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18539 # positional parameters, so assign one to ordinary parameter first.
18540 func_stripname_result=${3}
18541 func_stripname_result=${func_stripname_result#"${1}"}
18542 func_stripname_result=${func_stripname_result%"${2}"}
18543 }
18544
18545 # func_opt_split
18546 func_opt_split ()
18547 {
18548 func_opt_split_opt=${1%%=*}
18549 func_opt_split_arg=${1#*=}
18550 }
18551
18552 # func_lo2o object
18553 func_lo2o ()
18554 {
18555 case ${1} in
18556 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18557 *) func_lo2o_result=${1} ;;
18558 esac
18559 }
18560
18561 # func_xform libobj-or-source
18562 func_xform ()
18563 {
18564 func_xform_result=${1%.*}.lo
18565 }
18566
18567 # func_arith arithmetic-term...
18568 func_arith ()
18569 {
18570 func_arith_result=$(( $* ))
18571 }
18572
18573 # func_len string
18574 # STRING may not start with a hyphen.
18575 func_len ()
18576 {
18577 func_len_result=${#1}
18578 }
18579
18580 _LT_EOF
18581 ;;
18582 *) # Bourne compatible functions.
18583 cat << \_LT_EOF >> "$cfgfile"
18584
18585 # func_dirname file append nondir_replacement
18586 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18587 # otherwise set result to NONDIR_REPLACEMENT.
18588 func_dirname ()
18589 {
18590 # Extract subdirectory from the argument.
18591 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18592 if test "X$func_dirname_result" = "X${1}"; then
18593 func_dirname_result="${3}"
18594 else
18595 func_dirname_result="$func_dirname_result${2}"
18596 fi
18597 }
18598
18599 # func_basename file
18600 func_basename ()
18601 {
18602 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18603 }
18604
18605
18606 # func_stripname prefix suffix name
18607 # strip PREFIX and SUFFIX off of NAME.
18608 # PREFIX and SUFFIX must not contain globbing or regex special
18609 # characters, hashes, percent signs, but SUFFIX may contain a leading
18610 # dot (in which case that matches only a dot).
18611 # func_strip_suffix prefix name
18612 func_stripname ()
18613 {
18614 case ${2} in
18615 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18616 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18617 esac
18618 }
18619
18620 # sed scripts:
18621 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18622 my_sed_long_arg='1s/^-[^=]*=//'
18623
18624 # func_opt_split
18625 func_opt_split ()
18626 {
18627 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18628 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18629 }
18630
18631 # func_lo2o object
18632 func_lo2o ()
18633 {
18634 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18635 }
18636
18637 # func_xform libobj-or-source
18638 func_xform ()
18639 {
18640 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18641 }
18642
18643 # func_arith arithmetic-term...
18644 func_arith ()
18645 {
18646 func_arith_result=`expr "$@"`
18647 }
18648
18649 # func_len string
18650 # STRING may not start with a hyphen.
18651 func_len ()
18652 {
18653 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18654 }
18655
18656 _LT_EOF
18657 esac
18658
18659 case $lt_shell_append in
18660 yes)
18661 cat << \_LT_EOF >> "$cfgfile"
18662
18663 # func_append var value
18664 # Append VALUE to the end of shell variable VAR.
18665 func_append ()
18666 {
18667 eval "$1+=\$2"
18668 }
18669 _LT_EOF
18670 ;;
18671 *)
18672 cat << \_LT_EOF >> "$cfgfile"
18673
18674 # func_append var value
18675 # Append VALUE to the end of shell variable VAR.
18676 func_append ()
18677 {
18678 eval "$1=\$$1\$2"
18679 }
18680
18681 _LT_EOF
18682 ;;
18683 esac
18684
18685
18686 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18687 || (rm -f "$cfgfile"; exit 1)
18688
18689 mv -f "$cfgfile" "$ofile" ||
18690 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18691 chmod +x "$ofile"
18692
18693 ;;
18694 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18695 # Older Autoconf quotes --file arguments for eval, but not when files
18696 # are listed without --file. Let's play safe and only enable the eval
18697 # if we detect the quoting.
18698 case $CONFIG_FILES in
18699 *\'*) eval set x "$CONFIG_FILES" ;;
18700 *) set x $CONFIG_FILES ;;
18701 esac
18702 shift
18703 for mf
18704 do
18705 # Strip MF so we end up with the name of the file.
18706 mf=`echo "$mf" | sed -e 's/:.*$//'`
18707 # Check whether this is an Automake generated Makefile or not.
18708 # We used to match only the files named 'Makefile.in', but
18709 # some people rename them; so instead we look at the file content.
18710 # Grep'ing the first line is not enough: some people post-process
18711 # each Makefile.in and add a new line on top of each file to say so.
18712 # Grep'ing the whole file is not good either: AIX grep has a line
18713 # limit of 2048, but all sed's we know have understand at least 4000.
18714 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18715 dirpart=`$as_dirname -- "$mf" ||
18716 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18717 X"$mf" : 'X\(//\)[^/]' \| \
18718 X"$mf" : 'X\(//\)$' \| \
18719 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18720 $as_echo X"$mf" |
18721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18722 s//\1/
18723 q
18724 }
18725 /^X\(\/\/\)[^/].*/{
18726 s//\1/
18727 q
18728 }
18729 /^X\(\/\/\)$/{
18730 s//\1/
18731 q
18732 }
18733 /^X\(\/\).*/{
18734 s//\1/
18735 q
18736 }
18737 s/.*/./; q'`
18738 else
18739 continue
18740 fi
18741 # Extract the definition of DEPDIR, am__include, and am__quote
18742 # from the Makefile without running 'make'.
18743 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18744 test -z "$DEPDIR" && continue
18745 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18746 test -z "$am__include" && continue
18747 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18748 # Find all dependency output files, they are included files with
18749 # $(DEPDIR) in their names. We invoke sed twice because it is the
18750 # simplest approach to changing $(DEPDIR) to its actual value in the
18751 # expansion.
18752 for file in `sed -n "
18753 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18754 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18755 # Make sure the directory exists.
18756 test -f "$dirpart/$file" && continue
18757 fdir=`$as_dirname -- "$file" ||
18758 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18759 X"$file" : 'X\(//\)[^/]' \| \
18760 X"$file" : 'X\(//\)$' \| \
18761 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18762 $as_echo X"$file" |
18763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18764 s//\1/
18765 q
18766 }
18767 /^X\(\/\/\)[^/].*/{
18768 s//\1/
18769 q
18770 }
18771 /^X\(\/\/\)$/{
18772 s//\1/
18773 q
18774 }
18775 /^X\(\/\).*/{
18776 s//\1/
18777 q
18778 }
18779 s/.*/./; q'`
18780 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18781 # echo "creating $dirpart/$file"
18782 echo '# dummy' > "$dirpart/$file"
18783 done
18784 done
18785 }
18786 ;;
18787
18788 esac
18789 done # for ac_tag
18790
18791
18792 as_fn_exit 0
18793 _ACEOF
18794 ac_clean_files=$ac_clean_files_save
18795
18796 test $ac_write_fail = 0 ||
18797 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18798
18799
18800 # configure is writing to config.log, and then calls config.status.
18801 # config.status does its own redirection, appending to config.log.
18802 # Unfortunately, on DOS this fails, as config.log is still kept open
18803 # by configure, so config.status won't be able to write to it; its
18804 # output is simply discarded. So we exec the FD to /dev/null,
18805 # effectively closing config.log, so it can be properly (re)opened and
18806 # appended to by config.status. When coming back to configure, we
18807 # need to make the FD available again.
18808 if test "$no_create" != yes; then
18809 ac_cs_success=:
18810 ac_config_status_args=
18811 test "$silent" = yes &&
18812 ac_config_status_args="$ac_config_status_args --quiet"
18813 exec 5>/dev/null
18814 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18815 exec 5>>config.log
18816 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18817 # would make configure fail if this is the last instruction.
18818 $ac_cs_success || as_fn_exit 1
18819 fi
18820
18821 #
18822 # CONFIG_SUBDIRS section.
18823 #
18824 if test "$no_recursion" != yes; then
18825
18826 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18827 # so they do not pile up.
18828 ac_sub_configure_args=
18829 ac_prev=
18830 eval "set x $ac_configure_args"
18831 shift
18832 for ac_arg
18833 do
18834 if test -n "$ac_prev"; then
18835 ac_prev=
18836 continue
18837 fi
18838 case $ac_arg in
18839 -cache-file | --cache-file | --cache-fil | --cache-fi \
18840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18841 ac_prev=cache_file ;;
18842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18844 | --c=*)
18845 ;;
18846 --config-cache | -C)
18847 ;;
18848 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18849 ac_prev=srcdir ;;
18850 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18851 ;;
18852 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18853 ac_prev=prefix ;;
18854 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18855 ;;
18856 --disable-option-checking)
18857 ;;
18858 *)
18859 case $ac_arg in
18860 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18861 esac
18862 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18863 esac
18864 done
18865
18866 # Always prepend --prefix to ensure using the same prefix
18867 # in subdir configurations.
18868 ac_arg="--prefix=$prefix"
18869 case $ac_arg in
18870 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18871 esac
18872 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18873
18874 # Pass --silent
18875 if test "$silent" = yes; then
18876 ac_sub_configure_args="--silent $ac_sub_configure_args"
18877 fi
18878
18879 # Always prepend --disable-option-checking to silence warnings, since
18880 # different subdirs can have different --enable and --with options.
18881 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18882
18883 ac_popdir=`pwd`
18884 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18885
18886 # Do not complain, so a configure script can configure whichever
18887 # parts of a large source tree are present.
18888 test -d "$srcdir/$ac_dir" || continue
18889
18890 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18891 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18892 $as_echo "$ac_msg" >&6
18893 as_dir="$ac_dir"; as_fn_mkdir_p
18894 ac_builddir=.
18895
18896 case "$ac_dir" in
18897 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18898 *)
18899 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18900 # A ".." for each directory in $ac_dir_suffix.
18901 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18902 case $ac_top_builddir_sub in
18903 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18904 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18905 esac ;;
18906 esac
18907 ac_abs_top_builddir=$ac_pwd
18908 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18909 # for backward compatibility:
18910 ac_top_builddir=$ac_top_build_prefix
18911
18912 case $srcdir in
18913 .) # We are building in place.
18914 ac_srcdir=.
18915 ac_top_srcdir=$ac_top_builddir_sub
18916 ac_abs_top_srcdir=$ac_pwd ;;
18917 [\\/]* | ?:[\\/]* ) # Absolute name.
18918 ac_srcdir=$srcdir$ac_dir_suffix;
18919 ac_top_srcdir=$srcdir
18920 ac_abs_top_srcdir=$srcdir ;;
18921 *) # Relative name.
18922 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18923 ac_top_srcdir=$ac_top_build_prefix$srcdir
18924 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18925 esac
18926 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18927
18928
18929 cd "$ac_dir"
18930
18931 # Check for guested configure; otherwise get Cygnus style configure.
18932 if test -f "$ac_srcdir/configure.gnu"; then
18933 ac_sub_configure=$ac_srcdir/configure.gnu
18934 elif test -f "$ac_srcdir/configure"; then
18935 ac_sub_configure=$ac_srcdir/configure
18936 elif test -f "$ac_srcdir/configure.in"; then
18937 # This should be Cygnus configure.
18938 ac_sub_configure=$ac_aux_dir/configure
18939 else
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18941 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18942 ac_sub_configure=
18943 fi
18944
18945 # The recursion is here.
18946 if test -n "$ac_sub_configure"; then
18947 # Make the cache file name correct relative to the subdirectory.
18948 case $cache_file in
18949 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18950 *) # Relative name.
18951 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18952 esac
18953
18954 { $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
18955 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18956 # The eval makes quoting arguments work.
18957 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18958 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18959 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18960 fi
18961
18962 cd "$ac_popdir"
18963 done
18964 fi
18965 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18967 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18968 fi
18969