]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/configure
d07ba3510a35b981a693aba0073b226df4c109d4
[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_reserved_bits
642 sim_default_model
643 sim_scache
644 sim_float
645 sim_bitsize
646 SIM_INLINE
647 sim_hw_sockser
648 sim_hw_cflags
649 SIM_ENABLE_HW_FALSE
650 SIM_ENABLE_HW_TRUE
651 cgen
652 cgendir
653 CGEN_MAINT
654 SIM_ENABLE_IGEN_FALSE
655 SIM_ENABLE_IGEN_TRUE
656 subdirs
657 SIM_COMMON_BUILD_FALSE
658 SIM_COMMON_BUILD_TRUE
659 SIM_SUBDIRS
660 SIM_PRIMARY_TARGET
661 AM_BACKSLASH
662 AM_DEFAULT_VERBOSITY
663 AM_DEFAULT_V
664 AM_V
665 am__fastdepCC_FALSE
666 am__fastdepCC_TRUE
667 CCDEPMODE
668 am__nodep
669 AMDEPBACKSLASH
670 AMDEP_FALSE
671 AMDEP_TRUE
672 am__quote
673 am__include
674 DEPDIR
675 am__untar
676 am__tar
677 AMTAR
678 am__leading_dot
679 SET_MAKE
680 mkdir_p
681 MKDIR_P
682 INSTALL_STRIP_PROGRAM
683 install_sh
684 MAKEINFO
685 AUTOHEADER
686 AUTOMAKE
687 AUTOCONF
688 ACLOCAL
689 VERSION
690 PACKAGE
691 CYGPATH_W
692 am__isrc
693 MAINT
694 MAINTAINER_MODE_FALSE
695 MAINTAINER_MODE_TRUE
696 lt_cv_dlopen_libs
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 AWK
703 STRIP
704 OBJDUMP
705 LN_S
706 NM
707 ac_ct_DUMPBIN
708 DUMPBIN
709 LD
710 FGREP
711 SED
712 LIBTOOL
713 PLUGINS_FALSE
714 PLUGINS_TRUE
715 zlibinc
716 zlibdir
717 CATOBJEXT
718 GENCAT
719 INSTOBJEXT
720 DATADIRNAME
721 CATALOGS
722 POSUB
723 GMSGFMT
724 XGETTEXT
725 INCINTL
726 LIBINTL_DEP
727 LIBINTL
728 USE_NLS
729 LIBOBJS
730 C_DIALECT
731 RANLIB
732 AR
733 LDFLAGS_FOR_BUILD
734 CFLAGS_FOR_BUILD
735 RANLIB_FOR_BUILD
736 CC_FOR_BUILD
737 AR_FOR_BUILD
738 DTC
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 EGREP
743 GREP
744 CPP
745 OBJEXT
746 EXEEXT
747 ac_ct_CC
748 CPPFLAGS
749 LDFLAGS
750 CFLAGS
751 CC
752 target_os
753 target_vendor
754 target_cpu
755 target
756 host_os
757 host_vendor
758 host_cpu
759 host
760 build_os
761 build_vendor
762 build_cpu
763 build
764 REPORT_BUGS_TEXI
765 REPORT_BUGS_TO
766 PKGVERSION
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_URL
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL
805 WERROR_CFLAGS
806 WARN_CFLAGS'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 with_pkgversion
811 with_bugurl
812 with_system_zlib
813 enable_plugins
814 enable_shared
815 enable_static
816 with_pic
817 enable_fast_install
818 with_gnu_ld
819 enable_libtool_lock
820 enable_maintainer_mode
821 enable_dependency_tracking
822 enable_silent_rules
823 enable_sim
824 enable_example_sims
825 enable_targets
826 enable_sim_alignment
827 enable_sim_assert
828 enable_cgen_maint
829 enable_sim_debug
830 enable_sim_endian
831 enable_sim_environment
832 enable_sim_hardware
833 enable_sim_inline
834 enable_sim_profile
835 enable_sim_stdio
836 enable_sim_trace
837 enable_werror
838 enable_build_warnings
839 enable_sim_build_warnings
840 '
841 ac_precious_vars='build_alias
842 host_alias
843 target_alias
844 CC
845 CFLAGS
846 LDFLAGS
847 LIBS
848 CPPFLAGS
849 CPP'
850 ac_subdirs_all='bfin
851 bpf
852 cris
853 frv
854 iq2000
855 lm32
856 m32r
857 mips
858 mn10300
859 or1k
860 riscv
861 rx
862 erc32
863 ppc
864 v850'
865
866 # Initialize some variables set by options.
867 ac_init_help=
868 ac_init_version=false
869 ac_unrecognized_opts=
870 ac_unrecognized_sep=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
873 cache_file=/dev/null
874 exec_prefix=NONE
875 no_create=
876 no_recursion=
877 prefix=NONE
878 program_prefix=NONE
879 program_suffix=NONE
880 program_transform_name=s,x,x,
881 silent=
882 site=
883 srcdir=
884 verbose=
885 x_includes=NONE
886 x_libraries=NONE
887
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
913
914 ac_prev=
915 ac_dashdash=
916 for ac_option
917 do
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
921 ac_prev=
922 continue
923 fi
924
925 case $ac_option in
926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 *=) ac_optarg= ;;
928 *) ac_optarg=yes ;;
929 esac
930
931 # Accept the important Cygnus configure options, so we can diagnose typos.
932
933 case $ac_dashdash$ac_option in
934 --)
935 ac_dashdash=yes ;;
936
937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 ac_prev=bindir ;;
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940 bindir=$ac_optarg ;;
941
942 -build | --build | --buil | --bui | --bu)
943 ac_prev=build_alias ;;
944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945 build_alias=$ac_optarg ;;
946
947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952 cache_file=$ac_optarg ;;
953
954 --config-cache | -C)
955 cache_file=config.cache ;;
956
957 -datadir | --datadir | --datadi | --datad)
958 ac_prev=datadir ;;
959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
960 datadir=$ac_optarg ;;
961
962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
968
969 -disable-* | --disable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=no ;;
984
985 -docdir | --docdir | --docdi | --doc | --do)
986 ac_prev=docdir ;;
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 docdir=$ac_optarg ;;
989
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 ac_prev=dvidir ;;
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 dvidir=$ac_optarg ;;
994
995 -enable-* | --enable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=\$ac_optarg ;;
1010
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1019
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1022 with_gas=yes ;;
1023
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1030
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1035
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 ac_prev=htmldir ;;
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 | --ht=*)
1040 htmldir=$ac_optarg ;;
1041
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1048
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 ac_prev=infodir ;;
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1053
1054 -libdir | --libdir | --libdi | --libd)
1055 ac_prev=libdir ;;
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1058
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1065
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1070
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1077
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 ac_prev=mandir ;;
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1082
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1085 with_fp=no ;;
1086
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1089 no_create=yes ;;
1090
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 no_recursion=yes ;;
1094
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1103
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 ac_prev=prefix ;;
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1108
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1115
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1122
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1139
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 ac_prev=pdfdir ;;
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1144
1145 -psdir | --psdir | --psdi | --psd | --ps)
1146 ac_prev=psdir ;;
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 psdir=$ac_optarg ;;
1149
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1152 silent=yes ;;
1153
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 ac_prev=sbindir ;;
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 | --sbi=* | --sb=*)
1158 sbindir=$ac_optarg ;;
1159
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1163 | --sha | --sh)
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 | --sha=* | --sh=*)
1169 sharedstatedir=$ac_optarg ;;
1170
1171 -site | --site | --sit)
1172 ac_prev=site ;;
1173 -site=* | --site=* | --sit=*)
1174 site=$ac_optarg ;;
1175
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 ac_prev=srcdir ;;
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1180
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1187
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1192
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 verbose=yes ;;
1195
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1198
1199 -with-* | --with-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error $? "invalid package name: $ac_useropt"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1207 *"
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=\$ac_optarg ;;
1214
1215 -without-* | --without-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error $? "invalid package name: $ac_useropt"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224 "with_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=no ;;
1230
1231 --x)
1232 # Obsolete; use --with-x.
1233 with_x=yes ;;
1234
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1241
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1248
1249 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1250 Try \`$0 --help' for more information"
1251 ;;
1252
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 case $ac_envvar in #(
1257 '' | [0-9]* | *[!_$as_cr_alnum]* )
1258 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1259 esac
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1262
1263 *)
1264 # FIXME: should be removed in autoconf 3.0.
1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1269 ;;
1270
1271 esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 as_fn_error $? "missing argument to $ac_option"
1277 fi
1278
1279 if test -n "$ac_unrecognized_opts"; then
1280 case $enable_option_checking in
1281 no) ;;
1282 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1283 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284 esac
1285 fi
1286
1287 # Check all directory arguments for consistency.
1288 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
1292 do
1293 eval ac_val=\$$ac_var
1294 # Remove trailing slashes.
1295 case $ac_val in
1296 */ )
1297 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298 eval $ac_var=\$ac_val;;
1299 esac
1300 # Be sure to have absolute directory names.
1301 case $ac_val in
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 esac
1305 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1306 done
1307
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1311 build=$build_alias
1312 host=$host_alias
1313 target=$target_alias
1314
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x; then
1317 if test "x$build_alias" = x; then
1318 cross_compiling=maybe
1319 elif test "x$build_alias" != "x$host_alias"; then
1320 cross_compiling=yes
1321 fi
1322 fi
1323
1324 ac_tool_prefix=
1325 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327 test "$silent" = yes && exec 6>/dev/null
1328
1329
1330 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di=`ls -di .` &&
1332 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333 as_fn_error $? "working directory cannot be determined"
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335 as_fn_error $? "pwd does not report name of working directory"
1336
1337
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$as_myself" ||
1343 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347 $as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\).*/{
1361 s//\1/
1362 q
1363 }
1364 s/.*/./; q'`
1365 srcdir=$ac_confdir
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 srcdir=..
1368 fi
1369 else
1370 ac_srcdir_defaulted=no
1371 fi
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375 fi
1376 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 ac_abs_confdir=`(
1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379 pwd)`
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 srcdir=.
1383 fi
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1387 case $srcdir in
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 esac
1390 for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 done
1396
1397 #
1398 # Report the --help message.
1399 #
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1403 cat <<_ACEOF
1404 \`configure' configures sim 0 to adapt to many kinds of systems.
1405
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1410
1411 Defaults for the options are specified in brackets.
1412
1413 Configuration:
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking ...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 [PREFIX]
1429
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1434
1435 For better control, use the options below.
1436
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1457 _ACEOF
1458
1459 cat <<\_ACEOF
1460
1461 Program names:
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465
1466 System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 --target=TARGET configure for building compilers for TARGET [HOST]
1470 _ACEOF
1471 fi
1472
1473 if test -n "$ac_init_help"; then
1474 case $ac_init_help in
1475 short | recursive ) echo "Configuration of sim 0:";;
1476 esac
1477 cat <<\_ACEOF
1478
1479 Optional Features:
1480 --disable-option-checking ignore unrecognized --enable/--with options
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --enable-plugins Enable support for plugins
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-static[=PKGS] build static libraries [default=yes]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-libtool-lock avoid locking (might break parallel builds)
1489 --enable-maintainer-mode
1490 enable make rules and dependencies not useful (and
1491 sometimes confusing) to the casual installer
1492 --enable-dependency-tracking
1493 do not reject slow dependency extractors
1494 --disable-dependency-tracking
1495 speeds up one-time build
1496 --enable-silent-rules less verbose build output (undo: "make V=1")
1497 --disable-silent-rules verbose build output (undo: "make V=0")
1498 --enable-sim Enable the GNU simulator
1499 --enable-example-sims enable example GNU simulators
1500 --enable-targets alternative target configurations
1501 --enable-sim-alignment=align
1502 Specify strict, nonstrict or forced alignment of
1503 memory accesses
1504 --enable-sim-assert Specify whether to perform random assertions
1505 --enable-cgen-maint=DIR build cgen generated files
1506 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1507 itself)
1508 --enable-sim-endian=endian
1509 Specify target byte endian orientation
1510 --enable-sim-environment=environment
1511 Specify mixed, user, virtual or operating
1512 environment
1513 --enable-sim-hardware Whether to enable hardware/device simulation
1514 --enable-sim-inline=inlines
1515 Specify which functions should be inlined
1516 --enable-sim-profile=opts
1517 Enable profiling flags
1518 --enable-sim-stdio Specify whether to use stdio for console
1519 input/output
1520 --enable-sim-trace=opts Enable tracing of simulated programs
1521 --enable-werror treat compile warnings as errors
1522 --enable-build-warnings enable build-time compiler warnings if gcc is used
1523 --enable-sim-build-warnings
1524 enable SIM specific build-time compiler warnings if
1525 gcc is used
1526
1527 Optional Packages:
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1530 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1531 --with-bugurl=URL Direct users to URL to report a bug
1532 --with-system-zlib use installed libz
1533 --with-pic try to use only PIC/non-PIC objects [default=use
1534 both]
1535 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1536
1537 Some influential environment variables:
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1541 nonstandard directory <lib dir>
1542 LIBS libraries to pass to the linker, e.g. -l<library>
1543 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1544 you have headers in a nonstandard directory <include dir>
1545 CPP C preprocessor
1546
1547 Use these variables to override the choices made by `configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1549
1550 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
1551 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
1552 _ACEOF
1553 ac_status=$?
1554 fi
1555
1556 if test "$ac_init_help" = "recursive"; then
1557 # If there are subdirs, report their specific --help.
1558 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1559 test -d "$ac_dir" ||
1560 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1561 continue
1562 ac_builddir=.
1563
1564 case "$ac_dir" in
1565 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 *)
1567 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1568 # A ".." for each directory in $ac_dir_suffix.
1569 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1570 case $ac_top_builddir_sub in
1571 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573 esac ;;
1574 esac
1575 ac_abs_top_builddir=$ac_pwd
1576 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1577 # for backward compatibility:
1578 ac_top_builddir=$ac_top_build_prefix
1579
1580 case $srcdir in
1581 .) # We are building in place.
1582 ac_srcdir=.
1583 ac_top_srcdir=$ac_top_builddir_sub
1584 ac_abs_top_srcdir=$ac_pwd ;;
1585 [\\/]* | ?:[\\/]* ) # Absolute name.
1586 ac_srcdir=$srcdir$ac_dir_suffix;
1587 ac_top_srcdir=$srcdir
1588 ac_abs_top_srcdir=$srcdir ;;
1589 *) # Relative name.
1590 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1591 ac_top_srcdir=$ac_top_build_prefix$srcdir
1592 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1593 esac
1594 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1595
1596 cd "$ac_dir" || { ac_status=$?; continue; }
1597 # Check for guested configure.
1598 if test -f "$ac_srcdir/configure.gnu"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1601 elif test -f "$ac_srcdir/configure"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure" --help=recursive
1604 else
1605 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606 fi || ac_status=$?
1607 cd "$ac_pwd" || { ac_status=$?; break; }
1608 done
1609 fi
1610
1611 test -n "$ac_init_help" && exit $ac_status
1612 if $ac_init_version; then
1613 cat <<\_ACEOF
1614 sim configure 0
1615 generated by GNU Autoconf 2.69
1616
1617 Copyright (C) 2012 Free Software Foundation, Inc.
1618 This configure script is free software; the Free Software Foundation
1619 gives unlimited permission to copy, distribute and modify it.
1620 _ACEOF
1621 exit
1622 fi
1623
1624 ## ------------------------ ##
1625 ## Autoconf initialization. ##
1626 ## ------------------------ ##
1627
1628 # ac_fn_c_try_compile LINENO
1629 # --------------------------
1630 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_compile ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext
1635 if { { ac_try="$ac_compile"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_compile") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest.$ac_objext; then :
1654 ac_retval=0
1655 else
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1658
1659 ac_retval=1
1660 fi
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1663
1664 } # ac_fn_c_try_compile
1665
1666 # ac_fn_c_try_cpp LINENO
1667 # ----------------------
1668 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669 ac_fn_c_try_cpp ()
1670 {
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if { { ac_try="$ac_cpp conftest.$ac_ext"
1673 case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1685 fi
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } > conftest.i && {
1688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 }; then :
1691 ac_retval=0
1692 else
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=1
1697 fi
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_cpp
1702
1703 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1706 # the include files in INCLUDES and setting the cache variable VAR
1707 # accordingly.
1708 ac_fn_c_check_header_mongrel ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if eval \${$3+:} false; then :
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1716 fi
1717 eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720 else
1721 # Is the header compilable?
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1723 $as_echo_n "checking $2 usability... " >&6; }
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1726 $4
1727 #include <$2>
1728 _ACEOF
1729 if ac_fn_c_try_compile "$LINENO"; then :
1730 ac_header_compiler=yes
1731 else
1732 ac_header_compiler=no
1733 fi
1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1736 $as_echo "$ac_header_compiler" >&6; }
1737
1738 # Is the header present?
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1740 $as_echo_n "checking $2 presence... " >&6; }
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 #include <$2>
1744 _ACEOF
1745 if ac_fn_c_try_cpp "$LINENO"; then :
1746 ac_header_preproc=yes
1747 else
1748 ac_header_preproc=no
1749 fi
1750 rm -f conftest.err conftest.i conftest.$ac_ext
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1752 $as_echo "$ac_header_preproc" >&6; }
1753
1754 # So? What about this header?
1755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1756 yes:no: )
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1758 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1760 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1761 ;;
1762 no:yes:* )
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1764 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1766 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1768 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1770 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1772 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1773 ( $as_echo "## -------------------------------------------------------------------------------------- ##
1774 ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
1775 ## -------------------------------------------------------------------------------------- ##"
1776 ) | sed "s/^/$as_me: WARNING: /" >&2
1777 ;;
1778 esac
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1783 else
1784 eval "$3=\$ac_header_compiler"
1785 fi
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 fi
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_header_mongrel
1793
1794 # ac_fn_c_try_run LINENO
1795 # ----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1797 # that executables *can* be run.
1798 ac_fn_c_try_run ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if { { ac_try="$ac_link"
1802 case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>&5
1809 ac_status=$?
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1812 { { case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_try") 2>&5
1819 ac_status=$?
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; }; }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: program exited with status $ac_status" >&5
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 ac_retval=$ac_status
1829 fi
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1833
1834 } # ac_fn_c_try_run
1835
1836 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1837 # -------------------------------------------------------
1838 # Tests whether HEADER exists and can be compiled using the include files in
1839 # INCLUDES, setting the cache variable VAR accordingly.
1840 ac_fn_c_check_header_compile ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1847 else
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 $4
1851 #include <$2>
1852 _ACEOF
1853 if ac_fn_c_try_compile "$LINENO"; then :
1854 eval "$3=yes"
1855 else
1856 eval "$3=no"
1857 fi
1858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 fi
1860 eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864
1865 } # ac_fn_c_check_header_compile
1866
1867 # ac_fn_c_try_link LINENO
1868 # -----------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_c_try_link ()
1871 {
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext conftest$ac_exeext
1874 if { { ac_try="$ac_link"
1875 case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1887 fi
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_c_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest$ac_exeext && {
1893 test "$cross_compiling" = yes ||
1894 test -x conftest$ac_exeext
1895 }; then :
1896 ac_retval=0
1897 else
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901 ac_retval=1
1902 fi
1903 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905 # interfere with the next link command; also delete a directory that is
1906 # left behind by Apple's compiler. We do this before executing the actions.
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
1910
1911 } # ac_fn_c_try_link
1912
1913 # ac_fn_c_check_func LINENO FUNC VAR
1914 # ----------------------------------
1915 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1916 ac_fn_c_check_func ()
1917 {
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920 $as_echo_n "checking for $2... " >&6; }
1921 if eval \${$3+:} false; then :
1922 $as_echo_n "(cached) " >&6
1923 else
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1928 #define $2 innocuous_$2
1929
1930 /* System header to define __stub macros and hopefully few prototypes,
1931 which can conflict with char $2 (); below.
1932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1933 <limits.h> exists even on freestanding compilers. */
1934
1935 #ifdef __STDC__
1936 # include <limits.h>
1937 #else
1938 # include <assert.h>
1939 #endif
1940
1941 #undef $2
1942
1943 /* Override any GCC internal prototype to avoid an error.
1944 Use char because int might match the return type of a GCC
1945 builtin and then its argument prototype would still apply. */
1946 #ifdef __cplusplus
1947 extern "C"
1948 #endif
1949 char $2 ();
1950 /* The GNU C library defines this for functions which it implements
1951 to always fail with ENOSYS. Some functions are actually named
1952 something starting with __ and the normal name is an alias. */
1953 #if defined __stub_$2 || defined __stub___$2
1954 choke me
1955 #endif
1956
1957 int
1958 main ()
1959 {
1960 return $2 ();
1961 ;
1962 return 0;
1963 }
1964 _ACEOF
1965 if ac_fn_c_try_link "$LINENO"; then :
1966 eval "$3=yes"
1967 else
1968 eval "$3=no"
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext \
1971 conftest$ac_exeext conftest.$ac_ext
1972 fi
1973 eval ac_res=\$$3
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977
1978 } # ac_fn_c_check_func
1979
1980 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1981 # ----------------------------------------------------
1982 # Tries to find if the field MEMBER exists in type AGGR, after including
1983 # INCLUDES, setting cache variable VAR accordingly.
1984 ac_fn_c_check_member ()
1985 {
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1988 $as_echo_n "checking for $2.$3... " >&6; }
1989 if eval \${$4+:} false; then :
1990 $as_echo_n "(cached) " >&6
1991 else
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1994 $5
1995 int
1996 main ()
1997 {
1998 static $2 ac_aggr;
1999 if (ac_aggr.$3)
2000 return 0;
2001 ;
2002 return 0;
2003 }
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006 eval "$4=yes"
2007 else
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2010 $5
2011 int
2012 main ()
2013 {
2014 static $2 ac_aggr;
2015 if (sizeof ac_aggr.$3)
2016 return 0;
2017 ;
2018 return 0;
2019 }
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 eval "$4=yes"
2023 else
2024 eval "$4=no"
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 fi
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 fi
2030 eval ac_res=\$$4
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034
2035 } # ac_fn_c_check_member
2036
2037 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2038 # ---------------------------------------------
2039 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2040 # accordingly.
2041 ac_fn_c_check_decl ()
2042 {
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 as_decl_name=`echo $2|sed 's/ *(.*//'`
2045 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2047 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2048 if eval \${$3+:} false; then :
2049 $as_echo_n "(cached) " >&6
2050 else
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2053 $4
2054 int
2055 main ()
2056 {
2057 #ifndef $as_decl_name
2058 #ifdef __cplusplus
2059 (void) $as_decl_use;
2060 #else
2061 (void) $as_decl_name;
2062 #endif
2063 #endif
2064
2065 ;
2066 return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070 eval "$3=yes"
2071 else
2072 eval "$3=no"
2073 fi
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 fi
2076 eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080
2081 } # ac_fn_c_check_decl
2082
2083 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2084 # -------------------------------------------
2085 # Tests whether TYPE exists after having included INCLUDES, setting cache
2086 # variable VAR accordingly.
2087 ac_fn_c_check_type ()
2088 {
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091 $as_echo_n "checking for $2... " >&6; }
2092 if eval \${$3+:} false; then :
2093 $as_echo_n "(cached) " >&6
2094 else
2095 eval "$3=no"
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2098 $4
2099 int
2100 main ()
2101 {
2102 if (sizeof ($2))
2103 return 0;
2104 ;
2105 return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2111 $4
2112 int
2113 main ()
2114 {
2115 if (sizeof (($2)))
2116 return 0;
2117 ;
2118 return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122
2123 else
2124 eval "$3=yes"
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 fi
2130 eval ac_res=\$$3
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132 $as_echo "$ac_res" >&6; }
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134
2135 } # ac_fn_c_check_type
2136 cat >config.log <<_ACEOF
2137 This file contains any messages produced by compilers while
2138 running configure, to aid debugging if configure makes a mistake.
2139
2140 It was created by sim $as_me 0, which was
2141 generated by GNU Autoconf 2.69. Invocation command line was
2142
2143 $ $0 $@
2144
2145 _ACEOF
2146 exec 5>>config.log
2147 {
2148 cat <<_ASUNAME
2149 ## --------- ##
2150 ## Platform. ##
2151 ## --------- ##
2152
2153 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2154 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2155 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2156 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2157 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2158
2159 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2160 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2161
2162 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2163 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2164 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2165 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2166 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2167 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2168 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2169
2170 _ASUNAME
2171
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH
2174 do
2175 IFS=$as_save_IFS
2176 test -z "$as_dir" && as_dir=.
2177 $as_echo "PATH: $as_dir"
2178 done
2179 IFS=$as_save_IFS
2180
2181 } >&5
2182
2183 cat >&5 <<_ACEOF
2184
2185
2186 ## ----------- ##
2187 ## Core tests. ##
2188 ## ----------- ##
2189
2190 _ACEOF
2191
2192
2193 # Keep a trace of the command line.
2194 # Strip out --no-create and --no-recursion so they do not pile up.
2195 # Strip out --silent because we don't want to record it for future runs.
2196 # Also quote any args containing shell meta-characters.
2197 # Make two passes to allow for proper duplicate-argument suppression.
2198 ac_configure_args=
2199 ac_configure_args0=
2200 ac_configure_args1=
2201 ac_must_keep_next=false
2202 for ac_pass in 1 2
2203 do
2204 for ac_arg
2205 do
2206 case $ac_arg in
2207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2209 | -silent | --silent | --silen | --sile | --sil)
2210 continue ;;
2211 *\'*)
2212 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2213 esac
2214 case $ac_pass in
2215 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2216 2)
2217 as_fn_append ac_configure_args1 " '$ac_arg'"
2218 if test $ac_must_keep_next = true; then
2219 ac_must_keep_next=false # Got value, back to normal.
2220 else
2221 case $ac_arg in
2222 *=* | --config-cache | -C | -disable-* | --disable-* \
2223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2225 | -with-* | --with-* | -without-* | --without-* | --x)
2226 case "$ac_configure_args0 " in
2227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2228 esac
2229 ;;
2230 -* ) ac_must_keep_next=true ;;
2231 esac
2232 fi
2233 as_fn_append ac_configure_args " '$ac_arg'"
2234 ;;
2235 esac
2236 done
2237 done
2238 { ac_configure_args0=; unset ac_configure_args0;}
2239 { ac_configure_args1=; unset ac_configure_args1;}
2240
2241 # When interrupted or exit'd, cleanup temporary files, and complete
2242 # config.log. We remove comments because anyway the quotes in there
2243 # would cause problems or look ugly.
2244 # WARNING: Use '\'' to represent an apostrophe within the trap.
2245 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2246 trap 'exit_status=$?
2247 # Save into config.log some information that might help in debugging.
2248 {
2249 echo
2250
2251 $as_echo "## ---------------- ##
2252 ## Cache variables. ##
2253 ## ---------------- ##"
2254 echo
2255 # The following way of writing the cache mishandles newlines in values,
2256 (
2257 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2258 eval ac_val=\$$ac_var
2259 case $ac_val in #(
2260 *${as_nl}*)
2261 case $ac_var in #(
2262 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2263 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2264 esac
2265 case $ac_var in #(
2266 _ | IFS | as_nl) ;; #(
2267 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2268 *) { eval $ac_var=; unset $ac_var;} ;;
2269 esac ;;
2270 esac
2271 done
2272 (set) 2>&1 |
2273 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2274 *${as_nl}ac_space=\ *)
2275 sed -n \
2276 "s/'\''/'\''\\\\'\'''\''/g;
2277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2278 ;; #(
2279 *)
2280 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2281 ;;
2282 esac |
2283 sort
2284 )
2285 echo
2286
2287 $as_echo "## ----------------- ##
2288 ## Output variables. ##
2289 ## ----------------- ##"
2290 echo
2291 for ac_var in $ac_subst_vars
2292 do
2293 eval ac_val=\$$ac_var
2294 case $ac_val in
2295 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2296 esac
2297 $as_echo "$ac_var='\''$ac_val'\''"
2298 done | sort
2299 echo
2300
2301 if test -n "$ac_subst_files"; then
2302 $as_echo "## ------------------- ##
2303 ## File substitutions. ##
2304 ## ------------------- ##"
2305 echo
2306 for ac_var in $ac_subst_files
2307 do
2308 eval ac_val=\$$ac_var
2309 case $ac_val in
2310 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2311 esac
2312 $as_echo "$ac_var='\''$ac_val'\''"
2313 done | sort
2314 echo
2315 fi
2316
2317 if test -s confdefs.h; then
2318 $as_echo "## ----------- ##
2319 ## confdefs.h. ##
2320 ## ----------- ##"
2321 echo
2322 cat confdefs.h
2323 echo
2324 fi
2325 test "$ac_signal" != 0 &&
2326 $as_echo "$as_me: caught signal $ac_signal"
2327 $as_echo "$as_me: exit $exit_status"
2328 } >&5
2329 rm -f core *.core core.conftest.* &&
2330 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2331 exit $exit_status
2332 ' 0
2333 for ac_signal in 1 2 13 15; do
2334 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2335 done
2336 ac_signal=0
2337
2338 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2339 rm -f -r conftest* confdefs.h
2340
2341 $as_echo "/* confdefs.h */" > confdefs.h
2342
2343 # Predefined preprocessor variables.
2344
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_NAME "$PACKAGE_NAME"
2347 _ACEOF
2348
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2351 _ACEOF
2352
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2355 _ACEOF
2356
2357 cat >>confdefs.h <<_ACEOF
2358 #define PACKAGE_STRING "$PACKAGE_STRING"
2359 _ACEOF
2360
2361 cat >>confdefs.h <<_ACEOF
2362 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2363 _ACEOF
2364
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_URL "$PACKAGE_URL"
2367 _ACEOF
2368
2369
2370 # Let the site file select an alternate cache file if it wants to.
2371 # Prefer an explicitly selected file to automatically selected ones.
2372 ac_site_file1=NONE
2373 ac_site_file2=NONE
2374 if test -n "$CONFIG_SITE"; then
2375 # We do not want a PATH search for config.site.
2376 case $CONFIG_SITE in #((
2377 -*) ac_site_file1=./$CONFIG_SITE;;
2378 */*) ac_site_file1=$CONFIG_SITE;;
2379 *) ac_site_file1=./$CONFIG_SITE;;
2380 esac
2381 elif test "x$prefix" != xNONE; then
2382 ac_site_file1=$prefix/share/config.site
2383 ac_site_file2=$prefix/etc/config.site
2384 else
2385 ac_site_file1=$ac_default_prefix/share/config.site
2386 ac_site_file2=$ac_default_prefix/etc/config.site
2387 fi
2388 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2389 do
2390 test "x$ac_site_file" = xNONE && continue
2391 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2393 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2394 sed 's/^/| /' "$ac_site_file" >&5
2395 . "$ac_site_file" \
2396 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2398 as_fn_error $? "failed to load site script $ac_site_file
2399 See \`config.log' for more details" "$LINENO" 5; }
2400 fi
2401 done
2402
2403 if test -r "$cache_file"; then
2404 # Some versions of bash will fail to source /dev/null (special files
2405 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2406 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2408 $as_echo "$as_me: loading cache $cache_file" >&6;}
2409 case $cache_file in
2410 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2411 *) . "./$cache_file";;
2412 esac
2413 fi
2414 else
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2416 $as_echo "$as_me: creating cache $cache_file" >&6;}
2417 >$cache_file
2418 fi
2419
2420 as_fn_append ac_header_list " dlfcn.h"
2421 as_fn_append ac_header_list " fcntl.h"
2422 as_fn_append ac_header_list " fpu_control.h"
2423 as_fn_append ac_header_list " termios.h"
2424 as_fn_append ac_header_list " unistd.h"
2425 as_fn_append ac_header_list " utime.h"
2426 as_fn_append ac_header_list " linux/if_tun.h"
2427 as_fn_append ac_header_list " linux/mii.h"
2428 as_fn_append ac_header_list " linux/types.h"
2429 as_fn_append ac_header_list " net/if.h"
2430 as_fn_append ac_header_list " netinet/in.h"
2431 as_fn_append ac_header_list " netinet/tcp.h"
2432 as_fn_append ac_header_list " sys/ioctl.h"
2433 as_fn_append ac_header_list " sys/mman.h"
2434 as_fn_append ac_header_list " sys/mount.h"
2435 as_fn_append ac_header_list " sys/param.h"
2436 as_fn_append ac_header_list " sys/resource.h"
2437 as_fn_append ac_header_list " sys/socket.h"
2438 as_fn_append ac_header_list " sys/stat.h"
2439 as_fn_append ac_header_list " sys/statfs.h"
2440 as_fn_append ac_header_list " sys/termio.h"
2441 as_fn_append ac_header_list " sys/termios.h"
2442 as_fn_append ac_header_list " sys/types.h"
2443 as_fn_append ac_header_list " sys/vfs.h"
2444 as_fn_append ac_func_list " __setfpucw"
2445 as_fn_append ac_func_list " access"
2446 as_fn_append ac_func_list " aint"
2447 as_fn_append ac_func_list " anint"
2448 as_fn_append ac_func_list " cfgetispeed"
2449 as_fn_append ac_func_list " cfgetospeed"
2450 as_fn_append ac_func_list " cfsetispeed"
2451 as_fn_append ac_func_list " cfsetospeed"
2452 as_fn_append ac_func_list " chdir"
2453 as_fn_append ac_func_list " chmod"
2454 as_fn_append ac_func_list " dup"
2455 as_fn_append ac_func_list " dup2"
2456 as_fn_append ac_func_list " execv"
2457 as_fn_append ac_func_list " execve"
2458 as_fn_append ac_func_list " fcntl"
2459 as_fn_append ac_func_list " fork"
2460 as_fn_append ac_func_list " fstat"
2461 as_fn_append ac_func_list " fstatfs"
2462 as_fn_append ac_func_list " ftruncate"
2463 as_fn_append ac_func_list " getdirentries"
2464 as_fn_append ac_func_list " getegid"
2465 as_fn_append ac_func_list " geteuid"
2466 as_fn_append ac_func_list " getgid"
2467 as_fn_append ac_func_list " getpid"
2468 as_fn_append ac_func_list " getppid"
2469 as_fn_append ac_func_list " getrusage"
2470 as_fn_append ac_func_list " gettimeofday"
2471 as_fn_append ac_func_list " getuid"
2472 as_fn_append ac_func_list " ioctl"
2473 as_fn_append ac_func_list " kill"
2474 as_fn_append ac_func_list " link"
2475 as_fn_append ac_func_list " lseek"
2476 as_fn_append ac_func_list " mmap"
2477 as_fn_append ac_func_list " munmap"
2478 as_fn_append ac_func_list " pipe"
2479 as_fn_append ac_func_list " posix_fallocate"
2480 as_fn_append ac_func_list " pread"
2481 as_fn_append ac_func_list " rmdir"
2482 as_fn_append ac_func_list " setregid"
2483 as_fn_append ac_func_list " setreuid"
2484 as_fn_append ac_func_list " setgid"
2485 as_fn_append ac_func_list " setuid"
2486 as_fn_append ac_func_list " sigaction"
2487 as_fn_append ac_func_list " sigprocmask"
2488 as_fn_append ac_func_list " sqrt"
2489 as_fn_append ac_func_list " stat"
2490 as_fn_append ac_func_list " strsignal"
2491 as_fn_append ac_func_list " symlink"
2492 as_fn_append ac_func_list " tcdrain"
2493 as_fn_append ac_func_list " tcflow"
2494 as_fn_append ac_func_list " tcflush"
2495 as_fn_append ac_func_list " tcgetattr"
2496 as_fn_append ac_func_list " tcgetpgrp"
2497 as_fn_append ac_func_list " tcsendbreak"
2498 as_fn_append ac_func_list " tcsetattr"
2499 as_fn_append ac_func_list " tcsetpgrp"
2500 as_fn_append ac_func_list " time"
2501 as_fn_append ac_func_list " truncate"
2502 as_fn_append ac_func_list " umask"
2503 as_fn_append ac_func_list " unlink"
2504 as_fn_append ac_func_list " utime"
2505 # Check that the precious variables saved in the cache have kept the same
2506 # value.
2507 ac_cache_corrupted=false
2508 for ac_var in $ac_precious_vars; do
2509 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2510 eval ac_new_set=\$ac_env_${ac_var}_set
2511 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2512 eval ac_new_val=\$ac_env_${ac_var}_value
2513 case $ac_old_set,$ac_new_set in
2514 set,)
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2516 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2517 ac_cache_corrupted=: ;;
2518 ,set)
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2520 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2521 ac_cache_corrupted=: ;;
2522 ,);;
2523 *)
2524 if test "x$ac_old_val" != "x$ac_new_val"; then
2525 # differences in whitespace do not lead to failure.
2526 ac_old_val_w=`echo x $ac_old_val`
2527 ac_new_val_w=`echo x $ac_new_val`
2528 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2530 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2531 ac_cache_corrupted=:
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2534 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2535 eval $ac_var=\$ac_old_val
2536 fi
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2538 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2540 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2541 fi;;
2542 esac
2543 # Pass precious variables to config.status.
2544 if test "$ac_new_set" = set; then
2545 case $ac_new_val in
2546 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2547 *) ac_arg=$ac_var=$ac_new_val ;;
2548 esac
2549 case " $ac_configure_args " in
2550 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2551 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2552 esac
2553 fi
2554 done
2555 if $ac_cache_corrupted; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2559 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2560 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2561 fi
2562 ## -------------------- ##
2563 ## Main body of script. ##
2564 ## -------------------- ##
2565
2566 ac_ext=c
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571
2572
2573
2574
2575
2576
2577
2578
2579 # Check whether --with-pkgversion was given.
2580 if test "${with_pkgversion+set}" = set; then :
2581 withval=$with_pkgversion; case "$withval" in
2582 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2583 no) PKGVERSION= ;;
2584 *) PKGVERSION="($withval) " ;;
2585 esac
2586 else
2587 PKGVERSION="(SIM) "
2588
2589 fi
2590
2591
2592
2593
2594 cat >>confdefs.h <<_ACEOF
2595 #define PKGVERSION "$PKGVERSION"
2596 _ACEOF
2597
2598
2599
2600 # Check whether --with-bugurl was given.
2601 if test "${with_bugurl+set}" = set; then :
2602 withval=$with_bugurl; case "$withval" in
2603 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2604 no) BUGURL=
2605 ;;
2606 *) BUGURL="$withval"
2607 ;;
2608 esac
2609 else
2610 BUGURL="$PACKAGE_BUGREPORT"
2611
2612 fi
2613
2614 case ${BUGURL} in
2615 "")
2616 REPORT_BUGS_TO=
2617 REPORT_BUGS_TEXI=
2618 ;;
2619 *)
2620 REPORT_BUGS_TO="<$BUGURL>"
2621 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2622 ;;
2623 esac;
2624
2625
2626
2627
2628 cat >>confdefs.h <<_ACEOF
2629 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2630 _ACEOF
2631
2632
2633 ac_config_headers="$ac_config_headers config.h"
2634
2635
2636 ac_aux_dir=
2637 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2638 if test -f "$ac_dir/install-sh"; then
2639 ac_aux_dir=$ac_dir
2640 ac_install_sh="$ac_aux_dir/install-sh -c"
2641 break
2642 elif test -f "$ac_dir/install.sh"; then
2643 ac_aux_dir=$ac_dir
2644 ac_install_sh="$ac_aux_dir/install.sh -c"
2645 break
2646 elif test -f "$ac_dir/shtool"; then
2647 ac_aux_dir=$ac_dir
2648 ac_install_sh="$ac_aux_dir/shtool install -c"
2649 break
2650 fi
2651 done
2652 if test -z "$ac_aux_dir"; then
2653 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2654 fi
2655
2656 # These three variables are undocumented and unsupported,
2657 # and are intended to be withdrawn in a future Autoconf release.
2658 # They can cause serious problems if a builder's source tree is in a directory
2659 # whose full name contains unusual characters.
2660 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2661 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2662 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2663
2664
2665 # Make sure we can run config.sub.
2666 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2667 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2668
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2670 $as_echo_n "checking build system type... " >&6; }
2671 if ${ac_cv_build+:} false; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 ac_build_alias=$build_alias
2675 test "x$ac_build_alias" = x &&
2676 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2677 test "x$ac_build_alias" = x &&
2678 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2679 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2680 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2681
2682 fi
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2684 $as_echo "$ac_cv_build" >&6; }
2685 case $ac_cv_build in
2686 *-*-*) ;;
2687 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2688 esac
2689 build=$ac_cv_build
2690 ac_save_IFS=$IFS; IFS='-'
2691 set x $ac_cv_build
2692 shift
2693 build_cpu=$1
2694 build_vendor=$2
2695 shift; shift
2696 # Remember, the first character of IFS is used to create $*,
2697 # except with old shells:
2698 build_os=$*
2699 IFS=$ac_save_IFS
2700 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2701
2702
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2704 $as_echo_n "checking host system type... " >&6; }
2705 if ${ac_cv_host+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if test "x$host_alias" = x; then
2709 ac_cv_host=$ac_cv_build
2710 else
2711 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2712 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2713 fi
2714
2715 fi
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2717 $as_echo "$ac_cv_host" >&6; }
2718 case $ac_cv_host in
2719 *-*-*) ;;
2720 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2721 esac
2722 host=$ac_cv_host
2723 ac_save_IFS=$IFS; IFS='-'
2724 set x $ac_cv_host
2725 shift
2726 host_cpu=$1
2727 host_vendor=$2
2728 shift; shift
2729 # Remember, the first character of IFS is used to create $*,
2730 # except with old shells:
2731 host_os=$*
2732 IFS=$ac_save_IFS
2733 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2734
2735
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2737 $as_echo_n "checking target system type... " >&6; }
2738 if ${ac_cv_target+:} false; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 if test "x$target_alias" = x; then
2742 ac_cv_target=$ac_cv_host
2743 else
2744 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2745 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2746 fi
2747
2748 fi
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2750 $as_echo "$ac_cv_target" >&6; }
2751 case $ac_cv_target in
2752 *-*-*) ;;
2753 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2754 esac
2755 target=$ac_cv_target
2756 ac_save_IFS=$IFS; IFS='-'
2757 set x $ac_cv_target
2758 shift
2759 target_cpu=$1
2760 target_vendor=$2
2761 shift; shift
2762 # Remember, the first character of IFS is used to create $*,
2763 # except with old shells:
2764 target_os=$*
2765 IFS=$ac_save_IFS
2766 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2767
2768
2769 # The aliases save the names the user supplied, while $host etc.
2770 # will get canonicalized.
2771 test -n "$target_alias" &&
2772 test "$program_prefix$program_suffix$program_transform_name" = \
2773 NONENONEs,x,x, &&
2774 program_prefix=${target_alias}-
2775 # Expand $ac_aux_dir to an absolute path.
2776 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2777
2778 ac_ext=c
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 if test -n "$ac_tool_prefix"; then
2784 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2785 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if ${ac_cv_prog_CC+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2801 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 fi
2810 fi
2811 CC=$ac_cv_prog_CC
2812 if test -n "$CC"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2814 $as_echo "$CC" >&6; }
2815 else
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2818 fi
2819
2820
2821 fi
2822 if test -z "$ac_cv_prog_CC"; then
2823 ac_ct_CC=$CC
2824 # Extract the first word of "gcc", so it can be a program name with args.
2825 set dummy gcc; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 if test -n "$ac_ct_CC"; then
2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_ac_ct_CC="gcc"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852 if test -n "$ac_ct_CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2854 $as_echo "$ac_ct_CC" >&6; }
2855 else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 fi
2859
2860 if test "x$ac_ct_CC" = x; then
2861 CC=""
2862 else
2863 case $cross_compiling:$ac_tool_warned in
2864 yes:)
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2867 ac_tool_warned=yes ;;
2868 esac
2869 CC=$ac_ct_CC
2870 fi
2871 else
2872 CC="$ac_cv_prog_CC"
2873 fi
2874
2875 if test -z "$CC"; then
2876 if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2878 set dummy ${ac_tool_prefix}cc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_CC+:} false; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894 ac_cv_prog_CC="${ac_tool_prefix}cc"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2897 fi
2898 done
2899 done
2900 IFS=$as_save_IFS
2901
2902 fi
2903 fi
2904 CC=$ac_cv_prog_CC
2905 if test -n "$CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2907 $as_echo "$CC" >&6; }
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2911 fi
2912
2913
2914 fi
2915 fi
2916 if test -z "$CC"; then
2917 # Extract the first word of "cc", so it can be a program name with args.
2918 set dummy cc; ac_word=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if ${ac_cv_prog_CC+:} false; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 else
2927 ac_prog_rejected=no
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2935 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2936 ac_prog_rejected=yes
2937 continue
2938 fi
2939 ac_cv_prog_CC="cc"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943 done
2944 done
2945 IFS=$as_save_IFS
2946
2947 if test $ac_prog_rejected = yes; then
2948 # We found a bogon in the path, so make sure we never use it.
2949 set dummy $ac_cv_prog_CC
2950 shift
2951 if test $# != 0; then
2952 # We chose a different compiler from the bogus one.
2953 # However, it has the same basename, so the bogon will be chosen
2954 # first if we set CC to just the basename; use the full file name.
2955 shift
2956 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2957 fi
2958 fi
2959 fi
2960 fi
2961 CC=$ac_cv_prog_CC
2962 if test -n "$CC"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2968 fi
2969
2970
2971 fi
2972 if test -z "$CC"; then
2973 if test -n "$ac_tool_prefix"; then
2974 for ac_prog in cl.exe
2975 do
2976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if ${ac_cv_prog_CC+:} false; then :
2981 $as_echo_n "(cached) " >&6
2982 else
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 break 2
2996 fi
2997 done
2998 done
2999 IFS=$as_save_IFS
3000
3001 fi
3002 fi
3003 CC=$ac_cv_prog_CC
3004 if test -n "$CC"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3006 $as_echo "$CC" >&6; }
3007 else
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010 fi
3011
3012
3013 test -n "$CC" && break
3014 done
3015 fi
3016 if test -z "$CC"; then
3017 ac_ct_CC=$CC
3018 for ac_prog in cl.exe
3019 do
3020 # Extract the first word of "$ac_prog", so it can be a program name with args.
3021 set dummy $ac_prog; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3025 $as_echo_n "(cached) " >&6
3026 else
3027 if test -n "$ac_ct_CC"; then
3028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037 ac_cv_prog_ac_ct_CC="$ac_prog"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3040 fi
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 fi
3046 fi
3047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3048 if test -n "$ac_ct_CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3050 $as_echo "$ac_ct_CC" >&6; }
3051 else
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057 test -n "$ac_ct_CC" && break
3058 done
3059
3060 if test "x$ac_ct_CC" = x; then
3061 CC=""
3062 else
3063 case $cross_compiling:$ac_tool_warned in
3064 yes:)
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3067 ac_tool_warned=yes ;;
3068 esac
3069 CC=$ac_ct_CC
3070 fi
3071 fi
3072
3073 fi
3074
3075
3076 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 as_fn_error $? "no acceptable C compiler found in \$PATH
3079 See \`config.log' for more details" "$LINENO" 5; }
3080
3081 # Provide some information about the compiler.
3082 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3083 set X $ac_compile
3084 ac_compiler=$2
3085 for ac_option in --version -v -V -qversion; do
3086 { { ac_try="$ac_compiler $ac_option >&5"
3087 case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090 esac
3091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092 $as_echo "$ac_try_echo"; } >&5
3093 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3094 ac_status=$?
3095 if test -s conftest.err; then
3096 sed '10a\
3097 ... rest of stderr output deleted ...
3098 10q' conftest.err >conftest.er1
3099 cat conftest.er1 >&5
3100 fi
3101 rm -f conftest.er1 conftest.err
3102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103 test $ac_status = 0; }
3104 done
3105
3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107 /* end confdefs.h. */
3108
3109 int
3110 main ()
3111 {
3112
3113 ;
3114 return 0;
3115 }
3116 _ACEOF
3117 ac_clean_files_save=$ac_clean_files
3118 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3119 # Try to create an executable without -o first, disregard a.out.
3120 # It will help us diagnose broken compilers, and finding out an intuition
3121 # of exeext.
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3123 $as_echo_n "checking whether the C compiler works... " >&6; }
3124 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3125
3126 # The possible output files:
3127 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3128
3129 ac_rmfiles=
3130 for ac_file in $ac_files
3131 do
3132 case $ac_file in
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3134 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3135 esac
3136 done
3137 rm -f $ac_rmfiles
3138
3139 if { { ac_try="$ac_link_default"
3140 case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_link_default") 2>&5
3147 ac_status=$?
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }; then :
3150 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3151 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3152 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3153 # so that the user can short-circuit this test for compilers unknown to
3154 # Autoconf.
3155 for ac_file in $ac_files ''
3156 do
3157 test -f "$ac_file" || continue
3158 case $ac_file in
3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3160 ;;
3161 [ab].out )
3162 # We found the default executable, but exeext='' is most
3163 # certainly right.
3164 break;;
3165 *.* )
3166 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3167 then :; else
3168 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169 fi
3170 # We set ac_cv_exeext here because the later test for it is not
3171 # safe: cross compilers may not add the suffix if given an `-o'
3172 # argument, so we may need to know it at that point already.
3173 # Even if this section looks crufty: it has the advantage of
3174 # actually working.
3175 break;;
3176 * )
3177 break;;
3178 esac
3179 done
3180 test "$ac_cv_exeext" = no && ac_cv_exeext=
3181
3182 else
3183 ac_file=''
3184 fi
3185 if test -z "$ac_file"; then :
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 $as_echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193 as_fn_error 77 "C compiler cannot create executables
3194 See \`config.log' for more details" "$LINENO" 5; }
3195 else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3197 $as_echo "yes" >&6; }
3198 fi
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3200 $as_echo_n "checking for C compiler default output file name... " >&6; }
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3202 $as_echo "$ac_file" >&6; }
3203 ac_exeext=$ac_cv_exeext
3204
3205 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3206 ac_clean_files=$ac_clean_files_save
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3208 $as_echo_n "checking for suffix of executables... " >&6; }
3209 if { { ac_try="$ac_link"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_link") 2>&5
3217 ac_status=$?
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
3220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3222 # work properly (i.e., refer to `conftest.exe'), while it won't with
3223 # `rm'.
3224 for ac_file in conftest.exe conftest conftest.*; do
3225 test -f "$ac_file" || continue
3226 case $ac_file in
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229 break;;
3230 * ) break;;
3231 esac
3232 done
3233 else
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3237 See \`config.log' for more details" "$LINENO" 5; }
3238 fi
3239 rm -f conftest conftest$ac_cv_exeext
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3241 $as_echo "$ac_cv_exeext" >&6; }
3242
3243 rm -f conftest.$ac_ext
3244 EXEEXT=$ac_cv_exeext
3245 ac_exeext=$EXEEXT
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3248 #include <stdio.h>
3249 int
3250 main ()
3251 {
3252 FILE *f = fopen ("conftest.out", "w");
3253 return ferror (f) || fclose (f) != 0;
3254
3255 ;
3256 return 0;
3257 }
3258 _ACEOF
3259 ac_clean_files="$ac_clean_files conftest.out"
3260 # Check that the compiler produces executables we can run. If not, either
3261 # the compiler is broken, or we cross compile.
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3263 $as_echo_n "checking whether we are cross compiling... " >&6; }
3264 if test "$cross_compiling" != yes; then
3265 { { ac_try="$ac_link"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_link") 2>&5
3273 ac_status=$?
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }
3276 if { ac_try='./conftest$ac_cv_exeext'
3277 { { case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283 (eval "$ac_try") 2>&5
3284 ac_status=$?
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; }; then
3287 cross_compiling=no
3288 else
3289 if test "$cross_compiling" = maybe; then
3290 cross_compiling=yes
3291 else
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error $? "cannot run C compiled programs.
3295 If you meant to cross compile, use \`--host'.
3296 See \`config.log' for more details" "$LINENO" 5; }
3297 fi
3298 fi
3299 fi
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3301 $as_echo "$cross_compiling" >&6; }
3302
3303 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3304 ac_clean_files=$ac_clean_files_save
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3306 $as_echo_n "checking for suffix of object files... " >&6; }
3307 if ${ac_cv_objext+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3312
3313 int
3314 main ()
3315 {
3316
3317 ;
3318 return 0;
3319 }
3320 _ACEOF
3321 rm -f conftest.o conftest.obj
3322 if { { ac_try="$ac_compile"
3323 case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_compile") 2>&5
3330 ac_status=$?
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; then :
3333 for ac_file in conftest.o conftest.obj conftest.*; do
3334 test -f "$ac_file" || continue;
3335 case $ac_file in
3336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3338 break;;
3339 esac
3340 done
3341 else
3342 $as_echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3344
3345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 as_fn_error $? "cannot compute suffix of object files: cannot compile
3348 See \`config.log' for more details" "$LINENO" 5; }
3349 fi
3350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3351 fi
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3353 $as_echo "$ac_cv_objext" >&6; }
3354 OBJEXT=$ac_cv_objext
3355 ac_objext=$OBJEXT
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3357 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3358 if ${ac_cv_c_compiler_gnu+:} false; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3363
3364 int
3365 main ()
3366 {
3367 #ifndef __GNUC__
3368 choke me
3369 #endif
3370
3371 ;
3372 return 0;
3373 }
3374 _ACEOF
3375 if ac_fn_c_try_compile "$LINENO"; then :
3376 ac_compiler_gnu=yes
3377 else
3378 ac_compiler_gnu=no
3379 fi
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3382
3383 fi
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3385 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3386 if test $ac_compiler_gnu = yes; then
3387 GCC=yes
3388 else
3389 GCC=
3390 fi
3391 ac_test_CFLAGS=${CFLAGS+set}
3392 ac_save_CFLAGS=$CFLAGS
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3394 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3395 if ${ac_cv_prog_cc_g+:} false; then :
3396 $as_echo_n "(cached) " >&6
3397 else
3398 ac_save_c_werror_flag=$ac_c_werror_flag
3399 ac_c_werror_flag=yes
3400 ac_cv_prog_cc_g=no
3401 CFLAGS="-g"
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3404
3405 int
3406 main ()
3407 {
3408
3409 ;
3410 return 0;
3411 }
3412 _ACEOF
3413 if ac_fn_c_try_compile "$LINENO"; then :
3414 ac_cv_prog_cc_g=yes
3415 else
3416 CFLAGS=""
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3419
3420 int
3421 main ()
3422 {
3423
3424 ;
3425 return 0;
3426 }
3427 _ACEOF
3428 if ac_fn_c_try_compile "$LINENO"; then :
3429
3430 else
3431 ac_c_werror_flag=$ac_save_c_werror_flag
3432 CFLAGS="-g"
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3435
3436 int
3437 main ()
3438 {
3439
3440 ;
3441 return 0;
3442 }
3443 _ACEOF
3444 if ac_fn_c_try_compile "$LINENO"; then :
3445 ac_cv_prog_cc_g=yes
3446 fi
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 fi
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 fi
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_c_werror_flag=$ac_save_c_werror_flag
3453 fi
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3455 $as_echo "$ac_cv_prog_cc_g" >&6; }
3456 if test "$ac_test_CFLAGS" = set; then
3457 CFLAGS=$ac_save_CFLAGS
3458 elif test $ac_cv_prog_cc_g = yes; then
3459 if test "$GCC" = yes; then
3460 CFLAGS="-g -O2"
3461 else
3462 CFLAGS="-g"
3463 fi
3464 else
3465 if test "$GCC" = yes; then
3466 CFLAGS="-O2"
3467 else
3468 CFLAGS=
3469 fi
3470 fi
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3472 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3473 if ${ac_cv_prog_cc_c89+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 ac_cv_prog_cc_c89=no
3477 ac_save_CC=$CC
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3480 #include <stdarg.h>
3481 #include <stdio.h>
3482 struct stat;
3483 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3484 struct buf { int x; };
3485 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3486 static char *e (p, i)
3487 char **p;
3488 int i;
3489 {
3490 return p[i];
3491 }
3492 static char *f (char * (*g) (char **, int), char **p, ...)
3493 {
3494 char *s;
3495 va_list v;
3496 va_start (v,p);
3497 s = g (p, va_arg (v,int));
3498 va_end (v);
3499 return s;
3500 }
3501
3502 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3503 function prototypes and stuff, but not '\xHH' hex character constants.
3504 These don't provoke an error unfortunately, instead are silently treated
3505 as 'x'. The following induces an error, until -std is added to get
3506 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3507 array size at least. It's necessary to write '\x00'==0 to get something
3508 that's true only with -std. */
3509 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3510
3511 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3512 inside strings and character constants. */
3513 #define FOO(x) 'x'
3514 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3515
3516 int test (int i, double x);
3517 struct s1 {int (*f) (int a);};
3518 struct s2 {int (*f) (double a);};
3519 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3520 int argc;
3521 char **argv;
3522 int
3523 main ()
3524 {
3525 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3526 ;
3527 return 0;
3528 }
3529 _ACEOF
3530 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3531 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3532 do
3533 CC="$ac_save_CC $ac_arg"
3534 if ac_fn_c_try_compile "$LINENO"; then :
3535 ac_cv_prog_cc_c89=$ac_arg
3536 fi
3537 rm -f core conftest.err conftest.$ac_objext
3538 test "x$ac_cv_prog_cc_c89" != "xno" && break
3539 done
3540 rm -f conftest.$ac_ext
3541 CC=$ac_save_CC
3542
3543 fi
3544 # AC_CACHE_VAL
3545 case "x$ac_cv_prog_cc_c89" in
3546 x)
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3548 $as_echo "none needed" >&6; } ;;
3549 xno)
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3551 $as_echo "unsupported" >&6; } ;;
3552 *)
3553 CC="$CC $ac_cv_prog_cc_c89"
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3555 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3556 esac
3557 if test "x$ac_cv_prog_cc_c89" != xno; then :
3558
3559 fi
3560
3561 ac_ext=c
3562 ac_cpp='$CPP $CPPFLAGS'
3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566
3567 ac_ext=c
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3573 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3574 if ${am_cv_prog_cc_c_o+:} false; then :
3575 $as_echo_n "(cached) " >&6
3576 else
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579
3580 int
3581 main ()
3582 {
3583
3584 ;
3585 return 0;
3586 }
3587 _ACEOF
3588 # Make sure it works both with $CC and with simple cc.
3589 # Following AC_PROG_CC_C_O, we do the test twice because some
3590 # compilers refuse to overwrite an existing .o file with -o,
3591 # though they will create one.
3592 am_cv_prog_cc_c_o=yes
3593 for am_i in 1 2; do
3594 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3595 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } \
3599 && test -f conftest2.$ac_objext; then
3600 : OK
3601 else
3602 am_cv_prog_cc_c_o=no
3603 break
3604 fi
3605 done
3606 rm -f core conftest*
3607 unset am_i
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3610 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3611 if test "$am_cv_prog_cc_c_o" != yes; then
3612 # Losing compiler, so override with the script.
3613 # FIXME: It is wrong to rewrite CC.
3614 # But if we don't then we get into trouble of one sort or another.
3615 # A longer-term fix would be to have automake use am__CC in this case,
3616 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3617 CC="$am_aux_dir/compile $CC"
3618 fi
3619 ac_ext=c
3620 ac_cpp='$CPP $CPPFLAGS'
3621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3624
3625
3626
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3633 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3634 # On Suns, sometimes $CPP names a directory.
3635 if test -n "$CPP" && test -d "$CPP"; then
3636 CPP=
3637 fi
3638 if test -z "$CPP"; then
3639 if ${ac_cv_prog_CPP+:} false; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 # Double quotes because CPP needs to be expanded
3643 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3644 do
3645 ac_preproc_ok=false
3646 for ac_c_preproc_warn_flag in '' yes
3647 do
3648 # Use a header file that comes with gcc, so configuring glibc
3649 # with a fresh cross-compiler works.
3650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3651 # <limits.h> exists even on freestanding compilers.
3652 # On the NeXT, cc -E runs the code through the compiler's parser,
3653 # not just through cpp. "Syntax error" is here to catch this case.
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3656 #ifdef __STDC__
3657 # include <limits.h>
3658 #else
3659 # include <assert.h>
3660 #endif
3661 Syntax error
3662 _ACEOF
3663 if ac_fn_c_try_cpp "$LINENO"; then :
3664
3665 else
3666 # Broken: fails on valid input.
3667 continue
3668 fi
3669 rm -f conftest.err conftest.i conftest.$ac_ext
3670
3671 # OK, works on sane cases. Now check whether nonexistent headers
3672 # can be detected and how.
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3675 #include <ac_nonexistent.h>
3676 _ACEOF
3677 if ac_fn_c_try_cpp "$LINENO"; then :
3678 # Broken: success on invalid input.
3679 continue
3680 else
3681 # Passes both tests.
3682 ac_preproc_ok=:
3683 break
3684 fi
3685 rm -f conftest.err conftest.i conftest.$ac_ext
3686
3687 done
3688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3689 rm -f conftest.i conftest.err conftest.$ac_ext
3690 if $ac_preproc_ok; then :
3691 break
3692 fi
3693
3694 done
3695 ac_cv_prog_CPP=$CPP
3696
3697 fi
3698 CPP=$ac_cv_prog_CPP
3699 else
3700 ac_cv_prog_CPP=$CPP
3701 fi
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3703 $as_echo "$CPP" >&6; }
3704 ac_preproc_ok=false
3705 for ac_c_preproc_warn_flag in '' yes
3706 do
3707 # Use a header file that comes with gcc, so configuring glibc
3708 # with a fresh cross-compiler works.
3709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3710 # <limits.h> exists even on freestanding compilers.
3711 # On the NeXT, cc -E runs the code through the compiler's parser,
3712 # not just through cpp. "Syntax error" is here to catch this case.
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715 #ifdef __STDC__
3716 # include <limits.h>
3717 #else
3718 # include <assert.h>
3719 #endif
3720 Syntax error
3721 _ACEOF
3722 if ac_fn_c_try_cpp "$LINENO"; then :
3723
3724 else
3725 # Broken: fails on valid input.
3726 continue
3727 fi
3728 rm -f conftest.err conftest.i conftest.$ac_ext
3729
3730 # OK, works on sane cases. Now check whether nonexistent headers
3731 # can be detected and how.
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3734 #include <ac_nonexistent.h>
3735 _ACEOF
3736 if ac_fn_c_try_cpp "$LINENO"; then :
3737 # Broken: success on invalid input.
3738 continue
3739 else
3740 # Passes both tests.
3741 ac_preproc_ok=:
3742 break
3743 fi
3744 rm -f conftest.err conftest.i conftest.$ac_ext
3745
3746 done
3747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3748 rm -f conftest.i conftest.err conftest.$ac_ext
3749 if $ac_preproc_ok; then :
3750
3751 else
3752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3755 See \`config.log' for more details" "$LINENO" 5; }
3756 fi
3757
3758 ac_ext=c
3759 ac_cpp='$CPP $CPPFLAGS'
3760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3763
3764
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3766 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3767 if ${ac_cv_path_GREP+:} false; then :
3768 $as_echo_n "(cached) " >&6
3769 else
3770 if test -z "$GREP"; then
3771 ac_path_GREP_found=false
3772 # Loop through the user's path and test for each of PROGNAME-LIST
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3775 do
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_prog in grep ggrep; do
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3781 as_fn_executable_p "$ac_path_GREP" || continue
3782 # Check for GNU ac_path_GREP and select it if it is found.
3783 # Check for GNU $ac_path_GREP
3784 case `"$ac_path_GREP" --version 2>&1` in
3785 *GNU*)
3786 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3787 *)
3788 ac_count=0
3789 $as_echo_n 0123456789 >"conftest.in"
3790 while :
3791 do
3792 cat "conftest.in" "conftest.in" >"conftest.tmp"
3793 mv "conftest.tmp" "conftest.in"
3794 cp "conftest.in" "conftest.nl"
3795 $as_echo 'GREP' >> "conftest.nl"
3796 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3798 as_fn_arith $ac_count + 1 && ac_count=$as_val
3799 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3800 # Best one so far, save it but keep looking for a better one
3801 ac_cv_path_GREP="$ac_path_GREP"
3802 ac_path_GREP_max=$ac_count
3803 fi
3804 # 10*(2^10) chars as input seems more than enough
3805 test $ac_count -gt 10 && break
3806 done
3807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3808 esac
3809
3810 $ac_path_GREP_found && break 3
3811 done
3812 done
3813 done
3814 IFS=$as_save_IFS
3815 if test -z "$ac_cv_path_GREP"; then
3816 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3817 fi
3818 else
3819 ac_cv_path_GREP=$GREP
3820 fi
3821
3822 fi
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3824 $as_echo "$ac_cv_path_GREP" >&6; }
3825 GREP="$ac_cv_path_GREP"
3826
3827
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3829 $as_echo_n "checking for egrep... " >&6; }
3830 if ${ac_cv_path_EGREP+:} false; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3834 then ac_cv_path_EGREP="$GREP -E"
3835 else
3836 if test -z "$EGREP"; then
3837 ac_path_EGREP_found=false
3838 # Loop through the user's path and test for each of PROGNAME-LIST
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3841 do
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_prog in egrep; do
3845 for ac_exec_ext in '' $ac_executable_extensions; do
3846 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3847 as_fn_executable_p "$ac_path_EGREP" || continue
3848 # Check for GNU ac_path_EGREP and select it if it is found.
3849 # Check for GNU $ac_path_EGREP
3850 case `"$ac_path_EGREP" --version 2>&1` in
3851 *GNU*)
3852 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3853 *)
3854 ac_count=0
3855 $as_echo_n 0123456789 >"conftest.in"
3856 while :
3857 do
3858 cat "conftest.in" "conftest.in" >"conftest.tmp"
3859 mv "conftest.tmp" "conftest.in"
3860 cp "conftest.in" "conftest.nl"
3861 $as_echo 'EGREP' >> "conftest.nl"
3862 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3863 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3864 as_fn_arith $ac_count + 1 && ac_count=$as_val
3865 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3866 # Best one so far, save it but keep looking for a better one
3867 ac_cv_path_EGREP="$ac_path_EGREP"
3868 ac_path_EGREP_max=$ac_count
3869 fi
3870 # 10*(2^10) chars as input seems more than enough
3871 test $ac_count -gt 10 && break
3872 done
3873 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3874 esac
3875
3876 $ac_path_EGREP_found && break 3
3877 done
3878 done
3879 done
3880 IFS=$as_save_IFS
3881 if test -z "$ac_cv_path_EGREP"; then
3882 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3883 fi
3884 else
3885 ac_cv_path_EGREP=$EGREP
3886 fi
3887
3888 fi
3889 fi
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3891 $as_echo "$ac_cv_path_EGREP" >&6; }
3892 EGREP="$ac_cv_path_EGREP"
3893
3894
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3896 $as_echo_n "checking for ANSI C header files... " >&6; }
3897 if ${ac_cv_header_stdc+:} false; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3902 #include <stdlib.h>
3903 #include <stdarg.h>
3904 #include <string.h>
3905 #include <float.h>
3906
3907 int
3908 main ()
3909 {
3910
3911 ;
3912 return 0;
3913 }
3914 _ACEOF
3915 if ac_fn_c_try_compile "$LINENO"; then :
3916 ac_cv_header_stdc=yes
3917 else
3918 ac_cv_header_stdc=no
3919 fi
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921
3922 if test $ac_cv_header_stdc = yes; then
3923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926 #include <string.h>
3927
3928 _ACEOF
3929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3930 $EGREP "memchr" >/dev/null 2>&1; then :
3931
3932 else
3933 ac_cv_header_stdc=no
3934 fi
3935 rm -f conftest*
3936
3937 fi
3938
3939 if test $ac_cv_header_stdc = yes; then
3940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3943 #include <stdlib.h>
3944
3945 _ACEOF
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947 $EGREP "free" >/dev/null 2>&1; then :
3948
3949 else
3950 ac_cv_header_stdc=no
3951 fi
3952 rm -f conftest*
3953
3954 fi
3955
3956 if test $ac_cv_header_stdc = yes; then
3957 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3958 if test "$cross_compiling" = yes; then :
3959 :
3960 else
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963 #include <ctype.h>
3964 #include <stdlib.h>
3965 #if ((' ' & 0x0FF) == 0x020)
3966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3968 #else
3969 # define ISLOWER(c) \
3970 (('a' <= (c) && (c) <= 'i') \
3971 || ('j' <= (c) && (c) <= 'r') \
3972 || ('s' <= (c) && (c) <= 'z'))
3973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3974 #endif
3975
3976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3977 int
3978 main ()
3979 {
3980 int i;
3981 for (i = 0; i < 256; i++)
3982 if (XOR (islower (i), ISLOWER (i))
3983 || toupper (i) != TOUPPER (i))
3984 return 2;
3985 return 0;
3986 }
3987 _ACEOF
3988 if ac_fn_c_try_run "$LINENO"; then :
3989
3990 else
3991 ac_cv_header_stdc=no
3992 fi
3993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3994 conftest.$ac_objext conftest.beam conftest.$ac_ext
3995 fi
3996
3997 fi
3998 fi
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4000 $as_echo "$ac_cv_header_stdc" >&6; }
4001 if test $ac_cv_header_stdc = yes; then
4002
4003 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4004
4005 fi
4006
4007 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4008 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4009 inttypes.h stdint.h unistd.h
4010 do :
4011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4012 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4013 "
4014 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4015 cat >>confdefs.h <<_ACEOF
4016 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4017 _ACEOF
4018
4019 fi
4020
4021 done
4022
4023
4024
4025 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4026 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4027 MINIX=yes
4028 else
4029 MINIX=
4030 fi
4031
4032
4033 if test "$MINIX" = yes; then
4034
4035 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4036
4037
4038 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4039
4040
4041 $as_echo "#define _MINIX 1" >>confdefs.h
4042
4043 fi
4044
4045
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4047 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4048 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4053
4054 # define __EXTENSIONS__ 1
4055 $ac_includes_default
4056 int
4057 main ()
4058 {
4059
4060 ;
4061 return 0;
4062 }
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"; then :
4065 ac_cv_safe_to_define___extensions__=yes
4066 else
4067 ac_cv_safe_to_define___extensions__=no
4068 fi
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 fi
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4072 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4073 test $ac_cv_safe_to_define___extensions__ = yes &&
4074 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4075
4076 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4077
4078 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4079
4080 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4081
4082 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4083
4084
4085 test "$program_prefix" != NONE &&
4086 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4087 # Use a double $ so make ignores it.
4088 test "$program_suffix" != NONE &&
4089 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4090 # Double any \ or $.
4091 # By default was `s,x,x', remove it if useless.
4092 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4093 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4094
4095 # Find a good install program. We prefer a C program (faster),
4096 # so one script is as good as another. But avoid the broken or
4097 # incompatible versions:
4098 # SysV /etc/install, /usr/sbin/install
4099 # SunOS /usr/etc/install
4100 # IRIX /sbin/install
4101 # AIX /bin/install
4102 # AmigaOS /C/install, which installs bootblocks on floppy discs
4103 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4104 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4105 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4106 # OS/2's system install, which has a completely different semantic
4107 # ./install, which can be erroneously created by make from ./install.sh.
4108 # Reject install programs that cannot install multiple files.
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4110 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4111 if test -z "$INSTALL"; then
4112 if ${ac_cv_path_install+:} false; then :
4113 $as_echo_n "(cached) " >&6
4114 else
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4117 do
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 # Account for people who put trailing slashes in PATH elements.
4121 case $as_dir/ in #((
4122 ./ | .// | /[cC]/* | \
4123 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4124 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4125 /usr/ucb/* ) ;;
4126 *)
4127 # OSF1 and SCO ODT 3.0 have their own names for install.
4128 # Don't use installbsd from OSF since it installs stuff as root
4129 # by default.
4130 for ac_prog in ginstall scoinst install; do
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4133 if test $ac_prog = install &&
4134 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4135 # AIX install. It has an incompatible calling convention.
4136 :
4137 elif test $ac_prog = install &&
4138 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4139 # program-specific install script used by HP pwplus--don't use.
4140 :
4141 else
4142 rm -rf conftest.one conftest.two conftest.dir
4143 echo one > conftest.one
4144 echo two > conftest.two
4145 mkdir conftest.dir
4146 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4147 test -s conftest.one && test -s conftest.two &&
4148 test -s conftest.dir/conftest.one &&
4149 test -s conftest.dir/conftest.two
4150 then
4151 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4152 break 3
4153 fi
4154 fi
4155 fi
4156 done
4157 done
4158 ;;
4159 esac
4160
4161 done
4162 IFS=$as_save_IFS
4163
4164 rm -rf conftest.one conftest.two conftest.dir
4165
4166 fi
4167 if test "${ac_cv_path_install+set}" = set; then
4168 INSTALL=$ac_cv_path_install
4169 else
4170 # As a last resort, use the slow shell script. Don't cache a
4171 # value for INSTALL within a source directory, because that will
4172 # break other packages using the cache if that directory is
4173 # removed, or if the value is a relative name.
4174 INSTALL=$ac_install_sh
4175 fi
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4178 $as_echo "$INSTALL" >&6; }
4179
4180 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4181 # It thinks the first close brace ends the variable substitution.
4182 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4183
4184 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4185
4186 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4187
4188
4189
4190
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4193 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4194 if ${ac_cv_c_bigendian+:} false; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 ac_cv_c_bigendian=unknown
4198 # See if we're dealing with a universal compiler.
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 #ifndef __APPLE_CC__
4202 not a universal capable compiler
4203 #endif
4204 typedef int dummy;
4205
4206 _ACEOF
4207 if ac_fn_c_try_compile "$LINENO"; then :
4208
4209 # Check for potential -arch flags. It is not universal unless
4210 # there are at least two -arch flags with different values.
4211 ac_arch=
4212 ac_prev=
4213 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4214 if test -n "$ac_prev"; then
4215 case $ac_word in
4216 i?86 | x86_64 | ppc | ppc64)
4217 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4218 ac_arch=$ac_word
4219 else
4220 ac_cv_c_bigendian=universal
4221 break
4222 fi
4223 ;;
4224 esac
4225 ac_prev=
4226 elif test "x$ac_word" = "x-arch"; then
4227 ac_prev=arch
4228 fi
4229 done
4230 fi
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 if test $ac_cv_c_bigendian = unknown; then
4233 # See if sys/param.h defines the BYTE_ORDER macro.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236 #include <sys/types.h>
4237 #include <sys/param.h>
4238
4239 int
4240 main ()
4241 {
4242 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4243 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4244 && LITTLE_ENDIAN)
4245 bogus endian macros
4246 #endif
4247
4248 ;
4249 return 0;
4250 }
4251 _ACEOF
4252 if ac_fn_c_try_compile "$LINENO"; then :
4253 # It does; now see whether it defined to BIG_ENDIAN or not.
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 #include <sys/types.h>
4257 #include <sys/param.h>
4258
4259 int
4260 main ()
4261 {
4262 #if BYTE_ORDER != BIG_ENDIAN
4263 not big endian
4264 #endif
4265
4266 ;
4267 return 0;
4268 }
4269 _ACEOF
4270 if ac_fn_c_try_compile "$LINENO"; then :
4271 ac_cv_c_bigendian=yes
4272 else
4273 ac_cv_c_bigendian=no
4274 fi
4275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4276 fi
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278 fi
4279 if test $ac_cv_c_bigendian = unknown; then
4280 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 #include <limits.h>
4284
4285 int
4286 main ()
4287 {
4288 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4289 bogus endian macros
4290 #endif
4291
4292 ;
4293 return 0;
4294 }
4295 _ACEOF
4296 if ac_fn_c_try_compile "$LINENO"; then :
4297 # It does; now see whether it defined to _BIG_ENDIAN or not.
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 #include <limits.h>
4301
4302 int
4303 main ()
4304 {
4305 #ifndef _BIG_ENDIAN
4306 not big endian
4307 #endif
4308
4309 ;
4310 return 0;
4311 }
4312 _ACEOF
4313 if ac_fn_c_try_compile "$LINENO"; then :
4314 ac_cv_c_bigendian=yes
4315 else
4316 ac_cv_c_bigendian=no
4317 fi
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 fi
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321 fi
4322 if test $ac_cv_c_bigendian = unknown; then
4323 # Compile a test program.
4324 if test "$cross_compiling" = yes; then :
4325 # Try to guess by grepping values from an object file.
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4328 short int ascii_mm[] =
4329 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4330 short int ascii_ii[] =
4331 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4332 int use_ascii (int i) {
4333 return ascii_mm[i] + ascii_ii[i];
4334 }
4335 short int ebcdic_ii[] =
4336 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4337 short int ebcdic_mm[] =
4338 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4339 int use_ebcdic (int i) {
4340 return ebcdic_mm[i] + ebcdic_ii[i];
4341 }
4342 extern int foo;
4343
4344 int
4345 main ()
4346 {
4347 return use_ascii (foo) == use_ebcdic (foo);
4348 ;
4349 return 0;
4350 }
4351 _ACEOF
4352 if ac_fn_c_try_compile "$LINENO"; then :
4353 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4354 ac_cv_c_bigendian=yes
4355 fi
4356 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4357 if test "$ac_cv_c_bigendian" = unknown; then
4358 ac_cv_c_bigendian=no
4359 else
4360 # finding both strings is unlikely to happen, but who knows?
4361 ac_cv_c_bigendian=unknown
4362 fi
4363 fi
4364 fi
4365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366 else
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369 $ac_includes_default
4370 int
4371 main ()
4372 {
4373
4374 /* Are we little or big endian? From Harbison&Steele. */
4375 union
4376 {
4377 long int l;
4378 char c[sizeof (long int)];
4379 } u;
4380 u.l = 1;
4381 return u.c[sizeof (long int) - 1] == 1;
4382
4383 ;
4384 return 0;
4385 }
4386 _ACEOF
4387 if ac_fn_c_try_run "$LINENO"; then :
4388 ac_cv_c_bigendian=no
4389 else
4390 ac_cv_c_bigendian=yes
4391 fi
4392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4393 conftest.$ac_objext conftest.beam conftest.$ac_ext
4394 fi
4395
4396 fi
4397 fi
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4399 $as_echo "$ac_cv_c_bigendian" >&6; }
4400 case $ac_cv_c_bigendian in #(
4401 yes)
4402 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4403 ;; #(
4404 no)
4405 ;; #(
4406 universal)
4407
4408 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4409
4410 ;; #(
4411 *)
4412 as_fn_error $? "unknown endianness
4413 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4414 esac
4415
4416
4417
4418
4419 if test -n "$ac_tool_prefix"; then
4420 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4421 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423 $as_echo_n "checking for $ac_word... " >&6; }
4424 if ${ac_cv_prog_DTC+:} false; then :
4425 $as_echo_n "(cached) " >&6
4426 else
4427 if test -n "$DTC"; then
4428 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4432 do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4440 fi
4441 done
4442 done
4443 IFS=$as_save_IFS
4444
4445 fi
4446 fi
4447 DTC=$ac_cv_prog_DTC
4448 if test -n "$DTC"; then
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4450 $as_echo "$DTC" >&6; }
4451 else
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 $as_echo "no" >&6; }
4454 fi
4455
4456
4457 fi
4458 if test -z "$ac_cv_prog_DTC"; then
4459 ac_ct_DTC=$DTC
4460 # Extract the first word of "dtc", so it can be a program name with args.
4461 set dummy dtc; ac_word=$2
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 $as_echo_n "checking for $ac_word... " >&6; }
4464 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 if test -n "$ac_ct_DTC"; then
4468 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4469 else
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4472 do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_prog_ac_ct_DTC="dtc"
4478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4480 fi
4481 done
4482 done
4483 IFS=$as_save_IFS
4484
4485 fi
4486 fi
4487 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4488 if test -n "$ac_ct_DTC"; then
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4490 $as_echo "$ac_ct_DTC" >&6; }
4491 else
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493 $as_echo "no" >&6; }
4494 fi
4495
4496 if test "x$ac_ct_DTC" = x; then
4497 DTC=""
4498 else
4499 case $cross_compiling:$ac_tool_warned in
4500 yes:)
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4503 ac_tool_warned=yes ;;
4504 esac
4505 DTC=$ac_ct_DTC
4506 fi
4507 else
4508 DTC="$ac_cv_prog_DTC"
4509 fi
4510
4511
4512 if test "x$cross_compiling" = "xno"; then
4513 : "${AR_FOR_BUILD:=\$(AR)}"
4514 : "${CC_FOR_BUILD:=\$(CC)}"
4515 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4516 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4517 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4518 else
4519 : "${AR_FOR_BUILD:=ar}"
4520 : "${CC_FOR_BUILD:=gcc}"
4521 : "${RANLIB_FOR_BUILD:=ranlib}"
4522 : "${CFLAGS_FOR_BUILD:=-g -O}"
4523 : "${LDLFAGS_FOR_BUILD:=}"
4524 fi
4525
4526
4527
4528
4529
4530
4531
4532 if test -n "$ac_tool_prefix"; then
4533 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4534 set dummy ${ac_tool_prefix}ar; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if ${ac_cv_prog_AR+:} false; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 if test -n "$AR"; then
4541 ac_cv_prog_AR="$AR" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4550 ac_cv_prog_AR="${ac_tool_prefix}ar"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 break 2
4553 fi
4554 done
4555 done
4556 IFS=$as_save_IFS
4557
4558 fi
4559 fi
4560 AR=$ac_cv_prog_AR
4561 if test -n "$AR"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4563 $as_echo "$AR" >&6; }
4564 else
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4567 fi
4568
4569
4570 fi
4571 if test -z "$ac_cv_prog_AR"; then
4572 ac_ct_AR=$AR
4573 # Extract the first word of "ar", so it can be a program name with args.
4574 set dummy ar; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$ac_ct_AR"; then
4581 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4582 else
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4585 do
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590 ac_cv_prog_ac_ct_AR="ar"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4593 fi
4594 done
4595 done
4596 IFS=$as_save_IFS
4597
4598 fi
4599 fi
4600 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4601 if test -n "$ac_ct_AR"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4603 $as_echo "$ac_ct_AR" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4607 fi
4608
4609 if test "x$ac_ct_AR" = x; then
4610 AR=""
4611 else
4612 case $cross_compiling:$ac_tool_warned in
4613 yes:)
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4616 ac_tool_warned=yes ;;
4617 esac
4618 AR=$ac_ct_AR
4619 fi
4620 else
4621 AR="$ac_cv_prog_AR"
4622 fi
4623
4624 if test -n "$ac_tool_prefix"; then
4625 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4626 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if ${ac_cv_prog_RANLIB+:} false; then :
4630 $as_echo_n "(cached) " >&6
4631 else
4632 if test -n "$RANLIB"; then
4633 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4645 fi
4646 done
4647 done
4648 IFS=$as_save_IFS
4649
4650 fi
4651 fi
4652 RANLIB=$ac_cv_prog_RANLIB
4653 if test -n "$RANLIB"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4655 $as_echo "$RANLIB" >&6; }
4656 else
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4659 fi
4660
4661
4662 fi
4663 if test -z "$ac_cv_prog_RANLIB"; then
4664 ac_ct_RANLIB=$RANLIB
4665 # Extract the first word of "ranlib", so it can be a program name with args.
4666 set dummy ranlib; ac_word=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 if test -n "$ac_ct_RANLIB"; then
4673 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4674 else
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4677 do
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4682 ac_cv_prog_ac_ct_RANLIB="ranlib"
4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4685 fi
4686 done
4687 done
4688 IFS=$as_save_IFS
4689
4690 fi
4691 fi
4692 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4693 if test -n "$ac_ct_RANLIB"; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4695 $as_echo "$ac_ct_RANLIB" >&6; }
4696 else
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4699 fi
4700
4701 if test "x$ac_ct_RANLIB" = x; then
4702 RANLIB=":"
4703 else
4704 case $cross_compiling:$ac_tool_warned in
4705 yes:)
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4708 ac_tool_warned=yes ;;
4709 esac
4710 RANLIB=$ac_ct_RANLIB
4711 fi
4712 else
4713 RANLIB="$ac_cv_prog_RANLIB"
4714 fi
4715
4716
4717 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
4718 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
4719 # is C99. So handle it ourselves.
4720 :
4721 C_DIALECT=
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4723 $as_echo_n "checking whether C11 is supported by default... " >&6; }
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4726
4727 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4728 # error "C11 support not found"
4729 #endif
4730
4731 _ACEOF
4732 if ac_fn_c_try_compile "$LINENO"; then :
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4734 $as_echo "yes" >&6; }
4735 else
4736
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 $as_echo "no" >&6; }
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4740 $as_echo_n "checking for -std=c11 support... " >&6; }
4741 ac_save_CC="$CC"
4742 CC="$CC -std=c11"
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745
4746 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4747 # error "C11 support not found"
4748 #endif
4749
4750 _ACEOF
4751 if ac_fn_c_try_compile "$LINENO"; then :
4752
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4754 $as_echo "yes" >&6; }
4755 CC="$ac_save_CC"
4756 C_DIALECT="-std=c11"
4757
4758 else
4759 as_fn_error $? "C11 is required" "$LINENO" 5
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 fi
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764
4765
4766
4767
4768
4769 for ac_header in $ac_header_list
4770 do :
4771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4772 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4773 "
4774 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4775 cat >>confdefs.h <<_ACEOF
4776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4777 _ACEOF
4778
4779 fi
4780
4781 done
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834 for ac_func in $ac_func_list
4835 do :
4836 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4837 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4838 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4839 cat >>confdefs.h <<_ACEOF
4840 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4841 _ACEOF
4842
4843 fi
4844 done
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4969 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4970 if ${ac_cv_struct_tm+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4975 #include <sys/types.h>
4976 #include <time.h>
4977
4978 int
4979 main ()
4980 {
4981 struct tm tm;
4982 int *p = &tm.tm_sec;
4983 return !p;
4984 ;
4985 return 0;
4986 }
4987 _ACEOF
4988 if ac_fn_c_try_compile "$LINENO"; then :
4989 ac_cv_struct_tm=time.h
4990 else
4991 ac_cv_struct_tm=sys/time.h
4992 fi
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 fi
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4996 $as_echo "$ac_cv_struct_tm" >&6; }
4997 if test $ac_cv_struct_tm = sys/time.h; then
4998
4999 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5000
5001 fi
5002
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5004 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5005 if ${ac_cv_type_uid_t+:} false; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010 #include <sys/types.h>
5011
5012 _ACEOF
5013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5014 $EGREP "uid_t" >/dev/null 2>&1; then :
5015 ac_cv_type_uid_t=yes
5016 else
5017 ac_cv_type_uid_t=no
5018 fi
5019 rm -f conftest*
5020
5021 fi
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5023 $as_echo "$ac_cv_type_uid_t" >&6; }
5024 if test $ac_cv_type_uid_t = no; then
5025
5026 $as_echo "#define uid_t int" >>confdefs.h
5027
5028
5029 $as_echo "#define gid_t int" >>confdefs.h
5030
5031 fi
5032
5033 case `pwd` in
5034 *\ * | *\ *)
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5036 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5037 esac
5038
5039
5040
5041 macro_version='2.2.7a'
5042 macro_revision='1.3134'
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056 ltmain="$ac_aux_dir/ltmain.sh"
5057
5058 # Backslashify metacharacters that are still active within
5059 # double-quoted strings.
5060 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5061
5062 # Same as above, but do not quote variable references.
5063 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5064
5065 # Sed substitution to delay expansion of an escaped shell variable in a
5066 # double_quote_subst'ed string.
5067 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5068
5069 # Sed substitution to delay expansion of an escaped single quote.
5070 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5071
5072 # Sed substitution to avoid accidental globbing in evaled expressions
5073 no_glob_subst='s/\*/\\\*/g'
5074
5075 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5076 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5077 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5078
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5080 $as_echo_n "checking how to print strings... " >&6; }
5081 # Test print first, because it will be a builtin if present.
5082 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5083 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5084 ECHO='print -r --'
5085 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5086 ECHO='printf %s\n'
5087 else
5088 # Use this function as a fallback that always works.
5089 func_fallback_echo ()
5090 {
5091 eval 'cat <<_LTECHO_EOF
5092 $1
5093 _LTECHO_EOF'
5094 }
5095 ECHO='func_fallback_echo'
5096 fi
5097
5098 # func_echo_all arg...
5099 # Invoke $ECHO with all args, space-separated.
5100 func_echo_all ()
5101 {
5102 $ECHO ""
5103 }
5104
5105 case "$ECHO" in
5106 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5107 $as_echo "printf" >&6; } ;;
5108 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5109 $as_echo "print -r" >&6; } ;;
5110 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5111 $as_echo "cat" >&6; } ;;
5112 esac
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5128 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5129 if ${ac_cv_path_SED+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5133 for ac_i in 1 2 3 4 5 6 7; do
5134 ac_script="$ac_script$as_nl$ac_script"
5135 done
5136 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5137 { ac_script=; unset ac_script;}
5138 if test -z "$SED"; then
5139 ac_path_SED_found=false
5140 # Loop through the user's path and test for each of PROGNAME-LIST
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5143 do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_prog in sed gsed; do
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5149 as_fn_executable_p "$ac_path_SED" || continue
5150 # Check for GNU ac_path_SED and select it if it is found.
5151 # Check for GNU $ac_path_SED
5152 case `"$ac_path_SED" --version 2>&1` in
5153 *GNU*)
5154 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5155 *)
5156 ac_count=0
5157 $as_echo_n 0123456789 >"conftest.in"
5158 while :
5159 do
5160 cat "conftest.in" "conftest.in" >"conftest.tmp"
5161 mv "conftest.tmp" "conftest.in"
5162 cp "conftest.in" "conftest.nl"
5163 $as_echo '' >> "conftest.nl"
5164 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5166 as_fn_arith $ac_count + 1 && ac_count=$as_val
5167 if test $ac_count -gt ${ac_path_SED_max-0}; then
5168 # Best one so far, save it but keep looking for a better one
5169 ac_cv_path_SED="$ac_path_SED"
5170 ac_path_SED_max=$ac_count
5171 fi
5172 # 10*(2^10) chars as input seems more than enough
5173 test $ac_count -gt 10 && break
5174 done
5175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5176 esac
5177
5178 $ac_path_SED_found && break 3
5179 done
5180 done
5181 done
5182 IFS=$as_save_IFS
5183 if test -z "$ac_cv_path_SED"; then
5184 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5185 fi
5186 else
5187 ac_cv_path_SED=$SED
5188 fi
5189
5190 fi
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5192 $as_echo "$ac_cv_path_SED" >&6; }
5193 SED="$ac_cv_path_SED"
5194 rm -f conftest.sed
5195
5196 test -z "$SED" && SED=sed
5197 Xsed="$SED -e 1s/^X//"
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5210 $as_echo_n "checking for fgrep... " >&6; }
5211 if ${ac_cv_path_FGREP+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5215 then ac_cv_path_FGREP="$GREP -F"
5216 else
5217 if test -z "$FGREP"; then
5218 ac_path_FGREP_found=false
5219 # Loop through the user's path and test for each of PROGNAME-LIST
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5222 do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_prog in fgrep; do
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5228 as_fn_executable_p "$ac_path_FGREP" || continue
5229 # Check for GNU ac_path_FGREP and select it if it is found.
5230 # Check for GNU $ac_path_FGREP
5231 case `"$ac_path_FGREP" --version 2>&1` in
5232 *GNU*)
5233 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5234 *)
5235 ac_count=0
5236 $as_echo_n 0123456789 >"conftest.in"
5237 while :
5238 do
5239 cat "conftest.in" "conftest.in" >"conftest.tmp"
5240 mv "conftest.tmp" "conftest.in"
5241 cp "conftest.in" "conftest.nl"
5242 $as_echo 'FGREP' >> "conftest.nl"
5243 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5245 as_fn_arith $ac_count + 1 && ac_count=$as_val
5246 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5247 # Best one so far, save it but keep looking for a better one
5248 ac_cv_path_FGREP="$ac_path_FGREP"
5249 ac_path_FGREP_max=$ac_count
5250 fi
5251 # 10*(2^10) chars as input seems more than enough
5252 test $ac_count -gt 10 && break
5253 done
5254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5255 esac
5256
5257 $ac_path_FGREP_found && break 3
5258 done
5259 done
5260 done
5261 IFS=$as_save_IFS
5262 if test -z "$ac_cv_path_FGREP"; then
5263 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5264 fi
5265 else
5266 ac_cv_path_FGREP=$FGREP
5267 fi
5268
5269 fi
5270 fi
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5272 $as_echo "$ac_cv_path_FGREP" >&6; }
5273 FGREP="$ac_cv_path_FGREP"
5274
5275
5276 test -z "$GREP" && GREP=grep
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296 # Check whether --with-gnu-ld was given.
5297 if test "${with_gnu_ld+set}" = set; then :
5298 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5299 else
5300 with_gnu_ld=no
5301 fi
5302
5303 ac_prog=ld
5304 if test "$GCC" = yes; then
5305 # Check if gcc -print-prog-name=ld gives a path.
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5307 $as_echo_n "checking for ld used by $CC... " >&6; }
5308 case $host in
5309 *-*-mingw*)
5310 # gcc leaves a trailing carriage return which upsets mingw
5311 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5312 *)
5313 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5314 esac
5315 case $ac_prog in
5316 # Accept absolute paths.
5317 [\\/]* | ?:[\\/]*)
5318 re_direlt='/[^/][^/]*/\.\./'
5319 # Canonicalize the pathname of ld
5320 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5321 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5322 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5323 done
5324 test -z "$LD" && LD="$ac_prog"
5325 ;;
5326 "")
5327 # If it fails, then pretend we aren't using GCC.
5328 ac_prog=ld
5329 ;;
5330 *)
5331 # If it is relative, then search for the first ld in PATH.
5332 with_gnu_ld=unknown
5333 ;;
5334 esac
5335 elif test "$with_gnu_ld" = yes; then
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5337 $as_echo_n "checking for GNU ld... " >&6; }
5338 else
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5340 $as_echo_n "checking for non-GNU ld... " >&6; }
5341 fi
5342 if ${lt_cv_path_LD+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 if test -z "$LD"; then
5346 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5347 for ac_dir in $PATH; do
5348 IFS="$lt_save_ifs"
5349 test -z "$ac_dir" && ac_dir=.
5350 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5351 lt_cv_path_LD="$ac_dir/$ac_prog"
5352 # Check to see if the program is GNU ld. I'd rather use --version,
5353 # but apparently some variants of GNU ld only accept -v.
5354 # Break only if it was the GNU/non-GNU ld that we prefer.
5355 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5356 *GNU* | *'with BFD'*)
5357 test "$with_gnu_ld" != no && break
5358 ;;
5359 *)
5360 test "$with_gnu_ld" != yes && break
5361 ;;
5362 esac
5363 fi
5364 done
5365 IFS="$lt_save_ifs"
5366 else
5367 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5368 fi
5369 fi
5370
5371 LD="$lt_cv_path_LD"
5372 if test -n "$LD"; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5374 $as_echo "$LD" >&6; }
5375 else
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5378 fi
5379 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5381 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5382 if ${lt_cv_prog_gnu_ld+:} false; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5386 case `$LD -v 2>&1 </dev/null` in
5387 *GNU* | *'with BFD'*)
5388 lt_cv_prog_gnu_ld=yes
5389 ;;
5390 *)
5391 lt_cv_prog_gnu_ld=no
5392 ;;
5393 esac
5394 fi
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5396 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5397 with_gnu_ld=$lt_cv_prog_gnu_ld
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5408 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5409 if ${lt_cv_path_NM+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 if test -n "$NM"; then
5413 # Let the user override the test.
5414 lt_cv_path_NM="$NM"
5415 else
5416 lt_nm_to_check="${ac_tool_prefix}nm"
5417 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5418 lt_nm_to_check="$lt_nm_to_check nm"
5419 fi
5420 for lt_tmp_nm in $lt_nm_to_check; do
5421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5422 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5423 IFS="$lt_save_ifs"
5424 test -z "$ac_dir" && ac_dir=.
5425 tmp_nm="$ac_dir/$lt_tmp_nm"
5426 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5427 # Check to see if the nm accepts a BSD-compat flag.
5428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5429 # nm: unknown option "B" ignored
5430 # Tru64's nm complains that /dev/null is an invalid object file
5431 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5432 */dev/null* | *'Invalid file or object type'*)
5433 lt_cv_path_NM="$tmp_nm -B"
5434 break
5435 ;;
5436 *)
5437 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5438 */dev/null*)
5439 lt_cv_path_NM="$tmp_nm -p"
5440 break
5441 ;;
5442 *)
5443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5444 continue # so that we can try to find one that supports BSD flags
5445 ;;
5446 esac
5447 ;;
5448 esac
5449 fi
5450 done
5451 IFS="$lt_save_ifs"
5452 done
5453 : ${lt_cv_path_NM=no}
5454 fi
5455 fi
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5457 $as_echo "$lt_cv_path_NM" >&6; }
5458 if test "$lt_cv_path_NM" != "no"; then
5459 NM="$lt_cv_path_NM"
5460 else
5461 # Didn't find any BSD compatible name lister, look for dumpbin.
5462 if test -n "$DUMPBIN"; then :
5463 # Let the user override the test.
5464 else
5465 if test -n "$ac_tool_prefix"; then
5466 for ac_prog in dumpbin "link -dump"
5467 do
5468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if ${ac_cv_prog_DUMPBIN+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 if test -n "$DUMPBIN"; then
5476 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5477 else
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5480 do
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5488 fi
5489 done
5490 done
5491 IFS=$as_save_IFS
5492
5493 fi
5494 fi
5495 DUMPBIN=$ac_cv_prog_DUMPBIN
5496 if test -n "$DUMPBIN"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5498 $as_echo "$DUMPBIN" >&6; }
5499 else
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5502 fi
5503
5504
5505 test -n "$DUMPBIN" && break
5506 done
5507 fi
5508 if test -z "$DUMPBIN"; then
5509 ac_ct_DUMPBIN=$DUMPBIN
5510 for ac_prog in dumpbin "link -dump"
5511 do
5512 # Extract the first word of "$ac_prog", so it can be a program name with args.
5513 set dummy $ac_prog; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 if test -n "$ac_ct_DUMPBIN"; then
5520 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5521 else
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533 done
5534 done
5535 IFS=$as_save_IFS
5536
5537 fi
5538 fi
5539 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5540 if test -n "$ac_ct_DUMPBIN"; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5542 $as_echo "$ac_ct_DUMPBIN" >&6; }
5543 else
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 fi
5547
5548
5549 test -n "$ac_ct_DUMPBIN" && break
5550 done
5551
5552 if test "x$ac_ct_DUMPBIN" = x; then
5553 DUMPBIN=":"
5554 else
5555 case $cross_compiling:$ac_tool_warned in
5556 yes:)
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5559 ac_tool_warned=yes ;;
5560 esac
5561 DUMPBIN=$ac_ct_DUMPBIN
5562 fi
5563 fi
5564
5565 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5566 *COFF*)
5567 DUMPBIN="$DUMPBIN -symbols"
5568 ;;
5569 *)
5570 DUMPBIN=:
5571 ;;
5572 esac
5573 fi
5574
5575 if test "$DUMPBIN" != ":"; then
5576 NM="$DUMPBIN"
5577 fi
5578 fi
5579 test -z "$NM" && NM=nm
5580
5581
5582
5583
5584
5585
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5587 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5588 if ${lt_cv_nm_interface+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 lt_cv_nm_interface="BSD nm"
5592 echo "int some_variable = 0;" > conftest.$ac_ext
5593 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5594 (eval "$ac_compile" 2>conftest.err)
5595 cat conftest.err >&5
5596 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5597 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5598 cat conftest.err >&5
5599 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5600 cat conftest.out >&5
5601 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5602 lt_cv_nm_interface="MS dumpbin"
5603 fi
5604 rm -f conftest*
5605 fi
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5607 $as_echo "$lt_cv_nm_interface" >&6; }
5608
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5610 $as_echo_n "checking whether ln -s works... " >&6; }
5611 LN_S=$as_ln_s
5612 if test "$LN_S" = "ln -s"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5614 $as_echo "yes" >&6; }
5615 else
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5617 $as_echo "no, using $LN_S" >&6; }
5618 fi
5619
5620 # find the maximum length of command line arguments
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5622 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5623 if ${lt_cv_sys_max_cmd_len+:} false; then :
5624 $as_echo_n "(cached) " >&6
5625 else
5626 i=0
5627 teststring="ABCD"
5628
5629 case $build_os in
5630 msdosdjgpp*)
5631 # On DJGPP, this test can blow up pretty badly due to problems in libc
5632 # (any single argument exceeding 2000 bytes causes a buffer overrun
5633 # during glob expansion). Even if it were fixed, the result of this
5634 # check would be larger than it should be.
5635 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5636 ;;
5637
5638 gnu*)
5639 # Under GNU Hurd, this test is not required because there is
5640 # no limit to the length of command line arguments.
5641 # Libtool will interpret -1 as no limit whatsoever
5642 lt_cv_sys_max_cmd_len=-1;
5643 ;;
5644
5645 cygwin* | mingw* | cegcc*)
5646 # On Win9x/ME, this test blows up -- it succeeds, but takes
5647 # about 5 minutes as the teststring grows exponentially.
5648 # Worse, since 9x/ME are not pre-emptively multitasking,
5649 # you end up with a "frozen" computer, even though with patience
5650 # the test eventually succeeds (with a max line length of 256k).
5651 # Instead, let's just punt: use the minimum linelength reported by
5652 # all of the supported platforms: 8192 (on NT/2K/XP).
5653 lt_cv_sys_max_cmd_len=8192;
5654 ;;
5655
5656 mint*)
5657 # On MiNT this can take a long time and run out of memory.
5658 lt_cv_sys_max_cmd_len=8192;
5659 ;;
5660
5661 amigaos*)
5662 # On AmigaOS with pdksh, this test takes hours, literally.
5663 # So we just punt and use a minimum line length of 8192.
5664 lt_cv_sys_max_cmd_len=8192;
5665 ;;
5666
5667 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5668 # This has been around since 386BSD, at least. Likely further.
5669 if test -x /sbin/sysctl; then
5670 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5671 elif test -x /usr/sbin/sysctl; then
5672 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5673 else
5674 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5675 fi
5676 # And add a safety zone
5677 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5679 ;;
5680
5681 interix*)
5682 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5683 lt_cv_sys_max_cmd_len=196608
5684 ;;
5685
5686 osf*)
5687 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5688 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5689 # nice to cause kernel panics so lets avoid the loop below.
5690 # First set a reasonable default.
5691 lt_cv_sys_max_cmd_len=16384
5692 #
5693 if test -x /sbin/sysconfig; then
5694 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5695 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5696 esac
5697 fi
5698 ;;
5699 sco3.2v5*)
5700 lt_cv_sys_max_cmd_len=102400
5701 ;;
5702 sysv5* | sco5v6* | sysv4.2uw2*)
5703 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5704 if test -n "$kargmax"; then
5705 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5706 else
5707 lt_cv_sys_max_cmd_len=32768
5708 fi
5709 ;;
5710 *)
5711 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5712 if test -n "$lt_cv_sys_max_cmd_len"; then
5713 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5715 else
5716 # Make teststring a little bigger before we do anything with it.
5717 # a 1K string should be a reasonable start.
5718 for i in 1 2 3 4 5 6 7 8 ; do
5719 teststring=$teststring$teststring
5720 done
5721 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5722 # If test is not a shell built-in, we'll probably end up computing a
5723 # maximum length that is only half of the actual maximum length, but
5724 # we can't tell.
5725 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5726 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5727 test $i != 17 # 1/2 MB should be enough
5728 do
5729 i=`expr $i + 1`
5730 teststring=$teststring$teststring
5731 done
5732 # Only check the string length outside the loop.
5733 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5734 teststring=
5735 # Add a significant safety factor because C++ compilers can tack on
5736 # massive amounts of additional arguments before passing them to the
5737 # linker. It appears as though 1/2 is a usable value.
5738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5739 fi
5740 ;;
5741 esac
5742
5743 fi
5744
5745 if test -n $lt_cv_sys_max_cmd_len ; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5747 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5750 $as_echo "none" >&6; }
5751 fi
5752 max_cmd_len=$lt_cv_sys_max_cmd_len
5753
5754
5755
5756
5757
5758
5759 : ${CP="cp -f"}
5760 : ${MV="mv -f"}
5761 : ${RM="rm -f"}
5762
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5764 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5765 # Try some XSI features
5766 xsi_shell=no
5767 ( _lt_dummy="a/b/c"
5768 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5769 = c,a/b,, \
5770 && eval 'test $(( 1 + 1 )) -eq 2 \
5771 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5772 && xsi_shell=yes
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5774 $as_echo "$xsi_shell" >&6; }
5775
5776
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5778 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5779 lt_shell_append=no
5780 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5781 >/dev/null 2>&1 \
5782 && lt_shell_append=yes
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5784 $as_echo "$lt_shell_append" >&6; }
5785
5786
5787 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5788 lt_unset=unset
5789 else
5790 lt_unset=false
5791 fi
5792
5793
5794
5795
5796
5797 # test EBCDIC or ASCII
5798 case `echo X|tr X '\101'` in
5799 A) # ASCII based system
5800 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5801 lt_SP2NL='tr \040 \012'
5802 lt_NL2SP='tr \015\012 \040\040'
5803 ;;
5804 *) # EBCDIC based system
5805 lt_SP2NL='tr \100 \n'
5806 lt_NL2SP='tr \r\n \100\100'
5807 ;;
5808 esac
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5819 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5820 if ${lt_cv_ld_reload_flag+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 lt_cv_ld_reload_flag='-r'
5824 fi
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5826 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5827 reload_flag=$lt_cv_ld_reload_flag
5828 case $reload_flag in
5829 "" | " "*) ;;
5830 *) reload_flag=" $reload_flag" ;;
5831 esac
5832 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5833 case $host_os in
5834 darwin*)
5835 if test "$GCC" = yes; then
5836 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5837 else
5838 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5839 fi
5840 ;;
5841 esac
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851 if test -n "$ac_tool_prefix"; then
5852 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5853 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855 $as_echo_n "checking for $ac_word... " >&6; }
5856 if ${ac_cv_prog_OBJDUMP+:} false; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 if test -n "$OBJDUMP"; then
5860 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5861 else
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5864 do
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 break 2
5872 fi
5873 done
5874 done
5875 IFS=$as_save_IFS
5876
5877 fi
5878 fi
5879 OBJDUMP=$ac_cv_prog_OBJDUMP
5880 if test -n "$OBJDUMP"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5882 $as_echo "$OBJDUMP" >&6; }
5883 else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5886 fi
5887
5888
5889 fi
5890 if test -z "$ac_cv_prog_OBJDUMP"; then
5891 ac_ct_OBJDUMP=$OBJDUMP
5892 # Extract the first word of "objdump", so it can be a program name with args.
5893 set dummy objdump; ac_word=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5897 $as_echo_n "(cached) " >&6
5898 else
5899 if test -n "$ac_ct_OBJDUMP"; then
5900 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5901 else
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5904 do
5905 IFS=$as_save_IFS
5906 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5909 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 break 2
5912 fi
5913 done
5914 done
5915 IFS=$as_save_IFS
5916
5917 fi
5918 fi
5919 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5920 if test -n "$ac_ct_OBJDUMP"; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5922 $as_echo "$ac_ct_OBJDUMP" >&6; }
5923 else
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5926 fi
5927
5928 if test "x$ac_ct_OBJDUMP" = x; then
5929 OBJDUMP="false"
5930 else
5931 case $cross_compiling:$ac_tool_warned in
5932 yes:)
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5935 ac_tool_warned=yes ;;
5936 esac
5937 OBJDUMP=$ac_ct_OBJDUMP
5938 fi
5939 else
5940 OBJDUMP="$ac_cv_prog_OBJDUMP"
5941 fi
5942
5943 test -z "$OBJDUMP" && OBJDUMP=objdump
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5954 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5955 if ${lt_cv_deplibs_check_method+:} false; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 lt_cv_file_magic_cmd='$MAGIC_CMD'
5959 lt_cv_file_magic_test_file=
5960 lt_cv_deplibs_check_method='unknown'
5961 # Need to set the preceding variable on all platforms that support
5962 # interlibrary dependencies.
5963 # 'none' -- dependencies not supported.
5964 # `unknown' -- same as none, but documents that we really don't know.
5965 # 'pass_all' -- all dependencies passed with no checks.
5966 # 'test_compile' -- check by making test program.
5967 # 'file_magic [[regex]]' -- check by looking for files in library path
5968 # which responds to the $file_magic_cmd with a given extended regex.
5969 # If you have `file' or equivalent on your system and you're not sure
5970 # whether `pass_all' will *always* work, you probably want this one.
5971
5972 case $host_os in
5973 aix[4-9]*)
5974 lt_cv_deplibs_check_method=pass_all
5975 ;;
5976
5977 beos*)
5978 lt_cv_deplibs_check_method=pass_all
5979 ;;
5980
5981 bsdi[45]*)
5982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5983 lt_cv_file_magic_cmd='/usr/bin/file -L'
5984 lt_cv_file_magic_test_file=/shlib/libc.so
5985 ;;
5986
5987 cygwin*)
5988 # func_win32_libid is a shell function defined in ltmain.sh
5989 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5990 lt_cv_file_magic_cmd='func_win32_libid'
5991 ;;
5992
5993 mingw* | pw32*)
5994 # Base MSYS/MinGW do not provide the 'file' command needed by
5995 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5996 # unless we find 'file', for example because we are cross-compiling.
5997 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5998 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5999 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6000 lt_cv_file_magic_cmd='func_win32_libid'
6001 else
6002 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6003 lt_cv_file_magic_cmd='$OBJDUMP -f'
6004 fi
6005 ;;
6006
6007 cegcc*)
6008 # use the weaker test based on 'objdump'. See mingw*.
6009 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6010 lt_cv_file_magic_cmd='$OBJDUMP -f'
6011 ;;
6012
6013 darwin* | rhapsody*)
6014 lt_cv_deplibs_check_method=pass_all
6015 ;;
6016
6017 freebsd* | dragonfly*)
6018 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6019 case $host_cpu in
6020 i*86 )
6021 # Not sure whether the presence of OpenBSD here was a mistake.
6022 # Let's accept both of them until this is cleared up.
6023 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6024 lt_cv_file_magic_cmd=/usr/bin/file
6025 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6026 ;;
6027 esac
6028 else
6029 lt_cv_deplibs_check_method=pass_all
6030 fi
6031 ;;
6032
6033 gnu*)
6034 lt_cv_deplibs_check_method=pass_all
6035 ;;
6036
6037 haiku*)
6038 lt_cv_deplibs_check_method=pass_all
6039 ;;
6040
6041 hpux10.20* | hpux11*)
6042 lt_cv_file_magic_cmd=/usr/bin/file
6043 case $host_cpu in
6044 ia64*)
6045 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6046 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6047 ;;
6048 hppa*64*)
6049 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]'
6050 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6051 ;;
6052 *)
6053 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6054 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6055 ;;
6056 esac
6057 ;;
6058
6059 interix[3-9]*)
6060 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6062 ;;
6063
6064 irix5* | irix6* | nonstopux*)
6065 case $LD in
6066 *-32|*"-32 ") libmagic=32-bit;;
6067 *-n32|*"-n32 ") libmagic=N32;;
6068 *-64|*"-64 ") libmagic=64-bit;;
6069 *) libmagic=never-match;;
6070 esac
6071 lt_cv_deplibs_check_method=pass_all
6072 ;;
6073
6074 # This must be Linux ELF.
6075 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6076 lt_cv_deplibs_check_method=pass_all
6077 ;;
6078
6079 netbsd*)
6080 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6082 else
6083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6084 fi
6085 ;;
6086
6087 newos6*)
6088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6089 lt_cv_file_magic_cmd=/usr/bin/file
6090 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6091 ;;
6092
6093 *nto* | *qnx*)
6094 lt_cv_deplibs_check_method=pass_all
6095 ;;
6096
6097 openbsd*)
6098 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6100 else
6101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6102 fi
6103 ;;
6104
6105 osf3* | osf4* | osf5*)
6106 lt_cv_deplibs_check_method=pass_all
6107 ;;
6108
6109 rdos*)
6110 lt_cv_deplibs_check_method=pass_all
6111 ;;
6112
6113 solaris*)
6114 lt_cv_deplibs_check_method=pass_all
6115 ;;
6116
6117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6118 lt_cv_deplibs_check_method=pass_all
6119 ;;
6120
6121 sysv4 | sysv4.3*)
6122 case $host_vendor in
6123 motorola)
6124 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]'
6125 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6126 ;;
6127 ncr)
6128 lt_cv_deplibs_check_method=pass_all
6129 ;;
6130 sequent)
6131 lt_cv_file_magic_cmd='/bin/file'
6132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6133 ;;
6134 sni)
6135 lt_cv_file_magic_cmd='/bin/file'
6136 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6137 lt_cv_file_magic_test_file=/lib/libc.so
6138 ;;
6139 siemens)
6140 lt_cv_deplibs_check_method=pass_all
6141 ;;
6142 pc)
6143 lt_cv_deplibs_check_method=pass_all
6144 ;;
6145 esac
6146 ;;
6147
6148 tpf*)
6149 lt_cv_deplibs_check_method=pass_all
6150 ;;
6151 esac
6152
6153 fi
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6155 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6156 file_magic_cmd=$lt_cv_file_magic_cmd
6157 deplibs_check_method=$lt_cv_deplibs_check_method
6158 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171 plugin_option=
6172 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6173 for plugin in $plugin_names; do
6174 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6175 if test x$plugin_so = x$plugin; then
6176 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6177 fi
6178 if test x$plugin_so != x$plugin; then
6179 plugin_option="--plugin $plugin_so"
6180 break
6181 fi
6182 done
6183
6184 if test -n "$ac_tool_prefix"; then
6185 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6186 set dummy ${ac_tool_prefix}ar; ac_word=$2
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188 $as_echo_n "checking for $ac_word... " >&6; }
6189 if ${ac_cv_prog_AR+:} false; then :
6190 $as_echo_n "(cached) " >&6
6191 else
6192 if test -n "$AR"; then
6193 ac_cv_prog_AR="$AR" # Let the user override the test.
6194 else
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198 IFS=$as_save_IFS
6199 test -z "$as_dir" && as_dir=.
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6202 ac_cv_prog_AR="${ac_tool_prefix}ar"
6203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 break 2
6205 fi
6206 done
6207 done
6208 IFS=$as_save_IFS
6209
6210 fi
6211 fi
6212 AR=$ac_cv_prog_AR
6213 if test -n "$AR"; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6215 $as_echo "$AR" >&6; }
6216 else
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 $as_echo "no" >&6; }
6219 fi
6220
6221
6222 fi
6223 if test -z "$ac_cv_prog_AR"; then
6224 ac_ct_AR=$AR
6225 # Extract the first word of "ar", so it can be a program name with args.
6226 set dummy ar; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 if test -n "$ac_ct_AR"; then
6233 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6234 else
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6237 do
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6242 ac_cv_prog_ac_ct_AR="ar"
6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 break 2
6245 fi
6246 done
6247 done
6248 IFS=$as_save_IFS
6249
6250 fi
6251 fi
6252 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6253 if test -n "$ac_ct_AR"; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6255 $as_echo "$ac_ct_AR" >&6; }
6256 else
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6259 fi
6260
6261 if test "x$ac_ct_AR" = x; then
6262 AR="false"
6263 else
6264 case $cross_compiling:$ac_tool_warned in
6265 yes:)
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6268 ac_tool_warned=yes ;;
6269 esac
6270 AR=$ac_ct_AR
6271 fi
6272 else
6273 AR="$ac_cv_prog_AR"
6274 fi
6275
6276 test -z "$AR" && AR=ar
6277 if test -n "$plugin_option"; then
6278 if $AR --help 2>&1 | grep -q "\--plugin"; then
6279 touch conftest.c
6280 $AR $plugin_option rc conftest.a conftest.c
6281 if test "$?" != 0; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6283 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6284 else
6285 AR="$AR $plugin_option"
6286 fi
6287 rm -f conftest.*
6288 fi
6289 fi
6290 test -z "$AR_FLAGS" && AR_FLAGS=cru
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302 if test -n "$ac_tool_prefix"; then
6303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6304 set dummy ${ac_tool_prefix}strip; ac_word=$2
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306 $as_echo_n "checking for $ac_word... " >&6; }
6307 if ${ac_cv_prog_STRIP+:} false; then :
6308 $as_echo_n "(cached) " >&6
6309 else
6310 if test -n "$STRIP"; then
6311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6312 else
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6315 do
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 break 2
6323 fi
6324 done
6325 done
6326 IFS=$as_save_IFS
6327
6328 fi
6329 fi
6330 STRIP=$ac_cv_prog_STRIP
6331 if test -n "$STRIP"; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6333 $as_echo "$STRIP" >&6; }
6334 else
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 $as_echo "no" >&6; }
6337 fi
6338
6339
6340 fi
6341 if test -z "$ac_cv_prog_STRIP"; then
6342 ac_ct_STRIP=$STRIP
6343 # Extract the first word of "strip", so it can be a program name with args.
6344 set dummy strip; ac_word=$2
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 if test -n "$ac_ct_STRIP"; then
6351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6352 else
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in $PATH
6355 do
6356 IFS=$as_save_IFS
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360 ac_cv_prog_ac_ct_STRIP="strip"
6361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 break 2
6363 fi
6364 done
6365 done
6366 IFS=$as_save_IFS
6367
6368 fi
6369 fi
6370 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6371 if test -n "$ac_ct_STRIP"; then
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6373 $as_echo "$ac_ct_STRIP" >&6; }
6374 else
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376 $as_echo "no" >&6; }
6377 fi
6378
6379 if test "x$ac_ct_STRIP" = x; then
6380 STRIP=":"
6381 else
6382 case $cross_compiling:$ac_tool_warned in
6383 yes:)
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6386 ac_tool_warned=yes ;;
6387 esac
6388 STRIP=$ac_ct_STRIP
6389 fi
6390 else
6391 STRIP="$ac_cv_prog_STRIP"
6392 fi
6393
6394 test -z "$STRIP" && STRIP=:
6395
6396
6397
6398
6399
6400
6401 if test -n "$ac_tool_prefix"; then
6402 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6403 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405 $as_echo_n "checking for $ac_word... " >&6; }
6406 if ${ac_cv_prog_RANLIB+:} false; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 if test -n "$RANLIB"; then
6410 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6411 else
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6414 do
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6419 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 break 2
6422 fi
6423 done
6424 done
6425 IFS=$as_save_IFS
6426
6427 fi
6428 fi
6429 RANLIB=$ac_cv_prog_RANLIB
6430 if test -n "$RANLIB"; then
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6432 $as_echo "$RANLIB" >&6; }
6433 else
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435 $as_echo "no" >&6; }
6436 fi
6437
6438
6439 fi
6440 if test -z "$ac_cv_prog_RANLIB"; then
6441 ac_ct_RANLIB=$RANLIB
6442 # Extract the first word of "ranlib", so it can be a program name with args.
6443 set dummy ranlib; ac_word=$2
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 if test -n "$ac_ct_RANLIB"; then
6450 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6454 do
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6459 ac_cv_prog_ac_ct_RANLIB="ranlib"
6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6462 fi
6463 done
6464 done
6465 IFS=$as_save_IFS
6466
6467 fi
6468 fi
6469 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6470 if test -n "$ac_ct_RANLIB"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6472 $as_echo "$ac_ct_RANLIB" >&6; }
6473 else
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6476 fi
6477
6478 if test "x$ac_ct_RANLIB" = x; then
6479 RANLIB=":"
6480 else
6481 case $cross_compiling:$ac_tool_warned in
6482 yes:)
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6485 ac_tool_warned=yes ;;
6486 esac
6487 RANLIB=$ac_ct_RANLIB
6488 fi
6489 else
6490 RANLIB="$ac_cv_prog_RANLIB"
6491 fi
6492
6493 test -z "$RANLIB" && RANLIB=:
6494 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6495 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6496 RANLIB="$RANLIB $plugin_option"
6497 fi
6498 fi
6499
6500
6501
6502
6503
6504
6505 # Determine commands to create old-style static archives.
6506 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6507 old_postinstall_cmds='chmod 644 $oldlib'
6508 old_postuninstall_cmds=
6509
6510 if test -n "$RANLIB"; then
6511 case $host_os in
6512 openbsd*)
6513 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6514 ;;
6515 *)
6516 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6517 ;;
6518 esac
6519 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6520 fi
6521
6522 case $host_os in
6523 darwin*)
6524 lock_old_archive_extraction=yes ;;
6525 *)
6526 lock_old_archive_extraction=no ;;
6527 esac
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549 for ac_prog in gawk mawk nawk awk
6550 do
6551 # Extract the first word of "$ac_prog", so it can be a program name with args.
6552 set dummy $ac_prog; ac_word=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if ${ac_cv_prog_AWK+:} false; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 if test -n "$AWK"; then
6559 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568 ac_cv_prog_AWK="$ac_prog"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6571 fi
6572 done
6573 done
6574 IFS=$as_save_IFS
6575
6576 fi
6577 fi
6578 AWK=$ac_cv_prog_AWK
6579 if test -n "$AWK"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6581 $as_echo "$AWK" >&6; }
6582 else
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6585 fi
6586
6587
6588 test -n "$AWK" && break
6589 done
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609 # If no C compiler was specified, use CC.
6610 LTCC=${LTCC-"$CC"}
6611
6612 # If no C compiler flags were specified, use CFLAGS.
6613 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6614
6615 # Allow CC to be a program name with arguments.
6616 compiler=$CC
6617
6618
6619 # Check for command to grab the raw symbol name followed by C symbol from nm.
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6621 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6622 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6623 $as_echo_n "(cached) " >&6
6624 else
6625
6626 # These are sane defaults that work on at least a few old systems.
6627 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6628
6629 # Character class describing NM global symbol codes.
6630 symcode='[BCDEGRST]'
6631
6632 # Regexp to match symbols that can be accessed directly from C.
6633 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6634
6635 # Define system-specific variables.
6636 case $host_os in
6637 aix*)
6638 symcode='[BCDT]'
6639 ;;
6640 cygwin* | mingw* | pw32* | cegcc*)
6641 symcode='[ABCDGISTW]'
6642 ;;
6643 hpux*)
6644 if test "$host_cpu" = ia64; then
6645 symcode='[ABCDEGRST]'
6646 fi
6647 ;;
6648 irix* | nonstopux*)
6649 symcode='[BCDEGRST]'
6650 ;;
6651 osf*)
6652 symcode='[BCDEGQRST]'
6653 ;;
6654 solaris*)
6655 symcode='[BDRT]'
6656 ;;
6657 sco3.2v5*)
6658 symcode='[DT]'
6659 ;;
6660 sysv4.2uw2*)
6661 symcode='[DT]'
6662 ;;
6663 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6664 symcode='[ABDT]'
6665 ;;
6666 sysv4)
6667 symcode='[DFNSTU]'
6668 ;;
6669 esac
6670
6671 # If we're using GNU nm, then use its standard symbol codes.
6672 case `$NM -V 2>&1` in
6673 *GNU* | *'with BFD'*)
6674 symcode='[ABCDGIRSTW]' ;;
6675 esac
6676
6677 # Transform an extracted symbol line into a proper C declaration.
6678 # Some systems (esp. on ia64) link data and code symbols differently,
6679 # so use this general approach.
6680 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6681
6682 # Transform an extracted symbol line into symbol name and symbol address
6683 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6684 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'"
6685
6686 # Handle CRLF in mingw tool chain
6687 opt_cr=
6688 case $build_os in
6689 mingw*)
6690 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6691 ;;
6692 esac
6693
6694 # Try without a prefix underscore, then with it.
6695 for ac_symprfx in "" "_"; do
6696
6697 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6698 symxfrm="\\1 $ac_symprfx\\2 \\2"
6699
6700 # Write the raw and C identifiers.
6701 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6702 # Fake it for dumpbin and say T for any non-static function
6703 # and D for any global variable.
6704 # Also find C++ and __fastcall symbols from MSVC++,
6705 # which start with @ or ?.
6706 lt_cv_sys_global_symbol_pipe="$AWK '"\
6707 " {last_section=section; section=\$ 3};"\
6708 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6709 " \$ 0!~/External *\|/{next};"\
6710 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6711 " {if(hide[section]) next};"\
6712 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6713 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6714 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6715 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6716 " ' prfx=^$ac_symprfx"
6717 else
6718 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6719 fi
6720
6721 # Check to see that the pipe works correctly.
6722 pipe_works=no
6723
6724 rm -f conftest*
6725 cat > conftest.$ac_ext <<_LT_EOF
6726 #ifdef __cplusplus
6727 extern "C" {
6728 #endif
6729 char nm_test_var;
6730 void nm_test_func(void);
6731 void nm_test_func(void){}
6732 #ifdef __cplusplus
6733 }
6734 #endif
6735 int main(){nm_test_var='a';nm_test_func();return(0);}
6736 _LT_EOF
6737
6738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6739 (eval $ac_compile) 2>&5
6740 ac_status=$?
6741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6742 test $ac_status = 0; }; then
6743 # Now try to grab the symbols.
6744 nlist=conftest.nm
6745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6746 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6747 ac_status=$?
6748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749 test $ac_status = 0; } && test -s "$nlist"; then
6750 # Try sorting and uniquifying the output.
6751 if sort "$nlist" | uniq > "$nlist"T; then
6752 mv -f "$nlist"T "$nlist"
6753 else
6754 rm -f "$nlist"T
6755 fi
6756
6757 # Make sure that we snagged all the symbols we need.
6758 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6759 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6760 cat <<_LT_EOF > conftest.$ac_ext
6761 #ifdef __cplusplus
6762 extern "C" {
6763 #endif
6764
6765 _LT_EOF
6766 # Now generate the symbol file.
6767 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6768
6769 cat <<_LT_EOF >> conftest.$ac_ext
6770
6771 /* The mapping between symbol names and symbols. */
6772 const struct {
6773 const char *name;
6774 void *address;
6775 }
6776 lt__PROGRAM__LTX_preloaded_symbols[] =
6777 {
6778 { "@PROGRAM@", (void *) 0 },
6779 _LT_EOF
6780 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6781 cat <<\_LT_EOF >> conftest.$ac_ext
6782 {0, (void *) 0}
6783 };
6784
6785 /* This works around a problem in FreeBSD linker */
6786 #ifdef FREEBSD_WORKAROUND
6787 static const void *lt_preloaded_setup() {
6788 return lt__PROGRAM__LTX_preloaded_symbols;
6789 }
6790 #endif
6791
6792 #ifdef __cplusplus
6793 }
6794 #endif
6795 _LT_EOF
6796 # Now try linking the two files.
6797 mv conftest.$ac_objext conftstm.$ac_objext
6798 lt_save_LIBS="$LIBS"
6799 lt_save_CFLAGS="$CFLAGS"
6800 LIBS="conftstm.$ac_objext"
6801 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6803 (eval $ac_link) 2>&5
6804 ac_status=$?
6805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6806 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6807 pipe_works=yes
6808 fi
6809 LIBS="$lt_save_LIBS"
6810 CFLAGS="$lt_save_CFLAGS"
6811 else
6812 echo "cannot find nm_test_func in $nlist" >&5
6813 fi
6814 else
6815 echo "cannot find nm_test_var in $nlist" >&5
6816 fi
6817 else
6818 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6819 fi
6820 else
6821 echo "$progname: failed program was:" >&5
6822 cat conftest.$ac_ext >&5
6823 fi
6824 rm -rf conftest* conftst*
6825
6826 # Do not use the global_symbol_pipe unless it works.
6827 if test "$pipe_works" = yes; then
6828 break
6829 else
6830 lt_cv_sys_global_symbol_pipe=
6831 fi
6832 done
6833
6834 fi
6835
6836 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6837 lt_cv_sys_global_symbol_to_cdecl=
6838 fi
6839 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6841 $as_echo "failed" >&6; }
6842 else
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6844 $as_echo "ok" >&6; }
6845 fi
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868 # Check whether --enable-libtool-lock was given.
6869 if test "${enable_libtool_lock+set}" = set; then :
6870 enableval=$enable_libtool_lock;
6871 fi
6872
6873 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6874
6875 # Some flags need to be propagated to the compiler or linker for good
6876 # libtool support.
6877 case $host in
6878 ia64-*-hpux*)
6879 # Find out which ABI we are using.
6880 echo 'int i;' > conftest.$ac_ext
6881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6882 (eval $ac_compile) 2>&5
6883 ac_status=$?
6884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6885 test $ac_status = 0; }; then
6886 case `/usr/bin/file conftest.$ac_objext` in
6887 *ELF-32*)
6888 HPUX_IA64_MODE="32"
6889 ;;
6890 *ELF-64*)
6891 HPUX_IA64_MODE="64"
6892 ;;
6893 esac
6894 fi
6895 rm -rf conftest*
6896 ;;
6897 *-*-irix6*)
6898 # Find out which ABI we are using.
6899 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6901 (eval $ac_compile) 2>&5
6902 ac_status=$?
6903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6904 test $ac_status = 0; }; then
6905 if test "$lt_cv_prog_gnu_ld" = yes; then
6906 case `/usr/bin/file conftest.$ac_objext` in
6907 *32-bit*)
6908 LD="${LD-ld} -melf32bsmip"
6909 ;;
6910 *N32*)
6911 LD="${LD-ld} -melf32bmipn32"
6912 ;;
6913 *64-bit*)
6914 LD="${LD-ld} -melf64bmip"
6915 ;;
6916 esac
6917 else
6918 case `/usr/bin/file conftest.$ac_objext` in
6919 *32-bit*)
6920 LD="${LD-ld} -32"
6921 ;;
6922 *N32*)
6923 LD="${LD-ld} -n32"
6924 ;;
6925 *64-bit*)
6926 LD="${LD-ld} -64"
6927 ;;
6928 esac
6929 fi
6930 fi
6931 rm -rf conftest*
6932 ;;
6933
6934 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6935 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6936 # Find out which ABI we are using.
6937 echo 'int i;' > conftest.$ac_ext
6938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6939 (eval $ac_compile) 2>&5
6940 ac_status=$?
6941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6942 test $ac_status = 0; }; then
6943 case `/usr/bin/file conftest.o` in
6944 *32-bit*)
6945 case $host in
6946 x86_64-*kfreebsd*-gnu)
6947 LD="${LD-ld} -m elf_i386_fbsd"
6948 ;;
6949 x86_64-*linux*)
6950 case `/usr/bin/file conftest.o` in
6951 *x86-64*)
6952 LD="${LD-ld} -m elf32_x86_64"
6953 ;;
6954 *)
6955 LD="${LD-ld} -m elf_i386"
6956 ;;
6957 esac
6958 ;;
6959 powerpc64le-*linux*)
6960 LD="${LD-ld} -m elf32lppclinux"
6961 ;;
6962 powerpc64-*linux*)
6963 LD="${LD-ld} -m elf32ppclinux"
6964 ;;
6965 s390x-*linux*)
6966 LD="${LD-ld} -m elf_s390"
6967 ;;
6968 sparc64-*linux*)
6969 LD="${LD-ld} -m elf32_sparc"
6970 ;;
6971 esac
6972 ;;
6973 *64-bit*)
6974 case $host in
6975 x86_64-*kfreebsd*-gnu)
6976 LD="${LD-ld} -m elf_x86_64_fbsd"
6977 ;;
6978 x86_64-*linux*)
6979 LD="${LD-ld} -m elf_x86_64"
6980 ;;
6981 powerpcle-*linux*)
6982 LD="${LD-ld} -m elf64lppc"
6983 ;;
6984 powerpc-*linux*)
6985 LD="${LD-ld} -m elf64ppc"
6986 ;;
6987 s390*-*linux*|s390*-*tpf*)
6988 LD="${LD-ld} -m elf64_s390"
6989 ;;
6990 sparc*-*linux*)
6991 LD="${LD-ld} -m elf64_sparc"
6992 ;;
6993 esac
6994 ;;
6995 esac
6996 fi
6997 rm -rf conftest*
6998 ;;
6999
7000 *-*-sco3.2v5*)
7001 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7002 SAVE_CFLAGS="$CFLAGS"
7003 CFLAGS="$CFLAGS -belf"
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7005 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7006 if ${lt_cv_cc_needs_belf+:} false; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 ac_ext=c
7010 ac_cpp='$CPP $CPPFLAGS'
7011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7014
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7017
7018 int
7019 main ()
7020 {
7021
7022 ;
7023 return 0;
7024 }
7025 _ACEOF
7026 if ac_fn_c_try_link "$LINENO"; then :
7027 lt_cv_cc_needs_belf=yes
7028 else
7029 lt_cv_cc_needs_belf=no
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext \
7032 conftest$ac_exeext conftest.$ac_ext
7033 ac_ext=c
7034 ac_cpp='$CPP $CPPFLAGS'
7035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7038
7039 fi
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7041 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7042 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7043 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7044 CFLAGS="$SAVE_CFLAGS"
7045 fi
7046 ;;
7047 sparc*-*solaris*)
7048 # Find out which ABI we are using.
7049 echo 'int i;' > conftest.$ac_ext
7050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7051 (eval $ac_compile) 2>&5
7052 ac_status=$?
7053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054 test $ac_status = 0; }; then
7055 case `/usr/bin/file conftest.o` in
7056 *64-bit*)
7057 case $lt_cv_prog_gnu_ld in
7058 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7059 *)
7060 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7061 LD="${LD-ld} -64"
7062 fi
7063 ;;
7064 esac
7065 ;;
7066 esac
7067 fi
7068 rm -rf conftest*
7069 ;;
7070 esac
7071
7072 need_locks="$enable_libtool_lock"
7073
7074
7075 case $host_os in
7076 rhapsody* | darwin*)
7077 if test -n "$ac_tool_prefix"; then
7078 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7079 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 if test -n "$DSYMUTIL"; then
7086 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7087 else
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7090 do
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7098 fi
7099 done
7100 done
7101 IFS=$as_save_IFS
7102
7103 fi
7104 fi
7105 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7106 if test -n "$DSYMUTIL"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7108 $as_echo "$DSYMUTIL" >&6; }
7109 else
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7112 fi
7113
7114
7115 fi
7116 if test -z "$ac_cv_prog_DSYMUTIL"; then
7117 ac_ct_DSYMUTIL=$DSYMUTIL
7118 # Extract the first word of "dsymutil", so it can be a program name with args.
7119 set dummy dsymutil; ac_word=$2
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 if test -n "$ac_ct_DSYMUTIL"; then
7126 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139 done
7140 done
7141 IFS=$as_save_IFS
7142
7143 fi
7144 fi
7145 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7146 if test -n "$ac_ct_DSYMUTIL"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7148 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7149 else
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7152 fi
7153
7154 if test "x$ac_ct_DSYMUTIL" = x; then
7155 DSYMUTIL=":"
7156 else
7157 case $cross_compiling:$ac_tool_warned in
7158 yes:)
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7161 ac_tool_warned=yes ;;
7162 esac
7163 DSYMUTIL=$ac_ct_DSYMUTIL
7164 fi
7165 else
7166 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7167 fi
7168
7169 if test -n "$ac_tool_prefix"; then
7170 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7171 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173 $as_echo_n "checking for $ac_word... " >&6; }
7174 if ${ac_cv_prog_NMEDIT+:} false; then :
7175 $as_echo_n "(cached) " >&6
7176 else
7177 if test -n "$NMEDIT"; then
7178 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7182 do
7183 IFS=$as_save_IFS
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 break 2
7190 fi
7191 done
7192 done
7193 IFS=$as_save_IFS
7194
7195 fi
7196 fi
7197 NMEDIT=$ac_cv_prog_NMEDIT
7198 if test -n "$NMEDIT"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7200 $as_echo "$NMEDIT" >&6; }
7201 else
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }
7204 fi
7205
7206
7207 fi
7208 if test -z "$ac_cv_prog_NMEDIT"; then
7209 ac_ct_NMEDIT=$NMEDIT
7210 # Extract the first word of "nmedit", so it can be a program name with args.
7211 set dummy nmedit; ac_word=$2
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213 $as_echo_n "checking for $ac_word... " >&6; }
7214 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 if test -n "$ac_ct_NMEDIT"; then
7218 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7219 else
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 for as_dir in $PATH
7222 do
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7227 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 break 2
7230 fi
7231 done
7232 done
7233 IFS=$as_save_IFS
7234
7235 fi
7236 fi
7237 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7238 if test -n "$ac_ct_NMEDIT"; then
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7240 $as_echo "$ac_ct_NMEDIT" >&6; }
7241 else
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7244 fi
7245
7246 if test "x$ac_ct_NMEDIT" = x; then
7247 NMEDIT=":"
7248 else
7249 case $cross_compiling:$ac_tool_warned in
7250 yes:)
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7253 ac_tool_warned=yes ;;
7254 esac
7255 NMEDIT=$ac_ct_NMEDIT
7256 fi
7257 else
7258 NMEDIT="$ac_cv_prog_NMEDIT"
7259 fi
7260
7261 if test -n "$ac_tool_prefix"; then
7262 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7263 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_LIPO+:} false; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269 if test -n "$LIPO"; then
7270 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7282 fi
7283 done
7284 done
7285 IFS=$as_save_IFS
7286
7287 fi
7288 fi
7289 LIPO=$ac_cv_prog_LIPO
7290 if test -n "$LIPO"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7292 $as_echo "$LIPO" >&6; }
7293 else
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7296 fi
7297
7298
7299 fi
7300 if test -z "$ac_cv_prog_LIPO"; then
7301 ac_ct_LIPO=$LIPO
7302 # Extract the first word of "lipo", so it can be a program name with args.
7303 set dummy lipo; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 if test -n "$ac_ct_LIPO"; then
7310 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7311 else
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7319 ac_cv_prog_ac_ct_LIPO="lipo"
7320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 break 2
7322 fi
7323 done
7324 done
7325 IFS=$as_save_IFS
7326
7327 fi
7328 fi
7329 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7330 if test -n "$ac_ct_LIPO"; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7332 $as_echo "$ac_ct_LIPO" >&6; }
7333 else
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7336 fi
7337
7338 if test "x$ac_ct_LIPO" = x; then
7339 LIPO=":"
7340 else
7341 case $cross_compiling:$ac_tool_warned in
7342 yes:)
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7345 ac_tool_warned=yes ;;
7346 esac
7347 LIPO=$ac_ct_LIPO
7348 fi
7349 else
7350 LIPO="$ac_cv_prog_LIPO"
7351 fi
7352
7353 if test -n "$ac_tool_prefix"; then
7354 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7355 set dummy ${ac_tool_prefix}otool; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if ${ac_cv_prog_OTOOL+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 if test -n "$OTOOL"; then
7362 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7363 else
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7371 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7374 fi
7375 done
7376 done
7377 IFS=$as_save_IFS
7378
7379 fi
7380 fi
7381 OTOOL=$ac_cv_prog_OTOOL
7382 if test -n "$OTOOL"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7384 $as_echo "$OTOOL" >&6; }
7385 else
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7388 fi
7389
7390
7391 fi
7392 if test -z "$ac_cv_prog_OTOOL"; then
7393 ac_ct_OTOOL=$OTOOL
7394 # Extract the first word of "otool", so it can be a program name with args.
7395 set dummy otool; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 if test -n "$ac_ct_OTOOL"; then
7402 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411 ac_cv_prog_ac_ct_OTOOL="otool"
7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7414 fi
7415 done
7416 done
7417 IFS=$as_save_IFS
7418
7419 fi
7420 fi
7421 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7422 if test -n "$ac_ct_OTOOL"; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7424 $as_echo "$ac_ct_OTOOL" >&6; }
7425 else
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428 fi
7429
7430 if test "x$ac_ct_OTOOL" = x; then
7431 OTOOL=":"
7432 else
7433 case $cross_compiling:$ac_tool_warned in
7434 yes:)
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7437 ac_tool_warned=yes ;;
7438 esac
7439 OTOOL=$ac_ct_OTOOL
7440 fi
7441 else
7442 OTOOL="$ac_cv_prog_OTOOL"
7443 fi
7444
7445 if test -n "$ac_tool_prefix"; then
7446 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7447 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if ${ac_cv_prog_OTOOL64+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 if test -n "$OTOOL64"; then
7454 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7455 else
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7458 do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7463 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7466 fi
7467 done
7468 done
7469 IFS=$as_save_IFS
7470
7471 fi
7472 fi
7473 OTOOL64=$ac_cv_prog_OTOOL64
7474 if test -n "$OTOOL64"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7476 $as_echo "$OTOOL64" >&6; }
7477 else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7480 fi
7481
7482
7483 fi
7484 if test -z "$ac_cv_prog_OTOOL64"; then
7485 ac_ct_OTOOL64=$OTOOL64
7486 # Extract the first word of "otool64", so it can be a program name with args.
7487 set dummy otool64; ac_word=$2
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7489 $as_echo_n "checking for $ac_word... " >&6; }
7490 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 if test -n "$ac_ct_OTOOL64"; then
7494 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7495 else
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7498 do
7499 IFS=$as_save_IFS
7500 test -z "$as_dir" && as_dir=.
7501 for ac_exec_ext in '' $ac_executable_extensions; do
7502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7503 ac_cv_prog_ac_ct_OTOOL64="otool64"
7504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 break 2
7506 fi
7507 done
7508 done
7509 IFS=$as_save_IFS
7510
7511 fi
7512 fi
7513 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7514 if test -n "$ac_ct_OTOOL64"; then
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7516 $as_echo "$ac_ct_OTOOL64" >&6; }
7517 else
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }
7520 fi
7521
7522 if test "x$ac_ct_OTOOL64" = x; then
7523 OTOOL64=":"
7524 else
7525 case $cross_compiling:$ac_tool_warned in
7526 yes:)
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7529 ac_tool_warned=yes ;;
7530 esac
7531 OTOOL64=$ac_ct_OTOOL64
7532 fi
7533 else
7534 OTOOL64="$ac_cv_prog_OTOOL64"
7535 fi
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7564 $as_echo_n "checking for -single_module linker flag... " >&6; }
7565 if ${lt_cv_apple_cc_single_mod+:} false; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 lt_cv_apple_cc_single_mod=no
7569 if test -z "${LT_MULTI_MODULE}"; then
7570 # By default we will add the -single_module flag. You can override
7571 # by either setting the environment variable LT_MULTI_MODULE
7572 # non-empty at configure time, or by adding -multi_module to the
7573 # link flags.
7574 rm -rf libconftest.dylib*
7575 echo "int foo(void){return 1;}" > conftest.c
7576 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7577 -dynamiclib -Wl,-single_module conftest.c" >&5
7578 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7579 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7580 _lt_result=$?
7581 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7582 lt_cv_apple_cc_single_mod=yes
7583 else
7584 cat conftest.err >&5
7585 fi
7586 rm -rf libconftest.dylib*
7587 rm -f conftest.*
7588 fi
7589 fi
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7591 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7593 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7594 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7595 $as_echo_n "(cached) " >&6
7596 else
7597 lt_cv_ld_exported_symbols_list=no
7598 save_LDFLAGS=$LDFLAGS
7599 echo "_main" > conftest.sym
7600 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7603
7604 int
7605 main ()
7606 {
7607
7608 ;
7609 return 0;
7610 }
7611 _ACEOF
7612 if ac_fn_c_try_link "$LINENO"; then :
7613 lt_cv_ld_exported_symbols_list=yes
7614 else
7615 lt_cv_ld_exported_symbols_list=no
7616 fi
7617 rm -f core conftest.err conftest.$ac_objext \
7618 conftest$ac_exeext conftest.$ac_ext
7619 LDFLAGS="$save_LDFLAGS"
7620
7621 fi
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7623 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7625 $as_echo_n "checking for -force_load linker flag... " >&6; }
7626 if ${lt_cv_ld_force_load+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 lt_cv_ld_force_load=no
7630 cat > conftest.c << _LT_EOF
7631 int forced_loaded() { return 2;}
7632 _LT_EOF
7633 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7634 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7635 echo "$AR cru libconftest.a conftest.o" >&5
7636 $AR cru libconftest.a conftest.o 2>&5
7637 cat > conftest.c << _LT_EOF
7638 int main() { return 0;}
7639 _LT_EOF
7640 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7641 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7642 _lt_result=$?
7643 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7644 lt_cv_ld_force_load=yes
7645 else
7646 cat conftest.err >&5
7647 fi
7648 rm -f conftest.err libconftest.a conftest conftest.c
7649 rm -rf conftest.dSYM
7650
7651 fi
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7653 $as_echo "$lt_cv_ld_force_load" >&6; }
7654 case $host_os in
7655 rhapsody* | darwin1.[012])
7656 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7657 darwin1.*)
7658 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7659 darwin*) # darwin 5.x on
7660 # if running on 10.5 or later, the deployment target defaults
7661 # to the OS version, if on x86, and 10.4, the deployment
7662 # target defaults to 10.4. Don't you love it?
7663 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7664 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7665 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7666 10.[012][,.]*)
7667 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7668 10.*)
7669 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7670 esac
7671 ;;
7672 esac
7673 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7674 _lt_dar_single_mod='$single_module'
7675 fi
7676 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7677 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7678 else
7679 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7680 fi
7681 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7682 _lt_dsymutil='~$DSYMUTIL $lib || :'
7683 else
7684 _lt_dsymutil=
7685 fi
7686 ;;
7687 esac
7688
7689 for ac_header in dlfcn.h
7690 do :
7691 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7692 "
7693 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7694 cat >>confdefs.h <<_ACEOF
7695 #define HAVE_DLFCN_H 1
7696 _ACEOF
7697
7698 fi
7699
7700 done
7701
7702
7703 ac_header_dirent=no
7704 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7705 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7707 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7708 if eval \${$as_ac_Header+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 #include <sys/types.h>
7714 #include <$ac_hdr>
7715
7716 int
7717 main ()
7718 {
7719 if ((DIR *) 0)
7720 return 0;
7721 ;
7722 return 0;
7723 }
7724 _ACEOF
7725 if ac_fn_c_try_compile "$LINENO"; then :
7726 eval "$as_ac_Header=yes"
7727 else
7728 eval "$as_ac_Header=no"
7729 fi
7730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731 fi
7732 eval ac_res=\$$as_ac_Header
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7734 $as_echo "$ac_res" >&6; }
7735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7736 cat >>confdefs.h <<_ACEOF
7737 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7738 _ACEOF
7739
7740 ac_header_dirent=$ac_hdr; break
7741 fi
7742
7743 done
7744 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7745 if test $ac_header_dirent = dirent.h; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7747 $as_echo_n "checking for library containing opendir... " >&6; }
7748 if ${ac_cv_search_opendir+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 ac_func_search_save_LIBS=$LIBS
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754
7755 /* Override any GCC internal prototype to avoid an error.
7756 Use char because int might match the return type of a GCC
7757 builtin and then its argument prototype would still apply. */
7758 #ifdef __cplusplus
7759 extern "C"
7760 #endif
7761 char opendir ();
7762 int
7763 main ()
7764 {
7765 return opendir ();
7766 ;
7767 return 0;
7768 }
7769 _ACEOF
7770 for ac_lib in '' dir; do
7771 if test -z "$ac_lib"; then
7772 ac_res="none required"
7773 else
7774 ac_res=-l$ac_lib
7775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7776 fi
7777 if ac_fn_c_try_link "$LINENO"; then :
7778 ac_cv_search_opendir=$ac_res
7779 fi
7780 rm -f core conftest.err conftest.$ac_objext \
7781 conftest$ac_exeext
7782 if ${ac_cv_search_opendir+:} false; then :
7783 break
7784 fi
7785 done
7786 if ${ac_cv_search_opendir+:} false; then :
7787
7788 else
7789 ac_cv_search_opendir=no
7790 fi
7791 rm conftest.$ac_ext
7792 LIBS=$ac_func_search_save_LIBS
7793 fi
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7795 $as_echo "$ac_cv_search_opendir" >&6; }
7796 ac_res=$ac_cv_search_opendir
7797 if test "$ac_res" != no; then :
7798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7799
7800 fi
7801
7802 else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7804 $as_echo_n "checking for library containing opendir... " >&6; }
7805 if ${ac_cv_search_opendir+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 ac_func_search_save_LIBS=$LIBS
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h. */
7811
7812 /* Override any GCC internal prototype to avoid an error.
7813 Use char because int might match the return type of a GCC
7814 builtin and then its argument prototype would still apply. */
7815 #ifdef __cplusplus
7816 extern "C"
7817 #endif
7818 char opendir ();
7819 int
7820 main ()
7821 {
7822 return opendir ();
7823 ;
7824 return 0;
7825 }
7826 _ACEOF
7827 for ac_lib in '' x; do
7828 if test -z "$ac_lib"; then
7829 ac_res="none required"
7830 else
7831 ac_res=-l$ac_lib
7832 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7833 fi
7834 if ac_fn_c_try_link "$LINENO"; then :
7835 ac_cv_search_opendir=$ac_res
7836 fi
7837 rm -f core conftest.err conftest.$ac_objext \
7838 conftest$ac_exeext
7839 if ${ac_cv_search_opendir+:} false; then :
7840 break
7841 fi
7842 done
7843 if ${ac_cv_search_opendir+:} false; then :
7844
7845 else
7846 ac_cv_search_opendir=no
7847 fi
7848 rm conftest.$ac_ext
7849 LIBS=$ac_func_search_save_LIBS
7850 fi
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7852 $as_echo "$ac_cv_search_opendir" >&6; }
7853 ac_res=$ac_cv_search_opendir
7854 if test "$ac_res" != no; then :
7855 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7856
7857 fi
7858
7859 fi
7860
7861
7862
7863
7864 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7865 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7866
7867 cat >>confdefs.h <<_ACEOF
7868 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7869 _ACEOF
7870
7871
7872 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7873
7874 fi
7875
7876
7877 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7878 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7879
7880 cat >>confdefs.h <<_ACEOF
7881 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7882 _ACEOF
7883
7884
7885 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7886
7887 else
7888 case " $LIBOBJS " in
7889 *" fileblocks.$ac_objext "* ) ;;
7890 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7891 ;;
7892 esac
7893
7894 fi
7895
7896
7897 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7898 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7899
7900 cat >>confdefs.h <<_ACEOF
7901 #define HAVE_STRUCT_STAT_ST_RDEV 1
7902 _ACEOF
7903
7904
7905 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7906
7907 fi
7908
7909
7910 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7911 #include <$ac_cv_struct_tm>
7912
7913 "
7914 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7915
7916 cat >>confdefs.h <<_ACEOF
7917 #define HAVE_STRUCT_TM_TM_ZONE 1
7918 _ACEOF
7919
7920
7921 fi
7922
7923 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7924
7925 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7926
7927 else
7928 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7929 "
7930 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7931 ac_have_decl=1
7932 else
7933 ac_have_decl=0
7934 fi
7935
7936 cat >>confdefs.h <<_ACEOF
7937 #define HAVE_DECL_TZNAME $ac_have_decl
7938 _ACEOF
7939
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7941 $as_echo_n "checking for tzname... " >&6; }
7942 if ${ac_cv_var_tzname+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7947 #include <time.h>
7948 #if !HAVE_DECL_TZNAME
7949 extern char *tzname[];
7950 #endif
7951
7952 int
7953 main ()
7954 {
7955 return tzname[0][0];
7956 ;
7957 return 0;
7958 }
7959 _ACEOF
7960 if ac_fn_c_try_link "$LINENO"; then :
7961 ac_cv_var_tzname=yes
7962 else
7963 ac_cv_var_tzname=no
7964 fi
7965 rm -f core conftest.err conftest.$ac_objext \
7966 conftest$ac_exeext conftest.$ac_ext
7967 fi
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7969 $as_echo "$ac_cv_var_tzname" >&6; }
7970 if test $ac_cv_var_tzname = yes; then
7971
7972 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7973
7974 fi
7975 fi
7976
7977
7978 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
7979 #include <sys/types.h>
7980 #endif
7981 #ifdef HAVE_SYS_STAT_H
7982 #include <sys/stat.h>
7983 #endif
7984 "
7985 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
7986
7987 cat >>confdefs.h <<_ACEOF
7988 #define HAVE_STRUCT_STAT_ST_DEV 1
7989 _ACEOF
7990
7991
7992 fi
7993 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
7994 #include <sys/types.h>
7995 #endif
7996 #ifdef HAVE_SYS_STAT_H
7997 #include <sys/stat.h>
7998 #endif
7999 "
8000 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8001
8002 cat >>confdefs.h <<_ACEOF
8003 #define HAVE_STRUCT_STAT_ST_INO 1
8004 _ACEOF
8005
8006
8007 fi
8008 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8009 #include <sys/types.h>
8010 #endif
8011 #ifdef HAVE_SYS_STAT_H
8012 #include <sys/stat.h>
8013 #endif
8014 "
8015 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8016
8017 cat >>confdefs.h <<_ACEOF
8018 #define HAVE_STRUCT_STAT_ST_MODE 1
8019 _ACEOF
8020
8021
8022 fi
8023 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8024 #include <sys/types.h>
8025 #endif
8026 #ifdef HAVE_SYS_STAT_H
8027 #include <sys/stat.h>
8028 #endif
8029 "
8030 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8031
8032 cat >>confdefs.h <<_ACEOF
8033 #define HAVE_STRUCT_STAT_ST_NLINK 1
8034 _ACEOF
8035
8036
8037 fi
8038 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8039 #include <sys/types.h>
8040 #endif
8041 #ifdef HAVE_SYS_STAT_H
8042 #include <sys/stat.h>
8043 #endif
8044 "
8045 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8046
8047 cat >>confdefs.h <<_ACEOF
8048 #define HAVE_STRUCT_STAT_ST_UID 1
8049 _ACEOF
8050
8051
8052 fi
8053 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8054 #include <sys/types.h>
8055 #endif
8056 #ifdef HAVE_SYS_STAT_H
8057 #include <sys/stat.h>
8058 #endif
8059 "
8060 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8061
8062 cat >>confdefs.h <<_ACEOF
8063 #define HAVE_STRUCT_STAT_ST_GID 1
8064 _ACEOF
8065
8066
8067 fi
8068 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8069 #include <sys/types.h>
8070 #endif
8071 #ifdef HAVE_SYS_STAT_H
8072 #include <sys/stat.h>
8073 #endif
8074 "
8075 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8076
8077 cat >>confdefs.h <<_ACEOF
8078 #define HAVE_STRUCT_STAT_ST_RDEV 1
8079 _ACEOF
8080
8081
8082 fi
8083 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8084 #include <sys/types.h>
8085 #endif
8086 #ifdef HAVE_SYS_STAT_H
8087 #include <sys/stat.h>
8088 #endif
8089 "
8090 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8091
8092 cat >>confdefs.h <<_ACEOF
8093 #define HAVE_STRUCT_STAT_ST_SIZE 1
8094 _ACEOF
8095
8096
8097 fi
8098 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8099 #include <sys/types.h>
8100 #endif
8101 #ifdef HAVE_SYS_STAT_H
8102 #include <sys/stat.h>
8103 #endif
8104 "
8105 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8106
8107 cat >>confdefs.h <<_ACEOF
8108 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8109 _ACEOF
8110
8111
8112 fi
8113 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8114 #include <sys/types.h>
8115 #endif
8116 #ifdef HAVE_SYS_STAT_H
8117 #include <sys/stat.h>
8118 #endif
8119 "
8120 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8121
8122 cat >>confdefs.h <<_ACEOF
8123 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8124 _ACEOF
8125
8126
8127 fi
8128 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8129 #include <sys/types.h>
8130 #endif
8131 #ifdef HAVE_SYS_STAT_H
8132 #include <sys/stat.h>
8133 #endif
8134 "
8135 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8136
8137 cat >>confdefs.h <<_ACEOF
8138 #define HAVE_STRUCT_STAT_ST_ATIME 1
8139 _ACEOF
8140
8141
8142 fi
8143 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8144 #include <sys/types.h>
8145 #endif
8146 #ifdef HAVE_SYS_STAT_H
8147 #include <sys/stat.h>
8148 #endif
8149 "
8150 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8151
8152 cat >>confdefs.h <<_ACEOF
8153 #define HAVE_STRUCT_STAT_ST_MTIME 1
8154 _ACEOF
8155
8156
8157 fi
8158 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8159 #include <sys/types.h>
8160 #endif
8161 #ifdef HAVE_SYS_STAT_H
8162 #include <sys/stat.h>
8163 #endif
8164 "
8165 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8166
8167 cat >>confdefs.h <<_ACEOF
8168 #define HAVE_STRUCT_STAT_ST_CTIME 1
8169 _ACEOF
8170
8171
8172 fi
8173
8174
8175 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8176 if test "x$ac_cv_type___int128" = xyes; then :
8177
8178 cat >>confdefs.h <<_ACEOF
8179 #define HAVE___INT128 1
8180 _ACEOF
8181
8182
8183 fi
8184
8185 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8186 #include <sys/socket.h>
8187
8188 "
8189 if test "x$ac_cv_type_socklen_t" = xyes; then :
8190
8191 cat >>confdefs.h <<_ACEOF
8192 #define HAVE_SOCKLEN_T 1
8193 _ACEOF
8194
8195
8196 fi
8197
8198
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8200 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8201 if ${ac_cv_type_getgroups+:} false; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 if test "$cross_compiling" = yes; then :
8205 ac_cv_type_getgroups=cross
8206 else
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209 /* Thanks to Mike Rendell for this test. */
8210 $ac_includes_default
8211 #define NGID 256
8212 #undef MAX
8213 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8214
8215 int
8216 main ()
8217 {
8218 gid_t gidset[NGID];
8219 int i, n;
8220 union { gid_t gval; long int lval; } val;
8221
8222 val.lval = -1;
8223 for (i = 0; i < NGID; i++)
8224 gidset[i] = val.gval;
8225 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8226 gidset);
8227 /* Exit non-zero if getgroups seems to require an array of ints. This
8228 happens when gid_t is short int but getgroups modifies an array
8229 of ints. */
8230 return n > 0 && gidset[n] != val.gval;
8231 }
8232 _ACEOF
8233 if ac_fn_c_try_run "$LINENO"; then :
8234 ac_cv_type_getgroups=gid_t
8235 else
8236 ac_cv_type_getgroups=int
8237 fi
8238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8239 conftest.$ac_objext conftest.beam conftest.$ac_ext
8240 fi
8241
8242 if test $ac_cv_type_getgroups = cross; then
8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h. */
8245 #include <unistd.h>
8246
8247 _ACEOF
8248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8249 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8250 ac_cv_type_getgroups=gid_t
8251 else
8252 ac_cv_type_getgroups=int
8253 fi
8254 rm -f conftest*
8255
8256 fi
8257 fi
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8259 $as_echo "$ac_cv_type_getgroups" >&6; }
8260
8261 cat >>confdefs.h <<_ACEOF
8262 #define GETGROUPS_T $ac_cv_type_getgroups
8263 _ACEOF
8264
8265
8266 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8267 if test "x$ac_cv_type_mode_t" = xyes; then :
8268
8269 else
8270
8271 cat >>confdefs.h <<_ACEOF
8272 #define mode_t int
8273 _ACEOF
8274
8275 fi
8276
8277 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8278 if test "x$ac_cv_type_off_t" = xyes; then :
8279
8280 else
8281
8282 cat >>confdefs.h <<_ACEOF
8283 #define off_t long int
8284 _ACEOF
8285
8286 fi
8287
8288 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8289 if test "x$ac_cv_type_pid_t" = xyes; then :
8290
8291 else
8292
8293 cat >>confdefs.h <<_ACEOF
8294 #define pid_t int
8295 _ACEOF
8296
8297 fi
8298
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8300 $as_echo_n "checking return type of signal handlers... " >&6; }
8301 if ${ac_cv_type_signal+:} false; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8306 #include <sys/types.h>
8307 #include <signal.h>
8308
8309 int
8310 main ()
8311 {
8312 return *(signal (0, 0)) (0) == 1;
8313 ;
8314 return 0;
8315 }
8316 _ACEOF
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318 ac_cv_type_signal=int
8319 else
8320 ac_cv_type_signal=void
8321 fi
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 fi
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8325 $as_echo "$ac_cv_type_signal" >&6; }
8326
8327 cat >>confdefs.h <<_ACEOF
8328 #define RETSIGTYPE $ac_cv_type_signal
8329 _ACEOF
8330
8331
8332 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8333 if test "x$ac_cv_type_size_t" = xyes; then :
8334
8335 else
8336
8337 cat >>confdefs.h <<_ACEOF
8338 #define size_t unsigned int
8339 _ACEOF
8340
8341 fi
8342
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8344 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8345 if ${ac_cv_type_uid_t+:} false; then :
8346 $as_echo_n "(cached) " >&6
8347 else
8348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349 /* end confdefs.h. */
8350 #include <sys/types.h>
8351
8352 _ACEOF
8353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8354 $EGREP "uid_t" >/dev/null 2>&1; then :
8355 ac_cv_type_uid_t=yes
8356 else
8357 ac_cv_type_uid_t=no
8358 fi
8359 rm -f conftest*
8360
8361 fi
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8363 $as_echo "$ac_cv_type_uid_t" >&6; }
8364 if test $ac_cv_type_uid_t = no; then
8365
8366 $as_echo "#define uid_t int" >>confdefs.h
8367
8368
8369 $as_echo "#define gid_t int" >>confdefs.h
8370
8371 fi
8372
8373
8374 ALL_LINGUAS=
8375 # If we haven't got the data from the intl directory,
8376 # assume NLS is disabled.
8377 USE_NLS=no
8378 LIBINTL=
8379 LIBINTL_DEP=
8380 INCINTL=
8381 XGETTEXT=
8382 GMSGFMT=
8383 POSUB=
8384
8385 if test -f ../intl/config.intl; then
8386 . ../intl/config.intl
8387 fi
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8389 $as_echo_n "checking whether NLS is requested... " >&6; }
8390 if test x"$USE_NLS" != xyes; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 else
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8395 $as_echo "yes" >&6; }
8396
8397 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8398
8399
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8401 $as_echo_n "checking for catalogs to be installed... " >&6; }
8402 # Look for .po and .gmo files in the source directory.
8403 CATALOGS=
8404 XLINGUAS=
8405 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8406 # If there aren't any .gmo files the shell will give us the
8407 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8408 # weeded out.
8409 case "$cat" in *\**)
8410 continue;;
8411 esac
8412 # The quadruple backslash is collapsed to a double backslash
8413 # by the backticks, then collapsed again by the double quotes,
8414 # leaving us with one backslash in the sed expression (right
8415 # before the dot that mustn't act as a wildcard).
8416 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8417 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8418 # The user is allowed to set LINGUAS to a list of languages to
8419 # install catalogs for. If it's empty that means "all of them."
8420 if test "x$LINGUAS" = x; then
8421 CATALOGS="$CATALOGS $cat"
8422 XLINGUAS="$XLINGUAS $lang"
8423 else
8424 case "$LINGUAS" in *$lang*)
8425 CATALOGS="$CATALOGS $cat"
8426 XLINGUAS="$XLINGUAS $lang"
8427 ;;
8428 esac
8429 fi
8430 done
8431 LINGUAS="$XLINGUAS"
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8433 $as_echo "$LINGUAS" >&6; }
8434
8435
8436 DATADIRNAME=share
8437
8438 INSTOBJEXT=.mo
8439
8440 GENCAT=gencat
8441
8442 CATOBJEXT=.gmo
8443
8444 fi
8445
8446
8447 # Use the system's zlib library.
8448 zlibdir="-L\$(top_builddir)/../zlib"
8449 zlibinc="-I\$(top_srcdir)/../zlib"
8450
8451 # Check whether --with-system-zlib was given.
8452 if test "${with_system_zlib+set}" = set; then :
8453 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8454 zlibdir=
8455 zlibinc=
8456 fi
8457
8458 fi
8459
8460
8461
8462
8463
8464
8465 maybe_plugins=no
8466 for ac_header in dlfcn.h
8467 do :
8468 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8469 "
8470 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8471 cat >>confdefs.h <<_ACEOF
8472 #define HAVE_DLFCN_H 1
8473 _ACEOF
8474 maybe_plugins=yes
8475 fi
8476
8477 done
8478
8479 for ac_header in windows.h
8480 do :
8481 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
8482 "
8483 if test "x$ac_cv_header_windows_h" = xyes; then :
8484 cat >>confdefs.h <<_ACEOF
8485 #define HAVE_WINDOWS_H 1
8486 _ACEOF
8487 maybe_plugins=yes
8488 fi
8489
8490 done
8491
8492
8493 # Check whether --enable-plugins was given.
8494 if test "${enable_plugins+set}" = set; then :
8495 enableval=$enable_plugins; case "${enableval}" in
8496 no) plugins=no ;;
8497 *) plugins=yes
8498 if test "$maybe_plugins" != "yes" ; then
8499 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
8500 fi ;;
8501 esac
8502 else
8503 plugins=$maybe_plugins
8504
8505 fi
8506
8507 if test "$plugins" = "yes"; then
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
8509 $as_echo_n "checking for library containing dlsym... " >&6; }
8510 if ${ac_cv_search_dlsym+:} false; then :
8511 $as_echo_n "(cached) " >&6
8512 else
8513 ac_func_search_save_LIBS=$LIBS
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516
8517 /* Override any GCC internal prototype to avoid an error.
8518 Use char because int might match the return type of a GCC
8519 builtin and then its argument prototype would still apply. */
8520 #ifdef __cplusplus
8521 extern "C"
8522 #endif
8523 char dlsym ();
8524 int
8525 main ()
8526 {
8527 return dlsym ();
8528 ;
8529 return 0;
8530 }
8531 _ACEOF
8532 for ac_lib in '' dl; do
8533 if test -z "$ac_lib"; then
8534 ac_res="none required"
8535 else
8536 ac_res=-l$ac_lib
8537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8538 fi
8539 if ac_fn_c_try_link "$LINENO"; then :
8540 ac_cv_search_dlsym=$ac_res
8541 fi
8542 rm -f core conftest.err conftest.$ac_objext \
8543 conftest$ac_exeext
8544 if ${ac_cv_search_dlsym+:} false; then :
8545 break
8546 fi
8547 done
8548 if ${ac_cv_search_dlsym+:} false; then :
8549
8550 else
8551 ac_cv_search_dlsym=no
8552 fi
8553 rm conftest.$ac_ext
8554 LIBS=$ac_func_search_save_LIBS
8555 fi
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
8557 $as_echo "$ac_cv_search_dlsym" >&6; }
8558 ac_res=$ac_cv_search_dlsym
8559 if test "$ac_res" != no; then :
8560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8561
8562 fi
8563
8564 fi
8565
8566 if test "$plugins" = yes; then
8567 PLUGINS_TRUE=
8568 PLUGINS_FALSE='#'
8569 else
8570 PLUGINS_TRUE='#'
8571 PLUGINS_FALSE=
8572 fi
8573
8574
8575
8576
8577
8578 # Set options
8579 enable_dlopen=yes
8580
8581
8582
8583
8584 enable_win32_dll=no
8585
8586
8587 # Check whether --enable-shared was given.
8588 if test "${enable_shared+set}" = set; then :
8589 enableval=$enable_shared; p=${PACKAGE-default}
8590 case $enableval in
8591 yes) enable_shared=yes ;;
8592 no) enable_shared=no ;;
8593 *)
8594 enable_shared=no
8595 # Look at the argument we got. We use all the common list separators.
8596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8597 for pkg in $enableval; do
8598 IFS="$lt_save_ifs"
8599 if test "X$pkg" = "X$p"; then
8600 enable_shared=yes
8601 fi
8602 done
8603 IFS="$lt_save_ifs"
8604 ;;
8605 esac
8606 else
8607 enable_shared=yes
8608 fi
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618 # Check whether --enable-static was given.
8619 if test "${enable_static+set}" = set; then :
8620 enableval=$enable_static; p=${PACKAGE-default}
8621 case $enableval in
8622 yes) enable_static=yes ;;
8623 no) enable_static=no ;;
8624 *)
8625 enable_static=no
8626 # Look at the argument we got. We use all the common list separators.
8627 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8628 for pkg in $enableval; do
8629 IFS="$lt_save_ifs"
8630 if test "X$pkg" = "X$p"; then
8631 enable_static=yes
8632 fi
8633 done
8634 IFS="$lt_save_ifs"
8635 ;;
8636 esac
8637 else
8638 enable_static=yes
8639 fi
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650 # Check whether --with-pic was given.
8651 if test "${with_pic+set}" = set; then :
8652 withval=$with_pic; pic_mode="$withval"
8653 else
8654 pic_mode=default
8655 fi
8656
8657
8658 test -z "$pic_mode" && pic_mode=default
8659
8660
8661
8662
8663
8664
8665
8666 # Check whether --enable-fast-install was given.
8667 if test "${enable_fast_install+set}" = set; then :
8668 enableval=$enable_fast_install; p=${PACKAGE-default}
8669 case $enableval in
8670 yes) enable_fast_install=yes ;;
8671 no) enable_fast_install=no ;;
8672 *)
8673 enable_fast_install=no
8674 # Look at the argument we got. We use all the common list separators.
8675 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8676 for pkg in $enableval; do
8677 IFS="$lt_save_ifs"
8678 if test "X$pkg" = "X$p"; then
8679 enable_fast_install=yes
8680 fi
8681 done
8682 IFS="$lt_save_ifs"
8683 ;;
8684 esac
8685 else
8686 enable_fast_install=yes
8687 fi
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699 # This can be used to rebuild libtool when needed
8700 LIBTOOL_DEPS="$ltmain"
8701
8702 # Always use our own libtool.
8703 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730 test -z "$LN_S" && LN_S="ln -s"
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745 if test -n "${ZSH_VERSION+set}" ; then
8746 setopt NO_GLOB_SUBST
8747 fi
8748
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8750 $as_echo_n "checking for objdir... " >&6; }
8751 if ${lt_cv_objdir+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753 else
8754 rm -f .libs 2>/dev/null
8755 mkdir .libs 2>/dev/null
8756 if test -d .libs; then
8757 lt_cv_objdir=.libs
8758 else
8759 # MS-DOS does not allow filenames that begin with a dot.
8760 lt_cv_objdir=_libs
8761 fi
8762 rmdir .libs 2>/dev/null
8763 fi
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8765 $as_echo "$lt_cv_objdir" >&6; }
8766 objdir=$lt_cv_objdir
8767
8768
8769
8770
8771
8772 cat >>confdefs.h <<_ACEOF
8773 #define LT_OBJDIR "$lt_cv_objdir/"
8774 _ACEOF
8775
8776
8777
8778
8779 case $host_os in
8780 aix3*)
8781 # AIX sometimes has problems with the GCC collect2 program. For some
8782 # reason, if we set the COLLECT_NAMES environment variable, the problems
8783 # vanish in a puff of smoke.
8784 if test "X${COLLECT_NAMES+set}" != Xset; then
8785 COLLECT_NAMES=
8786 export COLLECT_NAMES
8787 fi
8788 ;;
8789 esac
8790
8791 # Global variables:
8792 ofile=libtool
8793 can_build_shared=yes
8794
8795 # All known linkers require a `.a' archive for static linking (except MSVC,
8796 # which needs '.lib').
8797 libext=a
8798
8799 with_gnu_ld="$lt_cv_prog_gnu_ld"
8800
8801 old_CC="$CC"
8802 old_CFLAGS="$CFLAGS"
8803
8804 # Set sane defaults for various variables
8805 test -z "$CC" && CC=cc
8806 test -z "$LTCC" && LTCC=$CC
8807 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8808 test -z "$LD" && LD=ld
8809 test -z "$ac_objext" && ac_objext=o
8810
8811 for cc_temp in $compiler""; do
8812 case $cc_temp in
8813 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8814 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8815 \-*) ;;
8816 *) break;;
8817 esac
8818 done
8819 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8820
8821
8822 # Only perform the check for file, if the check method requires it
8823 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8824 case $deplibs_check_method in
8825 file_magic*)
8826 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8828 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8829 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8830 $as_echo_n "(cached) " >&6
8831 else
8832 case $MAGIC_CMD in
8833 [\\/*] | ?:[\\/]*)
8834 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8835 ;;
8836 *)
8837 lt_save_MAGIC_CMD="$MAGIC_CMD"
8838 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8839 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8840 for ac_dir in $ac_dummy; do
8841 IFS="$lt_save_ifs"
8842 test -z "$ac_dir" && ac_dir=.
8843 if test -f $ac_dir/${ac_tool_prefix}file; then
8844 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8845 if test -n "$file_magic_test_file"; then
8846 case $deplibs_check_method in
8847 "file_magic "*)
8848 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8850 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8851 $EGREP "$file_magic_regex" > /dev/null; then
8852 :
8853 else
8854 cat <<_LT_EOF 1>&2
8855
8856 *** Warning: the command libtool uses to detect shared libraries,
8857 *** $file_magic_cmd, produces output that libtool cannot recognize.
8858 *** The result is that libtool may fail to recognize shared libraries
8859 *** as such. This will affect the creation of libtool libraries that
8860 *** depend on shared libraries, but programs linked with such libtool
8861 *** libraries will work regardless of this problem. Nevertheless, you
8862 *** may want to report the problem to your system manager and/or to
8863 *** bug-libtool@gnu.org
8864
8865 _LT_EOF
8866 fi ;;
8867 esac
8868 fi
8869 break
8870 fi
8871 done
8872 IFS="$lt_save_ifs"
8873 MAGIC_CMD="$lt_save_MAGIC_CMD"
8874 ;;
8875 esac
8876 fi
8877
8878 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8879 if test -n "$MAGIC_CMD"; then
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8881 $as_echo "$MAGIC_CMD" >&6; }
8882 else
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 $as_echo "no" >&6; }
8885 fi
8886
8887
8888
8889
8890
8891 if test -z "$lt_cv_path_MAGIC_CMD"; then
8892 if test -n "$ac_tool_prefix"; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8894 $as_echo_n "checking for file... " >&6; }
8895 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8896 $as_echo_n "(cached) " >&6
8897 else
8898 case $MAGIC_CMD in
8899 [\\/*] | ?:[\\/]*)
8900 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8901 ;;
8902 *)
8903 lt_save_MAGIC_CMD="$MAGIC_CMD"
8904 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8905 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8906 for ac_dir in $ac_dummy; do
8907 IFS="$lt_save_ifs"
8908 test -z "$ac_dir" && ac_dir=.
8909 if test -f $ac_dir/file; then
8910 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8911 if test -n "$file_magic_test_file"; then
8912 case $deplibs_check_method in
8913 "file_magic "*)
8914 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8915 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8916 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8917 $EGREP "$file_magic_regex" > /dev/null; then
8918 :
8919 else
8920 cat <<_LT_EOF 1>&2
8921
8922 *** Warning: the command libtool uses to detect shared libraries,
8923 *** $file_magic_cmd, produces output that libtool cannot recognize.
8924 *** The result is that libtool may fail to recognize shared libraries
8925 *** as such. This will affect the creation of libtool libraries that
8926 *** depend on shared libraries, but programs linked with such libtool
8927 *** libraries will work regardless of this problem. Nevertheless, you
8928 *** may want to report the problem to your system manager and/or to
8929 *** bug-libtool@gnu.org
8930
8931 _LT_EOF
8932 fi ;;
8933 esac
8934 fi
8935 break
8936 fi
8937 done
8938 IFS="$lt_save_ifs"
8939 MAGIC_CMD="$lt_save_MAGIC_CMD"
8940 ;;
8941 esac
8942 fi
8943
8944 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8945 if test -n "$MAGIC_CMD"; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8947 $as_echo "$MAGIC_CMD" >&6; }
8948 else
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950 $as_echo "no" >&6; }
8951 fi
8952
8953
8954 else
8955 MAGIC_CMD=:
8956 fi
8957 fi
8958
8959 fi
8960 ;;
8961 esac
8962
8963 # Use C for the default configuration in the libtool script
8964
8965 lt_save_CC="$CC"
8966 ac_ext=c
8967 ac_cpp='$CPP $CPPFLAGS'
8968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8971
8972
8973 # Source file extension for C test sources.
8974 ac_ext=c
8975
8976 # Object file extension for compiled C test sources.
8977 objext=o
8978 objext=$objext
8979
8980 # Code to be used in simple compile tests
8981 lt_simple_compile_test_code="int some_variable = 0;"
8982
8983 # Code to be used in simple link tests
8984 lt_simple_link_test_code='int main(){return(0);}'
8985
8986
8987
8988
8989
8990
8991
8992 # If no C compiler was specified, use CC.
8993 LTCC=${LTCC-"$CC"}
8994
8995 # If no C compiler flags were specified, use CFLAGS.
8996 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8997
8998 # Allow CC to be a program name with arguments.
8999 compiler=$CC
9000
9001 # Save the default compiler, since it gets overwritten when the other
9002 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9003 compiler_DEFAULT=$CC
9004
9005 # save warnings/boilerplate of simple test code
9006 ac_outfile=conftest.$ac_objext
9007 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9008 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9009 _lt_compiler_boilerplate=`cat conftest.err`
9010 $RM conftest*
9011
9012 ac_outfile=conftest.$ac_objext
9013 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9014 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9015 _lt_linker_boilerplate=`cat conftest.err`
9016 $RM -r conftest*
9017
9018
9019 ## CAVEAT EMPTOR:
9020 ## There is no encapsulation within the following macros, do not change
9021 ## the running order or otherwise move them around unless you know exactly
9022 ## what you are doing...
9023 if test -n "$compiler"; then
9024
9025 lt_prog_compiler_no_builtin_flag=
9026
9027 if test "$GCC" = yes; then
9028 case $cc_basename in
9029 nvcc*)
9030 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9031 *)
9032 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9033 esac
9034
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9036 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9037 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9038 $as_echo_n "(cached) " >&6
9039 else
9040 lt_cv_prog_compiler_rtti_exceptions=no
9041 ac_outfile=conftest.$ac_objext
9042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9043 lt_compiler_flag="-fno-rtti -fno-exceptions"
9044 # Insert the option either (1) after the last *FLAGS variable, or
9045 # (2) before a word containing "conftest.", or (3) at the end.
9046 # Note that $ac_compile itself does not contain backslashes and begins
9047 # with a dollar sign (not a hyphen), so the echo should work correctly.
9048 # The option is referenced via a variable to avoid confusing sed.
9049 lt_compile=`echo "$ac_compile" | $SED \
9050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9052 -e 's:$: $lt_compiler_flag:'`
9053 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9054 (eval "$lt_compile" 2>conftest.err)
9055 ac_status=$?
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 if (exit $ac_status) && test -s "$ac_outfile"; then
9059 # The compiler can only warn and ignore the option if not recognized
9060 # So say no if there are warnings other than the usual output.
9061 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9063 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9064 lt_cv_prog_compiler_rtti_exceptions=yes
9065 fi
9066 fi
9067 $RM conftest*
9068
9069 fi
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9071 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9072
9073 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9074 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9075 else
9076 :
9077 fi
9078
9079 fi
9080
9081
9082
9083
9084
9085
9086 lt_prog_compiler_wl=
9087 lt_prog_compiler_pic=
9088 lt_prog_compiler_static=
9089
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9091 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9092
9093 if test "$GCC" = yes; then
9094 lt_prog_compiler_wl='-Wl,'
9095 lt_prog_compiler_static='-static'
9096
9097 case $host_os in
9098 aix*)
9099 # All AIX code is PIC.
9100 if test "$host_cpu" = ia64; then
9101 # AIX 5 now supports IA64 processor
9102 lt_prog_compiler_static='-Bstatic'
9103 fi
9104 lt_prog_compiler_pic='-fPIC'
9105 ;;
9106
9107 amigaos*)
9108 case $host_cpu in
9109 powerpc)
9110 # see comment about AmigaOS4 .so support
9111 lt_prog_compiler_pic='-fPIC'
9112 ;;
9113 m68k)
9114 # FIXME: we need at least 68020 code to build shared libraries, but
9115 # adding the `-m68020' flag to GCC prevents building anything better,
9116 # like `-m68040'.
9117 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9118 ;;
9119 esac
9120 ;;
9121
9122 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9123 # PIC is the default for these OSes.
9124 ;;
9125
9126 mingw* | cygwin* | pw32* | os2* | cegcc*)
9127 # This hack is so that the source file can tell whether it is being
9128 # built for inclusion in a dll (and should export symbols for example).
9129 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9130 # (--disable-auto-import) libraries
9131 lt_prog_compiler_pic='-DDLL_EXPORT'
9132 ;;
9133
9134 darwin* | rhapsody*)
9135 # PIC is the default on this platform
9136 # Common symbols not allowed in MH_DYLIB files
9137 lt_prog_compiler_pic='-fno-common'
9138 ;;
9139
9140 haiku*)
9141 # PIC is the default for Haiku.
9142 # The "-static" flag exists, but is broken.
9143 lt_prog_compiler_static=
9144 ;;
9145
9146 hpux*)
9147 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9148 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9149 # sets the default TLS model and affects inlining.
9150 case $host_cpu in
9151 hppa*64*)
9152 # +Z the default
9153 ;;
9154 *)
9155 lt_prog_compiler_pic='-fPIC'
9156 ;;
9157 esac
9158 ;;
9159
9160 interix[3-9]*)
9161 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9162 # Instead, we relocate shared libraries at runtime.
9163 ;;
9164
9165 msdosdjgpp*)
9166 # Just because we use GCC doesn't mean we suddenly get shared libraries
9167 # on systems that don't support them.
9168 lt_prog_compiler_can_build_shared=no
9169 enable_shared=no
9170 ;;
9171
9172 *nto* | *qnx*)
9173 # QNX uses GNU C++, but need to define -shared option too, otherwise
9174 # it will coredump.
9175 lt_prog_compiler_pic='-fPIC -shared'
9176 ;;
9177
9178 sysv4*MP*)
9179 if test -d /usr/nec; then
9180 lt_prog_compiler_pic=-Kconform_pic
9181 fi
9182 ;;
9183
9184 *)
9185 lt_prog_compiler_pic='-fPIC'
9186 ;;
9187 esac
9188
9189 case $cc_basename in
9190 nvcc*) # Cuda Compiler Driver 2.2
9191 lt_prog_compiler_wl='-Xlinker '
9192 lt_prog_compiler_pic='-Xcompiler -fPIC'
9193 ;;
9194 esac
9195 else
9196 # PORTME Check for flag to pass linker flags through the system compiler.
9197 case $host_os in
9198 aix*)
9199 lt_prog_compiler_wl='-Wl,'
9200 if test "$host_cpu" = ia64; then
9201 # AIX 5 now supports IA64 processor
9202 lt_prog_compiler_static='-Bstatic'
9203 else
9204 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9205 fi
9206 ;;
9207
9208 mingw* | cygwin* | pw32* | os2* | cegcc*)
9209 # This hack is so that the source file can tell whether it is being
9210 # built for inclusion in a dll (and should export symbols for example).
9211 lt_prog_compiler_pic='-DDLL_EXPORT'
9212 ;;
9213
9214 hpux9* | hpux10* | hpux11*)
9215 lt_prog_compiler_wl='-Wl,'
9216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9217 # not for PA HP-UX.
9218 case $host_cpu in
9219 hppa*64*|ia64*)
9220 # +Z the default
9221 ;;
9222 *)
9223 lt_prog_compiler_pic='+Z'
9224 ;;
9225 esac
9226 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9227 lt_prog_compiler_static='${wl}-a ${wl}archive'
9228 ;;
9229
9230 irix5* | irix6* | nonstopux*)
9231 lt_prog_compiler_wl='-Wl,'
9232 # PIC (with -KPIC) is the default.
9233 lt_prog_compiler_static='-non_shared'
9234 ;;
9235
9236 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9237 case $cc_basename in
9238 # old Intel for x86_64 which still supported -KPIC.
9239 ecc*)
9240 lt_prog_compiler_wl='-Wl,'
9241 lt_prog_compiler_pic='-KPIC'
9242 lt_prog_compiler_static='-static'
9243 ;;
9244 # icc used to be incompatible with GCC.
9245 # ICC 10 doesn't accept -KPIC any more.
9246 icc* | ifort*)
9247 lt_prog_compiler_wl='-Wl,'
9248 lt_prog_compiler_pic='-fPIC'
9249 lt_prog_compiler_static='-static'
9250 ;;
9251 # Lahey Fortran 8.1.
9252 lf95*)
9253 lt_prog_compiler_wl='-Wl,'
9254 lt_prog_compiler_pic='--shared'
9255 lt_prog_compiler_static='--static'
9256 ;;
9257 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9258 # Portland Group compilers (*not* the Pentium gcc compiler,
9259 # which looks to be a dead project)
9260 lt_prog_compiler_wl='-Wl,'
9261 lt_prog_compiler_pic='-fpic'
9262 lt_prog_compiler_static='-Bstatic'
9263 ;;
9264 ccc*)
9265 lt_prog_compiler_wl='-Wl,'
9266 # All Alpha code is PIC.
9267 lt_prog_compiler_static='-non_shared'
9268 ;;
9269 xl* | bgxl* | bgf* | mpixl*)
9270 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9271 lt_prog_compiler_wl='-Wl,'
9272 lt_prog_compiler_pic='-qpic'
9273 lt_prog_compiler_static='-qstaticlink'
9274 ;;
9275 *)
9276 case `$CC -V 2>&1 | sed 5q` in
9277 *Sun\ F* | *Sun*Fortran*)
9278 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9279 lt_prog_compiler_pic='-KPIC'
9280 lt_prog_compiler_static='-Bstatic'
9281 lt_prog_compiler_wl=''
9282 ;;
9283 *Sun\ C*)
9284 # Sun C 5.9
9285 lt_prog_compiler_pic='-KPIC'
9286 lt_prog_compiler_static='-Bstatic'
9287 lt_prog_compiler_wl='-Wl,'
9288 ;;
9289 esac
9290 ;;
9291 esac
9292 ;;
9293
9294 newsos6)
9295 lt_prog_compiler_pic='-KPIC'
9296 lt_prog_compiler_static='-Bstatic'
9297 ;;
9298
9299 *nto* | *qnx*)
9300 # QNX uses GNU C++, but need to define -shared option too, otherwise
9301 # it will coredump.
9302 lt_prog_compiler_pic='-fPIC -shared'
9303 ;;
9304
9305 osf3* | osf4* | osf5*)
9306 lt_prog_compiler_wl='-Wl,'
9307 # All OSF/1 code is PIC.
9308 lt_prog_compiler_static='-non_shared'
9309 ;;
9310
9311 rdos*)
9312 lt_prog_compiler_static='-non_shared'
9313 ;;
9314
9315 solaris*)
9316 lt_prog_compiler_pic='-KPIC'
9317 lt_prog_compiler_static='-Bstatic'
9318 case $cc_basename in
9319 f77* | f90* | f95*)
9320 lt_prog_compiler_wl='-Qoption ld ';;
9321 *)
9322 lt_prog_compiler_wl='-Wl,';;
9323 esac
9324 ;;
9325
9326 sunos4*)
9327 lt_prog_compiler_wl='-Qoption ld '
9328 lt_prog_compiler_pic='-PIC'
9329 lt_prog_compiler_static='-Bstatic'
9330 ;;
9331
9332 sysv4 | sysv4.2uw2* | sysv4.3*)
9333 lt_prog_compiler_wl='-Wl,'
9334 lt_prog_compiler_pic='-KPIC'
9335 lt_prog_compiler_static='-Bstatic'
9336 ;;
9337
9338 sysv4*MP*)
9339 if test -d /usr/nec ;then
9340 lt_prog_compiler_pic='-Kconform_pic'
9341 lt_prog_compiler_static='-Bstatic'
9342 fi
9343 ;;
9344
9345 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9346 lt_prog_compiler_wl='-Wl,'
9347 lt_prog_compiler_pic='-KPIC'
9348 lt_prog_compiler_static='-Bstatic'
9349 ;;
9350
9351 unicos*)
9352 lt_prog_compiler_wl='-Wl,'
9353 lt_prog_compiler_can_build_shared=no
9354 ;;
9355
9356 uts4*)
9357 lt_prog_compiler_pic='-pic'
9358 lt_prog_compiler_static='-Bstatic'
9359 ;;
9360
9361 *)
9362 lt_prog_compiler_can_build_shared=no
9363 ;;
9364 esac
9365 fi
9366
9367 case $host_os in
9368 # For platforms which do not support PIC, -DPIC is meaningless:
9369 *djgpp*)
9370 lt_prog_compiler_pic=
9371 ;;
9372 *)
9373 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9374 ;;
9375 esac
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9377 $as_echo "$lt_prog_compiler_pic" >&6; }
9378
9379
9380
9381
9382
9383
9384 #
9385 # Check to make sure the PIC flag actually works.
9386 #
9387 if test -n "$lt_prog_compiler_pic"; then
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9389 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9390 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 lt_cv_prog_compiler_pic_works=no
9394 ac_outfile=conftest.$ac_objext
9395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9396 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9397 # Insert the option either (1) after the last *FLAGS variable, or
9398 # (2) before a word containing "conftest.", or (3) at the end.
9399 # Note that $ac_compile itself does not contain backslashes and begins
9400 # with a dollar sign (not a hyphen), so the echo should work correctly.
9401 # The option is referenced via a variable to avoid confusing sed.
9402 lt_compile=`echo "$ac_compile" | $SED \
9403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9405 -e 's:$: $lt_compiler_flag:'`
9406 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9407 (eval "$lt_compile" 2>conftest.err)
9408 ac_status=$?
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 if (exit $ac_status) && test -s "$ac_outfile"; then
9412 # The compiler can only warn and ignore the option if not recognized
9413 # So say no if there are warnings other than the usual output.
9414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9417 lt_cv_prog_compiler_pic_works=yes
9418 fi
9419 fi
9420 $RM conftest*
9421
9422 fi
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9424 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9425
9426 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9427 case $lt_prog_compiler_pic in
9428 "" | " "*) ;;
9429 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9430 esac
9431 else
9432 lt_prog_compiler_pic=
9433 lt_prog_compiler_can_build_shared=no
9434 fi
9435
9436 fi
9437
9438
9439
9440
9441
9442
9443 #
9444 # Check to make sure the static flag actually works.
9445 #
9446 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9448 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9449 if ${lt_cv_prog_compiler_static_works+:} false; then :
9450 $as_echo_n "(cached) " >&6
9451 else
9452 lt_cv_prog_compiler_static_works=no
9453 save_LDFLAGS="$LDFLAGS"
9454 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9455 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9457 # The linker can only warn and ignore the option if not recognized
9458 # So say no if there are warnings
9459 if test -s conftest.err; then
9460 # Append any errors to the config.log.
9461 cat conftest.err 1>&5
9462 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9464 if diff conftest.exp conftest.er2 >/dev/null; then
9465 lt_cv_prog_compiler_static_works=yes
9466 fi
9467 else
9468 lt_cv_prog_compiler_static_works=yes
9469 fi
9470 fi
9471 $RM -r conftest*
9472 LDFLAGS="$save_LDFLAGS"
9473
9474 fi
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9476 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9477
9478 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9479 :
9480 else
9481 lt_prog_compiler_static=
9482 fi
9483
9484
9485
9486
9487
9488
9489
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9491 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9492 if ${lt_cv_prog_compiler_c_o+:} false; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 lt_cv_prog_compiler_c_o=no
9496 $RM -r conftest 2>/dev/null
9497 mkdir conftest
9498 cd conftest
9499 mkdir out
9500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9501
9502 lt_compiler_flag="-o out/conftest2.$ac_objext"
9503 # Insert the option either (1) after the last *FLAGS variable, or
9504 # (2) before a word containing "conftest.", or (3) at the end.
9505 # Note that $ac_compile itself does not contain backslashes and begins
9506 # with a dollar sign (not a hyphen), so the echo should work correctly.
9507 lt_compile=`echo "$ac_compile" | $SED \
9508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9510 -e 's:$: $lt_compiler_flag:'`
9511 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9512 (eval "$lt_compile" 2>out/conftest.err)
9513 ac_status=$?
9514 cat out/conftest.err >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9517 then
9518 # The compiler can only warn and ignore the option if not recognized
9519 # So say no if there are warnings
9520 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9521 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9522 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9523 lt_cv_prog_compiler_c_o=yes
9524 fi
9525 fi
9526 chmod u+w . 2>&5
9527 $RM conftest*
9528 # SGI C++ compiler will create directory out/ii_files/ for
9529 # template instantiation
9530 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9531 $RM out/* && rmdir out
9532 cd ..
9533 $RM -r conftest
9534 $RM conftest*
9535
9536 fi
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9538 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9539
9540
9541
9542
9543
9544
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9546 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9547 if ${lt_cv_prog_compiler_c_o+:} false; then :
9548 $as_echo_n "(cached) " >&6
9549 else
9550 lt_cv_prog_compiler_c_o=no
9551 $RM -r conftest 2>/dev/null
9552 mkdir conftest
9553 cd conftest
9554 mkdir out
9555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9556
9557 lt_compiler_flag="-o out/conftest2.$ac_objext"
9558 # Insert the option either (1) after the last *FLAGS variable, or
9559 # (2) before a word containing "conftest.", or (3) at the end.
9560 # Note that $ac_compile itself does not contain backslashes and begins
9561 # with a dollar sign (not a hyphen), so the echo should work correctly.
9562 lt_compile=`echo "$ac_compile" | $SED \
9563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9565 -e 's:$: $lt_compiler_flag:'`
9566 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9567 (eval "$lt_compile" 2>out/conftest.err)
9568 ac_status=$?
9569 cat out/conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9572 then
9573 # The compiler can only warn and ignore the option if not recognized
9574 # So say no if there are warnings
9575 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9578 lt_cv_prog_compiler_c_o=yes
9579 fi
9580 fi
9581 chmod u+w . 2>&5
9582 $RM conftest*
9583 # SGI C++ compiler will create directory out/ii_files/ for
9584 # template instantiation
9585 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9586 $RM out/* && rmdir out
9587 cd ..
9588 $RM -r conftest
9589 $RM conftest*
9590
9591 fi
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9593 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9594
9595
9596
9597
9598 hard_links="nottested"
9599 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9600 # do not overwrite the value of need_locks provided by the user
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9602 $as_echo_n "checking if we can lock with hard links... " >&6; }
9603 hard_links=yes
9604 $RM conftest*
9605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9606 touch conftest.a
9607 ln conftest.a conftest.b 2>&5 || hard_links=no
9608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9610 $as_echo "$hard_links" >&6; }
9611 if test "$hard_links" = no; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9613 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9614 need_locks=warn
9615 fi
9616 else
9617 need_locks=no
9618 fi
9619
9620
9621
9622
9623
9624
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9626 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9627
9628 runpath_var=
9629 allow_undefined_flag=
9630 always_export_symbols=no
9631 archive_cmds=
9632 archive_expsym_cmds=
9633 compiler_needs_object=no
9634 enable_shared_with_static_runtimes=no
9635 export_dynamic_flag_spec=
9636 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9637 hardcode_automatic=no
9638 hardcode_direct=no
9639 hardcode_direct_absolute=no
9640 hardcode_libdir_flag_spec=
9641 hardcode_libdir_flag_spec_ld=
9642 hardcode_libdir_separator=
9643 hardcode_minus_L=no
9644 hardcode_shlibpath_var=unsupported
9645 inherit_rpath=no
9646 link_all_deplibs=unknown
9647 module_cmds=
9648 module_expsym_cmds=
9649 old_archive_from_new_cmds=
9650 old_archive_from_expsyms_cmds=
9651 thread_safe_flag_spec=
9652 whole_archive_flag_spec=
9653 # include_expsyms should be a list of space-separated symbols to be *always*
9654 # included in the symbol list
9655 include_expsyms=
9656 # exclude_expsyms can be an extended regexp of symbols to exclude
9657 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9658 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9659 # as well as any symbol that contains `d'.
9660 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9661 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9662 # platforms (ab)use it in PIC code, but their linkers get confused if
9663 # the symbol is explicitly referenced. Since portable code cannot
9664 # rely on this symbol name, it's probably fine to never include it in
9665 # preloaded symbol tables.
9666 # Exclude shared library initialization/finalization symbols.
9667 extract_expsyms_cmds=
9668
9669 case $host_os in
9670 cygwin* | mingw* | pw32* | cegcc*)
9671 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9672 # When not using gcc, we currently assume that we are using
9673 # Microsoft Visual C++.
9674 if test "$GCC" != yes; then
9675 with_gnu_ld=no
9676 fi
9677 ;;
9678 interix*)
9679 # we just hope/assume this is gcc and not c89 (= MSVC++)
9680 with_gnu_ld=yes
9681 ;;
9682 openbsd*)
9683 with_gnu_ld=no
9684 ;;
9685 esac
9686
9687 ld_shlibs=yes
9688
9689 # On some targets, GNU ld is compatible enough with the native linker
9690 # that we're better off using the native interface for both.
9691 lt_use_gnu_ld_interface=no
9692 if test "$with_gnu_ld" = yes; then
9693 case $host_os in
9694 aix*)
9695 # The AIX port of GNU ld has always aspired to compatibility
9696 # with the native linker. However, as the warning in the GNU ld
9697 # block says, versions before 2.19.5* couldn't really create working
9698 # shared libraries, regardless of the interface used.
9699 case `$LD -v 2>&1` in
9700 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9701 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9702 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9703 *)
9704 lt_use_gnu_ld_interface=yes
9705 ;;
9706 esac
9707 ;;
9708 *)
9709 lt_use_gnu_ld_interface=yes
9710 ;;
9711 esac
9712 fi
9713
9714 if test "$lt_use_gnu_ld_interface" = yes; then
9715 # If archive_cmds runs LD, not CC, wlarc should be empty
9716 wlarc='${wl}'
9717
9718 # Set some defaults for GNU ld with shared library support. These
9719 # are reset later if shared libraries are not supported. Putting them
9720 # here allows them to be overridden if necessary.
9721 runpath_var=LD_RUN_PATH
9722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9723 export_dynamic_flag_spec='${wl}--export-dynamic'
9724 # ancient GNU ld didn't support --whole-archive et. al.
9725 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9726 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9727 else
9728 whole_archive_flag_spec=
9729 fi
9730 supports_anon_versioning=no
9731 case `$LD -v 2>&1` in
9732 *GNU\ gold*) supports_anon_versioning=yes ;;
9733 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9734 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9735 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9736 *\ 2.11.*) ;; # other 2.11 versions
9737 *) supports_anon_versioning=yes ;;
9738 esac
9739
9740 # See if GNU ld supports shared libraries.
9741 case $host_os in
9742 aix[3-9]*)
9743 # On AIX/PPC, the GNU linker is very broken
9744 if test "$host_cpu" != ia64; then
9745 ld_shlibs=no
9746 cat <<_LT_EOF 1>&2
9747
9748 *** Warning: the GNU linker, at least up to release 2.19, is reported
9749 *** to be unable to reliably create shared libraries on AIX.
9750 *** Therefore, libtool is disabling shared libraries support. If you
9751 *** really care for shared libraries, you may want to install binutils
9752 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9753 *** You will then need to restart the configuration process.
9754
9755 _LT_EOF
9756 fi
9757 ;;
9758
9759 amigaos*)
9760 case $host_cpu in
9761 powerpc)
9762 # see comment about AmigaOS4 .so support
9763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9764 archive_expsym_cmds=''
9765 ;;
9766 m68k)
9767 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)'
9768 hardcode_libdir_flag_spec='-L$libdir'
9769 hardcode_minus_L=yes
9770 ;;
9771 esac
9772 ;;
9773
9774 beos*)
9775 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9776 allow_undefined_flag=unsupported
9777 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9778 # support --undefined. This deserves some investigation. FIXME
9779 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9780 else
9781 ld_shlibs=no
9782 fi
9783 ;;
9784
9785 cygwin* | mingw* | pw32* | cegcc*)
9786 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9787 # as there is no search path for DLLs.
9788 hardcode_libdir_flag_spec='-L$libdir'
9789 export_dynamic_flag_spec='${wl}--export-all-symbols'
9790 allow_undefined_flag=unsupported
9791 always_export_symbols=no
9792 enable_shared_with_static_runtimes=yes
9793 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9794
9795 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9797 # If the export-symbols file already is a .def file (1st line
9798 # is EXPORTS), use it as is; otherwise, prepend...
9799 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9800 cp $export_symbols $output_objdir/$soname.def;
9801 else
9802 echo EXPORTS > $output_objdir/$soname.def;
9803 cat $export_symbols >> $output_objdir/$soname.def;
9804 fi~
9805 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9806 else
9807 ld_shlibs=no
9808 fi
9809 ;;
9810
9811 haiku*)
9812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9813 link_all_deplibs=yes
9814 ;;
9815
9816 interix[3-9]*)
9817 hardcode_direct=no
9818 hardcode_shlibpath_var=no
9819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9820 export_dynamic_flag_spec='${wl}-E'
9821 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9822 # Instead, shared libraries are loaded at an image base (0x10000000 by
9823 # default) and relocated if they conflict, which is a slow very memory
9824 # consuming and fragmenting process. To avoid this, we pick a random,
9825 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9826 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9827 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9828 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'
9829 ;;
9830
9831 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9832 tmp_diet=no
9833 if test "$host_os" = linux-dietlibc; then
9834 case $cc_basename in
9835 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9836 esac
9837 fi
9838 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9839 && test "$tmp_diet" = no
9840 then
9841 tmp_addflag=' $pic_flag'
9842 tmp_sharedflag='-shared'
9843 case $cc_basename,$host_cpu in
9844 pgcc*) # Portland Group C compiler
9845 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'
9846 tmp_addflag=' $pic_flag'
9847 ;;
9848 pgf77* | pgf90* | pgf95* | pgfortran*)
9849 # Portland Group f77 and f90 compilers
9850 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'
9851 tmp_addflag=' $pic_flag -Mnomain' ;;
9852 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9853 tmp_addflag=' -i_dynamic' ;;
9854 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9855 tmp_addflag=' -i_dynamic -nofor_main' ;;
9856 ifc* | ifort*) # Intel Fortran compiler
9857 tmp_addflag=' -nofor_main' ;;
9858 lf95*) # Lahey Fortran 8.1
9859 whole_archive_flag_spec=
9860 tmp_sharedflag='--shared' ;;
9861 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9862 tmp_sharedflag='-qmkshrobj'
9863 tmp_addflag= ;;
9864 nvcc*) # Cuda Compiler Driver 2.2
9865 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'
9866 compiler_needs_object=yes
9867 ;;
9868 esac
9869 case `$CC -V 2>&1 | sed 5q` in
9870 *Sun\ C*) # Sun C 5.9
9871 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'
9872 compiler_needs_object=yes
9873 tmp_sharedflag='-G' ;;
9874 *Sun\ F*) # Sun Fortran 8.3
9875 tmp_sharedflag='-G' ;;
9876 esac
9877 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9878
9879 if test "x$supports_anon_versioning" = xyes; then
9880 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9881 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9882 echo "local: *; };" >> $output_objdir/$libname.ver~
9883 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9884 fi
9885
9886 case $cc_basename in
9887 xlf* | bgf* | bgxlf* | mpixlf*)
9888 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9889 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9890 hardcode_libdir_flag_spec=
9891 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9892 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9893 if test "x$supports_anon_versioning" = xyes; then
9894 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9895 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9896 echo "local: *; };" >> $output_objdir/$libname.ver~
9897 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9898 fi
9899 ;;
9900 esac
9901 else
9902 ld_shlibs=no
9903 fi
9904 ;;
9905
9906 netbsd*)
9907 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9908 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9909 wlarc=
9910 else
9911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9912 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9913 fi
9914 ;;
9915
9916 solaris*)
9917 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9918 ld_shlibs=no
9919 cat <<_LT_EOF 1>&2
9920
9921 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9922 *** create shared libraries on Solaris systems. Therefore, libtool
9923 *** is disabling shared libraries support. We urge you to upgrade GNU
9924 *** binutils to release 2.9.1 or newer. Another option is to modify
9925 *** your PATH or compiler configuration so that the native linker is
9926 *** used, and then restart.
9927
9928 _LT_EOF
9929 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9931 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9932 else
9933 ld_shlibs=no
9934 fi
9935 ;;
9936
9937 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9938 case `$LD -v 2>&1` in
9939 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9940 ld_shlibs=no
9941 cat <<_LT_EOF 1>&2
9942
9943 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9944 *** reliably create shared libraries on SCO systems. Therefore, libtool
9945 *** is disabling shared libraries support. We urge you to upgrade GNU
9946 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9947 *** your PATH or compiler configuration so that the native linker is
9948 *** used, and then restart.
9949
9950 _LT_EOF
9951 ;;
9952 *)
9953 # For security reasons, it is highly recommended that you always
9954 # use absolute paths for naming shared libraries, and exclude the
9955 # DT_RUNPATH tag from executables and libraries. But doing so
9956 # requires that you compile everything twice, which is a pain.
9957 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9960 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9961 else
9962 ld_shlibs=no
9963 fi
9964 ;;
9965 esac
9966 ;;
9967
9968 sunos4*)
9969 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9970 wlarc=
9971 hardcode_direct=yes
9972 hardcode_shlibpath_var=no
9973 ;;
9974
9975 *)
9976 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9978 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9979 else
9980 ld_shlibs=no
9981 fi
9982 ;;
9983 esac
9984
9985 if test "$ld_shlibs" = no; then
9986 runpath_var=
9987 hardcode_libdir_flag_spec=
9988 export_dynamic_flag_spec=
9989 whole_archive_flag_spec=
9990 fi
9991 else
9992 # PORTME fill in a description of your system's linker (not GNU ld)
9993 case $host_os in
9994 aix3*)
9995 allow_undefined_flag=unsupported
9996 always_export_symbols=yes
9997 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'
9998 # Note: this linker hardcodes the directories in LIBPATH if there
9999 # are no directories specified by -L.
10000 hardcode_minus_L=yes
10001 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10002 # Neither direct hardcoding nor static linking is supported with a
10003 # broken collect2.
10004 hardcode_direct=unsupported
10005 fi
10006 ;;
10007
10008 aix[4-9]*)
10009 if test "$host_cpu" = ia64; then
10010 # On IA64, the linker does run time linking by default, so we don't
10011 # have to do anything special.
10012 aix_use_runtimelinking=no
10013 exp_sym_flag='-Bexport'
10014 no_entry_flag=""
10015 else
10016 # If we're using GNU nm, then we don't want the "-C" option.
10017 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10018 # Also, AIX nm treats weak defined symbols like other global
10019 # defined symbols, whereas GNU nm marks them as "W".
10020 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10021 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'
10022 else
10023 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'
10024 fi
10025 aix_use_runtimelinking=no
10026
10027 # Test if we are trying to use run time linking or normal
10028 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10029 # need to do runtime linking.
10030 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10031 for ld_flag in $LDFLAGS; do
10032 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10033 aix_use_runtimelinking=yes
10034 break
10035 fi
10036 done
10037 ;;
10038 esac
10039
10040 exp_sym_flag='-bexport'
10041 no_entry_flag='-bnoentry'
10042 fi
10043
10044 # When large executables or shared objects are built, AIX ld can
10045 # have problems creating the table of contents. If linking a library
10046 # or program results in "error TOC overflow" add -mminimal-toc to
10047 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10048 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10049
10050 archive_cmds=''
10051 hardcode_direct=yes
10052 hardcode_direct_absolute=yes
10053 hardcode_libdir_separator=':'
10054 link_all_deplibs=yes
10055 file_list_spec='${wl}-f,'
10056
10057 if test "$GCC" = yes; then
10058 case $host_os in aix4.[012]|aix4.[012].*)
10059 # We only want to do this on AIX 4.2 and lower, the check
10060 # below for broken collect2 doesn't work under 4.3+
10061 collect2name=`${CC} -print-prog-name=collect2`
10062 if test -f "$collect2name" &&
10063 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10064 then
10065 # We have reworked collect2
10066 :
10067 else
10068 # We have old collect2
10069 hardcode_direct=unsupported
10070 # It fails to find uninstalled libraries when the uninstalled
10071 # path is not listed in the libpath. Setting hardcode_minus_L
10072 # to unsupported forces relinking
10073 hardcode_minus_L=yes
10074 hardcode_libdir_flag_spec='-L$libdir'
10075 hardcode_libdir_separator=
10076 fi
10077 ;;
10078 esac
10079 shared_flag='-shared'
10080 if test "$aix_use_runtimelinking" = yes; then
10081 shared_flag="$shared_flag "'${wl}-G'
10082 fi
10083 else
10084 # not using gcc
10085 if test "$host_cpu" = ia64; then
10086 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10087 # chokes on -Wl,-G. The following line is correct:
10088 shared_flag='-G'
10089 else
10090 if test "$aix_use_runtimelinking" = yes; then
10091 shared_flag='${wl}-G'
10092 else
10093 shared_flag='${wl}-bM:SRE'
10094 fi
10095 fi
10096 fi
10097
10098 export_dynamic_flag_spec='${wl}-bexpall'
10099 # It seems that -bexpall does not export symbols beginning with
10100 # underscore (_), so it is better to generate a list of symbols to export.
10101 always_export_symbols=yes
10102 if test "$aix_use_runtimelinking" = yes; then
10103 # Warning - without using the other runtime loading flags (-brtl),
10104 # -berok will link without error, but may produce a broken library.
10105 allow_undefined_flag='-berok'
10106 # Determine the default libpath from the value encoded in an
10107 # empty executable.
10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10110
10111 int
10112 main ()
10113 {
10114
10115 ;
10116 return 0;
10117 }
10118 _ACEOF
10119 if ac_fn_c_try_link "$LINENO"; then :
10120
10121 lt_aix_libpath_sed='
10122 /Import File Strings/,/^$/ {
10123 /^0/ {
10124 s/^0 *\(.*\)$/\1/
10125 p
10126 }
10127 }'
10128 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10129 # Check for a 64-bit object if we didn't find anything.
10130 if test -z "$aix_libpath"; then
10131 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10132 fi
10133 fi
10134 rm -f core conftest.err conftest.$ac_objext \
10135 conftest$ac_exeext conftest.$ac_ext
10136 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10137
10138 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10139 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"
10140 else
10141 if test "$host_cpu" = ia64; then
10142 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10143 allow_undefined_flag="-z nodefs"
10144 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"
10145 else
10146 # Determine the default libpath from the value encoded in an
10147 # empty executable.
10148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149 /* end confdefs.h. */
10150
10151 int
10152 main ()
10153 {
10154
10155 ;
10156 return 0;
10157 }
10158 _ACEOF
10159 if ac_fn_c_try_link "$LINENO"; then :
10160
10161 lt_aix_libpath_sed='
10162 /Import File Strings/,/^$/ {
10163 /^0/ {
10164 s/^0 *\(.*\)$/\1/
10165 p
10166 }
10167 }'
10168 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10169 # Check for a 64-bit object if we didn't find anything.
10170 if test -z "$aix_libpath"; then
10171 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10172 fi
10173 fi
10174 rm -f core conftest.err conftest.$ac_objext \
10175 conftest$ac_exeext conftest.$ac_ext
10176 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10177
10178 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10179 # Warning - without using the other run time loading flags,
10180 # -berok will link without error, but may produce a broken library.
10181 no_undefined_flag=' ${wl}-bernotok'
10182 allow_undefined_flag=' ${wl}-berok'
10183 if test "$with_gnu_ld" = yes; then
10184 # We only use this code for GNU lds that support --whole-archive.
10185 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10186 else
10187 # Exported symbols can be pulled into shared objects from archives
10188 whole_archive_flag_spec='$convenience'
10189 fi
10190 archive_cmds_need_lc=yes
10191 # This is similar to how AIX traditionally builds its shared libraries.
10192 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'
10193 fi
10194 fi
10195 ;;
10196
10197 amigaos*)
10198 case $host_cpu in
10199 powerpc)
10200 # see comment about AmigaOS4 .so support
10201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10202 archive_expsym_cmds=''
10203 ;;
10204 m68k)
10205 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)'
10206 hardcode_libdir_flag_spec='-L$libdir'
10207 hardcode_minus_L=yes
10208 ;;
10209 esac
10210 ;;
10211
10212 bsdi[45]*)
10213 export_dynamic_flag_spec=-rdynamic
10214 ;;
10215
10216 cygwin* | mingw* | pw32* | cegcc*)
10217 # When not using gcc, we currently assume that we are using
10218 # Microsoft Visual C++.
10219 # hardcode_libdir_flag_spec is actually meaningless, as there is
10220 # no search path for DLLs.
10221 hardcode_libdir_flag_spec=' '
10222 allow_undefined_flag=unsupported
10223 # Tell ltmain to make .lib files, not .a files.
10224 libext=lib
10225 # Tell ltmain to make .dll files, not .so files.
10226 shrext_cmds=".dll"
10227 # FIXME: Setting linknames here is a bad hack.
10228 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10229 # The linker will automatically build a .lib file if we build a DLL.
10230 old_archive_from_new_cmds='true'
10231 # FIXME: Should let the user specify the lib program.
10232 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10233 fix_srcfile_path='`cygpath -w "$srcfile"`'
10234 enable_shared_with_static_runtimes=yes
10235 ;;
10236
10237 darwin* | rhapsody*)
10238
10239
10240 archive_cmds_need_lc=no
10241 hardcode_direct=no
10242 hardcode_automatic=yes
10243 hardcode_shlibpath_var=unsupported
10244 if test "$lt_cv_ld_force_load" = "yes"; then
10245 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\"`'
10246 else
10247 whole_archive_flag_spec=''
10248 fi
10249 link_all_deplibs=yes
10250 allow_undefined_flag="$_lt_dar_allow_undefined"
10251 case $cc_basename in
10252 ifort*) _lt_dar_can_shared=yes ;;
10253 *) _lt_dar_can_shared=$GCC ;;
10254 esac
10255 if test "$_lt_dar_can_shared" = "yes"; then
10256 output_verbose_link_cmd=func_echo_all
10257 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10258 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10259 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}"
10260 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}"
10261
10262 else
10263 ld_shlibs=no
10264 fi
10265
10266 ;;
10267
10268 dgux*)
10269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10270 hardcode_libdir_flag_spec='-L$libdir'
10271 hardcode_shlibpath_var=no
10272 ;;
10273
10274 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10275 # support. Future versions do this automatically, but an explicit c++rt0.o
10276 # does not break anything, and helps significantly (at the cost of a little
10277 # extra space).
10278 freebsd2.2*)
10279 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10280 hardcode_libdir_flag_spec='-R$libdir'
10281 hardcode_direct=yes
10282 hardcode_shlibpath_var=no
10283 ;;
10284
10285 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10286 freebsd2.*)
10287 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10288 hardcode_direct=yes
10289 hardcode_minus_L=yes
10290 hardcode_shlibpath_var=no
10291 ;;
10292
10293 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10294 freebsd* | dragonfly*)
10295 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10296 hardcode_libdir_flag_spec='-R$libdir'
10297 hardcode_direct=yes
10298 hardcode_shlibpath_var=no
10299 ;;
10300
10301 hpux9*)
10302 if test "$GCC" = yes; then
10303 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'
10304 else
10305 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'
10306 fi
10307 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10308 hardcode_libdir_separator=:
10309 hardcode_direct=yes
10310
10311 # hardcode_minus_L: Not really in the search PATH,
10312 # but as the default location of the library.
10313 hardcode_minus_L=yes
10314 export_dynamic_flag_spec='${wl}-E'
10315 ;;
10316
10317 hpux10*)
10318 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10319 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10320 else
10321 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10322 fi
10323 if test "$with_gnu_ld" = no; then
10324 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10325 hardcode_libdir_flag_spec_ld='+b $libdir'
10326 hardcode_libdir_separator=:
10327 hardcode_direct=yes
10328 hardcode_direct_absolute=yes
10329 export_dynamic_flag_spec='${wl}-E'
10330 # hardcode_minus_L: Not really in the search PATH,
10331 # but as the default location of the library.
10332 hardcode_minus_L=yes
10333 fi
10334 ;;
10335
10336 hpux11*)
10337 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10338 case $host_cpu in
10339 hppa*64*)
10340 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10341 ;;
10342 ia64*)
10343 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10344 ;;
10345 *)
10346 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10347 ;;
10348 esac
10349 else
10350 case $host_cpu in
10351 hppa*64*)
10352 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10353 ;;
10354 ia64*)
10355 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10356 ;;
10357 *)
10358
10359 # Older versions of the 11.00 compiler do not understand -b yet
10360 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10362 $as_echo_n "checking if $CC understands -b... " >&6; }
10363 if ${lt_cv_prog_compiler__b+:} false; then :
10364 $as_echo_n "(cached) " >&6
10365 else
10366 lt_cv_prog_compiler__b=no
10367 save_LDFLAGS="$LDFLAGS"
10368 LDFLAGS="$LDFLAGS -b"
10369 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10370 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10371 # The linker can only warn and ignore the option if not recognized
10372 # So say no if there are warnings
10373 if test -s conftest.err; then
10374 # Append any errors to the config.log.
10375 cat conftest.err 1>&5
10376 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10378 if diff conftest.exp conftest.er2 >/dev/null; then
10379 lt_cv_prog_compiler__b=yes
10380 fi
10381 else
10382 lt_cv_prog_compiler__b=yes
10383 fi
10384 fi
10385 $RM -r conftest*
10386 LDFLAGS="$save_LDFLAGS"
10387
10388 fi
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10390 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10391
10392 if test x"$lt_cv_prog_compiler__b" = xyes; then
10393 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10394 else
10395 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10396 fi
10397
10398 ;;
10399 esac
10400 fi
10401 if test "$with_gnu_ld" = no; then
10402 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10403 hardcode_libdir_separator=:
10404
10405 case $host_cpu in
10406 hppa*64*|ia64*)
10407 hardcode_direct=no
10408 hardcode_shlibpath_var=no
10409 ;;
10410 *)
10411 hardcode_direct=yes
10412 hardcode_direct_absolute=yes
10413 export_dynamic_flag_spec='${wl}-E'
10414
10415 # hardcode_minus_L: Not really in the search PATH,
10416 # but as the default location of the library.
10417 hardcode_minus_L=yes
10418 ;;
10419 esac
10420 fi
10421 ;;
10422
10423 irix5* | irix6* | nonstopux*)
10424 if test "$GCC" = yes; then
10425 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'
10426 # Try to use the -exported_symbol ld option, if it does not
10427 # work, assume that -exports_file does not work either and
10428 # implicitly export all symbols.
10429 save_LDFLAGS="$LDFLAGS"
10430 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10433 int foo(void) {}
10434 _ACEOF
10435 if ac_fn_c_try_link "$LINENO"; then :
10436 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'
10437
10438 fi
10439 rm -f core conftest.err conftest.$ac_objext \
10440 conftest$ac_exeext conftest.$ac_ext
10441 LDFLAGS="$save_LDFLAGS"
10442 else
10443 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'
10444 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'
10445 fi
10446 archive_cmds_need_lc='no'
10447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10448 hardcode_libdir_separator=:
10449 inherit_rpath=yes
10450 link_all_deplibs=yes
10451 ;;
10452
10453 netbsd*)
10454 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10456 else
10457 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10458 fi
10459 hardcode_libdir_flag_spec='-R$libdir'
10460 hardcode_direct=yes
10461 hardcode_shlibpath_var=no
10462 ;;
10463
10464 newsos6)
10465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10466 hardcode_direct=yes
10467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10468 hardcode_libdir_separator=:
10469 hardcode_shlibpath_var=no
10470 ;;
10471
10472 *nto* | *qnx*)
10473 ;;
10474
10475 openbsd*)
10476 if test -f /usr/libexec/ld.so; then
10477 hardcode_direct=yes
10478 hardcode_shlibpath_var=no
10479 hardcode_direct_absolute=yes
10480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10481 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10482 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10483 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10484 export_dynamic_flag_spec='${wl}-E'
10485 else
10486 case $host_os in
10487 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10489 hardcode_libdir_flag_spec='-R$libdir'
10490 ;;
10491 *)
10492 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10493 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10494 ;;
10495 esac
10496 fi
10497 else
10498 ld_shlibs=no
10499 fi
10500 ;;
10501
10502 os2*)
10503 hardcode_libdir_flag_spec='-L$libdir'
10504 hardcode_minus_L=yes
10505 allow_undefined_flag=unsupported
10506 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'
10507 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10508 ;;
10509
10510 osf3*)
10511 if test "$GCC" = yes; then
10512 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10513 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'
10514 else
10515 allow_undefined_flag=' -expect_unresolved \*'
10516 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'
10517 fi
10518 archive_cmds_need_lc='no'
10519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10520 hardcode_libdir_separator=:
10521 ;;
10522
10523 osf4* | osf5*) # as osf3* with the addition of -msym flag
10524 if test "$GCC" = yes; then
10525 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10526 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'
10527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10528 else
10529 allow_undefined_flag=' -expect_unresolved \*'
10530 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'
10531 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~
10532 $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'
10533
10534 # Both c and cxx compiler support -rpath directly
10535 hardcode_libdir_flag_spec='-rpath $libdir'
10536 fi
10537 archive_cmds_need_lc='no'
10538 hardcode_libdir_separator=:
10539 ;;
10540
10541 solaris*)
10542 no_undefined_flag=' -z defs'
10543 if test "$GCC" = yes; then
10544 wlarc='${wl}'
10545 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10546 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10547 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10548 else
10549 case `$CC -V 2>&1` in
10550 *"Compilers 5.0"*)
10551 wlarc=''
10552 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10553 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10554 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10555 ;;
10556 *)
10557 wlarc='${wl}'
10558 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10559 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10560 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10561 ;;
10562 esac
10563 fi
10564 hardcode_libdir_flag_spec='-R$libdir'
10565 hardcode_shlibpath_var=no
10566 case $host_os in
10567 solaris2.[0-5] | solaris2.[0-5].*) ;;
10568 *)
10569 # The compiler driver will combine and reorder linker options,
10570 # but understands `-z linker_flag'. GCC discards it without `$wl',
10571 # but is careful enough not to reorder.
10572 # Supported since Solaris 2.6 (maybe 2.5.1?)
10573 if test "$GCC" = yes; then
10574 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10575 else
10576 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10577 fi
10578 ;;
10579 esac
10580 link_all_deplibs=yes
10581 ;;
10582
10583 sunos4*)
10584 if test "x$host_vendor" = xsequent; then
10585 # Use $CC to link under sequent, because it throws in some extra .o
10586 # files that make .init and .fini sections work.
10587 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10588 else
10589 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10590 fi
10591 hardcode_libdir_flag_spec='-L$libdir'
10592 hardcode_direct=yes
10593 hardcode_minus_L=yes
10594 hardcode_shlibpath_var=no
10595 ;;
10596
10597 sysv4)
10598 case $host_vendor in
10599 sni)
10600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10601 hardcode_direct=yes # is this really true???
10602 ;;
10603 siemens)
10604 ## LD is ld it makes a PLAMLIB
10605 ## CC just makes a GrossModule.
10606 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10607 reload_cmds='$CC -r -o $output$reload_objs'
10608 hardcode_direct=no
10609 ;;
10610 motorola)
10611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10612 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10613 ;;
10614 esac
10615 runpath_var='LD_RUN_PATH'
10616 hardcode_shlibpath_var=no
10617 ;;
10618
10619 sysv4.3*)
10620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10621 hardcode_shlibpath_var=no
10622 export_dynamic_flag_spec='-Bexport'
10623 ;;
10624
10625 sysv4*MP*)
10626 if test -d /usr/nec; then
10627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10628 hardcode_shlibpath_var=no
10629 runpath_var=LD_RUN_PATH
10630 hardcode_runpath_var=yes
10631 ld_shlibs=yes
10632 fi
10633 ;;
10634
10635 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10636 no_undefined_flag='${wl}-z,text'
10637 archive_cmds_need_lc=no
10638 hardcode_shlibpath_var=no
10639 runpath_var='LD_RUN_PATH'
10640
10641 if test "$GCC" = yes; then
10642 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10643 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10644 else
10645 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10647 fi
10648 ;;
10649
10650 sysv5* | sco3.2v5* | sco5v6*)
10651 # Note: We can NOT use -z defs as we might desire, because we do not
10652 # link with -lc, and that would cause any symbols used from libc to
10653 # always be unresolved, which means just about no library would
10654 # ever link correctly. If we're not using GNU ld we use -z text
10655 # though, which does catch some bad symbols but isn't as heavy-handed
10656 # as -z defs.
10657 no_undefined_flag='${wl}-z,text'
10658 allow_undefined_flag='${wl}-z,nodefs'
10659 archive_cmds_need_lc=no
10660 hardcode_shlibpath_var=no
10661 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10662 hardcode_libdir_separator=':'
10663 link_all_deplibs=yes
10664 export_dynamic_flag_spec='${wl}-Bexport'
10665 runpath_var='LD_RUN_PATH'
10666
10667 if test "$GCC" = yes; then
10668 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10669 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10670 else
10671 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10673 fi
10674 ;;
10675
10676 uts4*)
10677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10678 hardcode_libdir_flag_spec='-L$libdir'
10679 hardcode_shlibpath_var=no
10680 ;;
10681
10682 *)
10683 ld_shlibs=no
10684 ;;
10685 esac
10686
10687 if test x$host_vendor = xsni; then
10688 case $host in
10689 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10690 export_dynamic_flag_spec='${wl}-Blargedynsym'
10691 ;;
10692 esac
10693 fi
10694 fi
10695
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10697 $as_echo "$ld_shlibs" >&6; }
10698 test "$ld_shlibs" = no && can_build_shared=no
10699
10700 with_gnu_ld=$with_gnu_ld
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716 #
10717 # Do we need to explicitly link libc?
10718 #
10719 case "x$archive_cmds_need_lc" in
10720 x|xyes)
10721 # Assume -lc should be added
10722 archive_cmds_need_lc=yes
10723
10724 if test "$enable_shared" = yes && test "$GCC" = yes; then
10725 case $archive_cmds in
10726 *'~'*)
10727 # FIXME: we may have to deal with multi-command sequences.
10728 ;;
10729 '$CC '*)
10730 # Test whether the compiler implicitly links with -lc since on some
10731 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10732 # to ld, don't add -lc before -lgcc.
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10734 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10735 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10736 $as_echo_n "(cached) " >&6
10737 else
10738 $RM conftest*
10739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10740
10741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10742 (eval $ac_compile) 2>&5
10743 ac_status=$?
10744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10745 test $ac_status = 0; } 2>conftest.err; then
10746 soname=conftest
10747 lib=conftest
10748 libobjs=conftest.$ac_objext
10749 deplibs=
10750 wl=$lt_prog_compiler_wl
10751 pic_flag=$lt_prog_compiler_pic
10752 compiler_flags=-v
10753 linker_flags=-v
10754 verstring=
10755 output_objdir=.
10756 libname=conftest
10757 lt_save_allow_undefined_flag=$allow_undefined_flag
10758 allow_undefined_flag=
10759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10760 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10761 ac_status=$?
10762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10763 test $ac_status = 0; }
10764 then
10765 lt_cv_archive_cmds_need_lc=no
10766 else
10767 lt_cv_archive_cmds_need_lc=yes
10768 fi
10769 allow_undefined_flag=$lt_save_allow_undefined_flag
10770 else
10771 cat conftest.err 1>&5
10772 fi
10773 $RM conftest*
10774
10775 fi
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10777 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10778 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10779 ;;
10780 esac
10781 fi
10782 ;;
10783 esac
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10942 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10943
10944 if test "$GCC" = yes; then
10945 case $host_os in
10946 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10947 *) lt_awk_arg="/^libraries:/" ;;
10948 esac
10949 case $host_os in
10950 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10951 *) lt_sed_strip_eq="s,=/,/,g" ;;
10952 esac
10953 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10954 case $lt_search_path_spec in
10955 *\;*)
10956 # if the path contains ";" then we assume it to be the separator
10957 # otherwise default to the standard path separator (i.e. ":") - it is
10958 # assumed that no part of a normal pathname contains ";" but that should
10959 # okay in the real world where ";" in dirpaths is itself problematic.
10960 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10961 ;;
10962 *)
10963 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10964 ;;
10965 esac
10966 # Ok, now we have the path, separated by spaces, we can step through it
10967 # and add multilib dir if necessary.
10968 lt_tmp_lt_search_path_spec=
10969 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10970 for lt_sys_path in $lt_search_path_spec; do
10971 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10972 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10973 else
10974 test -d "$lt_sys_path" && \
10975 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10976 fi
10977 done
10978 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10979 BEGIN {RS=" "; FS="/|\n";} {
10980 lt_foo="";
10981 lt_count=0;
10982 for (lt_i = NF; lt_i > 0; lt_i--) {
10983 if ($lt_i != "" && $lt_i != ".") {
10984 if ($lt_i == "..") {
10985 lt_count++;
10986 } else {
10987 if (lt_count == 0) {
10988 lt_foo="/" $lt_i lt_foo;
10989 } else {
10990 lt_count--;
10991 }
10992 }
10993 }
10994 }
10995 if (lt_foo != "") { lt_freq[lt_foo]++; }
10996 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10997 }'`
10998 # AWK program above erroneously prepends '/' to C:/dos/paths
10999 # for these hosts.
11000 case $host_os in
11001 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11002 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11003 esac
11004 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11005 else
11006 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11007 fi
11008 library_names_spec=
11009 libname_spec='lib$name'
11010 soname_spec=
11011 shrext_cmds=".so"
11012 postinstall_cmds=
11013 postuninstall_cmds=
11014 finish_cmds=
11015 finish_eval=
11016 shlibpath_var=
11017 shlibpath_overrides_runpath=unknown
11018 version_type=none
11019 dynamic_linker="$host_os ld.so"
11020 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11021 need_lib_prefix=unknown
11022 hardcode_into_libs=no
11023
11024 # when you set need_version to no, make sure it does not cause -set_version
11025 # flags to be left without arguments
11026 need_version=unknown
11027
11028 case $host_os in
11029 aix3*)
11030 version_type=linux
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11032 shlibpath_var=LIBPATH
11033
11034 # AIX 3 has no versioning support, so we append a major version to the name.
11035 soname_spec='${libname}${release}${shared_ext}$major'
11036 ;;
11037
11038 aix[4-9]*)
11039 version_type=linux
11040 need_lib_prefix=no
11041 need_version=no
11042 hardcode_into_libs=yes
11043 if test "$host_cpu" = ia64; then
11044 # AIX 5 supports IA64
11045 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 else
11048 # With GCC up to 2.95.x, collect2 would create an import file
11049 # for dependence libraries. The import file would start with
11050 # the line `#! .'. This would cause the generated library to
11051 # depend on `.', always an invalid library. This was fixed in
11052 # development snapshots of GCC prior to 3.0.
11053 case $host_os in
11054 aix4 | aix4.[01] | aix4.[01].*)
11055 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11056 echo ' yes '
11057 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11058 :
11059 else
11060 can_build_shared=no
11061 fi
11062 ;;
11063 esac
11064 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11065 # soname into executable. Probably we can add versioning support to
11066 # collect2, so additional links can be useful in future.
11067 if test "$aix_use_runtimelinking" = yes; then
11068 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11069 # instead of lib<name>.a to let people know that these are not
11070 # typical AIX shared libraries.
11071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11072 else
11073 # We preserve .a as extension for shared libraries through AIX4.2
11074 # and later when we are not doing run time linking.
11075 library_names_spec='${libname}${release}.a $libname.a'
11076 soname_spec='${libname}${release}${shared_ext}$major'
11077 fi
11078 shlibpath_var=LIBPATH
11079 fi
11080 ;;
11081
11082 amigaos*)
11083 case $host_cpu in
11084 powerpc)
11085 # Since July 2007 AmigaOS4 officially supports .so libraries.
11086 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11088 ;;
11089 m68k)
11090 library_names_spec='$libname.ixlibrary $libname.a'
11091 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11092 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'
11093 ;;
11094 esac
11095 ;;
11096
11097 beos*)
11098 library_names_spec='${libname}${shared_ext}'
11099 dynamic_linker="$host_os ld.so"
11100 shlibpath_var=LIBRARY_PATH
11101 ;;
11102
11103 bsdi[45]*)
11104 version_type=linux
11105 need_version=no
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11109 shlibpath_var=LD_LIBRARY_PATH
11110 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11111 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11112 # the default ld.so.conf also contains /usr/contrib/lib and
11113 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11114 # libtool to hard-code these into programs
11115 ;;
11116
11117 cygwin* | mingw* | pw32* | cegcc*)
11118 version_type=windows
11119 shrext_cmds=".dll"
11120 need_version=no
11121 need_lib_prefix=no
11122
11123 case $GCC,$host_os in
11124 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11125 library_names_spec='$libname.dll.a'
11126 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11127 postinstall_cmds='base_file=`basename \${file}`~
11128 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11129 dldir=$destdir/`dirname \$dlpath`~
11130 test -d \$dldir || mkdir -p \$dldir~
11131 $install_prog $dir/$dlname \$dldir/$dlname~
11132 chmod a+x \$dldir/$dlname~
11133 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11134 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11135 fi'
11136 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11137 dlpath=$dir/\$dldll~
11138 $RM \$dlpath'
11139 shlibpath_overrides_runpath=yes
11140
11141 case $host_os in
11142 cygwin*)
11143 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11144 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11145
11146 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11147 ;;
11148 mingw* | cegcc*)
11149 # MinGW DLLs use traditional 'lib' prefix
11150 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11151 ;;
11152 pw32*)
11153 # pw32 DLLs use 'pw' prefix rather than 'lib'
11154 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11155 ;;
11156 esac
11157 ;;
11158
11159 *)
11160 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11161 ;;
11162 esac
11163 dynamic_linker='Win32 ld.exe'
11164 # FIXME: first we should search . and the directory the executable is in
11165 shlibpath_var=PATH
11166 ;;
11167
11168 darwin* | rhapsody*)
11169 dynamic_linker="$host_os dyld"
11170 version_type=darwin
11171 need_lib_prefix=no
11172 need_version=no
11173 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11174 soname_spec='${libname}${release}${major}$shared_ext'
11175 shlibpath_overrides_runpath=yes
11176 shlibpath_var=DYLD_LIBRARY_PATH
11177 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11178
11179 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11180 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11181 ;;
11182
11183 dgux*)
11184 version_type=linux
11185 need_lib_prefix=no
11186 need_version=no
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11188 soname_spec='${libname}${release}${shared_ext}$major'
11189 shlibpath_var=LD_LIBRARY_PATH
11190 ;;
11191
11192 freebsd* | dragonfly*)
11193 # DragonFly does not have aout. When/if they implement a new
11194 # versioning mechanism, adjust this.
11195 if test -x /usr/bin/objformat; then
11196 objformat=`/usr/bin/objformat`
11197 else
11198 case $host_os in
11199 freebsd[23].*) objformat=aout ;;
11200 *) objformat=elf ;;
11201 esac
11202 fi
11203 version_type=freebsd-$objformat
11204 case $version_type in
11205 freebsd-elf*)
11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11207 need_version=no
11208 need_lib_prefix=no
11209 ;;
11210 freebsd-*)
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11212 need_version=yes
11213 ;;
11214 esac
11215 shlibpath_var=LD_LIBRARY_PATH
11216 case $host_os in
11217 freebsd2.*)
11218 shlibpath_overrides_runpath=yes
11219 ;;
11220 freebsd3.[01]* | freebsdelf3.[01]*)
11221 shlibpath_overrides_runpath=yes
11222 hardcode_into_libs=yes
11223 ;;
11224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11226 shlibpath_overrides_runpath=no
11227 hardcode_into_libs=yes
11228 ;;
11229 *) # from 4.6 on, and DragonFly
11230 shlibpath_overrides_runpath=yes
11231 hardcode_into_libs=yes
11232 ;;
11233 esac
11234 ;;
11235
11236 haiku*)
11237 version_type=linux
11238 need_lib_prefix=no
11239 need_version=no
11240 dynamic_linker="$host_os runtime_loader"
11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11242 soname_spec='${libname}${release}${shared_ext}$major'
11243 shlibpath_var=LIBRARY_PATH
11244 shlibpath_overrides_runpath=yes
11245 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11246 hardcode_into_libs=yes
11247 ;;
11248
11249 hpux9* | hpux10* | hpux11*)
11250 # Give a soname corresponding to the major version so that dld.sl refuses to
11251 # link against other versions.
11252 version_type=sunos
11253 need_lib_prefix=no
11254 need_version=no
11255 case $host_cpu in
11256 ia64*)
11257 shrext_cmds='.so'
11258 hardcode_into_libs=yes
11259 dynamic_linker="$host_os dld.so"
11260 shlibpath_var=LD_LIBRARY_PATH
11261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11263 soname_spec='${libname}${release}${shared_ext}$major'
11264 if test "X$HPUX_IA64_MODE" = X32; then
11265 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11266 else
11267 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11268 fi
11269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11270 ;;
11271 hppa*64*)
11272 shrext_cmds='.sl'
11273 hardcode_into_libs=yes
11274 dynamic_linker="$host_os dld.sl"
11275 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278 soname_spec='${libname}${release}${shared_ext}$major'
11279 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11281 ;;
11282 *)
11283 shrext_cmds='.sl'
11284 dynamic_linker="$host_os dld.sl"
11285 shlibpath_var=SHLIB_PATH
11286 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11288 soname_spec='${libname}${release}${shared_ext}$major'
11289 ;;
11290 esac
11291 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11292 postinstall_cmds='chmod 555 $lib'
11293 # or fails outright, so override atomically:
11294 install_override_mode=555
11295 ;;
11296
11297 interix[3-9]*)
11298 version_type=linux
11299 need_lib_prefix=no
11300 need_version=no
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11304 shlibpath_var=LD_LIBRARY_PATH
11305 shlibpath_overrides_runpath=no
11306 hardcode_into_libs=yes
11307 ;;
11308
11309 irix5* | irix6* | nonstopux*)
11310 case $host_os in
11311 nonstopux*) version_type=nonstopux ;;
11312 *)
11313 if test "$lt_cv_prog_gnu_ld" = yes; then
11314 version_type=linux
11315 else
11316 version_type=irix
11317 fi ;;
11318 esac
11319 need_lib_prefix=no
11320 need_version=no
11321 soname_spec='${libname}${release}${shared_ext}$major'
11322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11323 case $host_os in
11324 irix5* | nonstopux*)
11325 libsuff= shlibsuff=
11326 ;;
11327 *)
11328 case $LD in # libtool.m4 will add one of these switches to LD
11329 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11330 libsuff= shlibsuff= libmagic=32-bit;;
11331 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11332 libsuff=32 shlibsuff=N32 libmagic=N32;;
11333 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11334 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11335 *) libsuff= shlibsuff= libmagic=never-match;;
11336 esac
11337 ;;
11338 esac
11339 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11340 shlibpath_overrides_runpath=no
11341 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11342 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11343 hardcode_into_libs=yes
11344 ;;
11345
11346 # No shared lib support for Linux oldld, aout, or coff.
11347 linux*oldld* | linux*aout* | linux*coff*)
11348 dynamic_linker=no
11349 ;;
11350
11351 # This must be Linux ELF.
11352 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11353 version_type=linux
11354 need_lib_prefix=no
11355 need_version=no
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357 soname_spec='${libname}${release}${shared_ext}$major'
11358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11359 shlibpath_var=LD_LIBRARY_PATH
11360 shlibpath_overrides_runpath=no
11361
11362 # Some binutils ld are patched to set DT_RUNPATH
11363 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11364 $as_echo_n "(cached) " >&6
11365 else
11366 lt_cv_shlibpath_overrides_runpath=no
11367 save_LDFLAGS=$LDFLAGS
11368 save_libdir=$libdir
11369 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11370 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h. */
11373
11374 int
11375 main ()
11376 {
11377
11378 ;
11379 return 0;
11380 }
11381 _ACEOF
11382 if ac_fn_c_try_link "$LINENO"; then :
11383 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11384 lt_cv_shlibpath_overrides_runpath=yes
11385 fi
11386 fi
11387 rm -f core conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11389 LDFLAGS=$save_LDFLAGS
11390 libdir=$save_libdir
11391
11392 fi
11393
11394 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11395
11396 # This implies no fast_install, which is unacceptable.
11397 # Some rework will be needed to allow for fast_install
11398 # before this can be enabled.
11399 hardcode_into_libs=yes
11400
11401 # Append ld.so.conf contents to the search path
11402 if test -f /etc/ld.so.conf; then
11403 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' ' '`
11404 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11405 fi
11406
11407 # We used to test for /lib/ld.so.1 and disable shared libraries on
11408 # powerpc, because MkLinux only supported shared libraries with the
11409 # GNU dynamic linker. Since this was broken with cross compilers,
11410 # most powerpc-linux boxes support dynamic linking these days and
11411 # people can always --disable-shared, the test was removed, and we
11412 # assume the GNU/Linux dynamic linker is in use.
11413 dynamic_linker='GNU/Linux ld.so'
11414 ;;
11415
11416 netbsd*)
11417 version_type=sunos
11418 need_lib_prefix=no
11419 need_version=no
11420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11423 dynamic_linker='NetBSD (a.out) ld.so'
11424 else
11425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11426 soname_spec='${libname}${release}${shared_ext}$major'
11427 dynamic_linker='NetBSD ld.elf_so'
11428 fi
11429 shlibpath_var=LD_LIBRARY_PATH
11430 shlibpath_overrides_runpath=yes
11431 hardcode_into_libs=yes
11432 ;;
11433
11434 newsos6)
11435 version_type=linux
11436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11437 shlibpath_var=LD_LIBRARY_PATH
11438 shlibpath_overrides_runpath=yes
11439 ;;
11440
11441 *nto* | *qnx*)
11442 version_type=qnx
11443 need_lib_prefix=no
11444 need_version=no
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 shlibpath_var=LD_LIBRARY_PATH
11448 shlibpath_overrides_runpath=no
11449 hardcode_into_libs=yes
11450 dynamic_linker='ldqnx.so'
11451 ;;
11452
11453 openbsd*)
11454 version_type=sunos
11455 sys_lib_dlsearch_path_spec="/usr/lib"
11456 need_lib_prefix=no
11457 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11458 case $host_os in
11459 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11460 *) need_version=no ;;
11461 esac
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11466 case $host_os in
11467 openbsd2.[89] | openbsd2.[89].*)
11468 shlibpath_overrides_runpath=no
11469 ;;
11470 *)
11471 shlibpath_overrides_runpath=yes
11472 ;;
11473 esac
11474 else
11475 shlibpath_overrides_runpath=yes
11476 fi
11477 ;;
11478
11479 os2*)
11480 libname_spec='$name'
11481 shrext_cmds=".dll"
11482 need_lib_prefix=no
11483 library_names_spec='$libname${shared_ext} $libname.a'
11484 dynamic_linker='OS/2 ld.exe'
11485 shlibpath_var=LIBPATH
11486 ;;
11487
11488 osf3* | osf4* | osf5*)
11489 version_type=osf
11490 need_lib_prefix=no
11491 need_version=no
11492 soname_spec='${libname}${release}${shared_ext}$major'
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11494 shlibpath_var=LD_LIBRARY_PATH
11495 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11496 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11497 ;;
11498
11499 rdos*)
11500 dynamic_linker=no
11501 ;;
11502
11503 solaris*)
11504 version_type=linux
11505 need_lib_prefix=no
11506 need_version=no
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508 soname_spec='${libname}${release}${shared_ext}$major'
11509 shlibpath_var=LD_LIBRARY_PATH
11510 shlibpath_overrides_runpath=yes
11511 hardcode_into_libs=yes
11512 # ldd complains unless libraries are executable
11513 postinstall_cmds='chmod +x $lib'
11514 ;;
11515
11516 sunos4*)
11517 version_type=sunos
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11519 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11520 shlibpath_var=LD_LIBRARY_PATH
11521 shlibpath_overrides_runpath=yes
11522 if test "$with_gnu_ld" = yes; then
11523 need_lib_prefix=no
11524 fi
11525 need_version=yes
11526 ;;
11527
11528 sysv4 | sysv4.3*)
11529 version_type=linux
11530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11531 soname_spec='${libname}${release}${shared_ext}$major'
11532 shlibpath_var=LD_LIBRARY_PATH
11533 case $host_vendor in
11534 sni)
11535 shlibpath_overrides_runpath=no
11536 need_lib_prefix=no
11537 runpath_var=LD_RUN_PATH
11538 ;;
11539 siemens)
11540 need_lib_prefix=no
11541 ;;
11542 motorola)
11543 need_lib_prefix=no
11544 need_version=no
11545 shlibpath_overrides_runpath=no
11546 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11547 ;;
11548 esac
11549 ;;
11550
11551 sysv4*MP*)
11552 if test -d /usr/nec ;then
11553 version_type=linux
11554 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11555 soname_spec='$libname${shared_ext}.$major'
11556 shlibpath_var=LD_LIBRARY_PATH
11557 fi
11558 ;;
11559
11560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11561 version_type=freebsd-elf
11562 need_lib_prefix=no
11563 need_version=no
11564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11565 soname_spec='${libname}${release}${shared_ext}$major'
11566 shlibpath_var=LD_LIBRARY_PATH
11567 shlibpath_overrides_runpath=yes
11568 hardcode_into_libs=yes
11569 if test "$with_gnu_ld" = yes; then
11570 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11571 else
11572 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11573 case $host_os in
11574 sco3.2v5*)
11575 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11576 ;;
11577 esac
11578 fi
11579 sys_lib_dlsearch_path_spec='/usr/lib'
11580 ;;
11581
11582 tpf*)
11583 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11584 version_type=linux
11585 need_lib_prefix=no
11586 need_version=no
11587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11588 shlibpath_var=LD_LIBRARY_PATH
11589 shlibpath_overrides_runpath=no
11590 hardcode_into_libs=yes
11591 ;;
11592
11593 uts4*)
11594 version_type=linux
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11596 soname_spec='${libname}${release}${shared_ext}$major'
11597 shlibpath_var=LD_LIBRARY_PATH
11598 ;;
11599
11600 *)
11601 dynamic_linker=no
11602 ;;
11603 esac
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11605 $as_echo "$dynamic_linker" >&6; }
11606 test "$dynamic_linker" = no && can_build_shared=no
11607
11608 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11609 if test "$GCC" = yes; then
11610 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11611 fi
11612
11613 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11614 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11615 fi
11616 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11617 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11618 fi
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11712 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11713 hardcode_action=
11714 if test -n "$hardcode_libdir_flag_spec" ||
11715 test -n "$runpath_var" ||
11716 test "X$hardcode_automatic" = "Xyes" ; then
11717
11718 # We can hardcode non-existent directories.
11719 if test "$hardcode_direct" != no &&
11720 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11721 # have to relink, otherwise we might link with an installed library
11722 # when we should be linking with a yet-to-be-installed one
11723 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11724 test "$hardcode_minus_L" != no; then
11725 # Linking always hardcodes the temporary library directory.
11726 hardcode_action=relink
11727 else
11728 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11729 hardcode_action=immediate
11730 fi
11731 else
11732 # We cannot hardcode anything, or else we can only hardcode existing
11733 # directories.
11734 hardcode_action=unsupported
11735 fi
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11737 $as_echo "$hardcode_action" >&6; }
11738
11739 if test "$hardcode_action" = relink ||
11740 test "$inherit_rpath" = yes; then
11741 # Fast installation is not supported
11742 enable_fast_install=no
11743 elif test "$shlibpath_overrides_runpath" = yes ||
11744 test "$enable_shared" = no; then
11745 # Fast installation is not necessary
11746 enable_fast_install=needless
11747 fi
11748
11749
11750
11751
11752
11753
11754 if test "x$enable_dlopen" != xyes; then
11755 enable_dlopen=unknown
11756 enable_dlopen_self=unknown
11757 enable_dlopen_self_static=unknown
11758 else
11759 lt_cv_dlopen=no
11760 lt_cv_dlopen_libs=
11761
11762 case $host_os in
11763 beos*)
11764 lt_cv_dlopen="load_add_on"
11765 lt_cv_dlopen_libs=
11766 lt_cv_dlopen_self=yes
11767 ;;
11768
11769 mingw* | pw32* | cegcc*)
11770 lt_cv_dlopen="LoadLibrary"
11771 lt_cv_dlopen_libs=
11772 ;;
11773
11774 cygwin*)
11775 lt_cv_dlopen="dlopen"
11776 lt_cv_dlopen_libs=
11777 ;;
11778
11779 darwin*)
11780 # if libdl is installed we need to link against it
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11782 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11783 if ${ac_cv_lib_dl_dlopen+:} false; then :
11784 $as_echo_n "(cached) " >&6
11785 else
11786 ac_check_lib_save_LIBS=$LIBS
11787 LIBS="-ldl $LIBS"
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11790
11791 /* Override any GCC internal prototype to avoid an error.
11792 Use char because int might match the return type of a GCC
11793 builtin and then its argument prototype would still apply. */
11794 #ifdef __cplusplus
11795 extern "C"
11796 #endif
11797 char dlopen ();
11798 int
11799 main ()
11800 {
11801 return dlopen ();
11802 ;
11803 return 0;
11804 }
11805 _ACEOF
11806 if ac_fn_c_try_link "$LINENO"; then :
11807 ac_cv_lib_dl_dlopen=yes
11808 else
11809 ac_cv_lib_dl_dlopen=no
11810 fi
11811 rm -f core conftest.err conftest.$ac_objext \
11812 conftest$ac_exeext conftest.$ac_ext
11813 LIBS=$ac_check_lib_save_LIBS
11814 fi
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11816 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11817 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11818 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11819 else
11820
11821 lt_cv_dlopen="dyld"
11822 lt_cv_dlopen_libs=
11823 lt_cv_dlopen_self=yes
11824
11825 fi
11826
11827 ;;
11828
11829 *)
11830 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11831 if test "x$ac_cv_func_shl_load" = xyes; then :
11832 lt_cv_dlopen="shl_load"
11833 else
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11835 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11836 if ${ac_cv_lib_dld_shl_load+:} false; then :
11837 $as_echo_n "(cached) " >&6
11838 else
11839 ac_check_lib_save_LIBS=$LIBS
11840 LIBS="-ldld $LIBS"
11841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11843
11844 /* Override any GCC internal prototype to avoid an error.
11845 Use char because int might match the return type of a GCC
11846 builtin and then its argument prototype would still apply. */
11847 #ifdef __cplusplus
11848 extern "C"
11849 #endif
11850 char shl_load ();
11851 int
11852 main ()
11853 {
11854 return shl_load ();
11855 ;
11856 return 0;
11857 }
11858 _ACEOF
11859 if ac_fn_c_try_link "$LINENO"; then :
11860 ac_cv_lib_dld_shl_load=yes
11861 else
11862 ac_cv_lib_dld_shl_load=no
11863 fi
11864 rm -f core conftest.err conftest.$ac_objext \
11865 conftest$ac_exeext conftest.$ac_ext
11866 LIBS=$ac_check_lib_save_LIBS
11867 fi
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11869 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11870 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11871 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11872 else
11873 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11874 if test "x$ac_cv_func_dlopen" = xyes; then :
11875 lt_cv_dlopen="dlopen"
11876 else
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11878 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11879 if ${ac_cv_lib_dl_dlopen+:} false; then :
11880 $as_echo_n "(cached) " >&6
11881 else
11882 ac_check_lib_save_LIBS=$LIBS
11883 LIBS="-ldl $LIBS"
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11886
11887 /* Override any GCC internal prototype to avoid an error.
11888 Use char because int might match the return type of a GCC
11889 builtin and then its argument prototype would still apply. */
11890 #ifdef __cplusplus
11891 extern "C"
11892 #endif
11893 char dlopen ();
11894 int
11895 main ()
11896 {
11897 return dlopen ();
11898 ;
11899 return 0;
11900 }
11901 _ACEOF
11902 if ac_fn_c_try_link "$LINENO"; then :
11903 ac_cv_lib_dl_dlopen=yes
11904 else
11905 ac_cv_lib_dl_dlopen=no
11906 fi
11907 rm -f core conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11909 LIBS=$ac_check_lib_save_LIBS
11910 fi
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11912 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11913 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11914 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11915 else
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11917 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11918 if ${ac_cv_lib_svld_dlopen+:} false; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11921 ac_check_lib_save_LIBS=$LIBS
11922 LIBS="-lsvld $LIBS"
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11925
11926 /* Override any GCC internal prototype to avoid an error.
11927 Use char because int might match the return type of a GCC
11928 builtin and then its argument prototype would still apply. */
11929 #ifdef __cplusplus
11930 extern "C"
11931 #endif
11932 char dlopen ();
11933 int
11934 main ()
11935 {
11936 return dlopen ();
11937 ;
11938 return 0;
11939 }
11940 _ACEOF
11941 if ac_fn_c_try_link "$LINENO"; then :
11942 ac_cv_lib_svld_dlopen=yes
11943 else
11944 ac_cv_lib_svld_dlopen=no
11945 fi
11946 rm -f core conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11948 LIBS=$ac_check_lib_save_LIBS
11949 fi
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11951 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11952 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11953 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11954 else
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11956 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11957 if ${ac_cv_lib_dld_dld_link+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 ac_check_lib_save_LIBS=$LIBS
11961 LIBS="-ldld $LIBS"
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11964
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11968 #ifdef __cplusplus
11969 extern "C"
11970 #endif
11971 char dld_link ();
11972 int
11973 main ()
11974 {
11975 return dld_link ();
11976 ;
11977 return 0;
11978 }
11979 _ACEOF
11980 if ac_fn_c_try_link "$LINENO"; then :
11981 ac_cv_lib_dld_dld_link=yes
11982 else
11983 ac_cv_lib_dld_dld_link=no
11984 fi
11985 rm -f core conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11987 LIBS=$ac_check_lib_save_LIBS
11988 fi
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11990 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11991 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11992 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11993 fi
11994
11995
11996 fi
11997
11998
11999 fi
12000
12001
12002 fi
12003
12004
12005 fi
12006
12007
12008 fi
12009
12010 ;;
12011 esac
12012
12013 if test "x$lt_cv_dlopen" != xno; then
12014 enable_dlopen=yes
12015 else
12016 enable_dlopen=no
12017 fi
12018
12019 case $lt_cv_dlopen in
12020 dlopen)
12021 save_CPPFLAGS="$CPPFLAGS"
12022 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12023
12024 save_LDFLAGS="$LDFLAGS"
12025 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12026
12027 save_LIBS="$LIBS"
12028 LIBS="$lt_cv_dlopen_libs $LIBS"
12029
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12031 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12032 if ${lt_cv_dlopen_self+:} false; then :
12033 $as_echo_n "(cached) " >&6
12034 else
12035 if test "$cross_compiling" = yes; then :
12036 lt_cv_dlopen_self=cross
12037 else
12038 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12039 lt_status=$lt_dlunknown
12040 cat > conftest.$ac_ext <<_LT_EOF
12041 #line 12041 "configure"
12042 #include "confdefs.h"
12043
12044 #if HAVE_DLFCN_H
12045 #include <dlfcn.h>
12046 #endif
12047
12048 #include <stdio.h>
12049
12050 #ifdef RTLD_GLOBAL
12051 # define LT_DLGLOBAL RTLD_GLOBAL
12052 #else
12053 # ifdef DL_GLOBAL
12054 # define LT_DLGLOBAL DL_GLOBAL
12055 # else
12056 # define LT_DLGLOBAL 0
12057 # endif
12058 #endif
12059
12060 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12061 find out it does not work in some platform. */
12062 #ifndef LT_DLLAZY_OR_NOW
12063 # ifdef RTLD_LAZY
12064 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12065 # else
12066 # ifdef DL_LAZY
12067 # define LT_DLLAZY_OR_NOW DL_LAZY
12068 # else
12069 # ifdef RTLD_NOW
12070 # define LT_DLLAZY_OR_NOW RTLD_NOW
12071 # else
12072 # ifdef DL_NOW
12073 # define LT_DLLAZY_OR_NOW DL_NOW
12074 # else
12075 # define LT_DLLAZY_OR_NOW 0
12076 # endif
12077 # endif
12078 # endif
12079 # endif
12080 #endif
12081
12082 /* When -fvisbility=hidden is used, assume the code has been annotated
12083 correspondingly for the symbols needed. */
12084 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12085 void fnord () __attribute__((visibility("default")));
12086 #endif
12087
12088 void fnord () { int i=42; }
12089 int main ()
12090 {
12091 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12092 int status = $lt_dlunknown;
12093
12094 if (self)
12095 {
12096 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12097 else
12098 {
12099 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12100 else puts (dlerror ());
12101 }
12102 /* dlclose (self); */
12103 }
12104 else
12105 puts (dlerror ());
12106
12107 return status;
12108 }
12109 _LT_EOF
12110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12111 (eval $ac_link) 2>&5
12112 ac_status=$?
12113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12114 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12115 (./conftest; exit; ) >&5 2>/dev/null
12116 lt_status=$?
12117 case x$lt_status in
12118 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12119 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12120 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12121 esac
12122 else :
12123 # compilation failed
12124 lt_cv_dlopen_self=no
12125 fi
12126 fi
12127 rm -fr conftest*
12128
12129
12130 fi
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12132 $as_echo "$lt_cv_dlopen_self" >&6; }
12133
12134 if test "x$lt_cv_dlopen_self" = xyes; then
12135 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12137 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12138 if ${lt_cv_dlopen_self_static+:} false; then :
12139 $as_echo_n "(cached) " >&6
12140 else
12141 if test "$cross_compiling" = yes; then :
12142 lt_cv_dlopen_self_static=cross
12143 else
12144 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12145 lt_status=$lt_dlunknown
12146 cat > conftest.$ac_ext <<_LT_EOF
12147 #line 12147 "configure"
12148 #include "confdefs.h"
12149
12150 #if HAVE_DLFCN_H
12151 #include <dlfcn.h>
12152 #endif
12153
12154 #include <stdio.h>
12155
12156 #ifdef RTLD_GLOBAL
12157 # define LT_DLGLOBAL RTLD_GLOBAL
12158 #else
12159 # ifdef DL_GLOBAL
12160 # define LT_DLGLOBAL DL_GLOBAL
12161 # else
12162 # define LT_DLGLOBAL 0
12163 # endif
12164 #endif
12165
12166 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12167 find out it does not work in some platform. */
12168 #ifndef LT_DLLAZY_OR_NOW
12169 # ifdef RTLD_LAZY
12170 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12171 # else
12172 # ifdef DL_LAZY
12173 # define LT_DLLAZY_OR_NOW DL_LAZY
12174 # else
12175 # ifdef RTLD_NOW
12176 # define LT_DLLAZY_OR_NOW RTLD_NOW
12177 # else
12178 # ifdef DL_NOW
12179 # define LT_DLLAZY_OR_NOW DL_NOW
12180 # else
12181 # define LT_DLLAZY_OR_NOW 0
12182 # endif
12183 # endif
12184 # endif
12185 # endif
12186 #endif
12187
12188 /* When -fvisbility=hidden is used, assume the code has been annotated
12189 correspondingly for the symbols needed. */
12190 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12191 void fnord () __attribute__((visibility("default")));
12192 #endif
12193
12194 void fnord () { int i=42; }
12195 int main ()
12196 {
12197 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12198 int status = $lt_dlunknown;
12199
12200 if (self)
12201 {
12202 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12203 else
12204 {
12205 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12206 else puts (dlerror ());
12207 }
12208 /* dlclose (self); */
12209 }
12210 else
12211 puts (dlerror ());
12212
12213 return status;
12214 }
12215 _LT_EOF
12216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12217 (eval $ac_link) 2>&5
12218 ac_status=$?
12219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12220 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12221 (./conftest; exit; ) >&5 2>/dev/null
12222 lt_status=$?
12223 case x$lt_status in
12224 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12225 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12226 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12227 esac
12228 else :
12229 # compilation failed
12230 lt_cv_dlopen_self_static=no
12231 fi
12232 fi
12233 rm -fr conftest*
12234
12235
12236 fi
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12238 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12239 fi
12240
12241 CPPFLAGS="$save_CPPFLAGS"
12242 LDFLAGS="$save_LDFLAGS"
12243 LIBS="$save_LIBS"
12244 ;;
12245 esac
12246
12247 case $lt_cv_dlopen_self in
12248 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12249 *) enable_dlopen_self=unknown ;;
12250 esac
12251
12252 case $lt_cv_dlopen_self_static in
12253 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12254 *) enable_dlopen_self_static=unknown ;;
12255 esac
12256 fi
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274 striplib=
12275 old_striplib=
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12277 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12278 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12279 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12280 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12282 $as_echo "yes" >&6; }
12283 else
12284 # FIXME - insert some real tests, host_os isn't really good enough
12285 case $host_os in
12286 darwin*)
12287 if test -n "$STRIP" ; then
12288 striplib="$STRIP -x"
12289 old_striplib="$STRIP -S"
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12291 $as_echo "yes" >&6; }
12292 else
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12294 $as_echo "no" >&6; }
12295 fi
12296 ;;
12297 *)
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12300 ;;
12301 esac
12302 fi
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315 # Report which library types will actually be built
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12317 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12319 $as_echo "$can_build_shared" >&6; }
12320
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12322 $as_echo_n "checking whether to build shared libraries... " >&6; }
12323 test "$can_build_shared" = "no" && enable_shared=no
12324
12325 # On AIX, shared libraries and static libraries use the same namespace, and
12326 # are all built from PIC.
12327 case $host_os in
12328 aix3*)
12329 test "$enable_shared" = yes && enable_static=no
12330 if test -n "$RANLIB"; then
12331 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12332 postinstall_cmds='$RANLIB $lib'
12333 fi
12334 ;;
12335
12336 aix[4-9]*)
12337 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12338 test "$enable_shared" = yes && enable_static=no
12339 fi
12340 ;;
12341 esac
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12343 $as_echo "$enable_shared" >&6; }
12344
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12346 $as_echo_n "checking whether to build static libraries... " >&6; }
12347 # Make sure either enable_shared or enable_static is yes.
12348 test "$enable_shared" = yes || enable_static=yes
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12350 $as_echo "$enable_static" >&6; }
12351
12352
12353
12354
12355 fi
12356 ac_ext=c
12357 ac_cpp='$CPP $CPPFLAGS'
12358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12361
12362 CC="$lt_save_CC"
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376 ac_config_commands="$ac_config_commands libtool"
12377
12378
12379
12380
12381 # Only expand once:
12382
12383
12384
12385
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
12387 $as_echo_n "checking for bind in -lsocket... " >&6; }
12388 if ${ac_cv_lib_socket_bind+:} false; then :
12389 $as_echo_n "(cached) " >&6
12390 else
12391 ac_check_lib_save_LIBS=$LIBS
12392 LIBS="-lsocket $LIBS"
12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12395
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12399 #ifdef __cplusplus
12400 extern "C"
12401 #endif
12402 char bind ();
12403 int
12404 main ()
12405 {
12406 return bind ();
12407 ;
12408 return 0;
12409 }
12410 _ACEOF
12411 if ac_fn_c_try_link "$LINENO"; then :
12412 ac_cv_lib_socket_bind=yes
12413 else
12414 ac_cv_lib_socket_bind=no
12415 fi
12416 rm -f core conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
12418 LIBS=$ac_check_lib_save_LIBS
12419 fi
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
12421 $as_echo "$ac_cv_lib_socket_bind" >&6; }
12422 if test "x$ac_cv_lib_socket_bind" = xyes; then :
12423 cat >>confdefs.h <<_ACEOF
12424 #define HAVE_LIBSOCKET 1
12425 _ACEOF
12426
12427 LIBS="-lsocket $LIBS"
12428
12429 fi
12430
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12432 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12433 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12434 $as_echo_n "(cached) " >&6
12435 else
12436 ac_check_lib_save_LIBS=$LIBS
12437 LIBS="-lnsl $LIBS"
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12440
12441 /* Override any GCC internal prototype to avoid an error.
12442 Use char because int might match the return type of a GCC
12443 builtin and then its argument prototype would still apply. */
12444 #ifdef __cplusplus
12445 extern "C"
12446 #endif
12447 char gethostbyname ();
12448 int
12449 main ()
12450 {
12451 return gethostbyname ();
12452 ;
12453 return 0;
12454 }
12455 _ACEOF
12456 if ac_fn_c_try_link "$LINENO"; then :
12457 ac_cv_lib_nsl_gethostbyname=yes
12458 else
12459 ac_cv_lib_nsl_gethostbyname=no
12460 fi
12461 rm -f core conftest.err conftest.$ac_objext \
12462 conftest$ac_exeext conftest.$ac_ext
12463 LIBS=$ac_check_lib_save_LIBS
12464 fi
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12466 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12467 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12468 cat >>confdefs.h <<_ACEOF
12469 #define HAVE_LIBNSL 1
12470 _ACEOF
12471
12472 LIBS="-lnsl $LIBS"
12473
12474 fi
12475
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12477 $as_echo_n "checking for fabs in -lm... " >&6; }
12478 if ${ac_cv_lib_m_fabs+:} false; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 ac_check_lib_save_LIBS=$LIBS
12482 LIBS="-lm $LIBS"
12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h. */
12485
12486 /* Override any GCC internal prototype to avoid an error.
12487 Use char because int might match the return type of a GCC
12488 builtin and then its argument prototype would still apply. */
12489 #ifdef __cplusplus
12490 extern "C"
12491 #endif
12492 char fabs ();
12493 int
12494 main ()
12495 {
12496 return fabs ();
12497 ;
12498 return 0;
12499 }
12500 _ACEOF
12501 if ac_fn_c_try_link "$LINENO"; then :
12502 ac_cv_lib_m_fabs=yes
12503 else
12504 ac_cv_lib_m_fabs=no
12505 fi
12506 rm -f core conftest.err conftest.$ac_objext \
12507 conftest$ac_exeext conftest.$ac_ext
12508 LIBS=$ac_check_lib_save_LIBS
12509 fi
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12511 $as_echo "$ac_cv_lib_m_fabs" >&6; }
12512 if test "x$ac_cv_lib_m_fabs" = xyes; then :
12513 cat >>confdefs.h <<_ACEOF
12514 #define HAVE_LIBM 1
12515 _ACEOF
12516
12517 LIBS="-lm $LIBS"
12518
12519 fi
12520
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
12522 $as_echo_n "checking for log2 in -lm... " >&6; }
12523 if ${ac_cv_lib_m_log2+:} false; then :
12524 $as_echo_n "(cached) " >&6
12525 else
12526 ac_check_lib_save_LIBS=$LIBS
12527 LIBS="-lm $LIBS"
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12530
12531 /* Override any GCC internal prototype to avoid an error.
12532 Use char because int might match the return type of a GCC
12533 builtin and then its argument prototype would still apply. */
12534 #ifdef __cplusplus
12535 extern "C"
12536 #endif
12537 char log2 ();
12538 int
12539 main ()
12540 {
12541 return log2 ();
12542 ;
12543 return 0;
12544 }
12545 _ACEOF
12546 if ac_fn_c_try_link "$LINENO"; then :
12547 ac_cv_lib_m_log2=yes
12548 else
12549 ac_cv_lib_m_log2=no
12550 fi
12551 rm -f core conftest.err conftest.$ac_objext \
12552 conftest$ac_exeext conftest.$ac_ext
12553 LIBS=$ac_check_lib_save_LIBS
12554 fi
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12556 $as_echo "$ac_cv_lib_m_log2" >&6; }
12557 if test "x$ac_cv_lib_m_log2" = xyes; then :
12558 cat >>confdefs.h <<_ACEOF
12559 #define HAVE_LIBM 1
12560 _ACEOF
12561
12562 LIBS="-lm $LIBS"
12563
12564 fi
12565
12566
12567
12568
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12570 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12571 # Check whether --enable-maintainer-mode was given.
12572 if test "${enable_maintainer_mode+set}" = set; then :
12573 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12574 else
12575 USE_MAINTAINER_MODE=no
12576 fi
12577
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12579 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12580 if test $USE_MAINTAINER_MODE = yes; then
12581 MAINTAINER_MODE_TRUE=
12582 MAINTAINER_MODE_FALSE='#'
12583 else
12584 MAINTAINER_MODE_TRUE='#'
12585 MAINTAINER_MODE_FALSE=
12586 fi
12587
12588 MAINT=$MAINTAINER_MODE_TRUE
12589
12590
12591 am__api_version='1.15'
12592
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12594 $as_echo_n "checking whether build environment is sane... " >&6; }
12595 # Reject unsafe characters in $srcdir or the absolute working directory
12596 # name. Accept space and tab only in the latter.
12597 am_lf='
12598 '
12599 case `pwd` in
12600 *[\\\"\#\$\&\'\`$am_lf]*)
12601 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12602 esac
12603 case $srcdir in
12604 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12605 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12606 esac
12607
12608 # Do 'set' in a subshell so we don't clobber the current shell's
12609 # arguments. Must try -L first in case configure is actually a
12610 # symlink; some systems play weird games with the mod time of symlinks
12611 # (eg FreeBSD returns the mod time of the symlink's containing
12612 # directory).
12613 if (
12614 am_has_slept=no
12615 for am_try in 1 2; do
12616 echo "timestamp, slept: $am_has_slept" > conftest.file
12617 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12618 if test "$*" = "X"; then
12619 # -L didn't work.
12620 set X `ls -t "$srcdir/configure" conftest.file`
12621 fi
12622 if test "$*" != "X $srcdir/configure conftest.file" \
12623 && test "$*" != "X conftest.file $srcdir/configure"; then
12624
12625 # If neither matched, then we have a broken ls. This can happen
12626 # if, for instance, CONFIG_SHELL is bash and it inherits a
12627 # broken ls alias from the environment. This has actually
12628 # happened. Such a system could not be considered "sane".
12629 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
12630 alias in your environment" "$LINENO" 5
12631 fi
12632 if test "$2" = conftest.file || test $am_try -eq 2; then
12633 break
12634 fi
12635 # Just in case.
12636 sleep 1
12637 am_has_slept=yes
12638 done
12639 test "$2" = conftest.file
12640 )
12641 then
12642 # Ok.
12643 :
12644 else
12645 as_fn_error $? "newly created file is older than distributed files!
12646 Check your system clock" "$LINENO" 5
12647 fi
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12649 $as_echo "yes" >&6; }
12650 # If we didn't sleep, we still need to ensure time stamps of config.status and
12651 # generated files are strictly newer.
12652 am_sleep_pid=
12653 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12654 ( sleep 1 ) &
12655 am_sleep_pid=$!
12656 fi
12657
12658 rm -f conftest.file
12659
12660 if test x"${MISSING+set}" != xset; then
12661 case $am_aux_dir in
12662 *\ * | *\ *)
12663 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
12664 *)
12665 MISSING="\${SHELL} $am_aux_dir/missing" ;;
12666 esac
12667 fi
12668 # Use eval to expand $SHELL
12669 if eval "$MISSING --is-lightweight"; then
12670 am_missing_run="$MISSING "
12671 else
12672 am_missing_run=
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12674 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12675 fi
12676
12677 if test x"${install_sh+set}" != xset; then
12678 case $am_aux_dir in
12679 *\ * | *\ *)
12680 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12681 *)
12682 install_sh="\${SHELL} $am_aux_dir/install-sh"
12683 esac
12684 fi
12685
12686 # Installed binaries are usually stripped using 'strip' when the user
12687 # run "make install-strip". However 'strip' might not be the right
12688 # tool to use in cross-compilation environments, therefore Automake
12689 # will honor the 'STRIP' environment variable to overrule this program.
12690 if test "$cross_compiling" != no; then
12691 if test -n "$ac_tool_prefix"; then
12692 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12693 set dummy ${ac_tool_prefix}strip; ac_word=$2
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12695 $as_echo_n "checking for $ac_word... " >&6; }
12696 if ${ac_cv_prog_STRIP+:} false; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 if test -n "$STRIP"; then
12700 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12701 else
12702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12703 for as_dir in $PATH
12704 do
12705 IFS=$as_save_IFS
12706 test -z "$as_dir" && as_dir=.
12707 for ac_exec_ext in '' $ac_executable_extensions; do
12708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12709 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12711 break 2
12712 fi
12713 done
12714 done
12715 IFS=$as_save_IFS
12716
12717 fi
12718 fi
12719 STRIP=$ac_cv_prog_STRIP
12720 if test -n "$STRIP"; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12722 $as_echo "$STRIP" >&6; }
12723 else
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12725 $as_echo "no" >&6; }
12726 fi
12727
12728
12729 fi
12730 if test -z "$ac_cv_prog_STRIP"; then
12731 ac_ct_STRIP=$STRIP
12732 # Extract the first word of "strip", so it can be a program name with args.
12733 set dummy strip; ac_word=$2
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12735 $as_echo_n "checking for $ac_word... " >&6; }
12736 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12739 if test -n "$ac_ct_STRIP"; then
12740 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12741 else
12742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12743 for as_dir in $PATH
12744 do
12745 IFS=$as_save_IFS
12746 test -z "$as_dir" && as_dir=.
12747 for ac_exec_ext in '' $ac_executable_extensions; do
12748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12749 ac_cv_prog_ac_ct_STRIP="strip"
12750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12751 break 2
12752 fi
12753 done
12754 done
12755 IFS=$as_save_IFS
12756
12757 fi
12758 fi
12759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12760 if test -n "$ac_ct_STRIP"; then
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12762 $as_echo "$ac_ct_STRIP" >&6; }
12763 else
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765 $as_echo "no" >&6; }
12766 fi
12767
12768 if test "x$ac_ct_STRIP" = x; then
12769 STRIP=":"
12770 else
12771 case $cross_compiling:$ac_tool_warned in
12772 yes:)
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12775 ac_tool_warned=yes ;;
12776 esac
12777 STRIP=$ac_ct_STRIP
12778 fi
12779 else
12780 STRIP="$ac_cv_prog_STRIP"
12781 fi
12782
12783 fi
12784 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12785
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12787 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12788 if test -z "$MKDIR_P"; then
12789 if ${ac_cv_path_mkdir+:} false; then :
12790 $as_echo_n "(cached) " >&6
12791 else
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12794 do
12795 IFS=$as_save_IFS
12796 test -z "$as_dir" && as_dir=.
12797 for ac_prog in mkdir gmkdir; do
12798 for ac_exec_ext in '' $ac_executable_extensions; do
12799 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12800 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12801 'mkdir (GNU coreutils) '* | \
12802 'mkdir (coreutils) '* | \
12803 'mkdir (fileutils) '4.1*)
12804 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12805 break 3;;
12806 esac
12807 done
12808 done
12809 done
12810 IFS=$as_save_IFS
12811
12812 fi
12813
12814 test -d ./--version && rmdir ./--version
12815 if test "${ac_cv_path_mkdir+set}" = set; then
12816 MKDIR_P="$ac_cv_path_mkdir -p"
12817 else
12818 # As a last resort, use the slow shell script. Don't cache a
12819 # value for MKDIR_P within a source directory, because that will
12820 # break other packages using the cache if that directory is
12821 # removed, or if the value is a relative name.
12822 MKDIR_P="$ac_install_sh -d"
12823 fi
12824 fi
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12826 $as_echo "$MKDIR_P" >&6; }
12827
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12829 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12830 set x ${MAKE-make}
12831 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12832 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12833 $as_echo_n "(cached) " >&6
12834 else
12835 cat >conftest.make <<\_ACEOF
12836 SHELL = /bin/sh
12837 all:
12838 @echo '@@@%%%=$(MAKE)=@@@%%%'
12839 _ACEOF
12840 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12841 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12842 *@@@%%%=?*=@@@%%%*)
12843 eval ac_cv_prog_make_${ac_make}_set=yes;;
12844 *)
12845 eval ac_cv_prog_make_${ac_make}_set=no;;
12846 esac
12847 rm -f conftest.make
12848 fi
12849 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12851 $as_echo "yes" >&6; }
12852 SET_MAKE=
12853 else
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855 $as_echo "no" >&6; }
12856 SET_MAKE="MAKE=${MAKE-make}"
12857 fi
12858
12859 rm -rf .tst 2>/dev/null
12860 mkdir .tst 2>/dev/null
12861 if test -d .tst; then
12862 am__leading_dot=.
12863 else
12864 am__leading_dot=_
12865 fi
12866 rmdir .tst 2>/dev/null
12867
12868 DEPDIR="${am__leading_dot}deps"
12869
12870 ac_config_commands="$ac_config_commands depfiles"
12871
12872
12873 am_make=${MAKE-make}
12874 cat > confinc << 'END'
12875 am__doit:
12876 @echo this is the am__doit target
12877 .PHONY: am__doit
12878 END
12879 # If we don't find an include directive, just comment out the code.
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
12881 $as_echo_n "checking for style of include used by $am_make... " >&6; }
12882 am__include="#"
12883 am__quote=
12884 _am_result=none
12885 # First try GNU make style include.
12886 echo "include confinc" > confmf
12887 # Ignore all kinds of additional output from 'make'.
12888 case `$am_make -s -f confmf 2> /dev/null` in #(
12889 *the\ am__doit\ target*)
12890 am__include=include
12891 am__quote=
12892 _am_result=GNU
12893 ;;
12894 esac
12895 # Now try BSD make style include.
12896 if test "$am__include" = "#"; then
12897 echo '.include "confinc"' > confmf
12898 case `$am_make -s -f confmf 2> /dev/null` in #(
12899 *the\ am__doit\ target*)
12900 am__include=.include
12901 am__quote="\""
12902 _am_result=BSD
12903 ;;
12904 esac
12905 fi
12906
12907
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
12909 $as_echo "$_am_result" >&6; }
12910 rm -f confinc confmf
12911
12912 # Check whether --enable-dependency-tracking was given.
12913 if test "${enable_dependency_tracking+set}" = set; then :
12914 enableval=$enable_dependency_tracking;
12915 fi
12916
12917 if test "x$enable_dependency_tracking" != xno; then
12918 am_depcomp="$ac_aux_dir/depcomp"
12919 AMDEPBACKSLASH='\'
12920 am__nodep='_no'
12921 fi
12922 if test "x$enable_dependency_tracking" != xno; then
12923 AMDEP_TRUE=
12924 AMDEP_FALSE='#'
12925 else
12926 AMDEP_TRUE='#'
12927 AMDEP_FALSE=
12928 fi
12929
12930
12931 # Check whether --enable-silent-rules was given.
12932 if test "${enable_silent_rules+set}" = set; then :
12933 enableval=$enable_silent_rules;
12934 fi
12935
12936 case $enable_silent_rules in # (((
12937 yes) AM_DEFAULT_VERBOSITY=0;;
12938 no) AM_DEFAULT_VERBOSITY=1;;
12939 *) AM_DEFAULT_VERBOSITY=1;;
12940 esac
12941 am_make=${MAKE-make}
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12943 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12944 if ${am_cv_make_support_nested_variables+:} false; then :
12945 $as_echo_n "(cached) " >&6
12946 else
12947 if $as_echo 'TRUE=$(BAR$(V))
12948 BAR0=false
12949 BAR1=true
12950 V=1
12951 am__doit:
12952 @$(TRUE)
12953 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12954 am_cv_make_support_nested_variables=yes
12955 else
12956 am_cv_make_support_nested_variables=no
12957 fi
12958 fi
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12960 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12961 if test $am_cv_make_support_nested_variables = yes; then
12962 AM_V='$(V)'
12963 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12964 else
12965 AM_V=$AM_DEFAULT_VERBOSITY
12966 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12967 fi
12968 AM_BACKSLASH='\'
12969
12970 if test "`cd $srcdir && pwd`" != "`pwd`"; then
12971 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12972 # is not polluted with repeated "-I."
12973 am__isrc=' -I$(srcdir)'
12974 # test to see if srcdir already configured
12975 if test -f $srcdir/config.status; then
12976 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12977 fi
12978 fi
12979
12980 # test whether we have cygpath
12981 if test -z "$CYGPATH_W"; then
12982 if (cygpath --version) >/dev/null 2>/dev/null; then
12983 CYGPATH_W='cygpath -w'
12984 else
12985 CYGPATH_W=echo
12986 fi
12987 fi
12988
12989
12990 # Define the identity of the package.
12991 PACKAGE='sim'
12992 VERSION='0'
12993
12994
12995 cat >>confdefs.h <<_ACEOF
12996 #define PACKAGE "$PACKAGE"
12997 _ACEOF
12998
12999
13000 cat >>confdefs.h <<_ACEOF
13001 #define VERSION "$VERSION"
13002 _ACEOF
13003
13004 # Some tools Automake needs.
13005
13006 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13007
13008
13009 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13010
13011
13012 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13013
13014
13015 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13016
13017
13018 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13019
13020 # For better backward compatibility. To be removed once Automake 1.9.x
13021 # dies out for good. For more background, see:
13022 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13023 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13024 mkdir_p='$(MKDIR_P)'
13025
13026 # We need awk for the "check" target (and possibly the TAP driver). The
13027 # system "awk" is bad on some platforms.
13028 # Always define AMTAR for backward compatibility. Yes, it's still used
13029 # in the wild :-( We should find a proper way to deprecate it ...
13030 AMTAR='$${TAR-tar}'
13031
13032
13033 # We'll loop over all known methods to create a tar archive until one works.
13034 _am_tools='gnutar pax cpio none'
13035
13036 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13037
13038
13039
13040
13041
13042 depcc="$CC" am_compiler_list=
13043
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13045 $as_echo_n "checking dependency style of $depcc... " >&6; }
13046 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13047 $as_echo_n "(cached) " >&6
13048 else
13049 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13050 # We make a subdir and do the tests there. Otherwise we can end up
13051 # making bogus files that we don't know about and never remove. For
13052 # instance it was reported that on HP-UX the gcc test will end up
13053 # making a dummy file named 'D' -- because '-MD' means "put the output
13054 # in D".
13055 rm -rf conftest.dir
13056 mkdir conftest.dir
13057 # Copy depcomp to subdir because otherwise we won't find it if we're
13058 # using a relative directory.
13059 cp "$am_depcomp" conftest.dir
13060 cd conftest.dir
13061 # We will build objects and dependencies in a subdirectory because
13062 # it helps to detect inapplicable dependency modes. For instance
13063 # both Tru64's cc and ICC support -MD to output dependencies as a
13064 # side effect of compilation, but ICC will put the dependencies in
13065 # the current directory while Tru64 will put them in the object
13066 # directory.
13067 mkdir sub
13068
13069 am_cv_CC_dependencies_compiler_type=none
13070 if test "$am_compiler_list" = ""; then
13071 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13072 fi
13073 am__universal=false
13074 case " $depcc " in #(
13075 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13076 esac
13077
13078 for depmode in $am_compiler_list; do
13079 # Setup a source with many dependencies, because some compilers
13080 # like to wrap large dependency lists on column 80 (with \), and
13081 # we should not choose a depcomp mode which is confused by this.
13082 #
13083 # We need to recreate these files for each test, as the compiler may
13084 # overwrite some of them when testing with obscure command lines.
13085 # This happens at least with the AIX C compiler.
13086 : > sub/conftest.c
13087 for i in 1 2 3 4 5 6; do
13088 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13089 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13090 # Solaris 10 /bin/sh.
13091 echo '/* dummy */' > sub/conftst$i.h
13092 done
13093 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13094
13095 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13096 # mode. It turns out that the SunPro C++ compiler does not properly
13097 # handle '-M -o', and we need to detect this. Also, some Intel
13098 # versions had trouble with output in subdirs.
13099 am__obj=sub/conftest.${OBJEXT-o}
13100 am__minus_obj="-o $am__obj"
13101 case $depmode in
13102 gcc)
13103 # This depmode causes a compiler race in universal mode.
13104 test "$am__universal" = false || continue
13105 ;;
13106 nosideeffect)
13107 # After this tag, mechanisms are not by side-effect, so they'll
13108 # only be used when explicitly requested.
13109 if test "x$enable_dependency_tracking" = xyes; then
13110 continue
13111 else
13112 break
13113 fi
13114 ;;
13115 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13116 # This compiler won't grok '-c -o', but also, the minuso test has
13117 # not run yet. These depmodes are late enough in the game, and
13118 # so weak that their functioning should not be impacted.
13119 am__obj=conftest.${OBJEXT-o}
13120 am__minus_obj=
13121 ;;
13122 none) break ;;
13123 esac
13124 if depmode=$depmode \
13125 source=sub/conftest.c object=$am__obj \
13126 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13127 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13128 >/dev/null 2>conftest.err &&
13129 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13130 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13131 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13132 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13133 # icc doesn't choke on unknown options, it will just issue warnings
13134 # or remarks (even with -Werror). So we grep stderr for any message
13135 # that says an option was ignored or not supported.
13136 # When given -MP, icc 7.0 and 7.1 complain thusly:
13137 # icc: Command line warning: ignoring option '-M'; no argument required
13138 # The diagnosis changed in icc 8.0:
13139 # icc: Command line remark: option '-MP' not supported
13140 if (grep 'ignoring option' conftest.err ||
13141 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13142 am_cv_CC_dependencies_compiler_type=$depmode
13143 break
13144 fi
13145 fi
13146 done
13147
13148 cd ..
13149 rm -rf conftest.dir
13150 else
13151 am_cv_CC_dependencies_compiler_type=none
13152 fi
13153
13154 fi
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13156 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13157 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13158
13159 if
13160 test "x$enable_dependency_tracking" != xno \
13161 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13162 am__fastdepCC_TRUE=
13163 am__fastdepCC_FALSE='#'
13164 else
13165 am__fastdepCC_TRUE='#'
13166 am__fastdepCC_FALSE=
13167 fi
13168
13169
13170
13171 # POSIX will say in a future version that running "rm -f" with no argument
13172 # is OK; and we want to be able to make that assumption in our Makefile
13173 # recipes. So use an aggressive probe to check that the usage we want is
13174 # actually supported "in the wild" to an acceptable degree.
13175 # See automake bug#10828.
13176 # To make any issue more visible, cause the running configure to be aborted
13177 # by default if the 'rm' program in use doesn't match our expectations; the
13178 # user can still override this though.
13179 if rm -f && rm -fr && rm -rf; then : OK; else
13180 cat >&2 <<'END'
13181 Oops!
13182
13183 Your 'rm' program seems unable to run without file operands specified
13184 on the command line, even when the '-f' option is present. This is contrary
13185 to the behaviour of most rm programs out there, and not conforming with
13186 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13187
13188 Please tell bug-automake@gnu.org about your system, including the value
13189 of your $PATH and any error possibly output before this message. This
13190 can help us improve future automake versions.
13191
13192 END
13193 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13194 echo 'Configuration will proceed anyway, since you have set the' >&2
13195 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13196 echo >&2
13197 else
13198 cat >&2 <<'END'
13199 Aborting the configuration process, to ensure you take notice of the issue.
13200
13201 You can download and install GNU coreutils to get an 'rm' implementation
13202 that behaves properly: <http://www.gnu.org/software/coreutils/>.
13203
13204 If you want to complete the configuration process using your problematic
13205 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13206 to "yes", and re-run configure.
13207
13208 END
13209 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
13210 fi
13211 fi
13212
13213 # Check whether --enable-silent-rules was given.
13214 if test "${enable_silent_rules+set}" = set; then :
13215 enableval=$enable_silent_rules;
13216 fi
13217
13218 case $enable_silent_rules in # (((
13219 yes) AM_DEFAULT_VERBOSITY=0;;
13220 no) AM_DEFAULT_VERBOSITY=1;;
13221 *) AM_DEFAULT_VERBOSITY=0;;
13222 esac
13223 am_make=${MAKE-make}
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13225 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13226 if ${am_cv_make_support_nested_variables+:} false; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 if $as_echo 'TRUE=$(BAR$(V))
13230 BAR0=false
13231 BAR1=true
13232 V=1
13233 am__doit:
13234 @$(TRUE)
13235 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13236 am_cv_make_support_nested_variables=yes
13237 else
13238 am_cv_make_support_nested_variables=no
13239 fi
13240 fi
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13242 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13243 if test $am_cv_make_support_nested_variables = yes; then
13244 AM_V='$(V)'
13245 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13246 else
13247 AM_V=$AM_DEFAULT_VERBOSITY
13248 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13249 fi
13250 AM_BACKSLASH='\'
13251
13252
13253 # If a cpu ever has more than one simulator to choose from, use
13254 # --enable-sim=... to choose.
13255 # Check whether --enable-sim was given.
13256 if test "${enable_sim+set}" = set; then :
13257 enableval=$enable_sim; case "${enableval}" in
13258 yes | no) ;;
13259 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
13260 esac
13261 fi
13262
13263
13264 # Check whether --enable-example-sims was given.
13265 if test "${enable_example_sims+set}" = set; then :
13266 enableval=$enable_example_sims;
13267 fi
13268
13269
13270 # Check whether --enable-targets was given.
13271 if test "${enable_targets+set}" = set; then :
13272 enableval=$enable_targets; case "${enableval}" in
13273 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
13274 ;;
13275 no) enable_targets= ;;
13276 *) enable_targets=$enableval ;;
13277 esac
13278 fi
13279
13280
13281 SIM_PRIMARY_TARGET=
13282
13283
13284 SIM_SUBDIRS=
13285
13286
13287 SIM_COMMON_BUILD_TRUE=
13288 SIM_COMMON_BUILD_FALSE='#'
13289
13290
13291
13292 ac_config_files="$ac_config_files Make-common.sim:common/Make-common.in"
13293
13294
13295
13296
13297 if test "${enable_sim}" != no; then
13298 sim_igen=no
13299 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
13300 do
13301 case "${targ}" in
13302 all|aarch64*-*-*)
13303 if test "${targ}" = "${target}"; then
13304 SIM_PRIMARY_TARGET=aarch64
13305 fi
13306 ac_config_files="$ac_config_files aarch64/Makefile.sim:aarch64/Makefile.in"
13307
13308 ac_config_commands="$ac_config_commands aarch64/Makefile"
13309
13310 as_fn_append SIM_SUBDIRS " aarch64"
13311
13312 ac_config_commands="$ac_config_commands depdir-aarch64"
13313
13314
13315
13316 ;;
13317 esac
13318
13319 case "${targ}" in
13320 all|arm*-*-*)
13321 if test "${targ}" = "${target}"; then
13322 SIM_PRIMARY_TARGET=arm
13323 fi
13324 ac_config_files="$ac_config_files arm/Makefile.sim:arm/Makefile.in"
13325
13326 ac_config_commands="$ac_config_commands arm/Makefile"
13327
13328 as_fn_append SIM_SUBDIRS " arm"
13329
13330 ac_config_commands="$ac_config_commands depdir-arm"
13331
13332
13333
13334 ;;
13335 esac
13336
13337 case "${targ}" in
13338 all|avr*-*-*)
13339 if test "${targ}" = "${target}"; then
13340 SIM_PRIMARY_TARGET=avr
13341 fi
13342 ac_config_files="$ac_config_files avr/Makefile.sim:avr/Makefile.in"
13343
13344 ac_config_commands="$ac_config_commands avr/Makefile"
13345
13346 as_fn_append SIM_SUBDIRS " avr"
13347
13348 ac_config_commands="$ac_config_commands depdir-avr"
13349
13350
13351
13352 ;;
13353 esac
13354
13355 case "${targ}" in
13356 all|bfin-*-*)
13357 if test "${targ}" = "${target}"; then
13358 SIM_PRIMARY_TARGET=bfin
13359 fi
13360
13361
13362 subdirs="$subdirs bfin"
13363
13364
13365 ac_config_commands="$ac_config_commands depdir-bfin"
13366
13367
13368
13369 ;;
13370 esac
13371
13372 case "${targ}" in
13373 all|bpf-*-*)
13374 if test "${targ}" = "${target}"; then
13375 SIM_PRIMARY_TARGET=bpf
13376 fi
13377 subdirs="$subdirs bpf"
13378
13379
13380 ac_config_commands="$ac_config_commands depdir-bpf"
13381
13382
13383
13384 ;;
13385 esac
13386
13387 case "${targ}" in
13388 all|cr16*-*-*)
13389 if test "${targ}" = "${target}"; then
13390 SIM_PRIMARY_TARGET=cr16
13391 fi
13392 ac_config_files="$ac_config_files cr16/Makefile.sim:cr16/Makefile.in"
13393
13394 ac_config_commands="$ac_config_commands cr16/Makefile"
13395
13396 as_fn_append SIM_SUBDIRS " cr16"
13397
13398 ac_config_commands="$ac_config_commands depdir-cr16"
13399
13400
13401
13402 ;;
13403 esac
13404
13405 case "${targ}" in
13406 all|cris-*-* | crisv32-*-*)
13407 if test "${targ}" = "${target}"; then
13408 SIM_PRIMARY_TARGET=cris
13409 fi
13410 subdirs="$subdirs cris"
13411
13412
13413 ac_config_commands="$ac_config_commands depdir-cris"
13414
13415
13416
13417 ;;
13418 esac
13419
13420 case "${targ}" in
13421 all|d10v-*-*)
13422 if test "${targ}" = "${target}"; then
13423 SIM_PRIMARY_TARGET=d10v
13424 fi
13425 ac_config_files="$ac_config_files d10v/Makefile.sim:d10v/Makefile.in"
13426
13427 ac_config_commands="$ac_config_commands d10v/Makefile"
13428
13429 as_fn_append SIM_SUBDIRS " d10v"
13430
13431 ac_config_commands="$ac_config_commands depdir-d10v"
13432
13433
13434
13435 ;;
13436 esac
13437
13438 case "${targ}" in
13439 all|frv-*-*)
13440 if test "${targ}" = "${target}"; then
13441 SIM_PRIMARY_TARGET=frv
13442 fi
13443 subdirs="$subdirs frv"
13444
13445
13446 ac_config_commands="$ac_config_commands depdir-frv"
13447
13448
13449
13450 ;;
13451 esac
13452
13453 case "${targ}" in
13454 all|ft32-*-*)
13455 if test "${targ}" = "${target}"; then
13456 SIM_PRIMARY_TARGET=ft32
13457 fi
13458 ac_config_files="$ac_config_files ft32/Makefile.sim:ft32/Makefile.in"
13459
13460 ac_config_commands="$ac_config_commands ft32/Makefile"
13461
13462 as_fn_append SIM_SUBDIRS " ft32"
13463
13464 ac_config_commands="$ac_config_commands depdir-ft32"
13465
13466
13467
13468 ;;
13469 esac
13470
13471 case "${targ}" in
13472 all|h8300*-*-*)
13473 if test "${targ}" = "${target}"; then
13474 SIM_PRIMARY_TARGET=h8300
13475 fi
13476 ac_config_files="$ac_config_files h8300/Makefile.sim:h8300/Makefile.in"
13477
13478 ac_config_commands="$ac_config_commands h8300/Makefile"
13479
13480 as_fn_append SIM_SUBDIRS " h8300"
13481
13482 ac_config_commands="$ac_config_commands depdir-h8300"
13483
13484
13485
13486 ;;
13487 esac
13488
13489 case "${targ}" in
13490 all|iq2000-*-*)
13491 if test "${targ}" = "${target}"; then
13492 SIM_PRIMARY_TARGET=iq2000
13493 fi
13494 subdirs="$subdirs iq2000"
13495
13496
13497 ac_config_commands="$ac_config_commands depdir-iq2000"
13498
13499
13500
13501 ;;
13502 esac
13503
13504 case "${targ}" in
13505 all|lm32-*-*)
13506 if test "${targ}" = "${target}"; then
13507 SIM_PRIMARY_TARGET=lm32
13508 fi
13509 subdirs="$subdirs lm32"
13510
13511
13512 ac_config_commands="$ac_config_commands depdir-lm32"
13513
13514
13515
13516 ;;
13517 esac
13518
13519 case "${targ}" in
13520 all|m32c-*-*)
13521 if test "${targ}" = "${target}"; then
13522 SIM_PRIMARY_TARGET=m32c
13523 fi
13524 ac_config_files="$ac_config_files m32c/Makefile.sim:m32c/Makefile.in"
13525
13526 ac_config_commands="$ac_config_commands m32c/Makefile"
13527
13528 as_fn_append SIM_SUBDIRS " m32c"
13529
13530 ac_config_commands="$ac_config_commands depdir-m32c"
13531
13532
13533
13534 ;;
13535 esac
13536
13537 case "${targ}" in
13538 all|m32r-*-*)
13539 if test "${targ}" = "${target}"; then
13540 SIM_PRIMARY_TARGET=m32r
13541 fi
13542 subdirs="$subdirs m32r"
13543
13544
13545 ac_config_commands="$ac_config_commands depdir-m32r"
13546
13547
13548
13549 ;;
13550 esac
13551
13552 case "${targ}" in
13553 all|m68hc11-*-*|m6811-*-*)
13554 if test "${targ}" = "${target}"; then
13555 SIM_PRIMARY_TARGET=m68hc11
13556 fi
13557 ac_config_files="$ac_config_files m68hc11/Makefile.sim:m68hc11/Makefile.in"
13558
13559 ac_config_commands="$ac_config_commands m68hc11/Makefile"
13560
13561 as_fn_append SIM_SUBDIRS " m68hc11"
13562
13563 ac_config_commands="$ac_config_commands depdir-m68hc11"
13564
13565
13566
13567 ;;
13568 esac
13569
13570 case "${targ}" in
13571 all|mcore-*-*)
13572 if test "${targ}" = "${target}"; then
13573 SIM_PRIMARY_TARGET=mcore
13574 fi
13575 ac_config_files="$ac_config_files mcore/Makefile.sim:mcore/Makefile.in"
13576
13577 ac_config_commands="$ac_config_commands mcore/Makefile"
13578
13579 as_fn_append SIM_SUBDIRS " mcore"
13580
13581 ac_config_commands="$ac_config_commands depdir-mcore"
13582
13583
13584
13585 ;;
13586 esac
13587
13588 case "${targ}" in
13589 all|microblaze-*-*)
13590 if test "${targ}" = "${target}"; then
13591 SIM_PRIMARY_TARGET=microblaze
13592 fi
13593 ac_config_files="$ac_config_files microblaze/Makefile.sim:microblaze/Makefile.in"
13594
13595 ac_config_commands="$ac_config_commands microblaze/Makefile"
13596
13597 as_fn_append SIM_SUBDIRS " microblaze"
13598
13599 ac_config_commands="$ac_config_commands depdir-microblaze"
13600
13601
13602
13603 ;;
13604 esac
13605
13606 case "${targ}" in
13607 all|mips*-*-*)
13608 if test "${targ}" = "${target}"; then
13609 SIM_PRIMARY_TARGET=mips
13610 fi
13611 subdirs="$subdirs mips"
13612
13613
13614 ac_config_commands="$ac_config_commands depdir-mips"
13615
13616
13617 sim_igen=yes
13618 ;;
13619 esac
13620
13621 case "${targ}" in
13622 all|mn10300*-*-*)
13623 if test "${targ}" = "${target}"; then
13624 SIM_PRIMARY_TARGET=mn10300
13625 fi
13626 subdirs="$subdirs mn10300"
13627
13628
13629 ac_config_commands="$ac_config_commands depdir-mn10300"
13630
13631
13632 sim_igen=yes
13633 ;;
13634 esac
13635
13636 case "${targ}" in
13637 all|moxie-*-*)
13638 if test "${targ}" = "${target}"; then
13639 SIM_PRIMARY_TARGET=moxie
13640 fi
13641 ac_config_files="$ac_config_files moxie/Makefile.sim:moxie/Makefile.in"
13642
13643 ac_config_commands="$ac_config_commands moxie/Makefile"
13644
13645 as_fn_append SIM_SUBDIRS " moxie"
13646
13647 ac_config_commands="$ac_config_commands depdir-moxie"
13648
13649
13650
13651 ;;
13652 esac
13653
13654 case "${targ}" in
13655 all|msp430*-*-*)
13656 if test "${targ}" = "${target}"; then
13657 SIM_PRIMARY_TARGET=msp430
13658 fi
13659 ac_config_files="$ac_config_files msp430/Makefile.sim:msp430/Makefile.in"
13660
13661 ac_config_commands="$ac_config_commands msp430/Makefile"
13662
13663 as_fn_append SIM_SUBDIRS " msp430"
13664
13665 ac_config_commands="$ac_config_commands depdir-msp430"
13666
13667
13668
13669 ;;
13670 esac
13671
13672 case "${targ}" in
13673 all|or1k-*-* | or1knd-*-*)
13674 if test "${targ}" = "${target}"; then
13675 SIM_PRIMARY_TARGET=or1k
13676 fi
13677 subdirs="$subdirs or1k"
13678
13679
13680 ac_config_commands="$ac_config_commands depdir-or1k"
13681
13682
13683
13684 ;;
13685 esac
13686
13687 case "${targ}" in
13688 all|pru*-*-*)
13689 if test "${targ}" = "${target}"; then
13690 SIM_PRIMARY_TARGET=pru
13691 fi
13692 ac_config_files="$ac_config_files pru/Makefile.sim:pru/Makefile.in"
13693
13694 ac_config_commands="$ac_config_commands pru/Makefile"
13695
13696 as_fn_append SIM_SUBDIRS " pru"
13697
13698 ac_config_commands="$ac_config_commands depdir-pru"
13699
13700
13701
13702 ;;
13703 esac
13704
13705 case "${targ}" in
13706 all|riscv*-*-*)
13707 if test "${targ}" = "${target}"; then
13708 SIM_PRIMARY_TARGET=riscv
13709 fi
13710 subdirs="$subdirs riscv"
13711
13712
13713 ac_config_commands="$ac_config_commands depdir-riscv"
13714
13715
13716
13717 ;;
13718 esac
13719
13720 case "${targ}" in
13721 all|rl78-*-*)
13722 if test "${targ}" = "${target}"; then
13723 SIM_PRIMARY_TARGET=rl78
13724 fi
13725 ac_config_files="$ac_config_files rl78/Makefile.sim:rl78/Makefile.in"
13726
13727 ac_config_commands="$ac_config_commands rl78/Makefile"
13728
13729 as_fn_append SIM_SUBDIRS " rl78"
13730
13731 ac_config_commands="$ac_config_commands depdir-rl78"
13732
13733
13734
13735 ;;
13736 esac
13737
13738 case "${targ}" in
13739 all|rx-*-*)
13740 if test "${targ}" = "${target}"; then
13741 SIM_PRIMARY_TARGET=rx
13742 fi
13743 subdirs="$subdirs rx"
13744
13745
13746 ac_config_commands="$ac_config_commands depdir-rx"
13747
13748
13749
13750 ;;
13751 esac
13752
13753 case "${targ}" in
13754 all|sh*-*-*)
13755 if test "${targ}" = "${target}"; then
13756 SIM_PRIMARY_TARGET=sh
13757 fi
13758 ac_config_files="$ac_config_files sh/Makefile.sim:sh/Makefile.in"
13759
13760 ac_config_commands="$ac_config_commands sh/Makefile"
13761
13762 as_fn_append SIM_SUBDIRS " sh"
13763
13764 ac_config_commands="$ac_config_commands depdir-sh"
13765
13766
13767
13768 ;;
13769 esac
13770
13771 case "${targ}" in
13772 all|sparc-*-rtems*|sparc-*-elf*)
13773 if test "${targ}" = "${target}"; then
13774 SIM_PRIMARY_TARGET=erc32
13775 fi
13776 subdirs="$subdirs erc32"
13777
13778
13779 ac_config_commands="$ac_config_commands depdir-erc32"
13780
13781
13782
13783 ;;
13784 esac
13785
13786 case "${targ}" in
13787 all|powerpc*-*-*)
13788 if test "${targ}" = "${target}"; then
13789 SIM_PRIMARY_TARGET=ppc
13790 fi
13791 subdirs="$subdirs ppc"
13792
13793
13794 ac_config_commands="$ac_config_commands depdir-ppc"
13795
13796
13797
13798 ;;
13799 esac
13800
13801 case "${targ}" in
13802 all|v850*-*-*)
13803 if test "${targ}" = "${target}"; then
13804 SIM_PRIMARY_TARGET=v850
13805 fi
13806 subdirs="$subdirs v850"
13807
13808
13809 ac_config_commands="$ac_config_commands depdir-v850"
13810
13811
13812 sim_igen=yes
13813 ;;
13814 esac
13815
13816 done
13817
13818 if test "x${enable_example_sims}" = xyes; then
13819 ac_config_files="$ac_config_files example-synacor/Makefile.sim:example-synacor/Makefile.in"
13820
13821 ac_config_commands="$ac_config_commands example-synacor/Makefile"
13822
13823 as_fn_append SIM_SUBDIRS " example-synacor"
13824
13825 ac_config_commands="$ac_config_commands depdir-example-synacor"
13826
13827
13828 fi
13829 fi
13830 if test "$sim_igen" = "yes"; then
13831 SIM_ENABLE_IGEN_TRUE=
13832 SIM_ENABLE_IGEN_FALSE='#'
13833 else
13834 SIM_ENABLE_IGEN_TRUE='#'
13835 SIM_ENABLE_IGEN_FALSE=
13836 fi
13837
13838
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
13840 $as_echo_n "checking whether to force sim alignment... " >&6; }
13841 sim_alignment=
13842 # Check whether --enable-sim-alignment was given.
13843 if test "${enable_sim_alignment+set}" = set; then :
13844 enableval=$enable_sim_alignment; case "${enableval}" in
13845 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
13846 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
13847 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
13848 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
13849 esac
13850 fi
13851
13852 cat >>confdefs.h <<_ACEOF
13853 #define WITH_ALIGNMENT ${sim_alignment:-0}
13854 _ACEOF
13855
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13857 $as_echo "${sim_alignment:-no}" >&6; }
13858
13859
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
13861 $as_echo_n "checking whether to enable sim asserts... " >&6; }
13862 sim_assert="1"
13863 # Check whether --enable-sim-assert was given.
13864 if test "${enable_sim_assert+set}" = set; then :
13865 enableval=$enable_sim_assert; case "${enableval}" in
13866 yes) sim_assert="1";;
13867 no) sim_assert="0";;
13868 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
13869 esac
13870 fi
13871
13872 cat >>confdefs.h <<_ACEOF
13873 #define WITH_ASSERT $sim_assert
13874 _ACEOF
13875
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
13877 $as_echo "$sim_assert" >&6; }
13878
13879
13880 cgen_maint=no
13881 cgen=guile
13882 cgendir='$(srcdir)/../../cgen'
13883 # Check whether --enable-cgen-maint was given.
13884 if test "${enable_cgen_maint+set}" = set; then :
13885 enableval=$enable_cgen_maint; case "${enableval}" in
13886 yes) cgen_maint=yes ;;
13887 no) cgen_maint=no ;;
13888 *)
13889 # Argument is a directory where cgen can be found. In some
13890 # future world cgen could be installable, but right now this
13891 # is not the case. Instead we assume the directory is a path
13892 # to the cgen source tree.
13893 cgen_maint=yes
13894 if test -r ${enableval}/iformat.scm; then
13895 # This looks like a cgen source tree.
13896 cgendir=${enableval}
13897 else
13898 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
13899 fi
13900 ;;
13901 esac
13902 fi
13903 if test x${cgen_maint} != xno ; then
13904 CGEN_MAINT=''
13905 else
13906 CGEN_MAINT='#'
13907 fi
13908
13909
13910
13911
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
13913 $as_echo_n "checking for sim debug setting... " >&6; }
13914 sim_debug="0"
13915 # Check whether --enable-sim-debug was given.
13916 if test "${enable_sim_debug+set}" = set; then :
13917 enableval=$enable_sim_debug; case "${enableval}" in
13918 yes) sim_debug="7";;
13919 no) sim_debug="0";;
13920 *) sim_debug="($enableval)";;
13921 esac
13922 fi
13923 if test "$sim_debug" != "0"; then
13924
13925 cat >>confdefs.h <<_ACEOF
13926 #define DEBUG $sim_debug
13927 _ACEOF
13928
13929 fi
13930
13931 cat >>confdefs.h <<_ACEOF
13932 #define WITH_DEBUG $sim_debug
13933 _ACEOF
13934
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
13936 $as_echo "$sim_debug" >&6; }
13937
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
13939 $as_echo_n "checking whether to force sim endianness... " >&6; }
13940 sim_endian=
13941 # Check whether --enable-sim-endian was given.
13942 if test "${enable_sim_endian+set}" = set; then :
13943 enableval=$enable_sim_endian; case "${enableval}" in
13944 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
13945 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
13946 yes | no) ;;
13947 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
13948 esac
13949 fi
13950
13951 cat >>confdefs.h <<_ACEOF
13952 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
13953 _ACEOF
13954
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13956 $as_echo "${sim_alignment:-no}" >&6; }
13957
13958
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
13960 $as_echo_n "checking default sim environment setting... " >&6; }
13961 sim_environment="ALL_ENVIRONMENT"
13962 # Check whether --enable-sim-environment was given.
13963 if test "${enable_sim_environment+set}" = set; then :
13964 enableval=$enable_sim_environment; case "${enableval}" in
13965 all | ALL) sim_environment="ALL_ENVIRONMENT";;
13966 user | USER) sim_environment="USER_ENVIRONMENT";;
13967 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
13968 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
13969 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
13970 esac
13971 fi
13972
13973 cat >>confdefs.h <<_ACEOF
13974 #define WITH_ENVIRONMENT $sim_environment
13975 _ACEOF
13976
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
13978 $as_echo "$sim_environment" >&6; }
13979
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
13981 $as_echo_n "checking for sim hardware settings... " >&6; }
13982 # Check whether --enable-sim-hardware was given.
13983 if test "${enable_sim_hardware+set}" = set; then :
13984 enableval=$enable_sim_hardware;
13985 else
13986 enable_sim_hardware="yes"
13987 fi
13988
13989 sim_hw_sockser=
13990 if test "$enable_sim_hardware" = no; then
13991 sim_hw_cflags="-DWITH_HW=0"
13992 elif test "$enable_sim_hardware" = yes; then
13993 sim_hw_cflags="-DWITH_HW=1"
13994 # mingw does not support sockser
13995 case ${host} in
13996 *mingw*) ;;
13997 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
13998 # that you instatiate. Instead, other code will call into it directly.
13999 # At some point, we should convert it over.
14000 sim_hw_sockser="dv-sockser.o"
14001 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
14002 ;;
14003 esac
14004 else
14005 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
14006 fi
14007 if test "$enable_sim_hardware" = "yes"; then
14008 SIM_ENABLE_HW_TRUE=
14009 SIM_ENABLE_HW_FALSE='#'
14010 else
14011 SIM_ENABLE_HW_TRUE='#'
14012 SIM_ENABLE_HW_FALSE=
14013 fi
14014
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
14016 $as_echo "${enable_sim_hardware}" >&6; }
14017
14018
14019
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
14021 $as_echo_n "checking sim inline settings... " >&6; }
14022 sim_inline="-DDEFAULT_INLINE=0"
14023 # Check whether --enable-sim-inline was given.
14024 if test "${enable_sim_inline+set}" = set; then :
14025 enableval=$enable_sim_inline; sim_inline=""
14026 case "$enableval" in
14027 no) sim_inline="-DDEFAULT_INLINE=0";;
14028 0) sim_inline="-DDEFAULT_INLINE=0";;
14029 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
14030 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
14031 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14032 new_flag=""
14033 case "$x" in
14034 *_INLINE=*) new_flag="-D$x";;
14035 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
14036 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
14037 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
14038 esac
14039 if test x"$sim_inline" = x""; then
14040 sim_inline="$new_flag"
14041 else
14042 sim_inline="$sim_inline $new_flag"
14043 fi
14044 done;;
14045 esac
14046
14047 fi
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
14049 $as_echo "$sim_inline" >&6; }
14050 SIM_INLINE=$sim_inline
14051
14052
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
14054 $as_echo_n "checking for sim profile settings... " >&6; }
14055 profile="1"
14056 sim_profile="-1"
14057 # Check whether --enable-sim-profile was given.
14058 if test "${enable_sim_profile+set}" = set; then :
14059 enableval=$enable_sim_profile; case "${enableval}" in
14060 yes) profile="1" sim_profile="-1";;
14061 no) profile="0" sim_profile="0";;
14062 [-0-9]*)
14063 profile="(${enableval})" sim_profile="(${enableval})";;
14064 [a-z]*)
14065 profile="1"
14066 sim_profile=""
14067 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14068 if test x"$sim_profile" = x; then
14069 sim_profile="(PROFILE_$x"
14070 else
14071 sim_profile="${sim_profile}|PROFILE_$x"
14072 fi
14073 done
14074 sim_profile="$sim_profile)" ;;
14075 esac
14076 fi
14077
14078 cat >>confdefs.h <<_ACEOF
14079 #define PROFILE $profile
14080 _ACEOF
14081
14082
14083 cat >>confdefs.h <<_ACEOF
14084 #define WITH_PROFILE $sim_profile
14085 _ACEOF
14086
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
14088 $as_echo "$sim_profile" >&6; }
14089
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
14091 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
14092 sim_stdio="0"
14093 # Check whether --enable-sim-stdio was given.
14094 if test "${enable_sim_stdio+set}" = set; then :
14095 enableval=$enable_sim_stdio; case "${enableval}" in
14096 yes) sim_stdio="DO_USE_STDIO";;
14097 no) sim_stdio="DONT_USE_STDIO";;
14098 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
14099 esac
14100 fi
14101
14102 cat >>confdefs.h <<_ACEOF
14103 #define WITH_STDIO $sim_stdio
14104 _ACEOF
14105
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
14107 $as_echo "$sim_stdio" >&6; }
14108
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
14110 $as_echo_n "checking for sim trace settings... " >&6; }
14111 sim_trace="~TRACE_debug"
14112 # Check whether --enable-sim-trace was given.
14113 if test "${enable_sim_trace+set}" = set; then :
14114 enableval=$enable_sim_trace; case "${enableval}" in
14115 yes) sim_trace="-1";;
14116 no) sim_trace="0";;
14117 [-0-9]*)
14118 sim_trace="'(${enableval})'";;
14119 [[:lower:]]*)
14120 sim_trace=""
14121 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14122 if test x"$sim_trace" = x; then
14123 sim_trace="(TRACE_$x"
14124 else
14125 sim_trace="${sim_trace}|TRACE_$x"
14126 fi
14127 done
14128 sim_trace="$sim_trace)" ;;
14129 esac
14130 fi
14131
14132 cat >>confdefs.h <<_ACEOF
14133 #define WITH_TRACE $sim_trace
14134 _ACEOF
14135
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
14137 $as_echo "$sim_trace" >&6; }
14138
14139
14140 # Check whether --enable-werror was given.
14141 if test "${enable_werror+set}" = set; then :
14142 enableval=$enable_werror; case "${enableval}" in
14143 yes | y) ERROR_ON_WARNING="yes" ;;
14144 no | n) ERROR_ON_WARNING="no" ;;
14145 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14146 esac
14147 fi
14148
14149
14150 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14151 ERROR_ON_WARNING=yes
14152 fi
14153
14154 WERROR_CFLAGS=""
14155 if test "${ERROR_ON_WARNING}" = yes ; then
14156 WERROR_CFLAGS="-Werror"
14157 fi
14158
14159 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14160 -Wpointer-sign \
14161 -Wno-unused -Wunused-value -Wunused-function \
14162 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
14163 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
14164 -Wold-style-declaration -Wold-style-definition"
14165
14166 # Enable -Wno-format by default when using gcc on mingw since many
14167 # GCC versions complain about %I64.
14168 case "${host}" in
14169 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14170 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
14171 esac
14172
14173 # Check whether --enable-build-warnings was given.
14174 if test "${enable_build_warnings+set}" = set; then :
14175 enableval=$enable_build_warnings; case "${enableval}" in
14176 yes) ;;
14177 no) build_warnings="-w";;
14178 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14179 build_warnings="${build_warnings} ${t}";;
14180 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14181 build_warnings="${t} ${build_warnings}";;
14182 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14183 esac
14184 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14185 echo "Setting compiler warning flags = $build_warnings" 6>&1
14186 fi
14187 fi
14188 # Check whether --enable-sim-build-warnings was given.
14189 if test "${enable_sim_build_warnings+set}" = set; then :
14190 enableval=$enable_sim_build_warnings; case "${enableval}" in
14191 yes) ;;
14192 no) build_warnings="-w";;
14193 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14194 build_warnings="${build_warnings} ${t}";;
14195 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14196 build_warnings="${t} ${build_warnings}";;
14197 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14198 esac
14199 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14200 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14201 fi
14202 fi
14203 WARN_CFLAGS=""
14204 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14205 then
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14207 $as_echo_n "checking compiler warning flags... " >&6; }
14208 # Separate out the -Werror flag as some files just cannot be
14209 # compiled with it enabled.
14210 for w in ${build_warnings}; do
14211 case $w in
14212 -Werr*) WERROR_CFLAGS=-Werror ;;
14213 *) # Check that GCC accepts it
14214 saved_CFLAGS="$CFLAGS"
14215 CFLAGS="$CFLAGS -Werror $w"
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14218
14219 int
14220 main ()
14221 {
14222
14223 ;
14224 return 0;
14225 }
14226 _ACEOF
14227 if ac_fn_c_try_compile "$LINENO"; then :
14228 WARN_CFLAGS="${WARN_CFLAGS} $w"
14229 fi
14230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14231 CFLAGS="$saved_CFLAGS"
14232 esac
14233 done
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14235 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14236 fi
14237
14238
14239
14240
14241
14242
14243
14244
14245 ac_config_files="$ac_config_files arch-subdir.mk Makefile"
14246
14247 cat >confcache <<\_ACEOF
14248 # This file is a shell script that caches the results of configure
14249 # tests run on this system so they can be shared between configure
14250 # scripts and configure runs, see configure's option --config-cache.
14251 # It is not useful on other systems. If it contains results you don't
14252 # want to keep, you may remove or edit it.
14253 #
14254 # config.status only pays attention to the cache file if you give it
14255 # the --recheck option to rerun configure.
14256 #
14257 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14259 # following values.
14260
14261 _ACEOF
14262
14263 # The following way of writing the cache mishandles newlines in values,
14264 # but we know of no workaround that is simple, portable, and efficient.
14265 # So, we kill variables containing newlines.
14266 # Ultrix sh set writes to stderr and can't be redirected directly,
14267 # and sets the high bit in the cache file unless we assign to the vars.
14268 (
14269 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14270 eval ac_val=\$$ac_var
14271 case $ac_val in #(
14272 *${as_nl}*)
14273 case $ac_var in #(
14274 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14275 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14276 esac
14277 case $ac_var in #(
14278 _ | IFS | as_nl) ;; #(
14279 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14280 *) { eval $ac_var=; unset $ac_var;} ;;
14281 esac ;;
14282 esac
14283 done
14284
14285 (set) 2>&1 |
14286 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14287 *${as_nl}ac_space=\ *)
14288 # `set' does not quote correctly, so add quotes: double-quote
14289 # substitution turns \\\\ into \\, and sed turns \\ into \.
14290 sed -n \
14291 "s/'/'\\\\''/g;
14292 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14293 ;; #(
14294 *)
14295 # `set' quotes correctly as required by POSIX, so do not add quotes.
14296 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14297 ;;
14298 esac |
14299 sort
14300 ) |
14301 sed '
14302 /^ac_cv_env_/b end
14303 t clear
14304 :clear
14305 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14306 t end
14307 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14308 :end' >>confcache
14309 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14310 if test -w "$cache_file"; then
14311 if test "x$cache_file" != "x/dev/null"; then
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14313 $as_echo "$as_me: updating cache $cache_file" >&6;}
14314 if test ! -f "$cache_file" || test -h "$cache_file"; then
14315 cat confcache >"$cache_file"
14316 else
14317 case $cache_file in #(
14318 */* | ?:*)
14319 mv -f confcache "$cache_file"$$ &&
14320 mv -f "$cache_file"$$ "$cache_file" ;; #(
14321 *)
14322 mv -f confcache "$cache_file" ;;
14323 esac
14324 fi
14325 fi
14326 else
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14328 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14329 fi
14330 fi
14331 rm -f confcache
14332
14333 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14334 # Let make expand exec_prefix.
14335 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14336
14337 DEFS=-DHAVE_CONFIG_H
14338
14339 ac_libobjs=
14340 ac_ltlibobjs=
14341 U=
14342 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14343 # 1. Remove the extension, and $U if already installed.
14344 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14345 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14346 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14347 # will be set to the directory where LIBOBJS objects are built.
14348 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14349 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14350 done
14351 LIBOBJS=$ac_libobjs
14352
14353 LTLIBOBJS=$ac_ltlibobjs
14354
14355
14356
14357 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
14358 as_fn_error $? "conditional \"PLUGINS\" was never defined.
14359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14360 fi
14361 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14362 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14364 fi
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14366 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14367 if test -n "$am_sleep_pid"; then
14368 # Hide warnings about reused PIDs.
14369 wait $am_sleep_pid 2>/dev/null
14370 fi
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14372 $as_echo "done" >&6; }
14373 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14374 as_fn_error $? "conditional \"AMDEP\" was never defined.
14375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14376 fi
14377 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14378 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14380 fi
14381 if test -n "$EXEEXT"; then
14382 am__EXEEXT_TRUE=
14383 am__EXEEXT_FALSE='#'
14384 else
14385 am__EXEEXT_TRUE='#'
14386 am__EXEEXT_FALSE=
14387 fi
14388
14389 if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
14390 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
14391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14392 fi
14393 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
14394 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
14395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14396 fi
14397
14398 : "${CONFIG_STATUS=./config.status}"
14399 ac_write_fail=0
14400 ac_clean_files_save=$ac_clean_files
14401 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14403 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14404 as_write_fail=0
14405 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14406 #! $SHELL
14407 # Generated by $as_me.
14408 # Run this file to recreate the current configuration.
14409 # Compiler output produced by configure, useful for debugging
14410 # configure, is in config.log if it exists.
14411
14412 debug=false
14413 ac_cs_recheck=false
14414 ac_cs_silent=false
14415
14416 SHELL=\${CONFIG_SHELL-$SHELL}
14417 export SHELL
14418 _ASEOF
14419 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14420 ## -------------------- ##
14421 ## M4sh Initialization. ##
14422 ## -------------------- ##
14423
14424 # Be more Bourne compatible
14425 DUALCASE=1; export DUALCASE # for MKS sh
14426 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14427 emulate sh
14428 NULLCMD=:
14429 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14430 # is contrary to our usage. Disable this feature.
14431 alias -g '${1+"$@"}'='"$@"'
14432 setopt NO_GLOB_SUBST
14433 else
14434 case `(set -o) 2>/dev/null` in #(
14435 *posix*) :
14436 set -o posix ;; #(
14437 *) :
14438 ;;
14439 esac
14440 fi
14441
14442
14443 as_nl='
14444 '
14445 export as_nl
14446 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14447 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14448 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14449 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14450 # Prefer a ksh shell builtin over an external printf program on Solaris,
14451 # but without wasting forks for bash or zsh.
14452 if test -z "$BASH_VERSION$ZSH_VERSION" \
14453 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14454 as_echo='print -r --'
14455 as_echo_n='print -rn --'
14456 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14457 as_echo='printf %s\n'
14458 as_echo_n='printf %s'
14459 else
14460 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14461 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14462 as_echo_n='/usr/ucb/echo -n'
14463 else
14464 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14465 as_echo_n_body='eval
14466 arg=$1;
14467 case $arg in #(
14468 *"$as_nl"*)
14469 expr "X$arg" : "X\\(.*\\)$as_nl";
14470 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14471 esac;
14472 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14473 '
14474 export as_echo_n_body
14475 as_echo_n='sh -c $as_echo_n_body as_echo'
14476 fi
14477 export as_echo_body
14478 as_echo='sh -c $as_echo_body as_echo'
14479 fi
14480
14481 # The user is always right.
14482 if test "${PATH_SEPARATOR+set}" != set; then
14483 PATH_SEPARATOR=:
14484 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14485 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14486 PATH_SEPARATOR=';'
14487 }
14488 fi
14489
14490
14491 # IFS
14492 # We need space, tab and new line, in precisely that order. Quoting is
14493 # there to prevent editors from complaining about space-tab.
14494 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14495 # splitting by setting IFS to empty value.)
14496 IFS=" "" $as_nl"
14497
14498 # Find who we are. Look in the path if we contain no directory separator.
14499 as_myself=
14500 case $0 in #((
14501 *[\\/]* ) as_myself=$0 ;;
14502 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14503 for as_dir in $PATH
14504 do
14505 IFS=$as_save_IFS
14506 test -z "$as_dir" && as_dir=.
14507 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14508 done
14509 IFS=$as_save_IFS
14510
14511 ;;
14512 esac
14513 # We did not find ourselves, most probably we were run as `sh COMMAND'
14514 # in which case we are not to be found in the path.
14515 if test "x$as_myself" = x; then
14516 as_myself=$0
14517 fi
14518 if test ! -f "$as_myself"; then
14519 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14520 exit 1
14521 fi
14522
14523 # Unset variables that we do not need and which cause bugs (e.g. in
14524 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14525 # suppresses any "Segmentation fault" message there. '((' could
14526 # trigger a bug in pdksh 5.2.14.
14527 for as_var in BASH_ENV ENV MAIL MAILPATH
14528 do eval test x\${$as_var+set} = xset \
14529 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14530 done
14531 PS1='$ '
14532 PS2='> '
14533 PS4='+ '
14534
14535 # NLS nuisances.
14536 LC_ALL=C
14537 export LC_ALL
14538 LANGUAGE=C
14539 export LANGUAGE
14540
14541 # CDPATH.
14542 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14543
14544
14545 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14546 # ----------------------------------------
14547 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14548 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14549 # script with STATUS, using 1 if that was 0.
14550 as_fn_error ()
14551 {
14552 as_status=$1; test $as_status -eq 0 && as_status=1
14553 if test "$4"; then
14554 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14555 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14556 fi
14557 $as_echo "$as_me: error: $2" >&2
14558 as_fn_exit $as_status
14559 } # as_fn_error
14560
14561
14562 # as_fn_set_status STATUS
14563 # -----------------------
14564 # Set $? to STATUS, without forking.
14565 as_fn_set_status ()
14566 {
14567 return $1
14568 } # as_fn_set_status
14569
14570 # as_fn_exit STATUS
14571 # -----------------
14572 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14573 as_fn_exit ()
14574 {
14575 set +e
14576 as_fn_set_status $1
14577 exit $1
14578 } # as_fn_exit
14579
14580 # as_fn_unset VAR
14581 # ---------------
14582 # Portably unset VAR.
14583 as_fn_unset ()
14584 {
14585 { eval $1=; unset $1;}
14586 }
14587 as_unset=as_fn_unset
14588 # as_fn_append VAR VALUE
14589 # ----------------------
14590 # Append the text in VALUE to the end of the definition contained in VAR. Take
14591 # advantage of any shell optimizations that allow amortized linear growth over
14592 # repeated appends, instead of the typical quadratic growth present in naive
14593 # implementations.
14594 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14595 eval 'as_fn_append ()
14596 {
14597 eval $1+=\$2
14598 }'
14599 else
14600 as_fn_append ()
14601 {
14602 eval $1=\$$1\$2
14603 }
14604 fi # as_fn_append
14605
14606 # as_fn_arith ARG...
14607 # ------------------
14608 # Perform arithmetic evaluation on the ARGs, and store the result in the
14609 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14610 # must be portable across $(()) and expr.
14611 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14612 eval 'as_fn_arith ()
14613 {
14614 as_val=$(( $* ))
14615 }'
14616 else
14617 as_fn_arith ()
14618 {
14619 as_val=`expr "$@" || test $? -eq 1`
14620 }
14621 fi # as_fn_arith
14622
14623
14624 if expr a : '\(a\)' >/dev/null 2>&1 &&
14625 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14626 as_expr=expr
14627 else
14628 as_expr=false
14629 fi
14630
14631 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14632 as_basename=basename
14633 else
14634 as_basename=false
14635 fi
14636
14637 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14638 as_dirname=dirname
14639 else
14640 as_dirname=false
14641 fi
14642
14643 as_me=`$as_basename -- "$0" ||
14644 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14645 X"$0" : 'X\(//\)$' \| \
14646 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14647 $as_echo X/"$0" |
14648 sed '/^.*\/\([^/][^/]*\)\/*$/{
14649 s//\1/
14650 q
14651 }
14652 /^X\/\(\/\/\)$/{
14653 s//\1/
14654 q
14655 }
14656 /^X\/\(\/\).*/{
14657 s//\1/
14658 q
14659 }
14660 s/.*/./; q'`
14661
14662 # Avoid depending upon Character Ranges.
14663 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14664 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14665 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14666 as_cr_digits='0123456789'
14667 as_cr_alnum=$as_cr_Letters$as_cr_digits
14668
14669 ECHO_C= ECHO_N= ECHO_T=
14670 case `echo -n x` in #(((((
14671 -n*)
14672 case `echo 'xy\c'` in
14673 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14674 xy) ECHO_C='\c';;
14675 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14676 ECHO_T=' ';;
14677 esac;;
14678 *)
14679 ECHO_N='-n';;
14680 esac
14681
14682 rm -f conf$$ conf$$.exe conf$$.file
14683 if test -d conf$$.dir; then
14684 rm -f conf$$.dir/conf$$.file
14685 else
14686 rm -f conf$$.dir
14687 mkdir conf$$.dir 2>/dev/null
14688 fi
14689 if (echo >conf$$.file) 2>/dev/null; then
14690 if ln -s conf$$.file conf$$ 2>/dev/null; then
14691 as_ln_s='ln -s'
14692 # ... but there are two gotchas:
14693 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14694 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14695 # In both cases, we have to default to `cp -pR'.
14696 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14697 as_ln_s='cp -pR'
14698 elif ln conf$$.file conf$$ 2>/dev/null; then
14699 as_ln_s=ln
14700 else
14701 as_ln_s='cp -pR'
14702 fi
14703 else
14704 as_ln_s='cp -pR'
14705 fi
14706 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14707 rmdir conf$$.dir 2>/dev/null
14708
14709
14710 # as_fn_mkdir_p
14711 # -------------
14712 # Create "$as_dir" as a directory, including parents if necessary.
14713 as_fn_mkdir_p ()
14714 {
14715
14716 case $as_dir in #(
14717 -*) as_dir=./$as_dir;;
14718 esac
14719 test -d "$as_dir" || eval $as_mkdir_p || {
14720 as_dirs=
14721 while :; do
14722 case $as_dir in #(
14723 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14724 *) as_qdir=$as_dir;;
14725 esac
14726 as_dirs="'$as_qdir' $as_dirs"
14727 as_dir=`$as_dirname -- "$as_dir" ||
14728 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14729 X"$as_dir" : 'X\(//\)[^/]' \| \
14730 X"$as_dir" : 'X\(//\)$' \| \
14731 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14732 $as_echo X"$as_dir" |
14733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14734 s//\1/
14735 q
14736 }
14737 /^X\(\/\/\)[^/].*/{
14738 s//\1/
14739 q
14740 }
14741 /^X\(\/\/\)$/{
14742 s//\1/
14743 q
14744 }
14745 /^X\(\/\).*/{
14746 s//\1/
14747 q
14748 }
14749 s/.*/./; q'`
14750 test -d "$as_dir" && break
14751 done
14752 test -z "$as_dirs" || eval "mkdir $as_dirs"
14753 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14754
14755
14756 } # as_fn_mkdir_p
14757 if mkdir -p . 2>/dev/null; then
14758 as_mkdir_p='mkdir -p "$as_dir"'
14759 else
14760 test -d ./-p && rmdir ./-p
14761 as_mkdir_p=false
14762 fi
14763
14764
14765 # as_fn_executable_p FILE
14766 # -----------------------
14767 # Test if FILE is an executable regular file.
14768 as_fn_executable_p ()
14769 {
14770 test -f "$1" && test -x "$1"
14771 } # as_fn_executable_p
14772 as_test_x='test -x'
14773 as_executable_p=as_fn_executable_p
14774
14775 # Sed expression to map a string onto a valid CPP name.
14776 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14777
14778 # Sed expression to map a string onto a valid variable name.
14779 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14780
14781
14782 exec 6>&1
14783 ## ----------------------------------- ##
14784 ## Main body of $CONFIG_STATUS script. ##
14785 ## ----------------------------------- ##
14786 _ASEOF
14787 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14788
14789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14790 # Save the log message, to keep $0 and so on meaningful, and to
14791 # report actual input values of CONFIG_FILES etc. instead of their
14792 # values after options handling.
14793 ac_log="
14794 This file was extended by sim $as_me 0, which was
14795 generated by GNU Autoconf 2.69. Invocation command line was
14796
14797 CONFIG_FILES = $CONFIG_FILES
14798 CONFIG_HEADERS = $CONFIG_HEADERS
14799 CONFIG_LINKS = $CONFIG_LINKS
14800 CONFIG_COMMANDS = $CONFIG_COMMANDS
14801 $ $0 $@
14802
14803 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14804 "
14805
14806 _ACEOF
14807
14808 case $ac_config_files in *"
14809 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14810 esac
14811
14812 case $ac_config_headers in *"
14813 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14814 esac
14815
14816
14817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14818 # Files that config.status was made for.
14819 config_files="$ac_config_files"
14820 config_headers="$ac_config_headers"
14821 config_commands="$ac_config_commands"
14822
14823 _ACEOF
14824
14825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14826 ac_cs_usage="\
14827 \`$as_me' instantiates files and other configuration actions
14828 from templates according to the current configuration. Unless the files
14829 and actions are specified as TAGs, all are instantiated by default.
14830
14831 Usage: $0 [OPTION]... [TAG]...
14832
14833 -h, --help print this help, then exit
14834 -V, --version print version number and configuration settings, then exit
14835 --config print configuration, then exit
14836 -q, --quiet, --silent
14837 do not print progress messages
14838 -d, --debug don't remove temporary files
14839 --recheck update $as_me by reconfiguring in the same conditions
14840 --file=FILE[:TEMPLATE]
14841 instantiate the configuration file FILE
14842 --header=FILE[:TEMPLATE]
14843 instantiate the configuration header FILE
14844
14845 Configuration files:
14846 $config_files
14847
14848 Configuration headers:
14849 $config_headers
14850
14851 Configuration commands:
14852 $config_commands
14853
14854 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
14855 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
14856
14857 _ACEOF
14858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14859 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14860 ac_cs_version="\\
14861 sim config.status 0
14862 configured by $0, generated by GNU Autoconf 2.69,
14863 with options \\"\$ac_cs_config\\"
14864
14865 Copyright (C) 2012 Free Software Foundation, Inc.
14866 This config.status script is free software; the Free Software Foundation
14867 gives unlimited permission to copy, distribute and modify it."
14868
14869 ac_pwd='$ac_pwd'
14870 srcdir='$srcdir'
14871 INSTALL='$INSTALL'
14872 MKDIR_P='$MKDIR_P'
14873 AWK='$AWK'
14874 test -n "\$AWK" || AWK=awk
14875 _ACEOF
14876
14877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14878 # The default lists apply if the user does not specify any file.
14879 ac_need_defaults=:
14880 while test $# != 0
14881 do
14882 case $1 in
14883 --*=?*)
14884 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14885 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14886 ac_shift=:
14887 ;;
14888 --*=)
14889 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14890 ac_optarg=
14891 ac_shift=:
14892 ;;
14893 *)
14894 ac_option=$1
14895 ac_optarg=$2
14896 ac_shift=shift
14897 ;;
14898 esac
14899
14900 case $ac_option in
14901 # Handling of the options.
14902 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14903 ac_cs_recheck=: ;;
14904 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14905 $as_echo "$ac_cs_version"; exit ;;
14906 --config | --confi | --conf | --con | --co | --c )
14907 $as_echo "$ac_cs_config"; exit ;;
14908 --debug | --debu | --deb | --de | --d | -d )
14909 debug=: ;;
14910 --file | --fil | --fi | --f )
14911 $ac_shift
14912 case $ac_optarg in
14913 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14914 '') as_fn_error $? "missing file argument" ;;
14915 esac
14916 as_fn_append CONFIG_FILES " '$ac_optarg'"
14917 ac_need_defaults=false;;
14918 --header | --heade | --head | --hea )
14919 $ac_shift
14920 case $ac_optarg in
14921 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14922 esac
14923 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14924 ac_need_defaults=false;;
14925 --he | --h)
14926 # Conflict between --help and --header
14927 as_fn_error $? "ambiguous option: \`$1'
14928 Try \`$0 --help' for more information.";;
14929 --help | --hel | -h )
14930 $as_echo "$ac_cs_usage"; exit ;;
14931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14932 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14933 ac_cs_silent=: ;;
14934
14935 # This is an error.
14936 -*) as_fn_error $? "unrecognized option: \`$1'
14937 Try \`$0 --help' for more information." ;;
14938
14939 *) as_fn_append ac_config_targets " $1"
14940 ac_need_defaults=false ;;
14941
14942 esac
14943 shift
14944 done
14945
14946 ac_configure_extra_args=
14947
14948 if $ac_cs_silent; then
14949 exec 6>/dev/null
14950 ac_configure_extra_args="$ac_configure_extra_args --silent"
14951 fi
14952
14953 _ACEOF
14954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14955 if \$ac_cs_recheck; then
14956 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14957 shift
14958 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14959 CONFIG_SHELL='$SHELL'
14960 export CONFIG_SHELL
14961 exec "\$@"
14962 fi
14963
14964 _ACEOF
14965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14966 exec 5>>config.log
14967 {
14968 echo
14969 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14970 ## Running $as_me. ##
14971 _ASBOX
14972 $as_echo "$ac_log"
14973 } >&5
14974
14975 _ACEOF
14976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14977 #
14978 # INIT-COMMANDS
14979 #
14980
14981
14982 # The HP-UX ksh and POSIX shell print the target directory to stdout
14983 # if CDPATH is set.
14984 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14985
14986 sed_quote_subst='$sed_quote_subst'
14987 double_quote_subst='$double_quote_subst'
14988 delay_variable_subst='$delay_variable_subst'
14989 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14990 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14991 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14992 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14993 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14994 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14995 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14996 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14997 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14998 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14999 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15000 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15001 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15002 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15003 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15004 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15005 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15006 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15007 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15008 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15009 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15010 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15011 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15012 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15013 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15014 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15015 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15016 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15017 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15018 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15019 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15020 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15021 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15022 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15023 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15024 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15025 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15026 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15027 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15028 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15029 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15030 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15031 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15032 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15033 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15034 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15035 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15036 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15037 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"`'
15038 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15039 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15040 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15041 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15042 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15043 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15044 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15045 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15046 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15047 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15048 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15049 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15050 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15051 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15052 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15053 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15054 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15055 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15056 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15057 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15058 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15059 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15060 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15061 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15062 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15063 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15064 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15065 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15066 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15067 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15068 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15069 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15070 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15071 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15072 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15073 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15074 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15075 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15076 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15077 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15078 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15079 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15080 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15081 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15082 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15083 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15084 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15085 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15086 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15087 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15088 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15089 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15090 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15091 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15092 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15093 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15094 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15095 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15096 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15097 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15098 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15099 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15100 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15101 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15102 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15103 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15104 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15105 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15106 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15107 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15108 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15109
15110 LTCC='$LTCC'
15111 LTCFLAGS='$LTCFLAGS'
15112 compiler='$compiler_DEFAULT'
15113
15114 # A function that is used when there is no print builtin or printf.
15115 func_fallback_echo ()
15116 {
15117 eval 'cat <<_LTECHO_EOF
15118 \$1
15119 _LTECHO_EOF'
15120 }
15121
15122 # Quote evaled strings.
15123 for var in SHELL \
15124 ECHO \
15125 SED \
15126 GREP \
15127 EGREP \
15128 FGREP \
15129 LD \
15130 NM \
15131 LN_S \
15132 lt_SP2NL \
15133 lt_NL2SP \
15134 reload_flag \
15135 OBJDUMP \
15136 deplibs_check_method \
15137 file_magic_cmd \
15138 AR \
15139 AR_FLAGS \
15140 STRIP \
15141 RANLIB \
15142 CC \
15143 CFLAGS \
15144 compiler \
15145 lt_cv_sys_global_symbol_pipe \
15146 lt_cv_sys_global_symbol_to_cdecl \
15147 lt_cv_sys_global_symbol_to_c_name_address \
15148 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15149 lt_prog_compiler_no_builtin_flag \
15150 lt_prog_compiler_wl \
15151 lt_prog_compiler_pic \
15152 lt_prog_compiler_static \
15153 lt_cv_prog_compiler_c_o \
15154 need_locks \
15155 DSYMUTIL \
15156 NMEDIT \
15157 LIPO \
15158 OTOOL \
15159 OTOOL64 \
15160 shrext_cmds \
15161 export_dynamic_flag_spec \
15162 whole_archive_flag_spec \
15163 compiler_needs_object \
15164 with_gnu_ld \
15165 allow_undefined_flag \
15166 no_undefined_flag \
15167 hardcode_libdir_flag_spec \
15168 hardcode_libdir_flag_spec_ld \
15169 hardcode_libdir_separator \
15170 fix_srcfile_path \
15171 exclude_expsyms \
15172 include_expsyms \
15173 file_list_spec \
15174 variables_saved_for_relink \
15175 libname_spec \
15176 library_names_spec \
15177 soname_spec \
15178 install_override_mode \
15179 finish_eval \
15180 old_striplib \
15181 striplib; do
15182 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15183 *[\\\\\\\`\\"\\\$]*)
15184 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15185 ;;
15186 *)
15187 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15188 ;;
15189 esac
15190 done
15191
15192 # Double-quote double-evaled strings.
15193 for var in reload_cmds \
15194 old_postinstall_cmds \
15195 old_postuninstall_cmds \
15196 old_archive_cmds \
15197 extract_expsyms_cmds \
15198 old_archive_from_new_cmds \
15199 old_archive_from_expsyms_cmds \
15200 archive_cmds \
15201 archive_expsym_cmds \
15202 module_cmds \
15203 module_expsym_cmds \
15204 export_symbols_cmds \
15205 prelink_cmds \
15206 postinstall_cmds \
15207 postuninstall_cmds \
15208 finish_cmds \
15209 sys_lib_search_path_spec \
15210 sys_lib_dlsearch_path_spec; do
15211 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15212 *[\\\\\\\`\\"\\\$]*)
15213 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15214 ;;
15215 *)
15216 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15217 ;;
15218 esac
15219 done
15220
15221 ac_aux_dir='$ac_aux_dir'
15222 xsi_shell='$xsi_shell'
15223 lt_shell_append='$lt_shell_append'
15224
15225 # See if we are running on zsh, and set the options which allow our
15226 # commands through without removal of \ escapes INIT.
15227 if test -n "\${ZSH_VERSION+set}" ; then
15228 setopt NO_GLOB_SUBST
15229 fi
15230
15231
15232 PACKAGE='$PACKAGE'
15233 VERSION='$VERSION'
15234 TIMESTAMP='$TIMESTAMP'
15235 RM='$RM'
15236 ofile='$ofile'
15237
15238
15239
15240 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15241 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15242 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15243 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15244 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15245 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15246 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15247 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15248 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15249 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15250 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15251 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15252 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15253 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15254 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15255 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15256 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15257 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15258 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15259 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15260 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15261 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15262 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15263 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15264 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15265 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15266 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15267 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15268 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15269 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15270 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15271 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15272 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15273
15274 _ACEOF
15275
15276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15277
15278 # Handling of arguments.
15279 for ac_config_target in $ac_config_targets
15280 do
15281 case $ac_config_target in
15282 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15283 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15284 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15285 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:common/Make-common.in" ;;
15286 "aarch64/Makefile.sim") CONFIG_FILES="$CONFIG_FILES aarch64/Makefile.sim:aarch64/Makefile.in" ;;
15287 "aarch64/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS aarch64/Makefile" ;;
15288 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
15289 "arm/Makefile.sim") CONFIG_FILES="$CONFIG_FILES arm/Makefile.sim:arm/Makefile.in" ;;
15290 "arm/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS arm/Makefile" ;;
15291 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
15292 "avr/Makefile.sim") CONFIG_FILES="$CONFIG_FILES avr/Makefile.sim:avr/Makefile.in" ;;
15293 "avr/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS avr/Makefile" ;;
15294 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
15295 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
15296 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
15297 "cr16/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cr16/Makefile.sim:cr16/Makefile.in" ;;
15298 "cr16/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cr16/Makefile" ;;
15299 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
15300 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
15301 "d10v/Makefile.sim") CONFIG_FILES="$CONFIG_FILES d10v/Makefile.sim:d10v/Makefile.in" ;;
15302 "d10v/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS d10v/Makefile" ;;
15303 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
15304 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
15305 "ft32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES ft32/Makefile.sim:ft32/Makefile.in" ;;
15306 "ft32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS ft32/Makefile" ;;
15307 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
15308 "h8300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES h8300/Makefile.sim:h8300/Makefile.in" ;;
15309 "h8300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS h8300/Makefile" ;;
15310 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
15311 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
15312 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
15313 "m32c/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32c/Makefile.sim:m32c/Makefile.in" ;;
15314 "m32c/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32c/Makefile" ;;
15315 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
15316 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
15317 "m68hc11/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile.sim:m68hc11/Makefile.in" ;;
15318 "m68hc11/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m68hc11/Makefile" ;;
15319 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
15320 "mcore/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mcore/Makefile.sim:mcore/Makefile.in" ;;
15321 "mcore/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mcore/Makefile" ;;
15322 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
15323 "microblaze/Makefile.sim") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile.sim:microblaze/Makefile.in" ;;
15324 "microblaze/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS microblaze/Makefile" ;;
15325 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
15326 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
15327 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
15328 "moxie/Makefile.sim") CONFIG_FILES="$CONFIG_FILES moxie/Makefile.sim:moxie/Makefile.in" ;;
15329 "moxie/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS moxie/Makefile" ;;
15330 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
15331 "msp430/Makefile.sim") CONFIG_FILES="$CONFIG_FILES msp430/Makefile.sim:msp430/Makefile.in" ;;
15332 "msp430/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS msp430/Makefile" ;;
15333 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
15334 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
15335 "pru/Makefile.sim") CONFIG_FILES="$CONFIG_FILES pru/Makefile.sim:pru/Makefile.in" ;;
15336 "pru/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS pru/Makefile" ;;
15337 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
15338 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
15339 "rl78/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rl78/Makefile.sim:rl78/Makefile.in" ;;
15340 "rl78/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rl78/Makefile" ;;
15341 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
15342 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
15343 "sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;;
15344 "sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;;
15345 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
15346 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
15347 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
15348 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
15349 "example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;;
15350 "example-synacor/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS example-synacor/Makefile" ;;
15351 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
15352 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
15353 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15354
15355 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15356 esac
15357 done
15358
15359
15360 # If the user did not use the arguments to specify the items to instantiate,
15361 # then the envvar interface is used. Set only those that are not.
15362 # We use the long form for the default assignment because of an extremely
15363 # bizarre bug on SunOS 4.1.3.
15364 if $ac_need_defaults; then
15365 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15366 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15367 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15368 fi
15369
15370 # Have a temporary directory for convenience. Make it in the build tree
15371 # simply because there is no reason against having it here, and in addition,
15372 # creating and moving files from /tmp can sometimes cause problems.
15373 # Hook for its removal unless debugging.
15374 # Note that there is a small window in which the directory will not be cleaned:
15375 # after its creation but before its name has been assigned to `$tmp'.
15376 $debug ||
15377 {
15378 tmp= ac_tmp=
15379 trap 'exit_status=$?
15380 : "${ac_tmp:=$tmp}"
15381 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15382 ' 0
15383 trap 'as_fn_exit 1' 1 2 13 15
15384 }
15385 # Create a (secure) tmp directory for tmp files.
15386
15387 {
15388 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15389 test -d "$tmp"
15390 } ||
15391 {
15392 tmp=./conf$$-$RANDOM
15393 (umask 077 && mkdir "$tmp")
15394 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15395 ac_tmp=$tmp
15396
15397 # Set up the scripts for CONFIG_FILES section.
15398 # No need to generate them if there are no CONFIG_FILES.
15399 # This happens for instance with `./config.status config.h'.
15400 if test -n "$CONFIG_FILES"; then
15401
15402
15403 ac_cr=`echo X | tr X '\015'`
15404 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15405 # But we know of no other shell where ac_cr would be empty at this
15406 # point, so we can use a bashism as a fallback.
15407 if test "x$ac_cr" = x; then
15408 eval ac_cr=\$\'\\r\'
15409 fi
15410 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15411 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15412 ac_cs_awk_cr='\\r'
15413 else
15414 ac_cs_awk_cr=$ac_cr
15415 fi
15416
15417 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15418 _ACEOF
15419
15420
15421 {
15422 echo "cat >conf$$subs.awk <<_ACEOF" &&
15423 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15424 echo "_ACEOF"
15425 } >conf$$subs.sh ||
15426 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15427 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15428 ac_delim='%!_!# '
15429 for ac_last_try in false false false false false :; do
15430 . ./conf$$subs.sh ||
15431 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15432
15433 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15434 if test $ac_delim_n = $ac_delim_num; then
15435 break
15436 elif $ac_last_try; then
15437 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15438 else
15439 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15440 fi
15441 done
15442 rm -f conf$$subs.sh
15443
15444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15445 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15446 _ACEOF
15447 sed -n '
15448 h
15449 s/^/S["/; s/!.*/"]=/
15450 p
15451 g
15452 s/^[^!]*!//
15453 :repl
15454 t repl
15455 s/'"$ac_delim"'$//
15456 t delim
15457 :nl
15458 h
15459 s/\(.\{148\}\)..*/\1/
15460 t more1
15461 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15462 p
15463 n
15464 b repl
15465 :more1
15466 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15467 p
15468 g
15469 s/.\{148\}//
15470 t nl
15471 :delim
15472 h
15473 s/\(.\{148\}\)..*/\1/
15474 t more2
15475 s/["\\]/\\&/g; s/^/"/; s/$/"/
15476 p
15477 b
15478 :more2
15479 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15480 p
15481 g
15482 s/.\{148\}//
15483 t delim
15484 ' <conf$$subs.awk | sed '
15485 /^[^""]/{
15486 N
15487 s/\n//
15488 }
15489 ' >>$CONFIG_STATUS || ac_write_fail=1
15490 rm -f conf$$subs.awk
15491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15492 _ACAWK
15493 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15494 for (key in S) S_is_set[key] = 1
15495 FS = "\a"
15496
15497 }
15498 {
15499 line = $ 0
15500 nfields = split(line, field, "@")
15501 substed = 0
15502 len = length(field[1])
15503 for (i = 2; i < nfields; i++) {
15504 key = field[i]
15505 keylen = length(key)
15506 if (S_is_set[key]) {
15507 value = S[key]
15508 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15509 len += length(value) + length(field[++i])
15510 substed = 1
15511 } else
15512 len += 1 + keylen
15513 }
15514
15515 print line
15516 }
15517
15518 _ACAWK
15519 _ACEOF
15520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15521 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15522 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15523 else
15524 cat
15525 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15526 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15527 _ACEOF
15528
15529 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15530 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15531 # trailing colons and then remove the whole line if VPATH becomes empty
15532 # (actually we leave an empty line to preserve line numbers).
15533 if test "x$srcdir" = x.; then
15534 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15535 h
15536 s///
15537 s/^/:/
15538 s/[ ]*$/:/
15539 s/:\$(srcdir):/:/g
15540 s/:\${srcdir}:/:/g
15541 s/:@srcdir@:/:/g
15542 s/^:*//
15543 s/:*$//
15544 x
15545 s/\(=[ ]*\).*/\1/
15546 G
15547 s/\n//
15548 s/^[^=]*=[ ]*$//
15549 }'
15550 fi
15551
15552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15553 fi # test -n "$CONFIG_FILES"
15554
15555 # Set up the scripts for CONFIG_HEADERS section.
15556 # No need to generate them if there are no CONFIG_HEADERS.
15557 # This happens for instance with `./config.status Makefile'.
15558 if test -n "$CONFIG_HEADERS"; then
15559 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15560 BEGIN {
15561 _ACEOF
15562
15563 # Transform confdefs.h into an awk script `defines.awk', embedded as
15564 # here-document in config.status, that substitutes the proper values into
15565 # config.h.in to produce config.h.
15566
15567 # Create a delimiter string that does not exist in confdefs.h, to ease
15568 # handling of long lines.
15569 ac_delim='%!_!# '
15570 for ac_last_try in false false :; do
15571 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15572 if test -z "$ac_tt"; then
15573 break
15574 elif $ac_last_try; then
15575 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15576 else
15577 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15578 fi
15579 done
15580
15581 # For the awk script, D is an array of macro values keyed by name,
15582 # likewise P contains macro parameters if any. Preserve backslash
15583 # newline sequences.
15584
15585 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15586 sed -n '
15587 s/.\{148\}/&'"$ac_delim"'/g
15588 t rset
15589 :rset
15590 s/^[ ]*#[ ]*define[ ][ ]*/ /
15591 t def
15592 d
15593 :def
15594 s/\\$//
15595 t bsnl
15596 s/["\\]/\\&/g
15597 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15598 D["\1"]=" \3"/p
15599 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15600 d
15601 :bsnl
15602 s/["\\]/\\&/g
15603 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15604 D["\1"]=" \3\\\\\\n"\\/p
15605 t cont
15606 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15607 t cont
15608 d
15609 :cont
15610 n
15611 s/.\{148\}/&'"$ac_delim"'/g
15612 t clear
15613 :clear
15614 s/\\$//
15615 t bsnlc
15616 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15617 d
15618 :bsnlc
15619 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15620 b cont
15621 ' <confdefs.h | sed '
15622 s/'"$ac_delim"'/"\\\
15623 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15624
15625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15626 for (key in D) D_is_set[key] = 1
15627 FS = "\a"
15628 }
15629 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15630 line = \$ 0
15631 split(line, arg, " ")
15632 if (arg[1] == "#") {
15633 defundef = arg[2]
15634 mac1 = arg[3]
15635 } else {
15636 defundef = substr(arg[1], 2)
15637 mac1 = arg[2]
15638 }
15639 split(mac1, mac2, "(") #)
15640 macro = mac2[1]
15641 prefix = substr(line, 1, index(line, defundef) - 1)
15642 if (D_is_set[macro]) {
15643 # Preserve the white space surrounding the "#".
15644 print prefix "define", macro P[macro] D[macro]
15645 next
15646 } else {
15647 # Replace #undef with comments. This is necessary, for example,
15648 # in the case of _POSIX_SOURCE, which is predefined and required
15649 # on some systems where configure will not decide to define it.
15650 if (defundef == "undef") {
15651 print "/*", prefix defundef, macro, "*/"
15652 next
15653 }
15654 }
15655 }
15656 { print }
15657 _ACAWK
15658 _ACEOF
15659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15660 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15661 fi # test -n "$CONFIG_HEADERS"
15662
15663
15664 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15665 shift
15666 for ac_tag
15667 do
15668 case $ac_tag in
15669 :[FHLC]) ac_mode=$ac_tag; continue;;
15670 esac
15671 case $ac_mode$ac_tag in
15672 :[FHL]*:*);;
15673 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15674 :[FH]-) ac_tag=-:-;;
15675 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15676 esac
15677 ac_save_IFS=$IFS
15678 IFS=:
15679 set x $ac_tag
15680 IFS=$ac_save_IFS
15681 shift
15682 ac_file=$1
15683 shift
15684
15685 case $ac_mode in
15686 :L) ac_source=$1;;
15687 :[FH])
15688 ac_file_inputs=
15689 for ac_f
15690 do
15691 case $ac_f in
15692 -) ac_f="$ac_tmp/stdin";;
15693 *) # Look for the file first in the build tree, then in the source tree
15694 # (if the path is not absolute). The absolute path cannot be DOS-style,
15695 # because $ac_f cannot contain `:'.
15696 test -f "$ac_f" ||
15697 case $ac_f in
15698 [\\/$]*) false;;
15699 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15700 esac ||
15701 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15702 esac
15703 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15704 as_fn_append ac_file_inputs " '$ac_f'"
15705 done
15706
15707 # Let's still pretend it is `configure' which instantiates (i.e., don't
15708 # use $as_me), people would be surprised to read:
15709 # /* config.h. Generated by config.status. */
15710 configure_input='Generated from '`
15711 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15712 `' by configure.'
15713 if test x"$ac_file" != x-; then
15714 configure_input="$ac_file. $configure_input"
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15716 $as_echo "$as_me: creating $ac_file" >&6;}
15717 fi
15718 # Neutralize special characters interpreted by sed in replacement strings.
15719 case $configure_input in #(
15720 *\&* | *\|* | *\\* )
15721 ac_sed_conf_input=`$as_echo "$configure_input" |
15722 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15723 *) ac_sed_conf_input=$configure_input;;
15724 esac
15725
15726 case $ac_tag in
15727 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15729 esac
15730 ;;
15731 esac
15732
15733 ac_dir=`$as_dirname -- "$ac_file" ||
15734 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15735 X"$ac_file" : 'X\(//\)[^/]' \| \
15736 X"$ac_file" : 'X\(//\)$' \| \
15737 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15738 $as_echo X"$ac_file" |
15739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15740 s//\1/
15741 q
15742 }
15743 /^X\(\/\/\)[^/].*/{
15744 s//\1/
15745 q
15746 }
15747 /^X\(\/\/\)$/{
15748 s//\1/
15749 q
15750 }
15751 /^X\(\/\).*/{
15752 s//\1/
15753 q
15754 }
15755 s/.*/./; q'`
15756 as_dir="$ac_dir"; as_fn_mkdir_p
15757 ac_builddir=.
15758
15759 case "$ac_dir" in
15760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15761 *)
15762 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15763 # A ".." for each directory in $ac_dir_suffix.
15764 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15765 case $ac_top_builddir_sub in
15766 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15767 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15768 esac ;;
15769 esac
15770 ac_abs_top_builddir=$ac_pwd
15771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15772 # for backward compatibility:
15773 ac_top_builddir=$ac_top_build_prefix
15774
15775 case $srcdir in
15776 .) # We are building in place.
15777 ac_srcdir=.
15778 ac_top_srcdir=$ac_top_builddir_sub
15779 ac_abs_top_srcdir=$ac_pwd ;;
15780 [\\/]* | ?:[\\/]* ) # Absolute name.
15781 ac_srcdir=$srcdir$ac_dir_suffix;
15782 ac_top_srcdir=$srcdir
15783 ac_abs_top_srcdir=$srcdir ;;
15784 *) # Relative name.
15785 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15786 ac_top_srcdir=$ac_top_build_prefix$srcdir
15787 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15788 esac
15789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15790
15791
15792 case $ac_mode in
15793 :F)
15794 #
15795 # CONFIG_FILE
15796 #
15797
15798 case $INSTALL in
15799 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15800 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15801 esac
15802 ac_MKDIR_P=$MKDIR_P
15803 case $MKDIR_P in
15804 [\\/$]* | ?:[\\/]* ) ;;
15805 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15806 esac
15807 _ACEOF
15808
15809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15810 # If the template does not know about datarootdir, expand it.
15811 # FIXME: This hack should be removed a few years after 2.60.
15812 ac_datarootdir_hack=; ac_datarootdir_seen=
15813 ac_sed_dataroot='
15814 /datarootdir/ {
15815 p
15816 q
15817 }
15818 /@datadir@/p
15819 /@docdir@/p
15820 /@infodir@/p
15821 /@localedir@/p
15822 /@mandir@/p'
15823 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15824 *datarootdir*) ac_datarootdir_seen=yes;;
15825 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15827 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15828 _ACEOF
15829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15830 ac_datarootdir_hack='
15831 s&@datadir@&$datadir&g
15832 s&@docdir@&$docdir&g
15833 s&@infodir@&$infodir&g
15834 s&@localedir@&$localedir&g
15835 s&@mandir@&$mandir&g
15836 s&\\\${datarootdir}&$datarootdir&g' ;;
15837 esac
15838 _ACEOF
15839
15840 # Neutralize VPATH when `$srcdir' = `.'.
15841 # Shell code in configure.ac might set extrasub.
15842 # FIXME: do we really want to maintain this feature?
15843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15844 ac_sed_extra="$ac_vpsub
15845 $extrasub
15846 _ACEOF
15847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15848 :t
15849 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15850 s|@configure_input@|$ac_sed_conf_input|;t t
15851 s&@top_builddir@&$ac_top_builddir_sub&;t t
15852 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15853 s&@srcdir@&$ac_srcdir&;t t
15854 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15855 s&@top_srcdir@&$ac_top_srcdir&;t t
15856 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15857 s&@builddir@&$ac_builddir&;t t
15858 s&@abs_builddir@&$ac_abs_builddir&;t t
15859 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15860 s&@INSTALL@&$ac_INSTALL&;t t
15861 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15862 $ac_datarootdir_hack
15863 "
15864 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15865 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15866
15867 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15868 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15869 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15870 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15872 which seems to be undefined. Please make sure it is defined" >&5
15873 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15874 which seems to be undefined. Please make sure it is defined" >&2;}
15875
15876 rm -f "$ac_tmp/stdin"
15877 case $ac_file in
15878 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15879 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15880 esac \
15881 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15882 ;;
15883 :H)
15884 #
15885 # CONFIG_HEADER
15886 #
15887 if test x"$ac_file" != x-; then
15888 {
15889 $as_echo "/* $configure_input */" \
15890 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15891 } >"$ac_tmp/config.h" \
15892 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15893 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15895 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15896 else
15897 rm -f "$ac_file"
15898 mv "$ac_tmp/config.h" "$ac_file" \
15899 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15900 fi
15901 else
15902 $as_echo "/* $configure_input */" \
15903 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15904 || as_fn_error $? "could not create -" "$LINENO" 5
15905 fi
15906 # Compute "$ac_file"'s index in $config_headers.
15907 _am_arg="$ac_file"
15908 _am_stamp_count=1
15909 for _am_header in $config_headers :; do
15910 case $_am_header in
15911 $_am_arg | $_am_arg:* )
15912 break ;;
15913 * )
15914 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15915 esac
15916 done
15917 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15918 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15919 X"$_am_arg" : 'X\(//\)[^/]' \| \
15920 X"$_am_arg" : 'X\(//\)$' \| \
15921 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15922 $as_echo X"$_am_arg" |
15923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15924 s//\1/
15925 q
15926 }
15927 /^X\(\/\/\)[^/].*/{
15928 s//\1/
15929 q
15930 }
15931 /^X\(\/\/\)$/{
15932 s//\1/
15933 q
15934 }
15935 /^X\(\/\).*/{
15936 s//\1/
15937 q
15938 }
15939 s/.*/./; q'`/stamp-h$_am_stamp_count
15940 ;;
15941
15942 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15943 $as_echo "$as_me: executing $ac_file commands" >&6;}
15944 ;;
15945 esac
15946
15947
15948 case $ac_file$ac_mode in
15949 "libtool":C)
15950
15951 # See if we are running on zsh, and set the options which allow our
15952 # commands through without removal of \ escapes.
15953 if test -n "${ZSH_VERSION+set}" ; then
15954 setopt NO_GLOB_SUBST
15955 fi
15956
15957 cfgfile="${ofile}T"
15958 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15959 $RM "$cfgfile"
15960
15961 cat <<_LT_EOF >> "$cfgfile"
15962 #! $SHELL
15963
15964 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15965 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15966 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15967 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15968 #
15969 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15970 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15971 # Written by Gordon Matzigkeit, 1996
15972 #
15973 # This file is part of GNU Libtool.
15974 #
15975 # GNU Libtool is free software; you can redistribute it and/or
15976 # modify it under the terms of the GNU General Public License as
15977 # published by the Free Software Foundation; either version 2 of
15978 # the License, or (at your option) any later version.
15979 #
15980 # As a special exception to the GNU General Public License,
15981 # if you distribute this file as part of a program or library that
15982 # is built using GNU Libtool, you may include this file under the
15983 # same distribution terms that you use for the rest of that program.
15984 #
15985 # GNU Libtool is distributed in the hope that it will be useful,
15986 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15987 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15988 # GNU General Public License for more details.
15989 #
15990 # You should have received a copy of the GNU General Public License
15991 # along with GNU Libtool; see the file COPYING. If not, a copy
15992 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15993 # obtained by writing to the Free Software Foundation, Inc.,
15994 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15995
15996
15997 # The names of the tagged configurations supported by this script.
15998 available_tags=""
15999
16000 # ### BEGIN LIBTOOL CONFIG
16001
16002 # Which release of libtool.m4 was used?
16003 macro_version=$macro_version
16004 macro_revision=$macro_revision
16005
16006 # Whether or not to build shared libraries.
16007 build_libtool_libs=$enable_shared
16008
16009 # Whether or not to build static libraries.
16010 build_old_libs=$enable_static
16011
16012 # What type of objects to build.
16013 pic_mode=$pic_mode
16014
16015 # Whether or not to optimize for fast installation.
16016 fast_install=$enable_fast_install
16017
16018 # Shell to use when invoking shell scripts.
16019 SHELL=$lt_SHELL
16020
16021 # An echo program that protects backslashes.
16022 ECHO=$lt_ECHO
16023
16024 # The host system.
16025 host_alias=$host_alias
16026 host=$host
16027 host_os=$host_os
16028
16029 # The build system.
16030 build_alias=$build_alias
16031 build=$build
16032 build_os=$build_os
16033
16034 # A sed program that does not truncate output.
16035 SED=$lt_SED
16036
16037 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16038 Xsed="\$SED -e 1s/^X//"
16039
16040 # A grep program that handles long lines.
16041 GREP=$lt_GREP
16042
16043 # An ERE matcher.
16044 EGREP=$lt_EGREP
16045
16046 # A literal string matcher.
16047 FGREP=$lt_FGREP
16048
16049 # A BSD- or MS-compatible name lister.
16050 NM=$lt_NM
16051
16052 # Whether we need soft or hard links.
16053 LN_S=$lt_LN_S
16054
16055 # What is the maximum length of a command?
16056 max_cmd_len=$max_cmd_len
16057
16058 # Object file suffix (normally "o").
16059 objext=$ac_objext
16060
16061 # Executable file suffix (normally "").
16062 exeext=$exeext
16063
16064 # whether the shell understands "unset".
16065 lt_unset=$lt_unset
16066
16067 # turn spaces into newlines.
16068 SP2NL=$lt_lt_SP2NL
16069
16070 # turn newlines into spaces.
16071 NL2SP=$lt_lt_NL2SP
16072
16073 # An object symbol dumper.
16074 OBJDUMP=$lt_OBJDUMP
16075
16076 # Method to check whether dependent libraries are shared objects.
16077 deplibs_check_method=$lt_deplibs_check_method
16078
16079 # Command to use when deplibs_check_method == "file_magic".
16080 file_magic_cmd=$lt_file_magic_cmd
16081
16082 # The archiver.
16083 AR=$lt_AR
16084 AR_FLAGS=$lt_AR_FLAGS
16085
16086 # A symbol stripping program.
16087 STRIP=$lt_STRIP
16088
16089 # Commands used to install an old-style archive.
16090 RANLIB=$lt_RANLIB
16091 old_postinstall_cmds=$lt_old_postinstall_cmds
16092 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16093
16094 # Whether to use a lock for old archive extraction.
16095 lock_old_archive_extraction=$lock_old_archive_extraction
16096
16097 # A C compiler.
16098 LTCC=$lt_CC
16099
16100 # LTCC compiler flags.
16101 LTCFLAGS=$lt_CFLAGS
16102
16103 # Take the output of nm and produce a listing of raw symbols and C names.
16104 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16105
16106 # Transform the output of nm in a proper C declaration.
16107 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16108
16109 # Transform the output of nm in a C name address pair.
16110 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16111
16112 # Transform the output of nm in a C name address pair when lib prefix is needed.
16113 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16114
16115 # The name of the directory that contains temporary libtool files.
16116 objdir=$objdir
16117
16118 # Used to examine libraries when file_magic_cmd begins with "file".
16119 MAGIC_CMD=$MAGIC_CMD
16120
16121 # Must we lock files when doing compilation?
16122 need_locks=$lt_need_locks
16123
16124 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16125 DSYMUTIL=$lt_DSYMUTIL
16126
16127 # Tool to change global to local symbols on Mac OS X.
16128 NMEDIT=$lt_NMEDIT
16129
16130 # Tool to manipulate fat objects and archives on Mac OS X.
16131 LIPO=$lt_LIPO
16132
16133 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16134 OTOOL=$lt_OTOOL
16135
16136 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16137 OTOOL64=$lt_OTOOL64
16138
16139 # Old archive suffix (normally "a").
16140 libext=$libext
16141
16142 # Shared library suffix (normally ".so").
16143 shrext_cmds=$lt_shrext_cmds
16144
16145 # The commands to extract the exported symbol list from a shared archive.
16146 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16147
16148 # Variables whose values should be saved in libtool wrapper scripts and
16149 # restored at link time.
16150 variables_saved_for_relink=$lt_variables_saved_for_relink
16151
16152 # Do we need the "lib" prefix for modules?
16153 need_lib_prefix=$need_lib_prefix
16154
16155 # Do we need a version for libraries?
16156 need_version=$need_version
16157
16158 # Library versioning type.
16159 version_type=$version_type
16160
16161 # Shared library runtime path variable.
16162 runpath_var=$runpath_var
16163
16164 # Shared library path variable.
16165 shlibpath_var=$shlibpath_var
16166
16167 # Is shlibpath searched before the hard-coded library search path?
16168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16169
16170 # Format of library name prefix.
16171 libname_spec=$lt_libname_spec
16172
16173 # List of archive names. First name is the real one, the rest are links.
16174 # The last name is the one that the linker finds with -lNAME
16175 library_names_spec=$lt_library_names_spec
16176
16177 # The coded name of the library, if different from the real name.
16178 soname_spec=$lt_soname_spec
16179
16180 # Permission mode override for installation of shared libraries.
16181 install_override_mode=$lt_install_override_mode
16182
16183 # Command to use after installation of a shared archive.
16184 postinstall_cmds=$lt_postinstall_cmds
16185
16186 # Command to use after uninstallation of a shared archive.
16187 postuninstall_cmds=$lt_postuninstall_cmds
16188
16189 # Commands used to finish a libtool library installation in a directory.
16190 finish_cmds=$lt_finish_cmds
16191
16192 # As "finish_cmds", except a single script fragment to be evaled but
16193 # not shown.
16194 finish_eval=$lt_finish_eval
16195
16196 # Whether we should hardcode library paths into libraries.
16197 hardcode_into_libs=$hardcode_into_libs
16198
16199 # Compile-time system search path for libraries.
16200 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16201
16202 # Run-time system search path for libraries.
16203 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16204
16205 # Whether dlopen is supported.
16206 dlopen_support=$enable_dlopen
16207
16208 # Whether dlopen of programs is supported.
16209 dlopen_self=$enable_dlopen_self
16210
16211 # Whether dlopen of statically linked programs is supported.
16212 dlopen_self_static=$enable_dlopen_self_static
16213
16214 # Commands to strip libraries.
16215 old_striplib=$lt_old_striplib
16216 striplib=$lt_striplib
16217
16218
16219 # The linker used to build libraries.
16220 LD=$lt_LD
16221
16222 # How to create reloadable object files.
16223 reload_flag=$lt_reload_flag
16224 reload_cmds=$lt_reload_cmds
16225
16226 # Commands used to build an old-style archive.
16227 old_archive_cmds=$lt_old_archive_cmds
16228
16229 # A language specific compiler.
16230 CC=$lt_compiler
16231
16232 # Is the compiler the GNU compiler?
16233 with_gcc=$GCC
16234
16235 # Compiler flag to turn off builtin functions.
16236 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16237
16238 # How to pass a linker flag through the compiler.
16239 wl=$lt_lt_prog_compiler_wl
16240
16241 # Additional compiler flags for building library objects.
16242 pic_flag=$lt_lt_prog_compiler_pic
16243
16244 # Compiler flag to prevent dynamic linking.
16245 link_static_flag=$lt_lt_prog_compiler_static
16246
16247 # Does compiler simultaneously support -c and -o options?
16248 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16249
16250 # Whether or not to add -lc for building shared libraries.
16251 build_libtool_need_lc=$archive_cmds_need_lc
16252
16253 # Whether or not to disallow shared libs when runtime libs are static.
16254 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16255
16256 # Compiler flag to allow reflexive dlopens.
16257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16258
16259 # Compiler flag to generate shared objects directly from archives.
16260 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16261
16262 # Whether the compiler copes with passing no objects directly.
16263 compiler_needs_object=$lt_compiler_needs_object
16264
16265 # Create an old-style archive from a shared archive.
16266 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16267
16268 # Create a temporary old-style archive to link instead of a shared archive.
16269 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16270
16271 # Commands used to build a shared archive.
16272 archive_cmds=$lt_archive_cmds
16273 archive_expsym_cmds=$lt_archive_expsym_cmds
16274
16275 # Commands used to build a loadable module if different from building
16276 # a shared archive.
16277 module_cmds=$lt_module_cmds
16278 module_expsym_cmds=$lt_module_expsym_cmds
16279
16280 # Whether we are building with GNU ld or not.
16281 with_gnu_ld=$lt_with_gnu_ld
16282
16283 # Flag that allows shared libraries with undefined symbols to be built.
16284 allow_undefined_flag=$lt_allow_undefined_flag
16285
16286 # Flag that enforces no undefined symbols.
16287 no_undefined_flag=$lt_no_undefined_flag
16288
16289 # Flag to hardcode \$libdir into a binary during linking.
16290 # This must work even if \$libdir does not exist
16291 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16292
16293 # If ld is used when linking, flag to hardcode \$libdir into a binary
16294 # during linking. This must work even if \$libdir does not exist.
16295 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16296
16297 # Whether we need a single "-rpath" flag with a separated argument.
16298 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16299
16300 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16301 # DIR into the resulting binary.
16302 hardcode_direct=$hardcode_direct
16303
16304 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16305 # DIR into the resulting binary and the resulting library dependency is
16306 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16307 # library is relocated.
16308 hardcode_direct_absolute=$hardcode_direct_absolute
16309
16310 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16311 # into the resulting binary.
16312 hardcode_minus_L=$hardcode_minus_L
16313
16314 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16315 # into the resulting binary.
16316 hardcode_shlibpath_var=$hardcode_shlibpath_var
16317
16318 # Set to "yes" if building a shared library automatically hardcodes DIR
16319 # into the library and all subsequent libraries and executables linked
16320 # against it.
16321 hardcode_automatic=$hardcode_automatic
16322
16323 # Set to yes if linker adds runtime paths of dependent libraries
16324 # to runtime path list.
16325 inherit_rpath=$inherit_rpath
16326
16327 # Whether libtool must link a program against all its dependency libraries.
16328 link_all_deplibs=$link_all_deplibs
16329
16330 # Fix the shell variable \$srcfile for the compiler.
16331 fix_srcfile_path=$lt_fix_srcfile_path
16332
16333 # Set to "yes" if exported symbols are required.
16334 always_export_symbols=$always_export_symbols
16335
16336 # The commands to list exported symbols.
16337 export_symbols_cmds=$lt_export_symbols_cmds
16338
16339 # Symbols that should not be listed in the preloaded symbols.
16340 exclude_expsyms=$lt_exclude_expsyms
16341
16342 # Symbols that must always be exported.
16343 include_expsyms=$lt_include_expsyms
16344
16345 # Commands necessary for linking programs (against libraries) with templates.
16346 prelink_cmds=$lt_prelink_cmds
16347
16348 # Specify filename containing input files.
16349 file_list_spec=$lt_file_list_spec
16350
16351 # How to hardcode a shared library path into an executable.
16352 hardcode_action=$hardcode_action
16353
16354 # ### END LIBTOOL CONFIG
16355
16356 _LT_EOF
16357
16358 case $host_os in
16359 aix3*)
16360 cat <<\_LT_EOF >> "$cfgfile"
16361 # AIX sometimes has problems with the GCC collect2 program. For some
16362 # reason, if we set the COLLECT_NAMES environment variable, the problems
16363 # vanish in a puff of smoke.
16364 if test "X${COLLECT_NAMES+set}" != Xset; then
16365 COLLECT_NAMES=
16366 export COLLECT_NAMES
16367 fi
16368 _LT_EOF
16369 ;;
16370 esac
16371
16372
16373 ltmain="$ac_aux_dir/ltmain.sh"
16374
16375
16376 # We use sed instead of cat because bash on DJGPP gets confused if
16377 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16378 # text mode, it properly converts lines to CR/LF. This bash problem
16379 # is reportedly fixed, but why not run on old versions too?
16380 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16381 || (rm -f "$cfgfile"; exit 1)
16382
16383 case $xsi_shell in
16384 yes)
16385 cat << \_LT_EOF >> "$cfgfile"
16386
16387 # func_dirname file append nondir_replacement
16388 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16389 # otherwise set result to NONDIR_REPLACEMENT.
16390 func_dirname ()
16391 {
16392 case ${1} in
16393 */*) func_dirname_result="${1%/*}${2}" ;;
16394 * ) func_dirname_result="${3}" ;;
16395 esac
16396 }
16397
16398 # func_basename file
16399 func_basename ()
16400 {
16401 func_basename_result="${1##*/}"
16402 }
16403
16404 # func_dirname_and_basename file append nondir_replacement
16405 # perform func_basename and func_dirname in a single function
16406 # call:
16407 # dirname: Compute the dirname of FILE. If nonempty,
16408 # add APPEND to the result, otherwise set result
16409 # to NONDIR_REPLACEMENT.
16410 # value returned in "$func_dirname_result"
16411 # basename: Compute filename of FILE.
16412 # value retuned in "$func_basename_result"
16413 # Implementation must be kept synchronized with func_dirname
16414 # and func_basename. For efficiency, we do not delegate to
16415 # those functions but instead duplicate the functionality here.
16416 func_dirname_and_basename ()
16417 {
16418 case ${1} in
16419 */*) func_dirname_result="${1%/*}${2}" ;;
16420 * ) func_dirname_result="${3}" ;;
16421 esac
16422 func_basename_result="${1##*/}"
16423 }
16424
16425 # func_stripname prefix suffix name
16426 # strip PREFIX and SUFFIX off of NAME.
16427 # PREFIX and SUFFIX must not contain globbing or regex special
16428 # characters, hashes, percent signs, but SUFFIX may contain a leading
16429 # dot (in which case that matches only a dot).
16430 func_stripname ()
16431 {
16432 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16433 # positional parameters, so assign one to ordinary parameter first.
16434 func_stripname_result=${3}
16435 func_stripname_result=${func_stripname_result#"${1}"}
16436 func_stripname_result=${func_stripname_result%"${2}"}
16437 }
16438
16439 # func_opt_split
16440 func_opt_split ()
16441 {
16442 func_opt_split_opt=${1%%=*}
16443 func_opt_split_arg=${1#*=}
16444 }
16445
16446 # func_lo2o object
16447 func_lo2o ()
16448 {
16449 case ${1} in
16450 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16451 *) func_lo2o_result=${1} ;;
16452 esac
16453 }
16454
16455 # func_xform libobj-or-source
16456 func_xform ()
16457 {
16458 func_xform_result=${1%.*}.lo
16459 }
16460
16461 # func_arith arithmetic-term...
16462 func_arith ()
16463 {
16464 func_arith_result=$(( $* ))
16465 }
16466
16467 # func_len string
16468 # STRING may not start with a hyphen.
16469 func_len ()
16470 {
16471 func_len_result=${#1}
16472 }
16473
16474 _LT_EOF
16475 ;;
16476 *) # Bourne compatible functions.
16477 cat << \_LT_EOF >> "$cfgfile"
16478
16479 # func_dirname file append nondir_replacement
16480 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16481 # otherwise set result to NONDIR_REPLACEMENT.
16482 func_dirname ()
16483 {
16484 # Extract subdirectory from the argument.
16485 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16486 if test "X$func_dirname_result" = "X${1}"; then
16487 func_dirname_result="${3}"
16488 else
16489 func_dirname_result="$func_dirname_result${2}"
16490 fi
16491 }
16492
16493 # func_basename file
16494 func_basename ()
16495 {
16496 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16497 }
16498
16499
16500 # func_stripname prefix suffix name
16501 # strip PREFIX and SUFFIX off of NAME.
16502 # PREFIX and SUFFIX must not contain globbing or regex special
16503 # characters, hashes, percent signs, but SUFFIX may contain a leading
16504 # dot (in which case that matches only a dot).
16505 # func_strip_suffix prefix name
16506 func_stripname ()
16507 {
16508 case ${2} in
16509 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16510 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16511 esac
16512 }
16513
16514 # sed scripts:
16515 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16516 my_sed_long_arg='1s/^-[^=]*=//'
16517
16518 # func_opt_split
16519 func_opt_split ()
16520 {
16521 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16522 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16523 }
16524
16525 # func_lo2o object
16526 func_lo2o ()
16527 {
16528 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16529 }
16530
16531 # func_xform libobj-or-source
16532 func_xform ()
16533 {
16534 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16535 }
16536
16537 # func_arith arithmetic-term...
16538 func_arith ()
16539 {
16540 func_arith_result=`expr "$@"`
16541 }
16542
16543 # func_len string
16544 # STRING may not start with a hyphen.
16545 func_len ()
16546 {
16547 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16548 }
16549
16550 _LT_EOF
16551 esac
16552
16553 case $lt_shell_append in
16554 yes)
16555 cat << \_LT_EOF >> "$cfgfile"
16556
16557 # func_append var value
16558 # Append VALUE to the end of shell variable VAR.
16559 func_append ()
16560 {
16561 eval "$1+=\$2"
16562 }
16563 _LT_EOF
16564 ;;
16565 *)
16566 cat << \_LT_EOF >> "$cfgfile"
16567
16568 # func_append var value
16569 # Append VALUE to the end of shell variable VAR.
16570 func_append ()
16571 {
16572 eval "$1=\$$1\$2"
16573 }
16574
16575 _LT_EOF
16576 ;;
16577 esac
16578
16579
16580 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16581 || (rm -f "$cfgfile"; exit 1)
16582
16583 mv -f "$cfgfile" "$ofile" ||
16584 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16585 chmod +x "$ofile"
16586
16587 ;;
16588 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16589 # Older Autoconf quotes --file arguments for eval, but not when files
16590 # are listed without --file. Let's play safe and only enable the eval
16591 # if we detect the quoting.
16592 case $CONFIG_FILES in
16593 *\'*) eval set x "$CONFIG_FILES" ;;
16594 *) set x $CONFIG_FILES ;;
16595 esac
16596 shift
16597 for mf
16598 do
16599 # Strip MF so we end up with the name of the file.
16600 mf=`echo "$mf" | sed -e 's/:.*$//'`
16601 # Check whether this is an Automake generated Makefile or not.
16602 # We used to match only the files named 'Makefile.in', but
16603 # some people rename them; so instead we look at the file content.
16604 # Grep'ing the first line is not enough: some people post-process
16605 # each Makefile.in and add a new line on top of each file to say so.
16606 # Grep'ing the whole file is not good either: AIX grep has a line
16607 # limit of 2048, but all sed's we know have understand at least 4000.
16608 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16609 dirpart=`$as_dirname -- "$mf" ||
16610 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16611 X"$mf" : 'X\(//\)[^/]' \| \
16612 X"$mf" : 'X\(//\)$' \| \
16613 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16614 $as_echo X"$mf" |
16615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16616 s//\1/
16617 q
16618 }
16619 /^X\(\/\/\)[^/].*/{
16620 s//\1/
16621 q
16622 }
16623 /^X\(\/\/\)$/{
16624 s//\1/
16625 q
16626 }
16627 /^X\(\/\).*/{
16628 s//\1/
16629 q
16630 }
16631 s/.*/./; q'`
16632 else
16633 continue
16634 fi
16635 # Extract the definition of DEPDIR, am__include, and am__quote
16636 # from the Makefile without running 'make'.
16637 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16638 test -z "$DEPDIR" && continue
16639 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16640 test -z "$am__include" && continue
16641 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16642 # Find all dependency output files, they are included files with
16643 # $(DEPDIR) in their names. We invoke sed twice because it is the
16644 # simplest approach to changing $(DEPDIR) to its actual value in the
16645 # expansion.
16646 for file in `sed -n "
16647 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16648 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16649 # Make sure the directory exists.
16650 test -f "$dirpart/$file" && continue
16651 fdir=`$as_dirname -- "$file" ||
16652 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16653 X"$file" : 'X\(//\)[^/]' \| \
16654 X"$file" : 'X\(//\)$' \| \
16655 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16656 $as_echo X"$file" |
16657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16658 s//\1/
16659 q
16660 }
16661 /^X\(\/\/\)[^/].*/{
16662 s//\1/
16663 q
16664 }
16665 /^X\(\/\/\)$/{
16666 s//\1/
16667 q
16668 }
16669 /^X\(\/\).*/{
16670 s//\1/
16671 q
16672 }
16673 s/.*/./; q'`
16674 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16675 # echo "creating $dirpart/$file"
16676 echo '# dummy' > "$dirpart/$file"
16677 done
16678 done
16679 }
16680 ;;
16681 "aarch64/Makefile":C) sed -n \
16682 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16683 /^srcdir / { s:= := ../:; s:$:/aarch64:; }
16684 p
16685 }' \
16686 <Make-common.sim >aarch64/Makesim1.tmp
16687 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >aarch64/Makesim2.tmp
16688 sed -e '/^## COMMON_PRE_/ r aarch64/Makesim1.tmp' \
16689 -e '/^## COMMON_POST_/ r aarch64/Makesim2.tmp' \
16690 <aarch64/Makefile.sim >aarch64/Makefile
16691 rm -f aarch64/Makesim1.tmp aarch64/Makesim2.tmp
16692 ;;
16693 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
16694 "arm/Makefile":C) sed -n \
16695 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16696 /^srcdir / { s:= := ../:; s:$:/arm:; }
16697 p
16698 }' \
16699 <Make-common.sim >arm/Makesim1.tmp
16700 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >arm/Makesim2.tmp
16701 sed -e '/^## COMMON_PRE_/ r arm/Makesim1.tmp' \
16702 -e '/^## COMMON_POST_/ r arm/Makesim2.tmp' \
16703 <arm/Makefile.sim >arm/Makefile
16704 rm -f arm/Makesim1.tmp arm/Makesim2.tmp
16705 ;;
16706 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
16707 "avr/Makefile":C) sed -n \
16708 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16709 /^srcdir / { s:= := ../:; s:$:/avr:; }
16710 p
16711 }' \
16712 <Make-common.sim >avr/Makesim1.tmp
16713 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >avr/Makesim2.tmp
16714 sed -e '/^## COMMON_PRE_/ r avr/Makesim1.tmp' \
16715 -e '/^## COMMON_POST_/ r avr/Makesim2.tmp' \
16716 <avr/Makefile.sim >avr/Makefile
16717 rm -f avr/Makesim1.tmp avr/Makesim2.tmp
16718 ;;
16719 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
16720 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
16721 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
16722 "cr16/Makefile":C) sed -n \
16723 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16724 /^srcdir / { s:= := ../:; s:$:/cr16:; }
16725 p
16726 }' \
16727 <Make-common.sim >cr16/Makesim1.tmp
16728 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cr16/Makesim2.tmp
16729 sed -e '/^## COMMON_PRE_/ r cr16/Makesim1.tmp' \
16730 -e '/^## COMMON_POST_/ r cr16/Makesim2.tmp' \
16731 <cr16/Makefile.sim >cr16/Makefile
16732 rm -f cr16/Makesim1.tmp cr16/Makesim2.tmp
16733 ;;
16734 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
16735 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
16736 "d10v/Makefile":C) sed -n \
16737 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16738 /^srcdir / { s:= := ../:; s:$:/d10v:; }
16739 p
16740 }' \
16741 <Make-common.sim >d10v/Makesim1.tmp
16742 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >d10v/Makesim2.tmp
16743 sed -e '/^## COMMON_PRE_/ r d10v/Makesim1.tmp' \
16744 -e '/^## COMMON_POST_/ r d10v/Makesim2.tmp' \
16745 <d10v/Makefile.sim >d10v/Makefile
16746 rm -f d10v/Makesim1.tmp d10v/Makesim2.tmp
16747 ;;
16748 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
16749 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
16750 "ft32/Makefile":C) sed -n \
16751 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16752 /^srcdir / { s:= := ../:; s:$:/ft32:; }
16753 p
16754 }' \
16755 <Make-common.sim >ft32/Makesim1.tmp
16756 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >ft32/Makesim2.tmp
16757 sed -e '/^## COMMON_PRE_/ r ft32/Makesim1.tmp' \
16758 -e '/^## COMMON_POST_/ r ft32/Makesim2.tmp' \
16759 <ft32/Makefile.sim >ft32/Makefile
16760 rm -f ft32/Makesim1.tmp ft32/Makesim2.tmp
16761 ;;
16762 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
16763 "h8300/Makefile":C) sed -n \
16764 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16765 /^srcdir / { s:= := ../:; s:$:/h8300:; }
16766 p
16767 }' \
16768 <Make-common.sim >h8300/Makesim1.tmp
16769 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >h8300/Makesim2.tmp
16770 sed -e '/^## COMMON_PRE_/ r h8300/Makesim1.tmp' \
16771 -e '/^## COMMON_POST_/ r h8300/Makesim2.tmp' \
16772 <h8300/Makefile.sim >h8300/Makefile
16773 rm -f h8300/Makesim1.tmp h8300/Makesim2.tmp
16774 ;;
16775 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
16776 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
16777 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
16778 "m32c/Makefile":C) sed -n \
16779 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16780 /^srcdir / { s:= := ../:; s:$:/m32c:; }
16781 p
16782 }' \
16783 <Make-common.sim >m32c/Makesim1.tmp
16784 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32c/Makesim2.tmp
16785 sed -e '/^## COMMON_PRE_/ r m32c/Makesim1.tmp' \
16786 -e '/^## COMMON_POST_/ r m32c/Makesim2.tmp' \
16787 <m32c/Makefile.sim >m32c/Makefile
16788 rm -f m32c/Makesim1.tmp m32c/Makesim2.tmp
16789 ;;
16790 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
16791 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
16792 "m68hc11/Makefile":C) sed -n \
16793 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16794 /^srcdir / { s:= := ../:; s:$:/m68hc11:; }
16795 p
16796 }' \
16797 <Make-common.sim >m68hc11/Makesim1.tmp
16798 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m68hc11/Makesim2.tmp
16799 sed -e '/^## COMMON_PRE_/ r m68hc11/Makesim1.tmp' \
16800 -e '/^## COMMON_POST_/ r m68hc11/Makesim2.tmp' \
16801 <m68hc11/Makefile.sim >m68hc11/Makefile
16802 rm -f m68hc11/Makesim1.tmp m68hc11/Makesim2.tmp
16803 ;;
16804 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
16805 "mcore/Makefile":C) sed -n \
16806 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16807 /^srcdir / { s:= := ../:; s:$:/mcore:; }
16808 p
16809 }' \
16810 <Make-common.sim >mcore/Makesim1.tmp
16811 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mcore/Makesim2.tmp
16812 sed -e '/^## COMMON_PRE_/ r mcore/Makesim1.tmp' \
16813 -e '/^## COMMON_POST_/ r mcore/Makesim2.tmp' \
16814 <mcore/Makefile.sim >mcore/Makefile
16815 rm -f mcore/Makesim1.tmp mcore/Makesim2.tmp
16816 ;;
16817 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
16818 "microblaze/Makefile":C) sed -n \
16819 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16820 /^srcdir / { s:= := ../:; s:$:/microblaze:; }
16821 p
16822 }' \
16823 <Make-common.sim >microblaze/Makesim1.tmp
16824 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >microblaze/Makesim2.tmp
16825 sed -e '/^## COMMON_PRE_/ r microblaze/Makesim1.tmp' \
16826 -e '/^## COMMON_POST_/ r microblaze/Makesim2.tmp' \
16827 <microblaze/Makefile.sim >microblaze/Makefile
16828 rm -f microblaze/Makesim1.tmp microblaze/Makesim2.tmp
16829 ;;
16830 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
16831 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
16832 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
16833 "moxie/Makefile":C) sed -n \
16834 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16835 /^srcdir / { s:= := ../:; s:$:/moxie:; }
16836 p
16837 }' \
16838 <Make-common.sim >moxie/Makesim1.tmp
16839 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >moxie/Makesim2.tmp
16840 sed -e '/^## COMMON_PRE_/ r moxie/Makesim1.tmp' \
16841 -e '/^## COMMON_POST_/ r moxie/Makesim2.tmp' \
16842 <moxie/Makefile.sim >moxie/Makefile
16843 rm -f moxie/Makesim1.tmp moxie/Makesim2.tmp
16844 ;;
16845 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
16846 "msp430/Makefile":C) sed -n \
16847 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16848 /^srcdir / { s:= := ../:; s:$:/msp430:; }
16849 p
16850 }' \
16851 <Make-common.sim >msp430/Makesim1.tmp
16852 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >msp430/Makesim2.tmp
16853 sed -e '/^## COMMON_PRE_/ r msp430/Makesim1.tmp' \
16854 -e '/^## COMMON_POST_/ r msp430/Makesim2.tmp' \
16855 <msp430/Makefile.sim >msp430/Makefile
16856 rm -f msp430/Makesim1.tmp msp430/Makesim2.tmp
16857 ;;
16858 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
16859 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
16860 "pru/Makefile":C) sed -n \
16861 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16862 /^srcdir / { s:= := ../:; s:$:/pru:; }
16863 p
16864 }' \
16865 <Make-common.sim >pru/Makesim1.tmp
16866 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >pru/Makesim2.tmp
16867 sed -e '/^## COMMON_PRE_/ r pru/Makesim1.tmp' \
16868 -e '/^## COMMON_POST_/ r pru/Makesim2.tmp' \
16869 <pru/Makefile.sim >pru/Makefile
16870 rm -f pru/Makesim1.tmp pru/Makesim2.tmp
16871 ;;
16872 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
16873 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
16874 "rl78/Makefile":C) sed -n \
16875 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16876 /^srcdir / { s:= := ../:; s:$:/rl78:; }
16877 p
16878 }' \
16879 <Make-common.sim >rl78/Makesim1.tmp
16880 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rl78/Makesim2.tmp
16881 sed -e '/^## COMMON_PRE_/ r rl78/Makesim1.tmp' \
16882 -e '/^## COMMON_POST_/ r rl78/Makesim2.tmp' \
16883 <rl78/Makefile.sim >rl78/Makefile
16884 rm -f rl78/Makesim1.tmp rl78/Makesim2.tmp
16885 ;;
16886 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
16887 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
16888 "sh/Makefile":C) sed -n \
16889 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16890 /^srcdir / { s:= := ../:; s:$:/sh:; }
16891 p
16892 }' \
16893 <Make-common.sim >sh/Makesim1.tmp
16894 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >sh/Makesim2.tmp
16895 sed -e '/^## COMMON_PRE_/ r sh/Makesim1.tmp' \
16896 -e '/^## COMMON_POST_/ r sh/Makesim2.tmp' \
16897 <sh/Makefile.sim >sh/Makefile
16898 rm -f sh/Makesim1.tmp sh/Makesim2.tmp
16899 ;;
16900 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
16901 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
16902 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
16903 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
16904 "example-synacor/Makefile":C) sed -n \
16905 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16906 /^srcdir / { s:= := ../:; s:$:/example-synacor:; }
16907 p
16908 }' \
16909 <Make-common.sim >example-synacor/Makesim1.tmp
16910 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >example-synacor/Makesim2.tmp
16911 sed -e '/^## COMMON_PRE_/ r example-synacor/Makesim1.tmp' \
16912 -e '/^## COMMON_POST_/ r example-synacor/Makesim2.tmp' \
16913 <example-synacor/Makefile.sim >example-synacor/Makefile
16914 rm -f example-synacor/Makesim1.tmp example-synacor/Makesim2.tmp
16915 ;;
16916 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
16917
16918 esac
16919 done # for ac_tag
16920
16921
16922 as_fn_exit 0
16923 _ACEOF
16924 ac_clean_files=$ac_clean_files_save
16925
16926 test $ac_write_fail = 0 ||
16927 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16928
16929
16930 # configure is writing to config.log, and then calls config.status.
16931 # config.status does its own redirection, appending to config.log.
16932 # Unfortunately, on DOS this fails, as config.log is still kept open
16933 # by configure, so config.status won't be able to write to it; its
16934 # output is simply discarded. So we exec the FD to /dev/null,
16935 # effectively closing config.log, so it can be properly (re)opened and
16936 # appended to by config.status. When coming back to configure, we
16937 # need to make the FD available again.
16938 if test "$no_create" != yes; then
16939 ac_cs_success=:
16940 ac_config_status_args=
16941 test "$silent" = yes &&
16942 ac_config_status_args="$ac_config_status_args --quiet"
16943 exec 5>/dev/null
16944 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16945 exec 5>>config.log
16946 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16947 # would make configure fail if this is the last instruction.
16948 $ac_cs_success || as_fn_exit 1
16949 fi
16950
16951 #
16952 # CONFIG_SUBDIRS section.
16953 #
16954 if test "$no_recursion" != yes; then
16955
16956 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16957 # so they do not pile up.
16958 ac_sub_configure_args=
16959 ac_prev=
16960 eval "set x $ac_configure_args"
16961 shift
16962 for ac_arg
16963 do
16964 if test -n "$ac_prev"; then
16965 ac_prev=
16966 continue
16967 fi
16968 case $ac_arg in
16969 -cache-file | --cache-file | --cache-fil | --cache-fi \
16970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16971 ac_prev=cache_file ;;
16972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16974 | --c=*)
16975 ;;
16976 --config-cache | -C)
16977 ;;
16978 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16979 ac_prev=srcdir ;;
16980 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16981 ;;
16982 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16983 ac_prev=prefix ;;
16984 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16985 ;;
16986 --disable-option-checking)
16987 ;;
16988 *)
16989 case $ac_arg in
16990 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16991 esac
16992 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16993 esac
16994 done
16995
16996 # Always prepend --prefix to ensure using the same prefix
16997 # in subdir configurations.
16998 ac_arg="--prefix=$prefix"
16999 case $ac_arg in
17000 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17001 esac
17002 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17003
17004 # Pass --silent
17005 if test "$silent" = yes; then
17006 ac_sub_configure_args="--silent $ac_sub_configure_args"
17007 fi
17008
17009 # Always prepend --disable-option-checking to silence warnings, since
17010 # different subdirs can have different --enable and --with options.
17011 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17012
17013 ac_popdir=`pwd`
17014 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17015
17016 # Do not complain, so a configure script can configure whichever
17017 # parts of a large source tree are present.
17018 test -d "$srcdir/$ac_dir" || continue
17019
17020 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17021 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17022 $as_echo "$ac_msg" >&6
17023 as_dir="$ac_dir"; as_fn_mkdir_p
17024 ac_builddir=.
17025
17026 case "$ac_dir" in
17027 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17028 *)
17029 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17030 # A ".." for each directory in $ac_dir_suffix.
17031 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17032 case $ac_top_builddir_sub in
17033 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17034 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17035 esac ;;
17036 esac
17037 ac_abs_top_builddir=$ac_pwd
17038 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17039 # for backward compatibility:
17040 ac_top_builddir=$ac_top_build_prefix
17041
17042 case $srcdir in
17043 .) # We are building in place.
17044 ac_srcdir=.
17045 ac_top_srcdir=$ac_top_builddir_sub
17046 ac_abs_top_srcdir=$ac_pwd ;;
17047 [\\/]* | ?:[\\/]* ) # Absolute name.
17048 ac_srcdir=$srcdir$ac_dir_suffix;
17049 ac_top_srcdir=$srcdir
17050 ac_abs_top_srcdir=$srcdir ;;
17051 *) # Relative name.
17052 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17053 ac_top_srcdir=$ac_top_build_prefix$srcdir
17054 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17055 esac
17056 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17057
17058
17059 cd "$ac_dir"
17060
17061 # Check for guested configure; otherwise get Cygnus style configure.
17062 if test -f "$ac_srcdir/configure.gnu"; then
17063 ac_sub_configure=$ac_srcdir/configure.gnu
17064 elif test -f "$ac_srcdir/configure"; then
17065 ac_sub_configure=$ac_srcdir/configure
17066 elif test -f "$ac_srcdir/configure.in"; then
17067 # This should be Cygnus configure.
17068 ac_sub_configure=$ac_aux_dir/configure
17069 else
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17071 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17072 ac_sub_configure=
17073 fi
17074
17075 # The recursion is here.
17076 if test -n "$ac_sub_configure"; then
17077 # Make the cache file name correct relative to the subdirectory.
17078 case $cache_file in
17079 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17080 *) # Relative name.
17081 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17082 esac
17083
17084 { $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
17085 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17086 # The eval makes quoting arguments work.
17087 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17088 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17089 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17090 fi
17091
17092 cd "$ac_popdir"
17093 done
17094 fi
17095 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17097 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17098 fi
17099