]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/configure
sim: move sim-inline to the common code
[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_INLINE
642 SIM_ENABLE_IGEN_FALSE
643 SIM_ENABLE_IGEN_TRUE
644 subdirs
645 SIM_PRIMARY_TARGET
646 AM_BACKSLASH
647 AM_DEFAULT_VERBOSITY
648 AM_DEFAULT_V
649 AM_V
650 am__fastdepCC_FALSE
651 am__fastdepCC_TRUE
652 CCDEPMODE
653 am__nodep
654 AMDEPBACKSLASH
655 AMDEP_FALSE
656 AMDEP_TRUE
657 am__quote
658 am__include
659 DEPDIR
660 am__untar
661 am__tar
662 AMTAR
663 am__leading_dot
664 SET_MAKE
665 mkdir_p
666 MKDIR_P
667 INSTALL_STRIP_PROGRAM
668 install_sh
669 MAKEINFO
670 AUTOHEADER
671 AUTOMAKE
672 AUTOCONF
673 ACLOCAL
674 VERSION
675 PACKAGE
676 CYGPATH_W
677 am__isrc
678 MAINT
679 MAINTAINER_MODE_FALSE
680 MAINTAINER_MODE_TRUE
681 lt_cv_dlopen_libs
682 OTOOL64
683 OTOOL
684 LIPO
685 NMEDIT
686 DSYMUTIL
687 AWK
688 STRIP
689 OBJDUMP
690 LN_S
691 NM
692 ac_ct_DUMPBIN
693 DUMPBIN
694 LD
695 FGREP
696 SED
697 LIBTOOL
698 PLUGINS_FALSE
699 PLUGINS_TRUE
700 zlibinc
701 zlibdir
702 CATOBJEXT
703 GENCAT
704 INSTOBJEXT
705 DATADIRNAME
706 CATALOGS
707 POSUB
708 GMSGFMT
709 XGETTEXT
710 INCINTL
711 LIBINTL_DEP
712 LIBINTL
713 USE_NLS
714 LIBOBJS
715 C_DIALECT
716 RANLIB
717 AR
718 LDFLAGS_FOR_BUILD
719 CFLAGS_FOR_BUILD
720 RANLIB_FOR_BUILD
721 CC_FOR_BUILD
722 AR_FOR_BUILD
723 DTC
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 EGREP
728 GREP
729 CPP
730 OBJEXT
731 EXEEXT
732 ac_ct_CC
733 CPPFLAGS
734 LDFLAGS
735 CFLAGS
736 CC
737 target_os
738 target_vendor
739 target_cpu
740 target
741 host_os
742 host_vendor
743 host_cpu
744 host
745 build_os
746 build_vendor
747 build_cpu
748 build
749 REPORT_BUGS_TEXI
750 REPORT_BUGS_TO
751 PKGVERSION
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL
790 WERROR_CFLAGS
791 WARN_CFLAGS'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 with_pkgversion
796 with_bugurl
797 with_system_zlib
798 enable_plugins
799 enable_shared
800 enable_static
801 with_pic
802 enable_fast_install
803 with_gnu_ld
804 enable_libtool_lock
805 enable_maintainer_mode
806 enable_dependency_tracking
807 enable_silent_rules
808 enable_sim
809 enable_example_sims
810 enable_targets
811 enable_sim_alignment
812 enable_sim_assert
813 enable_sim_debug
814 enable_sim_endian
815 enable_sim_environment
816 enable_sim_inline
817 enable_sim_profile
818 enable_sim_stdio
819 enable_sim_trace
820 enable_werror
821 enable_build_warnings
822 enable_sim_build_warnings
823 '
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CC
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
832 CPP'
833 ac_subdirs_all='aarch64
834 arm
835 avr
836 bfin
837 bpf
838 cr16
839 cris
840 d10v
841 frv
842 h8300
843 iq2000
844 lm32
845 m32c
846 m32r
847 m68hc11
848 mcore
849 microblaze
850 mips
851 mn10300
852 moxie
853 msp430
854 or1k
855 pru
856 riscv
857 rl78
858 rx
859 sh
860 erc32
861 ppc
862 ft32
863 v850
864 example-synacor'
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-sim-debug=opts Enable debugging flags (for developers of the sim
1506 itself)
1507 --enable-sim-endian=endian
1508 Specify target byte endian orientation
1509 --enable-sim-environment=environment
1510 Specify mixed, user, virtual or operating
1511 environment
1512 --enable-sim-inline=inlines
1513 Specify which functions should be inlined
1514 --enable-sim-profile=opts
1515 Enable profiling flags
1516 --enable-sim-stdio Specify whether to use stdio for console
1517 input/output
1518 --enable-sim-trace=opts Enable tracing of simulated programs
1519 --enable-werror treat compile warnings as errors
1520 --enable-build-warnings enable build-time compiler warnings if gcc is used
1521 --enable-sim-build-warnings
1522 enable SIM specific build-time compiler warnings if
1523 gcc is used
1524
1525 Optional Packages:
1526 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1527 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1528 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1529 --with-bugurl=URL Direct users to URL to report a bug
1530 --with-system-zlib use installed libz
1531 --with-pic try to use only PIC/non-PIC objects [default=use
1532 both]
1533 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1534
1535 Some influential environment variables:
1536 CC C compiler command
1537 CFLAGS C compiler flags
1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1539 nonstandard directory <lib dir>
1540 LIBS libraries to pass to the linker, e.g. -l<library>
1541 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1542 you have headers in a nonstandard directory <include dir>
1543 CPP C preprocessor
1544
1545 Use these variables to override the choices made by `configure' or to help
1546 it to find libraries and programs with nonstandard names/locations.
1547
1548 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
1549 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
1550 _ACEOF
1551 ac_status=$?
1552 fi
1553
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559 continue
1560 ac_builddir=.
1561
1562 case "$ac_dir" in
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *)
1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 esac ;;
1572 esac
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1577
1578 case $srcdir in
1579 .) # We are building in place.
1580 ac_srcdir=.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1587 *) # Relative name.
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591 esac
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1602 else
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604 fi || ac_status=$?
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1606 done
1607 fi
1608
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1611 cat <<\_ACEOF
1612 sim configure 0
1613 generated by GNU Autoconf 2.69
1614
1615 Copyright (C) 2012 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1618 _ACEOF
1619 exit
1620 fi
1621
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1625
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1634 case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_compile
1663
1664 # ac_fn_c_try_cpp LINENO
1665 # ----------------------
1666 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_cpp ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_cpp conftest.$ac_ext"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } > conftest.i && {
1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1
1695 fi
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_cpp
1700
1701 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1704 # the include files in INCLUDES and setting the cache variable VAR
1705 # accordingly.
1706 ac_fn_c_check_header_mongrel ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if eval \${$3+:} false; then :
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714 fi
1715 eval ac_res=\$$3
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1718 else
1719 # Is the header compilable?
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1721 $as_echo_n "checking $2 usability... " >&6; }
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1724 $4
1725 #include <$2>
1726 _ACEOF
1727 if ac_fn_c_try_compile "$LINENO"; then :
1728 ac_header_compiler=yes
1729 else
1730 ac_header_compiler=no
1731 fi
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1734 $as_echo "$ac_header_compiler" >&6; }
1735
1736 # Is the header present?
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1738 $as_echo_n "checking $2 presence... " >&6; }
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_cpp "$LINENO"; then :
1744 ac_header_preproc=yes
1745 else
1746 ac_header_preproc=no
1747 fi
1748 rm -f conftest.err conftest.i conftest.$ac_ext
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1750 $as_echo "$ac_header_preproc" >&6; }
1751
1752 # So? What about this header?
1753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1754 yes:no: )
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1756 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1758 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1759 ;;
1760 no:yes:* )
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1762 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1764 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1766 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1768 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1770 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1771 ( $as_echo "## -------------------------------------------------------------------------------------- ##
1772 ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
1773 ## -------------------------------------------------------------------------------------- ##"
1774 ) | sed "s/^/$as_me: WARNING: /" >&2
1775 ;;
1776 esac
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1781 else
1782 eval "$3=\$ac_header_compiler"
1783 fi
1784 eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 fi
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_header_mongrel
1791
1792 # ac_fn_c_try_run LINENO
1793 # ----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795 # that executables *can* be run.
1796 ac_fn_c_try_run ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>&5
1807 ac_status=$?
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810 { { case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_try") 2>&5
1817 ac_status=$?
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; }; }; then :
1820 ac_retval=0
1821 else
1822 $as_echo "$as_me: program exited with status $ac_status" >&5
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=$ac_status
1827 fi
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1831
1832 } # ac_fn_c_try_run
1833
1834 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1835 # -------------------------------------------------------
1836 # Tests whether HEADER exists and can be compiled using the include files in
1837 # INCLUDES, setting the cache variable VAR accordingly.
1838 ac_fn_c_check_header_compile ()
1839 {
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845 else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 $4
1849 #include <$2>
1850 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"; then :
1852 eval "$3=yes"
1853 else
1854 eval "$3=no"
1855 fi
1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857 fi
1858 eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862
1863 } # ac_fn_c_check_header_compile
1864
1865 # ac_fn_c_try_link LINENO
1866 # -----------------------
1867 # Try to link conftest.$ac_ext, and return whether this succeeded.
1868 ac_fn_c_try_link ()
1869 {
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 rm -f conftest.$ac_objext conftest$ac_exeext
1872 if { { ac_try="$ac_link"
1873 case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>conftest.err
1880 ac_status=$?
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1885 fi
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } && {
1888 test -z "$ac_c_werror_flag" ||
1889 test ! -s conftest.err
1890 } && test -s conftest$ac_exeext && {
1891 test "$cross_compiling" = yes ||
1892 test -x conftest$ac_exeext
1893 }; then :
1894 ac_retval=0
1895 else
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1898
1899 ac_retval=1
1900 fi
1901 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1902 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1903 # interfere with the next link command; also delete a directory that is
1904 # left behind by Apple's compiler. We do this before executing the actions.
1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 as_fn_set_status $ac_retval
1908
1909 } # ac_fn_c_try_link
1910
1911 # ac_fn_c_check_func LINENO FUNC VAR
1912 # ----------------------------------
1913 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1914 ac_fn_c_check_func ()
1915 {
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval \${$3+:} false; then :
1920 $as_echo_n "(cached) " >&6
1921 else
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1926 #define $2 innocuous_$2
1927
1928 /* System header to define __stub macros and hopefully few prototypes,
1929 which can conflict with char $2 (); below.
1930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1931 <limits.h> exists even on freestanding compilers. */
1932
1933 #ifdef __STDC__
1934 # include <limits.h>
1935 #else
1936 # include <assert.h>
1937 #endif
1938
1939 #undef $2
1940
1941 /* Override any GCC internal prototype to avoid an error.
1942 Use char because int might match the return type of a GCC
1943 builtin and then its argument prototype would still apply. */
1944 #ifdef __cplusplus
1945 extern "C"
1946 #endif
1947 char $2 ();
1948 /* The GNU C library defines this for functions which it implements
1949 to always fail with ENOSYS. Some functions are actually named
1950 something starting with __ and the normal name is an alias. */
1951 #if defined __stub_$2 || defined __stub___$2
1952 choke me
1953 #endif
1954
1955 int
1956 main ()
1957 {
1958 return $2 ();
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_link "$LINENO"; then :
1964 eval "$3=yes"
1965 else
1966 eval "$3=no"
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext \
1969 conftest$ac_exeext conftest.$ac_ext
1970 fi
1971 eval ac_res=\$$3
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976 } # ac_fn_c_check_func
1977
1978 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1979 # ----------------------------------------------------
1980 # Tries to find if the field MEMBER exists in type AGGR, after including
1981 # INCLUDES, setting cache variable VAR accordingly.
1982 ac_fn_c_check_member ()
1983 {
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1986 $as_echo_n "checking for $2.$3... " >&6; }
1987 if eval \${$4+:} false; then :
1988 $as_echo_n "(cached) " >&6
1989 else
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 $5
1993 int
1994 main ()
1995 {
1996 static $2 ac_aggr;
1997 if (ac_aggr.$3)
1998 return 0;
1999 ;
2000 return 0;
2001 }
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 eval "$4=yes"
2005 else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 $5
2009 int
2010 main ()
2011 {
2012 static $2 ac_aggr;
2013 if (sizeof ac_aggr.$3)
2014 return 0;
2015 ;
2016 return 0;
2017 }
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 eval "$4=yes"
2021 else
2022 eval "$4=no"
2023 fi
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 fi
2028 eval ac_res=\$$4
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032
2033 } # ac_fn_c_check_member
2034
2035 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2036 # ---------------------------------------------
2037 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2038 # accordingly.
2039 ac_fn_c_check_decl ()
2040 {
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 as_decl_name=`echo $2|sed 's/ *(.*//'`
2043 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2045 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2046 if eval \${$3+:} false; then :
2047 $as_echo_n "(cached) " >&6
2048 else
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2051 $4
2052 int
2053 main ()
2054 {
2055 #ifndef $as_decl_name
2056 #ifdef __cplusplus
2057 (void) $as_decl_use;
2058 #else
2059 (void) $as_decl_name;
2060 #endif
2061 #endif
2062
2063 ;
2064 return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 eval "$3=yes"
2069 else
2070 eval "$3=no"
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 fi
2074 eval ac_res=\$$3
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079 } # ac_fn_c_check_decl
2080
2081 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2082 # -------------------------------------------
2083 # Tests whether TYPE exists after having included INCLUDES, setting cache
2084 # variable VAR accordingly.
2085 ac_fn_c_check_type ()
2086 {
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if eval \${$3+:} false; then :
2091 $as_echo_n "(cached) " >&6
2092 else
2093 eval "$3=no"
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2096 $4
2097 int
2098 main ()
2099 {
2100 if (sizeof ($2))
2101 return 0;
2102 ;
2103 return 0;
2104 }
2105 _ACEOF
2106 if ac_fn_c_try_compile "$LINENO"; then :
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2109 $4
2110 int
2111 main ()
2112 {
2113 if (sizeof (($2)))
2114 return 0;
2115 ;
2116 return 0;
2117 }
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120
2121 else
2122 eval "$3=yes"
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 fi
2128 eval ac_res=\$$3
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132
2133 } # ac_fn_c_check_type
2134 cat >config.log <<_ACEOF
2135 This file contains any messages produced by compilers while
2136 running configure, to aid debugging if configure makes a mistake.
2137
2138 It was created by sim $as_me 0, which was
2139 generated by GNU Autoconf 2.69. Invocation command line was
2140
2141 $ $0 $@
2142
2143 _ACEOF
2144 exec 5>>config.log
2145 {
2146 cat <<_ASUNAME
2147 ## --------- ##
2148 ## Platform. ##
2149 ## --------- ##
2150
2151 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2152 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2153 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2154 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2155 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2156
2157 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2158 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2159
2160 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2161 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2162 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2163 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2164 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2165 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2166 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2167
2168 _ASUNAME
2169
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2172 do
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
2175 $as_echo "PATH: $as_dir"
2176 done
2177 IFS=$as_save_IFS
2178
2179 } >&5
2180
2181 cat >&5 <<_ACEOF
2182
2183
2184 ## ----------- ##
2185 ## Core tests. ##
2186 ## ----------- ##
2187
2188 _ACEOF
2189
2190
2191 # Keep a trace of the command line.
2192 # Strip out --no-create and --no-recursion so they do not pile up.
2193 # Strip out --silent because we don't want to record it for future runs.
2194 # Also quote any args containing shell meta-characters.
2195 # Make two passes to allow for proper duplicate-argument suppression.
2196 ac_configure_args=
2197 ac_configure_args0=
2198 ac_configure_args1=
2199 ac_must_keep_next=false
2200 for ac_pass in 1 2
2201 do
2202 for ac_arg
2203 do
2204 case $ac_arg in
2205 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2207 | -silent | --silent | --silen | --sile | --sil)
2208 continue ;;
2209 *\'*)
2210 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2211 esac
2212 case $ac_pass in
2213 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2214 2)
2215 as_fn_append ac_configure_args1 " '$ac_arg'"
2216 if test $ac_must_keep_next = true; then
2217 ac_must_keep_next=false # Got value, back to normal.
2218 else
2219 case $ac_arg in
2220 *=* | --config-cache | -C | -disable-* | --disable-* \
2221 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2222 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2223 | -with-* | --with-* | -without-* | --without-* | --x)
2224 case "$ac_configure_args0 " in
2225 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2226 esac
2227 ;;
2228 -* ) ac_must_keep_next=true ;;
2229 esac
2230 fi
2231 as_fn_append ac_configure_args " '$ac_arg'"
2232 ;;
2233 esac
2234 done
2235 done
2236 { ac_configure_args0=; unset ac_configure_args0;}
2237 { ac_configure_args1=; unset ac_configure_args1;}
2238
2239 # When interrupted or exit'd, cleanup temporary files, and complete
2240 # config.log. We remove comments because anyway the quotes in there
2241 # would cause problems or look ugly.
2242 # WARNING: Use '\'' to represent an apostrophe within the trap.
2243 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2244 trap 'exit_status=$?
2245 # Save into config.log some information that might help in debugging.
2246 {
2247 echo
2248
2249 $as_echo "## ---------------- ##
2250 ## Cache variables. ##
2251 ## ---------------- ##"
2252 echo
2253 # The following way of writing the cache mishandles newlines in values,
2254 (
2255 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2256 eval ac_val=\$$ac_var
2257 case $ac_val in #(
2258 *${as_nl}*)
2259 case $ac_var in #(
2260 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2261 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2262 esac
2263 case $ac_var in #(
2264 _ | IFS | as_nl) ;; #(
2265 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2266 *) { eval $ac_var=; unset $ac_var;} ;;
2267 esac ;;
2268 esac
2269 done
2270 (set) 2>&1 |
2271 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2272 *${as_nl}ac_space=\ *)
2273 sed -n \
2274 "s/'\''/'\''\\\\'\'''\''/g;
2275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2276 ;; #(
2277 *)
2278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2279 ;;
2280 esac |
2281 sort
2282 )
2283 echo
2284
2285 $as_echo "## ----------------- ##
2286 ## Output variables. ##
2287 ## ----------------- ##"
2288 echo
2289 for ac_var in $ac_subst_vars
2290 do
2291 eval ac_val=\$$ac_var
2292 case $ac_val in
2293 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2294 esac
2295 $as_echo "$ac_var='\''$ac_val'\''"
2296 done | sort
2297 echo
2298
2299 if test -n "$ac_subst_files"; then
2300 $as_echo "## ------------------- ##
2301 ## File substitutions. ##
2302 ## ------------------- ##"
2303 echo
2304 for ac_var in $ac_subst_files
2305 do
2306 eval ac_val=\$$ac_var
2307 case $ac_val in
2308 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2309 esac
2310 $as_echo "$ac_var='\''$ac_val'\''"
2311 done | sort
2312 echo
2313 fi
2314
2315 if test -s confdefs.h; then
2316 $as_echo "## ----------- ##
2317 ## confdefs.h. ##
2318 ## ----------- ##"
2319 echo
2320 cat confdefs.h
2321 echo
2322 fi
2323 test "$ac_signal" != 0 &&
2324 $as_echo "$as_me: caught signal $ac_signal"
2325 $as_echo "$as_me: exit $exit_status"
2326 } >&5
2327 rm -f core *.core core.conftest.* &&
2328 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2329 exit $exit_status
2330 ' 0
2331 for ac_signal in 1 2 13 15; do
2332 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2333 done
2334 ac_signal=0
2335
2336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2337 rm -f -r conftest* confdefs.h
2338
2339 $as_echo "/* confdefs.h */" > confdefs.h
2340
2341 # Predefined preprocessor variables.
2342
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_NAME "$PACKAGE_NAME"
2345 _ACEOF
2346
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2349 _ACEOF
2350
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2353 _ACEOF
2354
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_STRING "$PACKAGE_STRING"
2357 _ACEOF
2358
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2361 _ACEOF
2362
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_URL "$PACKAGE_URL"
2365 _ACEOF
2366
2367
2368 # Let the site file select an alternate cache file if it wants to.
2369 # Prefer an explicitly selected file to automatically selected ones.
2370 ac_site_file1=NONE
2371 ac_site_file2=NONE
2372 if test -n "$CONFIG_SITE"; then
2373 # We do not want a PATH search for config.site.
2374 case $CONFIG_SITE in #((
2375 -*) ac_site_file1=./$CONFIG_SITE;;
2376 */*) ac_site_file1=$CONFIG_SITE;;
2377 *) ac_site_file1=./$CONFIG_SITE;;
2378 esac
2379 elif test "x$prefix" != xNONE; then
2380 ac_site_file1=$prefix/share/config.site
2381 ac_site_file2=$prefix/etc/config.site
2382 else
2383 ac_site_file1=$ac_default_prefix/share/config.site
2384 ac_site_file2=$ac_default_prefix/etc/config.site
2385 fi
2386 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2387 do
2388 test "x$ac_site_file" = xNONE && continue
2389 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2391 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2392 sed 's/^/| /' "$ac_site_file" >&5
2393 . "$ac_site_file" \
2394 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396 as_fn_error $? "failed to load site script $ac_site_file
2397 See \`config.log' for more details" "$LINENO" 5; }
2398 fi
2399 done
2400
2401 if test -r "$cache_file"; then
2402 # Some versions of bash will fail to source /dev/null (special files
2403 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2404 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2406 $as_echo "$as_me: loading cache $cache_file" >&6;}
2407 case $cache_file in
2408 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2409 *) . "./$cache_file";;
2410 esac
2411 fi
2412 else
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2414 $as_echo "$as_me: creating cache $cache_file" >&6;}
2415 >$cache_file
2416 fi
2417
2418 as_fn_append ac_header_list " dlfcn.h"
2419 as_fn_append ac_header_list " fcntl.h"
2420 as_fn_append ac_header_list " fpu_control.h"
2421 as_fn_append ac_header_list " termios.h"
2422 as_fn_append ac_header_list " unistd.h"
2423 as_fn_append ac_header_list " utime.h"
2424 as_fn_append ac_header_list " linux/if_tun.h"
2425 as_fn_append ac_header_list " linux/mii.h"
2426 as_fn_append ac_header_list " linux/types.h"
2427 as_fn_append ac_header_list " net/if.h"
2428 as_fn_append ac_header_list " netinet/in.h"
2429 as_fn_append ac_header_list " netinet/tcp.h"
2430 as_fn_append ac_header_list " sys/ioctl.h"
2431 as_fn_append ac_header_list " sys/mman.h"
2432 as_fn_append ac_header_list " sys/mount.h"
2433 as_fn_append ac_header_list " sys/param.h"
2434 as_fn_append ac_header_list " sys/resource.h"
2435 as_fn_append ac_header_list " sys/socket.h"
2436 as_fn_append ac_header_list " sys/stat.h"
2437 as_fn_append ac_header_list " sys/statfs.h"
2438 as_fn_append ac_header_list " sys/termio.h"
2439 as_fn_append ac_header_list " sys/termios.h"
2440 as_fn_append ac_header_list " sys/types.h"
2441 as_fn_append ac_header_list " sys/vfs.h"
2442 as_fn_append ac_func_list " __setfpucw"
2443 as_fn_append ac_func_list " access"
2444 as_fn_append ac_func_list " aint"
2445 as_fn_append ac_func_list " anint"
2446 as_fn_append ac_func_list " cfgetispeed"
2447 as_fn_append ac_func_list " cfgetospeed"
2448 as_fn_append ac_func_list " cfsetispeed"
2449 as_fn_append ac_func_list " cfsetospeed"
2450 as_fn_append ac_func_list " chdir"
2451 as_fn_append ac_func_list " chmod"
2452 as_fn_append ac_func_list " dup"
2453 as_fn_append ac_func_list " dup2"
2454 as_fn_append ac_func_list " execv"
2455 as_fn_append ac_func_list " execve"
2456 as_fn_append ac_func_list " fcntl"
2457 as_fn_append ac_func_list " fork"
2458 as_fn_append ac_func_list " fstat"
2459 as_fn_append ac_func_list " fstatfs"
2460 as_fn_append ac_func_list " ftruncate"
2461 as_fn_append ac_func_list " getdirentries"
2462 as_fn_append ac_func_list " getegid"
2463 as_fn_append ac_func_list " geteuid"
2464 as_fn_append ac_func_list " getgid"
2465 as_fn_append ac_func_list " getpid"
2466 as_fn_append ac_func_list " getppid"
2467 as_fn_append ac_func_list " getrusage"
2468 as_fn_append ac_func_list " gettimeofday"
2469 as_fn_append ac_func_list " getuid"
2470 as_fn_append ac_func_list " ioctl"
2471 as_fn_append ac_func_list " kill"
2472 as_fn_append ac_func_list " link"
2473 as_fn_append ac_func_list " lseek"
2474 as_fn_append ac_func_list " mmap"
2475 as_fn_append ac_func_list " munmap"
2476 as_fn_append ac_func_list " pipe"
2477 as_fn_append ac_func_list " posix_fallocate"
2478 as_fn_append ac_func_list " pread"
2479 as_fn_append ac_func_list " rmdir"
2480 as_fn_append ac_func_list " setregid"
2481 as_fn_append ac_func_list " setreuid"
2482 as_fn_append ac_func_list " setgid"
2483 as_fn_append ac_func_list " setuid"
2484 as_fn_append ac_func_list " sigaction"
2485 as_fn_append ac_func_list " sigprocmask"
2486 as_fn_append ac_func_list " sqrt"
2487 as_fn_append ac_func_list " stat"
2488 as_fn_append ac_func_list " strsignal"
2489 as_fn_append ac_func_list " symlink"
2490 as_fn_append ac_func_list " tcdrain"
2491 as_fn_append ac_func_list " tcflow"
2492 as_fn_append ac_func_list " tcflush"
2493 as_fn_append ac_func_list " tcgetattr"
2494 as_fn_append ac_func_list " tcgetpgrp"
2495 as_fn_append ac_func_list " tcsendbreak"
2496 as_fn_append ac_func_list " tcsetattr"
2497 as_fn_append ac_func_list " tcsetpgrp"
2498 as_fn_append ac_func_list " time"
2499 as_fn_append ac_func_list " truncate"
2500 as_fn_append ac_func_list " umask"
2501 as_fn_append ac_func_list " unlink"
2502 as_fn_append ac_func_list " utime"
2503 # Check that the precious variables saved in the cache have kept the same
2504 # value.
2505 ac_cache_corrupted=false
2506 for ac_var in $ac_precious_vars; do
2507 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2508 eval ac_new_set=\$ac_env_${ac_var}_set
2509 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2510 eval ac_new_val=\$ac_env_${ac_var}_value
2511 case $ac_old_set,$ac_new_set in
2512 set,)
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2514 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2515 ac_cache_corrupted=: ;;
2516 ,set)
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2518 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2519 ac_cache_corrupted=: ;;
2520 ,);;
2521 *)
2522 if test "x$ac_old_val" != "x$ac_new_val"; then
2523 # differences in whitespace do not lead to failure.
2524 ac_old_val_w=`echo x $ac_old_val`
2525 ac_new_val_w=`echo x $ac_new_val`
2526 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2528 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2529 ac_cache_corrupted=:
2530 else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2532 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2533 eval $ac_var=\$ac_old_val
2534 fi
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2536 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2538 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2539 fi;;
2540 esac
2541 # Pass precious variables to config.status.
2542 if test "$ac_new_set" = set; then
2543 case $ac_new_val in
2544 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2545 *) ac_arg=$ac_var=$ac_new_val ;;
2546 esac
2547 case " $ac_configure_args " in
2548 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2549 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2550 esac
2551 fi
2552 done
2553 if $ac_cache_corrupted; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2557 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2558 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2559 fi
2560 ## -------------------- ##
2561 ## Main body of script. ##
2562 ## -------------------- ##
2563
2564 ac_ext=c
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569
2570
2571
2572
2573
2574
2575
2576
2577 # Check whether --with-pkgversion was given.
2578 if test "${with_pkgversion+set}" = set; then :
2579 withval=$with_pkgversion; case "$withval" in
2580 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2581 no) PKGVERSION= ;;
2582 *) PKGVERSION="($withval) " ;;
2583 esac
2584 else
2585 PKGVERSION="(SIM) "
2586
2587 fi
2588
2589
2590
2591
2592 cat >>confdefs.h <<_ACEOF
2593 #define PKGVERSION "$PKGVERSION"
2594 _ACEOF
2595
2596
2597
2598 # Check whether --with-bugurl was given.
2599 if test "${with_bugurl+set}" = set; then :
2600 withval=$with_bugurl; case "$withval" in
2601 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2602 no) BUGURL=
2603 ;;
2604 *) BUGURL="$withval"
2605 ;;
2606 esac
2607 else
2608 BUGURL="$PACKAGE_BUGREPORT"
2609
2610 fi
2611
2612 case ${BUGURL} in
2613 "")
2614 REPORT_BUGS_TO=
2615 REPORT_BUGS_TEXI=
2616 ;;
2617 *)
2618 REPORT_BUGS_TO="<$BUGURL>"
2619 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2620 ;;
2621 esac;
2622
2623
2624
2625
2626 cat >>confdefs.h <<_ACEOF
2627 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2628 _ACEOF
2629
2630
2631 ac_config_headers="$ac_config_headers config.h"
2632
2633
2634 ac_aux_dir=
2635 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2636 if test -f "$ac_dir/install-sh"; then
2637 ac_aux_dir=$ac_dir
2638 ac_install_sh="$ac_aux_dir/install-sh -c"
2639 break
2640 elif test -f "$ac_dir/install.sh"; then
2641 ac_aux_dir=$ac_dir
2642 ac_install_sh="$ac_aux_dir/install.sh -c"
2643 break
2644 elif test -f "$ac_dir/shtool"; then
2645 ac_aux_dir=$ac_dir
2646 ac_install_sh="$ac_aux_dir/shtool install -c"
2647 break
2648 fi
2649 done
2650 if test -z "$ac_aux_dir"; then
2651 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2652 fi
2653
2654 # These three variables are undocumented and unsupported,
2655 # and are intended to be withdrawn in a future Autoconf release.
2656 # They can cause serious problems if a builder's source tree is in a directory
2657 # whose full name contains unusual characters.
2658 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2659 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2660 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2661
2662
2663 # Make sure we can run config.sub.
2664 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2665 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2666
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2668 $as_echo_n "checking build system type... " >&6; }
2669 if ${ac_cv_build+:} false; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 ac_build_alias=$build_alias
2673 test "x$ac_build_alias" = x &&
2674 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2675 test "x$ac_build_alias" = x &&
2676 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2677 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2678 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2679
2680 fi
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2682 $as_echo "$ac_cv_build" >&6; }
2683 case $ac_cv_build in
2684 *-*-*) ;;
2685 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2686 esac
2687 build=$ac_cv_build
2688 ac_save_IFS=$IFS; IFS='-'
2689 set x $ac_cv_build
2690 shift
2691 build_cpu=$1
2692 build_vendor=$2
2693 shift; shift
2694 # Remember, the first character of IFS is used to create $*,
2695 # except with old shells:
2696 build_os=$*
2697 IFS=$ac_save_IFS
2698 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2699
2700
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2702 $as_echo_n "checking host system type... " >&6; }
2703 if ${ac_cv_host+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 if test "x$host_alias" = x; then
2707 ac_cv_host=$ac_cv_build
2708 else
2709 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2710 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2711 fi
2712
2713 fi
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2715 $as_echo "$ac_cv_host" >&6; }
2716 case $ac_cv_host in
2717 *-*-*) ;;
2718 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2719 esac
2720 host=$ac_cv_host
2721 ac_save_IFS=$IFS; IFS='-'
2722 set x $ac_cv_host
2723 shift
2724 host_cpu=$1
2725 host_vendor=$2
2726 shift; shift
2727 # Remember, the first character of IFS is used to create $*,
2728 # except with old shells:
2729 host_os=$*
2730 IFS=$ac_save_IFS
2731 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2732
2733
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2735 $as_echo_n "checking target system type... " >&6; }
2736 if ${ac_cv_target+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 if test "x$target_alias" = x; then
2740 ac_cv_target=$ac_cv_host
2741 else
2742 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2743 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2744 fi
2745
2746 fi
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2748 $as_echo "$ac_cv_target" >&6; }
2749 case $ac_cv_target in
2750 *-*-*) ;;
2751 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2752 esac
2753 target=$ac_cv_target
2754 ac_save_IFS=$IFS; IFS='-'
2755 set x $ac_cv_target
2756 shift
2757 target_cpu=$1
2758 target_vendor=$2
2759 shift; shift
2760 # Remember, the first character of IFS is used to create $*,
2761 # except with old shells:
2762 target_os=$*
2763 IFS=$ac_save_IFS
2764 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2765
2766
2767 # The aliases save the names the user supplied, while $host etc.
2768 # will get canonicalized.
2769 test -n "$target_alias" &&
2770 test "$program_prefix$program_suffix$program_transform_name" = \
2771 NONENONEs,x,x, &&
2772 program_prefix=${target_alias}-
2773 # Expand $ac_aux_dir to an absolute path.
2774 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2775
2776 ac_ext=c
2777 ac_cpp='$CPP $CPPFLAGS'
2778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 if test -n "$ac_tool_prefix"; then
2782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if ${ac_cv_prog_CC+:} false; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 if test -n "$CC"; then
2790 ac_cv_prog_CC="$CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 CC=$ac_cv_prog_CC
2810 if test -n "$CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2812 $as_echo "$CC" >&6; }
2813 else
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818
2819 fi
2820 if test -z "$ac_cv_prog_CC"; then
2821 ac_ct_CC=$CC
2822 # Extract the first word of "gcc", so it can be a program name with args.
2823 set dummy gcc; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2827 $as_echo_n "(cached) " >&6
2828 else
2829 if test -n "$ac_ct_CC"; then
2830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_ac_ct_CC="gcc"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2842 fi
2843 done
2844 done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2850 if test -n "$ac_ct_CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2852 $as_echo "$ac_ct_CC" >&6; }
2853 else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2856 fi
2857
2858 if test "x$ac_ct_CC" = x; then
2859 CC=""
2860 else
2861 case $cross_compiling:$ac_tool_warned in
2862 yes:)
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2865 ac_tool_warned=yes ;;
2866 esac
2867 CC=$ac_ct_CC
2868 fi
2869 else
2870 CC="$ac_cv_prog_CC"
2871 fi
2872
2873 if test -z "$CC"; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}cc; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if ${ac_cv_prog_CC+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_CC="${ac_tool_prefix}cc"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 CC=$ac_cv_prog_CC
2903 if test -n "$CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2906 else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911
2912 fi
2913 fi
2914 if test -z "$CC"; then
2915 # Extract the first word of "cc", so it can be a program name with args.
2916 set dummy cc; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if ${ac_cv_prog_CC+:} false; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC="$CC" # Let the user override the test.
2924 else
2925 ac_prog_rejected=no
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2934 ac_prog_rejected=yes
2935 continue
2936 fi
2937 ac_cv_prog_CC="cc"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2940 fi
2941 done
2942 done
2943 IFS=$as_save_IFS
2944
2945 if test $ac_prog_rejected = yes; then
2946 # We found a bogon in the path, so make sure we never use it.
2947 set dummy $ac_cv_prog_CC
2948 shift
2949 if test $# != 0; then
2950 # We chose a different compiler from the bogus one.
2951 # However, it has the same basename, so the bogon will be chosen
2952 # first if we set CC to just the basename; use the full file name.
2953 shift
2954 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2955 fi
2956 fi
2957 fi
2958 fi
2959 CC=$ac_cv_prog_CC
2960 if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969 fi
2970 if test -z "$CC"; then
2971 if test -n "$ac_tool_prefix"; then
2972 for ac_prog in cl.exe
2973 do
2974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if ${ac_cv_prog_CC+:} false; then :
2979 $as_echo_n "(cached) " >&6
2980 else
2981 if test -n "$CC"; then
2982 ac_cv_prog_CC="$CC" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2994 fi
2995 done
2996 done
2997 IFS=$as_save_IFS
2998
2999 fi
3000 fi
3001 CC=$ac_cv_prog_CC
3002 if test -n "$CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3005 else
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3008 fi
3009
3010
3011 test -n "$CC" && break
3012 done
3013 fi
3014 if test -z "$CC"; then
3015 ac_ct_CC=$CC
3016 for ac_prog in cl.exe
3017 do
3018 # Extract the first word of "$ac_prog", so it can be a program name with args.
3019 set dummy $ac_prog; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 if test -n "$ac_ct_CC"; then
3026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3035 ac_cv_prog_ac_ct_CC="$ac_prog"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3038 fi
3039 done
3040 done
3041 IFS=$as_save_IFS
3042
3043 fi
3044 fi
3045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3046 if test -n "$ac_ct_CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3048 $as_echo "$ac_ct_CC" >&6; }
3049 else
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054
3055 test -n "$ac_ct_CC" && break
3056 done
3057
3058 if test "x$ac_ct_CC" = x; then
3059 CC=""
3060 else
3061 case $cross_compiling:$ac_tool_warned in
3062 yes:)
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned=yes ;;
3066 esac
3067 CC=$ac_ct_CC
3068 fi
3069 fi
3070
3071 fi
3072
3073
3074 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076 as_fn_error $? "no acceptable C compiler found in \$PATH
3077 See \`config.log' for more details" "$LINENO" 5; }
3078
3079 # Provide some information about the compiler.
3080 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3081 set X $ac_compile
3082 ac_compiler=$2
3083 for ac_option in --version -v -V -qversion; do
3084 { { ac_try="$ac_compiler $ac_option >&5"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3092 ac_status=$?
3093 if test -s conftest.err; then
3094 sed '10a\
3095 ... rest of stderr output deleted ...
3096 10q' conftest.err >conftest.er1
3097 cat conftest.er1 >&5
3098 fi
3099 rm -f conftest.er1 conftest.err
3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101 test $ac_status = 0; }
3102 done
3103
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105 /* end confdefs.h. */
3106
3107 int
3108 main ()
3109 {
3110
3111 ;
3112 return 0;
3113 }
3114 _ACEOF
3115 ac_clean_files_save=$ac_clean_files
3116 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3117 # Try to create an executable without -o first, disregard a.out.
3118 # It will help us diagnose broken compilers, and finding out an intuition
3119 # of exeext.
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3121 $as_echo_n "checking whether the C compiler works... " >&6; }
3122 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3123
3124 # The possible output files:
3125 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3126
3127 ac_rmfiles=
3128 for ac_file in $ac_files
3129 do
3130 case $ac_file in
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3132 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3133 esac
3134 done
3135 rm -f $ac_rmfiles
3136
3137 if { { ac_try="$ac_link_default"
3138 case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_link_default") 2>&5
3145 ac_status=$?
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; then :
3148 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3149 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3150 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3151 # so that the user can short-circuit this test for compilers unknown to
3152 # Autoconf.
3153 for ac_file in $ac_files ''
3154 do
3155 test -f "$ac_file" || continue
3156 case $ac_file in
3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3158 ;;
3159 [ab].out )
3160 # We found the default executable, but exeext='' is most
3161 # certainly right.
3162 break;;
3163 *.* )
3164 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3165 then :; else
3166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167 fi
3168 # We set ac_cv_exeext here because the later test for it is not
3169 # safe: cross compilers may not add the suffix if given an `-o'
3170 # argument, so we may need to know it at that point already.
3171 # Even if this section looks crufty: it has the advantage of
3172 # actually working.
3173 break;;
3174 * )
3175 break;;
3176 esac
3177 done
3178 test "$ac_cv_exeext" = no && ac_cv_exeext=
3179
3180 else
3181 ac_file=''
3182 fi
3183 if test -z "$ac_file"; then :
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 $as_echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 as_fn_error 77 "C compiler cannot create executables
3192 See \`config.log' for more details" "$LINENO" 5; }
3193 else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195 $as_echo "yes" >&6; }
3196 fi
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3198 $as_echo_n "checking for C compiler default output file name... " >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3200 $as_echo "$ac_file" >&6; }
3201 ac_exeext=$ac_cv_exeext
3202
3203 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3204 ac_clean_files=$ac_clean_files_save
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3206 $as_echo_n "checking for suffix of executables... " >&6; }
3207 if { { ac_try="$ac_link"
3208 case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211 esac
3212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213 $as_echo "$ac_try_echo"; } >&5
3214 (eval "$ac_link") 2>&5
3215 ac_status=$?
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }; then :
3218 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3219 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3220 # work properly (i.e., refer to `conftest.exe'), while it won't with
3221 # `rm'.
3222 for ac_file in conftest.exe conftest conftest.*; do
3223 test -f "$ac_file" || continue
3224 case $ac_file in
3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3227 break;;
3228 * ) break;;
3229 esac
3230 done
3231 else
3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3235 See \`config.log' for more details" "$LINENO" 5; }
3236 fi
3237 rm -f conftest conftest$ac_cv_exeext
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3239 $as_echo "$ac_cv_exeext" >&6; }
3240
3241 rm -f conftest.$ac_ext
3242 EXEEXT=$ac_cv_exeext
3243 ac_exeext=$EXEEXT
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3246 #include <stdio.h>
3247 int
3248 main ()
3249 {
3250 FILE *f = fopen ("conftest.out", "w");
3251 return ferror (f) || fclose (f) != 0;
3252
3253 ;
3254 return 0;
3255 }
3256 _ACEOF
3257 ac_clean_files="$ac_clean_files conftest.out"
3258 # Check that the compiler produces executables we can run. If not, either
3259 # the compiler is broken, or we cross compile.
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3261 $as_echo_n "checking whether we are cross compiling... " >&6; }
3262 if test "$cross_compiling" != yes; then
3263 { { ac_try="$ac_link"
3264 case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_link") 2>&5
3271 ac_status=$?
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }
3274 if { ac_try='./conftest$ac_cv_exeext'
3275 { { case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_try") 2>&5
3282 ac_status=$?
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; }; then
3285 cross_compiling=no
3286 else
3287 if test "$cross_compiling" = maybe; then
3288 cross_compiling=yes
3289 else
3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 as_fn_error $? "cannot run C compiled programs.
3293 If you meant to cross compile, use \`--host'.
3294 See \`config.log' for more details" "$LINENO" 5; }
3295 fi
3296 fi
3297 fi
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3299 $as_echo "$cross_compiling" >&6; }
3300
3301 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3302 ac_clean_files=$ac_clean_files_save
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3304 $as_echo_n "checking for suffix of object files... " >&6; }
3305 if ${ac_cv_objext+:} false; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3310
3311 int
3312 main ()
3313 {
3314
3315 ;
3316 return 0;
3317 }
3318 _ACEOF
3319 rm -f conftest.o conftest.obj
3320 if { { ac_try="$ac_compile"
3321 case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324 esac
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 $as_echo "$ac_try_echo"; } >&5
3327 (eval "$ac_compile") 2>&5
3328 ac_status=$?
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }; then :
3331 for ac_file in conftest.o conftest.obj conftest.*; do
3332 test -f "$ac_file" || continue;
3333 case $ac_file in
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3336 break;;
3337 esac
3338 done
3339 else
3340 $as_echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 as_fn_error $? "cannot compute suffix of object files: cannot compile
3346 See \`config.log' for more details" "$LINENO" 5; }
3347 fi
3348 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3349 fi
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3351 $as_echo "$ac_cv_objext" >&6; }
3352 OBJEXT=$ac_cv_objext
3353 ac_objext=$OBJEXT
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3355 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3356 if ${ac_cv_c_compiler_gnu+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3361
3362 int
3363 main ()
3364 {
3365 #ifndef __GNUC__
3366 choke me
3367 #endif
3368
3369 ;
3370 return 0;
3371 }
3372 _ACEOF
3373 if ac_fn_c_try_compile "$LINENO"; then :
3374 ac_compiler_gnu=yes
3375 else
3376 ac_compiler_gnu=no
3377 fi
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3380
3381 fi
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3383 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3384 if test $ac_compiler_gnu = yes; then
3385 GCC=yes
3386 else
3387 GCC=
3388 fi
3389 ac_test_CFLAGS=${CFLAGS+set}
3390 ac_save_CFLAGS=$CFLAGS
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3392 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3393 if ${ac_cv_prog_cc_g+:} false; then :
3394 $as_echo_n "(cached) " >&6
3395 else
3396 ac_save_c_werror_flag=$ac_c_werror_flag
3397 ac_c_werror_flag=yes
3398 ac_cv_prog_cc_g=no
3399 CFLAGS="-g"
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3402
3403 int
3404 main ()
3405 {
3406
3407 ;
3408 return 0;
3409 }
3410 _ACEOF
3411 if ac_fn_c_try_compile "$LINENO"; then :
3412 ac_cv_prog_cc_g=yes
3413 else
3414 CFLAGS=""
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3417
3418 int
3419 main ()
3420 {
3421
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 if ac_fn_c_try_compile "$LINENO"; then :
3427
3428 else
3429 ac_c_werror_flag=$ac_save_c_werror_flag
3430 CFLAGS="-g"
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433
3434 int
3435 main ()
3436 {
3437
3438 ;
3439 return 0;
3440 }
3441 _ACEOF
3442 if ac_fn_c_try_compile "$LINENO"; then :
3443 ac_cv_prog_cc_g=yes
3444 fi
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 ac_c_werror_flag=$ac_save_c_werror_flag
3451 fi
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3453 $as_echo "$ac_cv_prog_cc_g" >&6; }
3454 if test "$ac_test_CFLAGS" = set; then
3455 CFLAGS=$ac_save_CFLAGS
3456 elif test $ac_cv_prog_cc_g = yes; then
3457 if test "$GCC" = yes; then
3458 CFLAGS="-g -O2"
3459 else
3460 CFLAGS="-g"
3461 fi
3462 else
3463 if test "$GCC" = yes; then
3464 CFLAGS="-O2"
3465 else
3466 CFLAGS=
3467 fi
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3470 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3471 if ${ac_cv_prog_cc_c89+:} false; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 ac_cv_prog_cc_c89=no
3475 ac_save_CC=$CC
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3478 #include <stdarg.h>
3479 #include <stdio.h>
3480 struct stat;
3481 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3482 struct buf { int x; };
3483 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3484 static char *e (p, i)
3485 char **p;
3486 int i;
3487 {
3488 return p[i];
3489 }
3490 static char *f (char * (*g) (char **, int), char **p, ...)
3491 {
3492 char *s;
3493 va_list v;
3494 va_start (v,p);
3495 s = g (p, va_arg (v,int));
3496 va_end (v);
3497 return s;
3498 }
3499
3500 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3501 function prototypes and stuff, but not '\xHH' hex character constants.
3502 These don't provoke an error unfortunately, instead are silently treated
3503 as 'x'. The following induces an error, until -std is added to get
3504 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3505 array size at least. It's necessary to write '\x00'==0 to get something
3506 that's true only with -std. */
3507 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3508
3509 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3510 inside strings and character constants. */
3511 #define FOO(x) 'x'
3512 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3513
3514 int test (int i, double x);
3515 struct s1 {int (*f) (int a);};
3516 struct s2 {int (*f) (double a);};
3517 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3518 int argc;
3519 char **argv;
3520 int
3521 main ()
3522 {
3523 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3524 ;
3525 return 0;
3526 }
3527 _ACEOF
3528 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3529 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3530 do
3531 CC="$ac_save_CC $ac_arg"
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533 ac_cv_prog_cc_c89=$ac_arg
3534 fi
3535 rm -f core conftest.err conftest.$ac_objext
3536 test "x$ac_cv_prog_cc_c89" != "xno" && break
3537 done
3538 rm -f conftest.$ac_ext
3539 CC=$ac_save_CC
3540
3541 fi
3542 # AC_CACHE_VAL
3543 case "x$ac_cv_prog_cc_c89" in
3544 x)
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3546 $as_echo "none needed" >&6; } ;;
3547 xno)
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3549 $as_echo "unsupported" >&6; } ;;
3550 *)
3551 CC="$CC $ac_cv_prog_cc_c89"
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3553 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3554 esac
3555 if test "x$ac_cv_prog_cc_c89" != xno; then :
3556
3557 fi
3558
3559 ac_ext=c
3560 ac_cpp='$CPP $CPPFLAGS'
3561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564
3565 ac_ext=c
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3571 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3572 if ${am_cv_prog_cc_c_o+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577
3578 int
3579 main ()
3580 {
3581
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 # Make sure it works both with $CC and with simple cc.
3587 # Following AC_PROG_CC_C_O, we do the test twice because some
3588 # compilers refuse to overwrite an existing .o file with -o,
3589 # though they will create one.
3590 am_cv_prog_cc_c_o=yes
3591 for am_i in 1 2; do
3592 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3593 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } \
3597 && test -f conftest2.$ac_objext; then
3598 : OK
3599 else
3600 am_cv_prog_cc_c_o=no
3601 break
3602 fi
3603 done
3604 rm -f core conftest*
3605 unset am_i
3606 fi
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3608 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3609 if test "$am_cv_prog_cc_c_o" != yes; then
3610 # Losing compiler, so override with the script.
3611 # FIXME: It is wrong to rewrite CC.
3612 # But if we don't then we get into trouble of one sort or another.
3613 # A longer-term fix would be to have automake use am__CC in this case,
3614 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3615 CC="$am_aux_dir/compile $CC"
3616 fi
3617 ac_ext=c
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622
3623
3624
3625 ac_ext=c
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3631 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3632 # On Suns, sometimes $CPP names a directory.
3633 if test -n "$CPP" && test -d "$CPP"; then
3634 CPP=
3635 fi
3636 if test -z "$CPP"; then
3637 if ${ac_cv_prog_CPP+:} false; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 # Double quotes because CPP needs to be expanded
3641 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3642 do
3643 ac_preproc_ok=false
3644 for ac_c_preproc_warn_flag in '' yes
3645 do
3646 # Use a header file that comes with gcc, so configuring glibc
3647 # with a fresh cross-compiler works.
3648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3649 # <limits.h> exists even on freestanding compilers.
3650 # On the NeXT, cc -E runs the code through the compiler's parser,
3651 # not just through cpp. "Syntax error" is here to catch this case.
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3654 #ifdef __STDC__
3655 # include <limits.h>
3656 #else
3657 # include <assert.h>
3658 #endif
3659 Syntax error
3660 _ACEOF
3661 if ac_fn_c_try_cpp "$LINENO"; then :
3662
3663 else
3664 # Broken: fails on valid input.
3665 continue
3666 fi
3667 rm -f conftest.err conftest.i conftest.$ac_ext
3668
3669 # OK, works on sane cases. Now check whether nonexistent headers
3670 # can be detected and how.
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3673 #include <ac_nonexistent.h>
3674 _ACEOF
3675 if ac_fn_c_try_cpp "$LINENO"; then :
3676 # Broken: success on invalid input.
3677 continue
3678 else
3679 # Passes both tests.
3680 ac_preproc_ok=:
3681 break
3682 fi
3683 rm -f conftest.err conftest.i conftest.$ac_ext
3684
3685 done
3686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3687 rm -f conftest.i conftest.err conftest.$ac_ext
3688 if $ac_preproc_ok; then :
3689 break
3690 fi
3691
3692 done
3693 ac_cv_prog_CPP=$CPP
3694
3695 fi
3696 CPP=$ac_cv_prog_CPP
3697 else
3698 ac_cv_prog_CPP=$CPP
3699 fi
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3701 $as_echo "$CPP" >&6; }
3702 ac_preproc_ok=false
3703 for ac_c_preproc_warn_flag in '' yes
3704 do
3705 # Use a header file that comes with gcc, so configuring glibc
3706 # with a fresh cross-compiler works.
3707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3708 # <limits.h> exists even on freestanding compilers.
3709 # On the NeXT, cc -E runs the code through the compiler's parser,
3710 # not just through cpp. "Syntax error" is here to catch this case.
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713 #ifdef __STDC__
3714 # include <limits.h>
3715 #else
3716 # include <assert.h>
3717 #endif
3718 Syntax error
3719 _ACEOF
3720 if ac_fn_c_try_cpp "$LINENO"; then :
3721
3722 else
3723 # Broken: fails on valid input.
3724 continue
3725 fi
3726 rm -f conftest.err conftest.i conftest.$ac_ext
3727
3728 # OK, works on sane cases. Now check whether nonexistent headers
3729 # can be detected and how.
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3732 #include <ac_nonexistent.h>
3733 _ACEOF
3734 if ac_fn_c_try_cpp "$LINENO"; then :
3735 # Broken: success on invalid input.
3736 continue
3737 else
3738 # Passes both tests.
3739 ac_preproc_ok=:
3740 break
3741 fi
3742 rm -f conftest.err conftest.i conftest.$ac_ext
3743
3744 done
3745 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3746 rm -f conftest.i conftest.err conftest.$ac_ext
3747 if $ac_preproc_ok; then :
3748
3749 else
3750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3753 See \`config.log' for more details" "$LINENO" 5; }
3754 fi
3755
3756 ac_ext=c
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761
3762
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3764 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3765 if ${ac_cv_path_GREP+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 if test -z "$GREP"; then
3769 ac_path_GREP_found=false
3770 # Loop through the user's path and test for each of PROGNAME-LIST
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3773 do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_prog in grep ggrep; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3779 as_fn_executable_p "$ac_path_GREP" || continue
3780 # Check for GNU ac_path_GREP and select it if it is found.
3781 # Check for GNU $ac_path_GREP
3782 case `"$ac_path_GREP" --version 2>&1` in
3783 *GNU*)
3784 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3785 *)
3786 ac_count=0
3787 $as_echo_n 0123456789 >"conftest.in"
3788 while :
3789 do
3790 cat "conftest.in" "conftest.in" >"conftest.tmp"
3791 mv "conftest.tmp" "conftest.in"
3792 cp "conftest.in" "conftest.nl"
3793 $as_echo 'GREP' >> "conftest.nl"
3794 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3796 as_fn_arith $ac_count + 1 && ac_count=$as_val
3797 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3798 # Best one so far, save it but keep looking for a better one
3799 ac_cv_path_GREP="$ac_path_GREP"
3800 ac_path_GREP_max=$ac_count
3801 fi
3802 # 10*(2^10) chars as input seems more than enough
3803 test $ac_count -gt 10 && break
3804 done
3805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3806 esac
3807
3808 $ac_path_GREP_found && break 3
3809 done
3810 done
3811 done
3812 IFS=$as_save_IFS
3813 if test -z "$ac_cv_path_GREP"; then
3814 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3815 fi
3816 else
3817 ac_cv_path_GREP=$GREP
3818 fi
3819
3820 fi
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3822 $as_echo "$ac_cv_path_GREP" >&6; }
3823 GREP="$ac_cv_path_GREP"
3824
3825
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3827 $as_echo_n "checking for egrep... " >&6; }
3828 if ${ac_cv_path_EGREP+:} false; then :
3829 $as_echo_n "(cached) " >&6
3830 else
3831 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3832 then ac_cv_path_EGREP="$GREP -E"
3833 else
3834 if test -z "$EGREP"; then
3835 ac_path_EGREP_found=false
3836 # Loop through the user's path and test for each of PROGNAME-LIST
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3839 do
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_prog in egrep; do
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3845 as_fn_executable_p "$ac_path_EGREP" || continue
3846 # Check for GNU ac_path_EGREP and select it if it is found.
3847 # Check for GNU $ac_path_EGREP
3848 case `"$ac_path_EGREP" --version 2>&1` in
3849 *GNU*)
3850 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3851 *)
3852 ac_count=0
3853 $as_echo_n 0123456789 >"conftest.in"
3854 while :
3855 do
3856 cat "conftest.in" "conftest.in" >"conftest.tmp"
3857 mv "conftest.tmp" "conftest.in"
3858 cp "conftest.in" "conftest.nl"
3859 $as_echo 'EGREP' >> "conftest.nl"
3860 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3862 as_fn_arith $ac_count + 1 && ac_count=$as_val
3863 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3864 # Best one so far, save it but keep looking for a better one
3865 ac_cv_path_EGREP="$ac_path_EGREP"
3866 ac_path_EGREP_max=$ac_count
3867 fi
3868 # 10*(2^10) chars as input seems more than enough
3869 test $ac_count -gt 10 && break
3870 done
3871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3872 esac
3873
3874 $ac_path_EGREP_found && break 3
3875 done
3876 done
3877 done
3878 IFS=$as_save_IFS
3879 if test -z "$ac_cv_path_EGREP"; then
3880 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3881 fi
3882 else
3883 ac_cv_path_EGREP=$EGREP
3884 fi
3885
3886 fi
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3889 $as_echo "$ac_cv_path_EGREP" >&6; }
3890 EGREP="$ac_cv_path_EGREP"
3891
3892
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3894 $as_echo_n "checking for ANSI C header files... " >&6; }
3895 if ${ac_cv_header_stdc+:} false; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3900 #include <stdlib.h>
3901 #include <stdarg.h>
3902 #include <string.h>
3903 #include <float.h>
3904
3905 int
3906 main ()
3907 {
3908
3909 ;
3910 return 0;
3911 }
3912 _ACEOF
3913 if ac_fn_c_try_compile "$LINENO"; then :
3914 ac_cv_header_stdc=yes
3915 else
3916 ac_cv_header_stdc=no
3917 fi
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919
3920 if test $ac_cv_header_stdc = yes; then
3921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3924 #include <string.h>
3925
3926 _ACEOF
3927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3928 $EGREP "memchr" >/dev/null 2>&1; then :
3929
3930 else
3931 ac_cv_header_stdc=no
3932 fi
3933 rm -f conftest*
3934
3935 fi
3936
3937 if test $ac_cv_header_stdc = yes; then
3938 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941 #include <stdlib.h>
3942
3943 _ACEOF
3944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945 $EGREP "free" >/dev/null 2>&1; then :
3946
3947 else
3948 ac_cv_header_stdc=no
3949 fi
3950 rm -f conftest*
3951
3952 fi
3953
3954 if test $ac_cv_header_stdc = yes; then
3955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3956 if test "$cross_compiling" = yes; then :
3957 :
3958 else
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3961 #include <ctype.h>
3962 #include <stdlib.h>
3963 #if ((' ' & 0x0FF) == 0x020)
3964 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3965 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3966 #else
3967 # define ISLOWER(c) \
3968 (('a' <= (c) && (c) <= 'i') \
3969 || ('j' <= (c) && (c) <= 'r') \
3970 || ('s' <= (c) && (c) <= 'z'))
3971 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3972 #endif
3973
3974 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3975 int
3976 main ()
3977 {
3978 int i;
3979 for (i = 0; i < 256; i++)
3980 if (XOR (islower (i), ISLOWER (i))
3981 || toupper (i) != TOUPPER (i))
3982 return 2;
3983 return 0;
3984 }
3985 _ACEOF
3986 if ac_fn_c_try_run "$LINENO"; then :
3987
3988 else
3989 ac_cv_header_stdc=no
3990 fi
3991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3992 conftest.$ac_objext conftest.beam conftest.$ac_ext
3993 fi
3994
3995 fi
3996 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3998 $as_echo "$ac_cv_header_stdc" >&6; }
3999 if test $ac_cv_header_stdc = yes; then
4000
4001 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4002
4003 fi
4004
4005 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4006 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4007 inttypes.h stdint.h unistd.h
4008 do :
4009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4010 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4011 "
4012 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4013 cat >>confdefs.h <<_ACEOF
4014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4015 _ACEOF
4016
4017 fi
4018
4019 done
4020
4021
4022
4023 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4024 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4025 MINIX=yes
4026 else
4027 MINIX=
4028 fi
4029
4030
4031 if test "$MINIX" = yes; then
4032
4033 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4034
4035
4036 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4037
4038
4039 $as_echo "#define _MINIX 1" >>confdefs.h
4040
4041 fi
4042
4043
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4045 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4046 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4047 $as_echo_n "(cached) " >&6
4048 else
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051
4052 # define __EXTENSIONS__ 1
4053 $ac_includes_default
4054 int
4055 main ()
4056 {
4057
4058 ;
4059 return 0;
4060 }
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063 ac_cv_safe_to_define___extensions__=yes
4064 else
4065 ac_cv_safe_to_define___extensions__=no
4066 fi
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4070 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4071 test $ac_cv_safe_to_define___extensions__ = yes &&
4072 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4073
4074 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4075
4076 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4077
4078 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4079
4080 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4081
4082
4083 test "$program_prefix" != NONE &&
4084 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4085 # Use a double $ so make ignores it.
4086 test "$program_suffix" != NONE &&
4087 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4088 # Double any \ or $.
4089 # By default was `s,x,x', remove it if useless.
4090 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4091 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4092
4093 # Find a good install program. We prefer a C program (faster),
4094 # so one script is as good as another. But avoid the broken or
4095 # incompatible versions:
4096 # SysV /etc/install, /usr/sbin/install
4097 # SunOS /usr/etc/install
4098 # IRIX /sbin/install
4099 # AIX /bin/install
4100 # AmigaOS /C/install, which installs bootblocks on floppy discs
4101 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4102 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4103 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4104 # OS/2's system install, which has a completely different semantic
4105 # ./install, which can be erroneously created by make from ./install.sh.
4106 # Reject install programs that cannot install multiple files.
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4108 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4109 if test -z "$INSTALL"; then
4110 if ${ac_cv_path_install+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
4118 # Account for people who put trailing slashes in PATH elements.
4119 case $as_dir/ in #((
4120 ./ | .// | /[cC]/* | \
4121 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4122 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4123 /usr/ucb/* ) ;;
4124 *)
4125 # OSF1 and SCO ODT 3.0 have their own names for install.
4126 # Don't use installbsd from OSF since it installs stuff as root
4127 # by default.
4128 for ac_prog in ginstall scoinst install; do
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4131 if test $ac_prog = install &&
4132 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4133 # AIX install. It has an incompatible calling convention.
4134 :
4135 elif test $ac_prog = install &&
4136 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4137 # program-specific install script used by HP pwplus--don't use.
4138 :
4139 else
4140 rm -rf conftest.one conftest.two conftest.dir
4141 echo one > conftest.one
4142 echo two > conftest.two
4143 mkdir conftest.dir
4144 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4145 test -s conftest.one && test -s conftest.two &&
4146 test -s conftest.dir/conftest.one &&
4147 test -s conftest.dir/conftest.two
4148 then
4149 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4150 break 3
4151 fi
4152 fi
4153 fi
4154 done
4155 done
4156 ;;
4157 esac
4158
4159 done
4160 IFS=$as_save_IFS
4161
4162 rm -rf conftest.one conftest.two conftest.dir
4163
4164 fi
4165 if test "${ac_cv_path_install+set}" = set; then
4166 INSTALL=$ac_cv_path_install
4167 else
4168 # As a last resort, use the slow shell script. Don't cache a
4169 # value for INSTALL within a source directory, because that will
4170 # break other packages using the cache if that directory is
4171 # removed, or if the value is a relative name.
4172 INSTALL=$ac_install_sh
4173 fi
4174 fi
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4176 $as_echo "$INSTALL" >&6; }
4177
4178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4179 # It thinks the first close brace ends the variable substitution.
4180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4181
4182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4183
4184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4185
4186
4187
4188
4189
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4191 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4192 if ${ac_cv_c_bigendian+:} false; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 ac_cv_c_bigendian=unknown
4196 # See if we're dealing with a universal compiler.
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199 #ifndef __APPLE_CC__
4200 not a universal capable compiler
4201 #endif
4202 typedef int dummy;
4203
4204 _ACEOF
4205 if ac_fn_c_try_compile "$LINENO"; then :
4206
4207 # Check for potential -arch flags. It is not universal unless
4208 # there are at least two -arch flags with different values.
4209 ac_arch=
4210 ac_prev=
4211 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4212 if test -n "$ac_prev"; then
4213 case $ac_word in
4214 i?86 | x86_64 | ppc | ppc64)
4215 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4216 ac_arch=$ac_word
4217 else
4218 ac_cv_c_bigendian=universal
4219 break
4220 fi
4221 ;;
4222 esac
4223 ac_prev=
4224 elif test "x$ac_word" = "x-arch"; then
4225 ac_prev=arch
4226 fi
4227 done
4228 fi
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 if test $ac_cv_c_bigendian = unknown; then
4231 # See if sys/param.h defines the BYTE_ORDER macro.
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 #include <sys/types.h>
4235 #include <sys/param.h>
4236
4237 int
4238 main ()
4239 {
4240 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4241 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4242 && LITTLE_ENDIAN)
4243 bogus endian macros
4244 #endif
4245
4246 ;
4247 return 0;
4248 }
4249 _ACEOF
4250 if ac_fn_c_try_compile "$LINENO"; then :
4251 # It does; now see whether it defined to BIG_ENDIAN or not.
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 #include <sys/types.h>
4255 #include <sys/param.h>
4256
4257 int
4258 main ()
4259 {
4260 #if BYTE_ORDER != BIG_ENDIAN
4261 not big endian
4262 #endif
4263
4264 ;
4265 return 0;
4266 }
4267 _ACEOF
4268 if ac_fn_c_try_compile "$LINENO"; then :
4269 ac_cv_c_bigendian=yes
4270 else
4271 ac_cv_c_bigendian=no
4272 fi
4273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274 fi
4275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4276 fi
4277 if test $ac_cv_c_bigendian = unknown; then
4278 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281 #include <limits.h>
4282
4283 int
4284 main ()
4285 {
4286 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4287 bogus endian macros
4288 #endif
4289
4290 ;
4291 return 0;
4292 }
4293 _ACEOF
4294 if ac_fn_c_try_compile "$LINENO"; then :
4295 # It does; now see whether it defined to _BIG_ENDIAN or not.
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4298 #include <limits.h>
4299
4300 int
4301 main ()
4302 {
4303 #ifndef _BIG_ENDIAN
4304 not big endian
4305 #endif
4306
4307 ;
4308 return 0;
4309 }
4310 _ACEOF
4311 if ac_fn_c_try_compile "$LINENO"; then :
4312 ac_cv_c_bigendian=yes
4313 else
4314 ac_cv_c_bigendian=no
4315 fi
4316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 fi
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 fi
4320 if test $ac_cv_c_bigendian = unknown; then
4321 # Compile a test program.
4322 if test "$cross_compiling" = yes; then :
4323 # Try to guess by grepping values from an object file.
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326 short int ascii_mm[] =
4327 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4328 short int ascii_ii[] =
4329 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4330 int use_ascii (int i) {
4331 return ascii_mm[i] + ascii_ii[i];
4332 }
4333 short int ebcdic_ii[] =
4334 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4335 short int ebcdic_mm[] =
4336 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4337 int use_ebcdic (int i) {
4338 return ebcdic_mm[i] + ebcdic_ii[i];
4339 }
4340 extern int foo;
4341
4342 int
4343 main ()
4344 {
4345 return use_ascii (foo) == use_ebcdic (foo);
4346 ;
4347 return 0;
4348 }
4349 _ACEOF
4350 if ac_fn_c_try_compile "$LINENO"; then :
4351 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4352 ac_cv_c_bigendian=yes
4353 fi
4354 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4355 if test "$ac_cv_c_bigendian" = unknown; then
4356 ac_cv_c_bigendian=no
4357 else
4358 # finding both strings is unlikely to happen, but who knows?
4359 ac_cv_c_bigendian=unknown
4360 fi
4361 fi
4362 fi
4363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 else
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367 $ac_includes_default
4368 int
4369 main ()
4370 {
4371
4372 /* Are we little or big endian? From Harbison&Steele. */
4373 union
4374 {
4375 long int l;
4376 char c[sizeof (long int)];
4377 } u;
4378 u.l = 1;
4379 return u.c[sizeof (long int) - 1] == 1;
4380
4381 ;
4382 return 0;
4383 }
4384 _ACEOF
4385 if ac_fn_c_try_run "$LINENO"; then :
4386 ac_cv_c_bigendian=no
4387 else
4388 ac_cv_c_bigendian=yes
4389 fi
4390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4391 conftest.$ac_objext conftest.beam conftest.$ac_ext
4392 fi
4393
4394 fi
4395 fi
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4397 $as_echo "$ac_cv_c_bigendian" >&6; }
4398 case $ac_cv_c_bigendian in #(
4399 yes)
4400 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4401 ;; #(
4402 no)
4403 ;; #(
4404 universal)
4405
4406 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4407
4408 ;; #(
4409 *)
4410 as_fn_error $? "unknown endianness
4411 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4412 esac
4413
4414
4415
4416
4417 if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4419 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 $as_echo_n "checking for $ac_word... " >&6; }
4422 if ${ac_cv_prog_DTC+:} false; then :
4423 $as_echo_n "(cached) " >&6
4424 else
4425 if test -n "$DTC"; then
4426 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4430 do
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 break 2
4438 fi
4439 done
4440 done
4441 IFS=$as_save_IFS
4442
4443 fi
4444 fi
4445 DTC=$ac_cv_prog_DTC
4446 if test -n "$DTC"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4448 $as_echo "$DTC" >&6; }
4449 else
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4452 fi
4453
4454
4455 fi
4456 if test -z "$ac_cv_prog_DTC"; then
4457 ac_ct_DTC=$DTC
4458 # Extract the first word of "dtc", so it can be a program name with args.
4459 set dummy dtc; ac_word=$2
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -n "$ac_ct_DTC"; then
4466 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4475 ac_cv_prog_ac_ct_DTC="dtc"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4478 fi
4479 done
4480 done
4481 IFS=$as_save_IFS
4482
4483 fi
4484 fi
4485 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4486 if test -n "$ac_ct_DTC"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4488 $as_echo "$ac_ct_DTC" >&6; }
4489 else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4492 fi
4493
4494 if test "x$ac_ct_DTC" = x; then
4495 DTC=""
4496 else
4497 case $cross_compiling:$ac_tool_warned in
4498 yes:)
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4501 ac_tool_warned=yes ;;
4502 esac
4503 DTC=$ac_ct_DTC
4504 fi
4505 else
4506 DTC="$ac_cv_prog_DTC"
4507 fi
4508
4509
4510 if test "x$cross_compiling" = "xno"; then
4511 : "${AR_FOR_BUILD:=\$(AR)}"
4512 : "${CC_FOR_BUILD:=\$(CC)}"
4513 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4514 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4515 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4516 else
4517 : "${AR_FOR_BUILD:=ar}"
4518 : "${CC_FOR_BUILD:=gcc}"
4519 : "${RANLIB_FOR_BUILD:=ranlib}"
4520 : "${CFLAGS_FOR_BUILD:=-g -O}"
4521 : "${LDLFAGS_FOR_BUILD:=}"
4522 fi
4523
4524
4525
4526
4527
4528
4529
4530 if test -n "$ac_tool_prefix"; then
4531 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4532 set dummy ${ac_tool_prefix}ar; ac_word=$2
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534 $as_echo_n "checking for $ac_word... " >&6; }
4535 if ${ac_cv_prog_AR+:} false; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 if test -n "$AR"; then
4539 ac_cv_prog_AR="$AR" # Let the user override the test.
4540 else
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4543 do
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4548 ac_cv_prog_AR="${ac_tool_prefix}ar"
4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 break 2
4551 fi
4552 done
4553 done
4554 IFS=$as_save_IFS
4555
4556 fi
4557 fi
4558 AR=$ac_cv_prog_AR
4559 if test -n "$AR"; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4561 $as_echo "$AR" >&6; }
4562 else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564 $as_echo "no" >&6; }
4565 fi
4566
4567
4568 fi
4569 if test -z "$ac_cv_prog_AR"; then
4570 ac_ct_AR=$AR
4571 # Extract the first word of "ar", so it can be a program name with args.
4572 set dummy ar; ac_word=$2
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574 $as_echo_n "checking for $ac_word... " >&6; }
4575 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 if test -n "$ac_ct_AR"; then
4579 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4580 else
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4583 do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4588 ac_cv_prog_ac_ct_AR="ar"
4589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 break 2
4591 fi
4592 done
4593 done
4594 IFS=$as_save_IFS
4595
4596 fi
4597 fi
4598 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4599 if test -n "$ac_ct_AR"; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4601 $as_echo "$ac_ct_AR" >&6; }
4602 else
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4605 fi
4606
4607 if test "x$ac_ct_AR" = x; then
4608 AR=""
4609 else
4610 case $cross_compiling:$ac_tool_warned in
4611 yes:)
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4614 ac_tool_warned=yes ;;
4615 esac
4616 AR=$ac_ct_AR
4617 fi
4618 else
4619 AR="$ac_cv_prog_AR"
4620 fi
4621
4622 if test -n "$ac_tool_prefix"; then
4623 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4624 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626 $as_echo_n "checking for $ac_word... " >&6; }
4627 if ${ac_cv_prog_RANLIB+:} false; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 if test -n "$RANLIB"; then
4631 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4632 else
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4635 do
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4640 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 break 2
4643 fi
4644 done
4645 done
4646 IFS=$as_save_IFS
4647
4648 fi
4649 fi
4650 RANLIB=$ac_cv_prog_RANLIB
4651 if test -n "$RANLIB"; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4653 $as_echo "$RANLIB" >&6; }
4654 else
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656 $as_echo "no" >&6; }
4657 fi
4658
4659
4660 fi
4661 if test -z "$ac_cv_prog_RANLIB"; then
4662 ac_ct_RANLIB=$RANLIB
4663 # Extract the first word of "ranlib", so it can be a program name with args.
4664 set dummy ranlib; ac_word=$2
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 $as_echo_n "checking for $ac_word... " >&6; }
4667 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 if test -n "$ac_ct_RANLIB"; then
4671 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4672 else
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4675 do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680 ac_cv_prog_ac_ct_RANLIB="ranlib"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4683 fi
4684 done
4685 done
4686 IFS=$as_save_IFS
4687
4688 fi
4689 fi
4690 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4691 if test -n "$ac_ct_RANLIB"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4693 $as_echo "$ac_ct_RANLIB" >&6; }
4694 else
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4697 fi
4698
4699 if test "x$ac_ct_RANLIB" = x; then
4700 RANLIB=":"
4701 else
4702 case $cross_compiling:$ac_tool_warned in
4703 yes:)
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4706 ac_tool_warned=yes ;;
4707 esac
4708 RANLIB=$ac_ct_RANLIB
4709 fi
4710 else
4711 RANLIB="$ac_cv_prog_RANLIB"
4712 fi
4713
4714
4715 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
4716 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
4717 # is C99. So handle it ourselves.
4718 :
4719 C_DIALECT=
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4721 $as_echo_n "checking whether C11 is supported by default... " >&6; }
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724
4725 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4726 # error "C11 support not found"
4727 #endif
4728
4729 _ACEOF
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4732 $as_echo "yes" >&6; }
4733 else
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4738 $as_echo_n "checking for -std=c11 support... " >&6; }
4739 ac_save_CC="$CC"
4740 CC="$CC -std=c11"
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743
4744 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4745 # error "C11 support not found"
4746 #endif
4747
4748 _ACEOF
4749 if ac_fn_c_try_compile "$LINENO"; then :
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4752 $as_echo "yes" >&6; }
4753 CC="$ac_save_CC"
4754 C_DIALECT="-std=c11"
4755
4756 else
4757 as_fn_error $? "C11 is required" "$LINENO" 5
4758 fi
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762
4763
4764
4765
4766
4767 for ac_header in $ac_header_list
4768 do :
4769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4770 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4771 "
4772 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4773 cat >>confdefs.h <<_ACEOF
4774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4775 _ACEOF
4776
4777 fi
4778
4779 done
4780
4781
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 for ac_func in $ac_func_list
4833 do :
4834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4835 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4836 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4837 cat >>confdefs.h <<_ACEOF
4838 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4839 _ACEOF
4840
4841 fi
4842 done
4843
4844
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4967 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4968 if ${ac_cv_struct_tm+:} false; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973 #include <sys/types.h>
4974 #include <time.h>
4975
4976 int
4977 main ()
4978 {
4979 struct tm tm;
4980 int *p = &tm.tm_sec;
4981 return !p;
4982 ;
4983 return 0;
4984 }
4985 _ACEOF
4986 if ac_fn_c_try_compile "$LINENO"; then :
4987 ac_cv_struct_tm=time.h
4988 else
4989 ac_cv_struct_tm=sys/time.h
4990 fi
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992 fi
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4994 $as_echo "$ac_cv_struct_tm" >&6; }
4995 if test $ac_cv_struct_tm = sys/time.h; then
4996
4997 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4998
4999 fi
5000
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5002 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5003 if ${ac_cv_type_uid_t+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008 #include <sys/types.h>
5009
5010 _ACEOF
5011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5012 $EGREP "uid_t" >/dev/null 2>&1; then :
5013 ac_cv_type_uid_t=yes
5014 else
5015 ac_cv_type_uid_t=no
5016 fi
5017 rm -f conftest*
5018
5019 fi
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5021 $as_echo "$ac_cv_type_uid_t" >&6; }
5022 if test $ac_cv_type_uid_t = no; then
5023
5024 $as_echo "#define uid_t int" >>confdefs.h
5025
5026
5027 $as_echo "#define gid_t int" >>confdefs.h
5028
5029 fi
5030
5031 case `pwd` in
5032 *\ * | *\ *)
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5034 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5035 esac
5036
5037
5038
5039 macro_version='2.2.7a'
5040 macro_revision='1.3134'
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054 ltmain="$ac_aux_dir/ltmain.sh"
5055
5056 # Backslashify metacharacters that are still active within
5057 # double-quoted strings.
5058 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5059
5060 # Same as above, but do not quote variable references.
5061 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5062
5063 # Sed substitution to delay expansion of an escaped shell variable in a
5064 # double_quote_subst'ed string.
5065 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5066
5067 # Sed substitution to delay expansion of an escaped single quote.
5068 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5069
5070 # Sed substitution to avoid accidental globbing in evaled expressions
5071 no_glob_subst='s/\*/\\\*/g'
5072
5073 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5074 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5075 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5076
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5078 $as_echo_n "checking how to print strings... " >&6; }
5079 # Test print first, because it will be a builtin if present.
5080 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5081 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5082 ECHO='print -r --'
5083 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5084 ECHO='printf %s\n'
5085 else
5086 # Use this function as a fallback that always works.
5087 func_fallback_echo ()
5088 {
5089 eval 'cat <<_LTECHO_EOF
5090 $1
5091 _LTECHO_EOF'
5092 }
5093 ECHO='func_fallback_echo'
5094 fi
5095
5096 # func_echo_all arg...
5097 # Invoke $ECHO with all args, space-separated.
5098 func_echo_all ()
5099 {
5100 $ECHO ""
5101 }
5102
5103 case "$ECHO" in
5104 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5105 $as_echo "printf" >&6; } ;;
5106 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5107 $as_echo "print -r" >&6; } ;;
5108 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5109 $as_echo "cat" >&6; } ;;
5110 esac
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5126 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5127 if ${ac_cv_path_SED+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5131 for ac_i in 1 2 3 4 5 6 7; do
5132 ac_script="$ac_script$as_nl$ac_script"
5133 done
5134 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5135 { ac_script=; unset ac_script;}
5136 if test -z "$SED"; then
5137 ac_path_SED_found=false
5138 # Loop through the user's path and test for each of PROGNAME-LIST
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_prog in sed gsed; do
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5147 as_fn_executable_p "$ac_path_SED" || continue
5148 # Check for GNU ac_path_SED and select it if it is found.
5149 # Check for GNU $ac_path_SED
5150 case `"$ac_path_SED" --version 2>&1` in
5151 *GNU*)
5152 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5153 *)
5154 ac_count=0
5155 $as_echo_n 0123456789 >"conftest.in"
5156 while :
5157 do
5158 cat "conftest.in" "conftest.in" >"conftest.tmp"
5159 mv "conftest.tmp" "conftest.in"
5160 cp "conftest.in" "conftest.nl"
5161 $as_echo '' >> "conftest.nl"
5162 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5164 as_fn_arith $ac_count + 1 && ac_count=$as_val
5165 if test $ac_count -gt ${ac_path_SED_max-0}; then
5166 # Best one so far, save it but keep looking for a better one
5167 ac_cv_path_SED="$ac_path_SED"
5168 ac_path_SED_max=$ac_count
5169 fi
5170 # 10*(2^10) chars as input seems more than enough
5171 test $ac_count -gt 10 && break
5172 done
5173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5174 esac
5175
5176 $ac_path_SED_found && break 3
5177 done
5178 done
5179 done
5180 IFS=$as_save_IFS
5181 if test -z "$ac_cv_path_SED"; then
5182 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5183 fi
5184 else
5185 ac_cv_path_SED=$SED
5186 fi
5187
5188 fi
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5190 $as_echo "$ac_cv_path_SED" >&6; }
5191 SED="$ac_cv_path_SED"
5192 rm -f conftest.sed
5193
5194 test -z "$SED" && SED=sed
5195 Xsed="$SED -e 1s/^X//"
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5208 $as_echo_n "checking for fgrep... " >&6; }
5209 if ${ac_cv_path_FGREP+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5213 then ac_cv_path_FGREP="$GREP -F"
5214 else
5215 if test -z "$FGREP"; then
5216 ac_path_FGREP_found=false
5217 # Loop through the user's path and test for each of PROGNAME-LIST
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5220 do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_prog in fgrep; do
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5226 as_fn_executable_p "$ac_path_FGREP" || continue
5227 # Check for GNU ac_path_FGREP and select it if it is found.
5228 # Check for GNU $ac_path_FGREP
5229 case `"$ac_path_FGREP" --version 2>&1` in
5230 *GNU*)
5231 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5232 *)
5233 ac_count=0
5234 $as_echo_n 0123456789 >"conftest.in"
5235 while :
5236 do
5237 cat "conftest.in" "conftest.in" >"conftest.tmp"
5238 mv "conftest.tmp" "conftest.in"
5239 cp "conftest.in" "conftest.nl"
5240 $as_echo 'FGREP' >> "conftest.nl"
5241 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5243 as_fn_arith $ac_count + 1 && ac_count=$as_val
5244 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5245 # Best one so far, save it but keep looking for a better one
5246 ac_cv_path_FGREP="$ac_path_FGREP"
5247 ac_path_FGREP_max=$ac_count
5248 fi
5249 # 10*(2^10) chars as input seems more than enough
5250 test $ac_count -gt 10 && break
5251 done
5252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5253 esac
5254
5255 $ac_path_FGREP_found && break 3
5256 done
5257 done
5258 done
5259 IFS=$as_save_IFS
5260 if test -z "$ac_cv_path_FGREP"; then
5261 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5262 fi
5263 else
5264 ac_cv_path_FGREP=$FGREP
5265 fi
5266
5267 fi
5268 fi
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5270 $as_echo "$ac_cv_path_FGREP" >&6; }
5271 FGREP="$ac_cv_path_FGREP"
5272
5273
5274 test -z "$GREP" && GREP=grep
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294 # Check whether --with-gnu-ld was given.
5295 if test "${with_gnu_ld+set}" = set; then :
5296 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5297 else
5298 with_gnu_ld=no
5299 fi
5300
5301 ac_prog=ld
5302 if test "$GCC" = yes; then
5303 # Check if gcc -print-prog-name=ld gives a path.
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5305 $as_echo_n "checking for ld used by $CC... " >&6; }
5306 case $host in
5307 *-*-mingw*)
5308 # gcc leaves a trailing carriage return which upsets mingw
5309 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5310 *)
5311 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5312 esac
5313 case $ac_prog in
5314 # Accept absolute paths.
5315 [\\/]* | ?:[\\/]*)
5316 re_direlt='/[^/][^/]*/\.\./'
5317 # Canonicalize the pathname of ld
5318 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5319 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5320 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5321 done
5322 test -z "$LD" && LD="$ac_prog"
5323 ;;
5324 "")
5325 # If it fails, then pretend we aren't using GCC.
5326 ac_prog=ld
5327 ;;
5328 *)
5329 # If it is relative, then search for the first ld in PATH.
5330 with_gnu_ld=unknown
5331 ;;
5332 esac
5333 elif test "$with_gnu_ld" = yes; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5335 $as_echo_n "checking for GNU ld... " >&6; }
5336 else
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5338 $as_echo_n "checking for non-GNU ld... " >&6; }
5339 fi
5340 if ${lt_cv_path_LD+:} false; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 if test -z "$LD"; then
5344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5345 for ac_dir in $PATH; do
5346 IFS="$lt_save_ifs"
5347 test -z "$ac_dir" && ac_dir=.
5348 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5349 lt_cv_path_LD="$ac_dir/$ac_prog"
5350 # Check to see if the program is GNU ld. I'd rather use --version,
5351 # but apparently some variants of GNU ld only accept -v.
5352 # Break only if it was the GNU/non-GNU ld that we prefer.
5353 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5354 *GNU* | *'with BFD'*)
5355 test "$with_gnu_ld" != no && break
5356 ;;
5357 *)
5358 test "$with_gnu_ld" != yes && break
5359 ;;
5360 esac
5361 fi
5362 done
5363 IFS="$lt_save_ifs"
5364 else
5365 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5366 fi
5367 fi
5368
5369 LD="$lt_cv_path_LD"
5370 if test -n "$LD"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5372 $as_echo "$LD" >&6; }
5373 else
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 fi
5377 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5379 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5380 if ${lt_cv_prog_gnu_ld+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5384 case `$LD -v 2>&1 </dev/null` in
5385 *GNU* | *'with BFD'*)
5386 lt_cv_prog_gnu_ld=yes
5387 ;;
5388 *)
5389 lt_cv_prog_gnu_ld=no
5390 ;;
5391 esac
5392 fi
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5394 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5395 with_gnu_ld=$lt_cv_prog_gnu_ld
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5406 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5407 if ${lt_cv_path_NM+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 if test -n "$NM"; then
5411 # Let the user override the test.
5412 lt_cv_path_NM="$NM"
5413 else
5414 lt_nm_to_check="${ac_tool_prefix}nm"
5415 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5416 lt_nm_to_check="$lt_nm_to_check nm"
5417 fi
5418 for lt_tmp_nm in $lt_nm_to_check; do
5419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5420 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5421 IFS="$lt_save_ifs"
5422 test -z "$ac_dir" && ac_dir=.
5423 tmp_nm="$ac_dir/$lt_tmp_nm"
5424 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5425 # Check to see if the nm accepts a BSD-compat flag.
5426 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5427 # nm: unknown option "B" ignored
5428 # Tru64's nm complains that /dev/null is an invalid object file
5429 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5430 */dev/null* | *'Invalid file or object type'*)
5431 lt_cv_path_NM="$tmp_nm -B"
5432 break
5433 ;;
5434 *)
5435 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5436 */dev/null*)
5437 lt_cv_path_NM="$tmp_nm -p"
5438 break
5439 ;;
5440 *)
5441 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5442 continue # so that we can try to find one that supports BSD flags
5443 ;;
5444 esac
5445 ;;
5446 esac
5447 fi
5448 done
5449 IFS="$lt_save_ifs"
5450 done
5451 : ${lt_cv_path_NM=no}
5452 fi
5453 fi
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5455 $as_echo "$lt_cv_path_NM" >&6; }
5456 if test "$lt_cv_path_NM" != "no"; then
5457 NM="$lt_cv_path_NM"
5458 else
5459 # Didn't find any BSD compatible name lister, look for dumpbin.
5460 if test -n "$DUMPBIN"; then :
5461 # Let the user override the test.
5462 else
5463 if test -n "$ac_tool_prefix"; then
5464 for ac_prog in dumpbin "link -dump"
5465 do
5466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469 $as_echo_n "checking for $ac_word... " >&6; }
5470 if ${ac_cv_prog_DUMPBIN+:} false; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 if test -n "$DUMPBIN"; then
5474 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5475 else
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5478 do
5479 IFS=$as_save_IFS
5480 test -z "$as_dir" && as_dir=.
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5483 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 break 2
5486 fi
5487 done
5488 done
5489 IFS=$as_save_IFS
5490
5491 fi
5492 fi
5493 DUMPBIN=$ac_cv_prog_DUMPBIN
5494 if test -n "$DUMPBIN"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5496 $as_echo "$DUMPBIN" >&6; }
5497 else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499 $as_echo "no" >&6; }
5500 fi
5501
5502
5503 test -n "$DUMPBIN" && break
5504 done
5505 fi
5506 if test -z "$DUMPBIN"; then
5507 ac_ct_DUMPBIN=$DUMPBIN
5508 for ac_prog in dumpbin "link -dump"
5509 do
5510 # Extract the first word of "$ac_prog", so it can be a program name with args.
5511 set dummy $ac_prog; ac_word=$2
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513 $as_echo_n "checking for $ac_word... " >&6; }
5514 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 if test -n "$ac_ct_DUMPBIN"; then
5518 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5519 else
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5522 do
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5530 fi
5531 done
5532 done
5533 IFS=$as_save_IFS
5534
5535 fi
5536 fi
5537 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5538 if test -n "$ac_ct_DUMPBIN"; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5540 $as_echo "$ac_ct_DUMPBIN" >&6; }
5541 else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5544 fi
5545
5546
5547 test -n "$ac_ct_DUMPBIN" && break
5548 done
5549
5550 if test "x$ac_ct_DUMPBIN" = x; then
5551 DUMPBIN=":"
5552 else
5553 case $cross_compiling:$ac_tool_warned in
5554 yes:)
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5557 ac_tool_warned=yes ;;
5558 esac
5559 DUMPBIN=$ac_ct_DUMPBIN
5560 fi
5561 fi
5562
5563 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5564 *COFF*)
5565 DUMPBIN="$DUMPBIN -symbols"
5566 ;;
5567 *)
5568 DUMPBIN=:
5569 ;;
5570 esac
5571 fi
5572
5573 if test "$DUMPBIN" != ":"; then
5574 NM="$DUMPBIN"
5575 fi
5576 fi
5577 test -z "$NM" && NM=nm
5578
5579
5580
5581
5582
5583
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5585 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5586 if ${lt_cv_nm_interface+:} false; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 lt_cv_nm_interface="BSD nm"
5590 echo "int some_variable = 0;" > conftest.$ac_ext
5591 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5592 (eval "$ac_compile" 2>conftest.err)
5593 cat conftest.err >&5
5594 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5595 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5596 cat conftest.err >&5
5597 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5598 cat conftest.out >&5
5599 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5600 lt_cv_nm_interface="MS dumpbin"
5601 fi
5602 rm -f conftest*
5603 fi
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5605 $as_echo "$lt_cv_nm_interface" >&6; }
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5608 $as_echo_n "checking whether ln -s works... " >&6; }
5609 LN_S=$as_ln_s
5610 if test "$LN_S" = "ln -s"; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5612 $as_echo "yes" >&6; }
5613 else
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5615 $as_echo "no, using $LN_S" >&6; }
5616 fi
5617
5618 # find the maximum length of command line arguments
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5620 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5621 if ${lt_cv_sys_max_cmd_len+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 i=0
5625 teststring="ABCD"
5626
5627 case $build_os in
5628 msdosdjgpp*)
5629 # On DJGPP, this test can blow up pretty badly due to problems in libc
5630 # (any single argument exceeding 2000 bytes causes a buffer overrun
5631 # during glob expansion). Even if it were fixed, the result of this
5632 # check would be larger than it should be.
5633 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5634 ;;
5635
5636 gnu*)
5637 # Under GNU Hurd, this test is not required because there is
5638 # no limit to the length of command line arguments.
5639 # Libtool will interpret -1 as no limit whatsoever
5640 lt_cv_sys_max_cmd_len=-1;
5641 ;;
5642
5643 cygwin* | mingw* | cegcc*)
5644 # On Win9x/ME, this test blows up -- it succeeds, but takes
5645 # about 5 minutes as the teststring grows exponentially.
5646 # Worse, since 9x/ME are not pre-emptively multitasking,
5647 # you end up with a "frozen" computer, even though with patience
5648 # the test eventually succeeds (with a max line length of 256k).
5649 # Instead, let's just punt: use the minimum linelength reported by
5650 # all of the supported platforms: 8192 (on NT/2K/XP).
5651 lt_cv_sys_max_cmd_len=8192;
5652 ;;
5653
5654 mint*)
5655 # On MiNT this can take a long time and run out of memory.
5656 lt_cv_sys_max_cmd_len=8192;
5657 ;;
5658
5659 amigaos*)
5660 # On AmigaOS with pdksh, this test takes hours, literally.
5661 # So we just punt and use a minimum line length of 8192.
5662 lt_cv_sys_max_cmd_len=8192;
5663 ;;
5664
5665 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5666 # This has been around since 386BSD, at least. Likely further.
5667 if test -x /sbin/sysctl; then
5668 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5669 elif test -x /usr/sbin/sysctl; then
5670 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5671 else
5672 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5673 fi
5674 # And add a safety zone
5675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5677 ;;
5678
5679 interix*)
5680 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5681 lt_cv_sys_max_cmd_len=196608
5682 ;;
5683
5684 osf*)
5685 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5686 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5687 # nice to cause kernel panics so lets avoid the loop below.
5688 # First set a reasonable default.
5689 lt_cv_sys_max_cmd_len=16384
5690 #
5691 if test -x /sbin/sysconfig; then
5692 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5693 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5694 esac
5695 fi
5696 ;;
5697 sco3.2v5*)
5698 lt_cv_sys_max_cmd_len=102400
5699 ;;
5700 sysv5* | sco5v6* | sysv4.2uw2*)
5701 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5702 if test -n "$kargmax"; then
5703 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5704 else
5705 lt_cv_sys_max_cmd_len=32768
5706 fi
5707 ;;
5708 *)
5709 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5710 if test -n "$lt_cv_sys_max_cmd_len"; then
5711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5713 else
5714 # Make teststring a little bigger before we do anything with it.
5715 # a 1K string should be a reasonable start.
5716 for i in 1 2 3 4 5 6 7 8 ; do
5717 teststring=$teststring$teststring
5718 done
5719 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5720 # If test is not a shell built-in, we'll probably end up computing a
5721 # maximum length that is only half of the actual maximum length, but
5722 # we can't tell.
5723 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5724 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5725 test $i != 17 # 1/2 MB should be enough
5726 do
5727 i=`expr $i + 1`
5728 teststring=$teststring$teststring
5729 done
5730 # Only check the string length outside the loop.
5731 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5732 teststring=
5733 # Add a significant safety factor because C++ compilers can tack on
5734 # massive amounts of additional arguments before passing them to the
5735 # linker. It appears as though 1/2 is a usable value.
5736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5737 fi
5738 ;;
5739 esac
5740
5741 fi
5742
5743 if test -n $lt_cv_sys_max_cmd_len ; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5745 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5748 $as_echo "none" >&6; }
5749 fi
5750 max_cmd_len=$lt_cv_sys_max_cmd_len
5751
5752
5753
5754
5755
5756
5757 : ${CP="cp -f"}
5758 : ${MV="mv -f"}
5759 : ${RM="rm -f"}
5760
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5762 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5763 # Try some XSI features
5764 xsi_shell=no
5765 ( _lt_dummy="a/b/c"
5766 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5767 = c,a/b,, \
5768 && eval 'test $(( 1 + 1 )) -eq 2 \
5769 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5770 && xsi_shell=yes
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5772 $as_echo "$xsi_shell" >&6; }
5773
5774
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5776 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5777 lt_shell_append=no
5778 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5779 >/dev/null 2>&1 \
5780 && lt_shell_append=yes
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5782 $as_echo "$lt_shell_append" >&6; }
5783
5784
5785 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5786 lt_unset=unset
5787 else
5788 lt_unset=false
5789 fi
5790
5791
5792
5793
5794
5795 # test EBCDIC or ASCII
5796 case `echo X|tr X '\101'` in
5797 A) # ASCII based system
5798 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5799 lt_SP2NL='tr \040 \012'
5800 lt_NL2SP='tr \015\012 \040\040'
5801 ;;
5802 *) # EBCDIC based system
5803 lt_SP2NL='tr \100 \n'
5804 lt_NL2SP='tr \r\n \100\100'
5805 ;;
5806 esac
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5817 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5818 if ${lt_cv_ld_reload_flag+:} false; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 lt_cv_ld_reload_flag='-r'
5822 fi
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5824 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5825 reload_flag=$lt_cv_ld_reload_flag
5826 case $reload_flag in
5827 "" | " "*) ;;
5828 *) reload_flag=" $reload_flag" ;;
5829 esac
5830 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5831 case $host_os in
5832 darwin*)
5833 if test "$GCC" = yes; then
5834 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5835 else
5836 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5837 fi
5838 ;;
5839 esac
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849 if test -n "$ac_tool_prefix"; then
5850 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5851 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853 $as_echo_n "checking for $ac_word... " >&6; }
5854 if ${ac_cv_prog_OBJDUMP+:} false; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 if test -n "$OBJDUMP"; then
5858 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5859 else
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5862 do
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5867 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 break 2
5870 fi
5871 done
5872 done
5873 IFS=$as_save_IFS
5874
5875 fi
5876 fi
5877 OBJDUMP=$ac_cv_prog_OBJDUMP
5878 if test -n "$OBJDUMP"; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5880 $as_echo "$OBJDUMP" >&6; }
5881 else
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 $as_echo "no" >&6; }
5884 fi
5885
5886
5887 fi
5888 if test -z "$ac_cv_prog_OBJDUMP"; then
5889 ac_ct_OBJDUMP=$OBJDUMP
5890 # Extract the first word of "objdump", so it can be a program name with args.
5891 set dummy objdump; ac_word=$2
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893 $as_echo_n "checking for $ac_word... " >&6; }
5894 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 if test -n "$ac_ct_OBJDUMP"; then
5898 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5899 else
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903 IFS=$as_save_IFS
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 break 2
5910 fi
5911 done
5912 done
5913 IFS=$as_save_IFS
5914
5915 fi
5916 fi
5917 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5918 if test -n "$ac_ct_OBJDUMP"; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5920 $as_echo "$ac_ct_OBJDUMP" >&6; }
5921 else
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 $as_echo "no" >&6; }
5924 fi
5925
5926 if test "x$ac_ct_OBJDUMP" = x; then
5927 OBJDUMP="false"
5928 else
5929 case $cross_compiling:$ac_tool_warned in
5930 yes:)
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5933 ac_tool_warned=yes ;;
5934 esac
5935 OBJDUMP=$ac_ct_OBJDUMP
5936 fi
5937 else
5938 OBJDUMP="$ac_cv_prog_OBJDUMP"
5939 fi
5940
5941 test -z "$OBJDUMP" && OBJDUMP=objdump
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5952 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5953 if ${lt_cv_deplibs_check_method+:} false; then :
5954 $as_echo_n "(cached) " >&6
5955 else
5956 lt_cv_file_magic_cmd='$MAGIC_CMD'
5957 lt_cv_file_magic_test_file=
5958 lt_cv_deplibs_check_method='unknown'
5959 # Need to set the preceding variable on all platforms that support
5960 # interlibrary dependencies.
5961 # 'none' -- dependencies not supported.
5962 # `unknown' -- same as none, but documents that we really don't know.
5963 # 'pass_all' -- all dependencies passed with no checks.
5964 # 'test_compile' -- check by making test program.
5965 # 'file_magic [[regex]]' -- check by looking for files in library path
5966 # which responds to the $file_magic_cmd with a given extended regex.
5967 # If you have `file' or equivalent on your system and you're not sure
5968 # whether `pass_all' will *always* work, you probably want this one.
5969
5970 case $host_os in
5971 aix[4-9]*)
5972 lt_cv_deplibs_check_method=pass_all
5973 ;;
5974
5975 beos*)
5976 lt_cv_deplibs_check_method=pass_all
5977 ;;
5978
5979 bsdi[45]*)
5980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5981 lt_cv_file_magic_cmd='/usr/bin/file -L'
5982 lt_cv_file_magic_test_file=/shlib/libc.so
5983 ;;
5984
5985 cygwin*)
5986 # func_win32_libid is a shell function defined in ltmain.sh
5987 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5988 lt_cv_file_magic_cmd='func_win32_libid'
5989 ;;
5990
5991 mingw* | pw32*)
5992 # Base MSYS/MinGW do not provide the 'file' command needed by
5993 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5994 # unless we find 'file', for example because we are cross-compiling.
5995 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5996 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5997 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5998 lt_cv_file_magic_cmd='func_win32_libid'
5999 else
6000 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6001 lt_cv_file_magic_cmd='$OBJDUMP -f'
6002 fi
6003 ;;
6004
6005 cegcc*)
6006 # use the weaker test based on 'objdump'. See mingw*.
6007 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6008 lt_cv_file_magic_cmd='$OBJDUMP -f'
6009 ;;
6010
6011 darwin* | rhapsody*)
6012 lt_cv_deplibs_check_method=pass_all
6013 ;;
6014
6015 freebsd* | dragonfly*)
6016 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6017 case $host_cpu in
6018 i*86 )
6019 # Not sure whether the presence of OpenBSD here was a mistake.
6020 # Let's accept both of them until this is cleared up.
6021 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6022 lt_cv_file_magic_cmd=/usr/bin/file
6023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6024 ;;
6025 esac
6026 else
6027 lt_cv_deplibs_check_method=pass_all
6028 fi
6029 ;;
6030
6031 gnu*)
6032 lt_cv_deplibs_check_method=pass_all
6033 ;;
6034
6035 haiku*)
6036 lt_cv_deplibs_check_method=pass_all
6037 ;;
6038
6039 hpux10.20* | hpux11*)
6040 lt_cv_file_magic_cmd=/usr/bin/file
6041 case $host_cpu in
6042 ia64*)
6043 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6044 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6045 ;;
6046 hppa*64*)
6047 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]'
6048 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6049 ;;
6050 *)
6051 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6052 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6053 ;;
6054 esac
6055 ;;
6056
6057 interix[3-9]*)
6058 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6059 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6060 ;;
6061
6062 irix5* | irix6* | nonstopux*)
6063 case $LD in
6064 *-32|*"-32 ") libmagic=32-bit;;
6065 *-n32|*"-n32 ") libmagic=N32;;
6066 *-64|*"-64 ") libmagic=64-bit;;
6067 *) libmagic=never-match;;
6068 esac
6069 lt_cv_deplibs_check_method=pass_all
6070 ;;
6071
6072 # This must be Linux ELF.
6073 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6074 lt_cv_deplibs_check_method=pass_all
6075 ;;
6076
6077 netbsd*)
6078 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6080 else
6081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6082 fi
6083 ;;
6084
6085 newos6*)
6086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6087 lt_cv_file_magic_cmd=/usr/bin/file
6088 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6089 ;;
6090
6091 *nto* | *qnx*)
6092 lt_cv_deplibs_check_method=pass_all
6093 ;;
6094
6095 openbsd*)
6096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6098 else
6099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6100 fi
6101 ;;
6102
6103 osf3* | osf4* | osf5*)
6104 lt_cv_deplibs_check_method=pass_all
6105 ;;
6106
6107 rdos*)
6108 lt_cv_deplibs_check_method=pass_all
6109 ;;
6110
6111 solaris*)
6112 lt_cv_deplibs_check_method=pass_all
6113 ;;
6114
6115 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6116 lt_cv_deplibs_check_method=pass_all
6117 ;;
6118
6119 sysv4 | sysv4.3*)
6120 case $host_vendor in
6121 motorola)
6122 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]'
6123 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6124 ;;
6125 ncr)
6126 lt_cv_deplibs_check_method=pass_all
6127 ;;
6128 sequent)
6129 lt_cv_file_magic_cmd='/bin/file'
6130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6131 ;;
6132 sni)
6133 lt_cv_file_magic_cmd='/bin/file'
6134 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6135 lt_cv_file_magic_test_file=/lib/libc.so
6136 ;;
6137 siemens)
6138 lt_cv_deplibs_check_method=pass_all
6139 ;;
6140 pc)
6141 lt_cv_deplibs_check_method=pass_all
6142 ;;
6143 esac
6144 ;;
6145
6146 tpf*)
6147 lt_cv_deplibs_check_method=pass_all
6148 ;;
6149 esac
6150
6151 fi
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6153 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6154 file_magic_cmd=$lt_cv_file_magic_cmd
6155 deplibs_check_method=$lt_cv_deplibs_check_method
6156 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169 plugin_option=
6170 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6171 for plugin in $plugin_names; do
6172 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6173 if test x$plugin_so = x$plugin; then
6174 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6175 fi
6176 if test x$plugin_so != x$plugin; then
6177 plugin_option="--plugin $plugin_so"
6178 break
6179 fi
6180 done
6181
6182 if test -n "$ac_tool_prefix"; then
6183 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6184 set dummy ${ac_tool_prefix}ar; ac_word=$2
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186 $as_echo_n "checking for $ac_word... " >&6; }
6187 if ${ac_cv_prog_AR+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 if test -n "$AR"; then
6191 ac_cv_prog_AR="$AR" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6195 do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6200 ac_cv_prog_AR="${ac_tool_prefix}ar"
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204 done
6205 done
6206 IFS=$as_save_IFS
6207
6208 fi
6209 fi
6210 AR=$ac_cv_prog_AR
6211 if test -n "$AR"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6213 $as_echo "$AR" >&6; }
6214 else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6217 fi
6218
6219
6220 fi
6221 if test -z "$ac_cv_prog_AR"; then
6222 ac_ct_AR=$AR
6223 # Extract the first word of "ar", so it can be a program name with args.
6224 set dummy ar; ac_word=$2
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229 else
6230 if test -n "$ac_ct_AR"; then
6231 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6232 else
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6235 do
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6240 ac_cv_prog_ac_ct_AR="ar"
6241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 break 2
6243 fi
6244 done
6245 done
6246 IFS=$as_save_IFS
6247
6248 fi
6249 fi
6250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6251 if test -n "$ac_ct_AR"; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6253 $as_echo "$ac_ct_AR" >&6; }
6254 else
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6257 fi
6258
6259 if test "x$ac_ct_AR" = x; then
6260 AR="false"
6261 else
6262 case $cross_compiling:$ac_tool_warned in
6263 yes:)
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6266 ac_tool_warned=yes ;;
6267 esac
6268 AR=$ac_ct_AR
6269 fi
6270 else
6271 AR="$ac_cv_prog_AR"
6272 fi
6273
6274 test -z "$AR" && AR=ar
6275 if test -n "$plugin_option"; then
6276 if $AR --help 2>&1 | grep -q "\--plugin"; then
6277 touch conftest.c
6278 $AR $plugin_option rc conftest.a conftest.c
6279 if test "$?" != 0; then
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6281 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6282 else
6283 AR="$AR $plugin_option"
6284 fi
6285 rm -f conftest.*
6286 fi
6287 fi
6288 test -z "$AR_FLAGS" && AR_FLAGS=cru
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300 if test -n "$ac_tool_prefix"; then
6301 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6302 set dummy ${ac_tool_prefix}strip; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if ${ac_cv_prog_STRIP+:} false; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 if test -n "$STRIP"; then
6309 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 break 2
6321 fi
6322 done
6323 done
6324 IFS=$as_save_IFS
6325
6326 fi
6327 fi
6328 STRIP=$ac_cv_prog_STRIP
6329 if test -n "$STRIP"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6331 $as_echo "$STRIP" >&6; }
6332 else
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6335 fi
6336
6337
6338 fi
6339 if test -z "$ac_cv_prog_STRIP"; then
6340 ac_ct_STRIP=$STRIP
6341 # Extract the first word of "strip", so it can be a program name with args.
6342 set dummy strip; ac_word=$2
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344 $as_echo_n "checking for $ac_word... " >&6; }
6345 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 if test -n "$ac_ct_STRIP"; then
6349 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6350 else
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354 IFS=$as_save_IFS
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6358 ac_cv_prog_ac_ct_STRIP="strip"
6359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 break 2
6361 fi
6362 done
6363 done
6364 IFS=$as_save_IFS
6365
6366 fi
6367 fi
6368 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6369 if test -n "$ac_ct_STRIP"; then
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6371 $as_echo "$ac_ct_STRIP" >&6; }
6372 else
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374 $as_echo "no" >&6; }
6375 fi
6376
6377 if test "x$ac_ct_STRIP" = x; then
6378 STRIP=":"
6379 else
6380 case $cross_compiling:$ac_tool_warned in
6381 yes:)
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6384 ac_tool_warned=yes ;;
6385 esac
6386 STRIP=$ac_ct_STRIP
6387 fi
6388 else
6389 STRIP="$ac_cv_prog_STRIP"
6390 fi
6391
6392 test -z "$STRIP" && STRIP=:
6393
6394
6395
6396
6397
6398
6399 if test -n "$ac_tool_prefix"; then
6400 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403 $as_echo_n "checking for $ac_word... " >&6; }
6404 if ${ac_cv_prog_RANLIB+:} false; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407 if test -n "$RANLIB"; then
6408 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6409 else
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $PATH
6412 do
6413 IFS=$as_save_IFS
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6417 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 break 2
6420 fi
6421 done
6422 done
6423 IFS=$as_save_IFS
6424
6425 fi
6426 fi
6427 RANLIB=$ac_cv_prog_RANLIB
6428 if test -n "$RANLIB"; then
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6430 $as_echo "$RANLIB" >&6; }
6431 else
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433 $as_echo "no" >&6; }
6434 fi
6435
6436
6437 fi
6438 if test -z "$ac_cv_prog_RANLIB"; then
6439 ac_ct_RANLIB=$RANLIB
6440 # Extract the first word of "ranlib", so it can be a program name with args.
6441 set dummy ranlib; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 if test -n "$ac_ct_RANLIB"; then
6448 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6457 ac_cv_prog_ac_ct_RANLIB="ranlib"
6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 break 2
6460 fi
6461 done
6462 done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6468 if test -n "$ac_ct_RANLIB"; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6470 $as_echo "$ac_ct_RANLIB" >&6; }
6471 else
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475
6476 if test "x$ac_ct_RANLIB" = x; then
6477 RANLIB=":"
6478 else
6479 case $cross_compiling:$ac_tool_warned in
6480 yes:)
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6484 esac
6485 RANLIB=$ac_ct_RANLIB
6486 fi
6487 else
6488 RANLIB="$ac_cv_prog_RANLIB"
6489 fi
6490
6491 test -z "$RANLIB" && RANLIB=:
6492 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6493 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6494 RANLIB="$RANLIB $plugin_option"
6495 fi
6496 fi
6497
6498
6499
6500
6501
6502
6503 # Determine commands to create old-style static archives.
6504 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6505 old_postinstall_cmds='chmod 644 $oldlib'
6506 old_postuninstall_cmds=
6507
6508 if test -n "$RANLIB"; then
6509 case $host_os in
6510 openbsd*)
6511 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6512 ;;
6513 *)
6514 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6515 ;;
6516 esac
6517 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6518 fi
6519
6520 case $host_os in
6521 darwin*)
6522 lock_old_archive_extraction=yes ;;
6523 *)
6524 lock_old_archive_extraction=no ;;
6525 esac
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547 for ac_prog in gawk mawk nawk awk
6548 do
6549 # Extract the first word of "$ac_prog", so it can be a program name with args.
6550 set dummy $ac_prog; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if ${ac_cv_prog_AWK+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 if test -n "$AWK"; then
6557 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_AWK="$ac_prog"
6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 break 2
6569 fi
6570 done
6571 done
6572 IFS=$as_save_IFS
6573
6574 fi
6575 fi
6576 AWK=$ac_cv_prog_AWK
6577 if test -n "$AWK"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6579 $as_echo "$AWK" >&6; }
6580 else
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6583 fi
6584
6585
6586 test -n "$AWK" && break
6587 done
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607 # If no C compiler was specified, use CC.
6608 LTCC=${LTCC-"$CC"}
6609
6610 # If no C compiler flags were specified, use CFLAGS.
6611 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6612
6613 # Allow CC to be a program name with arguments.
6614 compiler=$CC
6615
6616
6617 # Check for command to grab the raw symbol name followed by C symbol from nm.
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6619 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6620 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623
6624 # These are sane defaults that work on at least a few old systems.
6625 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6626
6627 # Character class describing NM global symbol codes.
6628 symcode='[BCDEGRST]'
6629
6630 # Regexp to match symbols that can be accessed directly from C.
6631 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6632
6633 # Define system-specific variables.
6634 case $host_os in
6635 aix*)
6636 symcode='[BCDT]'
6637 ;;
6638 cygwin* | mingw* | pw32* | cegcc*)
6639 symcode='[ABCDGISTW]'
6640 ;;
6641 hpux*)
6642 if test "$host_cpu" = ia64; then
6643 symcode='[ABCDEGRST]'
6644 fi
6645 ;;
6646 irix* | nonstopux*)
6647 symcode='[BCDEGRST]'
6648 ;;
6649 osf*)
6650 symcode='[BCDEGQRST]'
6651 ;;
6652 solaris*)
6653 symcode='[BDRT]'
6654 ;;
6655 sco3.2v5*)
6656 symcode='[DT]'
6657 ;;
6658 sysv4.2uw2*)
6659 symcode='[DT]'
6660 ;;
6661 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6662 symcode='[ABDT]'
6663 ;;
6664 sysv4)
6665 symcode='[DFNSTU]'
6666 ;;
6667 esac
6668
6669 # If we're using GNU nm, then use its standard symbol codes.
6670 case `$NM -V 2>&1` in
6671 *GNU* | *'with BFD'*)
6672 symcode='[ABCDGIRSTW]' ;;
6673 esac
6674
6675 # Transform an extracted symbol line into a proper C declaration.
6676 # Some systems (esp. on ia64) link data and code symbols differently,
6677 # so use this general approach.
6678 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6679
6680 # Transform an extracted symbol line into symbol name and symbol address
6681 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6682 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'"
6683
6684 # Handle CRLF in mingw tool chain
6685 opt_cr=
6686 case $build_os in
6687 mingw*)
6688 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6689 ;;
6690 esac
6691
6692 # Try without a prefix underscore, then with it.
6693 for ac_symprfx in "" "_"; do
6694
6695 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6696 symxfrm="\\1 $ac_symprfx\\2 \\2"
6697
6698 # Write the raw and C identifiers.
6699 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6700 # Fake it for dumpbin and say T for any non-static function
6701 # and D for any global variable.
6702 # Also find C++ and __fastcall symbols from MSVC++,
6703 # which start with @ or ?.
6704 lt_cv_sys_global_symbol_pipe="$AWK '"\
6705 " {last_section=section; section=\$ 3};"\
6706 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6707 " \$ 0!~/External *\|/{next};"\
6708 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6709 " {if(hide[section]) next};"\
6710 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6711 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6712 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6713 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6714 " ' prfx=^$ac_symprfx"
6715 else
6716 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6717 fi
6718
6719 # Check to see that the pipe works correctly.
6720 pipe_works=no
6721
6722 rm -f conftest*
6723 cat > conftest.$ac_ext <<_LT_EOF
6724 #ifdef __cplusplus
6725 extern "C" {
6726 #endif
6727 char nm_test_var;
6728 void nm_test_func(void);
6729 void nm_test_func(void){}
6730 #ifdef __cplusplus
6731 }
6732 #endif
6733 int main(){nm_test_var='a';nm_test_func();return(0);}
6734 _LT_EOF
6735
6736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6737 (eval $ac_compile) 2>&5
6738 ac_status=$?
6739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6740 test $ac_status = 0; }; then
6741 # Now try to grab the symbols.
6742 nlist=conftest.nm
6743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6744 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6745 ac_status=$?
6746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6747 test $ac_status = 0; } && test -s "$nlist"; then
6748 # Try sorting and uniquifying the output.
6749 if sort "$nlist" | uniq > "$nlist"T; then
6750 mv -f "$nlist"T "$nlist"
6751 else
6752 rm -f "$nlist"T
6753 fi
6754
6755 # Make sure that we snagged all the symbols we need.
6756 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6757 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6758 cat <<_LT_EOF > conftest.$ac_ext
6759 #ifdef __cplusplus
6760 extern "C" {
6761 #endif
6762
6763 _LT_EOF
6764 # Now generate the symbol file.
6765 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6766
6767 cat <<_LT_EOF >> conftest.$ac_ext
6768
6769 /* The mapping between symbol names and symbols. */
6770 const struct {
6771 const char *name;
6772 void *address;
6773 }
6774 lt__PROGRAM__LTX_preloaded_symbols[] =
6775 {
6776 { "@PROGRAM@", (void *) 0 },
6777 _LT_EOF
6778 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6779 cat <<\_LT_EOF >> conftest.$ac_ext
6780 {0, (void *) 0}
6781 };
6782
6783 /* This works around a problem in FreeBSD linker */
6784 #ifdef FREEBSD_WORKAROUND
6785 static const void *lt_preloaded_setup() {
6786 return lt__PROGRAM__LTX_preloaded_symbols;
6787 }
6788 #endif
6789
6790 #ifdef __cplusplus
6791 }
6792 #endif
6793 _LT_EOF
6794 # Now try linking the two files.
6795 mv conftest.$ac_objext conftstm.$ac_objext
6796 lt_save_LIBS="$LIBS"
6797 lt_save_CFLAGS="$CFLAGS"
6798 LIBS="conftstm.$ac_objext"
6799 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6801 (eval $ac_link) 2>&5
6802 ac_status=$?
6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6805 pipe_works=yes
6806 fi
6807 LIBS="$lt_save_LIBS"
6808 CFLAGS="$lt_save_CFLAGS"
6809 else
6810 echo "cannot find nm_test_func in $nlist" >&5
6811 fi
6812 else
6813 echo "cannot find nm_test_var in $nlist" >&5
6814 fi
6815 else
6816 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6817 fi
6818 else
6819 echo "$progname: failed program was:" >&5
6820 cat conftest.$ac_ext >&5
6821 fi
6822 rm -rf conftest* conftst*
6823
6824 # Do not use the global_symbol_pipe unless it works.
6825 if test "$pipe_works" = yes; then
6826 break
6827 else
6828 lt_cv_sys_global_symbol_pipe=
6829 fi
6830 done
6831
6832 fi
6833
6834 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6835 lt_cv_sys_global_symbol_to_cdecl=
6836 fi
6837 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6839 $as_echo "failed" >&6; }
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6842 $as_echo "ok" >&6; }
6843 fi
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866 # Check whether --enable-libtool-lock was given.
6867 if test "${enable_libtool_lock+set}" = set; then :
6868 enableval=$enable_libtool_lock;
6869 fi
6870
6871 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6872
6873 # Some flags need to be propagated to the compiler or linker for good
6874 # libtool support.
6875 case $host in
6876 ia64-*-hpux*)
6877 # Find out which ABI we are using.
6878 echo 'int i;' > conftest.$ac_ext
6879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6880 (eval $ac_compile) 2>&5
6881 ac_status=$?
6882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6883 test $ac_status = 0; }; then
6884 case `/usr/bin/file conftest.$ac_objext` in
6885 *ELF-32*)
6886 HPUX_IA64_MODE="32"
6887 ;;
6888 *ELF-64*)
6889 HPUX_IA64_MODE="64"
6890 ;;
6891 esac
6892 fi
6893 rm -rf conftest*
6894 ;;
6895 *-*-irix6*)
6896 # Find out which ABI we are using.
6897 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6899 (eval $ac_compile) 2>&5
6900 ac_status=$?
6901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6902 test $ac_status = 0; }; then
6903 if test "$lt_cv_prog_gnu_ld" = yes; then
6904 case `/usr/bin/file conftest.$ac_objext` in
6905 *32-bit*)
6906 LD="${LD-ld} -melf32bsmip"
6907 ;;
6908 *N32*)
6909 LD="${LD-ld} -melf32bmipn32"
6910 ;;
6911 *64-bit*)
6912 LD="${LD-ld} -melf64bmip"
6913 ;;
6914 esac
6915 else
6916 case `/usr/bin/file conftest.$ac_objext` in
6917 *32-bit*)
6918 LD="${LD-ld} -32"
6919 ;;
6920 *N32*)
6921 LD="${LD-ld} -n32"
6922 ;;
6923 *64-bit*)
6924 LD="${LD-ld} -64"
6925 ;;
6926 esac
6927 fi
6928 fi
6929 rm -rf conftest*
6930 ;;
6931
6932 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6933 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6934 # Find out which ABI we are using.
6935 echo 'int i;' > conftest.$ac_ext
6936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6937 (eval $ac_compile) 2>&5
6938 ac_status=$?
6939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6940 test $ac_status = 0; }; then
6941 case `/usr/bin/file conftest.o` in
6942 *32-bit*)
6943 case $host in
6944 x86_64-*kfreebsd*-gnu)
6945 LD="${LD-ld} -m elf_i386_fbsd"
6946 ;;
6947 x86_64-*linux*)
6948 case `/usr/bin/file conftest.o` in
6949 *x86-64*)
6950 LD="${LD-ld} -m elf32_x86_64"
6951 ;;
6952 *)
6953 LD="${LD-ld} -m elf_i386"
6954 ;;
6955 esac
6956 ;;
6957 powerpc64le-*linux*)
6958 LD="${LD-ld} -m elf32lppclinux"
6959 ;;
6960 powerpc64-*linux*)
6961 LD="${LD-ld} -m elf32ppclinux"
6962 ;;
6963 s390x-*linux*)
6964 LD="${LD-ld} -m elf_s390"
6965 ;;
6966 sparc64-*linux*)
6967 LD="${LD-ld} -m elf32_sparc"
6968 ;;
6969 esac
6970 ;;
6971 *64-bit*)
6972 case $host in
6973 x86_64-*kfreebsd*-gnu)
6974 LD="${LD-ld} -m elf_x86_64_fbsd"
6975 ;;
6976 x86_64-*linux*)
6977 LD="${LD-ld} -m elf_x86_64"
6978 ;;
6979 powerpcle-*linux*)
6980 LD="${LD-ld} -m elf64lppc"
6981 ;;
6982 powerpc-*linux*)
6983 LD="${LD-ld} -m elf64ppc"
6984 ;;
6985 s390*-*linux*|s390*-*tpf*)
6986 LD="${LD-ld} -m elf64_s390"
6987 ;;
6988 sparc*-*linux*)
6989 LD="${LD-ld} -m elf64_sparc"
6990 ;;
6991 esac
6992 ;;
6993 esac
6994 fi
6995 rm -rf conftest*
6996 ;;
6997
6998 *-*-sco3.2v5*)
6999 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7000 SAVE_CFLAGS="$CFLAGS"
7001 CFLAGS="$CFLAGS -belf"
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7003 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7004 if ${lt_cv_cc_needs_belf+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 ac_ext=c
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7012
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7015
7016 int
7017 main ()
7018 {
7019
7020 ;
7021 return 0;
7022 }
7023 _ACEOF
7024 if ac_fn_c_try_link "$LINENO"; then :
7025 lt_cv_cc_needs_belf=yes
7026 else
7027 lt_cv_cc_needs_belf=no
7028 fi
7029 rm -f core conftest.err conftest.$ac_objext \
7030 conftest$ac_exeext conftest.$ac_ext
7031 ac_ext=c
7032 ac_cpp='$CPP $CPPFLAGS'
7033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7036
7037 fi
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7039 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7040 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7041 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7042 CFLAGS="$SAVE_CFLAGS"
7043 fi
7044 ;;
7045 sparc*-*solaris*)
7046 # Find out which ABI we are using.
7047 echo 'int i;' > conftest.$ac_ext
7048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7049 (eval $ac_compile) 2>&5
7050 ac_status=$?
7051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7052 test $ac_status = 0; }; then
7053 case `/usr/bin/file conftest.o` in
7054 *64-bit*)
7055 case $lt_cv_prog_gnu_ld in
7056 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7057 *)
7058 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7059 LD="${LD-ld} -64"
7060 fi
7061 ;;
7062 esac
7063 ;;
7064 esac
7065 fi
7066 rm -rf conftest*
7067 ;;
7068 esac
7069
7070 need_locks="$enable_libtool_lock"
7071
7072
7073 case $host_os in
7074 rhapsody* | darwin*)
7075 if test -n "$ac_tool_prefix"; then
7076 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7077 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 if test -n "$DSYMUTIL"; then
7084 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097 done
7098 done
7099 IFS=$as_save_IFS
7100
7101 fi
7102 fi
7103 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7104 if test -n "$DSYMUTIL"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7106 $as_echo "$DSYMUTIL" >&6; }
7107 else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7110 fi
7111
7112
7113 fi
7114 if test -z "$ac_cv_prog_DSYMUTIL"; then
7115 ac_ct_DSYMUTIL=$DSYMUTIL
7116 # Extract the first word of "dsymutil", so it can be a program name with args.
7117 set dummy dsymutil; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 if test -n "$ac_ct_DSYMUTIL"; then
7124 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7136 fi
7137 done
7138 done
7139 IFS=$as_save_IFS
7140
7141 fi
7142 fi
7143 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7144 if test -n "$ac_ct_DSYMUTIL"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7146 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7150 fi
7151
7152 if test "x$ac_ct_DSYMUTIL" = x; then
7153 DSYMUTIL=":"
7154 else
7155 case $cross_compiling:$ac_tool_warned in
7156 yes:)
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159 ac_tool_warned=yes ;;
7160 esac
7161 DSYMUTIL=$ac_ct_DSYMUTIL
7162 fi
7163 else
7164 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7165 fi
7166
7167 if test -n "$ac_tool_prefix"; then
7168 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7169 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if ${ac_cv_prog_NMEDIT+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 if test -n "$NMEDIT"; then
7176 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189 done
7190 done
7191 IFS=$as_save_IFS
7192
7193 fi
7194 fi
7195 NMEDIT=$ac_cv_prog_NMEDIT
7196 if test -n "$NMEDIT"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7198 $as_echo "$NMEDIT" >&6; }
7199 else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7202 fi
7203
7204
7205 fi
7206 if test -z "$ac_cv_prog_NMEDIT"; then
7207 ac_ct_NMEDIT=$NMEDIT
7208 # Extract the first word of "nmedit", so it can be a program name with args.
7209 set dummy nmedit; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7213 $as_echo_n "(cached) " >&6
7214 else
7215 if test -n "$ac_ct_NMEDIT"; then
7216 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229 done
7230 done
7231 IFS=$as_save_IFS
7232
7233 fi
7234 fi
7235 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7236 if test -n "$ac_ct_NMEDIT"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7238 $as_echo "$ac_ct_NMEDIT" >&6; }
7239 else
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7242 fi
7243
7244 if test "x$ac_ct_NMEDIT" = x; then
7245 NMEDIT=":"
7246 else
7247 case $cross_compiling:$ac_tool_warned in
7248 yes:)
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7251 ac_tool_warned=yes ;;
7252 esac
7253 NMEDIT=$ac_ct_NMEDIT
7254 fi
7255 else
7256 NMEDIT="$ac_cv_prog_NMEDIT"
7257 fi
7258
7259 if test -n "$ac_tool_prefix"; then
7260 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7261 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_LIPO+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 if test -n "$LIPO"; then
7268 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281 done
7282 done
7283 IFS=$as_save_IFS
7284
7285 fi
7286 fi
7287 LIPO=$ac_cv_prog_LIPO
7288 if test -n "$LIPO"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7290 $as_echo "$LIPO" >&6; }
7291 else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7294 fi
7295
7296
7297 fi
7298 if test -z "$ac_cv_prog_LIPO"; then
7299 ac_ct_LIPO=$LIPO
7300 # Extract the first word of "lipo", so it can be a program name with args.
7301 set dummy lipo; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 if test -n "$ac_ct_LIPO"; then
7308 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_ac_ct_LIPO="lipo"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321 done
7322 done
7323 IFS=$as_save_IFS
7324
7325 fi
7326 fi
7327 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7328 if test -n "$ac_ct_LIPO"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7330 $as_echo "$ac_ct_LIPO" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336 if test "x$ac_ct_LIPO" = x; then
7337 LIPO=":"
7338 else
7339 case $cross_compiling:$ac_tool_warned in
7340 yes:)
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343 ac_tool_warned=yes ;;
7344 esac
7345 LIPO=$ac_ct_LIPO
7346 fi
7347 else
7348 LIPO="$ac_cv_prog_LIPO"
7349 fi
7350
7351 if test -n "$ac_tool_prefix"; then
7352 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7353 set dummy ${ac_tool_prefix}otool; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_prog_OTOOL+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 if test -n "$OTOOL"; then
7360 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7372 fi
7373 done
7374 done
7375 IFS=$as_save_IFS
7376
7377 fi
7378 fi
7379 OTOOL=$ac_cv_prog_OTOOL
7380 if test -n "$OTOOL"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7382 $as_echo "$OTOOL" >&6; }
7383 else
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7386 fi
7387
7388
7389 fi
7390 if test -z "$ac_cv_prog_OTOOL"; then
7391 ac_ct_OTOOL=$OTOOL
7392 # Extract the first word of "otool", so it can be a program name with args.
7393 set dummy otool; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7397 $as_echo_n "(cached) " >&6
7398 else
7399 if test -n "$ac_ct_OTOOL"; then
7400 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409 ac_cv_prog_ac_ct_OTOOL="otool"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 break 2
7412 fi
7413 done
7414 done
7415 IFS=$as_save_IFS
7416
7417 fi
7418 fi
7419 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7420 if test -n "$ac_ct_OTOOL"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7422 $as_echo "$ac_ct_OTOOL" >&6; }
7423 else
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7426 fi
7427
7428 if test "x$ac_ct_OTOOL" = x; then
7429 OTOOL=":"
7430 else
7431 case $cross_compiling:$ac_tool_warned in
7432 yes:)
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7435 ac_tool_warned=yes ;;
7436 esac
7437 OTOOL=$ac_ct_OTOOL
7438 fi
7439 else
7440 OTOOL="$ac_cv_prog_OTOOL"
7441 fi
7442
7443 if test -n "$ac_tool_prefix"; then
7444 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7445 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if ${ac_cv_prog_OTOOL64+:} false; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 if test -n "$OTOOL64"; then
7452 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7464 fi
7465 done
7466 done
7467 IFS=$as_save_IFS
7468
7469 fi
7470 fi
7471 OTOOL64=$ac_cv_prog_OTOOL64
7472 if test -n "$OTOOL64"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7474 $as_echo "$OTOOL64" >&6; }
7475 else
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7478 fi
7479
7480
7481 fi
7482 if test -z "$ac_cv_prog_OTOOL64"; then
7483 ac_ct_OTOOL64=$OTOOL64
7484 # Extract the first word of "otool64", so it can be a program name with args.
7485 set dummy otool64; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 if test -n "$ac_ct_OTOOL64"; then
7492 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7493 else
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7496 do
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_ac_ct_OTOOL64="otool64"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7504 fi
7505 done
7506 done
7507 IFS=$as_save_IFS
7508
7509 fi
7510 fi
7511 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7512 if test -n "$ac_ct_OTOOL64"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7514 $as_echo "$ac_ct_OTOOL64" >&6; }
7515 else
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7518 fi
7519
7520 if test "x$ac_ct_OTOOL64" = x; then
7521 OTOOL64=":"
7522 else
7523 case $cross_compiling:$ac_tool_warned in
7524 yes:)
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7527 ac_tool_warned=yes ;;
7528 esac
7529 OTOOL64=$ac_ct_OTOOL64
7530 fi
7531 else
7532 OTOOL64="$ac_cv_prog_OTOOL64"
7533 fi
7534
7535
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7562 $as_echo_n "checking for -single_module linker flag... " >&6; }
7563 if ${lt_cv_apple_cc_single_mod+:} false; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566 lt_cv_apple_cc_single_mod=no
7567 if test -z "${LT_MULTI_MODULE}"; then
7568 # By default we will add the -single_module flag. You can override
7569 # by either setting the environment variable LT_MULTI_MODULE
7570 # non-empty at configure time, or by adding -multi_module to the
7571 # link flags.
7572 rm -rf libconftest.dylib*
7573 echo "int foo(void){return 1;}" > conftest.c
7574 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7575 -dynamiclib -Wl,-single_module conftest.c" >&5
7576 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7577 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7578 _lt_result=$?
7579 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7580 lt_cv_apple_cc_single_mod=yes
7581 else
7582 cat conftest.err >&5
7583 fi
7584 rm -rf libconftest.dylib*
7585 rm -f conftest.*
7586 fi
7587 fi
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7589 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7591 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7592 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595 lt_cv_ld_exported_symbols_list=no
7596 save_LDFLAGS=$LDFLAGS
7597 echo "_main" > conftest.sym
7598 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h. */
7601
7602 int
7603 main ()
7604 {
7605
7606 ;
7607 return 0;
7608 }
7609 _ACEOF
7610 if ac_fn_c_try_link "$LINENO"; then :
7611 lt_cv_ld_exported_symbols_list=yes
7612 else
7613 lt_cv_ld_exported_symbols_list=no
7614 fi
7615 rm -f core conftest.err conftest.$ac_objext \
7616 conftest$ac_exeext conftest.$ac_ext
7617 LDFLAGS="$save_LDFLAGS"
7618
7619 fi
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7621 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7623 $as_echo_n "checking for -force_load linker flag... " >&6; }
7624 if ${lt_cv_ld_force_load+:} false; then :
7625 $as_echo_n "(cached) " >&6
7626 else
7627 lt_cv_ld_force_load=no
7628 cat > conftest.c << _LT_EOF
7629 int forced_loaded() { return 2;}
7630 _LT_EOF
7631 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7632 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7633 echo "$AR cru libconftest.a conftest.o" >&5
7634 $AR cru libconftest.a conftest.o 2>&5
7635 cat > conftest.c << _LT_EOF
7636 int main() { return 0;}
7637 _LT_EOF
7638 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7639 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7640 _lt_result=$?
7641 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7642 lt_cv_ld_force_load=yes
7643 else
7644 cat conftest.err >&5
7645 fi
7646 rm -f conftest.err libconftest.a conftest conftest.c
7647 rm -rf conftest.dSYM
7648
7649 fi
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7651 $as_echo "$lt_cv_ld_force_load" >&6; }
7652 case $host_os in
7653 rhapsody* | darwin1.[012])
7654 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7655 darwin1.*)
7656 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7657 darwin*) # darwin 5.x on
7658 # if running on 10.5 or later, the deployment target defaults
7659 # to the OS version, if on x86, and 10.4, the deployment
7660 # target defaults to 10.4. Don't you love it?
7661 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7662 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7663 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7664 10.[012][,.]*)
7665 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7666 10.*)
7667 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7668 esac
7669 ;;
7670 esac
7671 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7672 _lt_dar_single_mod='$single_module'
7673 fi
7674 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7675 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7676 else
7677 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7678 fi
7679 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7680 _lt_dsymutil='~$DSYMUTIL $lib || :'
7681 else
7682 _lt_dsymutil=
7683 fi
7684 ;;
7685 esac
7686
7687 for ac_header in dlfcn.h
7688 do :
7689 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7690 "
7691 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7692 cat >>confdefs.h <<_ACEOF
7693 #define HAVE_DLFCN_H 1
7694 _ACEOF
7695
7696 fi
7697
7698 done
7699
7700
7701 ac_header_dirent=no
7702 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7703 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7705 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7706 if eval \${$as_ac_Header+:} false; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711 #include <sys/types.h>
7712 #include <$ac_hdr>
7713
7714 int
7715 main ()
7716 {
7717 if ((DIR *) 0)
7718 return 0;
7719 ;
7720 return 0;
7721 }
7722 _ACEOF
7723 if ac_fn_c_try_compile "$LINENO"; then :
7724 eval "$as_ac_Header=yes"
7725 else
7726 eval "$as_ac_Header=no"
7727 fi
7728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729 fi
7730 eval ac_res=\$$as_ac_Header
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7732 $as_echo "$ac_res" >&6; }
7733 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7734 cat >>confdefs.h <<_ACEOF
7735 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7736 _ACEOF
7737
7738 ac_header_dirent=$ac_hdr; break
7739 fi
7740
7741 done
7742 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7743 if test $ac_header_dirent = dirent.h; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7745 $as_echo_n "checking for library containing opendir... " >&6; }
7746 if ${ac_cv_search_opendir+:} false; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749 ac_func_search_save_LIBS=$LIBS
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7752
7753 /* Override any GCC internal prototype to avoid an error.
7754 Use char because int might match the return type of a GCC
7755 builtin and then its argument prototype would still apply. */
7756 #ifdef __cplusplus
7757 extern "C"
7758 #endif
7759 char opendir ();
7760 int
7761 main ()
7762 {
7763 return opendir ();
7764 ;
7765 return 0;
7766 }
7767 _ACEOF
7768 for ac_lib in '' dir; do
7769 if test -z "$ac_lib"; then
7770 ac_res="none required"
7771 else
7772 ac_res=-l$ac_lib
7773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7774 fi
7775 if ac_fn_c_try_link "$LINENO"; then :
7776 ac_cv_search_opendir=$ac_res
7777 fi
7778 rm -f core conftest.err conftest.$ac_objext \
7779 conftest$ac_exeext
7780 if ${ac_cv_search_opendir+:} false; then :
7781 break
7782 fi
7783 done
7784 if ${ac_cv_search_opendir+:} false; then :
7785
7786 else
7787 ac_cv_search_opendir=no
7788 fi
7789 rm conftest.$ac_ext
7790 LIBS=$ac_func_search_save_LIBS
7791 fi
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7793 $as_echo "$ac_cv_search_opendir" >&6; }
7794 ac_res=$ac_cv_search_opendir
7795 if test "$ac_res" != no; then :
7796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7797
7798 fi
7799
7800 else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7802 $as_echo_n "checking for library containing opendir... " >&6; }
7803 if ${ac_cv_search_opendir+:} false; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 ac_func_search_save_LIBS=$LIBS
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809
7810 /* Override any GCC internal prototype to avoid an error.
7811 Use char because int might match the return type of a GCC
7812 builtin and then its argument prototype would still apply. */
7813 #ifdef __cplusplus
7814 extern "C"
7815 #endif
7816 char opendir ();
7817 int
7818 main ()
7819 {
7820 return opendir ();
7821 ;
7822 return 0;
7823 }
7824 _ACEOF
7825 for ac_lib in '' x; do
7826 if test -z "$ac_lib"; then
7827 ac_res="none required"
7828 else
7829 ac_res=-l$ac_lib
7830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7831 fi
7832 if ac_fn_c_try_link "$LINENO"; then :
7833 ac_cv_search_opendir=$ac_res
7834 fi
7835 rm -f core conftest.err conftest.$ac_objext \
7836 conftest$ac_exeext
7837 if ${ac_cv_search_opendir+:} false; then :
7838 break
7839 fi
7840 done
7841 if ${ac_cv_search_opendir+:} false; then :
7842
7843 else
7844 ac_cv_search_opendir=no
7845 fi
7846 rm conftest.$ac_ext
7847 LIBS=$ac_func_search_save_LIBS
7848 fi
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7850 $as_echo "$ac_cv_search_opendir" >&6; }
7851 ac_res=$ac_cv_search_opendir
7852 if test "$ac_res" != no; then :
7853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7854
7855 fi
7856
7857 fi
7858
7859
7860
7861
7862 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7863 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7864
7865 cat >>confdefs.h <<_ACEOF
7866 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7867 _ACEOF
7868
7869
7870 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7871
7872 fi
7873
7874
7875 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7876 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7877
7878 cat >>confdefs.h <<_ACEOF
7879 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7880 _ACEOF
7881
7882
7883 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7884
7885 else
7886 case " $LIBOBJS " in
7887 *" fileblocks.$ac_objext "* ) ;;
7888 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7889 ;;
7890 esac
7891
7892 fi
7893
7894
7895 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7896 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7897
7898 cat >>confdefs.h <<_ACEOF
7899 #define HAVE_STRUCT_STAT_ST_RDEV 1
7900 _ACEOF
7901
7902
7903 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7904
7905 fi
7906
7907
7908 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7909 #include <$ac_cv_struct_tm>
7910
7911 "
7912 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7913
7914 cat >>confdefs.h <<_ACEOF
7915 #define HAVE_STRUCT_TM_TM_ZONE 1
7916 _ACEOF
7917
7918
7919 fi
7920
7921 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7922
7923 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7924
7925 else
7926 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7927 "
7928 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7929 ac_have_decl=1
7930 else
7931 ac_have_decl=0
7932 fi
7933
7934 cat >>confdefs.h <<_ACEOF
7935 #define HAVE_DECL_TZNAME $ac_have_decl
7936 _ACEOF
7937
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7939 $as_echo_n "checking for tzname... " >&6; }
7940 if ${ac_cv_var_tzname+:} false; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7945 #include <time.h>
7946 #if !HAVE_DECL_TZNAME
7947 extern char *tzname[];
7948 #endif
7949
7950 int
7951 main ()
7952 {
7953 return tzname[0][0];
7954 ;
7955 return 0;
7956 }
7957 _ACEOF
7958 if ac_fn_c_try_link "$LINENO"; then :
7959 ac_cv_var_tzname=yes
7960 else
7961 ac_cv_var_tzname=no
7962 fi
7963 rm -f core conftest.err conftest.$ac_objext \
7964 conftest$ac_exeext conftest.$ac_ext
7965 fi
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7967 $as_echo "$ac_cv_var_tzname" >&6; }
7968 if test $ac_cv_var_tzname = yes; then
7969
7970 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7971
7972 fi
7973 fi
7974
7975
7976 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
7977 #include <sys/types.h>
7978 #endif
7979 #ifdef HAVE_SYS_STAT_H
7980 #include <sys/stat.h>
7981 #endif
7982 "
7983 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
7984
7985 cat >>confdefs.h <<_ACEOF
7986 #define HAVE_STRUCT_STAT_ST_DEV 1
7987 _ACEOF
7988
7989
7990 fi
7991 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
7992 #include <sys/types.h>
7993 #endif
7994 #ifdef HAVE_SYS_STAT_H
7995 #include <sys/stat.h>
7996 #endif
7997 "
7998 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
7999
8000 cat >>confdefs.h <<_ACEOF
8001 #define HAVE_STRUCT_STAT_ST_INO 1
8002 _ACEOF
8003
8004
8005 fi
8006 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8007 #include <sys/types.h>
8008 #endif
8009 #ifdef HAVE_SYS_STAT_H
8010 #include <sys/stat.h>
8011 #endif
8012 "
8013 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8014
8015 cat >>confdefs.h <<_ACEOF
8016 #define HAVE_STRUCT_STAT_ST_MODE 1
8017 _ACEOF
8018
8019
8020 fi
8021 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8022 #include <sys/types.h>
8023 #endif
8024 #ifdef HAVE_SYS_STAT_H
8025 #include <sys/stat.h>
8026 #endif
8027 "
8028 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8029
8030 cat >>confdefs.h <<_ACEOF
8031 #define HAVE_STRUCT_STAT_ST_NLINK 1
8032 _ACEOF
8033
8034
8035 fi
8036 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8037 #include <sys/types.h>
8038 #endif
8039 #ifdef HAVE_SYS_STAT_H
8040 #include <sys/stat.h>
8041 #endif
8042 "
8043 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8044
8045 cat >>confdefs.h <<_ACEOF
8046 #define HAVE_STRUCT_STAT_ST_UID 1
8047 _ACEOF
8048
8049
8050 fi
8051 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8052 #include <sys/types.h>
8053 #endif
8054 #ifdef HAVE_SYS_STAT_H
8055 #include <sys/stat.h>
8056 #endif
8057 "
8058 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8059
8060 cat >>confdefs.h <<_ACEOF
8061 #define HAVE_STRUCT_STAT_ST_GID 1
8062 _ACEOF
8063
8064
8065 fi
8066 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8067 #include <sys/types.h>
8068 #endif
8069 #ifdef HAVE_SYS_STAT_H
8070 #include <sys/stat.h>
8071 #endif
8072 "
8073 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8074
8075 cat >>confdefs.h <<_ACEOF
8076 #define HAVE_STRUCT_STAT_ST_RDEV 1
8077 _ACEOF
8078
8079
8080 fi
8081 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8082 #include <sys/types.h>
8083 #endif
8084 #ifdef HAVE_SYS_STAT_H
8085 #include <sys/stat.h>
8086 #endif
8087 "
8088 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8089
8090 cat >>confdefs.h <<_ACEOF
8091 #define HAVE_STRUCT_STAT_ST_SIZE 1
8092 _ACEOF
8093
8094
8095 fi
8096 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8097 #include <sys/types.h>
8098 #endif
8099 #ifdef HAVE_SYS_STAT_H
8100 #include <sys/stat.h>
8101 #endif
8102 "
8103 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8104
8105 cat >>confdefs.h <<_ACEOF
8106 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8107 _ACEOF
8108
8109
8110 fi
8111 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8112 #include <sys/types.h>
8113 #endif
8114 #ifdef HAVE_SYS_STAT_H
8115 #include <sys/stat.h>
8116 #endif
8117 "
8118 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8119
8120 cat >>confdefs.h <<_ACEOF
8121 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8122 _ACEOF
8123
8124
8125 fi
8126 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8127 #include <sys/types.h>
8128 #endif
8129 #ifdef HAVE_SYS_STAT_H
8130 #include <sys/stat.h>
8131 #endif
8132 "
8133 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8134
8135 cat >>confdefs.h <<_ACEOF
8136 #define HAVE_STRUCT_STAT_ST_ATIME 1
8137 _ACEOF
8138
8139
8140 fi
8141 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8142 #include <sys/types.h>
8143 #endif
8144 #ifdef HAVE_SYS_STAT_H
8145 #include <sys/stat.h>
8146 #endif
8147 "
8148 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8149
8150 cat >>confdefs.h <<_ACEOF
8151 #define HAVE_STRUCT_STAT_ST_MTIME 1
8152 _ACEOF
8153
8154
8155 fi
8156 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8157 #include <sys/types.h>
8158 #endif
8159 #ifdef HAVE_SYS_STAT_H
8160 #include <sys/stat.h>
8161 #endif
8162 "
8163 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8164
8165 cat >>confdefs.h <<_ACEOF
8166 #define HAVE_STRUCT_STAT_ST_CTIME 1
8167 _ACEOF
8168
8169
8170 fi
8171
8172
8173 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8174 if test "x$ac_cv_type___int128" = xyes; then :
8175
8176 cat >>confdefs.h <<_ACEOF
8177 #define HAVE___INT128 1
8178 _ACEOF
8179
8180
8181 fi
8182
8183 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8184 #include <sys/socket.h>
8185
8186 "
8187 if test "x$ac_cv_type_socklen_t" = xyes; then :
8188
8189 cat >>confdefs.h <<_ACEOF
8190 #define HAVE_SOCKLEN_T 1
8191 _ACEOF
8192
8193
8194 fi
8195
8196
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8198 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8199 if ${ac_cv_type_getgroups+:} false; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 if test "$cross_compiling" = yes; then :
8203 ac_cv_type_getgroups=cross
8204 else
8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h. */
8207 /* Thanks to Mike Rendell for this test. */
8208 $ac_includes_default
8209 #define NGID 256
8210 #undef MAX
8211 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8212
8213 int
8214 main ()
8215 {
8216 gid_t gidset[NGID];
8217 int i, n;
8218 union { gid_t gval; long int lval; } val;
8219
8220 val.lval = -1;
8221 for (i = 0; i < NGID; i++)
8222 gidset[i] = val.gval;
8223 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8224 gidset);
8225 /* Exit non-zero if getgroups seems to require an array of ints. This
8226 happens when gid_t is short int but getgroups modifies an array
8227 of ints. */
8228 return n > 0 && gidset[n] != val.gval;
8229 }
8230 _ACEOF
8231 if ac_fn_c_try_run "$LINENO"; then :
8232 ac_cv_type_getgroups=gid_t
8233 else
8234 ac_cv_type_getgroups=int
8235 fi
8236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8237 conftest.$ac_objext conftest.beam conftest.$ac_ext
8238 fi
8239
8240 if test $ac_cv_type_getgroups = cross; then
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h. */
8243 #include <unistd.h>
8244
8245 _ACEOF
8246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8247 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8248 ac_cv_type_getgroups=gid_t
8249 else
8250 ac_cv_type_getgroups=int
8251 fi
8252 rm -f conftest*
8253
8254 fi
8255 fi
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8257 $as_echo "$ac_cv_type_getgroups" >&6; }
8258
8259 cat >>confdefs.h <<_ACEOF
8260 #define GETGROUPS_T $ac_cv_type_getgroups
8261 _ACEOF
8262
8263
8264 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8265 if test "x$ac_cv_type_mode_t" = xyes; then :
8266
8267 else
8268
8269 cat >>confdefs.h <<_ACEOF
8270 #define mode_t int
8271 _ACEOF
8272
8273 fi
8274
8275 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8276 if test "x$ac_cv_type_off_t" = xyes; then :
8277
8278 else
8279
8280 cat >>confdefs.h <<_ACEOF
8281 #define off_t long int
8282 _ACEOF
8283
8284 fi
8285
8286 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8287 if test "x$ac_cv_type_pid_t" = xyes; then :
8288
8289 else
8290
8291 cat >>confdefs.h <<_ACEOF
8292 #define pid_t int
8293 _ACEOF
8294
8295 fi
8296
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8298 $as_echo_n "checking return type of signal handlers... " >&6; }
8299 if ${ac_cv_type_signal+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8304 #include <sys/types.h>
8305 #include <signal.h>
8306
8307 int
8308 main ()
8309 {
8310 return *(signal (0, 0)) (0) == 1;
8311 ;
8312 return 0;
8313 }
8314 _ACEOF
8315 if ac_fn_c_try_compile "$LINENO"; then :
8316 ac_cv_type_signal=int
8317 else
8318 ac_cv_type_signal=void
8319 fi
8320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321 fi
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8323 $as_echo "$ac_cv_type_signal" >&6; }
8324
8325 cat >>confdefs.h <<_ACEOF
8326 #define RETSIGTYPE $ac_cv_type_signal
8327 _ACEOF
8328
8329
8330 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8331 if test "x$ac_cv_type_size_t" = xyes; then :
8332
8333 else
8334
8335 cat >>confdefs.h <<_ACEOF
8336 #define size_t unsigned int
8337 _ACEOF
8338
8339 fi
8340
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8342 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8343 if ${ac_cv_type_uid_t+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 #include <sys/types.h>
8349
8350 _ACEOF
8351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8352 $EGREP "uid_t" >/dev/null 2>&1; then :
8353 ac_cv_type_uid_t=yes
8354 else
8355 ac_cv_type_uid_t=no
8356 fi
8357 rm -f conftest*
8358
8359 fi
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8361 $as_echo "$ac_cv_type_uid_t" >&6; }
8362 if test $ac_cv_type_uid_t = no; then
8363
8364 $as_echo "#define uid_t int" >>confdefs.h
8365
8366
8367 $as_echo "#define gid_t int" >>confdefs.h
8368
8369 fi
8370
8371
8372 ALL_LINGUAS=
8373 # If we haven't got the data from the intl directory,
8374 # assume NLS is disabled.
8375 USE_NLS=no
8376 LIBINTL=
8377 LIBINTL_DEP=
8378 INCINTL=
8379 XGETTEXT=
8380 GMSGFMT=
8381 POSUB=
8382
8383 if test -f ../intl/config.intl; then
8384 . ../intl/config.intl
8385 fi
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8387 $as_echo_n "checking whether NLS is requested... " >&6; }
8388 if test x"$USE_NLS" != xyes; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8391 else
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8393 $as_echo "yes" >&6; }
8394
8395 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8396
8397
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8399 $as_echo_n "checking for catalogs to be installed... " >&6; }
8400 # Look for .po and .gmo files in the source directory.
8401 CATALOGS=
8402 XLINGUAS=
8403 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8404 # If there aren't any .gmo files the shell will give us the
8405 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8406 # weeded out.
8407 case "$cat" in *\**)
8408 continue;;
8409 esac
8410 # The quadruple backslash is collapsed to a double backslash
8411 # by the backticks, then collapsed again by the double quotes,
8412 # leaving us with one backslash in the sed expression (right
8413 # before the dot that mustn't act as a wildcard).
8414 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8415 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8416 # The user is allowed to set LINGUAS to a list of languages to
8417 # install catalogs for. If it's empty that means "all of them."
8418 if test "x$LINGUAS" = x; then
8419 CATALOGS="$CATALOGS $cat"
8420 XLINGUAS="$XLINGUAS $lang"
8421 else
8422 case "$LINGUAS" in *$lang*)
8423 CATALOGS="$CATALOGS $cat"
8424 XLINGUAS="$XLINGUAS $lang"
8425 ;;
8426 esac
8427 fi
8428 done
8429 LINGUAS="$XLINGUAS"
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8431 $as_echo "$LINGUAS" >&6; }
8432
8433
8434 DATADIRNAME=share
8435
8436 INSTOBJEXT=.mo
8437
8438 GENCAT=gencat
8439
8440 CATOBJEXT=.gmo
8441
8442 fi
8443
8444
8445 # Use the system's zlib library.
8446 zlibdir="-L\$(top_builddir)/../zlib"
8447 zlibinc="-I\$(top_srcdir)/../zlib"
8448
8449 # Check whether --with-system-zlib was given.
8450 if test "${with_system_zlib+set}" = set; then :
8451 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8452 zlibdir=
8453 zlibinc=
8454 fi
8455
8456 fi
8457
8458
8459
8460
8461
8462
8463 maybe_plugins=no
8464 for ac_header in dlfcn.h
8465 do :
8466 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8467 "
8468 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8469 cat >>confdefs.h <<_ACEOF
8470 #define HAVE_DLFCN_H 1
8471 _ACEOF
8472 maybe_plugins=yes
8473 fi
8474
8475 done
8476
8477 for ac_header in windows.h
8478 do :
8479 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
8480 "
8481 if test "x$ac_cv_header_windows_h" = xyes; then :
8482 cat >>confdefs.h <<_ACEOF
8483 #define HAVE_WINDOWS_H 1
8484 _ACEOF
8485 maybe_plugins=yes
8486 fi
8487
8488 done
8489
8490
8491 # Check whether --enable-plugins was given.
8492 if test "${enable_plugins+set}" = set; then :
8493 enableval=$enable_plugins; case "${enableval}" in
8494 no) plugins=no ;;
8495 *) plugins=yes
8496 if test "$maybe_plugins" != "yes" ; then
8497 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
8498 fi ;;
8499 esac
8500 else
8501 plugins=$maybe_plugins
8502
8503 fi
8504
8505 if test "$plugins" = "yes"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
8507 $as_echo_n "checking for library containing dlsym... " >&6; }
8508 if ${ac_cv_search_dlsym+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 ac_func_search_save_LIBS=$LIBS
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514
8515 /* Override any GCC internal prototype to avoid an error.
8516 Use char because int might match the return type of a GCC
8517 builtin and then its argument prototype would still apply. */
8518 #ifdef __cplusplus
8519 extern "C"
8520 #endif
8521 char dlsym ();
8522 int
8523 main ()
8524 {
8525 return dlsym ();
8526 ;
8527 return 0;
8528 }
8529 _ACEOF
8530 for ac_lib in '' dl; do
8531 if test -z "$ac_lib"; then
8532 ac_res="none required"
8533 else
8534 ac_res=-l$ac_lib
8535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8536 fi
8537 if ac_fn_c_try_link "$LINENO"; then :
8538 ac_cv_search_dlsym=$ac_res
8539 fi
8540 rm -f core conftest.err conftest.$ac_objext \
8541 conftest$ac_exeext
8542 if ${ac_cv_search_dlsym+:} false; then :
8543 break
8544 fi
8545 done
8546 if ${ac_cv_search_dlsym+:} false; then :
8547
8548 else
8549 ac_cv_search_dlsym=no
8550 fi
8551 rm conftest.$ac_ext
8552 LIBS=$ac_func_search_save_LIBS
8553 fi
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
8555 $as_echo "$ac_cv_search_dlsym" >&6; }
8556 ac_res=$ac_cv_search_dlsym
8557 if test "$ac_res" != no; then :
8558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8559
8560 fi
8561
8562 fi
8563
8564 if test "$plugins" = yes; then
8565 PLUGINS_TRUE=
8566 PLUGINS_FALSE='#'
8567 else
8568 PLUGINS_TRUE='#'
8569 PLUGINS_FALSE=
8570 fi
8571
8572
8573
8574
8575
8576 # Set options
8577 enable_dlopen=yes
8578
8579
8580
8581
8582 enable_win32_dll=no
8583
8584
8585 # Check whether --enable-shared was given.
8586 if test "${enable_shared+set}" = set; then :
8587 enableval=$enable_shared; p=${PACKAGE-default}
8588 case $enableval in
8589 yes) enable_shared=yes ;;
8590 no) enable_shared=no ;;
8591 *)
8592 enable_shared=no
8593 # Look at the argument we got. We use all the common list separators.
8594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8595 for pkg in $enableval; do
8596 IFS="$lt_save_ifs"
8597 if test "X$pkg" = "X$p"; then
8598 enable_shared=yes
8599 fi
8600 done
8601 IFS="$lt_save_ifs"
8602 ;;
8603 esac
8604 else
8605 enable_shared=yes
8606 fi
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616 # Check whether --enable-static was given.
8617 if test "${enable_static+set}" = set; then :
8618 enableval=$enable_static; p=${PACKAGE-default}
8619 case $enableval in
8620 yes) enable_static=yes ;;
8621 no) enable_static=no ;;
8622 *)
8623 enable_static=no
8624 # Look at the argument we got. We use all the common list separators.
8625 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8626 for pkg in $enableval; do
8627 IFS="$lt_save_ifs"
8628 if test "X$pkg" = "X$p"; then
8629 enable_static=yes
8630 fi
8631 done
8632 IFS="$lt_save_ifs"
8633 ;;
8634 esac
8635 else
8636 enable_static=yes
8637 fi
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648 # Check whether --with-pic was given.
8649 if test "${with_pic+set}" = set; then :
8650 withval=$with_pic; pic_mode="$withval"
8651 else
8652 pic_mode=default
8653 fi
8654
8655
8656 test -z "$pic_mode" && pic_mode=default
8657
8658
8659
8660
8661
8662
8663
8664 # Check whether --enable-fast-install was given.
8665 if test "${enable_fast_install+set}" = set; then :
8666 enableval=$enable_fast_install; p=${PACKAGE-default}
8667 case $enableval in
8668 yes) enable_fast_install=yes ;;
8669 no) enable_fast_install=no ;;
8670 *)
8671 enable_fast_install=no
8672 # Look at the argument we got. We use all the common list separators.
8673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8674 for pkg in $enableval; do
8675 IFS="$lt_save_ifs"
8676 if test "X$pkg" = "X$p"; then
8677 enable_fast_install=yes
8678 fi
8679 done
8680 IFS="$lt_save_ifs"
8681 ;;
8682 esac
8683 else
8684 enable_fast_install=yes
8685 fi
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697 # This can be used to rebuild libtool when needed
8698 LIBTOOL_DEPS="$ltmain"
8699
8700 # Always use our own libtool.
8701 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8702
8703
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 test -z "$LN_S" && LN_S="ln -s"
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743 if test -n "${ZSH_VERSION+set}" ; then
8744 setopt NO_GLOB_SUBST
8745 fi
8746
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8748 $as_echo_n "checking for objdir... " >&6; }
8749 if ${lt_cv_objdir+:} false; then :
8750 $as_echo_n "(cached) " >&6
8751 else
8752 rm -f .libs 2>/dev/null
8753 mkdir .libs 2>/dev/null
8754 if test -d .libs; then
8755 lt_cv_objdir=.libs
8756 else
8757 # MS-DOS does not allow filenames that begin with a dot.
8758 lt_cv_objdir=_libs
8759 fi
8760 rmdir .libs 2>/dev/null
8761 fi
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8763 $as_echo "$lt_cv_objdir" >&6; }
8764 objdir=$lt_cv_objdir
8765
8766
8767
8768
8769
8770 cat >>confdefs.h <<_ACEOF
8771 #define LT_OBJDIR "$lt_cv_objdir/"
8772 _ACEOF
8773
8774
8775
8776
8777 case $host_os in
8778 aix3*)
8779 # AIX sometimes has problems with the GCC collect2 program. For some
8780 # reason, if we set the COLLECT_NAMES environment variable, the problems
8781 # vanish in a puff of smoke.
8782 if test "X${COLLECT_NAMES+set}" != Xset; then
8783 COLLECT_NAMES=
8784 export COLLECT_NAMES
8785 fi
8786 ;;
8787 esac
8788
8789 # Global variables:
8790 ofile=libtool
8791 can_build_shared=yes
8792
8793 # All known linkers require a `.a' archive for static linking (except MSVC,
8794 # which needs '.lib').
8795 libext=a
8796
8797 with_gnu_ld="$lt_cv_prog_gnu_ld"
8798
8799 old_CC="$CC"
8800 old_CFLAGS="$CFLAGS"
8801
8802 # Set sane defaults for various variables
8803 test -z "$CC" && CC=cc
8804 test -z "$LTCC" && LTCC=$CC
8805 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8806 test -z "$LD" && LD=ld
8807 test -z "$ac_objext" && ac_objext=o
8808
8809 for cc_temp in $compiler""; do
8810 case $cc_temp in
8811 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8812 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8813 \-*) ;;
8814 *) break;;
8815 esac
8816 done
8817 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8818
8819
8820 # Only perform the check for file, if the check method requires it
8821 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8822 case $deplibs_check_method in
8823 file_magic*)
8824 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8826 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8827 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 case $MAGIC_CMD in
8831 [\\/*] | ?:[\\/]*)
8832 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8833 ;;
8834 *)
8835 lt_save_MAGIC_CMD="$MAGIC_CMD"
8836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8837 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8838 for ac_dir in $ac_dummy; do
8839 IFS="$lt_save_ifs"
8840 test -z "$ac_dir" && ac_dir=.
8841 if test -f $ac_dir/${ac_tool_prefix}file; then
8842 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8843 if test -n "$file_magic_test_file"; then
8844 case $deplibs_check_method in
8845 "file_magic "*)
8846 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8847 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8848 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8849 $EGREP "$file_magic_regex" > /dev/null; then
8850 :
8851 else
8852 cat <<_LT_EOF 1>&2
8853
8854 *** Warning: the command libtool uses to detect shared libraries,
8855 *** $file_magic_cmd, produces output that libtool cannot recognize.
8856 *** The result is that libtool may fail to recognize shared libraries
8857 *** as such. This will affect the creation of libtool libraries that
8858 *** depend on shared libraries, but programs linked with such libtool
8859 *** libraries will work regardless of this problem. Nevertheless, you
8860 *** may want to report the problem to your system manager and/or to
8861 *** bug-libtool@gnu.org
8862
8863 _LT_EOF
8864 fi ;;
8865 esac
8866 fi
8867 break
8868 fi
8869 done
8870 IFS="$lt_save_ifs"
8871 MAGIC_CMD="$lt_save_MAGIC_CMD"
8872 ;;
8873 esac
8874 fi
8875
8876 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8877 if test -n "$MAGIC_CMD"; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8879 $as_echo "$MAGIC_CMD" >&6; }
8880 else
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8882 $as_echo "no" >&6; }
8883 fi
8884
8885
8886
8887
8888
8889 if test -z "$lt_cv_path_MAGIC_CMD"; then
8890 if test -n "$ac_tool_prefix"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8892 $as_echo_n "checking for file... " >&6; }
8893 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8894 $as_echo_n "(cached) " >&6
8895 else
8896 case $MAGIC_CMD in
8897 [\\/*] | ?:[\\/]*)
8898 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8899 ;;
8900 *)
8901 lt_save_MAGIC_CMD="$MAGIC_CMD"
8902 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8903 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8904 for ac_dir in $ac_dummy; do
8905 IFS="$lt_save_ifs"
8906 test -z "$ac_dir" && ac_dir=.
8907 if test -f $ac_dir/file; then
8908 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8909 if test -n "$file_magic_test_file"; then
8910 case $deplibs_check_method in
8911 "file_magic "*)
8912 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8914 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8915 $EGREP "$file_magic_regex" > /dev/null; then
8916 :
8917 else
8918 cat <<_LT_EOF 1>&2
8919
8920 *** Warning: the command libtool uses to detect shared libraries,
8921 *** $file_magic_cmd, produces output that libtool cannot recognize.
8922 *** The result is that libtool may fail to recognize shared libraries
8923 *** as such. This will affect the creation of libtool libraries that
8924 *** depend on shared libraries, but programs linked with such libtool
8925 *** libraries will work regardless of this problem. Nevertheless, you
8926 *** may want to report the problem to your system manager and/or to
8927 *** bug-libtool@gnu.org
8928
8929 _LT_EOF
8930 fi ;;
8931 esac
8932 fi
8933 break
8934 fi
8935 done
8936 IFS="$lt_save_ifs"
8937 MAGIC_CMD="$lt_save_MAGIC_CMD"
8938 ;;
8939 esac
8940 fi
8941
8942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8943 if test -n "$MAGIC_CMD"; then
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8945 $as_echo "$MAGIC_CMD" >&6; }
8946 else
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948 $as_echo "no" >&6; }
8949 fi
8950
8951
8952 else
8953 MAGIC_CMD=:
8954 fi
8955 fi
8956
8957 fi
8958 ;;
8959 esac
8960
8961 # Use C for the default configuration in the libtool script
8962
8963 lt_save_CC="$CC"
8964 ac_ext=c
8965 ac_cpp='$CPP $CPPFLAGS'
8966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8969
8970
8971 # Source file extension for C test sources.
8972 ac_ext=c
8973
8974 # Object file extension for compiled C test sources.
8975 objext=o
8976 objext=$objext
8977
8978 # Code to be used in simple compile tests
8979 lt_simple_compile_test_code="int some_variable = 0;"
8980
8981 # Code to be used in simple link tests
8982 lt_simple_link_test_code='int main(){return(0);}'
8983
8984
8985
8986
8987
8988
8989
8990 # If no C compiler was specified, use CC.
8991 LTCC=${LTCC-"$CC"}
8992
8993 # If no C compiler flags were specified, use CFLAGS.
8994 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8995
8996 # Allow CC to be a program name with arguments.
8997 compiler=$CC
8998
8999 # Save the default compiler, since it gets overwritten when the other
9000 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9001 compiler_DEFAULT=$CC
9002
9003 # save warnings/boilerplate of simple test code
9004 ac_outfile=conftest.$ac_objext
9005 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9006 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9007 _lt_compiler_boilerplate=`cat conftest.err`
9008 $RM conftest*
9009
9010 ac_outfile=conftest.$ac_objext
9011 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9012 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9013 _lt_linker_boilerplate=`cat conftest.err`
9014 $RM -r conftest*
9015
9016
9017 ## CAVEAT EMPTOR:
9018 ## There is no encapsulation within the following macros, do not change
9019 ## the running order or otherwise move them around unless you know exactly
9020 ## what you are doing...
9021 if test -n "$compiler"; then
9022
9023 lt_prog_compiler_no_builtin_flag=
9024
9025 if test "$GCC" = yes; then
9026 case $cc_basename in
9027 nvcc*)
9028 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9029 *)
9030 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9031 esac
9032
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9034 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9035 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 lt_cv_prog_compiler_rtti_exceptions=no
9039 ac_outfile=conftest.$ac_objext
9040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9041 lt_compiler_flag="-fno-rtti -fno-exceptions"
9042 # Insert the option either (1) after the last *FLAGS variable, or
9043 # (2) before a word containing "conftest.", or (3) at the end.
9044 # Note that $ac_compile itself does not contain backslashes and begins
9045 # with a dollar sign (not a hyphen), so the echo should work correctly.
9046 # The option is referenced via a variable to avoid confusing sed.
9047 lt_compile=`echo "$ac_compile" | $SED \
9048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9050 -e 's:$: $lt_compiler_flag:'`
9051 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9052 (eval "$lt_compile" 2>conftest.err)
9053 ac_status=$?
9054 cat conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 if (exit $ac_status) && test -s "$ac_outfile"; then
9057 # The compiler can only warn and ignore the option if not recognized
9058 # So say no if there are warnings other than the usual output.
9059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9061 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9062 lt_cv_prog_compiler_rtti_exceptions=yes
9063 fi
9064 fi
9065 $RM conftest*
9066
9067 fi
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9069 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9070
9071 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9072 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9073 else
9074 :
9075 fi
9076
9077 fi
9078
9079
9080
9081
9082
9083
9084 lt_prog_compiler_wl=
9085 lt_prog_compiler_pic=
9086 lt_prog_compiler_static=
9087
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9089 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9090
9091 if test "$GCC" = yes; then
9092 lt_prog_compiler_wl='-Wl,'
9093 lt_prog_compiler_static='-static'
9094
9095 case $host_os in
9096 aix*)
9097 # All AIX code is PIC.
9098 if test "$host_cpu" = ia64; then
9099 # AIX 5 now supports IA64 processor
9100 lt_prog_compiler_static='-Bstatic'
9101 fi
9102 lt_prog_compiler_pic='-fPIC'
9103 ;;
9104
9105 amigaos*)
9106 case $host_cpu in
9107 powerpc)
9108 # see comment about AmigaOS4 .so support
9109 lt_prog_compiler_pic='-fPIC'
9110 ;;
9111 m68k)
9112 # FIXME: we need at least 68020 code to build shared libraries, but
9113 # adding the `-m68020' flag to GCC prevents building anything better,
9114 # like `-m68040'.
9115 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9116 ;;
9117 esac
9118 ;;
9119
9120 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9121 # PIC is the default for these OSes.
9122 ;;
9123
9124 mingw* | cygwin* | pw32* | os2* | cegcc*)
9125 # This hack is so that the source file can tell whether it is being
9126 # built for inclusion in a dll (and should export symbols for example).
9127 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9128 # (--disable-auto-import) libraries
9129 lt_prog_compiler_pic='-DDLL_EXPORT'
9130 ;;
9131
9132 darwin* | rhapsody*)
9133 # PIC is the default on this platform
9134 # Common symbols not allowed in MH_DYLIB files
9135 lt_prog_compiler_pic='-fno-common'
9136 ;;
9137
9138 haiku*)
9139 # PIC is the default for Haiku.
9140 # The "-static" flag exists, but is broken.
9141 lt_prog_compiler_static=
9142 ;;
9143
9144 hpux*)
9145 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9146 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9147 # sets the default TLS model and affects inlining.
9148 case $host_cpu in
9149 hppa*64*)
9150 # +Z the default
9151 ;;
9152 *)
9153 lt_prog_compiler_pic='-fPIC'
9154 ;;
9155 esac
9156 ;;
9157
9158 interix[3-9]*)
9159 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9160 # Instead, we relocate shared libraries at runtime.
9161 ;;
9162
9163 msdosdjgpp*)
9164 # Just because we use GCC doesn't mean we suddenly get shared libraries
9165 # on systems that don't support them.
9166 lt_prog_compiler_can_build_shared=no
9167 enable_shared=no
9168 ;;
9169
9170 *nto* | *qnx*)
9171 # QNX uses GNU C++, but need to define -shared option too, otherwise
9172 # it will coredump.
9173 lt_prog_compiler_pic='-fPIC -shared'
9174 ;;
9175
9176 sysv4*MP*)
9177 if test -d /usr/nec; then
9178 lt_prog_compiler_pic=-Kconform_pic
9179 fi
9180 ;;
9181
9182 *)
9183 lt_prog_compiler_pic='-fPIC'
9184 ;;
9185 esac
9186
9187 case $cc_basename in
9188 nvcc*) # Cuda Compiler Driver 2.2
9189 lt_prog_compiler_wl='-Xlinker '
9190 lt_prog_compiler_pic='-Xcompiler -fPIC'
9191 ;;
9192 esac
9193 else
9194 # PORTME Check for flag to pass linker flags through the system compiler.
9195 case $host_os in
9196 aix*)
9197 lt_prog_compiler_wl='-Wl,'
9198 if test "$host_cpu" = ia64; then
9199 # AIX 5 now supports IA64 processor
9200 lt_prog_compiler_static='-Bstatic'
9201 else
9202 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9203 fi
9204 ;;
9205
9206 mingw* | cygwin* | pw32* | os2* | cegcc*)
9207 # This hack is so that the source file can tell whether it is being
9208 # built for inclusion in a dll (and should export symbols for example).
9209 lt_prog_compiler_pic='-DDLL_EXPORT'
9210 ;;
9211
9212 hpux9* | hpux10* | hpux11*)
9213 lt_prog_compiler_wl='-Wl,'
9214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9215 # not for PA HP-UX.
9216 case $host_cpu in
9217 hppa*64*|ia64*)
9218 # +Z the default
9219 ;;
9220 *)
9221 lt_prog_compiler_pic='+Z'
9222 ;;
9223 esac
9224 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9225 lt_prog_compiler_static='${wl}-a ${wl}archive'
9226 ;;
9227
9228 irix5* | irix6* | nonstopux*)
9229 lt_prog_compiler_wl='-Wl,'
9230 # PIC (with -KPIC) is the default.
9231 lt_prog_compiler_static='-non_shared'
9232 ;;
9233
9234 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9235 case $cc_basename in
9236 # old Intel for x86_64 which still supported -KPIC.
9237 ecc*)
9238 lt_prog_compiler_wl='-Wl,'
9239 lt_prog_compiler_pic='-KPIC'
9240 lt_prog_compiler_static='-static'
9241 ;;
9242 # icc used to be incompatible with GCC.
9243 # ICC 10 doesn't accept -KPIC any more.
9244 icc* | ifort*)
9245 lt_prog_compiler_wl='-Wl,'
9246 lt_prog_compiler_pic='-fPIC'
9247 lt_prog_compiler_static='-static'
9248 ;;
9249 # Lahey Fortran 8.1.
9250 lf95*)
9251 lt_prog_compiler_wl='-Wl,'
9252 lt_prog_compiler_pic='--shared'
9253 lt_prog_compiler_static='--static'
9254 ;;
9255 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9256 # Portland Group compilers (*not* the Pentium gcc compiler,
9257 # which looks to be a dead project)
9258 lt_prog_compiler_wl='-Wl,'
9259 lt_prog_compiler_pic='-fpic'
9260 lt_prog_compiler_static='-Bstatic'
9261 ;;
9262 ccc*)
9263 lt_prog_compiler_wl='-Wl,'
9264 # All Alpha code is PIC.
9265 lt_prog_compiler_static='-non_shared'
9266 ;;
9267 xl* | bgxl* | bgf* | mpixl*)
9268 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9269 lt_prog_compiler_wl='-Wl,'
9270 lt_prog_compiler_pic='-qpic'
9271 lt_prog_compiler_static='-qstaticlink'
9272 ;;
9273 *)
9274 case `$CC -V 2>&1 | sed 5q` in
9275 *Sun\ F* | *Sun*Fortran*)
9276 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9277 lt_prog_compiler_pic='-KPIC'
9278 lt_prog_compiler_static='-Bstatic'
9279 lt_prog_compiler_wl=''
9280 ;;
9281 *Sun\ C*)
9282 # Sun C 5.9
9283 lt_prog_compiler_pic='-KPIC'
9284 lt_prog_compiler_static='-Bstatic'
9285 lt_prog_compiler_wl='-Wl,'
9286 ;;
9287 esac
9288 ;;
9289 esac
9290 ;;
9291
9292 newsos6)
9293 lt_prog_compiler_pic='-KPIC'
9294 lt_prog_compiler_static='-Bstatic'
9295 ;;
9296
9297 *nto* | *qnx*)
9298 # QNX uses GNU C++, but need to define -shared option too, otherwise
9299 # it will coredump.
9300 lt_prog_compiler_pic='-fPIC -shared'
9301 ;;
9302
9303 osf3* | osf4* | osf5*)
9304 lt_prog_compiler_wl='-Wl,'
9305 # All OSF/1 code is PIC.
9306 lt_prog_compiler_static='-non_shared'
9307 ;;
9308
9309 rdos*)
9310 lt_prog_compiler_static='-non_shared'
9311 ;;
9312
9313 solaris*)
9314 lt_prog_compiler_pic='-KPIC'
9315 lt_prog_compiler_static='-Bstatic'
9316 case $cc_basename in
9317 f77* | f90* | f95*)
9318 lt_prog_compiler_wl='-Qoption ld ';;
9319 *)
9320 lt_prog_compiler_wl='-Wl,';;
9321 esac
9322 ;;
9323
9324 sunos4*)
9325 lt_prog_compiler_wl='-Qoption ld '
9326 lt_prog_compiler_pic='-PIC'
9327 lt_prog_compiler_static='-Bstatic'
9328 ;;
9329
9330 sysv4 | sysv4.2uw2* | sysv4.3*)
9331 lt_prog_compiler_wl='-Wl,'
9332 lt_prog_compiler_pic='-KPIC'
9333 lt_prog_compiler_static='-Bstatic'
9334 ;;
9335
9336 sysv4*MP*)
9337 if test -d /usr/nec ;then
9338 lt_prog_compiler_pic='-Kconform_pic'
9339 lt_prog_compiler_static='-Bstatic'
9340 fi
9341 ;;
9342
9343 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9344 lt_prog_compiler_wl='-Wl,'
9345 lt_prog_compiler_pic='-KPIC'
9346 lt_prog_compiler_static='-Bstatic'
9347 ;;
9348
9349 unicos*)
9350 lt_prog_compiler_wl='-Wl,'
9351 lt_prog_compiler_can_build_shared=no
9352 ;;
9353
9354 uts4*)
9355 lt_prog_compiler_pic='-pic'
9356 lt_prog_compiler_static='-Bstatic'
9357 ;;
9358
9359 *)
9360 lt_prog_compiler_can_build_shared=no
9361 ;;
9362 esac
9363 fi
9364
9365 case $host_os in
9366 # For platforms which do not support PIC, -DPIC is meaningless:
9367 *djgpp*)
9368 lt_prog_compiler_pic=
9369 ;;
9370 *)
9371 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9372 ;;
9373 esac
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9375 $as_echo "$lt_prog_compiler_pic" >&6; }
9376
9377
9378
9379
9380
9381
9382 #
9383 # Check to make sure the PIC flag actually works.
9384 #
9385 if test -n "$lt_prog_compiler_pic"; then
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9387 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9388 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9389 $as_echo_n "(cached) " >&6
9390 else
9391 lt_cv_prog_compiler_pic_works=no
9392 ac_outfile=conftest.$ac_objext
9393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9394 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9395 # Insert the option either (1) after the last *FLAGS variable, or
9396 # (2) before a word containing "conftest.", or (3) at the end.
9397 # Note that $ac_compile itself does not contain backslashes and begins
9398 # with a dollar sign (not a hyphen), so the echo should work correctly.
9399 # The option is referenced via a variable to avoid confusing sed.
9400 lt_compile=`echo "$ac_compile" | $SED \
9401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9403 -e 's:$: $lt_compiler_flag:'`
9404 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9405 (eval "$lt_compile" 2>conftest.err)
9406 ac_status=$?
9407 cat conftest.err >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 if (exit $ac_status) && test -s "$ac_outfile"; then
9410 # The compiler can only warn and ignore the option if not recognized
9411 # So say no if there are warnings other than the usual output.
9412 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9414 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9415 lt_cv_prog_compiler_pic_works=yes
9416 fi
9417 fi
9418 $RM conftest*
9419
9420 fi
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9422 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9423
9424 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9425 case $lt_prog_compiler_pic in
9426 "" | " "*) ;;
9427 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9428 esac
9429 else
9430 lt_prog_compiler_pic=
9431 lt_prog_compiler_can_build_shared=no
9432 fi
9433
9434 fi
9435
9436
9437
9438
9439
9440
9441 #
9442 # Check to make sure the static flag actually works.
9443 #
9444 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9446 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9447 if ${lt_cv_prog_compiler_static_works+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 lt_cv_prog_compiler_static_works=no
9451 save_LDFLAGS="$LDFLAGS"
9452 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9453 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9454 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9455 # The linker can only warn and ignore the option if not recognized
9456 # So say no if there are warnings
9457 if test -s conftest.err; then
9458 # Append any errors to the config.log.
9459 cat conftest.err 1>&5
9460 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9462 if diff conftest.exp conftest.er2 >/dev/null; then
9463 lt_cv_prog_compiler_static_works=yes
9464 fi
9465 else
9466 lt_cv_prog_compiler_static_works=yes
9467 fi
9468 fi
9469 $RM -r conftest*
9470 LDFLAGS="$save_LDFLAGS"
9471
9472 fi
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9474 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9475
9476 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9477 :
9478 else
9479 lt_prog_compiler_static=
9480 fi
9481
9482
9483
9484
9485
9486
9487
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9489 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9490 if ${lt_cv_prog_compiler_c_o+:} false; then :
9491 $as_echo_n "(cached) " >&6
9492 else
9493 lt_cv_prog_compiler_c_o=no
9494 $RM -r conftest 2>/dev/null
9495 mkdir conftest
9496 cd conftest
9497 mkdir out
9498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9499
9500 lt_compiler_flag="-o out/conftest2.$ac_objext"
9501 # Insert the option either (1) after the last *FLAGS variable, or
9502 # (2) before a word containing "conftest.", or (3) at the end.
9503 # Note that $ac_compile itself does not contain backslashes and begins
9504 # with a dollar sign (not a hyphen), so the echo should work correctly.
9505 lt_compile=`echo "$ac_compile" | $SED \
9506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9508 -e 's:$: $lt_compiler_flag:'`
9509 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9510 (eval "$lt_compile" 2>out/conftest.err)
9511 ac_status=$?
9512 cat out/conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9515 then
9516 # The compiler can only warn and ignore the option if not recognized
9517 # So say no if there are warnings
9518 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9519 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9520 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9521 lt_cv_prog_compiler_c_o=yes
9522 fi
9523 fi
9524 chmod u+w . 2>&5
9525 $RM conftest*
9526 # SGI C++ compiler will create directory out/ii_files/ for
9527 # template instantiation
9528 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9529 $RM out/* && rmdir out
9530 cd ..
9531 $RM -r conftest
9532 $RM conftest*
9533
9534 fi
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9536 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9537
9538
9539
9540
9541
9542
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9544 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9545 if ${lt_cv_prog_compiler_c_o+:} false; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9548 lt_cv_prog_compiler_c_o=no
9549 $RM -r conftest 2>/dev/null
9550 mkdir conftest
9551 cd conftest
9552 mkdir out
9553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9554
9555 lt_compiler_flag="-o out/conftest2.$ac_objext"
9556 # Insert the option either (1) after the last *FLAGS variable, or
9557 # (2) before a word containing "conftest.", or (3) at the end.
9558 # Note that $ac_compile itself does not contain backslashes and begins
9559 # with a dollar sign (not a hyphen), so the echo should work correctly.
9560 lt_compile=`echo "$ac_compile" | $SED \
9561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9563 -e 's:$: $lt_compiler_flag:'`
9564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9565 (eval "$lt_compile" 2>out/conftest.err)
9566 ac_status=$?
9567 cat out/conftest.err >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9570 then
9571 # The compiler can only warn and ignore the option if not recognized
9572 # So say no if there are warnings
9573 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9576 lt_cv_prog_compiler_c_o=yes
9577 fi
9578 fi
9579 chmod u+w . 2>&5
9580 $RM conftest*
9581 # SGI C++ compiler will create directory out/ii_files/ for
9582 # template instantiation
9583 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9584 $RM out/* && rmdir out
9585 cd ..
9586 $RM -r conftest
9587 $RM conftest*
9588
9589 fi
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9591 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9592
9593
9594
9595
9596 hard_links="nottested"
9597 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9598 # do not overwrite the value of need_locks provided by the user
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9600 $as_echo_n "checking if we can lock with hard links... " >&6; }
9601 hard_links=yes
9602 $RM conftest*
9603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9604 touch conftest.a
9605 ln conftest.a conftest.b 2>&5 || hard_links=no
9606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9608 $as_echo "$hard_links" >&6; }
9609 if test "$hard_links" = no; then
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9611 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9612 need_locks=warn
9613 fi
9614 else
9615 need_locks=no
9616 fi
9617
9618
9619
9620
9621
9622
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9624 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9625
9626 runpath_var=
9627 allow_undefined_flag=
9628 always_export_symbols=no
9629 archive_cmds=
9630 archive_expsym_cmds=
9631 compiler_needs_object=no
9632 enable_shared_with_static_runtimes=no
9633 export_dynamic_flag_spec=
9634 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9635 hardcode_automatic=no
9636 hardcode_direct=no
9637 hardcode_direct_absolute=no
9638 hardcode_libdir_flag_spec=
9639 hardcode_libdir_flag_spec_ld=
9640 hardcode_libdir_separator=
9641 hardcode_minus_L=no
9642 hardcode_shlibpath_var=unsupported
9643 inherit_rpath=no
9644 link_all_deplibs=unknown
9645 module_cmds=
9646 module_expsym_cmds=
9647 old_archive_from_new_cmds=
9648 old_archive_from_expsyms_cmds=
9649 thread_safe_flag_spec=
9650 whole_archive_flag_spec=
9651 # include_expsyms should be a list of space-separated symbols to be *always*
9652 # included in the symbol list
9653 include_expsyms=
9654 # exclude_expsyms can be an extended regexp of symbols to exclude
9655 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9656 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9657 # as well as any symbol that contains `d'.
9658 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9659 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9660 # platforms (ab)use it in PIC code, but their linkers get confused if
9661 # the symbol is explicitly referenced. Since portable code cannot
9662 # rely on this symbol name, it's probably fine to never include it in
9663 # preloaded symbol tables.
9664 # Exclude shared library initialization/finalization symbols.
9665 extract_expsyms_cmds=
9666
9667 case $host_os in
9668 cygwin* | mingw* | pw32* | cegcc*)
9669 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9670 # When not using gcc, we currently assume that we are using
9671 # Microsoft Visual C++.
9672 if test "$GCC" != yes; then
9673 with_gnu_ld=no
9674 fi
9675 ;;
9676 interix*)
9677 # we just hope/assume this is gcc and not c89 (= MSVC++)
9678 with_gnu_ld=yes
9679 ;;
9680 openbsd*)
9681 with_gnu_ld=no
9682 ;;
9683 esac
9684
9685 ld_shlibs=yes
9686
9687 # On some targets, GNU ld is compatible enough with the native linker
9688 # that we're better off using the native interface for both.
9689 lt_use_gnu_ld_interface=no
9690 if test "$with_gnu_ld" = yes; then
9691 case $host_os in
9692 aix*)
9693 # The AIX port of GNU ld has always aspired to compatibility
9694 # with the native linker. However, as the warning in the GNU ld
9695 # block says, versions before 2.19.5* couldn't really create working
9696 # shared libraries, regardless of the interface used.
9697 case `$LD -v 2>&1` in
9698 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9699 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9700 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9701 *)
9702 lt_use_gnu_ld_interface=yes
9703 ;;
9704 esac
9705 ;;
9706 *)
9707 lt_use_gnu_ld_interface=yes
9708 ;;
9709 esac
9710 fi
9711
9712 if test "$lt_use_gnu_ld_interface" = yes; then
9713 # If archive_cmds runs LD, not CC, wlarc should be empty
9714 wlarc='${wl}'
9715
9716 # Set some defaults for GNU ld with shared library support. These
9717 # are reset later if shared libraries are not supported. Putting them
9718 # here allows them to be overridden if necessary.
9719 runpath_var=LD_RUN_PATH
9720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9721 export_dynamic_flag_spec='${wl}--export-dynamic'
9722 # ancient GNU ld didn't support --whole-archive et. al.
9723 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9724 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9725 else
9726 whole_archive_flag_spec=
9727 fi
9728 supports_anon_versioning=no
9729 case `$LD -v 2>&1` in
9730 *GNU\ gold*) supports_anon_versioning=yes ;;
9731 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9732 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9733 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9734 *\ 2.11.*) ;; # other 2.11 versions
9735 *) supports_anon_versioning=yes ;;
9736 esac
9737
9738 # See if GNU ld supports shared libraries.
9739 case $host_os in
9740 aix[3-9]*)
9741 # On AIX/PPC, the GNU linker is very broken
9742 if test "$host_cpu" != ia64; then
9743 ld_shlibs=no
9744 cat <<_LT_EOF 1>&2
9745
9746 *** Warning: the GNU linker, at least up to release 2.19, is reported
9747 *** to be unable to reliably create shared libraries on AIX.
9748 *** Therefore, libtool is disabling shared libraries support. If you
9749 *** really care for shared libraries, you may want to install binutils
9750 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9751 *** You will then need to restart the configuration process.
9752
9753 _LT_EOF
9754 fi
9755 ;;
9756
9757 amigaos*)
9758 case $host_cpu in
9759 powerpc)
9760 # see comment about AmigaOS4 .so support
9761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9762 archive_expsym_cmds=''
9763 ;;
9764 m68k)
9765 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)'
9766 hardcode_libdir_flag_spec='-L$libdir'
9767 hardcode_minus_L=yes
9768 ;;
9769 esac
9770 ;;
9771
9772 beos*)
9773 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9774 allow_undefined_flag=unsupported
9775 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9776 # support --undefined. This deserves some investigation. FIXME
9777 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9778 else
9779 ld_shlibs=no
9780 fi
9781 ;;
9782
9783 cygwin* | mingw* | pw32* | cegcc*)
9784 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9785 # as there is no search path for DLLs.
9786 hardcode_libdir_flag_spec='-L$libdir'
9787 export_dynamic_flag_spec='${wl}--export-all-symbols'
9788 allow_undefined_flag=unsupported
9789 always_export_symbols=no
9790 enable_shared_with_static_runtimes=yes
9791 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9792
9793 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9795 # If the export-symbols file already is a .def file (1st line
9796 # is EXPORTS), use it as is; otherwise, prepend...
9797 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9798 cp $export_symbols $output_objdir/$soname.def;
9799 else
9800 echo EXPORTS > $output_objdir/$soname.def;
9801 cat $export_symbols >> $output_objdir/$soname.def;
9802 fi~
9803 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9804 else
9805 ld_shlibs=no
9806 fi
9807 ;;
9808
9809 haiku*)
9810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9811 link_all_deplibs=yes
9812 ;;
9813
9814 interix[3-9]*)
9815 hardcode_direct=no
9816 hardcode_shlibpath_var=no
9817 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9818 export_dynamic_flag_spec='${wl}-E'
9819 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9820 # Instead, shared libraries are loaded at an image base (0x10000000 by
9821 # default) and relocated if they conflict, which is a slow very memory
9822 # consuming and fragmenting process. To avoid this, we pick a random,
9823 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9824 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9826 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'
9827 ;;
9828
9829 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9830 tmp_diet=no
9831 if test "$host_os" = linux-dietlibc; then
9832 case $cc_basename in
9833 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9834 esac
9835 fi
9836 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9837 && test "$tmp_diet" = no
9838 then
9839 tmp_addflag=' $pic_flag'
9840 tmp_sharedflag='-shared'
9841 case $cc_basename,$host_cpu in
9842 pgcc*) # Portland Group C compiler
9843 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'
9844 tmp_addflag=' $pic_flag'
9845 ;;
9846 pgf77* | pgf90* | pgf95* | pgfortran*)
9847 # Portland Group f77 and f90 compilers
9848 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'
9849 tmp_addflag=' $pic_flag -Mnomain' ;;
9850 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9851 tmp_addflag=' -i_dynamic' ;;
9852 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9853 tmp_addflag=' -i_dynamic -nofor_main' ;;
9854 ifc* | ifort*) # Intel Fortran compiler
9855 tmp_addflag=' -nofor_main' ;;
9856 lf95*) # Lahey Fortran 8.1
9857 whole_archive_flag_spec=
9858 tmp_sharedflag='--shared' ;;
9859 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9860 tmp_sharedflag='-qmkshrobj'
9861 tmp_addflag= ;;
9862 nvcc*) # Cuda Compiler Driver 2.2
9863 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'
9864 compiler_needs_object=yes
9865 ;;
9866 esac
9867 case `$CC -V 2>&1 | sed 5q` in
9868 *Sun\ C*) # Sun C 5.9
9869 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'
9870 compiler_needs_object=yes
9871 tmp_sharedflag='-G' ;;
9872 *Sun\ F*) # Sun Fortran 8.3
9873 tmp_sharedflag='-G' ;;
9874 esac
9875 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9876
9877 if test "x$supports_anon_versioning" = xyes; then
9878 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9880 echo "local: *; };" >> $output_objdir/$libname.ver~
9881 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9882 fi
9883
9884 case $cc_basename in
9885 xlf* | bgf* | bgxlf* | mpixlf*)
9886 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9887 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9888 hardcode_libdir_flag_spec=
9889 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9890 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9891 if test "x$supports_anon_versioning" = xyes; then
9892 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9893 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9894 echo "local: *; };" >> $output_objdir/$libname.ver~
9895 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9896 fi
9897 ;;
9898 esac
9899 else
9900 ld_shlibs=no
9901 fi
9902 ;;
9903
9904 netbsd*)
9905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9906 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9907 wlarc=
9908 else
9909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9910 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9911 fi
9912 ;;
9913
9914 solaris*)
9915 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9916 ld_shlibs=no
9917 cat <<_LT_EOF 1>&2
9918
9919 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9920 *** create shared libraries on Solaris systems. Therefore, libtool
9921 *** is disabling shared libraries support. We urge you to upgrade GNU
9922 *** binutils to release 2.9.1 or newer. Another option is to modify
9923 *** your PATH or compiler configuration so that the native linker is
9924 *** used, and then restart.
9925
9926 _LT_EOF
9927 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9929 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9930 else
9931 ld_shlibs=no
9932 fi
9933 ;;
9934
9935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9936 case `$LD -v 2>&1` in
9937 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9938 ld_shlibs=no
9939 cat <<_LT_EOF 1>&2
9940
9941 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9942 *** reliably create shared libraries on SCO systems. Therefore, libtool
9943 *** is disabling shared libraries support. We urge you to upgrade GNU
9944 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9945 *** your PATH or compiler configuration so that the native linker is
9946 *** used, and then restart.
9947
9948 _LT_EOF
9949 ;;
9950 *)
9951 # For security reasons, it is highly recommended that you always
9952 # use absolute paths for naming shared libraries, and exclude the
9953 # DT_RUNPATH tag from executables and libraries. But doing so
9954 # requires that you compile everything twice, which is a pain.
9955 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9959 else
9960 ld_shlibs=no
9961 fi
9962 ;;
9963 esac
9964 ;;
9965
9966 sunos4*)
9967 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9968 wlarc=
9969 hardcode_direct=yes
9970 hardcode_shlibpath_var=no
9971 ;;
9972
9973 *)
9974 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9976 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9977 else
9978 ld_shlibs=no
9979 fi
9980 ;;
9981 esac
9982
9983 if test "$ld_shlibs" = no; then
9984 runpath_var=
9985 hardcode_libdir_flag_spec=
9986 export_dynamic_flag_spec=
9987 whole_archive_flag_spec=
9988 fi
9989 else
9990 # PORTME fill in a description of your system's linker (not GNU ld)
9991 case $host_os in
9992 aix3*)
9993 allow_undefined_flag=unsupported
9994 always_export_symbols=yes
9995 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'
9996 # Note: this linker hardcodes the directories in LIBPATH if there
9997 # are no directories specified by -L.
9998 hardcode_minus_L=yes
9999 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10000 # Neither direct hardcoding nor static linking is supported with a
10001 # broken collect2.
10002 hardcode_direct=unsupported
10003 fi
10004 ;;
10005
10006 aix[4-9]*)
10007 if test "$host_cpu" = ia64; then
10008 # On IA64, the linker does run time linking by default, so we don't
10009 # have to do anything special.
10010 aix_use_runtimelinking=no
10011 exp_sym_flag='-Bexport'
10012 no_entry_flag=""
10013 else
10014 # If we're using GNU nm, then we don't want the "-C" option.
10015 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10016 # Also, AIX nm treats weak defined symbols like other global
10017 # defined symbols, whereas GNU nm marks them as "W".
10018 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10019 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'
10020 else
10021 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'
10022 fi
10023 aix_use_runtimelinking=no
10024
10025 # Test if we are trying to use run time linking or normal
10026 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10027 # need to do runtime linking.
10028 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10029 for ld_flag in $LDFLAGS; do
10030 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10031 aix_use_runtimelinking=yes
10032 break
10033 fi
10034 done
10035 ;;
10036 esac
10037
10038 exp_sym_flag='-bexport'
10039 no_entry_flag='-bnoentry'
10040 fi
10041
10042 # When large executables or shared objects are built, AIX ld can
10043 # have problems creating the table of contents. If linking a library
10044 # or program results in "error TOC overflow" add -mminimal-toc to
10045 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10046 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10047
10048 archive_cmds=''
10049 hardcode_direct=yes
10050 hardcode_direct_absolute=yes
10051 hardcode_libdir_separator=':'
10052 link_all_deplibs=yes
10053 file_list_spec='${wl}-f,'
10054
10055 if test "$GCC" = yes; then
10056 case $host_os in aix4.[012]|aix4.[012].*)
10057 # We only want to do this on AIX 4.2 and lower, the check
10058 # below for broken collect2 doesn't work under 4.3+
10059 collect2name=`${CC} -print-prog-name=collect2`
10060 if test -f "$collect2name" &&
10061 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10062 then
10063 # We have reworked collect2
10064 :
10065 else
10066 # We have old collect2
10067 hardcode_direct=unsupported
10068 # It fails to find uninstalled libraries when the uninstalled
10069 # path is not listed in the libpath. Setting hardcode_minus_L
10070 # to unsupported forces relinking
10071 hardcode_minus_L=yes
10072 hardcode_libdir_flag_spec='-L$libdir'
10073 hardcode_libdir_separator=
10074 fi
10075 ;;
10076 esac
10077 shared_flag='-shared'
10078 if test "$aix_use_runtimelinking" = yes; then
10079 shared_flag="$shared_flag "'${wl}-G'
10080 fi
10081 else
10082 # not using gcc
10083 if test "$host_cpu" = ia64; then
10084 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10085 # chokes on -Wl,-G. The following line is correct:
10086 shared_flag='-G'
10087 else
10088 if test "$aix_use_runtimelinking" = yes; then
10089 shared_flag='${wl}-G'
10090 else
10091 shared_flag='${wl}-bM:SRE'
10092 fi
10093 fi
10094 fi
10095
10096 export_dynamic_flag_spec='${wl}-bexpall'
10097 # It seems that -bexpall does not export symbols beginning with
10098 # underscore (_), so it is better to generate a list of symbols to export.
10099 always_export_symbols=yes
10100 if test "$aix_use_runtimelinking" = yes; then
10101 # Warning - without using the other runtime loading flags (-brtl),
10102 # -berok will link without error, but may produce a broken library.
10103 allow_undefined_flag='-berok'
10104 # Determine the default libpath from the value encoded in an
10105 # empty executable.
10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107 /* end confdefs.h. */
10108
10109 int
10110 main ()
10111 {
10112
10113 ;
10114 return 0;
10115 }
10116 _ACEOF
10117 if ac_fn_c_try_link "$LINENO"; then :
10118
10119 lt_aix_libpath_sed='
10120 /Import File Strings/,/^$/ {
10121 /^0/ {
10122 s/^0 *\(.*\)$/\1/
10123 p
10124 }
10125 }'
10126 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10127 # Check for a 64-bit object if we didn't find anything.
10128 if test -z "$aix_libpath"; then
10129 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10130 fi
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
10134 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10135
10136 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10137 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"
10138 else
10139 if test "$host_cpu" = ia64; then
10140 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10141 allow_undefined_flag="-z nodefs"
10142 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"
10143 else
10144 # Determine the default libpath from the value encoded in an
10145 # empty executable.
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10148
10149 int
10150 main ()
10151 {
10152
10153 ;
10154 return 0;
10155 }
10156 _ACEOF
10157 if ac_fn_c_try_link "$LINENO"; then :
10158
10159 lt_aix_libpath_sed='
10160 /Import File Strings/,/^$/ {
10161 /^0/ {
10162 s/^0 *\(.*\)$/\1/
10163 p
10164 }
10165 }'
10166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10167 # Check for a 64-bit object if we didn't find anything.
10168 if test -z "$aix_libpath"; then
10169 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10170 fi
10171 fi
10172 rm -f core conftest.err conftest.$ac_objext \
10173 conftest$ac_exeext conftest.$ac_ext
10174 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10175
10176 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10177 # Warning - without using the other run time loading flags,
10178 # -berok will link without error, but may produce a broken library.
10179 no_undefined_flag=' ${wl}-bernotok'
10180 allow_undefined_flag=' ${wl}-berok'
10181 if test "$with_gnu_ld" = yes; then
10182 # We only use this code for GNU lds that support --whole-archive.
10183 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10184 else
10185 # Exported symbols can be pulled into shared objects from archives
10186 whole_archive_flag_spec='$convenience'
10187 fi
10188 archive_cmds_need_lc=yes
10189 # This is similar to how AIX traditionally builds its shared libraries.
10190 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'
10191 fi
10192 fi
10193 ;;
10194
10195 amigaos*)
10196 case $host_cpu in
10197 powerpc)
10198 # see comment about AmigaOS4 .so support
10199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10200 archive_expsym_cmds=''
10201 ;;
10202 m68k)
10203 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)'
10204 hardcode_libdir_flag_spec='-L$libdir'
10205 hardcode_minus_L=yes
10206 ;;
10207 esac
10208 ;;
10209
10210 bsdi[45]*)
10211 export_dynamic_flag_spec=-rdynamic
10212 ;;
10213
10214 cygwin* | mingw* | pw32* | cegcc*)
10215 # When not using gcc, we currently assume that we are using
10216 # Microsoft Visual C++.
10217 # hardcode_libdir_flag_spec is actually meaningless, as there is
10218 # no search path for DLLs.
10219 hardcode_libdir_flag_spec=' '
10220 allow_undefined_flag=unsupported
10221 # Tell ltmain to make .lib files, not .a files.
10222 libext=lib
10223 # Tell ltmain to make .dll files, not .so files.
10224 shrext_cmds=".dll"
10225 # FIXME: Setting linknames here is a bad hack.
10226 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10227 # The linker will automatically build a .lib file if we build a DLL.
10228 old_archive_from_new_cmds='true'
10229 # FIXME: Should let the user specify the lib program.
10230 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10231 fix_srcfile_path='`cygpath -w "$srcfile"`'
10232 enable_shared_with_static_runtimes=yes
10233 ;;
10234
10235 darwin* | rhapsody*)
10236
10237
10238 archive_cmds_need_lc=no
10239 hardcode_direct=no
10240 hardcode_automatic=yes
10241 hardcode_shlibpath_var=unsupported
10242 if test "$lt_cv_ld_force_load" = "yes"; then
10243 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\"`'
10244 else
10245 whole_archive_flag_spec=''
10246 fi
10247 link_all_deplibs=yes
10248 allow_undefined_flag="$_lt_dar_allow_undefined"
10249 case $cc_basename in
10250 ifort*) _lt_dar_can_shared=yes ;;
10251 *) _lt_dar_can_shared=$GCC ;;
10252 esac
10253 if test "$_lt_dar_can_shared" = "yes"; then
10254 output_verbose_link_cmd=func_echo_all
10255 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10256 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10257 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}"
10258 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}"
10259
10260 else
10261 ld_shlibs=no
10262 fi
10263
10264 ;;
10265
10266 dgux*)
10267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10268 hardcode_libdir_flag_spec='-L$libdir'
10269 hardcode_shlibpath_var=no
10270 ;;
10271
10272 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10273 # support. Future versions do this automatically, but an explicit c++rt0.o
10274 # does not break anything, and helps significantly (at the cost of a little
10275 # extra space).
10276 freebsd2.2*)
10277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10278 hardcode_libdir_flag_spec='-R$libdir'
10279 hardcode_direct=yes
10280 hardcode_shlibpath_var=no
10281 ;;
10282
10283 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10284 freebsd2.*)
10285 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10286 hardcode_direct=yes
10287 hardcode_minus_L=yes
10288 hardcode_shlibpath_var=no
10289 ;;
10290
10291 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10292 freebsd* | dragonfly*)
10293 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10294 hardcode_libdir_flag_spec='-R$libdir'
10295 hardcode_direct=yes
10296 hardcode_shlibpath_var=no
10297 ;;
10298
10299 hpux9*)
10300 if test "$GCC" = yes; then
10301 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'
10302 else
10303 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'
10304 fi
10305 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10306 hardcode_libdir_separator=:
10307 hardcode_direct=yes
10308
10309 # hardcode_minus_L: Not really in the search PATH,
10310 # but as the default location of the library.
10311 hardcode_minus_L=yes
10312 export_dynamic_flag_spec='${wl}-E'
10313 ;;
10314
10315 hpux10*)
10316 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10317 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10318 else
10319 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10320 fi
10321 if test "$with_gnu_ld" = no; then
10322 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10323 hardcode_libdir_flag_spec_ld='+b $libdir'
10324 hardcode_libdir_separator=:
10325 hardcode_direct=yes
10326 hardcode_direct_absolute=yes
10327 export_dynamic_flag_spec='${wl}-E'
10328 # hardcode_minus_L: Not really in the search PATH,
10329 # but as the default location of the library.
10330 hardcode_minus_L=yes
10331 fi
10332 ;;
10333
10334 hpux11*)
10335 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10336 case $host_cpu in
10337 hppa*64*)
10338 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10339 ;;
10340 ia64*)
10341 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10342 ;;
10343 *)
10344 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10345 ;;
10346 esac
10347 else
10348 case $host_cpu in
10349 hppa*64*)
10350 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10351 ;;
10352 ia64*)
10353 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10354 ;;
10355 *)
10356
10357 # Older versions of the 11.00 compiler do not understand -b yet
10358 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10360 $as_echo_n "checking if $CC understands -b... " >&6; }
10361 if ${lt_cv_prog_compiler__b+:} false; then :
10362 $as_echo_n "(cached) " >&6
10363 else
10364 lt_cv_prog_compiler__b=no
10365 save_LDFLAGS="$LDFLAGS"
10366 LDFLAGS="$LDFLAGS -b"
10367 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10368 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10369 # The linker can only warn and ignore the option if not recognized
10370 # So say no if there are warnings
10371 if test -s conftest.err; then
10372 # Append any errors to the config.log.
10373 cat conftest.err 1>&5
10374 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10376 if diff conftest.exp conftest.er2 >/dev/null; then
10377 lt_cv_prog_compiler__b=yes
10378 fi
10379 else
10380 lt_cv_prog_compiler__b=yes
10381 fi
10382 fi
10383 $RM -r conftest*
10384 LDFLAGS="$save_LDFLAGS"
10385
10386 fi
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10388 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10389
10390 if test x"$lt_cv_prog_compiler__b" = xyes; then
10391 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10392 else
10393 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10394 fi
10395
10396 ;;
10397 esac
10398 fi
10399 if test "$with_gnu_ld" = no; then
10400 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10401 hardcode_libdir_separator=:
10402
10403 case $host_cpu in
10404 hppa*64*|ia64*)
10405 hardcode_direct=no
10406 hardcode_shlibpath_var=no
10407 ;;
10408 *)
10409 hardcode_direct=yes
10410 hardcode_direct_absolute=yes
10411 export_dynamic_flag_spec='${wl}-E'
10412
10413 # hardcode_minus_L: Not really in the search PATH,
10414 # but as the default location of the library.
10415 hardcode_minus_L=yes
10416 ;;
10417 esac
10418 fi
10419 ;;
10420
10421 irix5* | irix6* | nonstopux*)
10422 if test "$GCC" = yes; then
10423 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'
10424 # Try to use the -exported_symbol ld option, if it does not
10425 # work, assume that -exports_file does not work either and
10426 # implicitly export all symbols.
10427 save_LDFLAGS="$LDFLAGS"
10428 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431 int foo(void) {}
10432 _ACEOF
10433 if ac_fn_c_try_link "$LINENO"; then :
10434 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'
10435
10436 fi
10437 rm -f core conftest.err conftest.$ac_objext \
10438 conftest$ac_exeext conftest.$ac_ext
10439 LDFLAGS="$save_LDFLAGS"
10440 else
10441 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'
10442 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'
10443 fi
10444 archive_cmds_need_lc='no'
10445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10446 hardcode_libdir_separator=:
10447 inherit_rpath=yes
10448 link_all_deplibs=yes
10449 ;;
10450
10451 netbsd*)
10452 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10454 else
10455 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10456 fi
10457 hardcode_libdir_flag_spec='-R$libdir'
10458 hardcode_direct=yes
10459 hardcode_shlibpath_var=no
10460 ;;
10461
10462 newsos6)
10463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10464 hardcode_direct=yes
10465 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10466 hardcode_libdir_separator=:
10467 hardcode_shlibpath_var=no
10468 ;;
10469
10470 *nto* | *qnx*)
10471 ;;
10472
10473 openbsd*)
10474 if test -f /usr/libexec/ld.so; then
10475 hardcode_direct=yes
10476 hardcode_shlibpath_var=no
10477 hardcode_direct_absolute=yes
10478 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10479 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10480 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10481 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10482 export_dynamic_flag_spec='${wl}-E'
10483 else
10484 case $host_os in
10485 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10487 hardcode_libdir_flag_spec='-R$libdir'
10488 ;;
10489 *)
10490 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10491 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10492 ;;
10493 esac
10494 fi
10495 else
10496 ld_shlibs=no
10497 fi
10498 ;;
10499
10500 os2*)
10501 hardcode_libdir_flag_spec='-L$libdir'
10502 hardcode_minus_L=yes
10503 allow_undefined_flag=unsupported
10504 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'
10505 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10506 ;;
10507
10508 osf3*)
10509 if test "$GCC" = yes; then
10510 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10511 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'
10512 else
10513 allow_undefined_flag=' -expect_unresolved \*'
10514 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'
10515 fi
10516 archive_cmds_need_lc='no'
10517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10518 hardcode_libdir_separator=:
10519 ;;
10520
10521 osf4* | osf5*) # as osf3* with the addition of -msym flag
10522 if test "$GCC" = yes; then
10523 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10524 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'
10525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10526 else
10527 allow_undefined_flag=' -expect_unresolved \*'
10528 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'
10529 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~
10530 $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'
10531
10532 # Both c and cxx compiler support -rpath directly
10533 hardcode_libdir_flag_spec='-rpath $libdir'
10534 fi
10535 archive_cmds_need_lc='no'
10536 hardcode_libdir_separator=:
10537 ;;
10538
10539 solaris*)
10540 no_undefined_flag=' -z defs'
10541 if test "$GCC" = yes; then
10542 wlarc='${wl}'
10543 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10544 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10545 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10546 else
10547 case `$CC -V 2>&1` in
10548 *"Compilers 5.0"*)
10549 wlarc=''
10550 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10551 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10552 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10553 ;;
10554 *)
10555 wlarc='${wl}'
10556 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10557 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10558 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10559 ;;
10560 esac
10561 fi
10562 hardcode_libdir_flag_spec='-R$libdir'
10563 hardcode_shlibpath_var=no
10564 case $host_os in
10565 solaris2.[0-5] | solaris2.[0-5].*) ;;
10566 *)
10567 # The compiler driver will combine and reorder linker options,
10568 # but understands `-z linker_flag'. GCC discards it without `$wl',
10569 # but is careful enough not to reorder.
10570 # Supported since Solaris 2.6 (maybe 2.5.1?)
10571 if test "$GCC" = yes; then
10572 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10573 else
10574 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10575 fi
10576 ;;
10577 esac
10578 link_all_deplibs=yes
10579 ;;
10580
10581 sunos4*)
10582 if test "x$host_vendor" = xsequent; then
10583 # Use $CC to link under sequent, because it throws in some extra .o
10584 # files that make .init and .fini sections work.
10585 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10586 else
10587 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10588 fi
10589 hardcode_libdir_flag_spec='-L$libdir'
10590 hardcode_direct=yes
10591 hardcode_minus_L=yes
10592 hardcode_shlibpath_var=no
10593 ;;
10594
10595 sysv4)
10596 case $host_vendor in
10597 sni)
10598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10599 hardcode_direct=yes # is this really true???
10600 ;;
10601 siemens)
10602 ## LD is ld it makes a PLAMLIB
10603 ## CC just makes a GrossModule.
10604 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10605 reload_cmds='$CC -r -o $output$reload_objs'
10606 hardcode_direct=no
10607 ;;
10608 motorola)
10609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10610 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10611 ;;
10612 esac
10613 runpath_var='LD_RUN_PATH'
10614 hardcode_shlibpath_var=no
10615 ;;
10616
10617 sysv4.3*)
10618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10619 hardcode_shlibpath_var=no
10620 export_dynamic_flag_spec='-Bexport'
10621 ;;
10622
10623 sysv4*MP*)
10624 if test -d /usr/nec; then
10625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10626 hardcode_shlibpath_var=no
10627 runpath_var=LD_RUN_PATH
10628 hardcode_runpath_var=yes
10629 ld_shlibs=yes
10630 fi
10631 ;;
10632
10633 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10634 no_undefined_flag='${wl}-z,text'
10635 archive_cmds_need_lc=no
10636 hardcode_shlibpath_var=no
10637 runpath_var='LD_RUN_PATH'
10638
10639 if test "$GCC" = yes; then
10640 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10641 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10642 else
10643 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10644 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10645 fi
10646 ;;
10647
10648 sysv5* | sco3.2v5* | sco5v6*)
10649 # Note: We can NOT use -z defs as we might desire, because we do not
10650 # link with -lc, and that would cause any symbols used from libc to
10651 # always be unresolved, which means just about no library would
10652 # ever link correctly. If we're not using GNU ld we use -z text
10653 # though, which does catch some bad symbols but isn't as heavy-handed
10654 # as -z defs.
10655 no_undefined_flag='${wl}-z,text'
10656 allow_undefined_flag='${wl}-z,nodefs'
10657 archive_cmds_need_lc=no
10658 hardcode_shlibpath_var=no
10659 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10660 hardcode_libdir_separator=':'
10661 link_all_deplibs=yes
10662 export_dynamic_flag_spec='${wl}-Bexport'
10663 runpath_var='LD_RUN_PATH'
10664
10665 if test "$GCC" = yes; then
10666 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10667 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10668 else
10669 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10670 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10671 fi
10672 ;;
10673
10674 uts4*)
10675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10676 hardcode_libdir_flag_spec='-L$libdir'
10677 hardcode_shlibpath_var=no
10678 ;;
10679
10680 *)
10681 ld_shlibs=no
10682 ;;
10683 esac
10684
10685 if test x$host_vendor = xsni; then
10686 case $host in
10687 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10688 export_dynamic_flag_spec='${wl}-Blargedynsym'
10689 ;;
10690 esac
10691 fi
10692 fi
10693
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10695 $as_echo "$ld_shlibs" >&6; }
10696 test "$ld_shlibs" = no && can_build_shared=no
10697
10698 with_gnu_ld=$with_gnu_ld
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714 #
10715 # Do we need to explicitly link libc?
10716 #
10717 case "x$archive_cmds_need_lc" in
10718 x|xyes)
10719 # Assume -lc should be added
10720 archive_cmds_need_lc=yes
10721
10722 if test "$enable_shared" = yes && test "$GCC" = yes; then
10723 case $archive_cmds in
10724 *'~'*)
10725 # FIXME: we may have to deal with multi-command sequences.
10726 ;;
10727 '$CC '*)
10728 # Test whether the compiler implicitly links with -lc since on some
10729 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10730 # to ld, don't add -lc before -lgcc.
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10732 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10733 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10734 $as_echo_n "(cached) " >&6
10735 else
10736 $RM conftest*
10737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10738
10739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10740 (eval $ac_compile) 2>&5
10741 ac_status=$?
10742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10743 test $ac_status = 0; } 2>conftest.err; then
10744 soname=conftest
10745 lib=conftest
10746 libobjs=conftest.$ac_objext
10747 deplibs=
10748 wl=$lt_prog_compiler_wl
10749 pic_flag=$lt_prog_compiler_pic
10750 compiler_flags=-v
10751 linker_flags=-v
10752 verstring=
10753 output_objdir=.
10754 libname=conftest
10755 lt_save_allow_undefined_flag=$allow_undefined_flag
10756 allow_undefined_flag=
10757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10758 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10759 ac_status=$?
10760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10761 test $ac_status = 0; }
10762 then
10763 lt_cv_archive_cmds_need_lc=no
10764 else
10765 lt_cv_archive_cmds_need_lc=yes
10766 fi
10767 allow_undefined_flag=$lt_save_allow_undefined_flag
10768 else
10769 cat conftest.err 1>&5
10770 fi
10771 $RM conftest*
10772
10773 fi
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10775 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10776 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10777 ;;
10778 esac
10779 fi
10780 ;;
10781 esac
10782
10783
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10940 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10941
10942 if test "$GCC" = yes; then
10943 case $host_os in
10944 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10945 *) lt_awk_arg="/^libraries:/" ;;
10946 esac
10947 case $host_os in
10948 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10949 *) lt_sed_strip_eq="s,=/,/,g" ;;
10950 esac
10951 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10952 case $lt_search_path_spec in
10953 *\;*)
10954 # if the path contains ";" then we assume it to be the separator
10955 # otherwise default to the standard path separator (i.e. ":") - it is
10956 # assumed that no part of a normal pathname contains ";" but that should
10957 # okay in the real world where ";" in dirpaths is itself problematic.
10958 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10959 ;;
10960 *)
10961 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10962 ;;
10963 esac
10964 # Ok, now we have the path, separated by spaces, we can step through it
10965 # and add multilib dir if necessary.
10966 lt_tmp_lt_search_path_spec=
10967 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10968 for lt_sys_path in $lt_search_path_spec; do
10969 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10970 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10971 else
10972 test -d "$lt_sys_path" && \
10973 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10974 fi
10975 done
10976 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10977 BEGIN {RS=" "; FS="/|\n";} {
10978 lt_foo="";
10979 lt_count=0;
10980 for (lt_i = NF; lt_i > 0; lt_i--) {
10981 if ($lt_i != "" && $lt_i != ".") {
10982 if ($lt_i == "..") {
10983 lt_count++;
10984 } else {
10985 if (lt_count == 0) {
10986 lt_foo="/" $lt_i lt_foo;
10987 } else {
10988 lt_count--;
10989 }
10990 }
10991 }
10992 }
10993 if (lt_foo != "") { lt_freq[lt_foo]++; }
10994 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10995 }'`
10996 # AWK program above erroneously prepends '/' to C:/dos/paths
10997 # for these hosts.
10998 case $host_os in
10999 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11000 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11001 esac
11002 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11003 else
11004 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11005 fi
11006 library_names_spec=
11007 libname_spec='lib$name'
11008 soname_spec=
11009 shrext_cmds=".so"
11010 postinstall_cmds=
11011 postuninstall_cmds=
11012 finish_cmds=
11013 finish_eval=
11014 shlibpath_var=
11015 shlibpath_overrides_runpath=unknown
11016 version_type=none
11017 dynamic_linker="$host_os ld.so"
11018 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11019 need_lib_prefix=unknown
11020 hardcode_into_libs=no
11021
11022 # when you set need_version to no, make sure it does not cause -set_version
11023 # flags to be left without arguments
11024 need_version=unknown
11025
11026 case $host_os in
11027 aix3*)
11028 version_type=linux
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11030 shlibpath_var=LIBPATH
11031
11032 # AIX 3 has no versioning support, so we append a major version to the name.
11033 soname_spec='${libname}${release}${shared_ext}$major'
11034 ;;
11035
11036 aix[4-9]*)
11037 version_type=linux
11038 need_lib_prefix=no
11039 need_version=no
11040 hardcode_into_libs=yes
11041 if test "$host_cpu" = ia64; then
11042 # AIX 5 supports IA64
11043 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 else
11046 # With GCC up to 2.95.x, collect2 would create an import file
11047 # for dependence libraries. The import file would start with
11048 # the line `#! .'. This would cause the generated library to
11049 # depend on `.', always an invalid library. This was fixed in
11050 # development snapshots of GCC prior to 3.0.
11051 case $host_os in
11052 aix4 | aix4.[01] | aix4.[01].*)
11053 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11054 echo ' yes '
11055 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11056 :
11057 else
11058 can_build_shared=no
11059 fi
11060 ;;
11061 esac
11062 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11063 # soname into executable. Probably we can add versioning support to
11064 # collect2, so additional links can be useful in future.
11065 if test "$aix_use_runtimelinking" = yes; then
11066 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11067 # instead of lib<name>.a to let people know that these are not
11068 # typical AIX shared libraries.
11069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11070 else
11071 # We preserve .a as extension for shared libraries through AIX4.2
11072 # and later when we are not doing run time linking.
11073 library_names_spec='${libname}${release}.a $libname.a'
11074 soname_spec='${libname}${release}${shared_ext}$major'
11075 fi
11076 shlibpath_var=LIBPATH
11077 fi
11078 ;;
11079
11080 amigaos*)
11081 case $host_cpu in
11082 powerpc)
11083 # Since July 2007 AmigaOS4 officially supports .so libraries.
11084 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086 ;;
11087 m68k)
11088 library_names_spec='$libname.ixlibrary $libname.a'
11089 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11090 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'
11091 ;;
11092 esac
11093 ;;
11094
11095 beos*)
11096 library_names_spec='${libname}${shared_ext}'
11097 dynamic_linker="$host_os ld.so"
11098 shlibpath_var=LIBRARY_PATH
11099 ;;
11100
11101 bsdi[45]*)
11102 version_type=linux
11103 need_version=no
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 soname_spec='${libname}${release}${shared_ext}$major'
11106 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11109 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11110 # the default ld.so.conf also contains /usr/contrib/lib and
11111 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11112 # libtool to hard-code these into programs
11113 ;;
11114
11115 cygwin* | mingw* | pw32* | cegcc*)
11116 version_type=windows
11117 shrext_cmds=".dll"
11118 need_version=no
11119 need_lib_prefix=no
11120
11121 case $GCC,$host_os in
11122 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11123 library_names_spec='$libname.dll.a'
11124 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11125 postinstall_cmds='base_file=`basename \${file}`~
11126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11127 dldir=$destdir/`dirname \$dlpath`~
11128 test -d \$dldir || mkdir -p \$dldir~
11129 $install_prog $dir/$dlname \$dldir/$dlname~
11130 chmod a+x \$dldir/$dlname~
11131 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11132 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11133 fi'
11134 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11135 dlpath=$dir/\$dldll~
11136 $RM \$dlpath'
11137 shlibpath_overrides_runpath=yes
11138
11139 case $host_os in
11140 cygwin*)
11141 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11142 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11143
11144 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11145 ;;
11146 mingw* | cegcc*)
11147 # MinGW DLLs use traditional 'lib' prefix
11148 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11149 ;;
11150 pw32*)
11151 # pw32 DLLs use 'pw' prefix rather than 'lib'
11152 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11153 ;;
11154 esac
11155 ;;
11156
11157 *)
11158 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11159 ;;
11160 esac
11161 dynamic_linker='Win32 ld.exe'
11162 # FIXME: first we should search . and the directory the executable is in
11163 shlibpath_var=PATH
11164 ;;
11165
11166 darwin* | rhapsody*)
11167 dynamic_linker="$host_os dyld"
11168 version_type=darwin
11169 need_lib_prefix=no
11170 need_version=no
11171 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11172 soname_spec='${libname}${release}${major}$shared_ext'
11173 shlibpath_overrides_runpath=yes
11174 shlibpath_var=DYLD_LIBRARY_PATH
11175 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11176
11177 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11178 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11179 ;;
11180
11181 dgux*)
11182 version_type=linux
11183 need_lib_prefix=no
11184 need_version=no
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 ;;
11189
11190 freebsd* | dragonfly*)
11191 # DragonFly does not have aout. When/if they implement a new
11192 # versioning mechanism, adjust this.
11193 if test -x /usr/bin/objformat; then
11194 objformat=`/usr/bin/objformat`
11195 else
11196 case $host_os in
11197 freebsd[23].*) objformat=aout ;;
11198 *) objformat=elf ;;
11199 esac
11200 fi
11201 version_type=freebsd-$objformat
11202 case $version_type in
11203 freebsd-elf*)
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11205 need_version=no
11206 need_lib_prefix=no
11207 ;;
11208 freebsd-*)
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11210 need_version=yes
11211 ;;
11212 esac
11213 shlibpath_var=LD_LIBRARY_PATH
11214 case $host_os in
11215 freebsd2.*)
11216 shlibpath_overrides_runpath=yes
11217 ;;
11218 freebsd3.[01]* | freebsdelf3.[01]*)
11219 shlibpath_overrides_runpath=yes
11220 hardcode_into_libs=yes
11221 ;;
11222 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11223 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11224 shlibpath_overrides_runpath=no
11225 hardcode_into_libs=yes
11226 ;;
11227 *) # from 4.6 on, and DragonFly
11228 shlibpath_overrides_runpath=yes
11229 hardcode_into_libs=yes
11230 ;;
11231 esac
11232 ;;
11233
11234 haiku*)
11235 version_type=linux
11236 need_lib_prefix=no
11237 need_version=no
11238 dynamic_linker="$host_os runtime_loader"
11239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11240 soname_spec='${libname}${release}${shared_ext}$major'
11241 shlibpath_var=LIBRARY_PATH
11242 shlibpath_overrides_runpath=yes
11243 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11244 hardcode_into_libs=yes
11245 ;;
11246
11247 hpux9* | hpux10* | hpux11*)
11248 # Give a soname corresponding to the major version so that dld.sl refuses to
11249 # link against other versions.
11250 version_type=sunos
11251 need_lib_prefix=no
11252 need_version=no
11253 case $host_cpu in
11254 ia64*)
11255 shrext_cmds='.so'
11256 hardcode_into_libs=yes
11257 dynamic_linker="$host_os dld.so"
11258 shlibpath_var=LD_LIBRARY_PATH
11259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11261 soname_spec='${libname}${release}${shared_ext}$major'
11262 if test "X$HPUX_IA64_MODE" = X32; then
11263 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11264 else
11265 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11266 fi
11267 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11268 ;;
11269 hppa*64*)
11270 shrext_cmds='.sl'
11271 hardcode_into_libs=yes
11272 dynamic_linker="$host_os dld.sl"
11273 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11277 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11278 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11279 ;;
11280 *)
11281 shrext_cmds='.sl'
11282 dynamic_linker="$host_os dld.sl"
11283 shlibpath_var=SHLIB_PATH
11284 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11286 soname_spec='${libname}${release}${shared_ext}$major'
11287 ;;
11288 esac
11289 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11290 postinstall_cmds='chmod 555 $lib'
11291 # or fails outright, so override atomically:
11292 install_override_mode=555
11293 ;;
11294
11295 interix[3-9]*)
11296 version_type=linux
11297 need_lib_prefix=no
11298 need_version=no
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11300 soname_spec='${libname}${release}${shared_ext}$major'
11301 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11302 shlibpath_var=LD_LIBRARY_PATH
11303 shlibpath_overrides_runpath=no
11304 hardcode_into_libs=yes
11305 ;;
11306
11307 irix5* | irix6* | nonstopux*)
11308 case $host_os in
11309 nonstopux*) version_type=nonstopux ;;
11310 *)
11311 if test "$lt_cv_prog_gnu_ld" = yes; then
11312 version_type=linux
11313 else
11314 version_type=irix
11315 fi ;;
11316 esac
11317 need_lib_prefix=no
11318 need_version=no
11319 soname_spec='${libname}${release}${shared_ext}$major'
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11321 case $host_os in
11322 irix5* | nonstopux*)
11323 libsuff= shlibsuff=
11324 ;;
11325 *)
11326 case $LD in # libtool.m4 will add one of these switches to LD
11327 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11328 libsuff= shlibsuff= libmagic=32-bit;;
11329 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11330 libsuff=32 shlibsuff=N32 libmagic=N32;;
11331 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11332 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11333 *) libsuff= shlibsuff= libmagic=never-match;;
11334 esac
11335 ;;
11336 esac
11337 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11338 shlibpath_overrides_runpath=no
11339 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11340 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11341 hardcode_into_libs=yes
11342 ;;
11343
11344 # No shared lib support for Linux oldld, aout, or coff.
11345 linux*oldld* | linux*aout* | linux*coff*)
11346 dynamic_linker=no
11347 ;;
11348
11349 # This must be Linux ELF.
11350 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11351 version_type=linux
11352 need_lib_prefix=no
11353 need_version=no
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 soname_spec='${libname}${release}${shared_ext}$major'
11356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11357 shlibpath_var=LD_LIBRARY_PATH
11358 shlibpath_overrides_runpath=no
11359
11360 # Some binutils ld are patched to set DT_RUNPATH
11361 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11362 $as_echo_n "(cached) " >&6
11363 else
11364 lt_cv_shlibpath_overrides_runpath=no
11365 save_LDFLAGS=$LDFLAGS
11366 save_libdir=$libdir
11367 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11368 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370 /* end confdefs.h. */
11371
11372 int
11373 main ()
11374 {
11375
11376 ;
11377 return 0;
11378 }
11379 _ACEOF
11380 if ac_fn_c_try_link "$LINENO"; then :
11381 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11382 lt_cv_shlibpath_overrides_runpath=yes
11383 fi
11384 fi
11385 rm -f core conftest.err conftest.$ac_objext \
11386 conftest$ac_exeext conftest.$ac_ext
11387 LDFLAGS=$save_LDFLAGS
11388 libdir=$save_libdir
11389
11390 fi
11391
11392 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11393
11394 # This implies no fast_install, which is unacceptable.
11395 # Some rework will be needed to allow for fast_install
11396 # before this can be enabled.
11397 hardcode_into_libs=yes
11398
11399 # Append ld.so.conf contents to the search path
11400 if test -f /etc/ld.so.conf; then
11401 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' ' '`
11402 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11403 fi
11404
11405 # We used to test for /lib/ld.so.1 and disable shared libraries on
11406 # powerpc, because MkLinux only supported shared libraries with the
11407 # GNU dynamic linker. Since this was broken with cross compilers,
11408 # most powerpc-linux boxes support dynamic linking these days and
11409 # people can always --disable-shared, the test was removed, and we
11410 # assume the GNU/Linux dynamic linker is in use.
11411 dynamic_linker='GNU/Linux ld.so'
11412 ;;
11413
11414 netbsd*)
11415 version_type=sunos
11416 need_lib_prefix=no
11417 need_version=no
11418 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11421 dynamic_linker='NetBSD (a.out) ld.so'
11422 else
11423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11424 soname_spec='${libname}${release}${shared_ext}$major'
11425 dynamic_linker='NetBSD ld.elf_so'
11426 fi
11427 shlibpath_var=LD_LIBRARY_PATH
11428 shlibpath_overrides_runpath=yes
11429 hardcode_into_libs=yes
11430 ;;
11431
11432 newsos6)
11433 version_type=linux
11434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 shlibpath_overrides_runpath=yes
11437 ;;
11438
11439 *nto* | *qnx*)
11440 version_type=qnx
11441 need_lib_prefix=no
11442 need_version=no
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444 soname_spec='${libname}${release}${shared_ext}$major'
11445 shlibpath_var=LD_LIBRARY_PATH
11446 shlibpath_overrides_runpath=no
11447 hardcode_into_libs=yes
11448 dynamic_linker='ldqnx.so'
11449 ;;
11450
11451 openbsd*)
11452 version_type=sunos
11453 sys_lib_dlsearch_path_spec="/usr/lib"
11454 need_lib_prefix=no
11455 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11456 case $host_os in
11457 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11458 *) need_version=no ;;
11459 esac
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11464 case $host_os in
11465 openbsd2.[89] | openbsd2.[89].*)
11466 shlibpath_overrides_runpath=no
11467 ;;
11468 *)
11469 shlibpath_overrides_runpath=yes
11470 ;;
11471 esac
11472 else
11473 shlibpath_overrides_runpath=yes
11474 fi
11475 ;;
11476
11477 os2*)
11478 libname_spec='$name'
11479 shrext_cmds=".dll"
11480 need_lib_prefix=no
11481 library_names_spec='$libname${shared_ext} $libname.a'
11482 dynamic_linker='OS/2 ld.exe'
11483 shlibpath_var=LIBPATH
11484 ;;
11485
11486 osf3* | osf4* | osf5*)
11487 version_type=osf
11488 need_lib_prefix=no
11489 need_version=no
11490 soname_spec='${libname}${release}${shared_ext}$major'
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492 shlibpath_var=LD_LIBRARY_PATH
11493 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11494 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11495 ;;
11496
11497 rdos*)
11498 dynamic_linker=no
11499 ;;
11500
11501 solaris*)
11502 version_type=linux
11503 need_lib_prefix=no
11504 need_version=no
11505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11506 soname_spec='${libname}${release}${shared_ext}$major'
11507 shlibpath_var=LD_LIBRARY_PATH
11508 shlibpath_overrides_runpath=yes
11509 hardcode_into_libs=yes
11510 # ldd complains unless libraries are executable
11511 postinstall_cmds='chmod +x $lib'
11512 ;;
11513
11514 sunos4*)
11515 version_type=sunos
11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11517 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 shlibpath_overrides_runpath=yes
11520 if test "$with_gnu_ld" = yes; then
11521 need_lib_prefix=no
11522 fi
11523 need_version=yes
11524 ;;
11525
11526 sysv4 | sysv4.3*)
11527 version_type=linux
11528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11529 soname_spec='${libname}${release}${shared_ext}$major'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 case $host_vendor in
11532 sni)
11533 shlibpath_overrides_runpath=no
11534 need_lib_prefix=no
11535 runpath_var=LD_RUN_PATH
11536 ;;
11537 siemens)
11538 need_lib_prefix=no
11539 ;;
11540 motorola)
11541 need_lib_prefix=no
11542 need_version=no
11543 shlibpath_overrides_runpath=no
11544 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11545 ;;
11546 esac
11547 ;;
11548
11549 sysv4*MP*)
11550 if test -d /usr/nec ;then
11551 version_type=linux
11552 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11553 soname_spec='$libname${shared_ext}.$major'
11554 shlibpath_var=LD_LIBRARY_PATH
11555 fi
11556 ;;
11557
11558 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11559 version_type=freebsd-elf
11560 need_lib_prefix=no
11561 need_version=no
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11563 soname_spec='${libname}${release}${shared_ext}$major'
11564 shlibpath_var=LD_LIBRARY_PATH
11565 shlibpath_overrides_runpath=yes
11566 hardcode_into_libs=yes
11567 if test "$with_gnu_ld" = yes; then
11568 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11569 else
11570 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11571 case $host_os in
11572 sco3.2v5*)
11573 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11574 ;;
11575 esac
11576 fi
11577 sys_lib_dlsearch_path_spec='/usr/lib'
11578 ;;
11579
11580 tpf*)
11581 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11582 version_type=linux
11583 need_lib_prefix=no
11584 need_version=no
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586 shlibpath_var=LD_LIBRARY_PATH
11587 shlibpath_overrides_runpath=no
11588 hardcode_into_libs=yes
11589 ;;
11590
11591 uts4*)
11592 version_type=linux
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11594 soname_spec='${libname}${release}${shared_ext}$major'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 ;;
11597
11598 *)
11599 dynamic_linker=no
11600 ;;
11601 esac
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11603 $as_echo "$dynamic_linker" >&6; }
11604 test "$dynamic_linker" = no && can_build_shared=no
11605
11606 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11607 if test "$GCC" = yes; then
11608 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11609 fi
11610
11611 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11612 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11613 fi
11614 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11615 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11616 fi
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11710 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11711 hardcode_action=
11712 if test -n "$hardcode_libdir_flag_spec" ||
11713 test -n "$runpath_var" ||
11714 test "X$hardcode_automatic" = "Xyes" ; then
11715
11716 # We can hardcode non-existent directories.
11717 if test "$hardcode_direct" != no &&
11718 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11719 # have to relink, otherwise we might link with an installed library
11720 # when we should be linking with a yet-to-be-installed one
11721 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11722 test "$hardcode_minus_L" != no; then
11723 # Linking always hardcodes the temporary library directory.
11724 hardcode_action=relink
11725 else
11726 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11727 hardcode_action=immediate
11728 fi
11729 else
11730 # We cannot hardcode anything, or else we can only hardcode existing
11731 # directories.
11732 hardcode_action=unsupported
11733 fi
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11735 $as_echo "$hardcode_action" >&6; }
11736
11737 if test "$hardcode_action" = relink ||
11738 test "$inherit_rpath" = yes; then
11739 # Fast installation is not supported
11740 enable_fast_install=no
11741 elif test "$shlibpath_overrides_runpath" = yes ||
11742 test "$enable_shared" = no; then
11743 # Fast installation is not necessary
11744 enable_fast_install=needless
11745 fi
11746
11747
11748
11749
11750
11751
11752 if test "x$enable_dlopen" != xyes; then
11753 enable_dlopen=unknown
11754 enable_dlopen_self=unknown
11755 enable_dlopen_self_static=unknown
11756 else
11757 lt_cv_dlopen=no
11758 lt_cv_dlopen_libs=
11759
11760 case $host_os in
11761 beos*)
11762 lt_cv_dlopen="load_add_on"
11763 lt_cv_dlopen_libs=
11764 lt_cv_dlopen_self=yes
11765 ;;
11766
11767 mingw* | pw32* | cegcc*)
11768 lt_cv_dlopen="LoadLibrary"
11769 lt_cv_dlopen_libs=
11770 ;;
11771
11772 cygwin*)
11773 lt_cv_dlopen="dlopen"
11774 lt_cv_dlopen_libs=
11775 ;;
11776
11777 darwin*)
11778 # if libdl is installed we need to link against it
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11780 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11781 if ${ac_cv_lib_dl_dlopen+:} false; then :
11782 $as_echo_n "(cached) " >&6
11783 else
11784 ac_check_lib_save_LIBS=$LIBS
11785 LIBS="-ldl $LIBS"
11786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11787 /* end confdefs.h. */
11788
11789 /* Override any GCC internal prototype to avoid an error.
11790 Use char because int might match the return type of a GCC
11791 builtin and then its argument prototype would still apply. */
11792 #ifdef __cplusplus
11793 extern "C"
11794 #endif
11795 char dlopen ();
11796 int
11797 main ()
11798 {
11799 return dlopen ();
11800 ;
11801 return 0;
11802 }
11803 _ACEOF
11804 if ac_fn_c_try_link "$LINENO"; then :
11805 ac_cv_lib_dl_dlopen=yes
11806 else
11807 ac_cv_lib_dl_dlopen=no
11808 fi
11809 rm -f core conftest.err conftest.$ac_objext \
11810 conftest$ac_exeext conftest.$ac_ext
11811 LIBS=$ac_check_lib_save_LIBS
11812 fi
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11814 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11815 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11816 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11817 else
11818
11819 lt_cv_dlopen="dyld"
11820 lt_cv_dlopen_libs=
11821 lt_cv_dlopen_self=yes
11822
11823 fi
11824
11825 ;;
11826
11827 *)
11828 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11829 if test "x$ac_cv_func_shl_load" = xyes; then :
11830 lt_cv_dlopen="shl_load"
11831 else
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11833 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11834 if ${ac_cv_lib_dld_shl_load+:} false; then :
11835 $as_echo_n "(cached) " >&6
11836 else
11837 ac_check_lib_save_LIBS=$LIBS
11838 LIBS="-ldld $LIBS"
11839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840 /* end confdefs.h. */
11841
11842 /* Override any GCC internal prototype to avoid an error.
11843 Use char because int might match the return type of a GCC
11844 builtin and then its argument prototype would still apply. */
11845 #ifdef __cplusplus
11846 extern "C"
11847 #endif
11848 char shl_load ();
11849 int
11850 main ()
11851 {
11852 return shl_load ();
11853 ;
11854 return 0;
11855 }
11856 _ACEOF
11857 if ac_fn_c_try_link "$LINENO"; then :
11858 ac_cv_lib_dld_shl_load=yes
11859 else
11860 ac_cv_lib_dld_shl_load=no
11861 fi
11862 rm -f core conftest.err conftest.$ac_objext \
11863 conftest$ac_exeext conftest.$ac_ext
11864 LIBS=$ac_check_lib_save_LIBS
11865 fi
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11867 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11868 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11869 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11870 else
11871 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11872 if test "x$ac_cv_func_dlopen" = xyes; then :
11873 lt_cv_dlopen="dlopen"
11874 else
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11876 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11877 if ${ac_cv_lib_dl_dlopen+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 ac_check_lib_save_LIBS=$LIBS
11881 LIBS="-ldl $LIBS"
11882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h. */
11884
11885 /* Override any GCC internal prototype to avoid an error.
11886 Use char because int might match the return type of a GCC
11887 builtin and then its argument prototype would still apply. */
11888 #ifdef __cplusplus
11889 extern "C"
11890 #endif
11891 char dlopen ();
11892 int
11893 main ()
11894 {
11895 return dlopen ();
11896 ;
11897 return 0;
11898 }
11899 _ACEOF
11900 if ac_fn_c_try_link "$LINENO"; then :
11901 ac_cv_lib_dl_dlopen=yes
11902 else
11903 ac_cv_lib_dl_dlopen=no
11904 fi
11905 rm -f core conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11907 LIBS=$ac_check_lib_save_LIBS
11908 fi
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11910 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11911 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11913 else
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11915 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11916 if ${ac_cv_lib_svld_dlopen+:} false; then :
11917 $as_echo_n "(cached) " >&6
11918 else
11919 ac_check_lib_save_LIBS=$LIBS
11920 LIBS="-lsvld $LIBS"
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11923
11924 /* Override any GCC internal prototype to avoid an error.
11925 Use char because int might match the return type of a GCC
11926 builtin and then its argument prototype would still apply. */
11927 #ifdef __cplusplus
11928 extern "C"
11929 #endif
11930 char dlopen ();
11931 int
11932 main ()
11933 {
11934 return dlopen ();
11935 ;
11936 return 0;
11937 }
11938 _ACEOF
11939 if ac_fn_c_try_link "$LINENO"; then :
11940 ac_cv_lib_svld_dlopen=yes
11941 else
11942 ac_cv_lib_svld_dlopen=no
11943 fi
11944 rm -f core conftest.err conftest.$ac_objext \
11945 conftest$ac_exeext conftest.$ac_ext
11946 LIBS=$ac_check_lib_save_LIBS
11947 fi
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11949 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11950 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11951 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11952 else
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11954 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11955 if ${ac_cv_lib_dld_dld_link+:} false; then :
11956 $as_echo_n "(cached) " >&6
11957 else
11958 ac_check_lib_save_LIBS=$LIBS
11959 LIBS="-ldld $LIBS"
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11962
11963 /* Override any GCC internal prototype to avoid an error.
11964 Use char because int might match the return type of a GCC
11965 builtin and then its argument prototype would still apply. */
11966 #ifdef __cplusplus
11967 extern "C"
11968 #endif
11969 char dld_link ();
11970 int
11971 main ()
11972 {
11973 return dld_link ();
11974 ;
11975 return 0;
11976 }
11977 _ACEOF
11978 if ac_fn_c_try_link "$LINENO"; then :
11979 ac_cv_lib_dld_dld_link=yes
11980 else
11981 ac_cv_lib_dld_dld_link=no
11982 fi
11983 rm -f core conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11985 LIBS=$ac_check_lib_save_LIBS
11986 fi
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11988 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11989 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11990 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11991 fi
11992
11993
11994 fi
11995
11996
11997 fi
11998
11999
12000 fi
12001
12002
12003 fi
12004
12005
12006 fi
12007
12008 ;;
12009 esac
12010
12011 if test "x$lt_cv_dlopen" != xno; then
12012 enable_dlopen=yes
12013 else
12014 enable_dlopen=no
12015 fi
12016
12017 case $lt_cv_dlopen in
12018 dlopen)
12019 save_CPPFLAGS="$CPPFLAGS"
12020 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12021
12022 save_LDFLAGS="$LDFLAGS"
12023 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12024
12025 save_LIBS="$LIBS"
12026 LIBS="$lt_cv_dlopen_libs $LIBS"
12027
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12029 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12030 if ${lt_cv_dlopen_self+:} false; then :
12031 $as_echo_n "(cached) " >&6
12032 else
12033 if test "$cross_compiling" = yes; then :
12034 lt_cv_dlopen_self=cross
12035 else
12036 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12037 lt_status=$lt_dlunknown
12038 cat > conftest.$ac_ext <<_LT_EOF
12039 #line 12039 "configure"
12040 #include "confdefs.h"
12041
12042 #if HAVE_DLFCN_H
12043 #include <dlfcn.h>
12044 #endif
12045
12046 #include <stdio.h>
12047
12048 #ifdef RTLD_GLOBAL
12049 # define LT_DLGLOBAL RTLD_GLOBAL
12050 #else
12051 # ifdef DL_GLOBAL
12052 # define LT_DLGLOBAL DL_GLOBAL
12053 # else
12054 # define LT_DLGLOBAL 0
12055 # endif
12056 #endif
12057
12058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12059 find out it does not work in some platform. */
12060 #ifndef LT_DLLAZY_OR_NOW
12061 # ifdef RTLD_LAZY
12062 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12063 # else
12064 # ifdef DL_LAZY
12065 # define LT_DLLAZY_OR_NOW DL_LAZY
12066 # else
12067 # ifdef RTLD_NOW
12068 # define LT_DLLAZY_OR_NOW RTLD_NOW
12069 # else
12070 # ifdef DL_NOW
12071 # define LT_DLLAZY_OR_NOW DL_NOW
12072 # else
12073 # define LT_DLLAZY_OR_NOW 0
12074 # endif
12075 # endif
12076 # endif
12077 # endif
12078 #endif
12079
12080 /* When -fvisbility=hidden is used, assume the code has been annotated
12081 correspondingly for the symbols needed. */
12082 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12083 void fnord () __attribute__((visibility("default")));
12084 #endif
12085
12086 void fnord () { int i=42; }
12087 int main ()
12088 {
12089 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12090 int status = $lt_dlunknown;
12091
12092 if (self)
12093 {
12094 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12095 else
12096 {
12097 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12098 else puts (dlerror ());
12099 }
12100 /* dlclose (self); */
12101 }
12102 else
12103 puts (dlerror ());
12104
12105 return status;
12106 }
12107 _LT_EOF
12108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12109 (eval $ac_link) 2>&5
12110 ac_status=$?
12111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12112 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12113 (./conftest; exit; ) >&5 2>/dev/null
12114 lt_status=$?
12115 case x$lt_status in
12116 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12117 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12118 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12119 esac
12120 else :
12121 # compilation failed
12122 lt_cv_dlopen_self=no
12123 fi
12124 fi
12125 rm -fr conftest*
12126
12127
12128 fi
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12130 $as_echo "$lt_cv_dlopen_self" >&6; }
12131
12132 if test "x$lt_cv_dlopen_self" = xyes; then
12133 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12135 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12136 if ${lt_cv_dlopen_self_static+:} false; then :
12137 $as_echo_n "(cached) " >&6
12138 else
12139 if test "$cross_compiling" = yes; then :
12140 lt_cv_dlopen_self_static=cross
12141 else
12142 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12143 lt_status=$lt_dlunknown
12144 cat > conftest.$ac_ext <<_LT_EOF
12145 #line 12145 "configure"
12146 #include "confdefs.h"
12147
12148 #if HAVE_DLFCN_H
12149 #include <dlfcn.h>
12150 #endif
12151
12152 #include <stdio.h>
12153
12154 #ifdef RTLD_GLOBAL
12155 # define LT_DLGLOBAL RTLD_GLOBAL
12156 #else
12157 # ifdef DL_GLOBAL
12158 # define LT_DLGLOBAL DL_GLOBAL
12159 # else
12160 # define LT_DLGLOBAL 0
12161 # endif
12162 #endif
12163
12164 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12165 find out it does not work in some platform. */
12166 #ifndef LT_DLLAZY_OR_NOW
12167 # ifdef RTLD_LAZY
12168 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12169 # else
12170 # ifdef DL_LAZY
12171 # define LT_DLLAZY_OR_NOW DL_LAZY
12172 # else
12173 # ifdef RTLD_NOW
12174 # define LT_DLLAZY_OR_NOW RTLD_NOW
12175 # else
12176 # ifdef DL_NOW
12177 # define LT_DLLAZY_OR_NOW DL_NOW
12178 # else
12179 # define LT_DLLAZY_OR_NOW 0
12180 # endif
12181 # endif
12182 # endif
12183 # endif
12184 #endif
12185
12186 /* When -fvisbility=hidden is used, assume the code has been annotated
12187 correspondingly for the symbols needed. */
12188 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12189 void fnord () __attribute__((visibility("default")));
12190 #endif
12191
12192 void fnord () { int i=42; }
12193 int main ()
12194 {
12195 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12196 int status = $lt_dlunknown;
12197
12198 if (self)
12199 {
12200 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12201 else
12202 {
12203 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12204 else puts (dlerror ());
12205 }
12206 /* dlclose (self); */
12207 }
12208 else
12209 puts (dlerror ());
12210
12211 return status;
12212 }
12213 _LT_EOF
12214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12215 (eval $ac_link) 2>&5
12216 ac_status=$?
12217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12218 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12219 (./conftest; exit; ) >&5 2>/dev/null
12220 lt_status=$?
12221 case x$lt_status in
12222 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12223 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12224 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12225 esac
12226 else :
12227 # compilation failed
12228 lt_cv_dlopen_self_static=no
12229 fi
12230 fi
12231 rm -fr conftest*
12232
12233
12234 fi
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12236 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12237 fi
12238
12239 CPPFLAGS="$save_CPPFLAGS"
12240 LDFLAGS="$save_LDFLAGS"
12241 LIBS="$save_LIBS"
12242 ;;
12243 esac
12244
12245 case $lt_cv_dlopen_self in
12246 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12247 *) enable_dlopen_self=unknown ;;
12248 esac
12249
12250 case $lt_cv_dlopen_self_static in
12251 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12252 *) enable_dlopen_self_static=unknown ;;
12253 esac
12254 fi
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272 striplib=
12273 old_striplib=
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12275 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12276 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12277 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12278 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12280 $as_echo "yes" >&6; }
12281 else
12282 # FIXME - insert some real tests, host_os isn't really good enough
12283 case $host_os in
12284 darwin*)
12285 if test -n "$STRIP" ; then
12286 striplib="$STRIP -x"
12287 old_striplib="$STRIP -S"
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12289 $as_echo "yes" >&6; }
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12293 fi
12294 ;;
12295 *)
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297 $as_echo "no" >&6; }
12298 ;;
12299 esac
12300 fi
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313 # Report which library types will actually be built
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12315 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12317 $as_echo "$can_build_shared" >&6; }
12318
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12320 $as_echo_n "checking whether to build shared libraries... " >&6; }
12321 test "$can_build_shared" = "no" && enable_shared=no
12322
12323 # On AIX, shared libraries and static libraries use the same namespace, and
12324 # are all built from PIC.
12325 case $host_os in
12326 aix3*)
12327 test "$enable_shared" = yes && enable_static=no
12328 if test -n "$RANLIB"; then
12329 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12330 postinstall_cmds='$RANLIB $lib'
12331 fi
12332 ;;
12333
12334 aix[4-9]*)
12335 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12336 test "$enable_shared" = yes && enable_static=no
12337 fi
12338 ;;
12339 esac
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12341 $as_echo "$enable_shared" >&6; }
12342
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12344 $as_echo_n "checking whether to build static libraries... " >&6; }
12345 # Make sure either enable_shared or enable_static is yes.
12346 test "$enable_shared" = yes || enable_static=yes
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12348 $as_echo "$enable_static" >&6; }
12349
12350
12351
12352
12353 fi
12354 ac_ext=c
12355 ac_cpp='$CPP $CPPFLAGS'
12356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12359
12360 CC="$lt_save_CC"
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374 ac_config_commands="$ac_config_commands libtool"
12375
12376
12377
12378
12379 # Only expand once:
12380
12381
12382
12383
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
12385 $as_echo_n "checking for bind in -lsocket... " >&6; }
12386 if ${ac_cv_lib_socket_bind+:} false; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389 ac_check_lib_save_LIBS=$LIBS
12390 LIBS="-lsocket $LIBS"
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12393
12394 /* Override any GCC internal prototype to avoid an error.
12395 Use char because int might match the return type of a GCC
12396 builtin and then its argument prototype would still apply. */
12397 #ifdef __cplusplus
12398 extern "C"
12399 #endif
12400 char bind ();
12401 int
12402 main ()
12403 {
12404 return bind ();
12405 ;
12406 return 0;
12407 }
12408 _ACEOF
12409 if ac_fn_c_try_link "$LINENO"; then :
12410 ac_cv_lib_socket_bind=yes
12411 else
12412 ac_cv_lib_socket_bind=no
12413 fi
12414 rm -f core conftest.err conftest.$ac_objext \
12415 conftest$ac_exeext conftest.$ac_ext
12416 LIBS=$ac_check_lib_save_LIBS
12417 fi
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
12419 $as_echo "$ac_cv_lib_socket_bind" >&6; }
12420 if test "x$ac_cv_lib_socket_bind" = xyes; then :
12421 cat >>confdefs.h <<_ACEOF
12422 #define HAVE_LIBSOCKET 1
12423 _ACEOF
12424
12425 LIBS="-lsocket $LIBS"
12426
12427 fi
12428
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12430 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12431 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 ac_check_lib_save_LIBS=$LIBS
12435 LIBS="-lnsl $LIBS"
12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12438
12439 /* Override any GCC internal prototype to avoid an error.
12440 Use char because int might match the return type of a GCC
12441 builtin and then its argument prototype would still apply. */
12442 #ifdef __cplusplus
12443 extern "C"
12444 #endif
12445 char gethostbyname ();
12446 int
12447 main ()
12448 {
12449 return gethostbyname ();
12450 ;
12451 return 0;
12452 }
12453 _ACEOF
12454 if ac_fn_c_try_link "$LINENO"; then :
12455 ac_cv_lib_nsl_gethostbyname=yes
12456 else
12457 ac_cv_lib_nsl_gethostbyname=no
12458 fi
12459 rm -f core conftest.err conftest.$ac_objext \
12460 conftest$ac_exeext conftest.$ac_ext
12461 LIBS=$ac_check_lib_save_LIBS
12462 fi
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12464 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12465 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12466 cat >>confdefs.h <<_ACEOF
12467 #define HAVE_LIBNSL 1
12468 _ACEOF
12469
12470 LIBS="-lnsl $LIBS"
12471
12472 fi
12473
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12475 $as_echo_n "checking for fabs in -lm... " >&6; }
12476 if ${ac_cv_lib_m_fabs+:} false; then :
12477 $as_echo_n "(cached) " >&6
12478 else
12479 ac_check_lib_save_LIBS=$LIBS
12480 LIBS="-lm $LIBS"
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12483
12484 /* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12487 #ifdef __cplusplus
12488 extern "C"
12489 #endif
12490 char fabs ();
12491 int
12492 main ()
12493 {
12494 return fabs ();
12495 ;
12496 return 0;
12497 }
12498 _ACEOF
12499 if ac_fn_c_try_link "$LINENO"; then :
12500 ac_cv_lib_m_fabs=yes
12501 else
12502 ac_cv_lib_m_fabs=no
12503 fi
12504 rm -f core conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12506 LIBS=$ac_check_lib_save_LIBS
12507 fi
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12509 $as_echo "$ac_cv_lib_m_fabs" >&6; }
12510 if test "x$ac_cv_lib_m_fabs" = xyes; then :
12511 cat >>confdefs.h <<_ACEOF
12512 #define HAVE_LIBM 1
12513 _ACEOF
12514
12515 LIBS="-lm $LIBS"
12516
12517 fi
12518
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
12520 $as_echo_n "checking for log2 in -lm... " >&6; }
12521 if ${ac_cv_lib_m_log2+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 ac_check_lib_save_LIBS=$LIBS
12525 LIBS="-lm $LIBS"
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12528
12529 /* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12532 #ifdef __cplusplus
12533 extern "C"
12534 #endif
12535 char log2 ();
12536 int
12537 main ()
12538 {
12539 return log2 ();
12540 ;
12541 return 0;
12542 }
12543 _ACEOF
12544 if ac_fn_c_try_link "$LINENO"; then :
12545 ac_cv_lib_m_log2=yes
12546 else
12547 ac_cv_lib_m_log2=no
12548 fi
12549 rm -f core conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12551 LIBS=$ac_check_lib_save_LIBS
12552 fi
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12554 $as_echo "$ac_cv_lib_m_log2" >&6; }
12555 if test "x$ac_cv_lib_m_log2" = xyes; then :
12556 cat >>confdefs.h <<_ACEOF
12557 #define HAVE_LIBM 1
12558 _ACEOF
12559
12560 LIBS="-lm $LIBS"
12561
12562 fi
12563
12564
12565
12566
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12568 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12569 # Check whether --enable-maintainer-mode was given.
12570 if test "${enable_maintainer_mode+set}" = set; then :
12571 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12572 else
12573 USE_MAINTAINER_MODE=no
12574 fi
12575
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12577 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12578 if test $USE_MAINTAINER_MODE = yes; then
12579 MAINTAINER_MODE_TRUE=
12580 MAINTAINER_MODE_FALSE='#'
12581 else
12582 MAINTAINER_MODE_TRUE='#'
12583 MAINTAINER_MODE_FALSE=
12584 fi
12585
12586 MAINT=$MAINTAINER_MODE_TRUE
12587
12588
12589 am__api_version='1.15'
12590
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12592 $as_echo_n "checking whether build environment is sane... " >&6; }
12593 # Reject unsafe characters in $srcdir or the absolute working directory
12594 # name. Accept space and tab only in the latter.
12595 am_lf='
12596 '
12597 case `pwd` in
12598 *[\\\"\#\$\&\'\`$am_lf]*)
12599 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12600 esac
12601 case $srcdir in
12602 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12603 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12604 esac
12605
12606 # Do 'set' in a subshell so we don't clobber the current shell's
12607 # arguments. Must try -L first in case configure is actually a
12608 # symlink; some systems play weird games with the mod time of symlinks
12609 # (eg FreeBSD returns the mod time of the symlink's containing
12610 # directory).
12611 if (
12612 am_has_slept=no
12613 for am_try in 1 2; do
12614 echo "timestamp, slept: $am_has_slept" > conftest.file
12615 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12616 if test "$*" = "X"; then
12617 # -L didn't work.
12618 set X `ls -t "$srcdir/configure" conftest.file`
12619 fi
12620 if test "$*" != "X $srcdir/configure conftest.file" \
12621 && test "$*" != "X conftest.file $srcdir/configure"; then
12622
12623 # If neither matched, then we have a broken ls. This can happen
12624 # if, for instance, CONFIG_SHELL is bash and it inherits a
12625 # broken ls alias from the environment. This has actually
12626 # happened. Such a system could not be considered "sane".
12627 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
12628 alias in your environment" "$LINENO" 5
12629 fi
12630 if test "$2" = conftest.file || test $am_try -eq 2; then
12631 break
12632 fi
12633 # Just in case.
12634 sleep 1
12635 am_has_slept=yes
12636 done
12637 test "$2" = conftest.file
12638 )
12639 then
12640 # Ok.
12641 :
12642 else
12643 as_fn_error $? "newly created file is older than distributed files!
12644 Check your system clock" "$LINENO" 5
12645 fi
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12647 $as_echo "yes" >&6; }
12648 # If we didn't sleep, we still need to ensure time stamps of config.status and
12649 # generated files are strictly newer.
12650 am_sleep_pid=
12651 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12652 ( sleep 1 ) &
12653 am_sleep_pid=$!
12654 fi
12655
12656 rm -f conftest.file
12657
12658 if test x"${MISSING+set}" != xset; then
12659 case $am_aux_dir in
12660 *\ * | *\ *)
12661 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
12662 *)
12663 MISSING="\${SHELL} $am_aux_dir/missing" ;;
12664 esac
12665 fi
12666 # Use eval to expand $SHELL
12667 if eval "$MISSING --is-lightweight"; then
12668 am_missing_run="$MISSING "
12669 else
12670 am_missing_run=
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12672 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12673 fi
12674
12675 if test x"${install_sh+set}" != xset; then
12676 case $am_aux_dir in
12677 *\ * | *\ *)
12678 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12679 *)
12680 install_sh="\${SHELL} $am_aux_dir/install-sh"
12681 esac
12682 fi
12683
12684 # Installed binaries are usually stripped using 'strip' when the user
12685 # run "make install-strip". However 'strip' might not be the right
12686 # tool to use in cross-compilation environments, therefore Automake
12687 # will honor the 'STRIP' environment variable to overrule this program.
12688 if test "$cross_compiling" != no; then
12689 if test -n "$ac_tool_prefix"; then
12690 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12691 set dummy ${ac_tool_prefix}strip; ac_word=$2
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693 $as_echo_n "checking for $ac_word... " >&6; }
12694 if ${ac_cv_prog_STRIP+:} false; then :
12695 $as_echo_n "(cached) " >&6
12696 else
12697 if test -n "$STRIP"; then
12698 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12699 else
12700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701 for as_dir in $PATH
12702 do
12703 IFS=$as_save_IFS
12704 test -z "$as_dir" && as_dir=.
12705 for ac_exec_ext in '' $ac_executable_extensions; do
12706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12707 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12709 break 2
12710 fi
12711 done
12712 done
12713 IFS=$as_save_IFS
12714
12715 fi
12716 fi
12717 STRIP=$ac_cv_prog_STRIP
12718 if test -n "$STRIP"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12720 $as_echo "$STRIP" >&6; }
12721 else
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723 $as_echo "no" >&6; }
12724 fi
12725
12726
12727 fi
12728 if test -z "$ac_cv_prog_STRIP"; then
12729 ac_ct_STRIP=$STRIP
12730 # Extract the first word of "strip", so it can be a program name with args.
12731 set dummy strip; ac_word=$2
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12733 $as_echo_n "checking for $ac_word... " >&6; }
12734 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12735 $as_echo_n "(cached) " >&6
12736 else
12737 if test -n "$ac_ct_STRIP"; then
12738 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12739 else
12740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741 for as_dir in $PATH
12742 do
12743 IFS=$as_save_IFS
12744 test -z "$as_dir" && as_dir=.
12745 for ac_exec_ext in '' $ac_executable_extensions; do
12746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12747 ac_cv_prog_ac_ct_STRIP="strip"
12748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12749 break 2
12750 fi
12751 done
12752 done
12753 IFS=$as_save_IFS
12754
12755 fi
12756 fi
12757 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12758 if test -n "$ac_ct_STRIP"; then
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12760 $as_echo "$ac_ct_STRIP" >&6; }
12761 else
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763 $as_echo "no" >&6; }
12764 fi
12765
12766 if test "x$ac_ct_STRIP" = x; then
12767 STRIP=":"
12768 else
12769 case $cross_compiling:$ac_tool_warned in
12770 yes:)
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12773 ac_tool_warned=yes ;;
12774 esac
12775 STRIP=$ac_ct_STRIP
12776 fi
12777 else
12778 STRIP="$ac_cv_prog_STRIP"
12779 fi
12780
12781 fi
12782 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12783
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12785 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12786 if test -z "$MKDIR_P"; then
12787 if ${ac_cv_path_mkdir+:} false; then :
12788 $as_echo_n "(cached) " >&6
12789 else
12790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12792 do
12793 IFS=$as_save_IFS
12794 test -z "$as_dir" && as_dir=.
12795 for ac_prog in mkdir gmkdir; do
12796 for ac_exec_ext in '' $ac_executable_extensions; do
12797 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12798 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12799 'mkdir (GNU coreutils) '* | \
12800 'mkdir (coreutils) '* | \
12801 'mkdir (fileutils) '4.1*)
12802 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12803 break 3;;
12804 esac
12805 done
12806 done
12807 done
12808 IFS=$as_save_IFS
12809
12810 fi
12811
12812 test -d ./--version && rmdir ./--version
12813 if test "${ac_cv_path_mkdir+set}" = set; then
12814 MKDIR_P="$ac_cv_path_mkdir -p"
12815 else
12816 # As a last resort, use the slow shell script. Don't cache a
12817 # value for MKDIR_P within a source directory, because that will
12818 # break other packages using the cache if that directory is
12819 # removed, or if the value is a relative name.
12820 MKDIR_P="$ac_install_sh -d"
12821 fi
12822 fi
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12824 $as_echo "$MKDIR_P" >&6; }
12825
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12827 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12828 set x ${MAKE-make}
12829 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12830 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12831 $as_echo_n "(cached) " >&6
12832 else
12833 cat >conftest.make <<\_ACEOF
12834 SHELL = /bin/sh
12835 all:
12836 @echo '@@@%%%=$(MAKE)=@@@%%%'
12837 _ACEOF
12838 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12839 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12840 *@@@%%%=?*=@@@%%%*)
12841 eval ac_cv_prog_make_${ac_make}_set=yes;;
12842 *)
12843 eval ac_cv_prog_make_${ac_make}_set=no;;
12844 esac
12845 rm -f conftest.make
12846 fi
12847 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12849 $as_echo "yes" >&6; }
12850 SET_MAKE=
12851 else
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853 $as_echo "no" >&6; }
12854 SET_MAKE="MAKE=${MAKE-make}"
12855 fi
12856
12857 rm -rf .tst 2>/dev/null
12858 mkdir .tst 2>/dev/null
12859 if test -d .tst; then
12860 am__leading_dot=.
12861 else
12862 am__leading_dot=_
12863 fi
12864 rmdir .tst 2>/dev/null
12865
12866 DEPDIR="${am__leading_dot}deps"
12867
12868 ac_config_commands="$ac_config_commands depfiles"
12869
12870
12871 am_make=${MAKE-make}
12872 cat > confinc << 'END'
12873 am__doit:
12874 @echo this is the am__doit target
12875 .PHONY: am__doit
12876 END
12877 # If we don't find an include directive, just comment out the code.
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
12879 $as_echo_n "checking for style of include used by $am_make... " >&6; }
12880 am__include="#"
12881 am__quote=
12882 _am_result=none
12883 # First try GNU make style include.
12884 echo "include confinc" > confmf
12885 # Ignore all kinds of additional output from 'make'.
12886 case `$am_make -s -f confmf 2> /dev/null` in #(
12887 *the\ am__doit\ target*)
12888 am__include=include
12889 am__quote=
12890 _am_result=GNU
12891 ;;
12892 esac
12893 # Now try BSD make style include.
12894 if test "$am__include" = "#"; then
12895 echo '.include "confinc"' > confmf
12896 case `$am_make -s -f confmf 2> /dev/null` in #(
12897 *the\ am__doit\ target*)
12898 am__include=.include
12899 am__quote="\""
12900 _am_result=BSD
12901 ;;
12902 esac
12903 fi
12904
12905
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
12907 $as_echo "$_am_result" >&6; }
12908 rm -f confinc confmf
12909
12910 # Check whether --enable-dependency-tracking was given.
12911 if test "${enable_dependency_tracking+set}" = set; then :
12912 enableval=$enable_dependency_tracking;
12913 fi
12914
12915 if test "x$enable_dependency_tracking" != xno; then
12916 am_depcomp="$ac_aux_dir/depcomp"
12917 AMDEPBACKSLASH='\'
12918 am__nodep='_no'
12919 fi
12920 if test "x$enable_dependency_tracking" != xno; then
12921 AMDEP_TRUE=
12922 AMDEP_FALSE='#'
12923 else
12924 AMDEP_TRUE='#'
12925 AMDEP_FALSE=
12926 fi
12927
12928
12929 # Check whether --enable-silent-rules was given.
12930 if test "${enable_silent_rules+set}" = set; then :
12931 enableval=$enable_silent_rules;
12932 fi
12933
12934 case $enable_silent_rules in # (((
12935 yes) AM_DEFAULT_VERBOSITY=0;;
12936 no) AM_DEFAULT_VERBOSITY=1;;
12937 *) AM_DEFAULT_VERBOSITY=1;;
12938 esac
12939 am_make=${MAKE-make}
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12941 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12942 if ${am_cv_make_support_nested_variables+:} false; then :
12943 $as_echo_n "(cached) " >&6
12944 else
12945 if $as_echo 'TRUE=$(BAR$(V))
12946 BAR0=false
12947 BAR1=true
12948 V=1
12949 am__doit:
12950 @$(TRUE)
12951 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12952 am_cv_make_support_nested_variables=yes
12953 else
12954 am_cv_make_support_nested_variables=no
12955 fi
12956 fi
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12958 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12959 if test $am_cv_make_support_nested_variables = yes; then
12960 AM_V='$(V)'
12961 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12962 else
12963 AM_V=$AM_DEFAULT_VERBOSITY
12964 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12965 fi
12966 AM_BACKSLASH='\'
12967
12968 if test "`cd $srcdir && pwd`" != "`pwd`"; then
12969 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12970 # is not polluted with repeated "-I."
12971 am__isrc=' -I$(srcdir)'
12972 # test to see if srcdir already configured
12973 if test -f $srcdir/config.status; then
12974 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12975 fi
12976 fi
12977
12978 # test whether we have cygpath
12979 if test -z "$CYGPATH_W"; then
12980 if (cygpath --version) >/dev/null 2>/dev/null; then
12981 CYGPATH_W='cygpath -w'
12982 else
12983 CYGPATH_W=echo
12984 fi
12985 fi
12986
12987
12988 # Define the identity of the package.
12989 PACKAGE='sim'
12990 VERSION='0'
12991
12992
12993 cat >>confdefs.h <<_ACEOF
12994 #define PACKAGE "$PACKAGE"
12995 _ACEOF
12996
12997
12998 cat >>confdefs.h <<_ACEOF
12999 #define VERSION "$VERSION"
13000 _ACEOF
13001
13002 # Some tools Automake needs.
13003
13004 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13005
13006
13007 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13008
13009
13010 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13011
13012
13013 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13014
13015
13016 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13017
13018 # For better backward compatibility. To be removed once Automake 1.9.x
13019 # dies out for good. For more background, see:
13020 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13021 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13022 mkdir_p='$(MKDIR_P)'
13023
13024 # We need awk for the "check" target (and possibly the TAP driver). The
13025 # system "awk" is bad on some platforms.
13026 # Always define AMTAR for backward compatibility. Yes, it's still used
13027 # in the wild :-( We should find a proper way to deprecate it ...
13028 AMTAR='$${TAR-tar}'
13029
13030
13031 # We'll loop over all known methods to create a tar archive until one works.
13032 _am_tools='gnutar pax cpio none'
13033
13034 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13035
13036
13037
13038
13039
13040 depcc="$CC" am_compiler_list=
13041
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13043 $as_echo_n "checking dependency style of $depcc... " >&6; }
13044 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13045 $as_echo_n "(cached) " >&6
13046 else
13047 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13048 # We make a subdir and do the tests there. Otherwise we can end up
13049 # making bogus files that we don't know about and never remove. For
13050 # instance it was reported that on HP-UX the gcc test will end up
13051 # making a dummy file named 'D' -- because '-MD' means "put the output
13052 # in D".
13053 rm -rf conftest.dir
13054 mkdir conftest.dir
13055 # Copy depcomp to subdir because otherwise we won't find it if we're
13056 # using a relative directory.
13057 cp "$am_depcomp" conftest.dir
13058 cd conftest.dir
13059 # We will build objects and dependencies in a subdirectory because
13060 # it helps to detect inapplicable dependency modes. For instance
13061 # both Tru64's cc and ICC support -MD to output dependencies as a
13062 # side effect of compilation, but ICC will put the dependencies in
13063 # the current directory while Tru64 will put them in the object
13064 # directory.
13065 mkdir sub
13066
13067 am_cv_CC_dependencies_compiler_type=none
13068 if test "$am_compiler_list" = ""; then
13069 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13070 fi
13071 am__universal=false
13072 case " $depcc " in #(
13073 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13074 esac
13075
13076 for depmode in $am_compiler_list; do
13077 # Setup a source with many dependencies, because some compilers
13078 # like to wrap large dependency lists on column 80 (with \), and
13079 # we should not choose a depcomp mode which is confused by this.
13080 #
13081 # We need to recreate these files for each test, as the compiler may
13082 # overwrite some of them when testing with obscure command lines.
13083 # This happens at least with the AIX C compiler.
13084 : > sub/conftest.c
13085 for i in 1 2 3 4 5 6; do
13086 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13087 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13088 # Solaris 10 /bin/sh.
13089 echo '/* dummy */' > sub/conftst$i.h
13090 done
13091 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13092
13093 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13094 # mode. It turns out that the SunPro C++ compiler does not properly
13095 # handle '-M -o', and we need to detect this. Also, some Intel
13096 # versions had trouble with output in subdirs.
13097 am__obj=sub/conftest.${OBJEXT-o}
13098 am__minus_obj="-o $am__obj"
13099 case $depmode in
13100 gcc)
13101 # This depmode causes a compiler race in universal mode.
13102 test "$am__universal" = false || continue
13103 ;;
13104 nosideeffect)
13105 # After this tag, mechanisms are not by side-effect, so they'll
13106 # only be used when explicitly requested.
13107 if test "x$enable_dependency_tracking" = xyes; then
13108 continue
13109 else
13110 break
13111 fi
13112 ;;
13113 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13114 # This compiler won't grok '-c -o', but also, the minuso test has
13115 # not run yet. These depmodes are late enough in the game, and
13116 # so weak that their functioning should not be impacted.
13117 am__obj=conftest.${OBJEXT-o}
13118 am__minus_obj=
13119 ;;
13120 none) break ;;
13121 esac
13122 if depmode=$depmode \
13123 source=sub/conftest.c object=$am__obj \
13124 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13125 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13126 >/dev/null 2>conftest.err &&
13127 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13128 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13129 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13130 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13131 # icc doesn't choke on unknown options, it will just issue warnings
13132 # or remarks (even with -Werror). So we grep stderr for any message
13133 # that says an option was ignored or not supported.
13134 # When given -MP, icc 7.0 and 7.1 complain thusly:
13135 # icc: Command line warning: ignoring option '-M'; no argument required
13136 # The diagnosis changed in icc 8.0:
13137 # icc: Command line remark: option '-MP' not supported
13138 if (grep 'ignoring option' conftest.err ||
13139 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13140 am_cv_CC_dependencies_compiler_type=$depmode
13141 break
13142 fi
13143 fi
13144 done
13145
13146 cd ..
13147 rm -rf conftest.dir
13148 else
13149 am_cv_CC_dependencies_compiler_type=none
13150 fi
13151
13152 fi
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13154 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13155 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13156
13157 if
13158 test "x$enable_dependency_tracking" != xno \
13159 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13160 am__fastdepCC_TRUE=
13161 am__fastdepCC_FALSE='#'
13162 else
13163 am__fastdepCC_TRUE='#'
13164 am__fastdepCC_FALSE=
13165 fi
13166
13167
13168
13169 # POSIX will say in a future version that running "rm -f" with no argument
13170 # is OK; and we want to be able to make that assumption in our Makefile
13171 # recipes. So use an aggressive probe to check that the usage we want is
13172 # actually supported "in the wild" to an acceptable degree.
13173 # See automake bug#10828.
13174 # To make any issue more visible, cause the running configure to be aborted
13175 # by default if the 'rm' program in use doesn't match our expectations; the
13176 # user can still override this though.
13177 if rm -f && rm -fr && rm -rf; then : OK; else
13178 cat >&2 <<'END'
13179 Oops!
13180
13181 Your 'rm' program seems unable to run without file operands specified
13182 on the command line, even when the '-f' option is present. This is contrary
13183 to the behaviour of most rm programs out there, and not conforming with
13184 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13185
13186 Please tell bug-automake@gnu.org about your system, including the value
13187 of your $PATH and any error possibly output before this message. This
13188 can help us improve future automake versions.
13189
13190 END
13191 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13192 echo 'Configuration will proceed anyway, since you have set the' >&2
13193 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13194 echo >&2
13195 else
13196 cat >&2 <<'END'
13197 Aborting the configuration process, to ensure you take notice of the issue.
13198
13199 You can download and install GNU coreutils to get an 'rm' implementation
13200 that behaves properly: <http://www.gnu.org/software/coreutils/>.
13201
13202 If you want to complete the configuration process using your problematic
13203 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13204 to "yes", and re-run configure.
13205
13206 END
13207 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
13208 fi
13209 fi
13210
13211 # Check whether --enable-silent-rules was given.
13212 if test "${enable_silent_rules+set}" = set; then :
13213 enableval=$enable_silent_rules;
13214 fi
13215
13216 case $enable_silent_rules in # (((
13217 yes) AM_DEFAULT_VERBOSITY=0;;
13218 no) AM_DEFAULT_VERBOSITY=1;;
13219 *) AM_DEFAULT_VERBOSITY=0;;
13220 esac
13221 am_make=${MAKE-make}
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13223 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13224 if ${am_cv_make_support_nested_variables+:} false; then :
13225 $as_echo_n "(cached) " >&6
13226 else
13227 if $as_echo 'TRUE=$(BAR$(V))
13228 BAR0=false
13229 BAR1=true
13230 V=1
13231 am__doit:
13232 @$(TRUE)
13233 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13234 am_cv_make_support_nested_variables=yes
13235 else
13236 am_cv_make_support_nested_variables=no
13237 fi
13238 fi
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13240 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13241 if test $am_cv_make_support_nested_variables = yes; then
13242 AM_V='$(V)'
13243 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13244 else
13245 AM_V=$AM_DEFAULT_VERBOSITY
13246 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13247 fi
13248 AM_BACKSLASH='\'
13249
13250
13251 # If a cpu ever has more than one simulator to choose from, use
13252 # --enable-sim=... to choose.
13253 # Check whether --enable-sim was given.
13254 if test "${enable_sim+set}" = set; then :
13255 enableval=$enable_sim; case "${enableval}" in
13256 yes | no) ;;
13257 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
13258 esac
13259 fi
13260
13261
13262 # Check whether --enable-example-sims was given.
13263 if test "${enable_example_sims+set}" = set; then :
13264 enableval=$enable_example_sims;
13265 fi
13266
13267
13268 # Check whether --enable-targets was given.
13269 if test "${enable_targets+set}" = set; then :
13270 enableval=$enable_targets; case "${enableval}" in
13271 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
13272 ;;
13273 no) enable_targets= ;;
13274 *) enable_targets=$enableval ;;
13275 esac
13276 fi
13277
13278
13279 SIM_PRIMARY_TARGET=
13280
13281
13282
13283
13284
13285 if test "${enable_sim}" != no; then
13286 sim_igen=no
13287 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
13288 do
13289 case "${targ}" in
13290 all|aarch64*-*-*)
13291 if test "${targ}" = "${target}"; then
13292 SIM_PRIMARY_TARGET=aarch64
13293 fi
13294
13295
13296 subdirs="$subdirs aarch64"
13297
13298 ac_config_commands="$ac_config_commands depdir-aarch64"
13299
13300
13301
13302 ;;
13303 esac
13304
13305 case "${targ}" in
13306 all|arm*-*-*)
13307 if test "${targ}" = "${target}"; then
13308 SIM_PRIMARY_TARGET=arm
13309 fi
13310 subdirs="$subdirs arm"
13311
13312 ac_config_commands="$ac_config_commands depdir-arm"
13313
13314
13315
13316 ;;
13317 esac
13318
13319 case "${targ}" in
13320 all|avr*-*-*)
13321 if test "${targ}" = "${target}"; then
13322 SIM_PRIMARY_TARGET=avr
13323 fi
13324 subdirs="$subdirs avr"
13325
13326 ac_config_commands="$ac_config_commands depdir-avr"
13327
13328
13329
13330 ;;
13331 esac
13332
13333 case "${targ}" in
13334 all|bfin-*-*)
13335 if test "${targ}" = "${target}"; then
13336 SIM_PRIMARY_TARGET=bfin
13337 fi
13338 subdirs="$subdirs bfin"
13339
13340 ac_config_commands="$ac_config_commands depdir-bfin"
13341
13342
13343
13344 ;;
13345 esac
13346
13347 case "${targ}" in
13348 all|bpf-*-*)
13349 if test "${targ}" = "${target}"; then
13350 SIM_PRIMARY_TARGET=bpf
13351 fi
13352 subdirs="$subdirs bpf"
13353
13354 ac_config_commands="$ac_config_commands depdir-bpf"
13355
13356
13357
13358 ;;
13359 esac
13360
13361 case "${targ}" in
13362 all|cr16*-*-*)
13363 if test "${targ}" = "${target}"; then
13364 SIM_PRIMARY_TARGET=cr16
13365 fi
13366 subdirs="$subdirs cr16"
13367
13368 ac_config_commands="$ac_config_commands depdir-cr16"
13369
13370
13371
13372 ;;
13373 esac
13374
13375 case "${targ}" in
13376 all|cris-*-* | crisv32-*-*)
13377 if test "${targ}" = "${target}"; then
13378 SIM_PRIMARY_TARGET=cris
13379 fi
13380 subdirs="$subdirs cris"
13381
13382 ac_config_commands="$ac_config_commands depdir-cris"
13383
13384
13385
13386 ;;
13387 esac
13388
13389 case "${targ}" in
13390 all|d10v-*-*)
13391 if test "${targ}" = "${target}"; then
13392 SIM_PRIMARY_TARGET=d10v
13393 fi
13394 subdirs="$subdirs d10v"
13395
13396 ac_config_commands="$ac_config_commands depdir-d10v"
13397
13398
13399
13400 ;;
13401 esac
13402
13403 case "${targ}" in
13404 all|frv-*-*)
13405 if test "${targ}" = "${target}"; then
13406 SIM_PRIMARY_TARGET=frv
13407 fi
13408 subdirs="$subdirs frv"
13409
13410 ac_config_commands="$ac_config_commands depdir-frv"
13411
13412
13413
13414 ;;
13415 esac
13416
13417 case "${targ}" in
13418 all|h8300*-*-*)
13419 if test "${targ}" = "${target}"; then
13420 SIM_PRIMARY_TARGET=h8300
13421 fi
13422 subdirs="$subdirs h8300"
13423
13424 ac_config_commands="$ac_config_commands depdir-h8300"
13425
13426
13427
13428 ;;
13429 esac
13430
13431 case "${targ}" in
13432 all|iq2000-*-*)
13433 if test "${targ}" = "${target}"; then
13434 SIM_PRIMARY_TARGET=iq2000
13435 fi
13436 subdirs="$subdirs iq2000"
13437
13438 ac_config_commands="$ac_config_commands depdir-iq2000"
13439
13440
13441
13442 ;;
13443 esac
13444
13445 case "${targ}" in
13446 all|lm32-*-*)
13447 if test "${targ}" = "${target}"; then
13448 SIM_PRIMARY_TARGET=lm32
13449 fi
13450 subdirs="$subdirs lm32"
13451
13452 ac_config_commands="$ac_config_commands depdir-lm32"
13453
13454
13455
13456 ;;
13457 esac
13458
13459 case "${targ}" in
13460 all|m32c-*-*)
13461 if test "${targ}" = "${target}"; then
13462 SIM_PRIMARY_TARGET=m32c
13463 fi
13464 subdirs="$subdirs m32c"
13465
13466 ac_config_commands="$ac_config_commands depdir-m32c"
13467
13468
13469
13470 ;;
13471 esac
13472
13473 case "${targ}" in
13474 all|m32r-*-*)
13475 if test "${targ}" = "${target}"; then
13476 SIM_PRIMARY_TARGET=m32r
13477 fi
13478 subdirs="$subdirs m32r"
13479
13480 ac_config_commands="$ac_config_commands depdir-m32r"
13481
13482
13483
13484 ;;
13485 esac
13486
13487 case "${targ}" in
13488 all|m68hc11-*-*|m6811-*-*)
13489 if test "${targ}" = "${target}"; then
13490 SIM_PRIMARY_TARGET=m68hc11
13491 fi
13492 subdirs="$subdirs m68hc11"
13493
13494 ac_config_commands="$ac_config_commands depdir-m68hc11"
13495
13496
13497
13498 ;;
13499 esac
13500
13501 case "${targ}" in
13502 all|mcore-*-*)
13503 if test "${targ}" = "${target}"; then
13504 SIM_PRIMARY_TARGET=mcore
13505 fi
13506 subdirs="$subdirs mcore"
13507
13508 ac_config_commands="$ac_config_commands depdir-mcore"
13509
13510
13511
13512 ;;
13513 esac
13514
13515 case "${targ}" in
13516 all|microblaze-*-*)
13517 if test "${targ}" = "${target}"; then
13518 SIM_PRIMARY_TARGET=microblaze
13519 fi
13520 subdirs="$subdirs microblaze"
13521
13522 ac_config_commands="$ac_config_commands depdir-microblaze"
13523
13524
13525
13526 ;;
13527 esac
13528
13529 case "${targ}" in
13530 all|mips*-*-*)
13531 if test "${targ}" = "${target}"; then
13532 SIM_PRIMARY_TARGET=mips
13533 fi
13534 subdirs="$subdirs mips"
13535
13536 ac_config_commands="$ac_config_commands depdir-mips"
13537
13538
13539 sim_igen=yes
13540 ;;
13541 esac
13542
13543 case "${targ}" in
13544 all|mn10300*-*-*)
13545 if test "${targ}" = "${target}"; then
13546 SIM_PRIMARY_TARGET=mn10300
13547 fi
13548 subdirs="$subdirs mn10300"
13549
13550 ac_config_commands="$ac_config_commands depdir-mn10300"
13551
13552
13553 sim_igen=yes
13554 ;;
13555 esac
13556
13557 case "${targ}" in
13558 all|moxie-*-*)
13559 if test "${targ}" = "${target}"; then
13560 SIM_PRIMARY_TARGET=moxie
13561 fi
13562 subdirs="$subdirs moxie"
13563
13564 ac_config_commands="$ac_config_commands depdir-moxie"
13565
13566
13567
13568 ;;
13569 esac
13570
13571 case "${targ}" in
13572 all|msp430*-*-*)
13573 if test "${targ}" = "${target}"; then
13574 SIM_PRIMARY_TARGET=msp430
13575 fi
13576 subdirs="$subdirs msp430"
13577
13578 ac_config_commands="$ac_config_commands depdir-msp430"
13579
13580
13581
13582 ;;
13583 esac
13584
13585 case "${targ}" in
13586 all|or1k-*-* | or1knd-*-*)
13587 if test "${targ}" = "${target}"; then
13588 SIM_PRIMARY_TARGET=or1k
13589 fi
13590 subdirs="$subdirs or1k"
13591
13592 ac_config_commands="$ac_config_commands depdir-or1k"
13593
13594
13595
13596 ;;
13597 esac
13598
13599 case "${targ}" in
13600 all|pru*-*-*)
13601 if test "${targ}" = "${target}"; then
13602 SIM_PRIMARY_TARGET=pru
13603 fi
13604 subdirs="$subdirs pru"
13605
13606 ac_config_commands="$ac_config_commands depdir-pru"
13607
13608
13609
13610 ;;
13611 esac
13612
13613 case "${targ}" in
13614 all|riscv*-*-*)
13615 if test "${targ}" = "${target}"; then
13616 SIM_PRIMARY_TARGET=riscv
13617 fi
13618 subdirs="$subdirs riscv"
13619
13620 ac_config_commands="$ac_config_commands depdir-riscv"
13621
13622
13623
13624 ;;
13625 esac
13626
13627 case "${targ}" in
13628 all|rl78-*-*)
13629 if test "${targ}" = "${target}"; then
13630 SIM_PRIMARY_TARGET=rl78
13631 fi
13632 subdirs="$subdirs rl78"
13633
13634 ac_config_commands="$ac_config_commands depdir-rl78"
13635
13636
13637
13638 ;;
13639 esac
13640
13641 case "${targ}" in
13642 all|rx-*-*)
13643 if test "${targ}" = "${target}"; then
13644 SIM_PRIMARY_TARGET=rx
13645 fi
13646 subdirs="$subdirs rx"
13647
13648 ac_config_commands="$ac_config_commands depdir-rx"
13649
13650
13651
13652 ;;
13653 esac
13654
13655 case "${targ}" in
13656 all|sh*-*-*)
13657 if test "${targ}" = "${target}"; then
13658 SIM_PRIMARY_TARGET=sh
13659 fi
13660 subdirs="$subdirs sh"
13661
13662 ac_config_commands="$ac_config_commands depdir-sh"
13663
13664
13665
13666 ;;
13667 esac
13668
13669 case "${targ}" in
13670 all|sparc-*-rtems*|sparc-*-elf*)
13671 if test "${targ}" = "${target}"; then
13672 SIM_PRIMARY_TARGET=erc32
13673 fi
13674 subdirs="$subdirs erc32"
13675
13676 ac_config_commands="$ac_config_commands depdir-erc32"
13677
13678
13679
13680 ;;
13681 esac
13682
13683 case "${targ}" in
13684 all|powerpc*-*-*)
13685 if test "${targ}" = "${target}"; then
13686 SIM_PRIMARY_TARGET=ppc
13687 fi
13688 subdirs="$subdirs ppc"
13689
13690 ac_config_commands="$ac_config_commands depdir-ppc"
13691
13692
13693
13694 ;;
13695 esac
13696
13697 case "${targ}" in
13698 all|ft32-*-*)
13699 if test "${targ}" = "${target}"; then
13700 SIM_PRIMARY_TARGET=ft32
13701 fi
13702 subdirs="$subdirs ft32"
13703
13704 ac_config_commands="$ac_config_commands depdir-ft32"
13705
13706
13707
13708 ;;
13709 esac
13710
13711 case "${targ}" in
13712 all|v850*-*-*)
13713 if test "${targ}" = "${target}"; then
13714 SIM_PRIMARY_TARGET=v850
13715 fi
13716 subdirs="$subdirs v850"
13717
13718 ac_config_commands="$ac_config_commands depdir-v850"
13719
13720
13721 sim_igen=yes
13722 ;;
13723 esac
13724
13725 done
13726
13727 if test "x${enable_example_sims}" = xyes; then
13728 subdirs="$subdirs example-synacor"
13729
13730 ac_config_commands="$ac_config_commands depdir-example-synacor"
13731
13732
13733 fi
13734 fi
13735 if test "$sim_igen" = "yes"; then
13736 SIM_ENABLE_IGEN_TRUE=
13737 SIM_ENABLE_IGEN_FALSE='#'
13738 else
13739 SIM_ENABLE_IGEN_TRUE='#'
13740 SIM_ENABLE_IGEN_FALSE=
13741 fi
13742
13743
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
13745 $as_echo_n "checking whether to force sim alignment... " >&6; }
13746 sim_alignment=
13747 # Check whether --enable-sim-alignment was given.
13748 if test "${enable_sim_alignment+set}" = set; then :
13749 enableval=$enable_sim_alignment; case "${enableval}" in
13750 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
13751 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
13752 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
13753 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
13754 esac
13755 fi
13756
13757 cat >>confdefs.h <<_ACEOF
13758 #define WITH_ALIGNMENT ${sim_alignment:-0}
13759 _ACEOF
13760
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13762 $as_echo "${sim_alignment:-no}" >&6; }
13763
13764
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
13766 $as_echo_n "checking whether to enable sim asserts... " >&6; }
13767 sim_assert="1"
13768 # Check whether --enable-sim-assert was given.
13769 if test "${enable_sim_assert+set}" = set; then :
13770 enableval=$enable_sim_assert; case "${enableval}" in
13771 yes) sim_assert="1";;
13772 no) sim_assert="0";;
13773 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
13774 esac
13775 fi
13776
13777 cat >>confdefs.h <<_ACEOF
13778 #define WITH_ASSERT $sim_assert
13779 _ACEOF
13780
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
13782 $as_echo "$sim_assert" >&6; }
13783
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
13785 $as_echo_n "checking for sim debug setting... " >&6; }
13786 sim_debug="0"
13787 # Check whether --enable-sim-debug was given.
13788 if test "${enable_sim_debug+set}" = set; then :
13789 enableval=$enable_sim_debug; case "${enableval}" in
13790 yes) sim_debug="7";;
13791 no) sim_debug="0";;
13792 *) sim_debug="($enableval)";;
13793 esac
13794 fi
13795 if test "$sim_debug" != "0"; then
13796
13797 cat >>confdefs.h <<_ACEOF
13798 #define DEBUG $sim_debug
13799 _ACEOF
13800
13801 fi
13802
13803 cat >>confdefs.h <<_ACEOF
13804 #define WITH_DEBUG $sim_debug
13805 _ACEOF
13806
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
13808 $as_echo "$sim_debug" >&6; }
13809
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
13811 $as_echo_n "checking whether to force sim endianness... " >&6; }
13812 sim_endian=
13813 # Check whether --enable-sim-endian was given.
13814 if test "${enable_sim_endian+set}" = set; then :
13815 enableval=$enable_sim_endian; case "${enableval}" in
13816 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
13817 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
13818 yes | no) ;;
13819 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
13820 esac
13821 fi
13822
13823 cat >>confdefs.h <<_ACEOF
13824 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
13825 _ACEOF
13826
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13828 $as_echo "${sim_alignment:-no}" >&6; }
13829
13830
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
13832 $as_echo_n "checking default sim environment setting... " >&6; }
13833 sim_environment="ALL_ENVIRONMENT"
13834 # Check whether --enable-sim-environment was given.
13835 if test "${enable_sim_environment+set}" = set; then :
13836 enableval=$enable_sim_environment; case "${enableval}" in
13837 all | ALL) sim_environment="ALL_ENVIRONMENT";;
13838 user | USER) sim_environment="USER_ENVIRONMENT";;
13839 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
13840 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
13841 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
13842 esac
13843 fi
13844
13845 cat >>confdefs.h <<_ACEOF
13846 #define WITH_ENVIRONMENT $sim_environment
13847 _ACEOF
13848
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
13850 $as_echo "$sim_environment" >&6; }
13851
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
13853 $as_echo_n "checking sim inline settings... " >&6; }
13854 sim_inline="-DDEFAULT_INLINE=0"
13855 # Check whether --enable-sim-inline was given.
13856 if test "${enable_sim_inline+set}" = set; then :
13857 enableval=$enable_sim_inline; sim_inline=""
13858 case "$enableval" in
13859 no) sim_inline="-DDEFAULT_INLINE=0";;
13860 0) sim_inline="-DDEFAULT_INLINE=0";;
13861 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
13862 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
13863 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13864 new_flag=""
13865 case "$x" in
13866 *_INLINE=*) new_flag="-D$x";;
13867 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
13868 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
13869 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
13870 esac
13871 if test x"$sim_inline" = x""; then
13872 sim_inline="$new_flag"
13873 else
13874 sim_inline="$sim_inline $new_flag"
13875 fi
13876 done;;
13877 esac
13878
13879 fi
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
13881 $as_echo "$sim_inline" >&6; }
13882 SIM_INLINE=$sim_inline
13883
13884
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
13886 $as_echo_n "checking for sim profile settings... " >&6; }
13887 profile="1"
13888 sim_profile="-1"
13889 # Check whether --enable-sim-profile was given.
13890 if test "${enable_sim_profile+set}" = set; then :
13891 enableval=$enable_sim_profile; case "${enableval}" in
13892 yes) profile="1" sim_profile="-1";;
13893 no) profile="0" sim_profile="0";;
13894 [-0-9]*)
13895 profile="(${enableval})" sim_profile="(${enableval})";;
13896 [a-z]*)
13897 profile="1"
13898 sim_profile=""
13899 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13900 if test x"$sim_profile" = x; then
13901 sim_profile="(PROFILE_$x"
13902 else
13903 sim_profile="${sim_profile}|PROFILE_$x"
13904 fi
13905 done
13906 sim_profile="$sim_profile)" ;;
13907 esac
13908 fi
13909
13910 cat >>confdefs.h <<_ACEOF
13911 #define PROFILE $profile
13912 _ACEOF
13913
13914
13915 cat >>confdefs.h <<_ACEOF
13916 #define WITH_PROFILE $sim_profile
13917 _ACEOF
13918
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
13920 $as_echo "$sim_profile" >&6; }
13921
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
13923 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
13924 sim_stdio="0"
13925 # Check whether --enable-sim-stdio was given.
13926 if test "${enable_sim_stdio+set}" = set; then :
13927 enableval=$enable_sim_stdio; case "${enableval}" in
13928 yes) sim_stdio="DO_USE_STDIO";;
13929 no) sim_stdio="DONT_USE_STDIO";;
13930 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
13931 esac
13932 fi
13933
13934 cat >>confdefs.h <<_ACEOF
13935 #define WITH_STDIO $sim_stdio
13936 _ACEOF
13937
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
13939 $as_echo "$sim_stdio" >&6; }
13940
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
13942 $as_echo_n "checking for sim trace settings... " >&6; }
13943 sim_trace="~TRACE_debug"
13944 # Check whether --enable-sim-trace was given.
13945 if test "${enable_sim_trace+set}" = set; then :
13946 enableval=$enable_sim_trace; case "${enableval}" in
13947 yes) sim_trace="-1";;
13948 no) sim_trace="0";;
13949 [-0-9]*)
13950 sim_trace="'(${enableval})'";;
13951 [[:lower:]]*)
13952 sim_trace=""
13953 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13954 if test x"$sim_trace" = x; then
13955 sim_trace="(TRACE_$x"
13956 else
13957 sim_trace="${sim_trace}|TRACE_$x"
13958 fi
13959 done
13960 sim_trace="$sim_trace)" ;;
13961 esac
13962 fi
13963
13964 cat >>confdefs.h <<_ACEOF
13965 #define WITH_TRACE $sim_trace
13966 _ACEOF
13967
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
13969 $as_echo "$sim_trace" >&6; }
13970
13971
13972 # Check whether --enable-werror was given.
13973 if test "${enable_werror+set}" = set; then :
13974 enableval=$enable_werror; case "${enableval}" in
13975 yes | y) ERROR_ON_WARNING="yes" ;;
13976 no | n) ERROR_ON_WARNING="no" ;;
13977 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13978 esac
13979 fi
13980
13981
13982 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13983 ERROR_ON_WARNING=yes
13984 fi
13985
13986 WERROR_CFLAGS=""
13987 if test "${ERROR_ON_WARNING}" = yes ; then
13988 WERROR_CFLAGS="-Werror"
13989 fi
13990
13991 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13992 -Wpointer-sign \
13993 -Wno-unused -Wunused-value -Wunused-function \
13994 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
13995 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
13996 -Wold-style-declaration -Wold-style-definition"
13997
13998 # Enable -Wno-format by default when using gcc on mingw since many
13999 # GCC versions complain about %I64.
14000 case "${host}" in
14001 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14002 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
14003 esac
14004
14005 # Check whether --enable-build-warnings was given.
14006 if test "${enable_build_warnings+set}" = set; then :
14007 enableval=$enable_build_warnings; case "${enableval}" in
14008 yes) ;;
14009 no) build_warnings="-w";;
14010 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14011 build_warnings="${build_warnings} ${t}";;
14012 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14013 build_warnings="${t} ${build_warnings}";;
14014 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14015 esac
14016 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14017 echo "Setting compiler warning flags = $build_warnings" 6>&1
14018 fi
14019 fi
14020 # Check whether --enable-sim-build-warnings was given.
14021 if test "${enable_sim_build_warnings+set}" = set; then :
14022 enableval=$enable_sim_build_warnings; case "${enableval}" in
14023 yes) ;;
14024 no) build_warnings="-w";;
14025 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14026 build_warnings="${build_warnings} ${t}";;
14027 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14028 build_warnings="${t} ${build_warnings}";;
14029 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14030 esac
14031 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14032 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14033 fi
14034 fi
14035 WARN_CFLAGS=""
14036 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14037 then
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14039 $as_echo_n "checking compiler warning flags... " >&6; }
14040 # Separate out the -Werror flag as some files just cannot be
14041 # compiled with it enabled.
14042 for w in ${build_warnings}; do
14043 case $w in
14044 -Werr*) WERROR_CFLAGS=-Werror ;;
14045 *) # Check that GCC accepts it
14046 saved_CFLAGS="$CFLAGS"
14047 CFLAGS="$CFLAGS -Werror $w"
14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h. */
14050
14051 int
14052 main ()
14053 {
14054
14055 ;
14056 return 0;
14057 }
14058 _ACEOF
14059 if ac_fn_c_try_compile "$LINENO"; then :
14060 WARN_CFLAGS="${WARN_CFLAGS} $w"
14061 fi
14062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14063 CFLAGS="$saved_CFLAGS"
14064 esac
14065 done
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14067 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14068 fi
14069
14070
14071 ac_config_files="$ac_config_files arch-subdir.mk Makefile"
14072
14073 cat >confcache <<\_ACEOF
14074 # This file is a shell script that caches the results of configure
14075 # tests run on this system so they can be shared between configure
14076 # scripts and configure runs, see configure's option --config-cache.
14077 # It is not useful on other systems. If it contains results you don't
14078 # want to keep, you may remove or edit it.
14079 #
14080 # config.status only pays attention to the cache file if you give it
14081 # the --recheck option to rerun configure.
14082 #
14083 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14084 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14085 # following values.
14086
14087 _ACEOF
14088
14089 # The following way of writing the cache mishandles newlines in values,
14090 # but we know of no workaround that is simple, portable, and efficient.
14091 # So, we kill variables containing newlines.
14092 # Ultrix sh set writes to stderr and can't be redirected directly,
14093 # and sets the high bit in the cache file unless we assign to the vars.
14094 (
14095 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14096 eval ac_val=\$$ac_var
14097 case $ac_val in #(
14098 *${as_nl}*)
14099 case $ac_var in #(
14100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14102 esac
14103 case $ac_var in #(
14104 _ | IFS | as_nl) ;; #(
14105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14106 *) { eval $ac_var=; unset $ac_var;} ;;
14107 esac ;;
14108 esac
14109 done
14110
14111 (set) 2>&1 |
14112 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14113 *${as_nl}ac_space=\ *)
14114 # `set' does not quote correctly, so add quotes: double-quote
14115 # substitution turns \\\\ into \\, and sed turns \\ into \.
14116 sed -n \
14117 "s/'/'\\\\''/g;
14118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14119 ;; #(
14120 *)
14121 # `set' quotes correctly as required by POSIX, so do not add quotes.
14122 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14123 ;;
14124 esac |
14125 sort
14126 ) |
14127 sed '
14128 /^ac_cv_env_/b end
14129 t clear
14130 :clear
14131 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14132 t end
14133 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14134 :end' >>confcache
14135 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14136 if test -w "$cache_file"; then
14137 if test "x$cache_file" != "x/dev/null"; then
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14139 $as_echo "$as_me: updating cache $cache_file" >&6;}
14140 if test ! -f "$cache_file" || test -h "$cache_file"; then
14141 cat confcache >"$cache_file"
14142 else
14143 case $cache_file in #(
14144 */* | ?:*)
14145 mv -f confcache "$cache_file"$$ &&
14146 mv -f "$cache_file"$$ "$cache_file" ;; #(
14147 *)
14148 mv -f confcache "$cache_file" ;;
14149 esac
14150 fi
14151 fi
14152 else
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14154 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14155 fi
14156 fi
14157 rm -f confcache
14158
14159 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14160 # Let make expand exec_prefix.
14161 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14162
14163 DEFS=-DHAVE_CONFIG_H
14164
14165 ac_libobjs=
14166 ac_ltlibobjs=
14167 U=
14168 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14169 # 1. Remove the extension, and $U if already installed.
14170 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14171 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14172 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14173 # will be set to the directory where LIBOBJS objects are built.
14174 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14175 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14176 done
14177 LIBOBJS=$ac_libobjs
14178
14179 LTLIBOBJS=$ac_ltlibobjs
14180
14181
14182
14183 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
14184 as_fn_error $? "conditional \"PLUGINS\" was never defined.
14185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14186 fi
14187 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14188 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14190 fi
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14192 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14193 if test -n "$am_sleep_pid"; then
14194 # Hide warnings about reused PIDs.
14195 wait $am_sleep_pid 2>/dev/null
14196 fi
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14198 $as_echo "done" >&6; }
14199 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14200 as_fn_error $? "conditional \"AMDEP\" was never defined.
14201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14202 fi
14203 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14204 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14206 fi
14207 if test -n "$EXEEXT"; then
14208 am__EXEEXT_TRUE=
14209 am__EXEEXT_FALSE='#'
14210 else
14211 am__EXEEXT_TRUE='#'
14212 am__EXEEXT_FALSE=
14213 fi
14214
14215 if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
14216 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
14217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14218 fi
14219
14220 : "${CONFIG_STATUS=./config.status}"
14221 ac_write_fail=0
14222 ac_clean_files_save=$ac_clean_files
14223 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14225 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14226 as_write_fail=0
14227 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14228 #! $SHELL
14229 # Generated by $as_me.
14230 # Run this file to recreate the current configuration.
14231 # Compiler output produced by configure, useful for debugging
14232 # configure, is in config.log if it exists.
14233
14234 debug=false
14235 ac_cs_recheck=false
14236 ac_cs_silent=false
14237
14238 SHELL=\${CONFIG_SHELL-$SHELL}
14239 export SHELL
14240 _ASEOF
14241 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14242 ## -------------------- ##
14243 ## M4sh Initialization. ##
14244 ## -------------------- ##
14245
14246 # Be more Bourne compatible
14247 DUALCASE=1; export DUALCASE # for MKS sh
14248 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14249 emulate sh
14250 NULLCMD=:
14251 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14252 # is contrary to our usage. Disable this feature.
14253 alias -g '${1+"$@"}'='"$@"'
14254 setopt NO_GLOB_SUBST
14255 else
14256 case `(set -o) 2>/dev/null` in #(
14257 *posix*) :
14258 set -o posix ;; #(
14259 *) :
14260 ;;
14261 esac
14262 fi
14263
14264
14265 as_nl='
14266 '
14267 export as_nl
14268 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14269 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14270 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14271 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14272 # Prefer a ksh shell builtin over an external printf program on Solaris,
14273 # but without wasting forks for bash or zsh.
14274 if test -z "$BASH_VERSION$ZSH_VERSION" \
14275 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14276 as_echo='print -r --'
14277 as_echo_n='print -rn --'
14278 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14279 as_echo='printf %s\n'
14280 as_echo_n='printf %s'
14281 else
14282 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14283 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14284 as_echo_n='/usr/ucb/echo -n'
14285 else
14286 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14287 as_echo_n_body='eval
14288 arg=$1;
14289 case $arg in #(
14290 *"$as_nl"*)
14291 expr "X$arg" : "X\\(.*\\)$as_nl";
14292 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14293 esac;
14294 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14295 '
14296 export as_echo_n_body
14297 as_echo_n='sh -c $as_echo_n_body as_echo'
14298 fi
14299 export as_echo_body
14300 as_echo='sh -c $as_echo_body as_echo'
14301 fi
14302
14303 # The user is always right.
14304 if test "${PATH_SEPARATOR+set}" != set; then
14305 PATH_SEPARATOR=:
14306 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14307 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14308 PATH_SEPARATOR=';'
14309 }
14310 fi
14311
14312
14313 # IFS
14314 # We need space, tab and new line, in precisely that order. Quoting is
14315 # there to prevent editors from complaining about space-tab.
14316 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14317 # splitting by setting IFS to empty value.)
14318 IFS=" "" $as_nl"
14319
14320 # Find who we are. Look in the path if we contain no directory separator.
14321 as_myself=
14322 case $0 in #((
14323 *[\\/]* ) as_myself=$0 ;;
14324 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14325 for as_dir in $PATH
14326 do
14327 IFS=$as_save_IFS
14328 test -z "$as_dir" && as_dir=.
14329 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14330 done
14331 IFS=$as_save_IFS
14332
14333 ;;
14334 esac
14335 # We did not find ourselves, most probably we were run as `sh COMMAND'
14336 # in which case we are not to be found in the path.
14337 if test "x$as_myself" = x; then
14338 as_myself=$0
14339 fi
14340 if test ! -f "$as_myself"; then
14341 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14342 exit 1
14343 fi
14344
14345 # Unset variables that we do not need and which cause bugs (e.g. in
14346 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14347 # suppresses any "Segmentation fault" message there. '((' could
14348 # trigger a bug in pdksh 5.2.14.
14349 for as_var in BASH_ENV ENV MAIL MAILPATH
14350 do eval test x\${$as_var+set} = xset \
14351 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14352 done
14353 PS1='$ '
14354 PS2='> '
14355 PS4='+ '
14356
14357 # NLS nuisances.
14358 LC_ALL=C
14359 export LC_ALL
14360 LANGUAGE=C
14361 export LANGUAGE
14362
14363 # CDPATH.
14364 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14365
14366
14367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14368 # ----------------------------------------
14369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14371 # script with STATUS, using 1 if that was 0.
14372 as_fn_error ()
14373 {
14374 as_status=$1; test $as_status -eq 0 && as_status=1
14375 if test "$4"; then
14376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14378 fi
14379 $as_echo "$as_me: error: $2" >&2
14380 as_fn_exit $as_status
14381 } # as_fn_error
14382
14383
14384 # as_fn_set_status STATUS
14385 # -----------------------
14386 # Set $? to STATUS, without forking.
14387 as_fn_set_status ()
14388 {
14389 return $1
14390 } # as_fn_set_status
14391
14392 # as_fn_exit STATUS
14393 # -----------------
14394 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14395 as_fn_exit ()
14396 {
14397 set +e
14398 as_fn_set_status $1
14399 exit $1
14400 } # as_fn_exit
14401
14402 # as_fn_unset VAR
14403 # ---------------
14404 # Portably unset VAR.
14405 as_fn_unset ()
14406 {
14407 { eval $1=; unset $1;}
14408 }
14409 as_unset=as_fn_unset
14410 # as_fn_append VAR VALUE
14411 # ----------------------
14412 # Append the text in VALUE to the end of the definition contained in VAR. Take
14413 # advantage of any shell optimizations that allow amortized linear growth over
14414 # repeated appends, instead of the typical quadratic growth present in naive
14415 # implementations.
14416 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14417 eval 'as_fn_append ()
14418 {
14419 eval $1+=\$2
14420 }'
14421 else
14422 as_fn_append ()
14423 {
14424 eval $1=\$$1\$2
14425 }
14426 fi # as_fn_append
14427
14428 # as_fn_arith ARG...
14429 # ------------------
14430 # Perform arithmetic evaluation on the ARGs, and store the result in the
14431 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14432 # must be portable across $(()) and expr.
14433 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14434 eval 'as_fn_arith ()
14435 {
14436 as_val=$(( $* ))
14437 }'
14438 else
14439 as_fn_arith ()
14440 {
14441 as_val=`expr "$@" || test $? -eq 1`
14442 }
14443 fi # as_fn_arith
14444
14445
14446 if expr a : '\(a\)' >/dev/null 2>&1 &&
14447 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14448 as_expr=expr
14449 else
14450 as_expr=false
14451 fi
14452
14453 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14454 as_basename=basename
14455 else
14456 as_basename=false
14457 fi
14458
14459 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14460 as_dirname=dirname
14461 else
14462 as_dirname=false
14463 fi
14464
14465 as_me=`$as_basename -- "$0" ||
14466 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14467 X"$0" : 'X\(//\)$' \| \
14468 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14469 $as_echo X/"$0" |
14470 sed '/^.*\/\([^/][^/]*\)\/*$/{
14471 s//\1/
14472 q
14473 }
14474 /^X\/\(\/\/\)$/{
14475 s//\1/
14476 q
14477 }
14478 /^X\/\(\/\).*/{
14479 s//\1/
14480 q
14481 }
14482 s/.*/./; q'`
14483
14484 # Avoid depending upon Character Ranges.
14485 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14486 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14487 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14488 as_cr_digits='0123456789'
14489 as_cr_alnum=$as_cr_Letters$as_cr_digits
14490
14491 ECHO_C= ECHO_N= ECHO_T=
14492 case `echo -n x` in #(((((
14493 -n*)
14494 case `echo 'xy\c'` in
14495 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14496 xy) ECHO_C='\c';;
14497 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14498 ECHO_T=' ';;
14499 esac;;
14500 *)
14501 ECHO_N='-n';;
14502 esac
14503
14504 rm -f conf$$ conf$$.exe conf$$.file
14505 if test -d conf$$.dir; then
14506 rm -f conf$$.dir/conf$$.file
14507 else
14508 rm -f conf$$.dir
14509 mkdir conf$$.dir 2>/dev/null
14510 fi
14511 if (echo >conf$$.file) 2>/dev/null; then
14512 if ln -s conf$$.file conf$$ 2>/dev/null; then
14513 as_ln_s='ln -s'
14514 # ... but there are two gotchas:
14515 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14516 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14517 # In both cases, we have to default to `cp -pR'.
14518 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14519 as_ln_s='cp -pR'
14520 elif ln conf$$.file conf$$ 2>/dev/null; then
14521 as_ln_s=ln
14522 else
14523 as_ln_s='cp -pR'
14524 fi
14525 else
14526 as_ln_s='cp -pR'
14527 fi
14528 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14529 rmdir conf$$.dir 2>/dev/null
14530
14531
14532 # as_fn_mkdir_p
14533 # -------------
14534 # Create "$as_dir" as a directory, including parents if necessary.
14535 as_fn_mkdir_p ()
14536 {
14537
14538 case $as_dir in #(
14539 -*) as_dir=./$as_dir;;
14540 esac
14541 test -d "$as_dir" || eval $as_mkdir_p || {
14542 as_dirs=
14543 while :; do
14544 case $as_dir in #(
14545 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14546 *) as_qdir=$as_dir;;
14547 esac
14548 as_dirs="'$as_qdir' $as_dirs"
14549 as_dir=`$as_dirname -- "$as_dir" ||
14550 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14551 X"$as_dir" : 'X\(//\)[^/]' \| \
14552 X"$as_dir" : 'X\(//\)$' \| \
14553 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14554 $as_echo X"$as_dir" |
14555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14556 s//\1/
14557 q
14558 }
14559 /^X\(\/\/\)[^/].*/{
14560 s//\1/
14561 q
14562 }
14563 /^X\(\/\/\)$/{
14564 s//\1/
14565 q
14566 }
14567 /^X\(\/\).*/{
14568 s//\1/
14569 q
14570 }
14571 s/.*/./; q'`
14572 test -d "$as_dir" && break
14573 done
14574 test -z "$as_dirs" || eval "mkdir $as_dirs"
14575 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14576
14577
14578 } # as_fn_mkdir_p
14579 if mkdir -p . 2>/dev/null; then
14580 as_mkdir_p='mkdir -p "$as_dir"'
14581 else
14582 test -d ./-p && rmdir ./-p
14583 as_mkdir_p=false
14584 fi
14585
14586
14587 # as_fn_executable_p FILE
14588 # -----------------------
14589 # Test if FILE is an executable regular file.
14590 as_fn_executable_p ()
14591 {
14592 test -f "$1" && test -x "$1"
14593 } # as_fn_executable_p
14594 as_test_x='test -x'
14595 as_executable_p=as_fn_executable_p
14596
14597 # Sed expression to map a string onto a valid CPP name.
14598 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14599
14600 # Sed expression to map a string onto a valid variable name.
14601 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14602
14603
14604 exec 6>&1
14605 ## ----------------------------------- ##
14606 ## Main body of $CONFIG_STATUS script. ##
14607 ## ----------------------------------- ##
14608 _ASEOF
14609 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14610
14611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14612 # Save the log message, to keep $0 and so on meaningful, and to
14613 # report actual input values of CONFIG_FILES etc. instead of their
14614 # values after options handling.
14615 ac_log="
14616 This file was extended by sim $as_me 0, which was
14617 generated by GNU Autoconf 2.69. Invocation command line was
14618
14619 CONFIG_FILES = $CONFIG_FILES
14620 CONFIG_HEADERS = $CONFIG_HEADERS
14621 CONFIG_LINKS = $CONFIG_LINKS
14622 CONFIG_COMMANDS = $CONFIG_COMMANDS
14623 $ $0 $@
14624
14625 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14626 "
14627
14628 _ACEOF
14629
14630 case $ac_config_files in *"
14631 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14632 esac
14633
14634 case $ac_config_headers in *"
14635 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14636 esac
14637
14638
14639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14640 # Files that config.status was made for.
14641 config_files="$ac_config_files"
14642 config_headers="$ac_config_headers"
14643 config_commands="$ac_config_commands"
14644
14645 _ACEOF
14646
14647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14648 ac_cs_usage="\
14649 \`$as_me' instantiates files and other configuration actions
14650 from templates according to the current configuration. Unless the files
14651 and actions are specified as TAGs, all are instantiated by default.
14652
14653 Usage: $0 [OPTION]... [TAG]...
14654
14655 -h, --help print this help, then exit
14656 -V, --version print version number and configuration settings, then exit
14657 --config print configuration, then exit
14658 -q, --quiet, --silent
14659 do not print progress messages
14660 -d, --debug don't remove temporary files
14661 --recheck update $as_me by reconfiguring in the same conditions
14662 --file=FILE[:TEMPLATE]
14663 instantiate the configuration file FILE
14664 --header=FILE[:TEMPLATE]
14665 instantiate the configuration header FILE
14666
14667 Configuration files:
14668 $config_files
14669
14670 Configuration headers:
14671 $config_headers
14672
14673 Configuration commands:
14674 $config_commands
14675
14676 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
14677 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
14678
14679 _ACEOF
14680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14681 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14682 ac_cs_version="\\
14683 sim config.status 0
14684 configured by $0, generated by GNU Autoconf 2.69,
14685 with options \\"\$ac_cs_config\\"
14686
14687 Copyright (C) 2012 Free Software Foundation, Inc.
14688 This config.status script is free software; the Free Software Foundation
14689 gives unlimited permission to copy, distribute and modify it."
14690
14691 ac_pwd='$ac_pwd'
14692 srcdir='$srcdir'
14693 INSTALL='$INSTALL'
14694 MKDIR_P='$MKDIR_P'
14695 AWK='$AWK'
14696 test -n "\$AWK" || AWK=awk
14697 _ACEOF
14698
14699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14700 # The default lists apply if the user does not specify any file.
14701 ac_need_defaults=:
14702 while test $# != 0
14703 do
14704 case $1 in
14705 --*=?*)
14706 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14707 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14708 ac_shift=:
14709 ;;
14710 --*=)
14711 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14712 ac_optarg=
14713 ac_shift=:
14714 ;;
14715 *)
14716 ac_option=$1
14717 ac_optarg=$2
14718 ac_shift=shift
14719 ;;
14720 esac
14721
14722 case $ac_option in
14723 # Handling of the options.
14724 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14725 ac_cs_recheck=: ;;
14726 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14727 $as_echo "$ac_cs_version"; exit ;;
14728 --config | --confi | --conf | --con | --co | --c )
14729 $as_echo "$ac_cs_config"; exit ;;
14730 --debug | --debu | --deb | --de | --d | -d )
14731 debug=: ;;
14732 --file | --fil | --fi | --f )
14733 $ac_shift
14734 case $ac_optarg in
14735 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14736 '') as_fn_error $? "missing file argument" ;;
14737 esac
14738 as_fn_append CONFIG_FILES " '$ac_optarg'"
14739 ac_need_defaults=false;;
14740 --header | --heade | --head | --hea )
14741 $ac_shift
14742 case $ac_optarg in
14743 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14744 esac
14745 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14746 ac_need_defaults=false;;
14747 --he | --h)
14748 # Conflict between --help and --header
14749 as_fn_error $? "ambiguous option: \`$1'
14750 Try \`$0 --help' for more information.";;
14751 --help | --hel | -h )
14752 $as_echo "$ac_cs_usage"; exit ;;
14753 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14754 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14755 ac_cs_silent=: ;;
14756
14757 # This is an error.
14758 -*) as_fn_error $? "unrecognized option: \`$1'
14759 Try \`$0 --help' for more information." ;;
14760
14761 *) as_fn_append ac_config_targets " $1"
14762 ac_need_defaults=false ;;
14763
14764 esac
14765 shift
14766 done
14767
14768 ac_configure_extra_args=
14769
14770 if $ac_cs_silent; then
14771 exec 6>/dev/null
14772 ac_configure_extra_args="$ac_configure_extra_args --silent"
14773 fi
14774
14775 _ACEOF
14776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14777 if \$ac_cs_recheck; then
14778 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14779 shift
14780 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14781 CONFIG_SHELL='$SHELL'
14782 export CONFIG_SHELL
14783 exec "\$@"
14784 fi
14785
14786 _ACEOF
14787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14788 exec 5>>config.log
14789 {
14790 echo
14791 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14792 ## Running $as_me. ##
14793 _ASBOX
14794 $as_echo "$ac_log"
14795 } >&5
14796
14797 _ACEOF
14798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14799 #
14800 # INIT-COMMANDS
14801 #
14802
14803
14804 # The HP-UX ksh and POSIX shell print the target directory to stdout
14805 # if CDPATH is set.
14806 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14807
14808 sed_quote_subst='$sed_quote_subst'
14809 double_quote_subst='$double_quote_subst'
14810 delay_variable_subst='$delay_variable_subst'
14811 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14812 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14813 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14814 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14815 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14816 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14817 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14818 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14819 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14820 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14821 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14822 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14823 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14824 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14825 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14826 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14827 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14828 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14829 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14830 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14831 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14832 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14833 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14834 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14835 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14836 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14837 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14838 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14839 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14840 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14841 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14842 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14843 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14844 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14845 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14846 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14847 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14848 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14849 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14850 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14851 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14852 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14853 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14854 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14855 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14856 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14857 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14858 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14859 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"`'
14860 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14861 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14862 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14863 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14864 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14865 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14866 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14867 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14868 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14869 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14870 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14871 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14872 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14873 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14874 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14875 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14876 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14877 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14878 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14879 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14880 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14881 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14882 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14883 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14884 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14885 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14886 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14887 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14888 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14889 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14890 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14891 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14892 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14893 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14894 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14895 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14896 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14897 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14898 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14899 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14900 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14901 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14902 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14903 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14904 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14905 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14906 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14907 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14908 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14909 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14910 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14911 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14912 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14913 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14914 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14915 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14916 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14917 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14918 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14919 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14920 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14921 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14922 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14923 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14924 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14925 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14926 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14927 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14928 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14929 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14930 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14931
14932 LTCC='$LTCC'
14933 LTCFLAGS='$LTCFLAGS'
14934 compiler='$compiler_DEFAULT'
14935
14936 # A function that is used when there is no print builtin or printf.
14937 func_fallback_echo ()
14938 {
14939 eval 'cat <<_LTECHO_EOF
14940 \$1
14941 _LTECHO_EOF'
14942 }
14943
14944 # Quote evaled strings.
14945 for var in SHELL \
14946 ECHO \
14947 SED \
14948 GREP \
14949 EGREP \
14950 FGREP \
14951 LD \
14952 NM \
14953 LN_S \
14954 lt_SP2NL \
14955 lt_NL2SP \
14956 reload_flag \
14957 OBJDUMP \
14958 deplibs_check_method \
14959 file_magic_cmd \
14960 AR \
14961 AR_FLAGS \
14962 STRIP \
14963 RANLIB \
14964 CC \
14965 CFLAGS \
14966 compiler \
14967 lt_cv_sys_global_symbol_pipe \
14968 lt_cv_sys_global_symbol_to_cdecl \
14969 lt_cv_sys_global_symbol_to_c_name_address \
14970 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14971 lt_prog_compiler_no_builtin_flag \
14972 lt_prog_compiler_wl \
14973 lt_prog_compiler_pic \
14974 lt_prog_compiler_static \
14975 lt_cv_prog_compiler_c_o \
14976 need_locks \
14977 DSYMUTIL \
14978 NMEDIT \
14979 LIPO \
14980 OTOOL \
14981 OTOOL64 \
14982 shrext_cmds \
14983 export_dynamic_flag_spec \
14984 whole_archive_flag_spec \
14985 compiler_needs_object \
14986 with_gnu_ld \
14987 allow_undefined_flag \
14988 no_undefined_flag \
14989 hardcode_libdir_flag_spec \
14990 hardcode_libdir_flag_spec_ld \
14991 hardcode_libdir_separator \
14992 fix_srcfile_path \
14993 exclude_expsyms \
14994 include_expsyms \
14995 file_list_spec \
14996 variables_saved_for_relink \
14997 libname_spec \
14998 library_names_spec \
14999 soname_spec \
15000 install_override_mode \
15001 finish_eval \
15002 old_striplib \
15003 striplib; do
15004 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15005 *[\\\\\\\`\\"\\\$]*)
15006 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15007 ;;
15008 *)
15009 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15010 ;;
15011 esac
15012 done
15013
15014 # Double-quote double-evaled strings.
15015 for var in reload_cmds \
15016 old_postinstall_cmds \
15017 old_postuninstall_cmds \
15018 old_archive_cmds \
15019 extract_expsyms_cmds \
15020 old_archive_from_new_cmds \
15021 old_archive_from_expsyms_cmds \
15022 archive_cmds \
15023 archive_expsym_cmds \
15024 module_cmds \
15025 module_expsym_cmds \
15026 export_symbols_cmds \
15027 prelink_cmds \
15028 postinstall_cmds \
15029 postuninstall_cmds \
15030 finish_cmds \
15031 sys_lib_search_path_spec \
15032 sys_lib_dlsearch_path_spec; do
15033 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15034 *[\\\\\\\`\\"\\\$]*)
15035 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15036 ;;
15037 *)
15038 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15039 ;;
15040 esac
15041 done
15042
15043 ac_aux_dir='$ac_aux_dir'
15044 xsi_shell='$xsi_shell'
15045 lt_shell_append='$lt_shell_append'
15046
15047 # See if we are running on zsh, and set the options which allow our
15048 # commands through without removal of \ escapes INIT.
15049 if test -n "\${ZSH_VERSION+set}" ; then
15050 setopt NO_GLOB_SUBST
15051 fi
15052
15053
15054 PACKAGE='$PACKAGE'
15055 VERSION='$VERSION'
15056 TIMESTAMP='$TIMESTAMP'
15057 RM='$RM'
15058 ofile='$ofile'
15059
15060
15061
15062 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15063 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15064 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15065 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15066 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15067 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15068 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15069 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15070 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15071 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15072 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15073 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15074 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15075 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15076 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15077 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15078 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15079 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15080 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15081 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15082 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15083 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15084 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15085 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15086 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15087 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15088 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15089 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15090 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15091 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15092 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15093 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15094 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15095
15096 _ACEOF
15097
15098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15099
15100 # Handling of arguments.
15101 for ac_config_target in $ac_config_targets
15102 do
15103 case $ac_config_target in
15104 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15105 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15106 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15107 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
15108 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
15109 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
15110 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
15111 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
15112 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
15113 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
15114 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
15115 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
15116 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
15117 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
15118 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
15119 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
15120 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
15121 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
15122 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
15123 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
15124 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
15125 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
15126 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
15127 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
15128 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
15129 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
15130 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
15131 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
15132 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
15133 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
15134 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
15135 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
15136 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
15137 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
15138 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
15139 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
15140 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15141
15142 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15143 esac
15144 done
15145
15146
15147 # If the user did not use the arguments to specify the items to instantiate,
15148 # then the envvar interface is used. Set only those that are not.
15149 # We use the long form for the default assignment because of an extremely
15150 # bizarre bug on SunOS 4.1.3.
15151 if $ac_need_defaults; then
15152 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15153 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15154 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15155 fi
15156
15157 # Have a temporary directory for convenience. Make it in the build tree
15158 # simply because there is no reason against having it here, and in addition,
15159 # creating and moving files from /tmp can sometimes cause problems.
15160 # Hook for its removal unless debugging.
15161 # Note that there is a small window in which the directory will not be cleaned:
15162 # after its creation but before its name has been assigned to `$tmp'.
15163 $debug ||
15164 {
15165 tmp= ac_tmp=
15166 trap 'exit_status=$?
15167 : "${ac_tmp:=$tmp}"
15168 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15169 ' 0
15170 trap 'as_fn_exit 1' 1 2 13 15
15171 }
15172 # Create a (secure) tmp directory for tmp files.
15173
15174 {
15175 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15176 test -d "$tmp"
15177 } ||
15178 {
15179 tmp=./conf$$-$RANDOM
15180 (umask 077 && mkdir "$tmp")
15181 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15182 ac_tmp=$tmp
15183
15184 # Set up the scripts for CONFIG_FILES section.
15185 # No need to generate them if there are no CONFIG_FILES.
15186 # This happens for instance with `./config.status config.h'.
15187 if test -n "$CONFIG_FILES"; then
15188
15189
15190 ac_cr=`echo X | tr X '\015'`
15191 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15192 # But we know of no other shell where ac_cr would be empty at this
15193 # point, so we can use a bashism as a fallback.
15194 if test "x$ac_cr" = x; then
15195 eval ac_cr=\$\'\\r\'
15196 fi
15197 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15198 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15199 ac_cs_awk_cr='\\r'
15200 else
15201 ac_cs_awk_cr=$ac_cr
15202 fi
15203
15204 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15205 _ACEOF
15206
15207
15208 {
15209 echo "cat >conf$$subs.awk <<_ACEOF" &&
15210 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15211 echo "_ACEOF"
15212 } >conf$$subs.sh ||
15213 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15214 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15215 ac_delim='%!_!# '
15216 for ac_last_try in false false false false false :; do
15217 . ./conf$$subs.sh ||
15218 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15219
15220 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15221 if test $ac_delim_n = $ac_delim_num; then
15222 break
15223 elif $ac_last_try; then
15224 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15225 else
15226 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15227 fi
15228 done
15229 rm -f conf$$subs.sh
15230
15231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15232 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15233 _ACEOF
15234 sed -n '
15235 h
15236 s/^/S["/; s/!.*/"]=/
15237 p
15238 g
15239 s/^[^!]*!//
15240 :repl
15241 t repl
15242 s/'"$ac_delim"'$//
15243 t delim
15244 :nl
15245 h
15246 s/\(.\{148\}\)..*/\1/
15247 t more1
15248 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15249 p
15250 n
15251 b repl
15252 :more1
15253 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15254 p
15255 g
15256 s/.\{148\}//
15257 t nl
15258 :delim
15259 h
15260 s/\(.\{148\}\)..*/\1/
15261 t more2
15262 s/["\\]/\\&/g; s/^/"/; s/$/"/
15263 p
15264 b
15265 :more2
15266 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15267 p
15268 g
15269 s/.\{148\}//
15270 t delim
15271 ' <conf$$subs.awk | sed '
15272 /^[^""]/{
15273 N
15274 s/\n//
15275 }
15276 ' >>$CONFIG_STATUS || ac_write_fail=1
15277 rm -f conf$$subs.awk
15278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15279 _ACAWK
15280 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15281 for (key in S) S_is_set[key] = 1
15282 FS = "\a"
15283
15284 }
15285 {
15286 line = $ 0
15287 nfields = split(line, field, "@")
15288 substed = 0
15289 len = length(field[1])
15290 for (i = 2; i < nfields; i++) {
15291 key = field[i]
15292 keylen = length(key)
15293 if (S_is_set[key]) {
15294 value = S[key]
15295 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15296 len += length(value) + length(field[++i])
15297 substed = 1
15298 } else
15299 len += 1 + keylen
15300 }
15301
15302 print line
15303 }
15304
15305 _ACAWK
15306 _ACEOF
15307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15308 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15309 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15310 else
15311 cat
15312 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15313 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15314 _ACEOF
15315
15316 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15317 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15318 # trailing colons and then remove the whole line if VPATH becomes empty
15319 # (actually we leave an empty line to preserve line numbers).
15320 if test "x$srcdir" = x.; then
15321 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15322 h
15323 s///
15324 s/^/:/
15325 s/[ ]*$/:/
15326 s/:\$(srcdir):/:/g
15327 s/:\${srcdir}:/:/g
15328 s/:@srcdir@:/:/g
15329 s/^:*//
15330 s/:*$//
15331 x
15332 s/\(=[ ]*\).*/\1/
15333 G
15334 s/\n//
15335 s/^[^=]*=[ ]*$//
15336 }'
15337 fi
15338
15339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15340 fi # test -n "$CONFIG_FILES"
15341
15342 # Set up the scripts for CONFIG_HEADERS section.
15343 # No need to generate them if there are no CONFIG_HEADERS.
15344 # This happens for instance with `./config.status Makefile'.
15345 if test -n "$CONFIG_HEADERS"; then
15346 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15347 BEGIN {
15348 _ACEOF
15349
15350 # Transform confdefs.h into an awk script `defines.awk', embedded as
15351 # here-document in config.status, that substitutes the proper values into
15352 # config.h.in to produce config.h.
15353
15354 # Create a delimiter string that does not exist in confdefs.h, to ease
15355 # handling of long lines.
15356 ac_delim='%!_!# '
15357 for ac_last_try in false false :; do
15358 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15359 if test -z "$ac_tt"; then
15360 break
15361 elif $ac_last_try; then
15362 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15363 else
15364 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15365 fi
15366 done
15367
15368 # For the awk script, D is an array of macro values keyed by name,
15369 # likewise P contains macro parameters if any. Preserve backslash
15370 # newline sequences.
15371
15372 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15373 sed -n '
15374 s/.\{148\}/&'"$ac_delim"'/g
15375 t rset
15376 :rset
15377 s/^[ ]*#[ ]*define[ ][ ]*/ /
15378 t def
15379 d
15380 :def
15381 s/\\$//
15382 t bsnl
15383 s/["\\]/\\&/g
15384 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15385 D["\1"]=" \3"/p
15386 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15387 d
15388 :bsnl
15389 s/["\\]/\\&/g
15390 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15391 D["\1"]=" \3\\\\\\n"\\/p
15392 t cont
15393 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15394 t cont
15395 d
15396 :cont
15397 n
15398 s/.\{148\}/&'"$ac_delim"'/g
15399 t clear
15400 :clear
15401 s/\\$//
15402 t bsnlc
15403 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15404 d
15405 :bsnlc
15406 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15407 b cont
15408 ' <confdefs.h | sed '
15409 s/'"$ac_delim"'/"\\\
15410 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15411
15412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15413 for (key in D) D_is_set[key] = 1
15414 FS = "\a"
15415 }
15416 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15417 line = \$ 0
15418 split(line, arg, " ")
15419 if (arg[1] == "#") {
15420 defundef = arg[2]
15421 mac1 = arg[3]
15422 } else {
15423 defundef = substr(arg[1], 2)
15424 mac1 = arg[2]
15425 }
15426 split(mac1, mac2, "(") #)
15427 macro = mac2[1]
15428 prefix = substr(line, 1, index(line, defundef) - 1)
15429 if (D_is_set[macro]) {
15430 # Preserve the white space surrounding the "#".
15431 print prefix "define", macro P[macro] D[macro]
15432 next
15433 } else {
15434 # Replace #undef with comments. This is necessary, for example,
15435 # in the case of _POSIX_SOURCE, which is predefined and required
15436 # on some systems where configure will not decide to define it.
15437 if (defundef == "undef") {
15438 print "/*", prefix defundef, macro, "*/"
15439 next
15440 }
15441 }
15442 }
15443 { print }
15444 _ACAWK
15445 _ACEOF
15446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15447 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15448 fi # test -n "$CONFIG_HEADERS"
15449
15450
15451 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15452 shift
15453 for ac_tag
15454 do
15455 case $ac_tag in
15456 :[FHLC]) ac_mode=$ac_tag; continue;;
15457 esac
15458 case $ac_mode$ac_tag in
15459 :[FHL]*:*);;
15460 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15461 :[FH]-) ac_tag=-:-;;
15462 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15463 esac
15464 ac_save_IFS=$IFS
15465 IFS=:
15466 set x $ac_tag
15467 IFS=$ac_save_IFS
15468 shift
15469 ac_file=$1
15470 shift
15471
15472 case $ac_mode in
15473 :L) ac_source=$1;;
15474 :[FH])
15475 ac_file_inputs=
15476 for ac_f
15477 do
15478 case $ac_f in
15479 -) ac_f="$ac_tmp/stdin";;
15480 *) # Look for the file first in the build tree, then in the source tree
15481 # (if the path is not absolute). The absolute path cannot be DOS-style,
15482 # because $ac_f cannot contain `:'.
15483 test -f "$ac_f" ||
15484 case $ac_f in
15485 [\\/$]*) false;;
15486 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15487 esac ||
15488 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15489 esac
15490 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15491 as_fn_append ac_file_inputs " '$ac_f'"
15492 done
15493
15494 # Let's still pretend it is `configure' which instantiates (i.e., don't
15495 # use $as_me), people would be surprised to read:
15496 # /* config.h. Generated by config.status. */
15497 configure_input='Generated from '`
15498 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15499 `' by configure.'
15500 if test x"$ac_file" != x-; then
15501 configure_input="$ac_file. $configure_input"
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15503 $as_echo "$as_me: creating $ac_file" >&6;}
15504 fi
15505 # Neutralize special characters interpreted by sed in replacement strings.
15506 case $configure_input in #(
15507 *\&* | *\|* | *\\* )
15508 ac_sed_conf_input=`$as_echo "$configure_input" |
15509 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15510 *) ac_sed_conf_input=$configure_input;;
15511 esac
15512
15513 case $ac_tag in
15514 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15515 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15516 esac
15517 ;;
15518 esac
15519
15520 ac_dir=`$as_dirname -- "$ac_file" ||
15521 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15522 X"$ac_file" : 'X\(//\)[^/]' \| \
15523 X"$ac_file" : 'X\(//\)$' \| \
15524 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15525 $as_echo X"$ac_file" |
15526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15527 s//\1/
15528 q
15529 }
15530 /^X\(\/\/\)[^/].*/{
15531 s//\1/
15532 q
15533 }
15534 /^X\(\/\/\)$/{
15535 s//\1/
15536 q
15537 }
15538 /^X\(\/\).*/{
15539 s//\1/
15540 q
15541 }
15542 s/.*/./; q'`
15543 as_dir="$ac_dir"; as_fn_mkdir_p
15544 ac_builddir=.
15545
15546 case "$ac_dir" in
15547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15548 *)
15549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15550 # A ".." for each directory in $ac_dir_suffix.
15551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15552 case $ac_top_builddir_sub in
15553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15555 esac ;;
15556 esac
15557 ac_abs_top_builddir=$ac_pwd
15558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15559 # for backward compatibility:
15560 ac_top_builddir=$ac_top_build_prefix
15561
15562 case $srcdir in
15563 .) # We are building in place.
15564 ac_srcdir=.
15565 ac_top_srcdir=$ac_top_builddir_sub
15566 ac_abs_top_srcdir=$ac_pwd ;;
15567 [\\/]* | ?:[\\/]* ) # Absolute name.
15568 ac_srcdir=$srcdir$ac_dir_suffix;
15569 ac_top_srcdir=$srcdir
15570 ac_abs_top_srcdir=$srcdir ;;
15571 *) # Relative name.
15572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15573 ac_top_srcdir=$ac_top_build_prefix$srcdir
15574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15575 esac
15576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15577
15578
15579 case $ac_mode in
15580 :F)
15581 #
15582 # CONFIG_FILE
15583 #
15584
15585 case $INSTALL in
15586 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15587 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15588 esac
15589 ac_MKDIR_P=$MKDIR_P
15590 case $MKDIR_P in
15591 [\\/$]* | ?:[\\/]* ) ;;
15592 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15593 esac
15594 _ACEOF
15595
15596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15597 # If the template does not know about datarootdir, expand it.
15598 # FIXME: This hack should be removed a few years after 2.60.
15599 ac_datarootdir_hack=; ac_datarootdir_seen=
15600 ac_sed_dataroot='
15601 /datarootdir/ {
15602 p
15603 q
15604 }
15605 /@datadir@/p
15606 /@docdir@/p
15607 /@infodir@/p
15608 /@localedir@/p
15609 /@mandir@/p'
15610 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15611 *datarootdir*) ac_datarootdir_seen=yes;;
15612 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15614 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15615 _ACEOF
15616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15617 ac_datarootdir_hack='
15618 s&@datadir@&$datadir&g
15619 s&@docdir@&$docdir&g
15620 s&@infodir@&$infodir&g
15621 s&@localedir@&$localedir&g
15622 s&@mandir@&$mandir&g
15623 s&\\\${datarootdir}&$datarootdir&g' ;;
15624 esac
15625 _ACEOF
15626
15627 # Neutralize VPATH when `$srcdir' = `.'.
15628 # Shell code in configure.ac might set extrasub.
15629 # FIXME: do we really want to maintain this feature?
15630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15631 ac_sed_extra="$ac_vpsub
15632 $extrasub
15633 _ACEOF
15634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15635 :t
15636 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15637 s|@configure_input@|$ac_sed_conf_input|;t t
15638 s&@top_builddir@&$ac_top_builddir_sub&;t t
15639 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15640 s&@srcdir@&$ac_srcdir&;t t
15641 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15642 s&@top_srcdir@&$ac_top_srcdir&;t t
15643 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15644 s&@builddir@&$ac_builddir&;t t
15645 s&@abs_builddir@&$ac_abs_builddir&;t t
15646 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15647 s&@INSTALL@&$ac_INSTALL&;t t
15648 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15649 $ac_datarootdir_hack
15650 "
15651 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15652 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15653
15654 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15655 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15656 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15657 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15659 which seems to be undefined. Please make sure it is defined" >&5
15660 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15661 which seems to be undefined. Please make sure it is defined" >&2;}
15662
15663 rm -f "$ac_tmp/stdin"
15664 case $ac_file in
15665 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15666 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15667 esac \
15668 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15669 ;;
15670 :H)
15671 #
15672 # CONFIG_HEADER
15673 #
15674 if test x"$ac_file" != x-; then
15675 {
15676 $as_echo "/* $configure_input */" \
15677 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15678 } >"$ac_tmp/config.h" \
15679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15680 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15682 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15683 else
15684 rm -f "$ac_file"
15685 mv "$ac_tmp/config.h" "$ac_file" \
15686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15687 fi
15688 else
15689 $as_echo "/* $configure_input */" \
15690 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15691 || as_fn_error $? "could not create -" "$LINENO" 5
15692 fi
15693 # Compute "$ac_file"'s index in $config_headers.
15694 _am_arg="$ac_file"
15695 _am_stamp_count=1
15696 for _am_header in $config_headers :; do
15697 case $_am_header in
15698 $_am_arg | $_am_arg:* )
15699 break ;;
15700 * )
15701 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15702 esac
15703 done
15704 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15705 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15706 X"$_am_arg" : 'X\(//\)[^/]' \| \
15707 X"$_am_arg" : 'X\(//\)$' \| \
15708 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15709 $as_echo X"$_am_arg" |
15710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15711 s//\1/
15712 q
15713 }
15714 /^X\(\/\/\)[^/].*/{
15715 s//\1/
15716 q
15717 }
15718 /^X\(\/\/\)$/{
15719 s//\1/
15720 q
15721 }
15722 /^X\(\/\).*/{
15723 s//\1/
15724 q
15725 }
15726 s/.*/./; q'`/stamp-h$_am_stamp_count
15727 ;;
15728
15729 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15730 $as_echo "$as_me: executing $ac_file commands" >&6;}
15731 ;;
15732 esac
15733
15734
15735 case $ac_file$ac_mode in
15736 "libtool":C)
15737
15738 # See if we are running on zsh, and set the options which allow our
15739 # commands through without removal of \ escapes.
15740 if test -n "${ZSH_VERSION+set}" ; then
15741 setopt NO_GLOB_SUBST
15742 fi
15743
15744 cfgfile="${ofile}T"
15745 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15746 $RM "$cfgfile"
15747
15748 cat <<_LT_EOF >> "$cfgfile"
15749 #! $SHELL
15750
15751 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15752 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15753 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15754 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15755 #
15756 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15757 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15758 # Written by Gordon Matzigkeit, 1996
15759 #
15760 # This file is part of GNU Libtool.
15761 #
15762 # GNU Libtool is free software; you can redistribute it and/or
15763 # modify it under the terms of the GNU General Public License as
15764 # published by the Free Software Foundation; either version 2 of
15765 # the License, or (at your option) any later version.
15766 #
15767 # As a special exception to the GNU General Public License,
15768 # if you distribute this file as part of a program or library that
15769 # is built using GNU Libtool, you may include this file under the
15770 # same distribution terms that you use for the rest of that program.
15771 #
15772 # GNU Libtool is distributed in the hope that it will be useful,
15773 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15774 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15775 # GNU General Public License for more details.
15776 #
15777 # You should have received a copy of the GNU General Public License
15778 # along with GNU Libtool; see the file COPYING. If not, a copy
15779 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15780 # obtained by writing to the Free Software Foundation, Inc.,
15781 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15782
15783
15784 # The names of the tagged configurations supported by this script.
15785 available_tags=""
15786
15787 # ### BEGIN LIBTOOL CONFIG
15788
15789 # Which release of libtool.m4 was used?
15790 macro_version=$macro_version
15791 macro_revision=$macro_revision
15792
15793 # Whether or not to build shared libraries.
15794 build_libtool_libs=$enable_shared
15795
15796 # Whether or not to build static libraries.
15797 build_old_libs=$enable_static
15798
15799 # What type of objects to build.
15800 pic_mode=$pic_mode
15801
15802 # Whether or not to optimize for fast installation.
15803 fast_install=$enable_fast_install
15804
15805 # Shell to use when invoking shell scripts.
15806 SHELL=$lt_SHELL
15807
15808 # An echo program that protects backslashes.
15809 ECHO=$lt_ECHO
15810
15811 # The host system.
15812 host_alias=$host_alias
15813 host=$host
15814 host_os=$host_os
15815
15816 # The build system.
15817 build_alias=$build_alias
15818 build=$build
15819 build_os=$build_os
15820
15821 # A sed program that does not truncate output.
15822 SED=$lt_SED
15823
15824 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15825 Xsed="\$SED -e 1s/^X//"
15826
15827 # A grep program that handles long lines.
15828 GREP=$lt_GREP
15829
15830 # An ERE matcher.
15831 EGREP=$lt_EGREP
15832
15833 # A literal string matcher.
15834 FGREP=$lt_FGREP
15835
15836 # A BSD- or MS-compatible name lister.
15837 NM=$lt_NM
15838
15839 # Whether we need soft or hard links.
15840 LN_S=$lt_LN_S
15841
15842 # What is the maximum length of a command?
15843 max_cmd_len=$max_cmd_len
15844
15845 # Object file suffix (normally "o").
15846 objext=$ac_objext
15847
15848 # Executable file suffix (normally "").
15849 exeext=$exeext
15850
15851 # whether the shell understands "unset".
15852 lt_unset=$lt_unset
15853
15854 # turn spaces into newlines.
15855 SP2NL=$lt_lt_SP2NL
15856
15857 # turn newlines into spaces.
15858 NL2SP=$lt_lt_NL2SP
15859
15860 # An object symbol dumper.
15861 OBJDUMP=$lt_OBJDUMP
15862
15863 # Method to check whether dependent libraries are shared objects.
15864 deplibs_check_method=$lt_deplibs_check_method
15865
15866 # Command to use when deplibs_check_method == "file_magic".
15867 file_magic_cmd=$lt_file_magic_cmd
15868
15869 # The archiver.
15870 AR=$lt_AR
15871 AR_FLAGS=$lt_AR_FLAGS
15872
15873 # A symbol stripping program.
15874 STRIP=$lt_STRIP
15875
15876 # Commands used to install an old-style archive.
15877 RANLIB=$lt_RANLIB
15878 old_postinstall_cmds=$lt_old_postinstall_cmds
15879 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15880
15881 # Whether to use a lock for old archive extraction.
15882 lock_old_archive_extraction=$lock_old_archive_extraction
15883
15884 # A C compiler.
15885 LTCC=$lt_CC
15886
15887 # LTCC compiler flags.
15888 LTCFLAGS=$lt_CFLAGS
15889
15890 # Take the output of nm and produce a listing of raw symbols and C names.
15891 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15892
15893 # Transform the output of nm in a proper C declaration.
15894 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15895
15896 # Transform the output of nm in a C name address pair.
15897 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15898
15899 # Transform the output of nm in a C name address pair when lib prefix is needed.
15900 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15901
15902 # The name of the directory that contains temporary libtool files.
15903 objdir=$objdir
15904
15905 # Used to examine libraries when file_magic_cmd begins with "file".
15906 MAGIC_CMD=$MAGIC_CMD
15907
15908 # Must we lock files when doing compilation?
15909 need_locks=$lt_need_locks
15910
15911 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15912 DSYMUTIL=$lt_DSYMUTIL
15913
15914 # Tool to change global to local symbols on Mac OS X.
15915 NMEDIT=$lt_NMEDIT
15916
15917 # Tool to manipulate fat objects and archives on Mac OS X.
15918 LIPO=$lt_LIPO
15919
15920 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15921 OTOOL=$lt_OTOOL
15922
15923 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15924 OTOOL64=$lt_OTOOL64
15925
15926 # Old archive suffix (normally "a").
15927 libext=$libext
15928
15929 # Shared library suffix (normally ".so").
15930 shrext_cmds=$lt_shrext_cmds
15931
15932 # The commands to extract the exported symbol list from a shared archive.
15933 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15934
15935 # Variables whose values should be saved in libtool wrapper scripts and
15936 # restored at link time.
15937 variables_saved_for_relink=$lt_variables_saved_for_relink
15938
15939 # Do we need the "lib" prefix for modules?
15940 need_lib_prefix=$need_lib_prefix
15941
15942 # Do we need a version for libraries?
15943 need_version=$need_version
15944
15945 # Library versioning type.
15946 version_type=$version_type
15947
15948 # Shared library runtime path variable.
15949 runpath_var=$runpath_var
15950
15951 # Shared library path variable.
15952 shlibpath_var=$shlibpath_var
15953
15954 # Is shlibpath searched before the hard-coded library search path?
15955 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15956
15957 # Format of library name prefix.
15958 libname_spec=$lt_libname_spec
15959
15960 # List of archive names. First name is the real one, the rest are links.
15961 # The last name is the one that the linker finds with -lNAME
15962 library_names_spec=$lt_library_names_spec
15963
15964 # The coded name of the library, if different from the real name.
15965 soname_spec=$lt_soname_spec
15966
15967 # Permission mode override for installation of shared libraries.
15968 install_override_mode=$lt_install_override_mode
15969
15970 # Command to use after installation of a shared archive.
15971 postinstall_cmds=$lt_postinstall_cmds
15972
15973 # Command to use after uninstallation of a shared archive.
15974 postuninstall_cmds=$lt_postuninstall_cmds
15975
15976 # Commands used to finish a libtool library installation in a directory.
15977 finish_cmds=$lt_finish_cmds
15978
15979 # As "finish_cmds", except a single script fragment to be evaled but
15980 # not shown.
15981 finish_eval=$lt_finish_eval
15982
15983 # Whether we should hardcode library paths into libraries.
15984 hardcode_into_libs=$hardcode_into_libs
15985
15986 # Compile-time system search path for libraries.
15987 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15988
15989 # Run-time system search path for libraries.
15990 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15991
15992 # Whether dlopen is supported.
15993 dlopen_support=$enable_dlopen
15994
15995 # Whether dlopen of programs is supported.
15996 dlopen_self=$enable_dlopen_self
15997
15998 # Whether dlopen of statically linked programs is supported.
15999 dlopen_self_static=$enable_dlopen_self_static
16000
16001 # Commands to strip libraries.
16002 old_striplib=$lt_old_striplib
16003 striplib=$lt_striplib
16004
16005
16006 # The linker used to build libraries.
16007 LD=$lt_LD
16008
16009 # How to create reloadable object files.
16010 reload_flag=$lt_reload_flag
16011 reload_cmds=$lt_reload_cmds
16012
16013 # Commands used to build an old-style archive.
16014 old_archive_cmds=$lt_old_archive_cmds
16015
16016 # A language specific compiler.
16017 CC=$lt_compiler
16018
16019 # Is the compiler the GNU compiler?
16020 with_gcc=$GCC
16021
16022 # Compiler flag to turn off builtin functions.
16023 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16024
16025 # How to pass a linker flag through the compiler.
16026 wl=$lt_lt_prog_compiler_wl
16027
16028 # Additional compiler flags for building library objects.
16029 pic_flag=$lt_lt_prog_compiler_pic
16030
16031 # Compiler flag to prevent dynamic linking.
16032 link_static_flag=$lt_lt_prog_compiler_static
16033
16034 # Does compiler simultaneously support -c and -o options?
16035 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16036
16037 # Whether or not to add -lc for building shared libraries.
16038 build_libtool_need_lc=$archive_cmds_need_lc
16039
16040 # Whether or not to disallow shared libs when runtime libs are static.
16041 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16042
16043 # Compiler flag to allow reflexive dlopens.
16044 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16045
16046 # Compiler flag to generate shared objects directly from archives.
16047 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16048
16049 # Whether the compiler copes with passing no objects directly.
16050 compiler_needs_object=$lt_compiler_needs_object
16051
16052 # Create an old-style archive from a shared archive.
16053 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16054
16055 # Create a temporary old-style archive to link instead of a shared archive.
16056 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16057
16058 # Commands used to build a shared archive.
16059 archive_cmds=$lt_archive_cmds
16060 archive_expsym_cmds=$lt_archive_expsym_cmds
16061
16062 # Commands used to build a loadable module if different from building
16063 # a shared archive.
16064 module_cmds=$lt_module_cmds
16065 module_expsym_cmds=$lt_module_expsym_cmds
16066
16067 # Whether we are building with GNU ld or not.
16068 with_gnu_ld=$lt_with_gnu_ld
16069
16070 # Flag that allows shared libraries with undefined symbols to be built.
16071 allow_undefined_flag=$lt_allow_undefined_flag
16072
16073 # Flag that enforces no undefined symbols.
16074 no_undefined_flag=$lt_no_undefined_flag
16075
16076 # Flag to hardcode \$libdir into a binary during linking.
16077 # This must work even if \$libdir does not exist
16078 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16079
16080 # If ld is used when linking, flag to hardcode \$libdir into a binary
16081 # during linking. This must work even if \$libdir does not exist.
16082 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16083
16084 # Whether we need a single "-rpath" flag with a separated argument.
16085 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16086
16087 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16088 # DIR into the resulting binary.
16089 hardcode_direct=$hardcode_direct
16090
16091 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16092 # DIR into the resulting binary and the resulting library dependency is
16093 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16094 # library is relocated.
16095 hardcode_direct_absolute=$hardcode_direct_absolute
16096
16097 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16098 # into the resulting binary.
16099 hardcode_minus_L=$hardcode_minus_L
16100
16101 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16102 # into the resulting binary.
16103 hardcode_shlibpath_var=$hardcode_shlibpath_var
16104
16105 # Set to "yes" if building a shared library automatically hardcodes DIR
16106 # into the library and all subsequent libraries and executables linked
16107 # against it.
16108 hardcode_automatic=$hardcode_automatic
16109
16110 # Set to yes if linker adds runtime paths of dependent libraries
16111 # to runtime path list.
16112 inherit_rpath=$inherit_rpath
16113
16114 # Whether libtool must link a program against all its dependency libraries.
16115 link_all_deplibs=$link_all_deplibs
16116
16117 # Fix the shell variable \$srcfile for the compiler.
16118 fix_srcfile_path=$lt_fix_srcfile_path
16119
16120 # Set to "yes" if exported symbols are required.
16121 always_export_symbols=$always_export_symbols
16122
16123 # The commands to list exported symbols.
16124 export_symbols_cmds=$lt_export_symbols_cmds
16125
16126 # Symbols that should not be listed in the preloaded symbols.
16127 exclude_expsyms=$lt_exclude_expsyms
16128
16129 # Symbols that must always be exported.
16130 include_expsyms=$lt_include_expsyms
16131
16132 # Commands necessary for linking programs (against libraries) with templates.
16133 prelink_cmds=$lt_prelink_cmds
16134
16135 # Specify filename containing input files.
16136 file_list_spec=$lt_file_list_spec
16137
16138 # How to hardcode a shared library path into an executable.
16139 hardcode_action=$hardcode_action
16140
16141 # ### END LIBTOOL CONFIG
16142
16143 _LT_EOF
16144
16145 case $host_os in
16146 aix3*)
16147 cat <<\_LT_EOF >> "$cfgfile"
16148 # AIX sometimes has problems with the GCC collect2 program. For some
16149 # reason, if we set the COLLECT_NAMES environment variable, the problems
16150 # vanish in a puff of smoke.
16151 if test "X${COLLECT_NAMES+set}" != Xset; then
16152 COLLECT_NAMES=
16153 export COLLECT_NAMES
16154 fi
16155 _LT_EOF
16156 ;;
16157 esac
16158
16159
16160 ltmain="$ac_aux_dir/ltmain.sh"
16161
16162
16163 # We use sed instead of cat because bash on DJGPP gets confused if
16164 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16165 # text mode, it properly converts lines to CR/LF. This bash problem
16166 # is reportedly fixed, but why not run on old versions too?
16167 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16168 || (rm -f "$cfgfile"; exit 1)
16169
16170 case $xsi_shell in
16171 yes)
16172 cat << \_LT_EOF >> "$cfgfile"
16173
16174 # func_dirname file append nondir_replacement
16175 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16176 # otherwise set result to NONDIR_REPLACEMENT.
16177 func_dirname ()
16178 {
16179 case ${1} in
16180 */*) func_dirname_result="${1%/*}${2}" ;;
16181 * ) func_dirname_result="${3}" ;;
16182 esac
16183 }
16184
16185 # func_basename file
16186 func_basename ()
16187 {
16188 func_basename_result="${1##*/}"
16189 }
16190
16191 # func_dirname_and_basename file append nondir_replacement
16192 # perform func_basename and func_dirname in a single function
16193 # call:
16194 # dirname: Compute the dirname of FILE. If nonempty,
16195 # add APPEND to the result, otherwise set result
16196 # to NONDIR_REPLACEMENT.
16197 # value returned in "$func_dirname_result"
16198 # basename: Compute filename of FILE.
16199 # value retuned in "$func_basename_result"
16200 # Implementation must be kept synchronized with func_dirname
16201 # and func_basename. For efficiency, we do not delegate to
16202 # those functions but instead duplicate the functionality here.
16203 func_dirname_and_basename ()
16204 {
16205 case ${1} in
16206 */*) func_dirname_result="${1%/*}${2}" ;;
16207 * ) func_dirname_result="${3}" ;;
16208 esac
16209 func_basename_result="${1##*/}"
16210 }
16211
16212 # func_stripname prefix suffix name
16213 # strip PREFIX and SUFFIX off of NAME.
16214 # PREFIX and SUFFIX must not contain globbing or regex special
16215 # characters, hashes, percent signs, but SUFFIX may contain a leading
16216 # dot (in which case that matches only a dot).
16217 func_stripname ()
16218 {
16219 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16220 # positional parameters, so assign one to ordinary parameter first.
16221 func_stripname_result=${3}
16222 func_stripname_result=${func_stripname_result#"${1}"}
16223 func_stripname_result=${func_stripname_result%"${2}"}
16224 }
16225
16226 # func_opt_split
16227 func_opt_split ()
16228 {
16229 func_opt_split_opt=${1%%=*}
16230 func_opt_split_arg=${1#*=}
16231 }
16232
16233 # func_lo2o object
16234 func_lo2o ()
16235 {
16236 case ${1} in
16237 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16238 *) func_lo2o_result=${1} ;;
16239 esac
16240 }
16241
16242 # func_xform libobj-or-source
16243 func_xform ()
16244 {
16245 func_xform_result=${1%.*}.lo
16246 }
16247
16248 # func_arith arithmetic-term...
16249 func_arith ()
16250 {
16251 func_arith_result=$(( $* ))
16252 }
16253
16254 # func_len string
16255 # STRING may not start with a hyphen.
16256 func_len ()
16257 {
16258 func_len_result=${#1}
16259 }
16260
16261 _LT_EOF
16262 ;;
16263 *) # Bourne compatible functions.
16264 cat << \_LT_EOF >> "$cfgfile"
16265
16266 # func_dirname file append nondir_replacement
16267 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16268 # otherwise set result to NONDIR_REPLACEMENT.
16269 func_dirname ()
16270 {
16271 # Extract subdirectory from the argument.
16272 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16273 if test "X$func_dirname_result" = "X${1}"; then
16274 func_dirname_result="${3}"
16275 else
16276 func_dirname_result="$func_dirname_result${2}"
16277 fi
16278 }
16279
16280 # func_basename file
16281 func_basename ()
16282 {
16283 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16284 }
16285
16286
16287 # func_stripname prefix suffix name
16288 # strip PREFIX and SUFFIX off of NAME.
16289 # PREFIX and SUFFIX must not contain globbing or regex special
16290 # characters, hashes, percent signs, but SUFFIX may contain a leading
16291 # dot (in which case that matches only a dot).
16292 # func_strip_suffix prefix name
16293 func_stripname ()
16294 {
16295 case ${2} in
16296 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16297 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16298 esac
16299 }
16300
16301 # sed scripts:
16302 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16303 my_sed_long_arg='1s/^-[^=]*=//'
16304
16305 # func_opt_split
16306 func_opt_split ()
16307 {
16308 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16309 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16310 }
16311
16312 # func_lo2o object
16313 func_lo2o ()
16314 {
16315 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16316 }
16317
16318 # func_xform libobj-or-source
16319 func_xform ()
16320 {
16321 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16322 }
16323
16324 # func_arith arithmetic-term...
16325 func_arith ()
16326 {
16327 func_arith_result=`expr "$@"`
16328 }
16329
16330 # func_len string
16331 # STRING may not start with a hyphen.
16332 func_len ()
16333 {
16334 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16335 }
16336
16337 _LT_EOF
16338 esac
16339
16340 case $lt_shell_append in
16341 yes)
16342 cat << \_LT_EOF >> "$cfgfile"
16343
16344 # func_append var value
16345 # Append VALUE to the end of shell variable VAR.
16346 func_append ()
16347 {
16348 eval "$1+=\$2"
16349 }
16350 _LT_EOF
16351 ;;
16352 *)
16353 cat << \_LT_EOF >> "$cfgfile"
16354
16355 # func_append var value
16356 # Append VALUE to the end of shell variable VAR.
16357 func_append ()
16358 {
16359 eval "$1=\$$1\$2"
16360 }
16361
16362 _LT_EOF
16363 ;;
16364 esac
16365
16366
16367 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16368 || (rm -f "$cfgfile"; exit 1)
16369
16370 mv -f "$cfgfile" "$ofile" ||
16371 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16372 chmod +x "$ofile"
16373
16374 ;;
16375 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16376 # Older Autoconf quotes --file arguments for eval, but not when files
16377 # are listed without --file. Let's play safe and only enable the eval
16378 # if we detect the quoting.
16379 case $CONFIG_FILES in
16380 *\'*) eval set x "$CONFIG_FILES" ;;
16381 *) set x $CONFIG_FILES ;;
16382 esac
16383 shift
16384 for mf
16385 do
16386 # Strip MF so we end up with the name of the file.
16387 mf=`echo "$mf" | sed -e 's/:.*$//'`
16388 # Check whether this is an Automake generated Makefile or not.
16389 # We used to match only the files named 'Makefile.in', but
16390 # some people rename them; so instead we look at the file content.
16391 # Grep'ing the first line is not enough: some people post-process
16392 # each Makefile.in and add a new line on top of each file to say so.
16393 # Grep'ing the whole file is not good either: AIX grep has a line
16394 # limit of 2048, but all sed's we know have understand at least 4000.
16395 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16396 dirpart=`$as_dirname -- "$mf" ||
16397 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16398 X"$mf" : 'X\(//\)[^/]' \| \
16399 X"$mf" : 'X\(//\)$' \| \
16400 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16401 $as_echo X"$mf" |
16402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16403 s//\1/
16404 q
16405 }
16406 /^X\(\/\/\)[^/].*/{
16407 s//\1/
16408 q
16409 }
16410 /^X\(\/\/\)$/{
16411 s//\1/
16412 q
16413 }
16414 /^X\(\/\).*/{
16415 s//\1/
16416 q
16417 }
16418 s/.*/./; q'`
16419 else
16420 continue
16421 fi
16422 # Extract the definition of DEPDIR, am__include, and am__quote
16423 # from the Makefile without running 'make'.
16424 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16425 test -z "$DEPDIR" && continue
16426 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16427 test -z "$am__include" && continue
16428 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16429 # Find all dependency output files, they are included files with
16430 # $(DEPDIR) in their names. We invoke sed twice because it is the
16431 # simplest approach to changing $(DEPDIR) to its actual value in the
16432 # expansion.
16433 for file in `sed -n "
16434 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16435 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16436 # Make sure the directory exists.
16437 test -f "$dirpart/$file" && continue
16438 fdir=`$as_dirname -- "$file" ||
16439 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16440 X"$file" : 'X\(//\)[^/]' \| \
16441 X"$file" : 'X\(//\)$' \| \
16442 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16443 $as_echo X"$file" |
16444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16445 s//\1/
16446 q
16447 }
16448 /^X\(\/\/\)[^/].*/{
16449 s//\1/
16450 q
16451 }
16452 /^X\(\/\/\)$/{
16453 s//\1/
16454 q
16455 }
16456 /^X\(\/\).*/{
16457 s//\1/
16458 q
16459 }
16460 s/.*/./; q'`
16461 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16462 # echo "creating $dirpart/$file"
16463 echo '# dummy' > "$dirpart/$file"
16464 done
16465 done
16466 }
16467 ;;
16468 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
16469 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
16470 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
16471 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
16472 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
16473 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
16474 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
16475 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
16476 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
16477 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
16478 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
16479 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
16480 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
16481 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
16482 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
16483 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
16484 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
16485 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
16486 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
16487 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
16488 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
16489 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
16490 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
16491 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
16492 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
16493 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
16494 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
16495 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
16496 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
16497 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
16498 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
16499 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
16500
16501 esac
16502 done # for ac_tag
16503
16504
16505 as_fn_exit 0
16506 _ACEOF
16507 ac_clean_files=$ac_clean_files_save
16508
16509 test $ac_write_fail = 0 ||
16510 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16511
16512
16513 # configure is writing to config.log, and then calls config.status.
16514 # config.status does its own redirection, appending to config.log.
16515 # Unfortunately, on DOS this fails, as config.log is still kept open
16516 # by configure, so config.status won't be able to write to it; its
16517 # output is simply discarded. So we exec the FD to /dev/null,
16518 # effectively closing config.log, so it can be properly (re)opened and
16519 # appended to by config.status. When coming back to configure, we
16520 # need to make the FD available again.
16521 if test "$no_create" != yes; then
16522 ac_cs_success=:
16523 ac_config_status_args=
16524 test "$silent" = yes &&
16525 ac_config_status_args="$ac_config_status_args --quiet"
16526 exec 5>/dev/null
16527 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16528 exec 5>>config.log
16529 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16530 # would make configure fail if this is the last instruction.
16531 $ac_cs_success || as_fn_exit 1
16532 fi
16533
16534 #
16535 # CONFIG_SUBDIRS section.
16536 #
16537 if test "$no_recursion" != yes; then
16538
16539 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16540 # so they do not pile up.
16541 ac_sub_configure_args=
16542 ac_prev=
16543 eval "set x $ac_configure_args"
16544 shift
16545 for ac_arg
16546 do
16547 if test -n "$ac_prev"; then
16548 ac_prev=
16549 continue
16550 fi
16551 case $ac_arg in
16552 -cache-file | --cache-file | --cache-fil | --cache-fi \
16553 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16554 ac_prev=cache_file ;;
16555 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16556 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16557 | --c=*)
16558 ;;
16559 --config-cache | -C)
16560 ;;
16561 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16562 ac_prev=srcdir ;;
16563 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16564 ;;
16565 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16566 ac_prev=prefix ;;
16567 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16568 ;;
16569 --disable-option-checking)
16570 ;;
16571 *)
16572 case $ac_arg in
16573 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16574 esac
16575 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16576 esac
16577 done
16578
16579 # Always prepend --prefix to ensure using the same prefix
16580 # in subdir configurations.
16581 ac_arg="--prefix=$prefix"
16582 case $ac_arg in
16583 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16584 esac
16585 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16586
16587 # Pass --silent
16588 if test "$silent" = yes; then
16589 ac_sub_configure_args="--silent $ac_sub_configure_args"
16590 fi
16591
16592 # Always prepend --disable-option-checking to silence warnings, since
16593 # different subdirs can have different --enable and --with options.
16594 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16595
16596 ac_popdir=`pwd`
16597 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16598
16599 # Do not complain, so a configure script can configure whichever
16600 # parts of a large source tree are present.
16601 test -d "$srcdir/$ac_dir" || continue
16602
16603 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16604 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16605 $as_echo "$ac_msg" >&6
16606 as_dir="$ac_dir"; as_fn_mkdir_p
16607 ac_builddir=.
16608
16609 case "$ac_dir" in
16610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16611 *)
16612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16613 # A ".." for each directory in $ac_dir_suffix.
16614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16615 case $ac_top_builddir_sub in
16616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16618 esac ;;
16619 esac
16620 ac_abs_top_builddir=$ac_pwd
16621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16622 # for backward compatibility:
16623 ac_top_builddir=$ac_top_build_prefix
16624
16625 case $srcdir in
16626 .) # We are building in place.
16627 ac_srcdir=.
16628 ac_top_srcdir=$ac_top_builddir_sub
16629 ac_abs_top_srcdir=$ac_pwd ;;
16630 [\\/]* | ?:[\\/]* ) # Absolute name.
16631 ac_srcdir=$srcdir$ac_dir_suffix;
16632 ac_top_srcdir=$srcdir
16633 ac_abs_top_srcdir=$srcdir ;;
16634 *) # Relative name.
16635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16636 ac_top_srcdir=$ac_top_build_prefix$srcdir
16637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16638 esac
16639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16640
16641
16642 cd "$ac_dir"
16643
16644 # Check for guested configure; otherwise get Cygnus style configure.
16645 if test -f "$ac_srcdir/configure.gnu"; then
16646 ac_sub_configure=$ac_srcdir/configure.gnu
16647 elif test -f "$ac_srcdir/configure"; then
16648 ac_sub_configure=$ac_srcdir/configure
16649 elif test -f "$ac_srcdir/configure.in"; then
16650 # This should be Cygnus configure.
16651 ac_sub_configure=$ac_aux_dir/configure
16652 else
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16655 ac_sub_configure=
16656 fi
16657
16658 # The recursion is here.
16659 if test -n "$ac_sub_configure"; then
16660 # Make the cache file name correct relative to the subdirectory.
16661 case $cache_file in
16662 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16663 *) # Relative name.
16664 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16665 esac
16666
16667 { $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
16668 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16669 # The eval makes quoting arguments work.
16670 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16671 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16672 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16673 fi
16674
16675 cd "$ac_popdir"
16676 done
16677 fi
16678 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16680 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16681 fi
16682