]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/configure
sim: unify gettext/intl probing logic
[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_ENABLE_IGEN_FALSE
642 SIM_ENABLE_IGEN_TRUE
643 subdirs
644 SIM_PRIMARY_TARGET
645 AM_BACKSLASH
646 AM_DEFAULT_VERBOSITY
647 AM_DEFAULT_V
648 AM_V
649 am__fastdepCC_FALSE
650 am__fastdepCC_TRUE
651 CCDEPMODE
652 am__nodep
653 AMDEPBACKSLASH
654 AMDEP_FALSE
655 AMDEP_TRUE
656 am__quote
657 am__include
658 DEPDIR
659 am__untar
660 am__tar
661 AMTAR
662 am__leading_dot
663 SET_MAKE
664 mkdir_p
665 MKDIR_P
666 INSTALL_STRIP_PROGRAM
667 install_sh
668 MAKEINFO
669 AUTOHEADER
670 AUTOMAKE
671 AUTOCONF
672 ACLOCAL
673 VERSION
674 PACKAGE
675 CYGPATH_W
676 am__isrc
677 MAINT
678 MAINTAINER_MODE_FALSE
679 MAINTAINER_MODE_TRUE
680 lt_cv_dlopen_libs
681 OTOOL64
682 OTOOL
683 LIPO
684 NMEDIT
685 DSYMUTIL
686 AWK
687 STRIP
688 OBJDUMP
689 LN_S
690 NM
691 ac_ct_DUMPBIN
692 DUMPBIN
693 LD
694 FGREP
695 SED
696 LIBTOOL
697 PLUGINS_FALSE
698 PLUGINS_TRUE
699 zlibinc
700 zlibdir
701 CATOBJEXT
702 GENCAT
703 INSTOBJEXT
704 DATADIRNAME
705 CATALOGS
706 POSUB
707 GMSGFMT
708 XGETTEXT
709 INCINTL
710 LIBINTL_DEP
711 LIBINTL
712 USE_NLS
713 LIBOBJS
714 C_DIALECT
715 RANLIB
716 AR
717 LDFLAGS_FOR_BUILD
718 CFLAGS_FOR_BUILD
719 RANLIB_FOR_BUILD
720 CC_FOR_BUILD
721 AR_FOR_BUILD
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 EGREP
726 GREP
727 CPP
728 OBJEXT
729 EXEEXT
730 ac_ct_CC
731 CPPFLAGS
732 LDFLAGS
733 CFLAGS
734 CC
735 target_os
736 target_vendor
737 target_cpu
738 target
739 host_os
740 host_vendor
741 host_cpu
742 host
743 build_os
744 build_vendor
745 build_cpu
746 build
747 REPORT_BUGS_TEXI
748 REPORT_BUGS_TO
749 PKGVERSION
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL
788 WERROR_CFLAGS
789 WARN_CFLAGS'
790 ac_subst_files=''
791 ac_user_opts='
792 enable_option_checking
793 with_pkgversion
794 with_bugurl
795 with_system_zlib
796 enable_plugins
797 enable_shared
798 enable_static
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 enable_libtool_lock
803 enable_maintainer_mode
804 enable_dependency_tracking
805 enable_silent_rules
806 enable_sim
807 enable_example_sims
808 enable_targets
809 enable_sim_alignment
810 enable_sim_assert
811 enable_sim_debug
812 enable_sim_endian
813 enable_sim_environment
814 enable_sim_profile
815 enable_sim_stdio
816 enable_sim_trace
817 enable_werror
818 enable_build_warnings
819 enable_sim_build_warnings
820 '
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
824 CC
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
829 CPP'
830 ac_subdirs_all='aarch64
831 arm
832 avr
833 bfin
834 bpf
835 cr16
836 cris
837 d10v
838 frv
839 h8300
840 iq2000
841 lm32
842 m32c
843 m32r
844 m68hc11
845 mcore
846 microblaze
847 mips
848 mn10300
849 moxie
850 msp430
851 or1k
852 pru
853 riscv
854 rl78
855 rx
856 sh
857 erc32
858 ppc
859 ft32
860 v850
861 example-synacor'
862
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
884
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
910
911 ac_prev=
912 ac_dashdash=
913 for ac_option
914 do
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
918 ac_prev=
919 continue
920 fi
921
922 case $ac_option in
923 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 *=) ac_optarg= ;;
925 *) ac_optarg=yes ;;
926 esac
927
928 # Accept the important Cygnus configure options, so we can diagnose typos.
929
930 case $ac_dashdash$ac_option in
931 --)
932 ac_dashdash=yes ;;
933
934 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 ac_prev=bindir ;;
936 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937 bindir=$ac_optarg ;;
938
939 -build | --build | --buil | --bui | --bu)
940 ac_prev=build_alias ;;
941 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942 build_alias=$ac_optarg ;;
943
944 -cache-file | --cache-file | --cache-fil | --cache-fi \
945 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946 ac_prev=cache_file ;;
947 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949 cache_file=$ac_optarg ;;
950
951 --config-cache | -C)
952 cache_file=config.cache ;;
953
954 -datadir | --datadir | --datadi | --datad)
955 ac_prev=datadir ;;
956 -datadir=* | --datadir=* | --datadi=* | --datad=*)
957 datadir=$ac_optarg ;;
958
959 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960 | --dataroo | --dataro | --datar)
961 ac_prev=datarootdir ;;
962 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964 datarootdir=$ac_optarg ;;
965
966 -disable-* | --disable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=no ;;
981
982 -docdir | --docdir | --docdi | --doc | --do)
983 ac_prev=docdir ;;
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985 docdir=$ac_optarg ;;
986
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988 ac_prev=dvidir ;;
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990 dvidir=$ac_optarg ;;
991
992 -enable-* | --enable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1000 *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=\$ac_optarg ;;
1007
1008 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010 | --exec | --exe | --ex)
1011 ac_prev=exec_prefix ;;
1012 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014 | --exec=* | --exe=* | --ex=*)
1015 exec_prefix=$ac_optarg ;;
1016
1017 -gas | --gas | --ga | --g)
1018 # Obsolete; use --with-gas.
1019 with_gas=yes ;;
1020
1021 -help | --help | --hel | --he | -h)
1022 ac_init_help=long ;;
1023 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024 ac_init_help=recursive ;;
1025 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026 ac_init_help=short ;;
1027
1028 -host | --host | --hos | --ho)
1029 ac_prev=host_alias ;;
1030 -host=* | --host=* | --hos=* | --ho=*)
1031 host_alias=$ac_optarg ;;
1032
1033 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034 ac_prev=htmldir ;;
1035 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036 | --ht=*)
1037 htmldir=$ac_optarg ;;
1038
1039 -includedir | --includedir | --includedi | --included | --include \
1040 | --includ | --inclu | --incl | --inc)
1041 ac_prev=includedir ;;
1042 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043 | --includ=* | --inclu=* | --incl=* | --inc=*)
1044 includedir=$ac_optarg ;;
1045
1046 -infodir | --infodir | --infodi | --infod | --info | --inf)
1047 ac_prev=infodir ;;
1048 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049 infodir=$ac_optarg ;;
1050
1051 -libdir | --libdir | --libdi | --libd)
1052 ac_prev=libdir ;;
1053 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054 libdir=$ac_optarg ;;
1055
1056 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057 | --libexe | --libex | --libe)
1058 ac_prev=libexecdir ;;
1059 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060 | --libexe=* | --libex=* | --libe=*)
1061 libexecdir=$ac_optarg ;;
1062
1063 -localedir | --localedir | --localedi | --localed | --locale)
1064 ac_prev=localedir ;;
1065 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066 localedir=$ac_optarg ;;
1067
1068 -localstatedir | --localstatedir | --localstatedi | --localstated \
1069 | --localstate | --localstat | --localsta | --localst | --locals)
1070 ac_prev=localstatedir ;;
1071 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073 localstatedir=$ac_optarg ;;
1074
1075 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076 ac_prev=mandir ;;
1077 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078 mandir=$ac_optarg ;;
1079
1080 -nfp | --nfp | --nf)
1081 # Obsolete; use --without-fp.
1082 with_fp=no ;;
1083
1084 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085 | --no-cr | --no-c | -n)
1086 no_create=yes ;;
1087
1088 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090 no_recursion=yes ;;
1091
1092 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094 | --oldin | --oldi | --old | --ol | --o)
1095 ac_prev=oldincludedir ;;
1096 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099 oldincludedir=$ac_optarg ;;
1100
1101 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102 ac_prev=prefix ;;
1103 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104 prefix=$ac_optarg ;;
1105
1106 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107 | --program-pre | --program-pr | --program-p)
1108 ac_prev=program_prefix ;;
1109 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111 program_prefix=$ac_optarg ;;
1112
1113 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114 | --program-suf | --program-su | --program-s)
1115 ac_prev=program_suffix ;;
1116 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118 program_suffix=$ac_optarg ;;
1119
1120 -program-transform-name | --program-transform-name \
1121 | --program-transform-nam | --program-transform-na \
1122 | --program-transform-n | --program-transform- \
1123 | --program-transform | --program-transfor \
1124 | --program-transfo | --program-transf \
1125 | --program-trans | --program-tran \
1126 | --progr-tra | --program-tr | --program-t)
1127 ac_prev=program_transform_name ;;
1128 -program-transform-name=* | --program-transform-name=* \
1129 | --program-transform-nam=* | --program-transform-na=* \
1130 | --program-transform-n=* | --program-transform-=* \
1131 | --program-transform=* | --program-transfor=* \
1132 | --program-transfo=* | --program-transf=* \
1133 | --program-trans=* | --program-tran=* \
1134 | --progr-tra=* | --program-tr=* | --program-t=*)
1135 program_transform_name=$ac_optarg ;;
1136
1137 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138 ac_prev=pdfdir ;;
1139 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140 pdfdir=$ac_optarg ;;
1141
1142 -psdir | --psdir | --psdi | --psd | --ps)
1143 ac_prev=psdir ;;
1144 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145 psdir=$ac_optarg ;;
1146
1147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148 | -silent | --silent | --silen | --sile | --sil)
1149 silent=yes ;;
1150
1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152 ac_prev=sbindir ;;
1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154 | --sbi=* | --sb=*)
1155 sbindir=$ac_optarg ;;
1156
1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159 | --sharedst | --shareds | --shared | --share | --shar \
1160 | --sha | --sh)
1161 ac_prev=sharedstatedir ;;
1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165 | --sha=* | --sh=*)
1166 sharedstatedir=$ac_optarg ;;
1167
1168 -site | --site | --sit)
1169 ac_prev=site ;;
1170 -site=* | --site=* | --sit=*)
1171 site=$ac_optarg ;;
1172
1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174 ac_prev=srcdir ;;
1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176 srcdir=$ac_optarg ;;
1177
1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179 | --syscon | --sysco | --sysc | --sys | --sy)
1180 ac_prev=sysconfdir ;;
1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183 sysconfdir=$ac_optarg ;;
1184
1185 -target | --target | --targe | --targ | --tar | --ta | --t)
1186 ac_prev=target_alias ;;
1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188 target_alias=$ac_optarg ;;
1189
1190 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191 verbose=yes ;;
1192
1193 -version | --version | --versio | --versi | --vers | -V)
1194 ac_init_version=: ;;
1195
1196 -with-* | --with-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=\$ac_optarg ;;
1211
1212 -without-* | --without-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=no ;;
1227
1228 --x)
1229 # Obsolete; use --with-x.
1230 with_x=yes ;;
1231
1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233 | --x-incl | --x-inc | --x-in | --x-i)
1234 ac_prev=x_includes ;;
1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237 x_includes=$ac_optarg ;;
1238
1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241 ac_prev=x_libraries ;;
1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244 x_libraries=$ac_optarg ;;
1245
1246 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247 Try \`$0 --help' for more information"
1248 ;;
1249
1250 *=*)
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 case $ac_envvar in #(
1254 '' | [0-9]* | *[!_$as_cr_alnum]* )
1255 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1256 esac
1257 eval $ac_envvar=\$ac_optarg
1258 export $ac_envvar ;;
1259
1260 *)
1261 # FIXME: should be removed in autoconf 3.0.
1262 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266 ;;
1267
1268 esac
1269 done
1270
1271 if test -n "$ac_prev"; then
1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273 as_fn_error $? "missing argument to $ac_option"
1274 fi
1275
1276 if test -n "$ac_unrecognized_opts"; then
1277 case $enable_option_checking in
1278 no) ;;
1279 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 esac
1282 fi
1283
1284 # Check all directory arguments for consistency.
1285 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir
1289 do
1290 eval ac_val=\$$ac_var
1291 # Remove trailing slashes.
1292 case $ac_val in
1293 */ )
1294 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295 eval $ac_var=\$ac_val;;
1296 esac
1297 # Be sure to have absolute directory names.
1298 case $ac_val in
1299 [\\/$]* | ?:[\\/]* ) continue;;
1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301 esac
1302 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1303 done
1304
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1308 build=$build_alias
1309 host=$host_alias
1310 target=$target_alias
1311
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314 if test "x$build_alias" = x; then
1315 cross_compiling=maybe
1316 elif test "x$build_alias" != "x$host_alias"; then
1317 cross_compiling=yes
1318 fi
1319 fi
1320
1321 ac_tool_prefix=
1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324 test "$silent" = yes && exec 6>/dev/null
1325
1326
1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di=`ls -di .` &&
1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330 as_fn_error $? "working directory cannot be determined"
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 as_fn_error $? "pwd does not report name of working directory"
1333
1334
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337 ac_srcdir_defaulted=yes
1338 # Try the directory containing this script, then the parent directory.
1339 ac_confdir=`$as_dirname -- "$as_myself" ||
1340 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$as_myself" : 'X\(//\)[^/]' \| \
1342 X"$as_myself" : 'X\(//\)$' \| \
1343 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344 $as_echo X"$as_myself" |
1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)[^/].*/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)$/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\).*/{
1358 s//\1/
1359 q
1360 }
1361 s/.*/./; q'`
1362 srcdir=$ac_confdir
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 srcdir=..
1365 fi
1366 else
1367 ac_srcdir_defaulted=no
1368 fi
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1372 fi
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 ac_abs_confdir=`(
1375 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376 pwd)`
1377 # When building in place, set srcdir=.
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 srcdir=.
1380 fi
1381 # Remove unnecessary trailing slashes from srcdir.
1382 # Double slashes in file names in object file debugging info
1383 # mess up M-x gdb in Emacs.
1384 case $srcdir in
1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 esac
1387 for ac_var in $ac_precious_vars; do
1388 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_env_${ac_var}_value=\$${ac_var}
1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 done
1393
1394 #
1395 # Report the --help message.
1396 #
1397 if test "$ac_init_help" = "long"; then
1398 # Omit some internal or obsolete options to make the list less imposing.
1399 # This message is too long to be a string in the A/UX 3.1 sh.
1400 cat <<_ACEOF
1401 \`configure' configures sim 0 to adapt to many kinds of systems.
1402
1403 Usage: $0 [OPTION]... [VAR=VALUE]...
1404
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406 VAR=VALUE. See below for descriptions of some of the useful variables.
1407
1408 Defaults for the options are specified in brackets.
1409
1410 Configuration:
1411 -h, --help display this help and exit
1412 --help=short display options specific to this package
1413 --help=recursive display the short help of all the included packages
1414 -V, --version display version information and exit
1415 -q, --quiet, --silent do not print \`checking ...' messages
1416 --cache-file=FILE cache test results in FILE [disabled]
1417 -C, --config-cache alias for \`--cache-file=config.cache'
1418 -n, --no-create do not create output files
1419 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1420
1421 Installation directories:
1422 --prefix=PREFIX install architecture-independent files in PREFIX
1423 [$ac_default_prefix]
1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 [PREFIX]
1426
1427 By default, \`make install' will install all the files in
1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430 for instance \`--prefix=\$HOME'.
1431
1432 For better control, use the options below.
1433
1434 Fine tuning of the installation directories:
1435 --bindir=DIR user executables [EPREFIX/bin]
1436 --sbindir=DIR system admin executables [EPREFIX/sbin]
1437 --libexecdir=DIR program executables [EPREFIX/libexec]
1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1441 --libdir=DIR object code libraries [EPREFIX/lib]
1442 --includedir=DIR C header files [PREFIX/include]
1443 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1446 --infodir=DIR info documentation [DATAROOTDIR/info]
1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1448 --mandir=DIR man documentation [DATAROOTDIR/man]
1449 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1450 --htmldir=DIR html documentation [DOCDIR]
1451 --dvidir=DIR dvi documentation [DOCDIR]
1452 --pdfdir=DIR pdf documentation [DOCDIR]
1453 --psdir=DIR ps documentation [DOCDIR]
1454 _ACEOF
1455
1456 cat <<\_ACEOF
1457
1458 Program names:
1459 --program-prefix=PREFIX prepend PREFIX to installed program names
1460 --program-suffix=SUFFIX append SUFFIX to installed program names
1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1462
1463 System types:
1464 --build=BUILD configure for building on BUILD [guessed]
1465 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 --target=TARGET configure for building compilers for TARGET [HOST]
1467 _ACEOF
1468 fi
1469
1470 if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of sim 0:";;
1473 esac
1474 cat <<\_ACEOF
1475
1476 Optional Features:
1477 --disable-option-checking ignore unrecognized --enable/--with options
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --enable-plugins Enable support for plugins
1481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-static[=PKGS] build static libraries [default=yes]
1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
1485 --disable-libtool-lock avoid locking (might break parallel builds)
1486 --enable-maintainer-mode
1487 enable make rules and dependencies not useful (and
1488 sometimes confusing) to the casual installer
1489 --enable-dependency-tracking
1490 do not reject slow dependency extractors
1491 --disable-dependency-tracking
1492 speeds up one-time build
1493 --enable-silent-rules less verbose build output (undo: "make V=1")
1494 --disable-silent-rules verbose build output (undo: "make V=0")
1495 --enable-sim Enable the GNU simulator
1496 --enable-example-sims enable example GNU simulators
1497 --enable-targets alternative target configurations
1498 --enable-sim-alignment=align
1499 Specify strict, nonstrict or forced alignment of
1500 memory accesses
1501 --enable-sim-assert Specify whether to perform random assertions
1502 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1503 itself)
1504 --enable-sim-endian=endian
1505 Specify target byte endian orientation
1506 --enable-sim-environment=environment
1507 Specify mixed, user, virtual or operating
1508 environment
1509 --enable-sim-profile=opts
1510 Enable profiling flags
1511 --enable-sim-stdio Specify whether to use stdio for console
1512 input/output
1513 --enable-sim-trace=opts Enable tracing of simulated programs
1514 --enable-werror treat compile warnings as errors
1515 --enable-build-warnings enable build-time compiler warnings if gcc is used
1516 --enable-sim-build-warnings
1517 enable SIM specific build-time compiler warnings if
1518 gcc is used
1519
1520 Optional Packages:
1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1523 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1524 --with-bugurl=URL Direct users to URL to report a bug
1525 --with-system-zlib use installed libz
1526 --with-pic try to use only PIC/non-PIC objects [default=use
1527 both]
1528 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1529
1530 Some influential environment variables:
1531 CC C compiler command
1532 CFLAGS C compiler flags
1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1534 nonstandard directory <lib dir>
1535 LIBS libraries to pass to the linker, e.g. -l<library>
1536 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1537 you have headers in a nonstandard directory <include dir>
1538 CPP C preprocessor
1539
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1542
1543 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
1544 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
1545 _ACEOF
1546 ac_status=$?
1547 fi
1548
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554 continue
1555 ac_builddir=.
1556
1557 case "$ac_dir" in
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *)
1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 esac ;;
1567 esac
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1572
1573 case $srcdir in
1574 .) # We are building in place.
1575 ac_srcdir=.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1582 *) # Relative name.
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 esac
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1597 else
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 fi || ac_status=$?
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1601 done
1602 fi
1603
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1606 cat <<\_ACEOF
1607 sim configure 0
1608 generated by GNU Autoconf 2.69
1609
1610 Copyright (C) 2012 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1613 _ACEOF
1614 exit
1615 fi
1616
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1620
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext
1628 if { { ac_try="$ac_compile"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=1
1653 fi
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1656
1657 } # ac_fn_c_try_compile
1658
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_cpp ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_cpp conftest.$ac_ext"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } > conftest.i && {
1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 }; then :
1684 ac_retval=0
1685 else
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690 fi
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_cpp
1695
1696 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1697 # -------------------------------------------------------
1698 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1699 # the include files in INCLUDES and setting the cache variable VAR
1700 # accordingly.
1701 ac_fn_c_check_header_mongrel ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if eval \${$3+:} false; then :
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708 $as_echo_n "(cached) " >&6
1709 fi
1710 eval ac_res=\$$3
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 $as_echo "$ac_res" >&6; }
1713 else
1714 # Is the header compilable?
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1716 $as_echo_n "checking $2 usability... " >&6; }
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1719 $4
1720 #include <$2>
1721 _ACEOF
1722 if ac_fn_c_try_compile "$LINENO"; then :
1723 ac_header_compiler=yes
1724 else
1725 ac_header_compiler=no
1726 fi
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1729 $as_echo "$ac_header_compiler" >&6; }
1730
1731 # Is the header present?
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1733 $as_echo_n "checking $2 presence... " >&6; }
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1736 #include <$2>
1737 _ACEOF
1738 if ac_fn_c_try_cpp "$LINENO"; then :
1739 ac_header_preproc=yes
1740 else
1741 ac_header_preproc=no
1742 fi
1743 rm -f conftest.err conftest.i conftest.$ac_ext
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1745 $as_echo "$ac_header_preproc" >&6; }
1746
1747 # So? What about this header?
1748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1749 yes:no: )
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1751 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1753 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1754 ;;
1755 no:yes:* )
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1757 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1759 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1761 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1763 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1765 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1766 ( $as_echo "## -------------------------------------------------------------------------------------- ##
1767 ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
1768 ## -------------------------------------------------------------------------------------- ##"
1769 ) | sed "s/^/$as_me: WARNING: /" >&2
1770 ;;
1771 esac
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1776 else
1777 eval "$3=\$ac_header_compiler"
1778 fi
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 fi
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785 } # ac_fn_c_check_header_mongrel
1786
1787 # ac_fn_c_try_run LINENO
1788 # ----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1790 # that executables *can* be run.
1791 ac_fn_c_try_run ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 if { { ac_try="$ac_link"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>&5
1802 ac_status=$?
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1805 { { case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_try") 2>&5
1812 ac_status=$?
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; }; }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: program exited with status $ac_status" >&5
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821 ac_retval=$ac_status
1822 fi
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_run
1828
1829 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1830 # -------------------------------------------------------
1831 # Tests whether HEADER exists and can be compiled using the include files in
1832 # INCLUDES, setting the cache variable VAR accordingly.
1833 ac_fn_c_check_header_compile ()
1834 {
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1840 else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 $4
1844 #include <$2>
1845 _ACEOF
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847 eval "$3=yes"
1848 else
1849 eval "$3=no"
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 fi
1853 eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858 } # ac_fn_c_check_header_compile
1859
1860 # ac_fn_c_try_link LINENO
1861 # -----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_c_try_link ()
1864 {
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 rm -f conftest.$ac_objext conftest$ac_exeext
1867 if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>conftest.err
1875 ac_status=$?
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1880 fi
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_c_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest$ac_exeext && {
1886 test "$cross_compiling" = yes ||
1887 test -x conftest$ac_exeext
1888 }; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894 ac_retval=1
1895 fi
1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898 # interfere with the next link command; also delete a directory that is
1899 # left behind by Apple's compiler. We do this before executing the actions.
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1903
1904 } # ac_fn_c_try_link
1905
1906 # ac_fn_c_check_func LINENO FUNC VAR
1907 # ----------------------------------
1908 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909 ac_fn_c_check_func ()
1910 {
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if eval \${$3+:} false; then :
1915 $as_echo_n "(cached) " >&6
1916 else
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1921 #define $2 innocuous_$2
1922
1923 /* System header to define __stub macros and hopefully few prototypes,
1924 which can conflict with char $2 (); below.
1925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926 <limits.h> exists even on freestanding compilers. */
1927
1928 #ifdef __STDC__
1929 # include <limits.h>
1930 #else
1931 # include <assert.h>
1932 #endif
1933
1934 #undef $2
1935
1936 /* Override any GCC internal prototype to avoid an error.
1937 Use char because int might match the return type of a GCC
1938 builtin and then its argument prototype would still apply. */
1939 #ifdef __cplusplus
1940 extern "C"
1941 #endif
1942 char $2 ();
1943 /* The GNU C library defines this for functions which it implements
1944 to always fail with ENOSYS. Some functions are actually named
1945 something starting with __ and the normal name is an alias. */
1946 #if defined __stub_$2 || defined __stub___$2
1947 choke me
1948 #endif
1949
1950 int
1951 main ()
1952 {
1953 return $2 ();
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_link "$LINENO"; then :
1959 eval "$3=yes"
1960 else
1961 eval "$3=no"
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext \
1964 conftest$ac_exeext conftest.$ac_ext
1965 fi
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971 } # ac_fn_c_check_func
1972
1973 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1974 # ----------------------------------------------------
1975 # Tries to find if the field MEMBER exists in type AGGR, after including
1976 # INCLUDES, setting cache variable VAR accordingly.
1977 ac_fn_c_check_member ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1981 $as_echo_n "checking for $2.$3... " >&6; }
1982 if eval \${$4+:} false; then :
1983 $as_echo_n "(cached) " >&6
1984 else
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 $5
1988 int
1989 main ()
1990 {
1991 static $2 ac_aggr;
1992 if (ac_aggr.$3)
1993 return 0;
1994 ;
1995 return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999 eval "$4=yes"
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 $5
2004 int
2005 main ()
2006 {
2007 static $2 ac_aggr;
2008 if (sizeof ac_aggr.$3)
2009 return 0;
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 eval "$4=yes"
2016 else
2017 eval "$4=no"
2018 fi
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 fi
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 fi
2023 eval ac_res=\$$4
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027
2028 } # ac_fn_c_check_member
2029
2030 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2031 # ---------------------------------------------
2032 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2033 # accordingly.
2034 ac_fn_c_check_decl ()
2035 {
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 as_decl_name=`echo $2|sed 's/ *(.*//'`
2038 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2040 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2041 if eval \${$3+:} false; then :
2042 $as_echo_n "(cached) " >&6
2043 else
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 $4
2047 int
2048 main ()
2049 {
2050 #ifndef $as_decl_name
2051 #ifdef __cplusplus
2052 (void) $as_decl_use;
2053 #else
2054 (void) $as_decl_name;
2055 #endif
2056 #endif
2057
2058 ;
2059 return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063 eval "$3=yes"
2064 else
2065 eval "$3=no"
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 fi
2069 eval ac_res=\$$3
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073
2074 } # ac_fn_c_check_decl
2075
2076 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2077 # -------------------------------------------
2078 # Tests whether TYPE exists after having included INCLUDES, setting cache
2079 # variable VAR accordingly.
2080 ac_fn_c_check_type ()
2081 {
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086 $as_echo_n "(cached) " >&6
2087 else
2088 eval "$3=no"
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2091 $4
2092 int
2093 main ()
2094 {
2095 if (sizeof ($2))
2096 return 0;
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2104 $4
2105 int
2106 main ()
2107 {
2108 if (sizeof (($2)))
2109 return 0;
2110 ;
2111 return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115
2116 else
2117 eval "$3=yes"
2118 fi
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 fi
2123 eval ac_res=\$$3
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127
2128 } # ac_fn_c_check_type
2129 cat >config.log <<_ACEOF
2130 This file contains any messages produced by compilers while
2131 running configure, to aid debugging if configure makes a mistake.
2132
2133 It was created by sim $as_me 0, which was
2134 generated by GNU Autoconf 2.69. Invocation command line was
2135
2136 $ $0 $@
2137
2138 _ACEOF
2139 exec 5>>config.log
2140 {
2141 cat <<_ASUNAME
2142 ## --------- ##
2143 ## Platform. ##
2144 ## --------- ##
2145
2146 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2147 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2148 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2149 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2150 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2151
2152 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2153 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2154
2155 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2156 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2157 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2158 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2159 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2160 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2161 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2162
2163 _ASUNAME
2164
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 for as_dir in $PATH
2167 do
2168 IFS=$as_save_IFS
2169 test -z "$as_dir" && as_dir=.
2170 $as_echo "PATH: $as_dir"
2171 done
2172 IFS=$as_save_IFS
2173
2174 } >&5
2175
2176 cat >&5 <<_ACEOF
2177
2178
2179 ## ----------- ##
2180 ## Core tests. ##
2181 ## ----------- ##
2182
2183 _ACEOF
2184
2185
2186 # Keep a trace of the command line.
2187 # Strip out --no-create and --no-recursion so they do not pile up.
2188 # Strip out --silent because we don't want to record it for future runs.
2189 # Also quote any args containing shell meta-characters.
2190 # Make two passes to allow for proper duplicate-argument suppression.
2191 ac_configure_args=
2192 ac_configure_args0=
2193 ac_configure_args1=
2194 ac_must_keep_next=false
2195 for ac_pass in 1 2
2196 do
2197 for ac_arg
2198 do
2199 case $ac_arg in
2200 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2202 | -silent | --silent | --silen | --sile | --sil)
2203 continue ;;
2204 *\'*)
2205 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2206 esac
2207 case $ac_pass in
2208 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2209 2)
2210 as_fn_append ac_configure_args1 " '$ac_arg'"
2211 if test $ac_must_keep_next = true; then
2212 ac_must_keep_next=false # Got value, back to normal.
2213 else
2214 case $ac_arg in
2215 *=* | --config-cache | -C | -disable-* | --disable-* \
2216 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2217 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2218 | -with-* | --with-* | -without-* | --without-* | --x)
2219 case "$ac_configure_args0 " in
2220 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2221 esac
2222 ;;
2223 -* ) ac_must_keep_next=true ;;
2224 esac
2225 fi
2226 as_fn_append ac_configure_args " '$ac_arg'"
2227 ;;
2228 esac
2229 done
2230 done
2231 { ac_configure_args0=; unset ac_configure_args0;}
2232 { ac_configure_args1=; unset ac_configure_args1;}
2233
2234 # When interrupted or exit'd, cleanup temporary files, and complete
2235 # config.log. We remove comments because anyway the quotes in there
2236 # would cause problems or look ugly.
2237 # WARNING: Use '\'' to represent an apostrophe within the trap.
2238 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2239 trap 'exit_status=$?
2240 # Save into config.log some information that might help in debugging.
2241 {
2242 echo
2243
2244 $as_echo "## ---------------- ##
2245 ## Cache variables. ##
2246 ## ---------------- ##"
2247 echo
2248 # The following way of writing the cache mishandles newlines in values,
2249 (
2250 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2251 eval ac_val=\$$ac_var
2252 case $ac_val in #(
2253 *${as_nl}*)
2254 case $ac_var in #(
2255 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2256 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2257 esac
2258 case $ac_var in #(
2259 _ | IFS | as_nl) ;; #(
2260 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2261 *) { eval $ac_var=; unset $ac_var;} ;;
2262 esac ;;
2263 esac
2264 done
2265 (set) 2>&1 |
2266 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2267 *${as_nl}ac_space=\ *)
2268 sed -n \
2269 "s/'\''/'\''\\\\'\'''\''/g;
2270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2271 ;; #(
2272 *)
2273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2274 ;;
2275 esac |
2276 sort
2277 )
2278 echo
2279
2280 $as_echo "## ----------------- ##
2281 ## Output variables. ##
2282 ## ----------------- ##"
2283 echo
2284 for ac_var in $ac_subst_vars
2285 do
2286 eval ac_val=\$$ac_var
2287 case $ac_val in
2288 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289 esac
2290 $as_echo "$ac_var='\''$ac_val'\''"
2291 done | sort
2292 echo
2293
2294 if test -n "$ac_subst_files"; then
2295 $as_echo "## ------------------- ##
2296 ## File substitutions. ##
2297 ## ------------------- ##"
2298 echo
2299 for ac_var in $ac_subst_files
2300 do
2301 eval ac_val=\$$ac_var
2302 case $ac_val in
2303 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2304 esac
2305 $as_echo "$ac_var='\''$ac_val'\''"
2306 done | sort
2307 echo
2308 fi
2309
2310 if test -s confdefs.h; then
2311 $as_echo "## ----------- ##
2312 ## confdefs.h. ##
2313 ## ----------- ##"
2314 echo
2315 cat confdefs.h
2316 echo
2317 fi
2318 test "$ac_signal" != 0 &&
2319 $as_echo "$as_me: caught signal $ac_signal"
2320 $as_echo "$as_me: exit $exit_status"
2321 } >&5
2322 rm -f core *.core core.conftest.* &&
2323 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2324 exit $exit_status
2325 ' 0
2326 for ac_signal in 1 2 13 15; do
2327 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2328 done
2329 ac_signal=0
2330
2331 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2332 rm -f -r conftest* confdefs.h
2333
2334 $as_echo "/* confdefs.h */" > confdefs.h
2335
2336 # Predefined preprocessor variables.
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_NAME "$PACKAGE_NAME"
2340 _ACEOF
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2348 _ACEOF
2349
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_STRING "$PACKAGE_STRING"
2352 _ACEOF
2353
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2356 _ACEOF
2357
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_URL "$PACKAGE_URL"
2360 _ACEOF
2361
2362
2363 # Let the site file select an alternate cache file if it wants to.
2364 # Prefer an explicitly selected file to automatically selected ones.
2365 ac_site_file1=NONE
2366 ac_site_file2=NONE
2367 if test -n "$CONFIG_SITE"; then
2368 # We do not want a PATH search for config.site.
2369 case $CONFIG_SITE in #((
2370 -*) ac_site_file1=./$CONFIG_SITE;;
2371 */*) ac_site_file1=$CONFIG_SITE;;
2372 *) ac_site_file1=./$CONFIG_SITE;;
2373 esac
2374 elif test "x$prefix" != xNONE; then
2375 ac_site_file1=$prefix/share/config.site
2376 ac_site_file2=$prefix/etc/config.site
2377 else
2378 ac_site_file1=$ac_default_prefix/share/config.site
2379 ac_site_file2=$ac_default_prefix/etc/config.site
2380 fi
2381 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2382 do
2383 test "x$ac_site_file" = xNONE && continue
2384 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2386 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2387 sed 's/^/| /' "$ac_site_file" >&5
2388 . "$ac_site_file" \
2389 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2391 as_fn_error $? "failed to load site script $ac_site_file
2392 See \`config.log' for more details" "$LINENO" 5; }
2393 fi
2394 done
2395
2396 if test -r "$cache_file"; then
2397 # Some versions of bash will fail to source /dev/null (special files
2398 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2399 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2401 $as_echo "$as_me: loading cache $cache_file" >&6;}
2402 case $cache_file in
2403 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2404 *) . "./$cache_file";;
2405 esac
2406 fi
2407 else
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2409 $as_echo "$as_me: creating cache $cache_file" >&6;}
2410 >$cache_file
2411 fi
2412
2413 as_fn_append ac_header_list " dlfcn.h"
2414 as_fn_append ac_header_list " fcntl.h"
2415 as_fn_append ac_header_list " fpu_control.h"
2416 as_fn_append ac_header_list " termios.h"
2417 as_fn_append ac_header_list " unistd.h"
2418 as_fn_append ac_header_list " utime.h"
2419 as_fn_append ac_header_list " linux/if_tun.h"
2420 as_fn_append ac_header_list " linux/mii.h"
2421 as_fn_append ac_header_list " linux/types.h"
2422 as_fn_append ac_header_list " net/if.h"
2423 as_fn_append ac_header_list " netinet/in.h"
2424 as_fn_append ac_header_list " netinet/tcp.h"
2425 as_fn_append ac_header_list " sys/ioctl.h"
2426 as_fn_append ac_header_list " sys/mman.h"
2427 as_fn_append ac_header_list " sys/mount.h"
2428 as_fn_append ac_header_list " sys/param.h"
2429 as_fn_append ac_header_list " sys/resource.h"
2430 as_fn_append ac_header_list " sys/socket.h"
2431 as_fn_append ac_header_list " sys/stat.h"
2432 as_fn_append ac_header_list " sys/statfs.h"
2433 as_fn_append ac_header_list " sys/termio.h"
2434 as_fn_append ac_header_list " sys/termios.h"
2435 as_fn_append ac_header_list " sys/types.h"
2436 as_fn_append ac_header_list " sys/vfs.h"
2437 as_fn_append ac_func_list " __setfpucw"
2438 as_fn_append ac_func_list " access"
2439 as_fn_append ac_func_list " aint"
2440 as_fn_append ac_func_list " anint"
2441 as_fn_append ac_func_list " cfgetispeed"
2442 as_fn_append ac_func_list " cfgetospeed"
2443 as_fn_append ac_func_list " cfsetispeed"
2444 as_fn_append ac_func_list " cfsetospeed"
2445 as_fn_append ac_func_list " chdir"
2446 as_fn_append ac_func_list " chmod"
2447 as_fn_append ac_func_list " dup"
2448 as_fn_append ac_func_list " dup2"
2449 as_fn_append ac_func_list " execv"
2450 as_fn_append ac_func_list " execve"
2451 as_fn_append ac_func_list " fcntl"
2452 as_fn_append ac_func_list " fork"
2453 as_fn_append ac_func_list " fstat"
2454 as_fn_append ac_func_list " fstatfs"
2455 as_fn_append ac_func_list " ftruncate"
2456 as_fn_append ac_func_list " getdirentries"
2457 as_fn_append ac_func_list " getegid"
2458 as_fn_append ac_func_list " geteuid"
2459 as_fn_append ac_func_list " getgid"
2460 as_fn_append ac_func_list " getpid"
2461 as_fn_append ac_func_list " getppid"
2462 as_fn_append ac_func_list " getrusage"
2463 as_fn_append ac_func_list " gettimeofday"
2464 as_fn_append ac_func_list " getuid"
2465 as_fn_append ac_func_list " ioctl"
2466 as_fn_append ac_func_list " kill"
2467 as_fn_append ac_func_list " link"
2468 as_fn_append ac_func_list " lseek"
2469 as_fn_append ac_func_list " mmap"
2470 as_fn_append ac_func_list " munmap"
2471 as_fn_append ac_func_list " pipe"
2472 as_fn_append ac_func_list " posix_fallocate"
2473 as_fn_append ac_func_list " pread"
2474 as_fn_append ac_func_list " rmdir"
2475 as_fn_append ac_func_list " setregid"
2476 as_fn_append ac_func_list " setreuid"
2477 as_fn_append ac_func_list " setgid"
2478 as_fn_append ac_func_list " setuid"
2479 as_fn_append ac_func_list " sigaction"
2480 as_fn_append ac_func_list " sigprocmask"
2481 as_fn_append ac_func_list " sqrt"
2482 as_fn_append ac_func_list " stat"
2483 as_fn_append ac_func_list " strsignal"
2484 as_fn_append ac_func_list " symlink"
2485 as_fn_append ac_func_list " tcdrain"
2486 as_fn_append ac_func_list " tcflow"
2487 as_fn_append ac_func_list " tcflush"
2488 as_fn_append ac_func_list " tcgetattr"
2489 as_fn_append ac_func_list " tcgetpgrp"
2490 as_fn_append ac_func_list " tcsendbreak"
2491 as_fn_append ac_func_list " tcsetattr"
2492 as_fn_append ac_func_list " tcsetpgrp"
2493 as_fn_append ac_func_list " time"
2494 as_fn_append ac_func_list " truncate"
2495 as_fn_append ac_func_list " umask"
2496 as_fn_append ac_func_list " unlink"
2497 as_fn_append ac_func_list " utime"
2498 # Check that the precious variables saved in the cache have kept the same
2499 # value.
2500 ac_cache_corrupted=false
2501 for ac_var in $ac_precious_vars; do
2502 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2503 eval ac_new_set=\$ac_env_${ac_var}_set
2504 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2505 eval ac_new_val=\$ac_env_${ac_var}_value
2506 case $ac_old_set,$ac_new_set in
2507 set,)
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2509 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2510 ac_cache_corrupted=: ;;
2511 ,set)
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2513 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2514 ac_cache_corrupted=: ;;
2515 ,);;
2516 *)
2517 if test "x$ac_old_val" != "x$ac_new_val"; then
2518 # differences in whitespace do not lead to failure.
2519 ac_old_val_w=`echo x $ac_old_val`
2520 ac_new_val_w=`echo x $ac_new_val`
2521 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2523 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2524 ac_cache_corrupted=:
2525 else
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2527 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2528 eval $ac_var=\$ac_old_val
2529 fi
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2531 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2533 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2534 fi;;
2535 esac
2536 # Pass precious variables to config.status.
2537 if test "$ac_new_set" = set; then
2538 case $ac_new_val in
2539 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2540 *) ac_arg=$ac_var=$ac_new_val ;;
2541 esac
2542 case " $ac_configure_args " in
2543 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2544 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2545 esac
2546 fi
2547 done
2548 if $ac_cache_corrupted; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2552 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2553 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2554 fi
2555 ## -------------------- ##
2556 ## Main body of script. ##
2557 ## -------------------- ##
2558
2559 ac_ext=c
2560 ac_cpp='$CPP $CPPFLAGS'
2561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2564
2565
2566
2567
2568
2569
2570
2571
2572 # Check whether --with-pkgversion was given.
2573 if test "${with_pkgversion+set}" = set; then :
2574 withval=$with_pkgversion; case "$withval" in
2575 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2576 no) PKGVERSION= ;;
2577 *) PKGVERSION="($withval) " ;;
2578 esac
2579 else
2580 PKGVERSION="(SIM) "
2581
2582 fi
2583
2584
2585
2586
2587 cat >>confdefs.h <<_ACEOF
2588 #define PKGVERSION "$PKGVERSION"
2589 _ACEOF
2590
2591
2592
2593 # Check whether --with-bugurl was given.
2594 if test "${with_bugurl+set}" = set; then :
2595 withval=$with_bugurl; case "$withval" in
2596 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2597 no) BUGURL=
2598 ;;
2599 *) BUGURL="$withval"
2600 ;;
2601 esac
2602 else
2603 BUGURL="$PACKAGE_BUGREPORT"
2604
2605 fi
2606
2607 case ${BUGURL} in
2608 "")
2609 REPORT_BUGS_TO=
2610 REPORT_BUGS_TEXI=
2611 ;;
2612 *)
2613 REPORT_BUGS_TO="<$BUGURL>"
2614 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2615 ;;
2616 esac;
2617
2618
2619
2620
2621 cat >>confdefs.h <<_ACEOF
2622 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2623 _ACEOF
2624
2625
2626 ac_config_headers="$ac_config_headers config.h"
2627
2628
2629 ac_aux_dir=
2630 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2631 if test -f "$ac_dir/install-sh"; then
2632 ac_aux_dir=$ac_dir
2633 ac_install_sh="$ac_aux_dir/install-sh -c"
2634 break
2635 elif test -f "$ac_dir/install.sh"; then
2636 ac_aux_dir=$ac_dir
2637 ac_install_sh="$ac_aux_dir/install.sh -c"
2638 break
2639 elif test -f "$ac_dir/shtool"; then
2640 ac_aux_dir=$ac_dir
2641 ac_install_sh="$ac_aux_dir/shtool install -c"
2642 break
2643 fi
2644 done
2645 if test -z "$ac_aux_dir"; then
2646 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2647 fi
2648
2649 # These three variables are undocumented and unsupported,
2650 # and are intended to be withdrawn in a future Autoconf release.
2651 # They can cause serious problems if a builder's source tree is in a directory
2652 # whose full name contains unusual characters.
2653 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2654 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2655 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2656
2657
2658 # Make sure we can run config.sub.
2659 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2660 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2661
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2663 $as_echo_n "checking build system type... " >&6; }
2664 if ${ac_cv_build+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 ac_build_alias=$build_alias
2668 test "x$ac_build_alias" = x &&
2669 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2670 test "x$ac_build_alias" = x &&
2671 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2672 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2673 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2674
2675 fi
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2677 $as_echo "$ac_cv_build" >&6; }
2678 case $ac_cv_build in
2679 *-*-*) ;;
2680 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2681 esac
2682 build=$ac_cv_build
2683 ac_save_IFS=$IFS; IFS='-'
2684 set x $ac_cv_build
2685 shift
2686 build_cpu=$1
2687 build_vendor=$2
2688 shift; shift
2689 # Remember, the first character of IFS is used to create $*,
2690 # except with old shells:
2691 build_os=$*
2692 IFS=$ac_save_IFS
2693 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2694
2695
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2697 $as_echo_n "checking host system type... " >&6; }
2698 if ${ac_cv_host+:} false; then :
2699 $as_echo_n "(cached) " >&6
2700 else
2701 if test "x$host_alias" = x; then
2702 ac_cv_host=$ac_cv_build
2703 else
2704 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2705 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2706 fi
2707
2708 fi
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2710 $as_echo "$ac_cv_host" >&6; }
2711 case $ac_cv_host in
2712 *-*-*) ;;
2713 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2714 esac
2715 host=$ac_cv_host
2716 ac_save_IFS=$IFS; IFS='-'
2717 set x $ac_cv_host
2718 shift
2719 host_cpu=$1
2720 host_vendor=$2
2721 shift; shift
2722 # Remember, the first character of IFS is used to create $*,
2723 # except with old shells:
2724 host_os=$*
2725 IFS=$ac_save_IFS
2726 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2727
2728
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2730 $as_echo_n "checking target system type... " >&6; }
2731 if ${ac_cv_target+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733 else
2734 if test "x$target_alias" = x; then
2735 ac_cv_target=$ac_cv_host
2736 else
2737 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2738 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2739 fi
2740
2741 fi
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2743 $as_echo "$ac_cv_target" >&6; }
2744 case $ac_cv_target in
2745 *-*-*) ;;
2746 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2747 esac
2748 target=$ac_cv_target
2749 ac_save_IFS=$IFS; IFS='-'
2750 set x $ac_cv_target
2751 shift
2752 target_cpu=$1
2753 target_vendor=$2
2754 shift; shift
2755 # Remember, the first character of IFS is used to create $*,
2756 # except with old shells:
2757 target_os=$*
2758 IFS=$ac_save_IFS
2759 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2760
2761
2762 # The aliases save the names the user supplied, while $host etc.
2763 # will get canonicalized.
2764 test -n "$target_alias" &&
2765 test "$program_prefix$program_suffix$program_transform_name" = \
2766 NONENONEs,x,x, &&
2767 program_prefix=${target_alias}-
2768 # Expand $ac_aux_dir to an absolute path.
2769 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2770
2771 ac_ext=c
2772 ac_cpp='$CPP $CPPFLAGS'
2773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776 if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2778 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if ${ac_cv_prog_CC+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783 else
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798 done
2799 done
2800 IFS=$as_save_IFS
2801
2802 fi
2803 fi
2804 CC=$ac_cv_prog_CC
2805 if test -n "$CC"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2807 $as_echo "$CC" >&6; }
2808 else
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2811 fi
2812
2813
2814 fi
2815 if test -z "$ac_cv_prog_CC"; then
2816 ac_ct_CC=$CC
2817 # Extract the first word of "gcc", so it can be a program name with args.
2818 set dummy gcc; ac_word=$2
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 if test -n "$ac_ct_CC"; then
2825 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2829 do
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834 ac_cv_prog_ac_ct_CC="gcc"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2837 fi
2838 done
2839 done
2840 IFS=$as_save_IFS
2841
2842 fi
2843 fi
2844 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2845 if test -n "$ac_ct_CC"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2847 $as_echo "$ac_ct_CC" >&6; }
2848 else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2851 fi
2852
2853 if test "x$ac_ct_CC" = x; then
2854 CC=""
2855 else
2856 case $cross_compiling:$ac_tool_warned in
2857 yes:)
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860 ac_tool_warned=yes ;;
2861 esac
2862 CC=$ac_ct_CC
2863 fi
2864 else
2865 CC="$ac_cv_prog_CC"
2866 fi
2867
2868 if test -z "$CC"; then
2869 if test -n "$ac_tool_prefix"; then
2870 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2871 set dummy ${ac_tool_prefix}cc; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_CC+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 if test -n "$CC"; then
2878 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_CC="${ac_tool_prefix}cc"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 fi
2896 fi
2897 CC=$ac_cv_prog_CC
2898 if test -n "$CC"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2900 $as_echo "$CC" >&6; }
2901 else
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2904 fi
2905
2906
2907 fi
2908 fi
2909 if test -z "$CC"; then
2910 # Extract the first word of "cc", so it can be a program name with args.
2911 set dummy cc; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_CC+:} false; then :
2915 $as_echo_n "(cached) " >&6
2916 else
2917 if test -n "$CC"; then
2918 ac_cv_prog_CC="$CC" # Let the user override the test.
2919 else
2920 ac_prog_rejected=no
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2929 ac_prog_rejected=yes
2930 continue
2931 fi
2932 ac_cv_prog_CC="cc"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2939
2940 if test $ac_prog_rejected = yes; then
2941 # We found a bogon in the path, so make sure we never use it.
2942 set dummy $ac_cv_prog_CC
2943 shift
2944 if test $# != 0; then
2945 # We chose a different compiler from the bogus one.
2946 # However, it has the same basename, so the bogon will be chosen
2947 # first if we set CC to just the basename; use the full file name.
2948 shift
2949 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2950 fi
2951 fi
2952 fi
2953 fi
2954 CC=$ac_cv_prog_CC
2955 if test -n "$CC"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957 $as_echo "$CC" >&6; }
2958 else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2961 fi
2962
2963
2964 fi
2965 if test -z "$CC"; then
2966 if test -n "$ac_tool_prefix"; then
2967 for ac_prog in cl.exe
2968 do
2969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if ${ac_cv_prog_CC+:} false; then :
2974 $as_echo_n "(cached) " >&6
2975 else
2976 if test -n "$CC"; then
2977 ac_cv_prog_CC="$CC" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2989 fi
2990 done
2991 done
2992 IFS=$as_save_IFS
2993
2994 fi
2995 fi
2996 CC=$ac_cv_prog_CC
2997 if test -n "$CC"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2999 $as_echo "$CC" >&6; }
3000 else
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3003 fi
3004
3005
3006 test -n "$CC" && break
3007 done
3008 fi
3009 if test -z "$CC"; then
3010 ac_ct_CC=$CC
3011 for ac_prog in cl.exe
3012 do
3013 # Extract the first word of "$ac_prog", so it can be a program name with args.
3014 set dummy $ac_prog; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3018 $as_echo_n "(cached) " >&6
3019 else
3020 if test -n "$ac_ct_CC"; then
3021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030 ac_cv_prog_ac_ct_CC="$ac_prog"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 break 2
3033 fi
3034 done
3035 done
3036 IFS=$as_save_IFS
3037
3038 fi
3039 fi
3040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3041 if test -n "$ac_ct_CC"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3043 $as_echo "$ac_ct_CC" >&6; }
3044 else
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 fi
3048
3049
3050 test -n "$ac_ct_CC" && break
3051 done
3052
3053 if test "x$ac_ct_CC" = x; then
3054 CC=""
3055 else
3056 case $cross_compiling:$ac_tool_warned in
3057 yes:)
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3060 ac_tool_warned=yes ;;
3061 esac
3062 CC=$ac_ct_CC
3063 fi
3064 fi
3065
3066 fi
3067
3068
3069 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 as_fn_error $? "no acceptable C compiler found in \$PATH
3072 See \`config.log' for more details" "$LINENO" 5; }
3073
3074 # Provide some information about the compiler.
3075 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3076 set X $ac_compile
3077 ac_compiler=$2
3078 for ac_option in --version -v -V -qversion; do
3079 { { ac_try="$ac_compiler $ac_option >&5"
3080 case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083 esac
3084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085 $as_echo "$ac_try_echo"; } >&5
3086 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3087 ac_status=$?
3088 if test -s conftest.err; then
3089 sed '10a\
3090 ... rest of stderr output deleted ...
3091 10q' conftest.err >conftest.er1
3092 cat conftest.er1 >&5
3093 fi
3094 rm -f conftest.er1 conftest.err
3095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3096 test $ac_status = 0; }
3097 done
3098
3099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3100 /* end confdefs.h. */
3101
3102 int
3103 main ()
3104 {
3105
3106 ;
3107 return 0;
3108 }
3109 _ACEOF
3110 ac_clean_files_save=$ac_clean_files
3111 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3112 # Try to create an executable without -o first, disregard a.out.
3113 # It will help us diagnose broken compilers, and finding out an intuition
3114 # of exeext.
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3116 $as_echo_n "checking whether the C compiler works... " >&6; }
3117 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3118
3119 # The possible output files:
3120 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3121
3122 ac_rmfiles=
3123 for ac_file in $ac_files
3124 do
3125 case $ac_file in
3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3127 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3128 esac
3129 done
3130 rm -f $ac_rmfiles
3131
3132 if { { ac_try="$ac_link_default"
3133 case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136 esac
3137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138 $as_echo "$ac_try_echo"; } >&5
3139 (eval "$ac_link_default") 2>&5
3140 ac_status=$?
3141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3142 test $ac_status = 0; }; then :
3143 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3144 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3145 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3146 # so that the user can short-circuit this test for compilers unknown to
3147 # Autoconf.
3148 for ac_file in $ac_files ''
3149 do
3150 test -f "$ac_file" || continue
3151 case $ac_file in
3152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3153 ;;
3154 [ab].out )
3155 # We found the default executable, but exeext='' is most
3156 # certainly right.
3157 break;;
3158 *.* )
3159 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3160 then :; else
3161 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3162 fi
3163 # We set ac_cv_exeext here because the later test for it is not
3164 # safe: cross compilers may not add the suffix if given an `-o'
3165 # argument, so we may need to know it at that point already.
3166 # Even if this section looks crufty: it has the advantage of
3167 # actually working.
3168 break;;
3169 * )
3170 break;;
3171 esac
3172 done
3173 test "$ac_cv_exeext" = no && ac_cv_exeext=
3174
3175 else
3176 ac_file=''
3177 fi
3178 if test -z "$ac_file"; then :
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 $as_echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3183
3184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 as_fn_error 77 "C compiler cannot create executables
3187 See \`config.log' for more details" "$LINENO" 5; }
3188 else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3190 $as_echo "yes" >&6; }
3191 fi
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3193 $as_echo_n "checking for C compiler default output file name... " >&6; }
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3195 $as_echo "$ac_file" >&6; }
3196 ac_exeext=$ac_cv_exeext
3197
3198 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3199 ac_clean_files=$ac_clean_files_save
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3201 $as_echo_n "checking for suffix of executables... " >&6; }
3202 if { { ac_try="$ac_link"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 $as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_link") 2>&5
3210 ac_status=$?
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }; then :
3213 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3214 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3215 # work properly (i.e., refer to `conftest.exe'), while it won't with
3216 # `rm'.
3217 for ac_file in conftest.exe conftest conftest.*; do
3218 test -f "$ac_file" || continue
3219 case $ac_file in
3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3221 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222 break;;
3223 * ) break;;
3224 esac
3225 done
3226 else
3227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3230 See \`config.log' for more details" "$LINENO" 5; }
3231 fi
3232 rm -f conftest conftest$ac_cv_exeext
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3234 $as_echo "$ac_cv_exeext" >&6; }
3235
3236 rm -f conftest.$ac_ext
3237 EXEEXT=$ac_cv_exeext
3238 ac_exeext=$EXEEXT
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3241 #include <stdio.h>
3242 int
3243 main ()
3244 {
3245 FILE *f = fopen ("conftest.out", "w");
3246 return ferror (f) || fclose (f) != 0;
3247
3248 ;
3249 return 0;
3250 }
3251 _ACEOF
3252 ac_clean_files="$ac_clean_files conftest.out"
3253 # Check that the compiler produces executables we can run. If not, either
3254 # the compiler is broken, or we cross compile.
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3256 $as_echo_n "checking whether we are cross compiling... " >&6; }
3257 if test "$cross_compiling" != yes; then
3258 { { ac_try="$ac_link"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_link") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }
3269 if { ac_try='./conftest$ac_cv_exeext'
3270 { { case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_try") 2>&5
3277 ac_status=$?
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }; }; then
3280 cross_compiling=no
3281 else
3282 if test "$cross_compiling" = maybe; then
3283 cross_compiling=yes
3284 else
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 as_fn_error $? "cannot run C compiled programs.
3288 If you meant to cross compile, use \`--host'.
3289 See \`config.log' for more details" "$LINENO" 5; }
3290 fi
3291 fi
3292 fi
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3294 $as_echo "$cross_compiling" >&6; }
3295
3296 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3297 ac_clean_files=$ac_clean_files_save
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3299 $as_echo_n "checking for suffix of object files... " >&6; }
3300 if ${ac_cv_objext+:} false; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3305
3306 int
3307 main ()
3308 {
3309
3310 ;
3311 return 0;
3312 }
3313 _ACEOF
3314 rm -f conftest.o conftest.obj
3315 if { { ac_try="$ac_compile"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_compile") 2>&5
3323 ac_status=$?
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
3326 for ac_file in conftest.o conftest.obj conftest.*; do
3327 test -f "$ac_file" || continue;
3328 case $ac_file in
3329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3330 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3331 break;;
3332 esac
3333 done
3334 else
3335 $as_echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error $? "cannot compute suffix of object files: cannot compile
3341 See \`config.log' for more details" "$LINENO" 5; }
3342 fi
3343 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3344 fi
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3346 $as_echo "$ac_cv_objext" >&6; }
3347 OBJEXT=$ac_cv_objext
3348 ac_objext=$OBJEXT
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3350 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3351 if ${ac_cv_c_compiler_gnu+:} false; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3356
3357 int
3358 main ()
3359 {
3360 #ifndef __GNUC__
3361 choke me
3362 #endif
3363
3364 ;
3365 return 0;
3366 }
3367 _ACEOF
3368 if ac_fn_c_try_compile "$LINENO"; then :
3369 ac_compiler_gnu=yes
3370 else
3371 ac_compiler_gnu=no
3372 fi
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3375
3376 fi
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3378 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3379 if test $ac_compiler_gnu = yes; then
3380 GCC=yes
3381 else
3382 GCC=
3383 fi
3384 ac_test_CFLAGS=${CFLAGS+set}
3385 ac_save_CFLAGS=$CFLAGS
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3387 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3388 if ${ac_cv_prog_cc_g+:} false; then :
3389 $as_echo_n "(cached) " >&6
3390 else
3391 ac_save_c_werror_flag=$ac_c_werror_flag
3392 ac_c_werror_flag=yes
3393 ac_cv_prog_cc_g=no
3394 CFLAGS="-g"
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3397
3398 int
3399 main ()
3400 {
3401
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 if ac_fn_c_try_compile "$LINENO"; then :
3407 ac_cv_prog_cc_g=yes
3408 else
3409 CFLAGS=""
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3412
3413 int
3414 main ()
3415 {
3416
3417 ;
3418 return 0;
3419 }
3420 _ACEOF
3421 if ac_fn_c_try_compile "$LINENO"; then :
3422
3423 else
3424 ac_c_werror_flag=$ac_save_c_werror_flag
3425 CFLAGS="-g"
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3428
3429 int
3430 main ()
3431 {
3432
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 if ac_fn_c_try_compile "$LINENO"; then :
3438 ac_cv_prog_cc_g=yes
3439 fi
3440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441 fi
3442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443 fi
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_c_werror_flag=$ac_save_c_werror_flag
3446 fi
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3448 $as_echo "$ac_cv_prog_cc_g" >&6; }
3449 if test "$ac_test_CFLAGS" = set; then
3450 CFLAGS=$ac_save_CFLAGS
3451 elif test $ac_cv_prog_cc_g = yes; then
3452 if test "$GCC" = yes; then
3453 CFLAGS="-g -O2"
3454 else
3455 CFLAGS="-g"
3456 fi
3457 else
3458 if test "$GCC" = yes; then
3459 CFLAGS="-O2"
3460 else
3461 CFLAGS=
3462 fi
3463 fi
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3465 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3466 if ${ac_cv_prog_cc_c89+:} false; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 ac_cv_prog_cc_c89=no
3470 ac_save_CC=$CC
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3473 #include <stdarg.h>
3474 #include <stdio.h>
3475 struct stat;
3476 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3477 struct buf { int x; };
3478 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3479 static char *e (p, i)
3480 char **p;
3481 int i;
3482 {
3483 return p[i];
3484 }
3485 static char *f (char * (*g) (char **, int), char **p, ...)
3486 {
3487 char *s;
3488 va_list v;
3489 va_start (v,p);
3490 s = g (p, va_arg (v,int));
3491 va_end (v);
3492 return s;
3493 }
3494
3495 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3496 function prototypes and stuff, but not '\xHH' hex character constants.
3497 These don't provoke an error unfortunately, instead are silently treated
3498 as 'x'. The following induces an error, until -std is added to get
3499 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3500 array size at least. It's necessary to write '\x00'==0 to get something
3501 that's true only with -std. */
3502 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3503
3504 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3505 inside strings and character constants. */
3506 #define FOO(x) 'x'
3507 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3508
3509 int test (int i, double x);
3510 struct s1 {int (*f) (int a);};
3511 struct s2 {int (*f) (double a);};
3512 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3513 int argc;
3514 char **argv;
3515 int
3516 main ()
3517 {
3518 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3519 ;
3520 return 0;
3521 }
3522 _ACEOF
3523 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3524 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3525 do
3526 CC="$ac_save_CC $ac_arg"
3527 if ac_fn_c_try_compile "$LINENO"; then :
3528 ac_cv_prog_cc_c89=$ac_arg
3529 fi
3530 rm -f core conftest.err conftest.$ac_objext
3531 test "x$ac_cv_prog_cc_c89" != "xno" && break
3532 done
3533 rm -f conftest.$ac_ext
3534 CC=$ac_save_CC
3535
3536 fi
3537 # AC_CACHE_VAL
3538 case "x$ac_cv_prog_cc_c89" in
3539 x)
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3541 $as_echo "none needed" >&6; } ;;
3542 xno)
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3544 $as_echo "unsupported" >&6; } ;;
3545 *)
3546 CC="$CC $ac_cv_prog_cc_c89"
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3548 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3549 esac
3550 if test "x$ac_cv_prog_cc_c89" != xno; then :
3551
3552 fi
3553
3554 ac_ext=c
3555 ac_cpp='$CPP $CPPFLAGS'
3556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559
3560 ac_ext=c
3561 ac_cpp='$CPP $CPPFLAGS'
3562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3566 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3567 if ${am_cv_prog_cc_c_o+:} false; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572
3573 int
3574 main ()
3575 {
3576
3577 ;
3578 return 0;
3579 }
3580 _ACEOF
3581 # Make sure it works both with $CC and with simple cc.
3582 # Following AC_PROG_CC_C_O, we do the test twice because some
3583 # compilers refuse to overwrite an existing .o file with -o,
3584 # though they will create one.
3585 am_cv_prog_cc_c_o=yes
3586 for am_i in 1 2; do
3587 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3588 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); } \
3592 && test -f conftest2.$ac_objext; then
3593 : OK
3594 else
3595 am_cv_prog_cc_c_o=no
3596 break
3597 fi
3598 done
3599 rm -f core conftest*
3600 unset am_i
3601 fi
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3603 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3604 if test "$am_cv_prog_cc_c_o" != yes; then
3605 # Losing compiler, so override with the script.
3606 # FIXME: It is wrong to rewrite CC.
3607 # But if we don't then we get into trouble of one sort or another.
3608 # A longer-term fix would be to have automake use am__CC in this case,
3609 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3610 CC="$am_aux_dir/compile $CC"
3611 fi
3612 ac_ext=c
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
3618
3619
3620 ac_ext=c
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3626 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3627 # On Suns, sometimes $CPP names a directory.
3628 if test -n "$CPP" && test -d "$CPP"; then
3629 CPP=
3630 fi
3631 if test -z "$CPP"; then
3632 if ${ac_cv_prog_CPP+:} false; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 # Double quotes because CPP needs to be expanded
3636 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3637 do
3638 ac_preproc_ok=false
3639 for ac_c_preproc_warn_flag in '' yes
3640 do
3641 # Use a header file that comes with gcc, so configuring glibc
3642 # with a fresh cross-compiler works.
3643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3644 # <limits.h> exists even on freestanding compilers.
3645 # On the NeXT, cc -E runs the code through the compiler's parser,
3646 # not just through cpp. "Syntax error" is here to catch this case.
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649 #ifdef __STDC__
3650 # include <limits.h>
3651 #else
3652 # include <assert.h>
3653 #endif
3654 Syntax error
3655 _ACEOF
3656 if ac_fn_c_try_cpp "$LINENO"; then :
3657
3658 else
3659 # Broken: fails on valid input.
3660 continue
3661 fi
3662 rm -f conftest.err conftest.i conftest.$ac_ext
3663
3664 # OK, works on sane cases. Now check whether nonexistent headers
3665 # can be detected and how.
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3668 #include <ac_nonexistent.h>
3669 _ACEOF
3670 if ac_fn_c_try_cpp "$LINENO"; then :
3671 # Broken: success on invalid input.
3672 continue
3673 else
3674 # Passes both tests.
3675 ac_preproc_ok=:
3676 break
3677 fi
3678 rm -f conftest.err conftest.i conftest.$ac_ext
3679
3680 done
3681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3682 rm -f conftest.i conftest.err conftest.$ac_ext
3683 if $ac_preproc_ok; then :
3684 break
3685 fi
3686
3687 done
3688 ac_cv_prog_CPP=$CPP
3689
3690 fi
3691 CPP=$ac_cv_prog_CPP
3692 else
3693 ac_cv_prog_CPP=$CPP
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3696 $as_echo "$CPP" >&6; }
3697 ac_preproc_ok=false
3698 for ac_c_preproc_warn_flag in '' yes
3699 do
3700 # Use a header file that comes with gcc, so configuring glibc
3701 # with a fresh cross-compiler works.
3702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3703 # <limits.h> exists even on freestanding compilers.
3704 # On the NeXT, cc -E runs the code through the compiler's parser,
3705 # not just through cpp. "Syntax error" is here to catch this case.
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3708 #ifdef __STDC__
3709 # include <limits.h>
3710 #else
3711 # include <assert.h>
3712 #endif
3713 Syntax error
3714 _ACEOF
3715 if ac_fn_c_try_cpp "$LINENO"; then :
3716
3717 else
3718 # Broken: fails on valid input.
3719 continue
3720 fi
3721 rm -f conftest.err conftest.i conftest.$ac_ext
3722
3723 # OK, works on sane cases. Now check whether nonexistent headers
3724 # can be detected and how.
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3727 #include <ac_nonexistent.h>
3728 _ACEOF
3729 if ac_fn_c_try_cpp "$LINENO"; then :
3730 # Broken: success on invalid input.
3731 continue
3732 else
3733 # Passes both tests.
3734 ac_preproc_ok=:
3735 break
3736 fi
3737 rm -f conftest.err conftest.i conftest.$ac_ext
3738
3739 done
3740 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3741 rm -f conftest.i conftest.err conftest.$ac_ext
3742 if $ac_preproc_ok; then :
3743
3744 else
3745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3748 See \`config.log' for more details" "$LINENO" 5; }
3749 fi
3750
3751 ac_ext=c
3752 ac_cpp='$CPP $CPPFLAGS'
3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756
3757
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3759 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3760 if ${ac_cv_path_GREP+:} false; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 if test -z "$GREP"; then
3764 ac_path_GREP_found=false
3765 # Loop through the user's path and test for each of PROGNAME-LIST
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3768 do
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
3771 for ac_prog in grep ggrep; do
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3774 as_fn_executable_p "$ac_path_GREP" || continue
3775 # Check for GNU ac_path_GREP and select it if it is found.
3776 # Check for GNU $ac_path_GREP
3777 case `"$ac_path_GREP" --version 2>&1` in
3778 *GNU*)
3779 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3780 *)
3781 ac_count=0
3782 $as_echo_n 0123456789 >"conftest.in"
3783 while :
3784 do
3785 cat "conftest.in" "conftest.in" >"conftest.tmp"
3786 mv "conftest.tmp" "conftest.in"
3787 cp "conftest.in" "conftest.nl"
3788 $as_echo 'GREP' >> "conftest.nl"
3789 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3791 as_fn_arith $ac_count + 1 && ac_count=$as_val
3792 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3793 # Best one so far, save it but keep looking for a better one
3794 ac_cv_path_GREP="$ac_path_GREP"
3795 ac_path_GREP_max=$ac_count
3796 fi
3797 # 10*(2^10) chars as input seems more than enough
3798 test $ac_count -gt 10 && break
3799 done
3800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3801 esac
3802
3803 $ac_path_GREP_found && break 3
3804 done
3805 done
3806 done
3807 IFS=$as_save_IFS
3808 if test -z "$ac_cv_path_GREP"; then
3809 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3810 fi
3811 else
3812 ac_cv_path_GREP=$GREP
3813 fi
3814
3815 fi
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3817 $as_echo "$ac_cv_path_GREP" >&6; }
3818 GREP="$ac_cv_path_GREP"
3819
3820
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3822 $as_echo_n "checking for egrep... " >&6; }
3823 if ${ac_cv_path_EGREP+:} false; then :
3824 $as_echo_n "(cached) " >&6
3825 else
3826 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3827 then ac_cv_path_EGREP="$GREP -E"
3828 else
3829 if test -z "$EGREP"; then
3830 ac_path_EGREP_found=false
3831 # Loop through the user's path and test for each of PROGNAME-LIST
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3834 do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 for ac_prog in egrep; do
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3840 as_fn_executable_p "$ac_path_EGREP" || continue
3841 # Check for GNU ac_path_EGREP and select it if it is found.
3842 # Check for GNU $ac_path_EGREP
3843 case `"$ac_path_EGREP" --version 2>&1` in
3844 *GNU*)
3845 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3846 *)
3847 ac_count=0
3848 $as_echo_n 0123456789 >"conftest.in"
3849 while :
3850 do
3851 cat "conftest.in" "conftest.in" >"conftest.tmp"
3852 mv "conftest.tmp" "conftest.in"
3853 cp "conftest.in" "conftest.nl"
3854 $as_echo 'EGREP' >> "conftest.nl"
3855 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3856 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3857 as_fn_arith $ac_count + 1 && ac_count=$as_val
3858 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3859 # Best one so far, save it but keep looking for a better one
3860 ac_cv_path_EGREP="$ac_path_EGREP"
3861 ac_path_EGREP_max=$ac_count
3862 fi
3863 # 10*(2^10) chars as input seems more than enough
3864 test $ac_count -gt 10 && break
3865 done
3866 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3867 esac
3868
3869 $ac_path_EGREP_found && break 3
3870 done
3871 done
3872 done
3873 IFS=$as_save_IFS
3874 if test -z "$ac_cv_path_EGREP"; then
3875 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3876 fi
3877 else
3878 ac_cv_path_EGREP=$EGREP
3879 fi
3880
3881 fi
3882 fi
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3884 $as_echo "$ac_cv_path_EGREP" >&6; }
3885 EGREP="$ac_cv_path_EGREP"
3886
3887
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3889 $as_echo_n "checking for ANSI C header files... " >&6; }
3890 if ${ac_cv_header_stdc+:} false; then :
3891 $as_echo_n "(cached) " >&6
3892 else
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3895 #include <stdlib.h>
3896 #include <stdarg.h>
3897 #include <string.h>
3898 #include <float.h>
3899
3900 int
3901 main ()
3902 {
3903
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 if ac_fn_c_try_compile "$LINENO"; then :
3909 ac_cv_header_stdc=yes
3910 else
3911 ac_cv_header_stdc=no
3912 fi
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914
3915 if test $ac_cv_header_stdc = yes; then
3916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3919 #include <string.h>
3920
3921 _ACEOF
3922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3923 $EGREP "memchr" >/dev/null 2>&1; then :
3924
3925 else
3926 ac_cv_header_stdc=no
3927 fi
3928 rm -f conftest*
3929
3930 fi
3931
3932 if test $ac_cv_header_stdc = yes; then
3933 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3936 #include <stdlib.h>
3937
3938 _ACEOF
3939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3940 $EGREP "free" >/dev/null 2>&1; then :
3941
3942 else
3943 ac_cv_header_stdc=no
3944 fi
3945 rm -f conftest*
3946
3947 fi
3948
3949 if test $ac_cv_header_stdc = yes; then
3950 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3951 if test "$cross_compiling" = yes; then :
3952 :
3953 else
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956 #include <ctype.h>
3957 #include <stdlib.h>
3958 #if ((' ' & 0x0FF) == 0x020)
3959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3961 #else
3962 # define ISLOWER(c) \
3963 (('a' <= (c) && (c) <= 'i') \
3964 || ('j' <= (c) && (c) <= 'r') \
3965 || ('s' <= (c) && (c) <= 'z'))
3966 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3967 #endif
3968
3969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3970 int
3971 main ()
3972 {
3973 int i;
3974 for (i = 0; i < 256; i++)
3975 if (XOR (islower (i), ISLOWER (i))
3976 || toupper (i) != TOUPPER (i))
3977 return 2;
3978 return 0;
3979 }
3980 _ACEOF
3981 if ac_fn_c_try_run "$LINENO"; then :
3982
3983 else
3984 ac_cv_header_stdc=no
3985 fi
3986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3987 conftest.$ac_objext conftest.beam conftest.$ac_ext
3988 fi
3989
3990 fi
3991 fi
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3993 $as_echo "$ac_cv_header_stdc" >&6; }
3994 if test $ac_cv_header_stdc = yes; then
3995
3996 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3997
3998 fi
3999
4000 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4001 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4002 inttypes.h stdint.h unistd.h
4003 do :
4004 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4005 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4006 "
4007 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4008 cat >>confdefs.h <<_ACEOF
4009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4010 _ACEOF
4011
4012 fi
4013
4014 done
4015
4016
4017
4018 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4019 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4020 MINIX=yes
4021 else
4022 MINIX=
4023 fi
4024
4025
4026 if test "$MINIX" = yes; then
4027
4028 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4029
4030
4031 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4032
4033
4034 $as_echo "#define _MINIX 1" >>confdefs.h
4035
4036 fi
4037
4038
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4040 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4041 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046
4047 # define __EXTENSIONS__ 1
4048 $ac_includes_default
4049 int
4050 main ()
4051 {
4052
4053 ;
4054 return 0;
4055 }
4056 _ACEOF
4057 if ac_fn_c_try_compile "$LINENO"; then :
4058 ac_cv_safe_to_define___extensions__=yes
4059 else
4060 ac_cv_safe_to_define___extensions__=no
4061 fi
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 fi
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4065 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4066 test $ac_cv_safe_to_define___extensions__ = yes &&
4067 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4068
4069 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4070
4071 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4072
4073 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4074
4075 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4076
4077
4078 test "$program_prefix" != NONE &&
4079 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4080 # Use a double $ so make ignores it.
4081 test "$program_suffix" != NONE &&
4082 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4083 # Double any \ or $.
4084 # By default was `s,x,x', remove it if useless.
4085 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4086 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4087
4088 # Find a good install program. We prefer a C program (faster),
4089 # so one script is as good as another. But avoid the broken or
4090 # incompatible versions:
4091 # SysV /etc/install, /usr/sbin/install
4092 # SunOS /usr/etc/install
4093 # IRIX /sbin/install
4094 # AIX /bin/install
4095 # AmigaOS /C/install, which installs bootblocks on floppy discs
4096 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4097 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4098 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4099 # OS/2's system install, which has a completely different semantic
4100 # ./install, which can be erroneously created by make from ./install.sh.
4101 # Reject install programs that cannot install multiple files.
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4103 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4104 if test -z "$INSTALL"; then
4105 if ${ac_cv_path_install+:} false; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4110 do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 # Account for people who put trailing slashes in PATH elements.
4114 case $as_dir/ in #((
4115 ./ | .// | /[cC]/* | \
4116 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4117 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4118 /usr/ucb/* ) ;;
4119 *)
4120 # OSF1 and SCO ODT 3.0 have their own names for install.
4121 # Don't use installbsd from OSF since it installs stuff as root
4122 # by default.
4123 for ac_prog in ginstall scoinst install; do
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4126 if test $ac_prog = install &&
4127 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4128 # AIX install. It has an incompatible calling convention.
4129 :
4130 elif test $ac_prog = install &&
4131 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4132 # program-specific install script used by HP pwplus--don't use.
4133 :
4134 else
4135 rm -rf conftest.one conftest.two conftest.dir
4136 echo one > conftest.one
4137 echo two > conftest.two
4138 mkdir conftest.dir
4139 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4140 test -s conftest.one && test -s conftest.two &&
4141 test -s conftest.dir/conftest.one &&
4142 test -s conftest.dir/conftest.two
4143 then
4144 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4145 break 3
4146 fi
4147 fi
4148 fi
4149 done
4150 done
4151 ;;
4152 esac
4153
4154 done
4155 IFS=$as_save_IFS
4156
4157 rm -rf conftest.one conftest.two conftest.dir
4158
4159 fi
4160 if test "${ac_cv_path_install+set}" = set; then
4161 INSTALL=$ac_cv_path_install
4162 else
4163 # As a last resort, use the slow shell script. Don't cache a
4164 # value for INSTALL within a source directory, because that will
4165 # break other packages using the cache if that directory is
4166 # removed, or if the value is a relative name.
4167 INSTALL=$ac_install_sh
4168 fi
4169 fi
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4171 $as_echo "$INSTALL" >&6; }
4172
4173 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4174 # It thinks the first close brace ends the variable substitution.
4175 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4176
4177 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4178
4179 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4180
4181
4182
4183
4184
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4186 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4187 if ${ac_cv_c_bigendian+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189 else
4190 ac_cv_c_bigendian=unknown
4191 # See if we're dealing with a universal compiler.
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4194 #ifndef __APPLE_CC__
4195 not a universal capable compiler
4196 #endif
4197 typedef int dummy;
4198
4199 _ACEOF
4200 if ac_fn_c_try_compile "$LINENO"; then :
4201
4202 # Check for potential -arch flags. It is not universal unless
4203 # there are at least two -arch flags with different values.
4204 ac_arch=
4205 ac_prev=
4206 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4207 if test -n "$ac_prev"; then
4208 case $ac_word in
4209 i?86 | x86_64 | ppc | ppc64)
4210 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4211 ac_arch=$ac_word
4212 else
4213 ac_cv_c_bigendian=universal
4214 break
4215 fi
4216 ;;
4217 esac
4218 ac_prev=
4219 elif test "x$ac_word" = "x-arch"; then
4220 ac_prev=arch
4221 fi
4222 done
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 if test $ac_cv_c_bigendian = unknown; then
4226 # See if sys/param.h defines the BYTE_ORDER macro.
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4229 #include <sys/types.h>
4230 #include <sys/param.h>
4231
4232 int
4233 main ()
4234 {
4235 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4236 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4237 && LITTLE_ENDIAN)
4238 bogus endian macros
4239 #endif
4240
4241 ;
4242 return 0;
4243 }
4244 _ACEOF
4245 if ac_fn_c_try_compile "$LINENO"; then :
4246 # It does; now see whether it defined to BIG_ENDIAN or not.
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 #include <sys/types.h>
4250 #include <sys/param.h>
4251
4252 int
4253 main ()
4254 {
4255 #if BYTE_ORDER != BIG_ENDIAN
4256 not big endian
4257 #endif
4258
4259 ;
4260 return 0;
4261 }
4262 _ACEOF
4263 if ac_fn_c_try_compile "$LINENO"; then :
4264 ac_cv_c_bigendian=yes
4265 else
4266 ac_cv_c_bigendian=no
4267 fi
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 fi
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271 fi
4272 if test $ac_cv_c_bigendian = unknown; then
4273 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4276 #include <limits.h>
4277
4278 int
4279 main ()
4280 {
4281 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4282 bogus endian macros
4283 #endif
4284
4285 ;
4286 return 0;
4287 }
4288 _ACEOF
4289 if ac_fn_c_try_compile "$LINENO"; then :
4290 # It does; now see whether it defined to _BIG_ENDIAN or not.
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293 #include <limits.h>
4294
4295 int
4296 main ()
4297 {
4298 #ifndef _BIG_ENDIAN
4299 not big endian
4300 #endif
4301
4302 ;
4303 return 0;
4304 }
4305 _ACEOF
4306 if ac_fn_c_try_compile "$LINENO"; then :
4307 ac_cv_c_bigendian=yes
4308 else
4309 ac_cv_c_bigendian=no
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 fi
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 fi
4315 if test $ac_cv_c_bigendian = unknown; then
4316 # Compile a test program.
4317 if test "$cross_compiling" = yes; then :
4318 # Try to guess by grepping values from an object file.
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4321 short int ascii_mm[] =
4322 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4323 short int ascii_ii[] =
4324 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4325 int use_ascii (int i) {
4326 return ascii_mm[i] + ascii_ii[i];
4327 }
4328 short int ebcdic_ii[] =
4329 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4330 short int ebcdic_mm[] =
4331 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4332 int use_ebcdic (int i) {
4333 return ebcdic_mm[i] + ebcdic_ii[i];
4334 }
4335 extern int foo;
4336
4337 int
4338 main ()
4339 {
4340 return use_ascii (foo) == use_ebcdic (foo);
4341 ;
4342 return 0;
4343 }
4344 _ACEOF
4345 if ac_fn_c_try_compile "$LINENO"; then :
4346 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4347 ac_cv_c_bigendian=yes
4348 fi
4349 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4350 if test "$ac_cv_c_bigendian" = unknown; then
4351 ac_cv_c_bigendian=no
4352 else
4353 # finding both strings is unlikely to happen, but who knows?
4354 ac_cv_c_bigendian=unknown
4355 fi
4356 fi
4357 fi
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 else
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4362 $ac_includes_default
4363 int
4364 main ()
4365 {
4366
4367 /* Are we little or big endian? From Harbison&Steele. */
4368 union
4369 {
4370 long int l;
4371 char c[sizeof (long int)];
4372 } u;
4373 u.l = 1;
4374 return u.c[sizeof (long int) - 1] == 1;
4375
4376 ;
4377 return 0;
4378 }
4379 _ACEOF
4380 if ac_fn_c_try_run "$LINENO"; then :
4381 ac_cv_c_bigendian=no
4382 else
4383 ac_cv_c_bigendian=yes
4384 fi
4385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4386 conftest.$ac_objext conftest.beam conftest.$ac_ext
4387 fi
4388
4389 fi
4390 fi
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4392 $as_echo "$ac_cv_c_bigendian" >&6; }
4393 case $ac_cv_c_bigendian in #(
4394 yes)
4395 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4396 ;; #(
4397 no)
4398 ;; #(
4399 universal)
4400
4401 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4402
4403 ;; #(
4404 *)
4405 as_fn_error $? "unknown endianness
4406 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4407 esac
4408
4409
4410
4411
4412 if test "x$cross_compiling" = "xno"; then
4413 : "${AR_FOR_BUILD:=\$(AR)}"
4414 : "${CC_FOR_BUILD:=\$(CC)}"
4415 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4416 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4417 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4418 else
4419 : "${AR_FOR_BUILD:=ar}"
4420 : "${CC_FOR_BUILD:=gcc}"
4421 : "${RANLIB_FOR_BUILD:=ranlib}"
4422 : "${CFLAGS_FOR_BUILD:=-g -O}"
4423 : "${LDLFAGS_FOR_BUILD:=}"
4424 fi
4425
4426
4427
4428
4429
4430
4431
4432 if test -n "$ac_tool_prefix"; then
4433 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4434 set dummy ${ac_tool_prefix}ar; ac_word=$2
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if ${ac_cv_prog_AR+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test -n "$AR"; then
4441 ac_cv_prog_AR="$AR" # Let the user override the test.
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4445 do
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450 ac_cv_prog_AR="${ac_tool_prefix}ar"
4451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4453 fi
4454 done
4455 done
4456 IFS=$as_save_IFS
4457
4458 fi
4459 fi
4460 AR=$ac_cv_prog_AR
4461 if test -n "$AR"; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4463 $as_echo "$AR" >&6; }
4464 else
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 $as_echo "no" >&6; }
4467 fi
4468
4469
4470 fi
4471 if test -z "$ac_cv_prog_AR"; then
4472 ac_ct_AR=$AR
4473 # Extract the first word of "ar", so it can be a program name with args.
4474 set dummy ar; ac_word=$2
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476 $as_echo_n "checking for $ac_word... " >&6; }
4477 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 if test -n "$ac_ct_AR"; then
4481 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4482 else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4485 do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4490 ac_cv_prog_ac_ct_AR="ar"
4491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 break 2
4493 fi
4494 done
4495 done
4496 IFS=$as_save_IFS
4497
4498 fi
4499 fi
4500 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4501 if test -n "$ac_ct_AR"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4503 $as_echo "$ac_ct_AR" >&6; }
4504 else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506 $as_echo "no" >&6; }
4507 fi
4508
4509 if test "x$ac_ct_AR" = x; then
4510 AR=""
4511 else
4512 case $cross_compiling:$ac_tool_warned in
4513 yes:)
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4516 ac_tool_warned=yes ;;
4517 esac
4518 AR=$ac_ct_AR
4519 fi
4520 else
4521 AR="$ac_cv_prog_AR"
4522 fi
4523
4524 if test -n "$ac_tool_prefix"; then
4525 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4526 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if ${ac_cv_prog_RANLIB+:} false; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 if test -n "$RANLIB"; then
4533 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4542 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4545 fi
4546 done
4547 done
4548 IFS=$as_save_IFS
4549
4550 fi
4551 fi
4552 RANLIB=$ac_cv_prog_RANLIB
4553 if test -n "$RANLIB"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4555 $as_echo "$RANLIB" >&6; }
4556 else
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4559 fi
4560
4561
4562 fi
4563 if test -z "$ac_cv_prog_RANLIB"; then
4564 ac_ct_RANLIB=$RANLIB
4565 # Extract the first word of "ranlib", so it can be a program name with args.
4566 set dummy ranlib; ac_word=$2
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568 $as_echo_n "checking for $ac_word... " >&6; }
4569 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 if test -n "$ac_ct_RANLIB"; then
4573 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582 ac_cv_prog_ac_ct_RANLIB="ranlib"
4583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4585 fi
4586 done
4587 done
4588 IFS=$as_save_IFS
4589
4590 fi
4591 fi
4592 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4593 if test -n "$ac_ct_RANLIB"; then
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4595 $as_echo "$ac_ct_RANLIB" >&6; }
4596 else
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4599 fi
4600
4601 if test "x$ac_ct_RANLIB" = x; then
4602 RANLIB=":"
4603 else
4604 case $cross_compiling:$ac_tool_warned in
4605 yes:)
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4608 ac_tool_warned=yes ;;
4609 esac
4610 RANLIB=$ac_ct_RANLIB
4611 fi
4612 else
4613 RANLIB="$ac_cv_prog_RANLIB"
4614 fi
4615
4616
4617 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
4618 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
4619 # is C99. So handle it ourselves.
4620 :
4621 C_DIALECT=
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4623 $as_echo_n "checking whether C11 is supported by default... " >&6; }
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626
4627 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4628 # error "C11 support not found"
4629 #endif
4630
4631 _ACEOF
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4634 $as_echo "yes" >&6; }
4635 else
4636
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4640 $as_echo_n "checking for -std=c11 support... " >&6; }
4641 ac_save_CC="$CC"
4642 CC="$CC -std=c11"
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4645
4646 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4647 # error "C11 support not found"
4648 #endif
4649
4650 _ACEOF
4651 if ac_fn_c_try_compile "$LINENO"; then :
4652
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4654 $as_echo "yes" >&6; }
4655 CC="$ac_save_CC"
4656 C_DIALECT="-std=c11"
4657
4658 else
4659 as_fn_error $? "C11 is required" "$LINENO" 5
4660 fi
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 fi
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664
4665
4666
4667
4668
4669 for ac_header in $ac_header_list
4670 do :
4671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4672 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4673 "
4674 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4675 cat >>confdefs.h <<_ACEOF
4676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4677 _ACEOF
4678
4679 fi
4680
4681 done
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734 for ac_func in $ac_func_list
4735 do :
4736 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4737 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4738 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4739 cat >>confdefs.h <<_ACEOF
4740 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4741 _ACEOF
4742
4743 fi
4744 done
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
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
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4869 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4870 if ${ac_cv_struct_tm+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4875 #include <sys/types.h>
4876 #include <time.h>
4877
4878 int
4879 main ()
4880 {
4881 struct tm tm;
4882 int *p = &tm.tm_sec;
4883 return !p;
4884 ;
4885 return 0;
4886 }
4887 _ACEOF
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889 ac_cv_struct_tm=time.h
4890 else
4891 ac_cv_struct_tm=sys/time.h
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4896 $as_echo "$ac_cv_struct_tm" >&6; }
4897 if test $ac_cv_struct_tm = sys/time.h; then
4898
4899 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4900
4901 fi
4902
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4904 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4905 if ${ac_cv_type_uid_t+:} false; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4910 #include <sys/types.h>
4911
4912 _ACEOF
4913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914 $EGREP "uid_t" >/dev/null 2>&1; then :
4915 ac_cv_type_uid_t=yes
4916 else
4917 ac_cv_type_uid_t=no
4918 fi
4919 rm -f conftest*
4920
4921 fi
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4923 $as_echo "$ac_cv_type_uid_t" >&6; }
4924 if test $ac_cv_type_uid_t = no; then
4925
4926 $as_echo "#define uid_t int" >>confdefs.h
4927
4928
4929 $as_echo "#define gid_t int" >>confdefs.h
4930
4931 fi
4932
4933 case `pwd` in
4934 *\ * | *\ *)
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4936 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4937 esac
4938
4939
4940
4941 macro_version='2.2.7a'
4942 macro_revision='1.3134'
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956 ltmain="$ac_aux_dir/ltmain.sh"
4957
4958 # Backslashify metacharacters that are still active within
4959 # double-quoted strings.
4960 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4961
4962 # Same as above, but do not quote variable references.
4963 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4964
4965 # Sed substitution to delay expansion of an escaped shell variable in a
4966 # double_quote_subst'ed string.
4967 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4968
4969 # Sed substitution to delay expansion of an escaped single quote.
4970 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4971
4972 # Sed substitution to avoid accidental globbing in evaled expressions
4973 no_glob_subst='s/\*/\\\*/g'
4974
4975 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4976 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4977 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4980 $as_echo_n "checking how to print strings... " >&6; }
4981 # Test print first, because it will be a builtin if present.
4982 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4983 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4984 ECHO='print -r --'
4985 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4986 ECHO='printf %s\n'
4987 else
4988 # Use this function as a fallback that always works.
4989 func_fallback_echo ()
4990 {
4991 eval 'cat <<_LTECHO_EOF
4992 $1
4993 _LTECHO_EOF'
4994 }
4995 ECHO='func_fallback_echo'
4996 fi
4997
4998 # func_echo_all arg...
4999 # Invoke $ECHO with all args, space-separated.
5000 func_echo_all ()
5001 {
5002 $ECHO ""
5003 }
5004
5005 case "$ECHO" in
5006 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5007 $as_echo "printf" >&6; } ;;
5008 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5009 $as_echo "print -r" >&6; } ;;
5010 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5011 $as_echo "cat" >&6; } ;;
5012 esac
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5028 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5029 if ${ac_cv_path_SED+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5033 for ac_i in 1 2 3 4 5 6 7; do
5034 ac_script="$ac_script$as_nl$ac_script"
5035 done
5036 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5037 { ac_script=; unset ac_script;}
5038 if test -z "$SED"; then
5039 ac_path_SED_found=false
5040 # Loop through the user's path and test for each of PROGNAME-LIST
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_prog in sed gsed; do
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5049 as_fn_executable_p "$ac_path_SED" || continue
5050 # Check for GNU ac_path_SED and select it if it is found.
5051 # Check for GNU $ac_path_SED
5052 case `"$ac_path_SED" --version 2>&1` in
5053 *GNU*)
5054 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5055 *)
5056 ac_count=0
5057 $as_echo_n 0123456789 >"conftest.in"
5058 while :
5059 do
5060 cat "conftest.in" "conftest.in" >"conftest.tmp"
5061 mv "conftest.tmp" "conftest.in"
5062 cp "conftest.in" "conftest.nl"
5063 $as_echo '' >> "conftest.nl"
5064 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5066 as_fn_arith $ac_count + 1 && ac_count=$as_val
5067 if test $ac_count -gt ${ac_path_SED_max-0}; then
5068 # Best one so far, save it but keep looking for a better one
5069 ac_cv_path_SED="$ac_path_SED"
5070 ac_path_SED_max=$ac_count
5071 fi
5072 # 10*(2^10) chars as input seems more than enough
5073 test $ac_count -gt 10 && break
5074 done
5075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5076 esac
5077
5078 $ac_path_SED_found && break 3
5079 done
5080 done
5081 done
5082 IFS=$as_save_IFS
5083 if test -z "$ac_cv_path_SED"; then
5084 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5085 fi
5086 else
5087 ac_cv_path_SED=$SED
5088 fi
5089
5090 fi
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5092 $as_echo "$ac_cv_path_SED" >&6; }
5093 SED="$ac_cv_path_SED"
5094 rm -f conftest.sed
5095
5096 test -z "$SED" && SED=sed
5097 Xsed="$SED -e 1s/^X//"
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5110 $as_echo_n "checking for fgrep... " >&6; }
5111 if ${ac_cv_path_FGREP+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5115 then ac_cv_path_FGREP="$GREP -F"
5116 else
5117 if test -z "$FGREP"; then
5118 ac_path_FGREP_found=false
5119 # Loop through the user's path and test for each of PROGNAME-LIST
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5122 do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_prog in fgrep; do
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5128 as_fn_executable_p "$ac_path_FGREP" || continue
5129 # Check for GNU ac_path_FGREP and select it if it is found.
5130 # Check for GNU $ac_path_FGREP
5131 case `"$ac_path_FGREP" --version 2>&1` in
5132 *GNU*)
5133 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5134 *)
5135 ac_count=0
5136 $as_echo_n 0123456789 >"conftest.in"
5137 while :
5138 do
5139 cat "conftest.in" "conftest.in" >"conftest.tmp"
5140 mv "conftest.tmp" "conftest.in"
5141 cp "conftest.in" "conftest.nl"
5142 $as_echo 'FGREP' >> "conftest.nl"
5143 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5144 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5145 as_fn_arith $ac_count + 1 && ac_count=$as_val
5146 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5147 # Best one so far, save it but keep looking for a better one
5148 ac_cv_path_FGREP="$ac_path_FGREP"
5149 ac_path_FGREP_max=$ac_count
5150 fi
5151 # 10*(2^10) chars as input seems more than enough
5152 test $ac_count -gt 10 && break
5153 done
5154 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5155 esac
5156
5157 $ac_path_FGREP_found && break 3
5158 done
5159 done
5160 done
5161 IFS=$as_save_IFS
5162 if test -z "$ac_cv_path_FGREP"; then
5163 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5164 fi
5165 else
5166 ac_cv_path_FGREP=$FGREP
5167 fi
5168
5169 fi
5170 fi
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5172 $as_echo "$ac_cv_path_FGREP" >&6; }
5173 FGREP="$ac_cv_path_FGREP"
5174
5175
5176 test -z "$GREP" && GREP=grep
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196 # Check whether --with-gnu-ld was given.
5197 if test "${with_gnu_ld+set}" = set; then :
5198 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5199 else
5200 with_gnu_ld=no
5201 fi
5202
5203 ac_prog=ld
5204 if test "$GCC" = yes; then
5205 # Check if gcc -print-prog-name=ld gives a path.
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5207 $as_echo_n "checking for ld used by $CC... " >&6; }
5208 case $host in
5209 *-*-mingw*)
5210 # gcc leaves a trailing carriage return which upsets mingw
5211 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5212 *)
5213 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5214 esac
5215 case $ac_prog in
5216 # Accept absolute paths.
5217 [\\/]* | ?:[\\/]*)
5218 re_direlt='/[^/][^/]*/\.\./'
5219 # Canonicalize the pathname of ld
5220 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5221 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5222 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5223 done
5224 test -z "$LD" && LD="$ac_prog"
5225 ;;
5226 "")
5227 # If it fails, then pretend we aren't using GCC.
5228 ac_prog=ld
5229 ;;
5230 *)
5231 # If it is relative, then search for the first ld in PATH.
5232 with_gnu_ld=unknown
5233 ;;
5234 esac
5235 elif test "$with_gnu_ld" = yes; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5237 $as_echo_n "checking for GNU ld... " >&6; }
5238 else
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5240 $as_echo_n "checking for non-GNU ld... " >&6; }
5241 fi
5242 if ${lt_cv_path_LD+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 if test -z "$LD"; then
5246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5247 for ac_dir in $PATH; do
5248 IFS="$lt_save_ifs"
5249 test -z "$ac_dir" && ac_dir=.
5250 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5251 lt_cv_path_LD="$ac_dir/$ac_prog"
5252 # Check to see if the program is GNU ld. I'd rather use --version,
5253 # but apparently some variants of GNU ld only accept -v.
5254 # Break only if it was the GNU/non-GNU ld that we prefer.
5255 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5256 *GNU* | *'with BFD'*)
5257 test "$with_gnu_ld" != no && break
5258 ;;
5259 *)
5260 test "$with_gnu_ld" != yes && break
5261 ;;
5262 esac
5263 fi
5264 done
5265 IFS="$lt_save_ifs"
5266 else
5267 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5268 fi
5269 fi
5270
5271 LD="$lt_cv_path_LD"
5272 if test -n "$LD"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5274 $as_echo "$LD" >&6; }
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5278 fi
5279 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5281 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5282 if ${lt_cv_prog_gnu_ld+:} false; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5286 case `$LD -v 2>&1 </dev/null` in
5287 *GNU* | *'with BFD'*)
5288 lt_cv_prog_gnu_ld=yes
5289 ;;
5290 *)
5291 lt_cv_prog_gnu_ld=no
5292 ;;
5293 esac
5294 fi
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5296 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5297 with_gnu_ld=$lt_cv_prog_gnu_ld
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5308 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5309 if ${lt_cv_path_NM+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 if test -n "$NM"; then
5313 # Let the user override the test.
5314 lt_cv_path_NM="$NM"
5315 else
5316 lt_nm_to_check="${ac_tool_prefix}nm"
5317 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5318 lt_nm_to_check="$lt_nm_to_check nm"
5319 fi
5320 for lt_tmp_nm in $lt_nm_to_check; do
5321 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5322 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5323 IFS="$lt_save_ifs"
5324 test -z "$ac_dir" && ac_dir=.
5325 tmp_nm="$ac_dir/$lt_tmp_nm"
5326 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5327 # Check to see if the nm accepts a BSD-compat flag.
5328 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5329 # nm: unknown option "B" ignored
5330 # Tru64's nm complains that /dev/null is an invalid object file
5331 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5332 */dev/null* | *'Invalid file or object type'*)
5333 lt_cv_path_NM="$tmp_nm -B"
5334 break
5335 ;;
5336 *)
5337 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5338 */dev/null*)
5339 lt_cv_path_NM="$tmp_nm -p"
5340 break
5341 ;;
5342 *)
5343 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5344 continue # so that we can try to find one that supports BSD flags
5345 ;;
5346 esac
5347 ;;
5348 esac
5349 fi
5350 done
5351 IFS="$lt_save_ifs"
5352 done
5353 : ${lt_cv_path_NM=no}
5354 fi
5355 fi
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5357 $as_echo "$lt_cv_path_NM" >&6; }
5358 if test "$lt_cv_path_NM" != "no"; then
5359 NM="$lt_cv_path_NM"
5360 else
5361 # Didn't find any BSD compatible name lister, look for dumpbin.
5362 if test -n "$DUMPBIN"; then :
5363 # Let the user override the test.
5364 else
5365 if test -n "$ac_tool_prefix"; then
5366 for ac_prog in dumpbin "link -dump"
5367 do
5368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5369 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_prog_DUMPBIN+:} false; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 if test -n "$DUMPBIN"; then
5376 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5377 else
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 break 2
5388 fi
5389 done
5390 done
5391 IFS=$as_save_IFS
5392
5393 fi
5394 fi
5395 DUMPBIN=$ac_cv_prog_DUMPBIN
5396 if test -n "$DUMPBIN"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5398 $as_echo "$DUMPBIN" >&6; }
5399 else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5402 fi
5403
5404
5405 test -n "$DUMPBIN" && break
5406 done
5407 fi
5408 if test -z "$DUMPBIN"; then
5409 ac_ct_DUMPBIN=$DUMPBIN
5410 for ac_prog in dumpbin "link -dump"
5411 do
5412 # Extract the first word of "$ac_prog", so it can be a program name with args.
5413 set dummy $ac_prog; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 if test -n "$ac_ct_DUMPBIN"; then
5420 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5421 else
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5424 do
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5429 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 break 2
5432 fi
5433 done
5434 done
5435 IFS=$as_save_IFS
5436
5437 fi
5438 fi
5439 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5440 if test -n "$ac_ct_DUMPBIN"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5442 $as_echo "$ac_ct_DUMPBIN" >&6; }
5443 else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5446 fi
5447
5448
5449 test -n "$ac_ct_DUMPBIN" && break
5450 done
5451
5452 if test "x$ac_ct_DUMPBIN" = x; then
5453 DUMPBIN=":"
5454 else
5455 case $cross_compiling:$ac_tool_warned in
5456 yes:)
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5459 ac_tool_warned=yes ;;
5460 esac
5461 DUMPBIN=$ac_ct_DUMPBIN
5462 fi
5463 fi
5464
5465 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5466 *COFF*)
5467 DUMPBIN="$DUMPBIN -symbols"
5468 ;;
5469 *)
5470 DUMPBIN=:
5471 ;;
5472 esac
5473 fi
5474
5475 if test "$DUMPBIN" != ":"; then
5476 NM="$DUMPBIN"
5477 fi
5478 fi
5479 test -z "$NM" && NM=nm
5480
5481
5482
5483
5484
5485
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5487 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5488 if ${lt_cv_nm_interface+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 lt_cv_nm_interface="BSD nm"
5492 echo "int some_variable = 0;" > conftest.$ac_ext
5493 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5494 (eval "$ac_compile" 2>conftest.err)
5495 cat conftest.err >&5
5496 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5497 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5498 cat conftest.err >&5
5499 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5500 cat conftest.out >&5
5501 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5502 lt_cv_nm_interface="MS dumpbin"
5503 fi
5504 rm -f conftest*
5505 fi
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5507 $as_echo "$lt_cv_nm_interface" >&6; }
5508
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5510 $as_echo_n "checking whether ln -s works... " >&6; }
5511 LN_S=$as_ln_s
5512 if test "$LN_S" = "ln -s"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5514 $as_echo "yes" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5517 $as_echo "no, using $LN_S" >&6; }
5518 fi
5519
5520 # find the maximum length of command line arguments
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5522 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5523 if ${lt_cv_sys_max_cmd_len+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 i=0
5527 teststring="ABCD"
5528
5529 case $build_os in
5530 msdosdjgpp*)
5531 # On DJGPP, this test can blow up pretty badly due to problems in libc
5532 # (any single argument exceeding 2000 bytes causes a buffer overrun
5533 # during glob expansion). Even if it were fixed, the result of this
5534 # check would be larger than it should be.
5535 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5536 ;;
5537
5538 gnu*)
5539 # Under GNU Hurd, this test is not required because there is
5540 # no limit to the length of command line arguments.
5541 # Libtool will interpret -1 as no limit whatsoever
5542 lt_cv_sys_max_cmd_len=-1;
5543 ;;
5544
5545 cygwin* | mingw* | cegcc*)
5546 # On Win9x/ME, this test blows up -- it succeeds, but takes
5547 # about 5 minutes as the teststring grows exponentially.
5548 # Worse, since 9x/ME are not pre-emptively multitasking,
5549 # you end up with a "frozen" computer, even though with patience
5550 # the test eventually succeeds (with a max line length of 256k).
5551 # Instead, let's just punt: use the minimum linelength reported by
5552 # all of the supported platforms: 8192 (on NT/2K/XP).
5553 lt_cv_sys_max_cmd_len=8192;
5554 ;;
5555
5556 mint*)
5557 # On MiNT this can take a long time and run out of memory.
5558 lt_cv_sys_max_cmd_len=8192;
5559 ;;
5560
5561 amigaos*)
5562 # On AmigaOS with pdksh, this test takes hours, literally.
5563 # So we just punt and use a minimum line length of 8192.
5564 lt_cv_sys_max_cmd_len=8192;
5565 ;;
5566
5567 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5568 # This has been around since 386BSD, at least. Likely further.
5569 if test -x /sbin/sysctl; then
5570 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5571 elif test -x /usr/sbin/sysctl; then
5572 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5573 else
5574 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5575 fi
5576 # And add a safety zone
5577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5579 ;;
5580
5581 interix*)
5582 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5583 lt_cv_sys_max_cmd_len=196608
5584 ;;
5585
5586 osf*)
5587 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5588 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5589 # nice to cause kernel panics so lets avoid the loop below.
5590 # First set a reasonable default.
5591 lt_cv_sys_max_cmd_len=16384
5592 #
5593 if test -x /sbin/sysconfig; then
5594 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5595 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5596 esac
5597 fi
5598 ;;
5599 sco3.2v5*)
5600 lt_cv_sys_max_cmd_len=102400
5601 ;;
5602 sysv5* | sco5v6* | sysv4.2uw2*)
5603 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5604 if test -n "$kargmax"; then
5605 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5606 else
5607 lt_cv_sys_max_cmd_len=32768
5608 fi
5609 ;;
5610 *)
5611 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5612 if test -n "$lt_cv_sys_max_cmd_len"; then
5613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5615 else
5616 # Make teststring a little bigger before we do anything with it.
5617 # a 1K string should be a reasonable start.
5618 for i in 1 2 3 4 5 6 7 8 ; do
5619 teststring=$teststring$teststring
5620 done
5621 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5622 # If test is not a shell built-in, we'll probably end up computing a
5623 # maximum length that is only half of the actual maximum length, but
5624 # we can't tell.
5625 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5626 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5627 test $i != 17 # 1/2 MB should be enough
5628 do
5629 i=`expr $i + 1`
5630 teststring=$teststring$teststring
5631 done
5632 # Only check the string length outside the loop.
5633 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5634 teststring=
5635 # Add a significant safety factor because C++ compilers can tack on
5636 # massive amounts of additional arguments before passing them to the
5637 # linker. It appears as though 1/2 is a usable value.
5638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5639 fi
5640 ;;
5641 esac
5642
5643 fi
5644
5645 if test -n $lt_cv_sys_max_cmd_len ; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5647 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5648 else
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5650 $as_echo "none" >&6; }
5651 fi
5652 max_cmd_len=$lt_cv_sys_max_cmd_len
5653
5654
5655
5656
5657
5658
5659 : ${CP="cp -f"}
5660 : ${MV="mv -f"}
5661 : ${RM="rm -f"}
5662
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5664 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5665 # Try some XSI features
5666 xsi_shell=no
5667 ( _lt_dummy="a/b/c"
5668 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5669 = c,a/b,, \
5670 && eval 'test $(( 1 + 1 )) -eq 2 \
5671 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5672 && xsi_shell=yes
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5674 $as_echo "$xsi_shell" >&6; }
5675
5676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5678 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5679 lt_shell_append=no
5680 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5681 >/dev/null 2>&1 \
5682 && lt_shell_append=yes
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5684 $as_echo "$lt_shell_append" >&6; }
5685
5686
5687 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5688 lt_unset=unset
5689 else
5690 lt_unset=false
5691 fi
5692
5693
5694
5695
5696
5697 # test EBCDIC or ASCII
5698 case `echo X|tr X '\101'` in
5699 A) # ASCII based system
5700 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5701 lt_SP2NL='tr \040 \012'
5702 lt_NL2SP='tr \015\012 \040\040'
5703 ;;
5704 *) # EBCDIC based system
5705 lt_SP2NL='tr \100 \n'
5706 lt_NL2SP='tr \r\n \100\100'
5707 ;;
5708 esac
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5719 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5720 if ${lt_cv_ld_reload_flag+:} false; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 lt_cv_ld_reload_flag='-r'
5724 fi
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5726 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5727 reload_flag=$lt_cv_ld_reload_flag
5728 case $reload_flag in
5729 "" | " "*) ;;
5730 *) reload_flag=" $reload_flag" ;;
5731 esac
5732 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5733 case $host_os in
5734 darwin*)
5735 if test "$GCC" = yes; then
5736 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5737 else
5738 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5739 fi
5740 ;;
5741 esac
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751 if test -n "$ac_tool_prefix"; then
5752 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5753 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if ${ac_cv_prog_OBJDUMP+:} false; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 if test -n "$OBJDUMP"; then
5760 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773 done
5774 done
5775 IFS=$as_save_IFS
5776
5777 fi
5778 fi
5779 OBJDUMP=$ac_cv_prog_OBJDUMP
5780 if test -n "$OBJDUMP"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5782 $as_echo "$OBJDUMP" >&6; }
5783 else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5786 fi
5787
5788
5789 fi
5790 if test -z "$ac_cv_prog_OBJDUMP"; then
5791 ac_ct_OBJDUMP=$OBJDUMP
5792 # Extract the first word of "objdump", so it can be a program name with args.
5793 set dummy objdump; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 if test -n "$ac_ct_OBJDUMP"; then
5800 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817 fi
5818 fi
5819 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5820 if test -n "$ac_ct_OBJDUMP"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5822 $as_echo "$ac_ct_OBJDUMP" >&6; }
5823 else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5826 fi
5827
5828 if test "x$ac_ct_OBJDUMP" = x; then
5829 OBJDUMP="false"
5830 else
5831 case $cross_compiling:$ac_tool_warned in
5832 yes:)
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5835 ac_tool_warned=yes ;;
5836 esac
5837 OBJDUMP=$ac_ct_OBJDUMP
5838 fi
5839 else
5840 OBJDUMP="$ac_cv_prog_OBJDUMP"
5841 fi
5842
5843 test -z "$OBJDUMP" && OBJDUMP=objdump
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5854 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5855 if ${lt_cv_deplibs_check_method+:} false; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 lt_cv_file_magic_cmd='$MAGIC_CMD'
5859 lt_cv_file_magic_test_file=
5860 lt_cv_deplibs_check_method='unknown'
5861 # Need to set the preceding variable on all platforms that support
5862 # interlibrary dependencies.
5863 # 'none' -- dependencies not supported.
5864 # `unknown' -- same as none, but documents that we really don't know.
5865 # 'pass_all' -- all dependencies passed with no checks.
5866 # 'test_compile' -- check by making test program.
5867 # 'file_magic [[regex]]' -- check by looking for files in library path
5868 # which responds to the $file_magic_cmd with a given extended regex.
5869 # If you have `file' or equivalent on your system and you're not sure
5870 # whether `pass_all' will *always* work, you probably want this one.
5871
5872 case $host_os in
5873 aix[4-9]*)
5874 lt_cv_deplibs_check_method=pass_all
5875 ;;
5876
5877 beos*)
5878 lt_cv_deplibs_check_method=pass_all
5879 ;;
5880
5881 bsdi[45]*)
5882 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5883 lt_cv_file_magic_cmd='/usr/bin/file -L'
5884 lt_cv_file_magic_test_file=/shlib/libc.so
5885 ;;
5886
5887 cygwin*)
5888 # func_win32_libid is a shell function defined in ltmain.sh
5889 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5890 lt_cv_file_magic_cmd='func_win32_libid'
5891 ;;
5892
5893 mingw* | pw32*)
5894 # Base MSYS/MinGW do not provide the 'file' command needed by
5895 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5896 # unless we find 'file', for example because we are cross-compiling.
5897 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5898 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5899 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5900 lt_cv_file_magic_cmd='func_win32_libid'
5901 else
5902 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5903 lt_cv_file_magic_cmd='$OBJDUMP -f'
5904 fi
5905 ;;
5906
5907 cegcc*)
5908 # use the weaker test based on 'objdump'. See mingw*.
5909 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5910 lt_cv_file_magic_cmd='$OBJDUMP -f'
5911 ;;
5912
5913 darwin* | rhapsody*)
5914 lt_cv_deplibs_check_method=pass_all
5915 ;;
5916
5917 freebsd* | dragonfly*)
5918 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5919 case $host_cpu in
5920 i*86 )
5921 # Not sure whether the presence of OpenBSD here was a mistake.
5922 # Let's accept both of them until this is cleared up.
5923 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5924 lt_cv_file_magic_cmd=/usr/bin/file
5925 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5926 ;;
5927 esac
5928 else
5929 lt_cv_deplibs_check_method=pass_all
5930 fi
5931 ;;
5932
5933 gnu*)
5934 lt_cv_deplibs_check_method=pass_all
5935 ;;
5936
5937 haiku*)
5938 lt_cv_deplibs_check_method=pass_all
5939 ;;
5940
5941 hpux10.20* | hpux11*)
5942 lt_cv_file_magic_cmd=/usr/bin/file
5943 case $host_cpu in
5944 ia64*)
5945 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5946 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5947 ;;
5948 hppa*64*)
5949 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]'
5950 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5951 ;;
5952 *)
5953 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5954 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5955 ;;
5956 esac
5957 ;;
5958
5959 interix[3-9]*)
5960 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5962 ;;
5963
5964 irix5* | irix6* | nonstopux*)
5965 case $LD in
5966 *-32|*"-32 ") libmagic=32-bit;;
5967 *-n32|*"-n32 ") libmagic=N32;;
5968 *-64|*"-64 ") libmagic=64-bit;;
5969 *) libmagic=never-match;;
5970 esac
5971 lt_cv_deplibs_check_method=pass_all
5972 ;;
5973
5974 # This must be Linux ELF.
5975 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5976 lt_cv_deplibs_check_method=pass_all
5977 ;;
5978
5979 netbsd*)
5980 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5982 else
5983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5984 fi
5985 ;;
5986
5987 newos6*)
5988 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5989 lt_cv_file_magic_cmd=/usr/bin/file
5990 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5991 ;;
5992
5993 *nto* | *qnx*)
5994 lt_cv_deplibs_check_method=pass_all
5995 ;;
5996
5997 openbsd*)
5998 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6000 else
6001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6002 fi
6003 ;;
6004
6005 osf3* | osf4* | osf5*)
6006 lt_cv_deplibs_check_method=pass_all
6007 ;;
6008
6009 rdos*)
6010 lt_cv_deplibs_check_method=pass_all
6011 ;;
6012
6013 solaris*)
6014 lt_cv_deplibs_check_method=pass_all
6015 ;;
6016
6017 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6018 lt_cv_deplibs_check_method=pass_all
6019 ;;
6020
6021 sysv4 | sysv4.3*)
6022 case $host_vendor in
6023 motorola)
6024 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]'
6025 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6026 ;;
6027 ncr)
6028 lt_cv_deplibs_check_method=pass_all
6029 ;;
6030 sequent)
6031 lt_cv_file_magic_cmd='/bin/file'
6032 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6033 ;;
6034 sni)
6035 lt_cv_file_magic_cmd='/bin/file'
6036 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6037 lt_cv_file_magic_test_file=/lib/libc.so
6038 ;;
6039 siemens)
6040 lt_cv_deplibs_check_method=pass_all
6041 ;;
6042 pc)
6043 lt_cv_deplibs_check_method=pass_all
6044 ;;
6045 esac
6046 ;;
6047
6048 tpf*)
6049 lt_cv_deplibs_check_method=pass_all
6050 ;;
6051 esac
6052
6053 fi
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6055 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6056 file_magic_cmd=$lt_cv_file_magic_cmd
6057 deplibs_check_method=$lt_cv_deplibs_check_method
6058 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071 plugin_option=
6072 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6073 for plugin in $plugin_names; do
6074 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6075 if test x$plugin_so = x$plugin; then
6076 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6077 fi
6078 if test x$plugin_so != x$plugin; then
6079 plugin_option="--plugin $plugin_so"
6080 break
6081 fi
6082 done
6083
6084 if test -n "$ac_tool_prefix"; then
6085 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6086 set dummy ${ac_tool_prefix}ar; ac_word=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if ${ac_cv_prog_AR+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091 else
6092 if test -n "$AR"; then
6093 ac_cv_prog_AR="$AR" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_AR="${ac_tool_prefix}ar"
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6105 fi
6106 done
6107 done
6108 IFS=$as_save_IFS
6109
6110 fi
6111 fi
6112 AR=$ac_cv_prog_AR
6113 if test -n "$AR"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6115 $as_echo "$AR" >&6; }
6116 else
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }
6119 fi
6120
6121
6122 fi
6123 if test -z "$ac_cv_prog_AR"; then
6124 ac_ct_AR=$AR
6125 # Extract the first word of "ar", so it can be a program name with args.
6126 set dummy ar; ac_word=$2
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 $as_echo_n "checking for $ac_word... " >&6; }
6129 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6132 if test -n "$ac_ct_AR"; then
6133 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6134 else
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6137 do
6138 IFS=$as_save_IFS
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142 ac_cv_prog_ac_ct_AR="ar"
6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 break 2
6145 fi
6146 done
6147 done
6148 IFS=$as_save_IFS
6149
6150 fi
6151 fi
6152 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6153 if test -n "$ac_ct_AR"; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6155 $as_echo "$ac_ct_AR" >&6; }
6156 else
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158 $as_echo "no" >&6; }
6159 fi
6160
6161 if test "x$ac_ct_AR" = x; then
6162 AR="false"
6163 else
6164 case $cross_compiling:$ac_tool_warned in
6165 yes:)
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6168 ac_tool_warned=yes ;;
6169 esac
6170 AR=$ac_ct_AR
6171 fi
6172 else
6173 AR="$ac_cv_prog_AR"
6174 fi
6175
6176 test -z "$AR" && AR=ar
6177 if test -n "$plugin_option"; then
6178 if $AR --help 2>&1 | grep -q "\--plugin"; then
6179 touch conftest.c
6180 $AR $plugin_option rc conftest.a conftest.c
6181 if test "$?" != 0; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6183 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6184 else
6185 AR="$AR $plugin_option"
6186 fi
6187 rm -f conftest.*
6188 fi
6189 fi
6190 test -z "$AR_FLAGS" && AR_FLAGS=cru
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202 if test -n "$ac_tool_prefix"; then
6203 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6204 set dummy ${ac_tool_prefix}strip; ac_word=$2
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206 $as_echo_n "checking for $ac_word... " >&6; }
6207 if ${ac_cv_prog_STRIP+:} false; then :
6208 $as_echo_n "(cached) " >&6
6209 else
6210 if test -n "$STRIP"; then
6211 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6212 else
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 break 2
6223 fi
6224 done
6225 done
6226 IFS=$as_save_IFS
6227
6228 fi
6229 fi
6230 STRIP=$ac_cv_prog_STRIP
6231 if test -n "$STRIP"; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6233 $as_echo "$STRIP" >&6; }
6234 else
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236 $as_echo "no" >&6; }
6237 fi
6238
6239
6240 fi
6241 if test -z "$ac_cv_prog_STRIP"; then
6242 ac_ct_STRIP=$STRIP
6243 # Extract the first word of "strip", so it can be a program name with args.
6244 set dummy strip; ac_word=$2
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 $as_echo_n "checking for $ac_word... " >&6; }
6247 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6248 $as_echo_n "(cached) " >&6
6249 else
6250 if test -n "$ac_ct_STRIP"; then
6251 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6255 do
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260 ac_cv_prog_ac_ct_STRIP="strip"
6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 break 2
6263 fi
6264 done
6265 done
6266 IFS=$as_save_IFS
6267
6268 fi
6269 fi
6270 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6271 if test -n "$ac_ct_STRIP"; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6273 $as_echo "$ac_ct_STRIP" >&6; }
6274 else
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 $as_echo "no" >&6; }
6277 fi
6278
6279 if test "x$ac_ct_STRIP" = x; then
6280 STRIP=":"
6281 else
6282 case $cross_compiling:$ac_tool_warned in
6283 yes:)
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6286 ac_tool_warned=yes ;;
6287 esac
6288 STRIP=$ac_ct_STRIP
6289 fi
6290 else
6291 STRIP="$ac_cv_prog_STRIP"
6292 fi
6293
6294 test -z "$STRIP" && STRIP=:
6295
6296
6297
6298
6299
6300
6301 if test -n "$ac_tool_prefix"; then
6302 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6303 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if ${ac_cv_prog_RANLIB+:} false; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 if test -n "$RANLIB"; then
6310 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6319 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 break 2
6322 fi
6323 done
6324 done
6325 IFS=$as_save_IFS
6326
6327 fi
6328 fi
6329 RANLIB=$ac_cv_prog_RANLIB
6330 if test -n "$RANLIB"; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6332 $as_echo "$RANLIB" >&6; }
6333 else
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6336 fi
6337
6338
6339 fi
6340 if test -z "$ac_cv_prog_RANLIB"; then
6341 ac_ct_RANLIB=$RANLIB
6342 # Extract the first word of "ranlib", so it can be a program name with args.
6343 set dummy ranlib; ac_word=$2
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 if test -n "$ac_ct_RANLIB"; then
6350 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355 IFS=$as_save_IFS
6356 test -z "$as_dir" && as_dir=.
6357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6359 ac_cv_prog_ac_ct_RANLIB="ranlib"
6360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361 break 2
6362 fi
6363 done
6364 done
6365 IFS=$as_save_IFS
6366
6367 fi
6368 fi
6369 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6370 if test -n "$ac_ct_RANLIB"; then
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6372 $as_echo "$ac_ct_RANLIB" >&6; }
6373 else
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6376 fi
6377
6378 if test "x$ac_ct_RANLIB" = x; then
6379 RANLIB=":"
6380 else
6381 case $cross_compiling:$ac_tool_warned in
6382 yes:)
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6385 ac_tool_warned=yes ;;
6386 esac
6387 RANLIB=$ac_ct_RANLIB
6388 fi
6389 else
6390 RANLIB="$ac_cv_prog_RANLIB"
6391 fi
6392
6393 test -z "$RANLIB" && RANLIB=:
6394 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6395 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6396 RANLIB="$RANLIB $plugin_option"
6397 fi
6398 fi
6399
6400
6401
6402
6403
6404
6405 # Determine commands to create old-style static archives.
6406 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6407 old_postinstall_cmds='chmod 644 $oldlib'
6408 old_postuninstall_cmds=
6409
6410 if test -n "$RANLIB"; then
6411 case $host_os in
6412 openbsd*)
6413 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6414 ;;
6415 *)
6416 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6417 ;;
6418 esac
6419 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6420 fi
6421
6422 case $host_os in
6423 darwin*)
6424 lock_old_archive_extraction=yes ;;
6425 *)
6426 lock_old_archive_extraction=no ;;
6427 esac
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449 for ac_prog in gawk mawk nawk awk
6450 do
6451 # Extract the first word of "$ac_prog", so it can be a program name with args.
6452 set dummy $ac_prog; ac_word=$2
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454 $as_echo_n "checking for $ac_word... " >&6; }
6455 if ${ac_cv_prog_AWK+:} false; then :
6456 $as_echo_n "(cached) " >&6
6457 else
6458 if test -n "$AWK"; then
6459 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6460 else
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6463 do
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6468 ac_cv_prog_AWK="$ac_prog"
6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 break 2
6471 fi
6472 done
6473 done
6474 IFS=$as_save_IFS
6475
6476 fi
6477 fi
6478 AWK=$ac_cv_prog_AWK
6479 if test -n "$AWK"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6481 $as_echo "$AWK" >&6; }
6482 else
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6485 fi
6486
6487
6488 test -n "$AWK" && break
6489 done
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509 # If no C compiler was specified, use CC.
6510 LTCC=${LTCC-"$CC"}
6511
6512 # If no C compiler flags were specified, use CFLAGS.
6513 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6514
6515 # Allow CC to be a program name with arguments.
6516 compiler=$CC
6517
6518
6519 # Check for command to grab the raw symbol name followed by C symbol from nm.
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6521 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6522 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525
6526 # These are sane defaults that work on at least a few old systems.
6527 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6528
6529 # Character class describing NM global symbol codes.
6530 symcode='[BCDEGRST]'
6531
6532 # Regexp to match symbols that can be accessed directly from C.
6533 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6534
6535 # Define system-specific variables.
6536 case $host_os in
6537 aix*)
6538 symcode='[BCDT]'
6539 ;;
6540 cygwin* | mingw* | pw32* | cegcc*)
6541 symcode='[ABCDGISTW]'
6542 ;;
6543 hpux*)
6544 if test "$host_cpu" = ia64; then
6545 symcode='[ABCDEGRST]'
6546 fi
6547 ;;
6548 irix* | nonstopux*)
6549 symcode='[BCDEGRST]'
6550 ;;
6551 osf*)
6552 symcode='[BCDEGQRST]'
6553 ;;
6554 solaris*)
6555 symcode='[BDRT]'
6556 ;;
6557 sco3.2v5*)
6558 symcode='[DT]'
6559 ;;
6560 sysv4.2uw2*)
6561 symcode='[DT]'
6562 ;;
6563 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6564 symcode='[ABDT]'
6565 ;;
6566 sysv4)
6567 symcode='[DFNSTU]'
6568 ;;
6569 esac
6570
6571 # If we're using GNU nm, then use its standard symbol codes.
6572 case `$NM -V 2>&1` in
6573 *GNU* | *'with BFD'*)
6574 symcode='[ABCDGIRSTW]' ;;
6575 esac
6576
6577 # Transform an extracted symbol line into a proper C declaration.
6578 # Some systems (esp. on ia64) link data and code symbols differently,
6579 # so use this general approach.
6580 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6581
6582 # Transform an extracted symbol line into symbol name and symbol address
6583 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6584 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'"
6585
6586 # Handle CRLF in mingw tool chain
6587 opt_cr=
6588 case $build_os in
6589 mingw*)
6590 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6591 ;;
6592 esac
6593
6594 # Try without a prefix underscore, then with it.
6595 for ac_symprfx in "" "_"; do
6596
6597 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6598 symxfrm="\\1 $ac_symprfx\\2 \\2"
6599
6600 # Write the raw and C identifiers.
6601 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6602 # Fake it for dumpbin and say T for any non-static function
6603 # and D for any global variable.
6604 # Also find C++ and __fastcall symbols from MSVC++,
6605 # which start with @ or ?.
6606 lt_cv_sys_global_symbol_pipe="$AWK '"\
6607 " {last_section=section; section=\$ 3};"\
6608 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6609 " \$ 0!~/External *\|/{next};"\
6610 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6611 " {if(hide[section]) next};"\
6612 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6613 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6614 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6615 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6616 " ' prfx=^$ac_symprfx"
6617 else
6618 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6619 fi
6620
6621 # Check to see that the pipe works correctly.
6622 pipe_works=no
6623
6624 rm -f conftest*
6625 cat > conftest.$ac_ext <<_LT_EOF
6626 #ifdef __cplusplus
6627 extern "C" {
6628 #endif
6629 char nm_test_var;
6630 void nm_test_func(void);
6631 void nm_test_func(void){}
6632 #ifdef __cplusplus
6633 }
6634 #endif
6635 int main(){nm_test_var='a';nm_test_func();return(0);}
6636 _LT_EOF
6637
6638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6639 (eval $ac_compile) 2>&5
6640 ac_status=$?
6641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6642 test $ac_status = 0; }; then
6643 # Now try to grab the symbols.
6644 nlist=conftest.nm
6645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6646 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6647 ac_status=$?
6648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6649 test $ac_status = 0; } && test -s "$nlist"; then
6650 # Try sorting and uniquifying the output.
6651 if sort "$nlist" | uniq > "$nlist"T; then
6652 mv -f "$nlist"T "$nlist"
6653 else
6654 rm -f "$nlist"T
6655 fi
6656
6657 # Make sure that we snagged all the symbols we need.
6658 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6659 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6660 cat <<_LT_EOF > conftest.$ac_ext
6661 #ifdef __cplusplus
6662 extern "C" {
6663 #endif
6664
6665 _LT_EOF
6666 # Now generate the symbol file.
6667 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6668
6669 cat <<_LT_EOF >> conftest.$ac_ext
6670
6671 /* The mapping between symbol names and symbols. */
6672 const struct {
6673 const char *name;
6674 void *address;
6675 }
6676 lt__PROGRAM__LTX_preloaded_symbols[] =
6677 {
6678 { "@PROGRAM@", (void *) 0 },
6679 _LT_EOF
6680 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6681 cat <<\_LT_EOF >> conftest.$ac_ext
6682 {0, (void *) 0}
6683 };
6684
6685 /* This works around a problem in FreeBSD linker */
6686 #ifdef FREEBSD_WORKAROUND
6687 static const void *lt_preloaded_setup() {
6688 return lt__PROGRAM__LTX_preloaded_symbols;
6689 }
6690 #endif
6691
6692 #ifdef __cplusplus
6693 }
6694 #endif
6695 _LT_EOF
6696 # Now try linking the two files.
6697 mv conftest.$ac_objext conftstm.$ac_objext
6698 lt_save_LIBS="$LIBS"
6699 lt_save_CFLAGS="$CFLAGS"
6700 LIBS="conftstm.$ac_objext"
6701 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6703 (eval $ac_link) 2>&5
6704 ac_status=$?
6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6707 pipe_works=yes
6708 fi
6709 LIBS="$lt_save_LIBS"
6710 CFLAGS="$lt_save_CFLAGS"
6711 else
6712 echo "cannot find nm_test_func in $nlist" >&5
6713 fi
6714 else
6715 echo "cannot find nm_test_var in $nlist" >&5
6716 fi
6717 else
6718 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6719 fi
6720 else
6721 echo "$progname: failed program was:" >&5
6722 cat conftest.$ac_ext >&5
6723 fi
6724 rm -rf conftest* conftst*
6725
6726 # Do not use the global_symbol_pipe unless it works.
6727 if test "$pipe_works" = yes; then
6728 break
6729 else
6730 lt_cv_sys_global_symbol_pipe=
6731 fi
6732 done
6733
6734 fi
6735
6736 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6737 lt_cv_sys_global_symbol_to_cdecl=
6738 fi
6739 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6741 $as_echo "failed" >&6; }
6742 else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6744 $as_echo "ok" >&6; }
6745 fi
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768 # Check whether --enable-libtool-lock was given.
6769 if test "${enable_libtool_lock+set}" = set; then :
6770 enableval=$enable_libtool_lock;
6771 fi
6772
6773 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6774
6775 # Some flags need to be propagated to the compiler or linker for good
6776 # libtool support.
6777 case $host in
6778 ia64-*-hpux*)
6779 # Find out which ABI we are using.
6780 echo 'int i;' > conftest.$ac_ext
6781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6782 (eval $ac_compile) 2>&5
6783 ac_status=$?
6784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6785 test $ac_status = 0; }; then
6786 case `/usr/bin/file conftest.$ac_objext` in
6787 *ELF-32*)
6788 HPUX_IA64_MODE="32"
6789 ;;
6790 *ELF-64*)
6791 HPUX_IA64_MODE="64"
6792 ;;
6793 esac
6794 fi
6795 rm -rf conftest*
6796 ;;
6797 *-*-irix6*)
6798 # Find out which ABI we are using.
6799 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6801 (eval $ac_compile) 2>&5
6802 ac_status=$?
6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804 test $ac_status = 0; }; then
6805 if test "$lt_cv_prog_gnu_ld" = yes; then
6806 case `/usr/bin/file conftest.$ac_objext` in
6807 *32-bit*)
6808 LD="${LD-ld} -melf32bsmip"
6809 ;;
6810 *N32*)
6811 LD="${LD-ld} -melf32bmipn32"
6812 ;;
6813 *64-bit*)
6814 LD="${LD-ld} -melf64bmip"
6815 ;;
6816 esac
6817 else
6818 case `/usr/bin/file conftest.$ac_objext` in
6819 *32-bit*)
6820 LD="${LD-ld} -32"
6821 ;;
6822 *N32*)
6823 LD="${LD-ld} -n32"
6824 ;;
6825 *64-bit*)
6826 LD="${LD-ld} -64"
6827 ;;
6828 esac
6829 fi
6830 fi
6831 rm -rf conftest*
6832 ;;
6833
6834 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6835 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6836 # Find out which ABI we are using.
6837 echo 'int i;' > conftest.$ac_ext
6838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6839 (eval $ac_compile) 2>&5
6840 ac_status=$?
6841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6842 test $ac_status = 0; }; then
6843 case `/usr/bin/file conftest.o` in
6844 *32-bit*)
6845 case $host in
6846 x86_64-*kfreebsd*-gnu)
6847 LD="${LD-ld} -m elf_i386_fbsd"
6848 ;;
6849 x86_64-*linux*)
6850 case `/usr/bin/file conftest.o` in
6851 *x86-64*)
6852 LD="${LD-ld} -m elf32_x86_64"
6853 ;;
6854 *)
6855 LD="${LD-ld} -m elf_i386"
6856 ;;
6857 esac
6858 ;;
6859 powerpc64le-*linux*)
6860 LD="${LD-ld} -m elf32lppclinux"
6861 ;;
6862 powerpc64-*linux*)
6863 LD="${LD-ld} -m elf32ppclinux"
6864 ;;
6865 s390x-*linux*)
6866 LD="${LD-ld} -m elf_s390"
6867 ;;
6868 sparc64-*linux*)
6869 LD="${LD-ld} -m elf32_sparc"
6870 ;;
6871 esac
6872 ;;
6873 *64-bit*)
6874 case $host in
6875 x86_64-*kfreebsd*-gnu)
6876 LD="${LD-ld} -m elf_x86_64_fbsd"
6877 ;;
6878 x86_64-*linux*)
6879 LD="${LD-ld} -m elf_x86_64"
6880 ;;
6881 powerpcle-*linux*)
6882 LD="${LD-ld} -m elf64lppc"
6883 ;;
6884 powerpc-*linux*)
6885 LD="${LD-ld} -m elf64ppc"
6886 ;;
6887 s390*-*linux*|s390*-*tpf*)
6888 LD="${LD-ld} -m elf64_s390"
6889 ;;
6890 sparc*-*linux*)
6891 LD="${LD-ld} -m elf64_sparc"
6892 ;;
6893 esac
6894 ;;
6895 esac
6896 fi
6897 rm -rf conftest*
6898 ;;
6899
6900 *-*-sco3.2v5*)
6901 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6902 SAVE_CFLAGS="$CFLAGS"
6903 CFLAGS="$CFLAGS -belf"
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6905 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6906 if ${lt_cv_cc_needs_belf+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 ac_ext=c
6910 ac_cpp='$CPP $CPPFLAGS'
6911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6914
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6917
6918 int
6919 main ()
6920 {
6921
6922 ;
6923 return 0;
6924 }
6925 _ACEOF
6926 if ac_fn_c_try_link "$LINENO"; then :
6927 lt_cv_cc_needs_belf=yes
6928 else
6929 lt_cv_cc_needs_belf=no
6930 fi
6931 rm -f core conftest.err conftest.$ac_objext \
6932 conftest$ac_exeext conftest.$ac_ext
6933 ac_ext=c
6934 ac_cpp='$CPP $CPPFLAGS'
6935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6938
6939 fi
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6941 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6942 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6943 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6944 CFLAGS="$SAVE_CFLAGS"
6945 fi
6946 ;;
6947 sparc*-*solaris*)
6948 # Find out which ABI we are using.
6949 echo 'int i;' > conftest.$ac_ext
6950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6951 (eval $ac_compile) 2>&5
6952 ac_status=$?
6953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6954 test $ac_status = 0; }; then
6955 case `/usr/bin/file conftest.o` in
6956 *64-bit*)
6957 case $lt_cv_prog_gnu_ld in
6958 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6959 *)
6960 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6961 LD="${LD-ld} -64"
6962 fi
6963 ;;
6964 esac
6965 ;;
6966 esac
6967 fi
6968 rm -rf conftest*
6969 ;;
6970 esac
6971
6972 need_locks="$enable_libtool_lock"
6973
6974
6975 case $host_os in
6976 rhapsody* | darwin*)
6977 if test -n "$ac_tool_prefix"; then
6978 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6979 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 $as_echo_n "checking for $ac_word... " >&6; }
6982 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6983 $as_echo_n "(cached) " >&6
6984 else
6985 if test -n "$DSYMUTIL"; then
6986 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999 done
7000 done
7001 IFS=$as_save_IFS
7002
7003 fi
7004 fi
7005 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7006 if test -n "$DSYMUTIL"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7008 $as_echo "$DSYMUTIL" >&6; }
7009 else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7012 fi
7013
7014
7015 fi
7016 if test -z "$ac_cv_prog_DSYMUTIL"; then
7017 ac_ct_DSYMUTIL=$DSYMUTIL
7018 # Extract the first word of "dsymutil", so it can be a program name with args.
7019 set dummy dsymutil; ac_word=$2
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 $as_echo_n "checking for $ac_word... " >&6; }
7022 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 if test -n "$ac_ct_DSYMUTIL"; then
7026 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 break 2
7038 fi
7039 done
7040 done
7041 IFS=$as_save_IFS
7042
7043 fi
7044 fi
7045 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7046 if test -n "$ac_ct_DSYMUTIL"; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7048 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7049 else
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7052 fi
7053
7054 if test "x$ac_ct_DSYMUTIL" = x; then
7055 DSYMUTIL=":"
7056 else
7057 case $cross_compiling:$ac_tool_warned in
7058 yes:)
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7061 ac_tool_warned=yes ;;
7062 esac
7063 DSYMUTIL=$ac_ct_DSYMUTIL
7064 fi
7065 else
7066 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7067 fi
7068
7069 if test -n "$ac_tool_prefix"; then
7070 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7071 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 $as_echo_n "checking for $ac_word... " >&6; }
7074 if ${ac_cv_prog_NMEDIT+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 if test -n "$NMEDIT"; then
7078 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7079 else
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH
7082 do
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 break 2
7090 fi
7091 done
7092 done
7093 IFS=$as_save_IFS
7094
7095 fi
7096 fi
7097 NMEDIT=$ac_cv_prog_NMEDIT
7098 if test -n "$NMEDIT"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7100 $as_echo "$NMEDIT" >&6; }
7101 else
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103 $as_echo "no" >&6; }
7104 fi
7105
7106
7107 fi
7108 if test -z "$ac_cv_prog_NMEDIT"; then
7109 ac_ct_NMEDIT=$NMEDIT
7110 # Extract the first word of "nmedit", so it can be a program name with args.
7111 set dummy nmedit; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7117 if test -n "$ac_ct_NMEDIT"; then
7118 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7130 fi
7131 done
7132 done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7138 if test -n "$ac_ct_NMEDIT"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7140 $as_echo "$ac_ct_NMEDIT" >&6; }
7141 else
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7144 fi
7145
7146 if test "x$ac_ct_NMEDIT" = x; then
7147 NMEDIT=":"
7148 else
7149 case $cross_compiling:$ac_tool_warned in
7150 yes:)
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7153 ac_tool_warned=yes ;;
7154 esac
7155 NMEDIT=$ac_ct_NMEDIT
7156 fi
7157 else
7158 NMEDIT="$ac_cv_prog_NMEDIT"
7159 fi
7160
7161 if test -n "$ac_tool_prefix"; then
7162 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7163 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_prog_LIPO+:} false; then :
7167 $as_echo_n "(cached) " >&6
7168 else
7169 if test -n "$LIPO"; then
7170 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 break 2
7182 fi
7183 done
7184 done
7185 IFS=$as_save_IFS
7186
7187 fi
7188 fi
7189 LIPO=$ac_cv_prog_LIPO
7190 if test -n "$LIPO"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7192 $as_echo "$LIPO" >&6; }
7193 else
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 fi
7197
7198
7199 fi
7200 if test -z "$ac_cv_prog_LIPO"; then
7201 ac_ct_LIPO=$LIPO
7202 # Extract the first word of "lipo", so it can be a program name with args.
7203 set dummy lipo; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 if test -n "$ac_ct_LIPO"; then
7210 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_ac_ct_LIPO="lipo"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7222 fi
7223 done
7224 done
7225 IFS=$as_save_IFS
7226
7227 fi
7228 fi
7229 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7230 if test -n "$ac_ct_LIPO"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7232 $as_echo "$ac_ct_LIPO" >&6; }
7233 else
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 fi
7237
7238 if test "x$ac_ct_LIPO" = x; then
7239 LIPO=":"
7240 else
7241 case $cross_compiling:$ac_tool_warned in
7242 yes:)
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7245 ac_tool_warned=yes ;;
7246 esac
7247 LIPO=$ac_ct_LIPO
7248 fi
7249 else
7250 LIPO="$ac_cv_prog_LIPO"
7251 fi
7252
7253 if test -n "$ac_tool_prefix"; then
7254 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7255 set dummy ${ac_tool_prefix}otool; ac_word=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257 $as_echo_n "checking for $ac_word... " >&6; }
7258 if ${ac_cv_prog_OTOOL+:} false; then :
7259 $as_echo_n "(cached) " >&6
7260 else
7261 if test -n "$OTOOL"; then
7262 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7263 else
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 for as_dir in $PATH
7266 do
7267 IFS=$as_save_IFS
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7271 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 break 2
7274 fi
7275 done
7276 done
7277 IFS=$as_save_IFS
7278
7279 fi
7280 fi
7281 OTOOL=$ac_cv_prog_OTOOL
7282 if test -n "$OTOOL"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7284 $as_echo "$OTOOL" >&6; }
7285 else
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }
7288 fi
7289
7290
7291 fi
7292 if test -z "$ac_cv_prog_OTOOL"; then
7293 ac_ct_OTOOL=$OTOOL
7294 # Extract the first word of "otool", so it can be a program name with args.
7295 set dummy otool; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 if test -n "$ac_ct_OTOOL"; then
7302 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_ac_ct_OTOOL="otool"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 break 2
7314 fi
7315 done
7316 done
7317 IFS=$as_save_IFS
7318
7319 fi
7320 fi
7321 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7322 if test -n "$ac_ct_OTOOL"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7324 $as_echo "$ac_ct_OTOOL" >&6; }
7325 else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329
7330 if test "x$ac_ct_OTOOL" = x; then
7331 OTOOL=":"
7332 else
7333 case $cross_compiling:$ac_tool_warned in
7334 yes:)
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7337 ac_tool_warned=yes ;;
7338 esac
7339 OTOOL=$ac_ct_OTOOL
7340 fi
7341 else
7342 OTOOL="$ac_cv_prog_OTOOL"
7343 fi
7344
7345 if test -n "$ac_tool_prefix"; then
7346 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7347 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if ${ac_cv_prog_OTOOL64+:} false; then :
7351 $as_echo_n "(cached) " >&6
7352 else
7353 if test -n "$OTOOL64"; then
7354 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7355 else
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7366 fi
7367 done
7368 done
7369 IFS=$as_save_IFS
7370
7371 fi
7372 fi
7373 OTOOL64=$ac_cv_prog_OTOOL64
7374 if test -n "$OTOOL64"; then
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7376 $as_echo "$OTOOL64" >&6; }
7377 else
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7380 fi
7381
7382
7383 fi
7384 if test -z "$ac_cv_prog_OTOOL64"; then
7385 ac_ct_OTOOL64=$OTOOL64
7386 # Extract the first word of "otool64", so it can be a program name with args.
7387 set dummy otool64; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393 if test -n "$ac_ct_OTOOL64"; then
7394 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403 ac_cv_prog_ac_ct_OTOOL64="otool64"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 break 2
7406 fi
7407 done
7408 done
7409 IFS=$as_save_IFS
7410
7411 fi
7412 fi
7413 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7414 if test -n "$ac_ct_OTOOL64"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7416 $as_echo "$ac_ct_OTOOL64" >&6; }
7417 else
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7420 fi
7421
7422 if test "x$ac_ct_OTOOL64" = x; then
7423 OTOOL64=":"
7424 else
7425 case $cross_compiling:$ac_tool_warned in
7426 yes:)
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7429 ac_tool_warned=yes ;;
7430 esac
7431 OTOOL64=$ac_ct_OTOOL64
7432 fi
7433 else
7434 OTOOL64="$ac_cv_prog_OTOOL64"
7435 fi
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7464 $as_echo_n "checking for -single_module linker flag... " >&6; }
7465 if ${lt_cv_apple_cc_single_mod+:} false; then :
7466 $as_echo_n "(cached) " >&6
7467 else
7468 lt_cv_apple_cc_single_mod=no
7469 if test -z "${LT_MULTI_MODULE}"; then
7470 # By default we will add the -single_module flag. You can override
7471 # by either setting the environment variable LT_MULTI_MODULE
7472 # non-empty at configure time, or by adding -multi_module to the
7473 # link flags.
7474 rm -rf libconftest.dylib*
7475 echo "int foo(void){return 1;}" > conftest.c
7476 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7477 -dynamiclib -Wl,-single_module conftest.c" >&5
7478 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7479 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7480 _lt_result=$?
7481 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7482 lt_cv_apple_cc_single_mod=yes
7483 else
7484 cat conftest.err >&5
7485 fi
7486 rm -rf libconftest.dylib*
7487 rm -f conftest.*
7488 fi
7489 fi
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7491 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7493 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7494 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 lt_cv_ld_exported_symbols_list=no
7498 save_LDFLAGS=$LDFLAGS
7499 echo "_main" > conftest.sym
7500 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7503
7504 int
7505 main ()
7506 {
7507
7508 ;
7509 return 0;
7510 }
7511 _ACEOF
7512 if ac_fn_c_try_link "$LINENO"; then :
7513 lt_cv_ld_exported_symbols_list=yes
7514 else
7515 lt_cv_ld_exported_symbols_list=no
7516 fi
7517 rm -f core conftest.err conftest.$ac_objext \
7518 conftest$ac_exeext conftest.$ac_ext
7519 LDFLAGS="$save_LDFLAGS"
7520
7521 fi
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7523 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7525 $as_echo_n "checking for -force_load linker flag... " >&6; }
7526 if ${lt_cv_ld_force_load+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 lt_cv_ld_force_load=no
7530 cat > conftest.c << _LT_EOF
7531 int forced_loaded() { return 2;}
7532 _LT_EOF
7533 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7534 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7535 echo "$AR cru libconftest.a conftest.o" >&5
7536 $AR cru libconftest.a conftest.o 2>&5
7537 cat > conftest.c << _LT_EOF
7538 int main() { return 0;}
7539 _LT_EOF
7540 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7541 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7542 _lt_result=$?
7543 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7544 lt_cv_ld_force_load=yes
7545 else
7546 cat conftest.err >&5
7547 fi
7548 rm -f conftest.err libconftest.a conftest conftest.c
7549 rm -rf conftest.dSYM
7550
7551 fi
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7553 $as_echo "$lt_cv_ld_force_load" >&6; }
7554 case $host_os in
7555 rhapsody* | darwin1.[012])
7556 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7557 darwin1.*)
7558 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7559 darwin*) # darwin 5.x on
7560 # if running on 10.5 or later, the deployment target defaults
7561 # to the OS version, if on x86, and 10.4, the deployment
7562 # target defaults to 10.4. Don't you love it?
7563 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7564 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7565 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7566 10.[012][,.]*)
7567 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7568 10.*)
7569 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7570 esac
7571 ;;
7572 esac
7573 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7574 _lt_dar_single_mod='$single_module'
7575 fi
7576 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7577 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7578 else
7579 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7580 fi
7581 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7582 _lt_dsymutil='~$DSYMUTIL $lib || :'
7583 else
7584 _lt_dsymutil=
7585 fi
7586 ;;
7587 esac
7588
7589 for ac_header in dlfcn.h
7590 do :
7591 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7592 "
7593 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7594 cat >>confdefs.h <<_ACEOF
7595 #define HAVE_DLFCN_H 1
7596 _ACEOF
7597
7598 fi
7599
7600 done
7601
7602
7603 ac_header_dirent=no
7604 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7605 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7607 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7608 if eval \${$as_ac_Header+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612 /* end confdefs.h. */
7613 #include <sys/types.h>
7614 #include <$ac_hdr>
7615
7616 int
7617 main ()
7618 {
7619 if ((DIR *) 0)
7620 return 0;
7621 ;
7622 return 0;
7623 }
7624 _ACEOF
7625 if ac_fn_c_try_compile "$LINENO"; then :
7626 eval "$as_ac_Header=yes"
7627 else
7628 eval "$as_ac_Header=no"
7629 fi
7630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631 fi
7632 eval ac_res=\$$as_ac_Header
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7634 $as_echo "$ac_res" >&6; }
7635 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7636 cat >>confdefs.h <<_ACEOF
7637 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7638 _ACEOF
7639
7640 ac_header_dirent=$ac_hdr; break
7641 fi
7642
7643 done
7644 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7645 if test $ac_header_dirent = dirent.h; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7647 $as_echo_n "checking for library containing opendir... " >&6; }
7648 if ${ac_cv_search_opendir+:} false; then :
7649 $as_echo_n "(cached) " >&6
7650 else
7651 ac_func_search_save_LIBS=$LIBS
7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h. */
7654
7655 /* Override any GCC internal prototype to avoid an error.
7656 Use char because int might match the return type of a GCC
7657 builtin and then its argument prototype would still apply. */
7658 #ifdef __cplusplus
7659 extern "C"
7660 #endif
7661 char opendir ();
7662 int
7663 main ()
7664 {
7665 return opendir ();
7666 ;
7667 return 0;
7668 }
7669 _ACEOF
7670 for ac_lib in '' dir; do
7671 if test -z "$ac_lib"; then
7672 ac_res="none required"
7673 else
7674 ac_res=-l$ac_lib
7675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7676 fi
7677 if ac_fn_c_try_link "$LINENO"; then :
7678 ac_cv_search_opendir=$ac_res
7679 fi
7680 rm -f core conftest.err conftest.$ac_objext \
7681 conftest$ac_exeext
7682 if ${ac_cv_search_opendir+:} false; then :
7683 break
7684 fi
7685 done
7686 if ${ac_cv_search_opendir+:} false; then :
7687
7688 else
7689 ac_cv_search_opendir=no
7690 fi
7691 rm conftest.$ac_ext
7692 LIBS=$ac_func_search_save_LIBS
7693 fi
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7695 $as_echo "$ac_cv_search_opendir" >&6; }
7696 ac_res=$ac_cv_search_opendir
7697 if test "$ac_res" != no; then :
7698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7699
7700 fi
7701
7702 else
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7704 $as_echo_n "checking for library containing opendir... " >&6; }
7705 if ${ac_cv_search_opendir+:} false; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 ac_func_search_save_LIBS=$LIBS
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711
7712 /* Override any GCC internal prototype to avoid an error.
7713 Use char because int might match the return type of a GCC
7714 builtin and then its argument prototype would still apply. */
7715 #ifdef __cplusplus
7716 extern "C"
7717 #endif
7718 char opendir ();
7719 int
7720 main ()
7721 {
7722 return opendir ();
7723 ;
7724 return 0;
7725 }
7726 _ACEOF
7727 for ac_lib in '' x; do
7728 if test -z "$ac_lib"; then
7729 ac_res="none required"
7730 else
7731 ac_res=-l$ac_lib
7732 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7733 fi
7734 if ac_fn_c_try_link "$LINENO"; then :
7735 ac_cv_search_opendir=$ac_res
7736 fi
7737 rm -f core conftest.err conftest.$ac_objext \
7738 conftest$ac_exeext
7739 if ${ac_cv_search_opendir+:} false; then :
7740 break
7741 fi
7742 done
7743 if ${ac_cv_search_opendir+:} false; then :
7744
7745 else
7746 ac_cv_search_opendir=no
7747 fi
7748 rm conftest.$ac_ext
7749 LIBS=$ac_func_search_save_LIBS
7750 fi
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7752 $as_echo "$ac_cv_search_opendir" >&6; }
7753 ac_res=$ac_cv_search_opendir
7754 if test "$ac_res" != no; then :
7755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7756
7757 fi
7758
7759 fi
7760
7761
7762
7763
7764 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7765 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7766
7767 cat >>confdefs.h <<_ACEOF
7768 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7769 _ACEOF
7770
7771
7772 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7773
7774 fi
7775
7776
7777 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7778 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7779
7780 cat >>confdefs.h <<_ACEOF
7781 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7782 _ACEOF
7783
7784
7785 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7786
7787 else
7788 case " $LIBOBJS " in
7789 *" fileblocks.$ac_objext "* ) ;;
7790 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7791 ;;
7792 esac
7793
7794 fi
7795
7796
7797 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7798 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7799
7800 cat >>confdefs.h <<_ACEOF
7801 #define HAVE_STRUCT_STAT_ST_RDEV 1
7802 _ACEOF
7803
7804
7805 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7806
7807 fi
7808
7809
7810 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7811 #include <$ac_cv_struct_tm>
7812
7813 "
7814 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7815
7816 cat >>confdefs.h <<_ACEOF
7817 #define HAVE_STRUCT_TM_TM_ZONE 1
7818 _ACEOF
7819
7820
7821 fi
7822
7823 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7824
7825 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7826
7827 else
7828 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7829 "
7830 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7831 ac_have_decl=1
7832 else
7833 ac_have_decl=0
7834 fi
7835
7836 cat >>confdefs.h <<_ACEOF
7837 #define HAVE_DECL_TZNAME $ac_have_decl
7838 _ACEOF
7839
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7841 $as_echo_n "checking for tzname... " >&6; }
7842 if ${ac_cv_var_tzname+:} false; then :
7843 $as_echo_n "(cached) " >&6
7844 else
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7847 #include <time.h>
7848 #if !HAVE_DECL_TZNAME
7849 extern char *tzname[];
7850 #endif
7851
7852 int
7853 main ()
7854 {
7855 return tzname[0][0];
7856 ;
7857 return 0;
7858 }
7859 _ACEOF
7860 if ac_fn_c_try_link "$LINENO"; then :
7861 ac_cv_var_tzname=yes
7862 else
7863 ac_cv_var_tzname=no
7864 fi
7865 rm -f core conftest.err conftest.$ac_objext \
7866 conftest$ac_exeext conftest.$ac_ext
7867 fi
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7869 $as_echo "$ac_cv_var_tzname" >&6; }
7870 if test $ac_cv_var_tzname = yes; then
7871
7872 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7873
7874 fi
7875 fi
7876
7877
7878 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
7879 #include <sys/types.h>
7880 #endif
7881 #ifdef HAVE_SYS_STAT_H
7882 #include <sys/stat.h>
7883 #endif
7884 "
7885 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
7886
7887 cat >>confdefs.h <<_ACEOF
7888 #define HAVE_STRUCT_STAT_ST_DEV 1
7889 _ACEOF
7890
7891
7892 fi
7893 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
7894 #include <sys/types.h>
7895 #endif
7896 #ifdef HAVE_SYS_STAT_H
7897 #include <sys/stat.h>
7898 #endif
7899 "
7900 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
7901
7902 cat >>confdefs.h <<_ACEOF
7903 #define HAVE_STRUCT_STAT_ST_INO 1
7904 _ACEOF
7905
7906
7907 fi
7908 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
7909 #include <sys/types.h>
7910 #endif
7911 #ifdef HAVE_SYS_STAT_H
7912 #include <sys/stat.h>
7913 #endif
7914 "
7915 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
7916
7917 cat >>confdefs.h <<_ACEOF
7918 #define HAVE_STRUCT_STAT_ST_MODE 1
7919 _ACEOF
7920
7921
7922 fi
7923 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
7924 #include <sys/types.h>
7925 #endif
7926 #ifdef HAVE_SYS_STAT_H
7927 #include <sys/stat.h>
7928 #endif
7929 "
7930 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
7931
7932 cat >>confdefs.h <<_ACEOF
7933 #define HAVE_STRUCT_STAT_ST_NLINK 1
7934 _ACEOF
7935
7936
7937 fi
7938 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
7939 #include <sys/types.h>
7940 #endif
7941 #ifdef HAVE_SYS_STAT_H
7942 #include <sys/stat.h>
7943 #endif
7944 "
7945 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
7946
7947 cat >>confdefs.h <<_ACEOF
7948 #define HAVE_STRUCT_STAT_ST_UID 1
7949 _ACEOF
7950
7951
7952 fi
7953 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
7954 #include <sys/types.h>
7955 #endif
7956 #ifdef HAVE_SYS_STAT_H
7957 #include <sys/stat.h>
7958 #endif
7959 "
7960 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
7961
7962 cat >>confdefs.h <<_ACEOF
7963 #define HAVE_STRUCT_STAT_ST_GID 1
7964 _ACEOF
7965
7966
7967 fi
7968 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
7969 #include <sys/types.h>
7970 #endif
7971 #ifdef HAVE_SYS_STAT_H
7972 #include <sys/stat.h>
7973 #endif
7974 "
7975 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7976
7977 cat >>confdefs.h <<_ACEOF
7978 #define HAVE_STRUCT_STAT_ST_RDEV 1
7979 _ACEOF
7980
7981
7982 fi
7983 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
7984 #include <sys/types.h>
7985 #endif
7986 #ifdef HAVE_SYS_STAT_H
7987 #include <sys/stat.h>
7988 #endif
7989 "
7990 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
7991
7992 cat >>confdefs.h <<_ACEOF
7993 #define HAVE_STRUCT_STAT_ST_SIZE 1
7994 _ACEOF
7995
7996
7997 fi
7998 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
7999 #include <sys/types.h>
8000 #endif
8001 #ifdef HAVE_SYS_STAT_H
8002 #include <sys/stat.h>
8003 #endif
8004 "
8005 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8006
8007 cat >>confdefs.h <<_ACEOF
8008 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8009 _ACEOF
8010
8011
8012 fi
8013 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8014 #include <sys/types.h>
8015 #endif
8016 #ifdef HAVE_SYS_STAT_H
8017 #include <sys/stat.h>
8018 #endif
8019 "
8020 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8021
8022 cat >>confdefs.h <<_ACEOF
8023 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8024 _ACEOF
8025
8026
8027 fi
8028 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8029 #include <sys/types.h>
8030 #endif
8031 #ifdef HAVE_SYS_STAT_H
8032 #include <sys/stat.h>
8033 #endif
8034 "
8035 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8036
8037 cat >>confdefs.h <<_ACEOF
8038 #define HAVE_STRUCT_STAT_ST_ATIME 1
8039 _ACEOF
8040
8041
8042 fi
8043 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8044 #include <sys/types.h>
8045 #endif
8046 #ifdef HAVE_SYS_STAT_H
8047 #include <sys/stat.h>
8048 #endif
8049 "
8050 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8051
8052 cat >>confdefs.h <<_ACEOF
8053 #define HAVE_STRUCT_STAT_ST_MTIME 1
8054 _ACEOF
8055
8056
8057 fi
8058 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8059 #include <sys/types.h>
8060 #endif
8061 #ifdef HAVE_SYS_STAT_H
8062 #include <sys/stat.h>
8063 #endif
8064 "
8065 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8066
8067 cat >>confdefs.h <<_ACEOF
8068 #define HAVE_STRUCT_STAT_ST_CTIME 1
8069 _ACEOF
8070
8071
8072 fi
8073
8074
8075 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8076 if test "x$ac_cv_type___int128" = xyes; then :
8077
8078 cat >>confdefs.h <<_ACEOF
8079 #define HAVE___INT128 1
8080 _ACEOF
8081
8082
8083 fi
8084
8085 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8086 #include <sys/socket.h>
8087
8088 "
8089 if test "x$ac_cv_type_socklen_t" = xyes; then :
8090
8091 cat >>confdefs.h <<_ACEOF
8092 #define HAVE_SOCKLEN_T 1
8093 _ACEOF
8094
8095
8096 fi
8097
8098
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8100 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8101 if ${ac_cv_type_getgroups+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 if test "$cross_compiling" = yes; then :
8105 ac_cv_type_getgroups=cross
8106 else
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109 /* Thanks to Mike Rendell for this test. */
8110 $ac_includes_default
8111 #define NGID 256
8112 #undef MAX
8113 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8114
8115 int
8116 main ()
8117 {
8118 gid_t gidset[NGID];
8119 int i, n;
8120 union { gid_t gval; long int lval; } val;
8121
8122 val.lval = -1;
8123 for (i = 0; i < NGID; i++)
8124 gidset[i] = val.gval;
8125 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8126 gidset);
8127 /* Exit non-zero if getgroups seems to require an array of ints. This
8128 happens when gid_t is short int but getgroups modifies an array
8129 of ints. */
8130 return n > 0 && gidset[n] != val.gval;
8131 }
8132 _ACEOF
8133 if ac_fn_c_try_run "$LINENO"; then :
8134 ac_cv_type_getgroups=gid_t
8135 else
8136 ac_cv_type_getgroups=int
8137 fi
8138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8139 conftest.$ac_objext conftest.beam conftest.$ac_ext
8140 fi
8141
8142 if test $ac_cv_type_getgroups = cross; then
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8145 #include <unistd.h>
8146
8147 _ACEOF
8148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8149 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8150 ac_cv_type_getgroups=gid_t
8151 else
8152 ac_cv_type_getgroups=int
8153 fi
8154 rm -f conftest*
8155
8156 fi
8157 fi
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8159 $as_echo "$ac_cv_type_getgroups" >&6; }
8160
8161 cat >>confdefs.h <<_ACEOF
8162 #define GETGROUPS_T $ac_cv_type_getgroups
8163 _ACEOF
8164
8165
8166 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8167 if test "x$ac_cv_type_mode_t" = xyes; then :
8168
8169 else
8170
8171 cat >>confdefs.h <<_ACEOF
8172 #define mode_t int
8173 _ACEOF
8174
8175 fi
8176
8177 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8178 if test "x$ac_cv_type_off_t" = xyes; then :
8179
8180 else
8181
8182 cat >>confdefs.h <<_ACEOF
8183 #define off_t long int
8184 _ACEOF
8185
8186 fi
8187
8188 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8189 if test "x$ac_cv_type_pid_t" = xyes; then :
8190
8191 else
8192
8193 cat >>confdefs.h <<_ACEOF
8194 #define pid_t int
8195 _ACEOF
8196
8197 fi
8198
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8200 $as_echo_n "checking return type of signal handlers... " >&6; }
8201 if ${ac_cv_type_signal+:} false; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8206 #include <sys/types.h>
8207 #include <signal.h>
8208
8209 int
8210 main ()
8211 {
8212 return *(signal (0, 0)) (0) == 1;
8213 ;
8214 return 0;
8215 }
8216 _ACEOF
8217 if ac_fn_c_try_compile "$LINENO"; then :
8218 ac_cv_type_signal=int
8219 else
8220 ac_cv_type_signal=void
8221 fi
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 fi
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8225 $as_echo "$ac_cv_type_signal" >&6; }
8226
8227 cat >>confdefs.h <<_ACEOF
8228 #define RETSIGTYPE $ac_cv_type_signal
8229 _ACEOF
8230
8231
8232 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8233 if test "x$ac_cv_type_size_t" = xyes; then :
8234
8235 else
8236
8237 cat >>confdefs.h <<_ACEOF
8238 #define size_t unsigned int
8239 _ACEOF
8240
8241 fi
8242
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8244 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8245 if ${ac_cv_type_uid_t+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8250 #include <sys/types.h>
8251
8252 _ACEOF
8253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8254 $EGREP "uid_t" >/dev/null 2>&1; then :
8255 ac_cv_type_uid_t=yes
8256 else
8257 ac_cv_type_uid_t=no
8258 fi
8259 rm -f conftest*
8260
8261 fi
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8263 $as_echo "$ac_cv_type_uid_t" >&6; }
8264 if test $ac_cv_type_uid_t = no; then
8265
8266 $as_echo "#define uid_t int" >>confdefs.h
8267
8268
8269 $as_echo "#define gid_t int" >>confdefs.h
8270
8271 fi
8272
8273
8274 ALL_LINGUAS=
8275 # If we haven't got the data from the intl directory,
8276 # assume NLS is disabled.
8277 USE_NLS=no
8278 LIBINTL=
8279 LIBINTL_DEP=
8280 INCINTL=
8281 XGETTEXT=
8282 GMSGFMT=
8283 POSUB=
8284
8285 if test -f ../intl/config.intl; then
8286 . ../intl/config.intl
8287 fi
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8289 $as_echo_n "checking whether NLS is requested... " >&6; }
8290 if test x"$USE_NLS" != xyes; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8293 else
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8295 $as_echo "yes" >&6; }
8296
8297 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8298
8299
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8301 $as_echo_n "checking for catalogs to be installed... " >&6; }
8302 # Look for .po and .gmo files in the source directory.
8303 CATALOGS=
8304 XLINGUAS=
8305 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8306 # If there aren't any .gmo files the shell will give us the
8307 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8308 # weeded out.
8309 case "$cat" in *\**)
8310 continue;;
8311 esac
8312 # The quadruple backslash is collapsed to a double backslash
8313 # by the backticks, then collapsed again by the double quotes,
8314 # leaving us with one backslash in the sed expression (right
8315 # before the dot that mustn't act as a wildcard).
8316 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8317 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8318 # The user is allowed to set LINGUAS to a list of languages to
8319 # install catalogs for. If it's empty that means "all of them."
8320 if test "x$LINGUAS" = x; then
8321 CATALOGS="$CATALOGS $cat"
8322 XLINGUAS="$XLINGUAS $lang"
8323 else
8324 case "$LINGUAS" in *$lang*)
8325 CATALOGS="$CATALOGS $cat"
8326 XLINGUAS="$XLINGUAS $lang"
8327 ;;
8328 esac
8329 fi
8330 done
8331 LINGUAS="$XLINGUAS"
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8333 $as_echo "$LINGUAS" >&6; }
8334
8335
8336 DATADIRNAME=share
8337
8338 INSTOBJEXT=.mo
8339
8340 GENCAT=gencat
8341
8342 CATOBJEXT=.gmo
8343
8344 fi
8345
8346
8347 # Use the system's zlib library.
8348 zlibdir="-L\$(top_builddir)/../zlib"
8349 zlibinc="-I\$(top_srcdir)/../zlib"
8350
8351 # Check whether --with-system-zlib was given.
8352 if test "${with_system_zlib+set}" = set; then :
8353 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8354 zlibdir=
8355 zlibinc=
8356 fi
8357
8358 fi
8359
8360
8361
8362
8363
8364
8365 maybe_plugins=no
8366 for ac_header in dlfcn.h
8367 do :
8368 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8369 "
8370 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8371 cat >>confdefs.h <<_ACEOF
8372 #define HAVE_DLFCN_H 1
8373 _ACEOF
8374 maybe_plugins=yes
8375 fi
8376
8377 done
8378
8379 for ac_header in windows.h
8380 do :
8381 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
8382 "
8383 if test "x$ac_cv_header_windows_h" = xyes; then :
8384 cat >>confdefs.h <<_ACEOF
8385 #define HAVE_WINDOWS_H 1
8386 _ACEOF
8387 maybe_plugins=yes
8388 fi
8389
8390 done
8391
8392
8393 # Check whether --enable-plugins was given.
8394 if test "${enable_plugins+set}" = set; then :
8395 enableval=$enable_plugins; case "${enableval}" in
8396 no) plugins=no ;;
8397 *) plugins=yes
8398 if test "$maybe_plugins" != "yes" ; then
8399 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
8400 fi ;;
8401 esac
8402 else
8403 plugins=$maybe_plugins
8404
8405 fi
8406
8407 if test "$plugins" = "yes"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
8409 $as_echo_n "checking for library containing dlsym... " >&6; }
8410 if ${ac_cv_search_dlsym+:} false; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 ac_func_search_save_LIBS=$LIBS
8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8416
8417 /* Override any GCC internal prototype to avoid an error.
8418 Use char because int might match the return type of a GCC
8419 builtin and then its argument prototype would still apply. */
8420 #ifdef __cplusplus
8421 extern "C"
8422 #endif
8423 char dlsym ();
8424 int
8425 main ()
8426 {
8427 return dlsym ();
8428 ;
8429 return 0;
8430 }
8431 _ACEOF
8432 for ac_lib in '' dl; do
8433 if test -z "$ac_lib"; then
8434 ac_res="none required"
8435 else
8436 ac_res=-l$ac_lib
8437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8438 fi
8439 if ac_fn_c_try_link "$LINENO"; then :
8440 ac_cv_search_dlsym=$ac_res
8441 fi
8442 rm -f core conftest.err conftest.$ac_objext \
8443 conftest$ac_exeext
8444 if ${ac_cv_search_dlsym+:} false; then :
8445 break
8446 fi
8447 done
8448 if ${ac_cv_search_dlsym+:} false; then :
8449
8450 else
8451 ac_cv_search_dlsym=no
8452 fi
8453 rm conftest.$ac_ext
8454 LIBS=$ac_func_search_save_LIBS
8455 fi
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
8457 $as_echo "$ac_cv_search_dlsym" >&6; }
8458 ac_res=$ac_cv_search_dlsym
8459 if test "$ac_res" != no; then :
8460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8461
8462 fi
8463
8464 fi
8465
8466 if test "$plugins" = yes; then
8467 PLUGINS_TRUE=
8468 PLUGINS_FALSE='#'
8469 else
8470 PLUGINS_TRUE='#'
8471 PLUGINS_FALSE=
8472 fi
8473
8474
8475
8476
8477
8478 # Set options
8479 enable_dlopen=yes
8480
8481
8482
8483
8484 enable_win32_dll=no
8485
8486
8487 # Check whether --enable-shared was given.
8488 if test "${enable_shared+set}" = set; then :
8489 enableval=$enable_shared; p=${PACKAGE-default}
8490 case $enableval in
8491 yes) enable_shared=yes ;;
8492 no) enable_shared=no ;;
8493 *)
8494 enable_shared=no
8495 # Look at the argument we got. We use all the common list separators.
8496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8497 for pkg in $enableval; do
8498 IFS="$lt_save_ifs"
8499 if test "X$pkg" = "X$p"; then
8500 enable_shared=yes
8501 fi
8502 done
8503 IFS="$lt_save_ifs"
8504 ;;
8505 esac
8506 else
8507 enable_shared=yes
8508 fi
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518 # Check whether --enable-static was given.
8519 if test "${enable_static+set}" = set; then :
8520 enableval=$enable_static; p=${PACKAGE-default}
8521 case $enableval in
8522 yes) enable_static=yes ;;
8523 no) enable_static=no ;;
8524 *)
8525 enable_static=no
8526 # Look at the argument we got. We use all the common list separators.
8527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8528 for pkg in $enableval; do
8529 IFS="$lt_save_ifs"
8530 if test "X$pkg" = "X$p"; then
8531 enable_static=yes
8532 fi
8533 done
8534 IFS="$lt_save_ifs"
8535 ;;
8536 esac
8537 else
8538 enable_static=yes
8539 fi
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550 # Check whether --with-pic was given.
8551 if test "${with_pic+set}" = set; then :
8552 withval=$with_pic; pic_mode="$withval"
8553 else
8554 pic_mode=default
8555 fi
8556
8557
8558 test -z "$pic_mode" && pic_mode=default
8559
8560
8561
8562
8563
8564
8565
8566 # Check whether --enable-fast-install was given.
8567 if test "${enable_fast_install+set}" = set; then :
8568 enableval=$enable_fast_install; p=${PACKAGE-default}
8569 case $enableval in
8570 yes) enable_fast_install=yes ;;
8571 no) enable_fast_install=no ;;
8572 *)
8573 enable_fast_install=no
8574 # Look at the argument we got. We use all the common list separators.
8575 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8576 for pkg in $enableval; do
8577 IFS="$lt_save_ifs"
8578 if test "X$pkg" = "X$p"; then
8579 enable_fast_install=yes
8580 fi
8581 done
8582 IFS="$lt_save_ifs"
8583 ;;
8584 esac
8585 else
8586 enable_fast_install=yes
8587 fi
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599 # This can be used to rebuild libtool when needed
8600 LIBTOOL_DEPS="$ltmain"
8601
8602 # Always use our own libtool.
8603 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630 test -z "$LN_S" && LN_S="ln -s"
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645 if test -n "${ZSH_VERSION+set}" ; then
8646 setopt NO_GLOB_SUBST
8647 fi
8648
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8650 $as_echo_n "checking for objdir... " >&6; }
8651 if ${lt_cv_objdir+:} false; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 rm -f .libs 2>/dev/null
8655 mkdir .libs 2>/dev/null
8656 if test -d .libs; then
8657 lt_cv_objdir=.libs
8658 else
8659 # MS-DOS does not allow filenames that begin with a dot.
8660 lt_cv_objdir=_libs
8661 fi
8662 rmdir .libs 2>/dev/null
8663 fi
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8665 $as_echo "$lt_cv_objdir" >&6; }
8666 objdir=$lt_cv_objdir
8667
8668
8669
8670
8671
8672 cat >>confdefs.h <<_ACEOF
8673 #define LT_OBJDIR "$lt_cv_objdir/"
8674 _ACEOF
8675
8676
8677
8678
8679 case $host_os in
8680 aix3*)
8681 # AIX sometimes has problems with the GCC collect2 program. For some
8682 # reason, if we set the COLLECT_NAMES environment variable, the problems
8683 # vanish in a puff of smoke.
8684 if test "X${COLLECT_NAMES+set}" != Xset; then
8685 COLLECT_NAMES=
8686 export COLLECT_NAMES
8687 fi
8688 ;;
8689 esac
8690
8691 # Global variables:
8692 ofile=libtool
8693 can_build_shared=yes
8694
8695 # All known linkers require a `.a' archive for static linking (except MSVC,
8696 # which needs '.lib').
8697 libext=a
8698
8699 with_gnu_ld="$lt_cv_prog_gnu_ld"
8700
8701 old_CC="$CC"
8702 old_CFLAGS="$CFLAGS"
8703
8704 # Set sane defaults for various variables
8705 test -z "$CC" && CC=cc
8706 test -z "$LTCC" && LTCC=$CC
8707 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8708 test -z "$LD" && LD=ld
8709 test -z "$ac_objext" && ac_objext=o
8710
8711 for cc_temp in $compiler""; do
8712 case $cc_temp in
8713 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8714 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8715 \-*) ;;
8716 *) break;;
8717 esac
8718 done
8719 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8720
8721
8722 # Only perform the check for file, if the check method requires it
8723 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8724 case $deplibs_check_method in
8725 file_magic*)
8726 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8728 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8729 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 case $MAGIC_CMD in
8733 [\\/*] | ?:[\\/]*)
8734 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8735 ;;
8736 *)
8737 lt_save_MAGIC_CMD="$MAGIC_CMD"
8738 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8739 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8740 for ac_dir in $ac_dummy; do
8741 IFS="$lt_save_ifs"
8742 test -z "$ac_dir" && ac_dir=.
8743 if test -f $ac_dir/${ac_tool_prefix}file; then
8744 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8745 if test -n "$file_magic_test_file"; then
8746 case $deplibs_check_method in
8747 "file_magic "*)
8748 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8749 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8750 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8751 $EGREP "$file_magic_regex" > /dev/null; then
8752 :
8753 else
8754 cat <<_LT_EOF 1>&2
8755
8756 *** Warning: the command libtool uses to detect shared libraries,
8757 *** $file_magic_cmd, produces output that libtool cannot recognize.
8758 *** The result is that libtool may fail to recognize shared libraries
8759 *** as such. This will affect the creation of libtool libraries that
8760 *** depend on shared libraries, but programs linked with such libtool
8761 *** libraries will work regardless of this problem. Nevertheless, you
8762 *** may want to report the problem to your system manager and/or to
8763 *** bug-libtool@gnu.org
8764
8765 _LT_EOF
8766 fi ;;
8767 esac
8768 fi
8769 break
8770 fi
8771 done
8772 IFS="$lt_save_ifs"
8773 MAGIC_CMD="$lt_save_MAGIC_CMD"
8774 ;;
8775 esac
8776 fi
8777
8778 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8779 if test -n "$MAGIC_CMD"; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8781 $as_echo "$MAGIC_CMD" >&6; }
8782 else
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784 $as_echo "no" >&6; }
8785 fi
8786
8787
8788
8789
8790
8791 if test -z "$lt_cv_path_MAGIC_CMD"; then
8792 if test -n "$ac_tool_prefix"; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8794 $as_echo_n "checking for file... " >&6; }
8795 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8796 $as_echo_n "(cached) " >&6
8797 else
8798 case $MAGIC_CMD in
8799 [\\/*] | ?:[\\/]*)
8800 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8801 ;;
8802 *)
8803 lt_save_MAGIC_CMD="$MAGIC_CMD"
8804 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8805 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8806 for ac_dir in $ac_dummy; do
8807 IFS="$lt_save_ifs"
8808 test -z "$ac_dir" && ac_dir=.
8809 if test -f $ac_dir/file; then
8810 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8811 if test -n "$file_magic_test_file"; then
8812 case $deplibs_check_method in
8813 "file_magic "*)
8814 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8815 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8816 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8817 $EGREP "$file_magic_regex" > /dev/null; then
8818 :
8819 else
8820 cat <<_LT_EOF 1>&2
8821
8822 *** Warning: the command libtool uses to detect shared libraries,
8823 *** $file_magic_cmd, produces output that libtool cannot recognize.
8824 *** The result is that libtool may fail to recognize shared libraries
8825 *** as such. This will affect the creation of libtool libraries that
8826 *** depend on shared libraries, but programs linked with such libtool
8827 *** libraries will work regardless of this problem. Nevertheless, you
8828 *** may want to report the problem to your system manager and/or to
8829 *** bug-libtool@gnu.org
8830
8831 _LT_EOF
8832 fi ;;
8833 esac
8834 fi
8835 break
8836 fi
8837 done
8838 IFS="$lt_save_ifs"
8839 MAGIC_CMD="$lt_save_MAGIC_CMD"
8840 ;;
8841 esac
8842 fi
8843
8844 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8845 if test -n "$MAGIC_CMD"; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8847 $as_echo "$MAGIC_CMD" >&6; }
8848 else
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8851 fi
8852
8853
8854 else
8855 MAGIC_CMD=:
8856 fi
8857 fi
8858
8859 fi
8860 ;;
8861 esac
8862
8863 # Use C for the default configuration in the libtool script
8864
8865 lt_save_CC="$CC"
8866 ac_ext=c
8867 ac_cpp='$CPP $CPPFLAGS'
8868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8871
8872
8873 # Source file extension for C test sources.
8874 ac_ext=c
8875
8876 # Object file extension for compiled C test sources.
8877 objext=o
8878 objext=$objext
8879
8880 # Code to be used in simple compile tests
8881 lt_simple_compile_test_code="int some_variable = 0;"
8882
8883 # Code to be used in simple link tests
8884 lt_simple_link_test_code='int main(){return(0);}'
8885
8886
8887
8888
8889
8890
8891
8892 # If no C compiler was specified, use CC.
8893 LTCC=${LTCC-"$CC"}
8894
8895 # If no C compiler flags were specified, use CFLAGS.
8896 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8897
8898 # Allow CC to be a program name with arguments.
8899 compiler=$CC
8900
8901 # Save the default compiler, since it gets overwritten when the other
8902 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8903 compiler_DEFAULT=$CC
8904
8905 # save warnings/boilerplate of simple test code
8906 ac_outfile=conftest.$ac_objext
8907 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8908 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8909 _lt_compiler_boilerplate=`cat conftest.err`
8910 $RM conftest*
8911
8912 ac_outfile=conftest.$ac_objext
8913 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8914 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8915 _lt_linker_boilerplate=`cat conftest.err`
8916 $RM -r conftest*
8917
8918
8919 ## CAVEAT EMPTOR:
8920 ## There is no encapsulation within the following macros, do not change
8921 ## the running order or otherwise move them around unless you know exactly
8922 ## what you are doing...
8923 if test -n "$compiler"; then
8924
8925 lt_prog_compiler_no_builtin_flag=
8926
8927 if test "$GCC" = yes; then
8928 case $cc_basename in
8929 nvcc*)
8930 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8931 *)
8932 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8933 esac
8934
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8936 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8937 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8938 $as_echo_n "(cached) " >&6
8939 else
8940 lt_cv_prog_compiler_rtti_exceptions=no
8941 ac_outfile=conftest.$ac_objext
8942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8943 lt_compiler_flag="-fno-rtti -fno-exceptions"
8944 # Insert the option either (1) after the last *FLAGS variable, or
8945 # (2) before a word containing "conftest.", or (3) at the end.
8946 # Note that $ac_compile itself does not contain backslashes and begins
8947 # with a dollar sign (not a hyphen), so the echo should work correctly.
8948 # The option is referenced via a variable to avoid confusing sed.
8949 lt_compile=`echo "$ac_compile" | $SED \
8950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8952 -e 's:$: $lt_compiler_flag:'`
8953 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8954 (eval "$lt_compile" 2>conftest.err)
8955 ac_status=$?
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 if (exit $ac_status) && test -s "$ac_outfile"; then
8959 # The compiler can only warn and ignore the option if not recognized
8960 # So say no if there are warnings other than the usual output.
8961 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8964 lt_cv_prog_compiler_rtti_exceptions=yes
8965 fi
8966 fi
8967 $RM conftest*
8968
8969 fi
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8971 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8972
8973 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8974 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8975 else
8976 :
8977 fi
8978
8979 fi
8980
8981
8982
8983
8984
8985
8986 lt_prog_compiler_wl=
8987 lt_prog_compiler_pic=
8988 lt_prog_compiler_static=
8989
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8991 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8992
8993 if test "$GCC" = yes; then
8994 lt_prog_compiler_wl='-Wl,'
8995 lt_prog_compiler_static='-static'
8996
8997 case $host_os in
8998 aix*)
8999 # All AIX code is PIC.
9000 if test "$host_cpu" = ia64; then
9001 # AIX 5 now supports IA64 processor
9002 lt_prog_compiler_static='-Bstatic'
9003 fi
9004 lt_prog_compiler_pic='-fPIC'
9005 ;;
9006
9007 amigaos*)
9008 case $host_cpu in
9009 powerpc)
9010 # see comment about AmigaOS4 .so support
9011 lt_prog_compiler_pic='-fPIC'
9012 ;;
9013 m68k)
9014 # FIXME: we need at least 68020 code to build shared libraries, but
9015 # adding the `-m68020' flag to GCC prevents building anything better,
9016 # like `-m68040'.
9017 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9018 ;;
9019 esac
9020 ;;
9021
9022 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9023 # PIC is the default for these OSes.
9024 ;;
9025
9026 mingw* | cygwin* | pw32* | os2* | cegcc*)
9027 # This hack is so that the source file can tell whether it is being
9028 # built for inclusion in a dll (and should export symbols for example).
9029 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9030 # (--disable-auto-import) libraries
9031 lt_prog_compiler_pic='-DDLL_EXPORT'
9032 ;;
9033
9034 darwin* | rhapsody*)
9035 # PIC is the default on this platform
9036 # Common symbols not allowed in MH_DYLIB files
9037 lt_prog_compiler_pic='-fno-common'
9038 ;;
9039
9040 haiku*)
9041 # PIC is the default for Haiku.
9042 # The "-static" flag exists, but is broken.
9043 lt_prog_compiler_static=
9044 ;;
9045
9046 hpux*)
9047 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9048 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9049 # sets the default TLS model and affects inlining.
9050 case $host_cpu in
9051 hppa*64*)
9052 # +Z the default
9053 ;;
9054 *)
9055 lt_prog_compiler_pic='-fPIC'
9056 ;;
9057 esac
9058 ;;
9059
9060 interix[3-9]*)
9061 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9062 # Instead, we relocate shared libraries at runtime.
9063 ;;
9064
9065 msdosdjgpp*)
9066 # Just because we use GCC doesn't mean we suddenly get shared libraries
9067 # on systems that don't support them.
9068 lt_prog_compiler_can_build_shared=no
9069 enable_shared=no
9070 ;;
9071
9072 *nto* | *qnx*)
9073 # QNX uses GNU C++, but need to define -shared option too, otherwise
9074 # it will coredump.
9075 lt_prog_compiler_pic='-fPIC -shared'
9076 ;;
9077
9078 sysv4*MP*)
9079 if test -d /usr/nec; then
9080 lt_prog_compiler_pic=-Kconform_pic
9081 fi
9082 ;;
9083
9084 *)
9085 lt_prog_compiler_pic='-fPIC'
9086 ;;
9087 esac
9088
9089 case $cc_basename in
9090 nvcc*) # Cuda Compiler Driver 2.2
9091 lt_prog_compiler_wl='-Xlinker '
9092 lt_prog_compiler_pic='-Xcompiler -fPIC'
9093 ;;
9094 esac
9095 else
9096 # PORTME Check for flag to pass linker flags through the system compiler.
9097 case $host_os in
9098 aix*)
9099 lt_prog_compiler_wl='-Wl,'
9100 if test "$host_cpu" = ia64; then
9101 # AIX 5 now supports IA64 processor
9102 lt_prog_compiler_static='-Bstatic'
9103 else
9104 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9105 fi
9106 ;;
9107
9108 mingw* | cygwin* | pw32* | os2* | cegcc*)
9109 # This hack is so that the source file can tell whether it is being
9110 # built for inclusion in a dll (and should export symbols for example).
9111 lt_prog_compiler_pic='-DDLL_EXPORT'
9112 ;;
9113
9114 hpux9* | hpux10* | hpux11*)
9115 lt_prog_compiler_wl='-Wl,'
9116 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9117 # not for PA HP-UX.
9118 case $host_cpu in
9119 hppa*64*|ia64*)
9120 # +Z the default
9121 ;;
9122 *)
9123 lt_prog_compiler_pic='+Z'
9124 ;;
9125 esac
9126 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9127 lt_prog_compiler_static='${wl}-a ${wl}archive'
9128 ;;
9129
9130 irix5* | irix6* | nonstopux*)
9131 lt_prog_compiler_wl='-Wl,'
9132 # PIC (with -KPIC) is the default.
9133 lt_prog_compiler_static='-non_shared'
9134 ;;
9135
9136 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9137 case $cc_basename in
9138 # old Intel for x86_64 which still supported -KPIC.
9139 ecc*)
9140 lt_prog_compiler_wl='-Wl,'
9141 lt_prog_compiler_pic='-KPIC'
9142 lt_prog_compiler_static='-static'
9143 ;;
9144 # icc used to be incompatible with GCC.
9145 # ICC 10 doesn't accept -KPIC any more.
9146 icc* | ifort*)
9147 lt_prog_compiler_wl='-Wl,'
9148 lt_prog_compiler_pic='-fPIC'
9149 lt_prog_compiler_static='-static'
9150 ;;
9151 # Lahey Fortran 8.1.
9152 lf95*)
9153 lt_prog_compiler_wl='-Wl,'
9154 lt_prog_compiler_pic='--shared'
9155 lt_prog_compiler_static='--static'
9156 ;;
9157 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9158 # Portland Group compilers (*not* the Pentium gcc compiler,
9159 # which looks to be a dead project)
9160 lt_prog_compiler_wl='-Wl,'
9161 lt_prog_compiler_pic='-fpic'
9162 lt_prog_compiler_static='-Bstatic'
9163 ;;
9164 ccc*)
9165 lt_prog_compiler_wl='-Wl,'
9166 # All Alpha code is PIC.
9167 lt_prog_compiler_static='-non_shared'
9168 ;;
9169 xl* | bgxl* | bgf* | mpixl*)
9170 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9171 lt_prog_compiler_wl='-Wl,'
9172 lt_prog_compiler_pic='-qpic'
9173 lt_prog_compiler_static='-qstaticlink'
9174 ;;
9175 *)
9176 case `$CC -V 2>&1 | sed 5q` in
9177 *Sun\ F* | *Sun*Fortran*)
9178 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9179 lt_prog_compiler_pic='-KPIC'
9180 lt_prog_compiler_static='-Bstatic'
9181 lt_prog_compiler_wl=''
9182 ;;
9183 *Sun\ C*)
9184 # Sun C 5.9
9185 lt_prog_compiler_pic='-KPIC'
9186 lt_prog_compiler_static='-Bstatic'
9187 lt_prog_compiler_wl='-Wl,'
9188 ;;
9189 esac
9190 ;;
9191 esac
9192 ;;
9193
9194 newsos6)
9195 lt_prog_compiler_pic='-KPIC'
9196 lt_prog_compiler_static='-Bstatic'
9197 ;;
9198
9199 *nto* | *qnx*)
9200 # QNX uses GNU C++, but need to define -shared option too, otherwise
9201 # it will coredump.
9202 lt_prog_compiler_pic='-fPIC -shared'
9203 ;;
9204
9205 osf3* | osf4* | osf5*)
9206 lt_prog_compiler_wl='-Wl,'
9207 # All OSF/1 code is PIC.
9208 lt_prog_compiler_static='-non_shared'
9209 ;;
9210
9211 rdos*)
9212 lt_prog_compiler_static='-non_shared'
9213 ;;
9214
9215 solaris*)
9216 lt_prog_compiler_pic='-KPIC'
9217 lt_prog_compiler_static='-Bstatic'
9218 case $cc_basename in
9219 f77* | f90* | f95*)
9220 lt_prog_compiler_wl='-Qoption ld ';;
9221 *)
9222 lt_prog_compiler_wl='-Wl,';;
9223 esac
9224 ;;
9225
9226 sunos4*)
9227 lt_prog_compiler_wl='-Qoption ld '
9228 lt_prog_compiler_pic='-PIC'
9229 lt_prog_compiler_static='-Bstatic'
9230 ;;
9231
9232 sysv4 | sysv4.2uw2* | sysv4.3*)
9233 lt_prog_compiler_wl='-Wl,'
9234 lt_prog_compiler_pic='-KPIC'
9235 lt_prog_compiler_static='-Bstatic'
9236 ;;
9237
9238 sysv4*MP*)
9239 if test -d /usr/nec ;then
9240 lt_prog_compiler_pic='-Kconform_pic'
9241 lt_prog_compiler_static='-Bstatic'
9242 fi
9243 ;;
9244
9245 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9246 lt_prog_compiler_wl='-Wl,'
9247 lt_prog_compiler_pic='-KPIC'
9248 lt_prog_compiler_static='-Bstatic'
9249 ;;
9250
9251 unicos*)
9252 lt_prog_compiler_wl='-Wl,'
9253 lt_prog_compiler_can_build_shared=no
9254 ;;
9255
9256 uts4*)
9257 lt_prog_compiler_pic='-pic'
9258 lt_prog_compiler_static='-Bstatic'
9259 ;;
9260
9261 *)
9262 lt_prog_compiler_can_build_shared=no
9263 ;;
9264 esac
9265 fi
9266
9267 case $host_os in
9268 # For platforms which do not support PIC, -DPIC is meaningless:
9269 *djgpp*)
9270 lt_prog_compiler_pic=
9271 ;;
9272 *)
9273 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9274 ;;
9275 esac
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9277 $as_echo "$lt_prog_compiler_pic" >&6; }
9278
9279
9280
9281
9282
9283
9284 #
9285 # Check to make sure the PIC flag actually works.
9286 #
9287 if test -n "$lt_prog_compiler_pic"; then
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9289 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9290 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9291 $as_echo_n "(cached) " >&6
9292 else
9293 lt_cv_prog_compiler_pic_works=no
9294 ac_outfile=conftest.$ac_objext
9295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9296 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9297 # Insert the option either (1) after the last *FLAGS variable, or
9298 # (2) before a word containing "conftest.", or (3) at the end.
9299 # Note that $ac_compile itself does not contain backslashes and begins
9300 # with a dollar sign (not a hyphen), so the echo should work correctly.
9301 # The option is referenced via a variable to avoid confusing sed.
9302 lt_compile=`echo "$ac_compile" | $SED \
9303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9305 -e 's:$: $lt_compiler_flag:'`
9306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9307 (eval "$lt_compile" 2>conftest.err)
9308 ac_status=$?
9309 cat conftest.err >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 if (exit $ac_status) && test -s "$ac_outfile"; then
9312 # The compiler can only warn and ignore the option if not recognized
9313 # So say no if there are warnings other than the usual output.
9314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9317 lt_cv_prog_compiler_pic_works=yes
9318 fi
9319 fi
9320 $RM conftest*
9321
9322 fi
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9324 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9325
9326 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9327 case $lt_prog_compiler_pic in
9328 "" | " "*) ;;
9329 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9330 esac
9331 else
9332 lt_prog_compiler_pic=
9333 lt_prog_compiler_can_build_shared=no
9334 fi
9335
9336 fi
9337
9338
9339
9340
9341
9342
9343 #
9344 # Check to make sure the static flag actually works.
9345 #
9346 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9348 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9349 if ${lt_cv_prog_compiler_static_works+:} false; then :
9350 $as_echo_n "(cached) " >&6
9351 else
9352 lt_cv_prog_compiler_static_works=no
9353 save_LDFLAGS="$LDFLAGS"
9354 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9355 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9356 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9357 # The linker can only warn and ignore the option if not recognized
9358 # So say no if there are warnings
9359 if test -s conftest.err; then
9360 # Append any errors to the config.log.
9361 cat conftest.err 1>&5
9362 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9364 if diff conftest.exp conftest.er2 >/dev/null; then
9365 lt_cv_prog_compiler_static_works=yes
9366 fi
9367 else
9368 lt_cv_prog_compiler_static_works=yes
9369 fi
9370 fi
9371 $RM -r conftest*
9372 LDFLAGS="$save_LDFLAGS"
9373
9374 fi
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9376 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9377
9378 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9379 :
9380 else
9381 lt_prog_compiler_static=
9382 fi
9383
9384
9385
9386
9387
9388
9389
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9391 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9392 if ${lt_cv_prog_compiler_c_o+:} false; then :
9393 $as_echo_n "(cached) " >&6
9394 else
9395 lt_cv_prog_compiler_c_o=no
9396 $RM -r conftest 2>/dev/null
9397 mkdir conftest
9398 cd conftest
9399 mkdir out
9400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9401
9402 lt_compiler_flag="-o out/conftest2.$ac_objext"
9403 # Insert the option either (1) after the last *FLAGS variable, or
9404 # (2) before a word containing "conftest.", or (3) at the end.
9405 # Note that $ac_compile itself does not contain backslashes and begins
9406 # with a dollar sign (not a hyphen), so the echo should work correctly.
9407 lt_compile=`echo "$ac_compile" | $SED \
9408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9410 -e 's:$: $lt_compiler_flag:'`
9411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9412 (eval "$lt_compile" 2>out/conftest.err)
9413 ac_status=$?
9414 cat out/conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9417 then
9418 # The compiler can only warn and ignore the option if not recognized
9419 # So say no if there are warnings
9420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9423 lt_cv_prog_compiler_c_o=yes
9424 fi
9425 fi
9426 chmod u+w . 2>&5
9427 $RM conftest*
9428 # SGI C++ compiler will create directory out/ii_files/ for
9429 # template instantiation
9430 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9431 $RM out/* && rmdir out
9432 cd ..
9433 $RM -r conftest
9434 $RM conftest*
9435
9436 fi
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9438 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9439
9440
9441
9442
9443
9444
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9446 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9447 if ${lt_cv_prog_compiler_c_o+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 lt_cv_prog_compiler_c_o=no
9451 $RM -r conftest 2>/dev/null
9452 mkdir conftest
9453 cd conftest
9454 mkdir out
9455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9456
9457 lt_compiler_flag="-o out/conftest2.$ac_objext"
9458 # Insert the option either (1) after the last *FLAGS variable, or
9459 # (2) before a word containing "conftest.", or (3) at the end.
9460 # Note that $ac_compile itself does not contain backslashes and begins
9461 # with a dollar sign (not a hyphen), so the echo should work correctly.
9462 lt_compile=`echo "$ac_compile" | $SED \
9463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9465 -e 's:$: $lt_compiler_flag:'`
9466 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9467 (eval "$lt_compile" 2>out/conftest.err)
9468 ac_status=$?
9469 cat out/conftest.err >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9472 then
9473 # The compiler can only warn and ignore the option if not recognized
9474 # So say no if there are warnings
9475 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9476 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9477 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9478 lt_cv_prog_compiler_c_o=yes
9479 fi
9480 fi
9481 chmod u+w . 2>&5
9482 $RM conftest*
9483 # SGI C++ compiler will create directory out/ii_files/ for
9484 # template instantiation
9485 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9486 $RM out/* && rmdir out
9487 cd ..
9488 $RM -r conftest
9489 $RM conftest*
9490
9491 fi
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9493 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9494
9495
9496
9497
9498 hard_links="nottested"
9499 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9500 # do not overwrite the value of need_locks provided by the user
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9502 $as_echo_n "checking if we can lock with hard links... " >&6; }
9503 hard_links=yes
9504 $RM conftest*
9505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9506 touch conftest.a
9507 ln conftest.a conftest.b 2>&5 || hard_links=no
9508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9510 $as_echo "$hard_links" >&6; }
9511 if test "$hard_links" = no; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9513 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9514 need_locks=warn
9515 fi
9516 else
9517 need_locks=no
9518 fi
9519
9520
9521
9522
9523
9524
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9526 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9527
9528 runpath_var=
9529 allow_undefined_flag=
9530 always_export_symbols=no
9531 archive_cmds=
9532 archive_expsym_cmds=
9533 compiler_needs_object=no
9534 enable_shared_with_static_runtimes=no
9535 export_dynamic_flag_spec=
9536 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9537 hardcode_automatic=no
9538 hardcode_direct=no
9539 hardcode_direct_absolute=no
9540 hardcode_libdir_flag_spec=
9541 hardcode_libdir_flag_spec_ld=
9542 hardcode_libdir_separator=
9543 hardcode_minus_L=no
9544 hardcode_shlibpath_var=unsupported
9545 inherit_rpath=no
9546 link_all_deplibs=unknown
9547 module_cmds=
9548 module_expsym_cmds=
9549 old_archive_from_new_cmds=
9550 old_archive_from_expsyms_cmds=
9551 thread_safe_flag_spec=
9552 whole_archive_flag_spec=
9553 # include_expsyms should be a list of space-separated symbols to be *always*
9554 # included in the symbol list
9555 include_expsyms=
9556 # exclude_expsyms can be an extended regexp of symbols to exclude
9557 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9558 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9559 # as well as any symbol that contains `d'.
9560 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9561 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9562 # platforms (ab)use it in PIC code, but their linkers get confused if
9563 # the symbol is explicitly referenced. Since portable code cannot
9564 # rely on this symbol name, it's probably fine to never include it in
9565 # preloaded symbol tables.
9566 # Exclude shared library initialization/finalization symbols.
9567 extract_expsyms_cmds=
9568
9569 case $host_os in
9570 cygwin* | mingw* | pw32* | cegcc*)
9571 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9572 # When not using gcc, we currently assume that we are using
9573 # Microsoft Visual C++.
9574 if test "$GCC" != yes; then
9575 with_gnu_ld=no
9576 fi
9577 ;;
9578 interix*)
9579 # we just hope/assume this is gcc and not c89 (= MSVC++)
9580 with_gnu_ld=yes
9581 ;;
9582 openbsd*)
9583 with_gnu_ld=no
9584 ;;
9585 esac
9586
9587 ld_shlibs=yes
9588
9589 # On some targets, GNU ld is compatible enough with the native linker
9590 # that we're better off using the native interface for both.
9591 lt_use_gnu_ld_interface=no
9592 if test "$with_gnu_ld" = yes; then
9593 case $host_os in
9594 aix*)
9595 # The AIX port of GNU ld has always aspired to compatibility
9596 # with the native linker. However, as the warning in the GNU ld
9597 # block says, versions before 2.19.5* couldn't really create working
9598 # shared libraries, regardless of the interface used.
9599 case `$LD -v 2>&1` in
9600 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9601 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9602 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9603 *)
9604 lt_use_gnu_ld_interface=yes
9605 ;;
9606 esac
9607 ;;
9608 *)
9609 lt_use_gnu_ld_interface=yes
9610 ;;
9611 esac
9612 fi
9613
9614 if test "$lt_use_gnu_ld_interface" = yes; then
9615 # If archive_cmds runs LD, not CC, wlarc should be empty
9616 wlarc='${wl}'
9617
9618 # Set some defaults for GNU ld with shared library support. These
9619 # are reset later if shared libraries are not supported. Putting them
9620 # here allows them to be overridden if necessary.
9621 runpath_var=LD_RUN_PATH
9622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9623 export_dynamic_flag_spec='${wl}--export-dynamic'
9624 # ancient GNU ld didn't support --whole-archive et. al.
9625 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9626 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9627 else
9628 whole_archive_flag_spec=
9629 fi
9630 supports_anon_versioning=no
9631 case `$LD -v 2>&1` in
9632 *GNU\ gold*) supports_anon_versioning=yes ;;
9633 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9634 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9635 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9636 *\ 2.11.*) ;; # other 2.11 versions
9637 *) supports_anon_versioning=yes ;;
9638 esac
9639
9640 # See if GNU ld supports shared libraries.
9641 case $host_os in
9642 aix[3-9]*)
9643 # On AIX/PPC, the GNU linker is very broken
9644 if test "$host_cpu" != ia64; then
9645 ld_shlibs=no
9646 cat <<_LT_EOF 1>&2
9647
9648 *** Warning: the GNU linker, at least up to release 2.19, is reported
9649 *** to be unable to reliably create shared libraries on AIX.
9650 *** Therefore, libtool is disabling shared libraries support. If you
9651 *** really care for shared libraries, you may want to install binutils
9652 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9653 *** You will then need to restart the configuration process.
9654
9655 _LT_EOF
9656 fi
9657 ;;
9658
9659 amigaos*)
9660 case $host_cpu in
9661 powerpc)
9662 # see comment about AmigaOS4 .so support
9663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9664 archive_expsym_cmds=''
9665 ;;
9666 m68k)
9667 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)'
9668 hardcode_libdir_flag_spec='-L$libdir'
9669 hardcode_minus_L=yes
9670 ;;
9671 esac
9672 ;;
9673
9674 beos*)
9675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9676 allow_undefined_flag=unsupported
9677 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9678 # support --undefined. This deserves some investigation. FIXME
9679 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9680 else
9681 ld_shlibs=no
9682 fi
9683 ;;
9684
9685 cygwin* | mingw* | pw32* | cegcc*)
9686 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9687 # as there is no search path for DLLs.
9688 hardcode_libdir_flag_spec='-L$libdir'
9689 export_dynamic_flag_spec='${wl}--export-all-symbols'
9690 allow_undefined_flag=unsupported
9691 always_export_symbols=no
9692 enable_shared_with_static_runtimes=yes
9693 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9694
9695 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9697 # If the export-symbols file already is a .def file (1st line
9698 # is EXPORTS), use it as is; otherwise, prepend...
9699 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9700 cp $export_symbols $output_objdir/$soname.def;
9701 else
9702 echo EXPORTS > $output_objdir/$soname.def;
9703 cat $export_symbols >> $output_objdir/$soname.def;
9704 fi~
9705 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9706 else
9707 ld_shlibs=no
9708 fi
9709 ;;
9710
9711 haiku*)
9712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9713 link_all_deplibs=yes
9714 ;;
9715
9716 interix[3-9]*)
9717 hardcode_direct=no
9718 hardcode_shlibpath_var=no
9719 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9720 export_dynamic_flag_spec='${wl}-E'
9721 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9722 # Instead, shared libraries are loaded at an image base (0x10000000 by
9723 # default) and relocated if they conflict, which is a slow very memory
9724 # consuming and fragmenting process. To avoid this, we pick a random,
9725 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9726 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9727 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9728 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'
9729 ;;
9730
9731 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9732 tmp_diet=no
9733 if test "$host_os" = linux-dietlibc; then
9734 case $cc_basename in
9735 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9736 esac
9737 fi
9738 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9739 && test "$tmp_diet" = no
9740 then
9741 tmp_addflag=' $pic_flag'
9742 tmp_sharedflag='-shared'
9743 case $cc_basename,$host_cpu in
9744 pgcc*) # Portland Group C compiler
9745 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'
9746 tmp_addflag=' $pic_flag'
9747 ;;
9748 pgf77* | pgf90* | pgf95* | pgfortran*)
9749 # Portland Group f77 and f90 compilers
9750 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'
9751 tmp_addflag=' $pic_flag -Mnomain' ;;
9752 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9753 tmp_addflag=' -i_dynamic' ;;
9754 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9755 tmp_addflag=' -i_dynamic -nofor_main' ;;
9756 ifc* | ifort*) # Intel Fortran compiler
9757 tmp_addflag=' -nofor_main' ;;
9758 lf95*) # Lahey Fortran 8.1
9759 whole_archive_flag_spec=
9760 tmp_sharedflag='--shared' ;;
9761 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9762 tmp_sharedflag='-qmkshrobj'
9763 tmp_addflag= ;;
9764 nvcc*) # Cuda Compiler Driver 2.2
9765 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'
9766 compiler_needs_object=yes
9767 ;;
9768 esac
9769 case `$CC -V 2>&1 | sed 5q` in
9770 *Sun\ C*) # Sun C 5.9
9771 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'
9772 compiler_needs_object=yes
9773 tmp_sharedflag='-G' ;;
9774 *Sun\ F*) # Sun Fortran 8.3
9775 tmp_sharedflag='-G' ;;
9776 esac
9777 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9778
9779 if test "x$supports_anon_versioning" = xyes; then
9780 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9782 echo "local: *; };" >> $output_objdir/$libname.ver~
9783 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9784 fi
9785
9786 case $cc_basename in
9787 xlf* | bgf* | bgxlf* | mpixlf*)
9788 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9789 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9790 hardcode_libdir_flag_spec=
9791 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9792 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9793 if test "x$supports_anon_versioning" = xyes; then
9794 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9796 echo "local: *; };" >> $output_objdir/$libname.ver~
9797 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9798 fi
9799 ;;
9800 esac
9801 else
9802 ld_shlibs=no
9803 fi
9804 ;;
9805
9806 netbsd*)
9807 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9808 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9809 wlarc=
9810 else
9811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9812 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9813 fi
9814 ;;
9815
9816 solaris*)
9817 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9818 ld_shlibs=no
9819 cat <<_LT_EOF 1>&2
9820
9821 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9822 *** create shared libraries on Solaris systems. Therefore, libtool
9823 *** is disabling shared libraries support. We urge you to upgrade GNU
9824 *** binutils to release 2.9.1 or newer. Another option is to modify
9825 *** your PATH or compiler configuration so that the native linker is
9826 *** used, and then restart.
9827
9828 _LT_EOF
9829 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9831 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9832 else
9833 ld_shlibs=no
9834 fi
9835 ;;
9836
9837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9838 case `$LD -v 2>&1` in
9839 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9840 ld_shlibs=no
9841 cat <<_LT_EOF 1>&2
9842
9843 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9844 *** reliably create shared libraries on SCO systems. Therefore, libtool
9845 *** is disabling shared libraries support. We urge you to upgrade GNU
9846 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9847 *** your PATH or compiler configuration so that the native linker is
9848 *** used, and then restart.
9849
9850 _LT_EOF
9851 ;;
9852 *)
9853 # For security reasons, it is highly recommended that you always
9854 # use absolute paths for naming shared libraries, and exclude the
9855 # DT_RUNPATH tag from executables and libraries. But doing so
9856 # requires that you compile everything twice, which is a pain.
9857 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9860 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9861 else
9862 ld_shlibs=no
9863 fi
9864 ;;
9865 esac
9866 ;;
9867
9868 sunos4*)
9869 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9870 wlarc=
9871 hardcode_direct=yes
9872 hardcode_shlibpath_var=no
9873 ;;
9874
9875 *)
9876 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9878 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9879 else
9880 ld_shlibs=no
9881 fi
9882 ;;
9883 esac
9884
9885 if test "$ld_shlibs" = no; then
9886 runpath_var=
9887 hardcode_libdir_flag_spec=
9888 export_dynamic_flag_spec=
9889 whole_archive_flag_spec=
9890 fi
9891 else
9892 # PORTME fill in a description of your system's linker (not GNU ld)
9893 case $host_os in
9894 aix3*)
9895 allow_undefined_flag=unsupported
9896 always_export_symbols=yes
9897 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'
9898 # Note: this linker hardcodes the directories in LIBPATH if there
9899 # are no directories specified by -L.
9900 hardcode_minus_L=yes
9901 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9902 # Neither direct hardcoding nor static linking is supported with a
9903 # broken collect2.
9904 hardcode_direct=unsupported
9905 fi
9906 ;;
9907
9908 aix[4-9]*)
9909 if test "$host_cpu" = ia64; then
9910 # On IA64, the linker does run time linking by default, so we don't
9911 # have to do anything special.
9912 aix_use_runtimelinking=no
9913 exp_sym_flag='-Bexport'
9914 no_entry_flag=""
9915 else
9916 # If we're using GNU nm, then we don't want the "-C" option.
9917 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9918 # Also, AIX nm treats weak defined symbols like other global
9919 # defined symbols, whereas GNU nm marks them as "W".
9920 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9921 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'
9922 else
9923 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'
9924 fi
9925 aix_use_runtimelinking=no
9926
9927 # Test if we are trying to use run time linking or normal
9928 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9929 # need to do runtime linking.
9930 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9931 for ld_flag in $LDFLAGS; do
9932 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9933 aix_use_runtimelinking=yes
9934 break
9935 fi
9936 done
9937 ;;
9938 esac
9939
9940 exp_sym_flag='-bexport'
9941 no_entry_flag='-bnoentry'
9942 fi
9943
9944 # When large executables or shared objects are built, AIX ld can
9945 # have problems creating the table of contents. If linking a library
9946 # or program results in "error TOC overflow" add -mminimal-toc to
9947 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9948 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9949
9950 archive_cmds=''
9951 hardcode_direct=yes
9952 hardcode_direct_absolute=yes
9953 hardcode_libdir_separator=':'
9954 link_all_deplibs=yes
9955 file_list_spec='${wl}-f,'
9956
9957 if test "$GCC" = yes; then
9958 case $host_os in aix4.[012]|aix4.[012].*)
9959 # We only want to do this on AIX 4.2 and lower, the check
9960 # below for broken collect2 doesn't work under 4.3+
9961 collect2name=`${CC} -print-prog-name=collect2`
9962 if test -f "$collect2name" &&
9963 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9964 then
9965 # We have reworked collect2
9966 :
9967 else
9968 # We have old collect2
9969 hardcode_direct=unsupported
9970 # It fails to find uninstalled libraries when the uninstalled
9971 # path is not listed in the libpath. Setting hardcode_minus_L
9972 # to unsupported forces relinking
9973 hardcode_minus_L=yes
9974 hardcode_libdir_flag_spec='-L$libdir'
9975 hardcode_libdir_separator=
9976 fi
9977 ;;
9978 esac
9979 shared_flag='-shared'
9980 if test "$aix_use_runtimelinking" = yes; then
9981 shared_flag="$shared_flag "'${wl}-G'
9982 fi
9983 else
9984 # not using gcc
9985 if test "$host_cpu" = ia64; then
9986 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9987 # chokes on -Wl,-G. The following line is correct:
9988 shared_flag='-G'
9989 else
9990 if test "$aix_use_runtimelinking" = yes; then
9991 shared_flag='${wl}-G'
9992 else
9993 shared_flag='${wl}-bM:SRE'
9994 fi
9995 fi
9996 fi
9997
9998 export_dynamic_flag_spec='${wl}-bexpall'
9999 # It seems that -bexpall does not export symbols beginning with
10000 # underscore (_), so it is better to generate a list of symbols to export.
10001 always_export_symbols=yes
10002 if test "$aix_use_runtimelinking" = yes; then
10003 # Warning - without using the other runtime loading flags (-brtl),
10004 # -berok will link without error, but may produce a broken library.
10005 allow_undefined_flag='-berok'
10006 # Determine the default libpath from the value encoded in an
10007 # empty executable.
10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h. */
10010
10011 int
10012 main ()
10013 {
10014
10015 ;
10016 return 0;
10017 }
10018 _ACEOF
10019 if ac_fn_c_try_link "$LINENO"; then :
10020
10021 lt_aix_libpath_sed='
10022 /Import File Strings/,/^$/ {
10023 /^0/ {
10024 s/^0 *\(.*\)$/\1/
10025 p
10026 }
10027 }'
10028 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10029 # Check for a 64-bit object if we didn't find anything.
10030 if test -z "$aix_libpath"; then
10031 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10032 fi
10033 fi
10034 rm -f core conftest.err conftest.$ac_objext \
10035 conftest$ac_exeext conftest.$ac_ext
10036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10037
10038 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10039 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"
10040 else
10041 if test "$host_cpu" = ia64; then
10042 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10043 allow_undefined_flag="-z nodefs"
10044 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"
10045 else
10046 # Determine the default libpath from the value encoded in an
10047 # empty executable.
10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h. */
10050
10051 int
10052 main ()
10053 {
10054
10055 ;
10056 return 0;
10057 }
10058 _ACEOF
10059 if ac_fn_c_try_link "$LINENO"; then :
10060
10061 lt_aix_libpath_sed='
10062 /Import File Strings/,/^$/ {
10063 /^0/ {
10064 s/^0 *\(.*\)$/\1/
10065 p
10066 }
10067 }'
10068 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10069 # Check for a 64-bit object if we didn't find anything.
10070 if test -z "$aix_libpath"; then
10071 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10072 fi
10073 fi
10074 rm -f core conftest.err conftest.$ac_objext \
10075 conftest$ac_exeext conftest.$ac_ext
10076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10077
10078 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10079 # Warning - without using the other run time loading flags,
10080 # -berok will link without error, but may produce a broken library.
10081 no_undefined_flag=' ${wl}-bernotok'
10082 allow_undefined_flag=' ${wl}-berok'
10083 if test "$with_gnu_ld" = yes; then
10084 # We only use this code for GNU lds that support --whole-archive.
10085 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10086 else
10087 # Exported symbols can be pulled into shared objects from archives
10088 whole_archive_flag_spec='$convenience'
10089 fi
10090 archive_cmds_need_lc=yes
10091 # This is similar to how AIX traditionally builds its shared libraries.
10092 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'
10093 fi
10094 fi
10095 ;;
10096
10097 amigaos*)
10098 case $host_cpu in
10099 powerpc)
10100 # see comment about AmigaOS4 .so support
10101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10102 archive_expsym_cmds=''
10103 ;;
10104 m68k)
10105 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)'
10106 hardcode_libdir_flag_spec='-L$libdir'
10107 hardcode_minus_L=yes
10108 ;;
10109 esac
10110 ;;
10111
10112 bsdi[45]*)
10113 export_dynamic_flag_spec=-rdynamic
10114 ;;
10115
10116 cygwin* | mingw* | pw32* | cegcc*)
10117 # When not using gcc, we currently assume that we are using
10118 # Microsoft Visual C++.
10119 # hardcode_libdir_flag_spec is actually meaningless, as there is
10120 # no search path for DLLs.
10121 hardcode_libdir_flag_spec=' '
10122 allow_undefined_flag=unsupported
10123 # Tell ltmain to make .lib files, not .a files.
10124 libext=lib
10125 # Tell ltmain to make .dll files, not .so files.
10126 shrext_cmds=".dll"
10127 # FIXME: Setting linknames here is a bad hack.
10128 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10129 # The linker will automatically build a .lib file if we build a DLL.
10130 old_archive_from_new_cmds='true'
10131 # FIXME: Should let the user specify the lib program.
10132 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10133 fix_srcfile_path='`cygpath -w "$srcfile"`'
10134 enable_shared_with_static_runtimes=yes
10135 ;;
10136
10137 darwin* | rhapsody*)
10138
10139
10140 archive_cmds_need_lc=no
10141 hardcode_direct=no
10142 hardcode_automatic=yes
10143 hardcode_shlibpath_var=unsupported
10144 if test "$lt_cv_ld_force_load" = "yes"; then
10145 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\"`'
10146 else
10147 whole_archive_flag_spec=''
10148 fi
10149 link_all_deplibs=yes
10150 allow_undefined_flag="$_lt_dar_allow_undefined"
10151 case $cc_basename in
10152 ifort*) _lt_dar_can_shared=yes ;;
10153 *) _lt_dar_can_shared=$GCC ;;
10154 esac
10155 if test "$_lt_dar_can_shared" = "yes"; then
10156 output_verbose_link_cmd=func_echo_all
10157 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10158 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10159 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}"
10160 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}"
10161
10162 else
10163 ld_shlibs=no
10164 fi
10165
10166 ;;
10167
10168 dgux*)
10169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170 hardcode_libdir_flag_spec='-L$libdir'
10171 hardcode_shlibpath_var=no
10172 ;;
10173
10174 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10175 # support. Future versions do this automatically, but an explicit c++rt0.o
10176 # does not break anything, and helps significantly (at the cost of a little
10177 # extra space).
10178 freebsd2.2*)
10179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10180 hardcode_libdir_flag_spec='-R$libdir'
10181 hardcode_direct=yes
10182 hardcode_shlibpath_var=no
10183 ;;
10184
10185 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10186 freebsd2.*)
10187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10188 hardcode_direct=yes
10189 hardcode_minus_L=yes
10190 hardcode_shlibpath_var=no
10191 ;;
10192
10193 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10194 freebsd* | dragonfly*)
10195 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10196 hardcode_libdir_flag_spec='-R$libdir'
10197 hardcode_direct=yes
10198 hardcode_shlibpath_var=no
10199 ;;
10200
10201 hpux9*)
10202 if test "$GCC" = yes; then
10203 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'
10204 else
10205 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'
10206 fi
10207 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10208 hardcode_libdir_separator=:
10209 hardcode_direct=yes
10210
10211 # hardcode_minus_L: Not really in the search PATH,
10212 # but as the default location of the library.
10213 hardcode_minus_L=yes
10214 export_dynamic_flag_spec='${wl}-E'
10215 ;;
10216
10217 hpux10*)
10218 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10219 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10220 else
10221 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10222 fi
10223 if test "$with_gnu_ld" = no; then
10224 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10225 hardcode_libdir_flag_spec_ld='+b $libdir'
10226 hardcode_libdir_separator=:
10227 hardcode_direct=yes
10228 hardcode_direct_absolute=yes
10229 export_dynamic_flag_spec='${wl}-E'
10230 # hardcode_minus_L: Not really in the search PATH,
10231 # but as the default location of the library.
10232 hardcode_minus_L=yes
10233 fi
10234 ;;
10235
10236 hpux11*)
10237 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10238 case $host_cpu in
10239 hppa*64*)
10240 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 ;;
10242 ia64*)
10243 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10244 ;;
10245 *)
10246 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10247 ;;
10248 esac
10249 else
10250 case $host_cpu in
10251 hppa*64*)
10252 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10253 ;;
10254 ia64*)
10255 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10256 ;;
10257 *)
10258
10259 # Older versions of the 11.00 compiler do not understand -b yet
10260 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10262 $as_echo_n "checking if $CC understands -b... " >&6; }
10263 if ${lt_cv_prog_compiler__b+:} false; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10266 lt_cv_prog_compiler__b=no
10267 save_LDFLAGS="$LDFLAGS"
10268 LDFLAGS="$LDFLAGS -b"
10269 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10270 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10271 # The linker can only warn and ignore the option if not recognized
10272 # So say no if there are warnings
10273 if test -s conftest.err; then
10274 # Append any errors to the config.log.
10275 cat conftest.err 1>&5
10276 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10278 if diff conftest.exp conftest.er2 >/dev/null; then
10279 lt_cv_prog_compiler__b=yes
10280 fi
10281 else
10282 lt_cv_prog_compiler__b=yes
10283 fi
10284 fi
10285 $RM -r conftest*
10286 LDFLAGS="$save_LDFLAGS"
10287
10288 fi
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10290 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10291
10292 if test x"$lt_cv_prog_compiler__b" = xyes; then
10293 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10294 else
10295 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10296 fi
10297
10298 ;;
10299 esac
10300 fi
10301 if test "$with_gnu_ld" = no; then
10302 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10303 hardcode_libdir_separator=:
10304
10305 case $host_cpu in
10306 hppa*64*|ia64*)
10307 hardcode_direct=no
10308 hardcode_shlibpath_var=no
10309 ;;
10310 *)
10311 hardcode_direct=yes
10312 hardcode_direct_absolute=yes
10313 export_dynamic_flag_spec='${wl}-E'
10314
10315 # hardcode_minus_L: Not really in the search PATH,
10316 # but as the default location of the library.
10317 hardcode_minus_L=yes
10318 ;;
10319 esac
10320 fi
10321 ;;
10322
10323 irix5* | irix6* | nonstopux*)
10324 if test "$GCC" = yes; then
10325 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'
10326 # Try to use the -exported_symbol ld option, if it does not
10327 # work, assume that -exports_file does not work either and
10328 # implicitly export all symbols.
10329 save_LDFLAGS="$LDFLAGS"
10330 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10333 int foo(void) {}
10334 _ACEOF
10335 if ac_fn_c_try_link "$LINENO"; then :
10336 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'
10337
10338 fi
10339 rm -f core conftest.err conftest.$ac_objext \
10340 conftest$ac_exeext conftest.$ac_ext
10341 LDFLAGS="$save_LDFLAGS"
10342 else
10343 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'
10344 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'
10345 fi
10346 archive_cmds_need_lc='no'
10347 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10348 hardcode_libdir_separator=:
10349 inherit_rpath=yes
10350 link_all_deplibs=yes
10351 ;;
10352
10353 netbsd*)
10354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10355 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10356 else
10357 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10358 fi
10359 hardcode_libdir_flag_spec='-R$libdir'
10360 hardcode_direct=yes
10361 hardcode_shlibpath_var=no
10362 ;;
10363
10364 newsos6)
10365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10366 hardcode_direct=yes
10367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10368 hardcode_libdir_separator=:
10369 hardcode_shlibpath_var=no
10370 ;;
10371
10372 *nto* | *qnx*)
10373 ;;
10374
10375 openbsd*)
10376 if test -f /usr/libexec/ld.so; then
10377 hardcode_direct=yes
10378 hardcode_shlibpath_var=no
10379 hardcode_direct_absolute=yes
10380 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10382 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10383 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10384 export_dynamic_flag_spec='${wl}-E'
10385 else
10386 case $host_os in
10387 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10389 hardcode_libdir_flag_spec='-R$libdir'
10390 ;;
10391 *)
10392 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10393 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10394 ;;
10395 esac
10396 fi
10397 else
10398 ld_shlibs=no
10399 fi
10400 ;;
10401
10402 os2*)
10403 hardcode_libdir_flag_spec='-L$libdir'
10404 hardcode_minus_L=yes
10405 allow_undefined_flag=unsupported
10406 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'
10407 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10408 ;;
10409
10410 osf3*)
10411 if test "$GCC" = yes; then
10412 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10413 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'
10414 else
10415 allow_undefined_flag=' -expect_unresolved \*'
10416 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'
10417 fi
10418 archive_cmds_need_lc='no'
10419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10420 hardcode_libdir_separator=:
10421 ;;
10422
10423 osf4* | osf5*) # as osf3* with the addition of -msym flag
10424 if test "$GCC" = yes; then
10425 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10426 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'
10427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10428 else
10429 allow_undefined_flag=' -expect_unresolved \*'
10430 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'
10431 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~
10432 $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'
10433
10434 # Both c and cxx compiler support -rpath directly
10435 hardcode_libdir_flag_spec='-rpath $libdir'
10436 fi
10437 archive_cmds_need_lc='no'
10438 hardcode_libdir_separator=:
10439 ;;
10440
10441 solaris*)
10442 no_undefined_flag=' -z defs'
10443 if test "$GCC" = yes; then
10444 wlarc='${wl}'
10445 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10446 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10447 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10448 else
10449 case `$CC -V 2>&1` in
10450 *"Compilers 5.0"*)
10451 wlarc=''
10452 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10453 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10454 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10455 ;;
10456 *)
10457 wlarc='${wl}'
10458 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10459 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10460 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10461 ;;
10462 esac
10463 fi
10464 hardcode_libdir_flag_spec='-R$libdir'
10465 hardcode_shlibpath_var=no
10466 case $host_os in
10467 solaris2.[0-5] | solaris2.[0-5].*) ;;
10468 *)
10469 # The compiler driver will combine and reorder linker options,
10470 # but understands `-z linker_flag'. GCC discards it without `$wl',
10471 # but is careful enough not to reorder.
10472 # Supported since Solaris 2.6 (maybe 2.5.1?)
10473 if test "$GCC" = yes; then
10474 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10475 else
10476 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10477 fi
10478 ;;
10479 esac
10480 link_all_deplibs=yes
10481 ;;
10482
10483 sunos4*)
10484 if test "x$host_vendor" = xsequent; then
10485 # Use $CC to link under sequent, because it throws in some extra .o
10486 # files that make .init and .fini sections work.
10487 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10488 else
10489 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10490 fi
10491 hardcode_libdir_flag_spec='-L$libdir'
10492 hardcode_direct=yes
10493 hardcode_minus_L=yes
10494 hardcode_shlibpath_var=no
10495 ;;
10496
10497 sysv4)
10498 case $host_vendor in
10499 sni)
10500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10501 hardcode_direct=yes # is this really true???
10502 ;;
10503 siemens)
10504 ## LD is ld it makes a PLAMLIB
10505 ## CC just makes a GrossModule.
10506 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10507 reload_cmds='$CC -r -o $output$reload_objs'
10508 hardcode_direct=no
10509 ;;
10510 motorola)
10511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10512 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10513 ;;
10514 esac
10515 runpath_var='LD_RUN_PATH'
10516 hardcode_shlibpath_var=no
10517 ;;
10518
10519 sysv4.3*)
10520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10521 hardcode_shlibpath_var=no
10522 export_dynamic_flag_spec='-Bexport'
10523 ;;
10524
10525 sysv4*MP*)
10526 if test -d /usr/nec; then
10527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10528 hardcode_shlibpath_var=no
10529 runpath_var=LD_RUN_PATH
10530 hardcode_runpath_var=yes
10531 ld_shlibs=yes
10532 fi
10533 ;;
10534
10535 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10536 no_undefined_flag='${wl}-z,text'
10537 archive_cmds_need_lc=no
10538 hardcode_shlibpath_var=no
10539 runpath_var='LD_RUN_PATH'
10540
10541 if test "$GCC" = yes; then
10542 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10543 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10544 else
10545 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10546 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10547 fi
10548 ;;
10549
10550 sysv5* | sco3.2v5* | sco5v6*)
10551 # Note: We can NOT use -z defs as we might desire, because we do not
10552 # link with -lc, and that would cause any symbols used from libc to
10553 # always be unresolved, which means just about no library would
10554 # ever link correctly. If we're not using GNU ld we use -z text
10555 # though, which does catch some bad symbols but isn't as heavy-handed
10556 # as -z defs.
10557 no_undefined_flag='${wl}-z,text'
10558 allow_undefined_flag='${wl}-z,nodefs'
10559 archive_cmds_need_lc=no
10560 hardcode_shlibpath_var=no
10561 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10562 hardcode_libdir_separator=':'
10563 link_all_deplibs=yes
10564 export_dynamic_flag_spec='${wl}-Bexport'
10565 runpath_var='LD_RUN_PATH'
10566
10567 if test "$GCC" = yes; then
10568 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10569 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10570 else
10571 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10572 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10573 fi
10574 ;;
10575
10576 uts4*)
10577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10578 hardcode_libdir_flag_spec='-L$libdir'
10579 hardcode_shlibpath_var=no
10580 ;;
10581
10582 *)
10583 ld_shlibs=no
10584 ;;
10585 esac
10586
10587 if test x$host_vendor = xsni; then
10588 case $host in
10589 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10590 export_dynamic_flag_spec='${wl}-Blargedynsym'
10591 ;;
10592 esac
10593 fi
10594 fi
10595
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10597 $as_echo "$ld_shlibs" >&6; }
10598 test "$ld_shlibs" = no && can_build_shared=no
10599
10600 with_gnu_ld=$with_gnu_ld
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616 #
10617 # Do we need to explicitly link libc?
10618 #
10619 case "x$archive_cmds_need_lc" in
10620 x|xyes)
10621 # Assume -lc should be added
10622 archive_cmds_need_lc=yes
10623
10624 if test "$enable_shared" = yes && test "$GCC" = yes; then
10625 case $archive_cmds in
10626 *'~'*)
10627 # FIXME: we may have to deal with multi-command sequences.
10628 ;;
10629 '$CC '*)
10630 # Test whether the compiler implicitly links with -lc since on some
10631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10632 # to ld, don't add -lc before -lgcc.
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10634 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10635 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 $RM conftest*
10639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10640
10641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10642 (eval $ac_compile) 2>&5
10643 ac_status=$?
10644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10645 test $ac_status = 0; } 2>conftest.err; then
10646 soname=conftest
10647 lib=conftest
10648 libobjs=conftest.$ac_objext
10649 deplibs=
10650 wl=$lt_prog_compiler_wl
10651 pic_flag=$lt_prog_compiler_pic
10652 compiler_flags=-v
10653 linker_flags=-v
10654 verstring=
10655 output_objdir=.
10656 libname=conftest
10657 lt_save_allow_undefined_flag=$allow_undefined_flag
10658 allow_undefined_flag=
10659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10660 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10661 ac_status=$?
10662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10663 test $ac_status = 0; }
10664 then
10665 lt_cv_archive_cmds_need_lc=no
10666 else
10667 lt_cv_archive_cmds_need_lc=yes
10668 fi
10669 allow_undefined_flag=$lt_save_allow_undefined_flag
10670 else
10671 cat conftest.err 1>&5
10672 fi
10673 $RM conftest*
10674
10675 fi
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10677 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10678 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10679 ;;
10680 esac
10681 fi
10682 ;;
10683 esac
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10842 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10843
10844 if test "$GCC" = yes; then
10845 case $host_os in
10846 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10847 *) lt_awk_arg="/^libraries:/" ;;
10848 esac
10849 case $host_os in
10850 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10851 *) lt_sed_strip_eq="s,=/,/,g" ;;
10852 esac
10853 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10854 case $lt_search_path_spec in
10855 *\;*)
10856 # if the path contains ";" then we assume it to be the separator
10857 # otherwise default to the standard path separator (i.e. ":") - it is
10858 # assumed that no part of a normal pathname contains ";" but that should
10859 # okay in the real world where ";" in dirpaths is itself problematic.
10860 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10861 ;;
10862 *)
10863 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10864 ;;
10865 esac
10866 # Ok, now we have the path, separated by spaces, we can step through it
10867 # and add multilib dir if necessary.
10868 lt_tmp_lt_search_path_spec=
10869 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10870 for lt_sys_path in $lt_search_path_spec; do
10871 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10872 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10873 else
10874 test -d "$lt_sys_path" && \
10875 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10876 fi
10877 done
10878 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10879 BEGIN {RS=" "; FS="/|\n";} {
10880 lt_foo="";
10881 lt_count=0;
10882 for (lt_i = NF; lt_i > 0; lt_i--) {
10883 if ($lt_i != "" && $lt_i != ".") {
10884 if ($lt_i == "..") {
10885 lt_count++;
10886 } else {
10887 if (lt_count == 0) {
10888 lt_foo="/" $lt_i lt_foo;
10889 } else {
10890 lt_count--;
10891 }
10892 }
10893 }
10894 }
10895 if (lt_foo != "") { lt_freq[lt_foo]++; }
10896 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10897 }'`
10898 # AWK program above erroneously prepends '/' to C:/dos/paths
10899 # for these hosts.
10900 case $host_os in
10901 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10902 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10903 esac
10904 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10905 else
10906 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10907 fi
10908 library_names_spec=
10909 libname_spec='lib$name'
10910 soname_spec=
10911 shrext_cmds=".so"
10912 postinstall_cmds=
10913 postuninstall_cmds=
10914 finish_cmds=
10915 finish_eval=
10916 shlibpath_var=
10917 shlibpath_overrides_runpath=unknown
10918 version_type=none
10919 dynamic_linker="$host_os ld.so"
10920 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10921 need_lib_prefix=unknown
10922 hardcode_into_libs=no
10923
10924 # when you set need_version to no, make sure it does not cause -set_version
10925 # flags to be left without arguments
10926 need_version=unknown
10927
10928 case $host_os in
10929 aix3*)
10930 version_type=linux
10931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10932 shlibpath_var=LIBPATH
10933
10934 # AIX 3 has no versioning support, so we append a major version to the name.
10935 soname_spec='${libname}${release}${shared_ext}$major'
10936 ;;
10937
10938 aix[4-9]*)
10939 version_type=linux
10940 need_lib_prefix=no
10941 need_version=no
10942 hardcode_into_libs=yes
10943 if test "$host_cpu" = ia64; then
10944 # AIX 5 supports IA64
10945 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10946 shlibpath_var=LD_LIBRARY_PATH
10947 else
10948 # With GCC up to 2.95.x, collect2 would create an import file
10949 # for dependence libraries. The import file would start with
10950 # the line `#! .'. This would cause the generated library to
10951 # depend on `.', always an invalid library. This was fixed in
10952 # development snapshots of GCC prior to 3.0.
10953 case $host_os in
10954 aix4 | aix4.[01] | aix4.[01].*)
10955 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10956 echo ' yes '
10957 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10958 :
10959 else
10960 can_build_shared=no
10961 fi
10962 ;;
10963 esac
10964 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10965 # soname into executable. Probably we can add versioning support to
10966 # collect2, so additional links can be useful in future.
10967 if test "$aix_use_runtimelinking" = yes; then
10968 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10969 # instead of lib<name>.a to let people know that these are not
10970 # typical AIX shared libraries.
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10972 else
10973 # We preserve .a as extension for shared libraries through AIX4.2
10974 # and later when we are not doing run time linking.
10975 library_names_spec='${libname}${release}.a $libname.a'
10976 soname_spec='${libname}${release}${shared_ext}$major'
10977 fi
10978 shlibpath_var=LIBPATH
10979 fi
10980 ;;
10981
10982 amigaos*)
10983 case $host_cpu in
10984 powerpc)
10985 # Since July 2007 AmigaOS4 officially supports .so libraries.
10986 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988 ;;
10989 m68k)
10990 library_names_spec='$libname.ixlibrary $libname.a'
10991 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10992 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'
10993 ;;
10994 esac
10995 ;;
10996
10997 beos*)
10998 library_names_spec='${libname}${shared_ext}'
10999 dynamic_linker="$host_os ld.so"
11000 shlibpath_var=LIBRARY_PATH
11001 ;;
11002
11003 bsdi[45]*)
11004 version_type=linux
11005 need_version=no
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11011 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11012 # the default ld.so.conf also contains /usr/contrib/lib and
11013 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11014 # libtool to hard-code these into programs
11015 ;;
11016
11017 cygwin* | mingw* | pw32* | cegcc*)
11018 version_type=windows
11019 shrext_cmds=".dll"
11020 need_version=no
11021 need_lib_prefix=no
11022
11023 case $GCC,$host_os in
11024 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11025 library_names_spec='$libname.dll.a'
11026 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11027 postinstall_cmds='base_file=`basename \${file}`~
11028 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11029 dldir=$destdir/`dirname \$dlpath`~
11030 test -d \$dldir || mkdir -p \$dldir~
11031 $install_prog $dir/$dlname \$dldir/$dlname~
11032 chmod a+x \$dldir/$dlname~
11033 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11034 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11035 fi'
11036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11037 dlpath=$dir/\$dldll~
11038 $RM \$dlpath'
11039 shlibpath_overrides_runpath=yes
11040
11041 case $host_os in
11042 cygwin*)
11043 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11044 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11045
11046 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11047 ;;
11048 mingw* | cegcc*)
11049 # MinGW DLLs use traditional 'lib' prefix
11050 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11051 ;;
11052 pw32*)
11053 # pw32 DLLs use 'pw' prefix rather than 'lib'
11054 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11055 ;;
11056 esac
11057 ;;
11058
11059 *)
11060 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11061 ;;
11062 esac
11063 dynamic_linker='Win32 ld.exe'
11064 # FIXME: first we should search . and the directory the executable is in
11065 shlibpath_var=PATH
11066 ;;
11067
11068 darwin* | rhapsody*)
11069 dynamic_linker="$host_os dyld"
11070 version_type=darwin
11071 need_lib_prefix=no
11072 need_version=no
11073 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11074 soname_spec='${libname}${release}${major}$shared_ext'
11075 shlibpath_overrides_runpath=yes
11076 shlibpath_var=DYLD_LIBRARY_PATH
11077 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11078
11079 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11080 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11081 ;;
11082
11083 dgux*)
11084 version_type=linux
11085 need_lib_prefix=no
11086 need_version=no
11087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11088 soname_spec='${libname}${release}${shared_ext}$major'
11089 shlibpath_var=LD_LIBRARY_PATH
11090 ;;
11091
11092 freebsd* | dragonfly*)
11093 # DragonFly does not have aout. When/if they implement a new
11094 # versioning mechanism, adjust this.
11095 if test -x /usr/bin/objformat; then
11096 objformat=`/usr/bin/objformat`
11097 else
11098 case $host_os in
11099 freebsd[23].*) objformat=aout ;;
11100 *) objformat=elf ;;
11101 esac
11102 fi
11103 version_type=freebsd-$objformat
11104 case $version_type in
11105 freebsd-elf*)
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11107 need_version=no
11108 need_lib_prefix=no
11109 ;;
11110 freebsd-*)
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11112 need_version=yes
11113 ;;
11114 esac
11115 shlibpath_var=LD_LIBRARY_PATH
11116 case $host_os in
11117 freebsd2.*)
11118 shlibpath_overrides_runpath=yes
11119 ;;
11120 freebsd3.[01]* | freebsdelf3.[01]*)
11121 shlibpath_overrides_runpath=yes
11122 hardcode_into_libs=yes
11123 ;;
11124 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11125 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11126 shlibpath_overrides_runpath=no
11127 hardcode_into_libs=yes
11128 ;;
11129 *) # from 4.6 on, and DragonFly
11130 shlibpath_overrides_runpath=yes
11131 hardcode_into_libs=yes
11132 ;;
11133 esac
11134 ;;
11135
11136 haiku*)
11137 version_type=linux
11138 need_lib_prefix=no
11139 need_version=no
11140 dynamic_linker="$host_os runtime_loader"
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 shlibpath_var=LIBRARY_PATH
11144 shlibpath_overrides_runpath=yes
11145 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11146 hardcode_into_libs=yes
11147 ;;
11148
11149 hpux9* | hpux10* | hpux11*)
11150 # Give a soname corresponding to the major version so that dld.sl refuses to
11151 # link against other versions.
11152 version_type=sunos
11153 need_lib_prefix=no
11154 need_version=no
11155 case $host_cpu in
11156 ia64*)
11157 shrext_cmds='.so'
11158 hardcode_into_libs=yes
11159 dynamic_linker="$host_os dld.so"
11160 shlibpath_var=LD_LIBRARY_PATH
11161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163 soname_spec='${libname}${release}${shared_ext}$major'
11164 if test "X$HPUX_IA64_MODE" = X32; then
11165 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11166 else
11167 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11168 fi
11169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11170 ;;
11171 hppa*64*)
11172 shrext_cmds='.sl'
11173 hardcode_into_libs=yes
11174 dynamic_linker="$host_os dld.sl"
11175 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11181 ;;
11182 *)
11183 shrext_cmds='.sl'
11184 dynamic_linker="$host_os dld.sl"
11185 shlibpath_var=SHLIB_PATH
11186 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 soname_spec='${libname}${release}${shared_ext}$major'
11189 ;;
11190 esac
11191 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11192 postinstall_cmds='chmod 555 $lib'
11193 # or fails outright, so override atomically:
11194 install_override_mode=555
11195 ;;
11196
11197 interix[3-9]*)
11198 version_type=linux
11199 need_lib_prefix=no
11200 need_version=no
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11202 soname_spec='${libname}${release}${shared_ext}$major'
11203 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11204 shlibpath_var=LD_LIBRARY_PATH
11205 shlibpath_overrides_runpath=no
11206 hardcode_into_libs=yes
11207 ;;
11208
11209 irix5* | irix6* | nonstopux*)
11210 case $host_os in
11211 nonstopux*) version_type=nonstopux ;;
11212 *)
11213 if test "$lt_cv_prog_gnu_ld" = yes; then
11214 version_type=linux
11215 else
11216 version_type=irix
11217 fi ;;
11218 esac
11219 need_lib_prefix=no
11220 need_version=no
11221 soname_spec='${libname}${release}${shared_ext}$major'
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11223 case $host_os in
11224 irix5* | nonstopux*)
11225 libsuff= shlibsuff=
11226 ;;
11227 *)
11228 case $LD in # libtool.m4 will add one of these switches to LD
11229 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11230 libsuff= shlibsuff= libmagic=32-bit;;
11231 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11232 libsuff=32 shlibsuff=N32 libmagic=N32;;
11233 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11234 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11235 *) libsuff= shlibsuff= libmagic=never-match;;
11236 esac
11237 ;;
11238 esac
11239 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11240 shlibpath_overrides_runpath=no
11241 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11242 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11243 hardcode_into_libs=yes
11244 ;;
11245
11246 # No shared lib support for Linux oldld, aout, or coff.
11247 linux*oldld* | linux*aout* | linux*coff*)
11248 dynamic_linker=no
11249 ;;
11250
11251 # This must be Linux ELF.
11252 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11253 version_type=linux
11254 need_lib_prefix=no
11255 need_version=no
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11259 shlibpath_var=LD_LIBRARY_PATH
11260 shlibpath_overrides_runpath=no
11261
11262 # Some binutils ld are patched to set DT_RUNPATH
11263 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11264 $as_echo_n "(cached) " >&6
11265 else
11266 lt_cv_shlibpath_overrides_runpath=no
11267 save_LDFLAGS=$LDFLAGS
11268 save_libdir=$libdir
11269 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11270 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11273
11274 int
11275 main ()
11276 {
11277
11278 ;
11279 return 0;
11280 }
11281 _ACEOF
11282 if ac_fn_c_try_link "$LINENO"; then :
11283 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11284 lt_cv_shlibpath_overrides_runpath=yes
11285 fi
11286 fi
11287 rm -f core conftest.err conftest.$ac_objext \
11288 conftest$ac_exeext conftest.$ac_ext
11289 LDFLAGS=$save_LDFLAGS
11290 libdir=$save_libdir
11291
11292 fi
11293
11294 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11295
11296 # This implies no fast_install, which is unacceptable.
11297 # Some rework will be needed to allow for fast_install
11298 # before this can be enabled.
11299 hardcode_into_libs=yes
11300
11301 # Append ld.so.conf contents to the search path
11302 if test -f /etc/ld.so.conf; then
11303 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' ' '`
11304 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11305 fi
11306
11307 # We used to test for /lib/ld.so.1 and disable shared libraries on
11308 # powerpc, because MkLinux only supported shared libraries with the
11309 # GNU dynamic linker. Since this was broken with cross compilers,
11310 # most powerpc-linux boxes support dynamic linking these days and
11311 # people can always --disable-shared, the test was removed, and we
11312 # assume the GNU/Linux dynamic linker is in use.
11313 dynamic_linker='GNU/Linux ld.so'
11314 ;;
11315
11316 netbsd*)
11317 version_type=sunos
11318 need_lib_prefix=no
11319 need_version=no
11320 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11323 dynamic_linker='NetBSD (a.out) ld.so'
11324 else
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11326 soname_spec='${libname}${release}${shared_ext}$major'
11327 dynamic_linker='NetBSD ld.elf_so'
11328 fi
11329 shlibpath_var=LD_LIBRARY_PATH
11330 shlibpath_overrides_runpath=yes
11331 hardcode_into_libs=yes
11332 ;;
11333
11334 newsos6)
11335 version_type=linux
11336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11337 shlibpath_var=LD_LIBRARY_PATH
11338 shlibpath_overrides_runpath=yes
11339 ;;
11340
11341 *nto* | *qnx*)
11342 version_type=qnx
11343 need_lib_prefix=no
11344 need_version=no
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 shlibpath_var=LD_LIBRARY_PATH
11348 shlibpath_overrides_runpath=no
11349 hardcode_into_libs=yes
11350 dynamic_linker='ldqnx.so'
11351 ;;
11352
11353 openbsd*)
11354 version_type=sunos
11355 sys_lib_dlsearch_path_spec="/usr/lib"
11356 need_lib_prefix=no
11357 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11358 case $host_os in
11359 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11360 *) need_version=no ;;
11361 esac
11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11364 shlibpath_var=LD_LIBRARY_PATH
11365 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11366 case $host_os in
11367 openbsd2.[89] | openbsd2.[89].*)
11368 shlibpath_overrides_runpath=no
11369 ;;
11370 *)
11371 shlibpath_overrides_runpath=yes
11372 ;;
11373 esac
11374 else
11375 shlibpath_overrides_runpath=yes
11376 fi
11377 ;;
11378
11379 os2*)
11380 libname_spec='$name'
11381 shrext_cmds=".dll"
11382 need_lib_prefix=no
11383 library_names_spec='$libname${shared_ext} $libname.a'
11384 dynamic_linker='OS/2 ld.exe'
11385 shlibpath_var=LIBPATH
11386 ;;
11387
11388 osf3* | osf4* | osf5*)
11389 version_type=osf
11390 need_lib_prefix=no
11391 need_version=no
11392 soname_spec='${libname}${release}${shared_ext}$major'
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11394 shlibpath_var=LD_LIBRARY_PATH
11395 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11396 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11397 ;;
11398
11399 rdos*)
11400 dynamic_linker=no
11401 ;;
11402
11403 solaris*)
11404 version_type=linux
11405 need_lib_prefix=no
11406 need_version=no
11407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11408 soname_spec='${libname}${release}${shared_ext}$major'
11409 shlibpath_var=LD_LIBRARY_PATH
11410 shlibpath_overrides_runpath=yes
11411 hardcode_into_libs=yes
11412 # ldd complains unless libraries are executable
11413 postinstall_cmds='chmod +x $lib'
11414 ;;
11415
11416 sunos4*)
11417 version_type=sunos
11418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11419 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11420 shlibpath_var=LD_LIBRARY_PATH
11421 shlibpath_overrides_runpath=yes
11422 if test "$with_gnu_ld" = yes; then
11423 need_lib_prefix=no
11424 fi
11425 need_version=yes
11426 ;;
11427
11428 sysv4 | sysv4.3*)
11429 version_type=linux
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 soname_spec='${libname}${release}${shared_ext}$major'
11432 shlibpath_var=LD_LIBRARY_PATH
11433 case $host_vendor in
11434 sni)
11435 shlibpath_overrides_runpath=no
11436 need_lib_prefix=no
11437 runpath_var=LD_RUN_PATH
11438 ;;
11439 siemens)
11440 need_lib_prefix=no
11441 ;;
11442 motorola)
11443 need_lib_prefix=no
11444 need_version=no
11445 shlibpath_overrides_runpath=no
11446 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11447 ;;
11448 esac
11449 ;;
11450
11451 sysv4*MP*)
11452 if test -d /usr/nec ;then
11453 version_type=linux
11454 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11455 soname_spec='$libname${shared_ext}.$major'
11456 shlibpath_var=LD_LIBRARY_PATH
11457 fi
11458 ;;
11459
11460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11461 version_type=freebsd-elf
11462 need_lib_prefix=no
11463 need_version=no
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11465 soname_spec='${libname}${release}${shared_ext}$major'
11466 shlibpath_var=LD_LIBRARY_PATH
11467 shlibpath_overrides_runpath=yes
11468 hardcode_into_libs=yes
11469 if test "$with_gnu_ld" = yes; then
11470 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11471 else
11472 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11473 case $host_os in
11474 sco3.2v5*)
11475 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11476 ;;
11477 esac
11478 fi
11479 sys_lib_dlsearch_path_spec='/usr/lib'
11480 ;;
11481
11482 tpf*)
11483 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11484 version_type=linux
11485 need_lib_prefix=no
11486 need_version=no
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488 shlibpath_var=LD_LIBRARY_PATH
11489 shlibpath_overrides_runpath=no
11490 hardcode_into_libs=yes
11491 ;;
11492
11493 uts4*)
11494 version_type=linux
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11496 soname_spec='${libname}${release}${shared_ext}$major'
11497 shlibpath_var=LD_LIBRARY_PATH
11498 ;;
11499
11500 *)
11501 dynamic_linker=no
11502 ;;
11503 esac
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11505 $as_echo "$dynamic_linker" >&6; }
11506 test "$dynamic_linker" = no && can_build_shared=no
11507
11508 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11509 if test "$GCC" = yes; then
11510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11511 fi
11512
11513 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11514 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11515 fi
11516 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11517 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11518 fi
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11612 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11613 hardcode_action=
11614 if test -n "$hardcode_libdir_flag_spec" ||
11615 test -n "$runpath_var" ||
11616 test "X$hardcode_automatic" = "Xyes" ; then
11617
11618 # We can hardcode non-existent directories.
11619 if test "$hardcode_direct" != no &&
11620 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11621 # have to relink, otherwise we might link with an installed library
11622 # when we should be linking with a yet-to-be-installed one
11623 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11624 test "$hardcode_minus_L" != no; then
11625 # Linking always hardcodes the temporary library directory.
11626 hardcode_action=relink
11627 else
11628 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11629 hardcode_action=immediate
11630 fi
11631 else
11632 # We cannot hardcode anything, or else we can only hardcode existing
11633 # directories.
11634 hardcode_action=unsupported
11635 fi
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11637 $as_echo "$hardcode_action" >&6; }
11638
11639 if test "$hardcode_action" = relink ||
11640 test "$inherit_rpath" = yes; then
11641 # Fast installation is not supported
11642 enable_fast_install=no
11643 elif test "$shlibpath_overrides_runpath" = yes ||
11644 test "$enable_shared" = no; then
11645 # Fast installation is not necessary
11646 enable_fast_install=needless
11647 fi
11648
11649
11650
11651
11652
11653
11654 if test "x$enable_dlopen" != xyes; then
11655 enable_dlopen=unknown
11656 enable_dlopen_self=unknown
11657 enable_dlopen_self_static=unknown
11658 else
11659 lt_cv_dlopen=no
11660 lt_cv_dlopen_libs=
11661
11662 case $host_os in
11663 beos*)
11664 lt_cv_dlopen="load_add_on"
11665 lt_cv_dlopen_libs=
11666 lt_cv_dlopen_self=yes
11667 ;;
11668
11669 mingw* | pw32* | cegcc*)
11670 lt_cv_dlopen="LoadLibrary"
11671 lt_cv_dlopen_libs=
11672 ;;
11673
11674 cygwin*)
11675 lt_cv_dlopen="dlopen"
11676 lt_cv_dlopen_libs=
11677 ;;
11678
11679 darwin*)
11680 # if libdl is installed we need to link against it
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11682 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11683 if ${ac_cv_lib_dl_dlopen+:} false; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 ac_check_lib_save_LIBS=$LIBS
11687 LIBS="-ldl $LIBS"
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11690
11691 /* Override any GCC internal prototype to avoid an error.
11692 Use char because int might match the return type of a GCC
11693 builtin and then its argument prototype would still apply. */
11694 #ifdef __cplusplus
11695 extern "C"
11696 #endif
11697 char dlopen ();
11698 int
11699 main ()
11700 {
11701 return dlopen ();
11702 ;
11703 return 0;
11704 }
11705 _ACEOF
11706 if ac_fn_c_try_link "$LINENO"; then :
11707 ac_cv_lib_dl_dlopen=yes
11708 else
11709 ac_cv_lib_dl_dlopen=no
11710 fi
11711 rm -f core conftest.err conftest.$ac_objext \
11712 conftest$ac_exeext conftest.$ac_ext
11713 LIBS=$ac_check_lib_save_LIBS
11714 fi
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11716 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11717 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11718 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11719 else
11720
11721 lt_cv_dlopen="dyld"
11722 lt_cv_dlopen_libs=
11723 lt_cv_dlopen_self=yes
11724
11725 fi
11726
11727 ;;
11728
11729 *)
11730 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11731 if test "x$ac_cv_func_shl_load" = xyes; then :
11732 lt_cv_dlopen="shl_load"
11733 else
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11735 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11736 if ${ac_cv_lib_dld_shl_load+:} false; then :
11737 $as_echo_n "(cached) " >&6
11738 else
11739 ac_check_lib_save_LIBS=$LIBS
11740 LIBS="-ldld $LIBS"
11741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742 /* end confdefs.h. */
11743
11744 /* Override any GCC internal prototype to avoid an error.
11745 Use char because int might match the return type of a GCC
11746 builtin and then its argument prototype would still apply. */
11747 #ifdef __cplusplus
11748 extern "C"
11749 #endif
11750 char shl_load ();
11751 int
11752 main ()
11753 {
11754 return shl_load ();
11755 ;
11756 return 0;
11757 }
11758 _ACEOF
11759 if ac_fn_c_try_link "$LINENO"; then :
11760 ac_cv_lib_dld_shl_load=yes
11761 else
11762 ac_cv_lib_dld_shl_load=no
11763 fi
11764 rm -f core conftest.err conftest.$ac_objext \
11765 conftest$ac_exeext conftest.$ac_ext
11766 LIBS=$ac_check_lib_save_LIBS
11767 fi
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11769 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11770 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11771 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11772 else
11773 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11774 if test "x$ac_cv_func_dlopen" = xyes; then :
11775 lt_cv_dlopen="dlopen"
11776 else
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11778 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11779 if ${ac_cv_lib_dl_dlopen+:} false; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11782 ac_check_lib_save_LIBS=$LIBS
11783 LIBS="-ldl $LIBS"
11784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785 /* end confdefs.h. */
11786
11787 /* Override any GCC internal prototype to avoid an error.
11788 Use char because int might match the return type of a GCC
11789 builtin and then its argument prototype would still apply. */
11790 #ifdef __cplusplus
11791 extern "C"
11792 #endif
11793 char dlopen ();
11794 int
11795 main ()
11796 {
11797 return dlopen ();
11798 ;
11799 return 0;
11800 }
11801 _ACEOF
11802 if ac_fn_c_try_link "$LINENO"; then :
11803 ac_cv_lib_dl_dlopen=yes
11804 else
11805 ac_cv_lib_dl_dlopen=no
11806 fi
11807 rm -f core conftest.err conftest.$ac_objext \
11808 conftest$ac_exeext conftest.$ac_ext
11809 LIBS=$ac_check_lib_save_LIBS
11810 fi
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11812 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11813 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11814 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11815 else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11817 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11818 if ${ac_cv_lib_svld_dlopen+:} false; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 ac_check_lib_save_LIBS=$LIBS
11822 LIBS="-lsvld $LIBS"
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11825
11826 /* Override any GCC internal prototype to avoid an error.
11827 Use char because int might match the return type of a GCC
11828 builtin and then its argument prototype would still apply. */
11829 #ifdef __cplusplus
11830 extern "C"
11831 #endif
11832 char dlopen ();
11833 int
11834 main ()
11835 {
11836 return dlopen ();
11837 ;
11838 return 0;
11839 }
11840 _ACEOF
11841 if ac_fn_c_try_link "$LINENO"; then :
11842 ac_cv_lib_svld_dlopen=yes
11843 else
11844 ac_cv_lib_svld_dlopen=no
11845 fi
11846 rm -f core conftest.err conftest.$ac_objext \
11847 conftest$ac_exeext conftest.$ac_ext
11848 LIBS=$ac_check_lib_save_LIBS
11849 fi
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11851 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11852 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11853 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11854 else
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11856 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11857 if ${ac_cv_lib_dld_dld_link+:} false; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 ac_check_lib_save_LIBS=$LIBS
11861 LIBS="-ldld $LIBS"
11862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11864
11865 /* Override any GCC internal prototype to avoid an error.
11866 Use char because int might match the return type of a GCC
11867 builtin and then its argument prototype would still apply. */
11868 #ifdef __cplusplus
11869 extern "C"
11870 #endif
11871 char dld_link ();
11872 int
11873 main ()
11874 {
11875 return dld_link ();
11876 ;
11877 return 0;
11878 }
11879 _ACEOF
11880 if ac_fn_c_try_link "$LINENO"; then :
11881 ac_cv_lib_dld_dld_link=yes
11882 else
11883 ac_cv_lib_dld_dld_link=no
11884 fi
11885 rm -f core conftest.err conftest.$ac_objext \
11886 conftest$ac_exeext conftest.$ac_ext
11887 LIBS=$ac_check_lib_save_LIBS
11888 fi
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11890 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11891 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11892 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11893 fi
11894
11895
11896 fi
11897
11898
11899 fi
11900
11901
11902 fi
11903
11904
11905 fi
11906
11907
11908 fi
11909
11910 ;;
11911 esac
11912
11913 if test "x$lt_cv_dlopen" != xno; then
11914 enable_dlopen=yes
11915 else
11916 enable_dlopen=no
11917 fi
11918
11919 case $lt_cv_dlopen in
11920 dlopen)
11921 save_CPPFLAGS="$CPPFLAGS"
11922 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11923
11924 save_LDFLAGS="$LDFLAGS"
11925 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11926
11927 save_LIBS="$LIBS"
11928 LIBS="$lt_cv_dlopen_libs $LIBS"
11929
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11931 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11932 if ${lt_cv_dlopen_self+:} false; then :
11933 $as_echo_n "(cached) " >&6
11934 else
11935 if test "$cross_compiling" = yes; then :
11936 lt_cv_dlopen_self=cross
11937 else
11938 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11939 lt_status=$lt_dlunknown
11940 cat > conftest.$ac_ext <<_LT_EOF
11941 #line 11941 "configure"
11942 #include "confdefs.h"
11943
11944 #if HAVE_DLFCN_H
11945 #include <dlfcn.h>
11946 #endif
11947
11948 #include <stdio.h>
11949
11950 #ifdef RTLD_GLOBAL
11951 # define LT_DLGLOBAL RTLD_GLOBAL
11952 #else
11953 # ifdef DL_GLOBAL
11954 # define LT_DLGLOBAL DL_GLOBAL
11955 # else
11956 # define LT_DLGLOBAL 0
11957 # endif
11958 #endif
11959
11960 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11961 find out it does not work in some platform. */
11962 #ifndef LT_DLLAZY_OR_NOW
11963 # ifdef RTLD_LAZY
11964 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11965 # else
11966 # ifdef DL_LAZY
11967 # define LT_DLLAZY_OR_NOW DL_LAZY
11968 # else
11969 # ifdef RTLD_NOW
11970 # define LT_DLLAZY_OR_NOW RTLD_NOW
11971 # else
11972 # ifdef DL_NOW
11973 # define LT_DLLAZY_OR_NOW DL_NOW
11974 # else
11975 # define LT_DLLAZY_OR_NOW 0
11976 # endif
11977 # endif
11978 # endif
11979 # endif
11980 #endif
11981
11982 /* When -fvisbility=hidden is used, assume the code has been annotated
11983 correspondingly for the symbols needed. */
11984 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11985 void fnord () __attribute__((visibility("default")));
11986 #endif
11987
11988 void fnord () { int i=42; }
11989 int main ()
11990 {
11991 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11992 int status = $lt_dlunknown;
11993
11994 if (self)
11995 {
11996 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11997 else
11998 {
11999 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12000 else puts (dlerror ());
12001 }
12002 /* dlclose (self); */
12003 }
12004 else
12005 puts (dlerror ());
12006
12007 return status;
12008 }
12009 _LT_EOF
12010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12011 (eval $ac_link) 2>&5
12012 ac_status=$?
12013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12014 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12015 (./conftest; exit; ) >&5 2>/dev/null
12016 lt_status=$?
12017 case x$lt_status in
12018 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12019 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12020 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12021 esac
12022 else :
12023 # compilation failed
12024 lt_cv_dlopen_self=no
12025 fi
12026 fi
12027 rm -fr conftest*
12028
12029
12030 fi
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12032 $as_echo "$lt_cv_dlopen_self" >&6; }
12033
12034 if test "x$lt_cv_dlopen_self" = xyes; then
12035 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12037 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12038 if ${lt_cv_dlopen_self_static+:} false; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 if test "$cross_compiling" = yes; then :
12042 lt_cv_dlopen_self_static=cross
12043 else
12044 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12045 lt_status=$lt_dlunknown
12046 cat > conftest.$ac_ext <<_LT_EOF
12047 #line 12047 "configure"
12048 #include "confdefs.h"
12049
12050 #if HAVE_DLFCN_H
12051 #include <dlfcn.h>
12052 #endif
12053
12054 #include <stdio.h>
12055
12056 #ifdef RTLD_GLOBAL
12057 # define LT_DLGLOBAL RTLD_GLOBAL
12058 #else
12059 # ifdef DL_GLOBAL
12060 # define LT_DLGLOBAL DL_GLOBAL
12061 # else
12062 # define LT_DLGLOBAL 0
12063 # endif
12064 #endif
12065
12066 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12067 find out it does not work in some platform. */
12068 #ifndef LT_DLLAZY_OR_NOW
12069 # ifdef RTLD_LAZY
12070 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12071 # else
12072 # ifdef DL_LAZY
12073 # define LT_DLLAZY_OR_NOW DL_LAZY
12074 # else
12075 # ifdef RTLD_NOW
12076 # define LT_DLLAZY_OR_NOW RTLD_NOW
12077 # else
12078 # ifdef DL_NOW
12079 # define LT_DLLAZY_OR_NOW DL_NOW
12080 # else
12081 # define LT_DLLAZY_OR_NOW 0
12082 # endif
12083 # endif
12084 # endif
12085 # endif
12086 #endif
12087
12088 /* When -fvisbility=hidden is used, assume the code has been annotated
12089 correspondingly for the symbols needed. */
12090 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12091 void fnord () __attribute__((visibility("default")));
12092 #endif
12093
12094 void fnord () { int i=42; }
12095 int main ()
12096 {
12097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12098 int status = $lt_dlunknown;
12099
12100 if (self)
12101 {
12102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12103 else
12104 {
12105 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12106 else puts (dlerror ());
12107 }
12108 /* dlclose (self); */
12109 }
12110 else
12111 puts (dlerror ());
12112
12113 return status;
12114 }
12115 _LT_EOF
12116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12117 (eval $ac_link) 2>&5
12118 ac_status=$?
12119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12120 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12121 (./conftest; exit; ) >&5 2>/dev/null
12122 lt_status=$?
12123 case x$lt_status in
12124 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12125 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12126 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12127 esac
12128 else :
12129 # compilation failed
12130 lt_cv_dlopen_self_static=no
12131 fi
12132 fi
12133 rm -fr conftest*
12134
12135
12136 fi
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12138 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12139 fi
12140
12141 CPPFLAGS="$save_CPPFLAGS"
12142 LDFLAGS="$save_LDFLAGS"
12143 LIBS="$save_LIBS"
12144 ;;
12145 esac
12146
12147 case $lt_cv_dlopen_self in
12148 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12149 *) enable_dlopen_self=unknown ;;
12150 esac
12151
12152 case $lt_cv_dlopen_self_static in
12153 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12154 *) enable_dlopen_self_static=unknown ;;
12155 esac
12156 fi
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174 striplib=
12175 old_striplib=
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12177 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12178 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12179 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12180 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12182 $as_echo "yes" >&6; }
12183 else
12184 # FIXME - insert some real tests, host_os isn't really good enough
12185 case $host_os in
12186 darwin*)
12187 if test -n "$STRIP" ; then
12188 striplib="$STRIP -x"
12189 old_striplib="$STRIP -S"
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12191 $as_echo "yes" >&6; }
12192 else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194 $as_echo "no" >&6; }
12195 fi
12196 ;;
12197 *)
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199 $as_echo "no" >&6; }
12200 ;;
12201 esac
12202 fi
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215 # Report which library types will actually be built
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12217 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12219 $as_echo "$can_build_shared" >&6; }
12220
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12222 $as_echo_n "checking whether to build shared libraries... " >&6; }
12223 test "$can_build_shared" = "no" && enable_shared=no
12224
12225 # On AIX, shared libraries and static libraries use the same namespace, and
12226 # are all built from PIC.
12227 case $host_os in
12228 aix3*)
12229 test "$enable_shared" = yes && enable_static=no
12230 if test -n "$RANLIB"; then
12231 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12232 postinstall_cmds='$RANLIB $lib'
12233 fi
12234 ;;
12235
12236 aix[4-9]*)
12237 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12238 test "$enable_shared" = yes && enable_static=no
12239 fi
12240 ;;
12241 esac
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12243 $as_echo "$enable_shared" >&6; }
12244
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12246 $as_echo_n "checking whether to build static libraries... " >&6; }
12247 # Make sure either enable_shared or enable_static is yes.
12248 test "$enable_shared" = yes || enable_static=yes
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12250 $as_echo "$enable_static" >&6; }
12251
12252
12253
12254
12255 fi
12256 ac_ext=c
12257 ac_cpp='$CPP $CPPFLAGS'
12258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12261
12262 CC="$lt_save_CC"
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276 ac_config_commands="$ac_config_commands libtool"
12277
12278
12279
12280
12281 # Only expand once:
12282
12283
12284
12285
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
12287 $as_echo_n "checking for bind in -lsocket... " >&6; }
12288 if ${ac_cv_lib_socket_bind+:} false; then :
12289 $as_echo_n "(cached) " >&6
12290 else
12291 ac_check_lib_save_LIBS=$LIBS
12292 LIBS="-lsocket $LIBS"
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12295
12296 /* Override any GCC internal prototype to avoid an error.
12297 Use char because int might match the return type of a GCC
12298 builtin and then its argument prototype would still apply. */
12299 #ifdef __cplusplus
12300 extern "C"
12301 #endif
12302 char bind ();
12303 int
12304 main ()
12305 {
12306 return bind ();
12307 ;
12308 return 0;
12309 }
12310 _ACEOF
12311 if ac_fn_c_try_link "$LINENO"; then :
12312 ac_cv_lib_socket_bind=yes
12313 else
12314 ac_cv_lib_socket_bind=no
12315 fi
12316 rm -f core conftest.err conftest.$ac_objext \
12317 conftest$ac_exeext conftest.$ac_ext
12318 LIBS=$ac_check_lib_save_LIBS
12319 fi
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
12321 $as_echo "$ac_cv_lib_socket_bind" >&6; }
12322 if test "x$ac_cv_lib_socket_bind" = xyes; then :
12323 cat >>confdefs.h <<_ACEOF
12324 #define HAVE_LIBSOCKET 1
12325 _ACEOF
12326
12327 LIBS="-lsocket $LIBS"
12328
12329 fi
12330
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12332 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12333 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12334 $as_echo_n "(cached) " >&6
12335 else
12336 ac_check_lib_save_LIBS=$LIBS
12337 LIBS="-lnsl $LIBS"
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12340
12341 /* Override any GCC internal prototype to avoid an error.
12342 Use char because int might match the return type of a GCC
12343 builtin and then its argument prototype would still apply. */
12344 #ifdef __cplusplus
12345 extern "C"
12346 #endif
12347 char gethostbyname ();
12348 int
12349 main ()
12350 {
12351 return gethostbyname ();
12352 ;
12353 return 0;
12354 }
12355 _ACEOF
12356 if ac_fn_c_try_link "$LINENO"; then :
12357 ac_cv_lib_nsl_gethostbyname=yes
12358 else
12359 ac_cv_lib_nsl_gethostbyname=no
12360 fi
12361 rm -f core conftest.err conftest.$ac_objext \
12362 conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12364 fi
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12366 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12367 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12368 cat >>confdefs.h <<_ACEOF
12369 #define HAVE_LIBNSL 1
12370 _ACEOF
12371
12372 LIBS="-lnsl $LIBS"
12373
12374 fi
12375
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12377 $as_echo_n "checking for fabs in -lm... " >&6; }
12378 if ${ac_cv_lib_m_fabs+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 ac_check_lib_save_LIBS=$LIBS
12382 LIBS="-lm $LIBS"
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12385
12386 /* Override any GCC internal prototype to avoid an error.
12387 Use char because int might match the return type of a GCC
12388 builtin and then its argument prototype would still apply. */
12389 #ifdef __cplusplus
12390 extern "C"
12391 #endif
12392 char fabs ();
12393 int
12394 main ()
12395 {
12396 return fabs ();
12397 ;
12398 return 0;
12399 }
12400 _ACEOF
12401 if ac_fn_c_try_link "$LINENO"; then :
12402 ac_cv_lib_m_fabs=yes
12403 else
12404 ac_cv_lib_m_fabs=no
12405 fi
12406 rm -f core conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408 LIBS=$ac_check_lib_save_LIBS
12409 fi
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12411 $as_echo "$ac_cv_lib_m_fabs" >&6; }
12412 if test "x$ac_cv_lib_m_fabs" = xyes; then :
12413 cat >>confdefs.h <<_ACEOF
12414 #define HAVE_LIBM 1
12415 _ACEOF
12416
12417 LIBS="-lm $LIBS"
12418
12419 fi
12420
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
12422 $as_echo_n "checking for log2 in -lm... " >&6; }
12423 if ${ac_cv_lib_m_log2+:} false; then :
12424 $as_echo_n "(cached) " >&6
12425 else
12426 ac_check_lib_save_LIBS=$LIBS
12427 LIBS="-lm $LIBS"
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12430
12431 /* Override any GCC internal prototype to avoid an error.
12432 Use char because int might match the return type of a GCC
12433 builtin and then its argument prototype would still apply. */
12434 #ifdef __cplusplus
12435 extern "C"
12436 #endif
12437 char log2 ();
12438 int
12439 main ()
12440 {
12441 return log2 ();
12442 ;
12443 return 0;
12444 }
12445 _ACEOF
12446 if ac_fn_c_try_link "$LINENO"; then :
12447 ac_cv_lib_m_log2=yes
12448 else
12449 ac_cv_lib_m_log2=no
12450 fi
12451 rm -f core conftest.err conftest.$ac_objext \
12452 conftest$ac_exeext conftest.$ac_ext
12453 LIBS=$ac_check_lib_save_LIBS
12454 fi
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12456 $as_echo "$ac_cv_lib_m_log2" >&6; }
12457 if test "x$ac_cv_lib_m_log2" = xyes; then :
12458 cat >>confdefs.h <<_ACEOF
12459 #define HAVE_LIBM 1
12460 _ACEOF
12461
12462 LIBS="-lm $LIBS"
12463
12464 fi
12465
12466
12467
12468
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12470 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12471 # Check whether --enable-maintainer-mode was given.
12472 if test "${enable_maintainer_mode+set}" = set; then :
12473 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12474 else
12475 USE_MAINTAINER_MODE=no
12476 fi
12477
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12479 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12480 if test $USE_MAINTAINER_MODE = yes; then
12481 MAINTAINER_MODE_TRUE=
12482 MAINTAINER_MODE_FALSE='#'
12483 else
12484 MAINTAINER_MODE_TRUE='#'
12485 MAINTAINER_MODE_FALSE=
12486 fi
12487
12488 MAINT=$MAINTAINER_MODE_TRUE
12489
12490
12491 am__api_version='1.15'
12492
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12494 $as_echo_n "checking whether build environment is sane... " >&6; }
12495 # Reject unsafe characters in $srcdir or the absolute working directory
12496 # name. Accept space and tab only in the latter.
12497 am_lf='
12498 '
12499 case `pwd` in
12500 *[\\\"\#\$\&\'\`$am_lf]*)
12501 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12502 esac
12503 case $srcdir in
12504 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12505 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12506 esac
12507
12508 # Do 'set' in a subshell so we don't clobber the current shell's
12509 # arguments. Must try -L first in case configure is actually a
12510 # symlink; some systems play weird games with the mod time of symlinks
12511 # (eg FreeBSD returns the mod time of the symlink's containing
12512 # directory).
12513 if (
12514 am_has_slept=no
12515 for am_try in 1 2; do
12516 echo "timestamp, slept: $am_has_slept" > conftest.file
12517 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12518 if test "$*" = "X"; then
12519 # -L didn't work.
12520 set X `ls -t "$srcdir/configure" conftest.file`
12521 fi
12522 if test "$*" != "X $srcdir/configure conftest.file" \
12523 && test "$*" != "X conftest.file $srcdir/configure"; then
12524
12525 # If neither matched, then we have a broken ls. This can happen
12526 # if, for instance, CONFIG_SHELL is bash and it inherits a
12527 # broken ls alias from the environment. This has actually
12528 # happened. Such a system could not be considered "sane".
12529 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
12530 alias in your environment" "$LINENO" 5
12531 fi
12532 if test "$2" = conftest.file || test $am_try -eq 2; then
12533 break
12534 fi
12535 # Just in case.
12536 sleep 1
12537 am_has_slept=yes
12538 done
12539 test "$2" = conftest.file
12540 )
12541 then
12542 # Ok.
12543 :
12544 else
12545 as_fn_error $? "newly created file is older than distributed files!
12546 Check your system clock" "$LINENO" 5
12547 fi
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12549 $as_echo "yes" >&6; }
12550 # If we didn't sleep, we still need to ensure time stamps of config.status and
12551 # generated files are strictly newer.
12552 am_sleep_pid=
12553 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12554 ( sleep 1 ) &
12555 am_sleep_pid=$!
12556 fi
12557
12558 rm -f conftest.file
12559
12560 if test x"${MISSING+set}" != xset; then
12561 case $am_aux_dir in
12562 *\ * | *\ *)
12563 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
12564 *)
12565 MISSING="\${SHELL} $am_aux_dir/missing" ;;
12566 esac
12567 fi
12568 # Use eval to expand $SHELL
12569 if eval "$MISSING --is-lightweight"; then
12570 am_missing_run="$MISSING "
12571 else
12572 am_missing_run=
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12574 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12575 fi
12576
12577 if test x"${install_sh+set}" != xset; then
12578 case $am_aux_dir in
12579 *\ * | *\ *)
12580 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12581 *)
12582 install_sh="\${SHELL} $am_aux_dir/install-sh"
12583 esac
12584 fi
12585
12586 # Installed binaries are usually stripped using 'strip' when the user
12587 # run "make install-strip". However 'strip' might not be the right
12588 # tool to use in cross-compilation environments, therefore Automake
12589 # will honor the 'STRIP' environment variable to overrule this program.
12590 if test "$cross_compiling" != no; then
12591 if test -n "$ac_tool_prefix"; then
12592 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12593 set dummy ${ac_tool_prefix}strip; ac_word=$2
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595 $as_echo_n "checking for $ac_word... " >&6; }
12596 if ${ac_cv_prog_STRIP+:} false; then :
12597 $as_echo_n "(cached) " >&6
12598 else
12599 if test -n "$STRIP"; then
12600 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12601 else
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603 for as_dir in $PATH
12604 do
12605 IFS=$as_save_IFS
12606 test -z "$as_dir" && as_dir=.
12607 for ac_exec_ext in '' $ac_executable_extensions; do
12608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12609 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12611 break 2
12612 fi
12613 done
12614 done
12615 IFS=$as_save_IFS
12616
12617 fi
12618 fi
12619 STRIP=$ac_cv_prog_STRIP
12620 if test -n "$STRIP"; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12622 $as_echo "$STRIP" >&6; }
12623 else
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12626 fi
12627
12628
12629 fi
12630 if test -z "$ac_cv_prog_STRIP"; then
12631 ac_ct_STRIP=$STRIP
12632 # Extract the first word of "strip", so it can be a program name with args.
12633 set dummy strip; ac_word=$2
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635 $as_echo_n "checking for $ac_word... " >&6; }
12636 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12637 $as_echo_n "(cached) " >&6
12638 else
12639 if test -n "$ac_ct_STRIP"; then
12640 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12641 else
12642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12643 for as_dir in $PATH
12644 do
12645 IFS=$as_save_IFS
12646 test -z "$as_dir" && as_dir=.
12647 for ac_exec_ext in '' $ac_executable_extensions; do
12648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12649 ac_cv_prog_ac_ct_STRIP="strip"
12650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12651 break 2
12652 fi
12653 done
12654 done
12655 IFS=$as_save_IFS
12656
12657 fi
12658 fi
12659 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12660 if test -n "$ac_ct_STRIP"; then
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12662 $as_echo "$ac_ct_STRIP" >&6; }
12663 else
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665 $as_echo "no" >&6; }
12666 fi
12667
12668 if test "x$ac_ct_STRIP" = x; then
12669 STRIP=":"
12670 else
12671 case $cross_compiling:$ac_tool_warned in
12672 yes:)
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12675 ac_tool_warned=yes ;;
12676 esac
12677 STRIP=$ac_ct_STRIP
12678 fi
12679 else
12680 STRIP="$ac_cv_prog_STRIP"
12681 fi
12682
12683 fi
12684 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12685
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12687 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12688 if test -z "$MKDIR_P"; then
12689 if ${ac_cv_path_mkdir+:} false; then :
12690 $as_echo_n "(cached) " >&6
12691 else
12692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12694 do
12695 IFS=$as_save_IFS
12696 test -z "$as_dir" && as_dir=.
12697 for ac_prog in mkdir gmkdir; do
12698 for ac_exec_ext in '' $ac_executable_extensions; do
12699 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12700 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12701 'mkdir (GNU coreutils) '* | \
12702 'mkdir (coreutils) '* | \
12703 'mkdir (fileutils) '4.1*)
12704 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12705 break 3;;
12706 esac
12707 done
12708 done
12709 done
12710 IFS=$as_save_IFS
12711
12712 fi
12713
12714 test -d ./--version && rmdir ./--version
12715 if test "${ac_cv_path_mkdir+set}" = set; then
12716 MKDIR_P="$ac_cv_path_mkdir -p"
12717 else
12718 # As a last resort, use the slow shell script. Don't cache a
12719 # value for MKDIR_P within a source directory, because that will
12720 # break other packages using the cache if that directory is
12721 # removed, or if the value is a relative name.
12722 MKDIR_P="$ac_install_sh -d"
12723 fi
12724 fi
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12726 $as_echo "$MKDIR_P" >&6; }
12727
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12729 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12730 set x ${MAKE-make}
12731 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12732 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 cat >conftest.make <<\_ACEOF
12736 SHELL = /bin/sh
12737 all:
12738 @echo '@@@%%%=$(MAKE)=@@@%%%'
12739 _ACEOF
12740 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12741 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12742 *@@@%%%=?*=@@@%%%*)
12743 eval ac_cv_prog_make_${ac_make}_set=yes;;
12744 *)
12745 eval ac_cv_prog_make_${ac_make}_set=no;;
12746 esac
12747 rm -f conftest.make
12748 fi
12749 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12751 $as_echo "yes" >&6; }
12752 SET_MAKE=
12753 else
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755 $as_echo "no" >&6; }
12756 SET_MAKE="MAKE=${MAKE-make}"
12757 fi
12758
12759 rm -rf .tst 2>/dev/null
12760 mkdir .tst 2>/dev/null
12761 if test -d .tst; then
12762 am__leading_dot=.
12763 else
12764 am__leading_dot=_
12765 fi
12766 rmdir .tst 2>/dev/null
12767
12768 DEPDIR="${am__leading_dot}deps"
12769
12770 ac_config_commands="$ac_config_commands depfiles"
12771
12772
12773 am_make=${MAKE-make}
12774 cat > confinc << 'END'
12775 am__doit:
12776 @echo this is the am__doit target
12777 .PHONY: am__doit
12778 END
12779 # If we don't find an include directive, just comment out the code.
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
12781 $as_echo_n "checking for style of include used by $am_make... " >&6; }
12782 am__include="#"
12783 am__quote=
12784 _am_result=none
12785 # First try GNU make style include.
12786 echo "include confinc" > confmf
12787 # Ignore all kinds of additional output from 'make'.
12788 case `$am_make -s -f confmf 2> /dev/null` in #(
12789 *the\ am__doit\ target*)
12790 am__include=include
12791 am__quote=
12792 _am_result=GNU
12793 ;;
12794 esac
12795 # Now try BSD make style include.
12796 if test "$am__include" = "#"; then
12797 echo '.include "confinc"' > confmf
12798 case `$am_make -s -f confmf 2> /dev/null` in #(
12799 *the\ am__doit\ target*)
12800 am__include=.include
12801 am__quote="\""
12802 _am_result=BSD
12803 ;;
12804 esac
12805 fi
12806
12807
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
12809 $as_echo "$_am_result" >&6; }
12810 rm -f confinc confmf
12811
12812 # Check whether --enable-dependency-tracking was given.
12813 if test "${enable_dependency_tracking+set}" = set; then :
12814 enableval=$enable_dependency_tracking;
12815 fi
12816
12817 if test "x$enable_dependency_tracking" != xno; then
12818 am_depcomp="$ac_aux_dir/depcomp"
12819 AMDEPBACKSLASH='\'
12820 am__nodep='_no'
12821 fi
12822 if test "x$enable_dependency_tracking" != xno; then
12823 AMDEP_TRUE=
12824 AMDEP_FALSE='#'
12825 else
12826 AMDEP_TRUE='#'
12827 AMDEP_FALSE=
12828 fi
12829
12830
12831 # Check whether --enable-silent-rules was given.
12832 if test "${enable_silent_rules+set}" = set; then :
12833 enableval=$enable_silent_rules;
12834 fi
12835
12836 case $enable_silent_rules in # (((
12837 yes) AM_DEFAULT_VERBOSITY=0;;
12838 no) AM_DEFAULT_VERBOSITY=1;;
12839 *) AM_DEFAULT_VERBOSITY=1;;
12840 esac
12841 am_make=${MAKE-make}
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12843 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12844 if ${am_cv_make_support_nested_variables+:} false; then :
12845 $as_echo_n "(cached) " >&6
12846 else
12847 if $as_echo 'TRUE=$(BAR$(V))
12848 BAR0=false
12849 BAR1=true
12850 V=1
12851 am__doit:
12852 @$(TRUE)
12853 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12854 am_cv_make_support_nested_variables=yes
12855 else
12856 am_cv_make_support_nested_variables=no
12857 fi
12858 fi
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12860 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12861 if test $am_cv_make_support_nested_variables = yes; then
12862 AM_V='$(V)'
12863 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12864 else
12865 AM_V=$AM_DEFAULT_VERBOSITY
12866 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12867 fi
12868 AM_BACKSLASH='\'
12869
12870 if test "`cd $srcdir && pwd`" != "`pwd`"; then
12871 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12872 # is not polluted with repeated "-I."
12873 am__isrc=' -I$(srcdir)'
12874 # test to see if srcdir already configured
12875 if test -f $srcdir/config.status; then
12876 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12877 fi
12878 fi
12879
12880 # test whether we have cygpath
12881 if test -z "$CYGPATH_W"; then
12882 if (cygpath --version) >/dev/null 2>/dev/null; then
12883 CYGPATH_W='cygpath -w'
12884 else
12885 CYGPATH_W=echo
12886 fi
12887 fi
12888
12889
12890 # Define the identity of the package.
12891 PACKAGE='sim'
12892 VERSION='0'
12893
12894
12895 cat >>confdefs.h <<_ACEOF
12896 #define PACKAGE "$PACKAGE"
12897 _ACEOF
12898
12899
12900 cat >>confdefs.h <<_ACEOF
12901 #define VERSION "$VERSION"
12902 _ACEOF
12903
12904 # Some tools Automake needs.
12905
12906 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
12907
12908
12909 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12910
12911
12912 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
12913
12914
12915 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12916
12917
12918 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12919
12920 # For better backward compatibility. To be removed once Automake 1.9.x
12921 # dies out for good. For more background, see:
12922 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
12923 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
12924 mkdir_p='$(MKDIR_P)'
12925
12926 # We need awk for the "check" target (and possibly the TAP driver). The
12927 # system "awk" is bad on some platforms.
12928 # Always define AMTAR for backward compatibility. Yes, it's still used
12929 # in the wild :-( We should find a proper way to deprecate it ...
12930 AMTAR='$${TAR-tar}'
12931
12932
12933 # We'll loop over all known methods to create a tar archive until one works.
12934 _am_tools='gnutar pax cpio none'
12935
12936 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
12937
12938
12939
12940
12941
12942 depcc="$CC" am_compiler_list=
12943
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12945 $as_echo_n "checking dependency style of $depcc... " >&6; }
12946 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12947 $as_echo_n "(cached) " >&6
12948 else
12949 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12950 # We make a subdir and do the tests there. Otherwise we can end up
12951 # making bogus files that we don't know about and never remove. For
12952 # instance it was reported that on HP-UX the gcc test will end up
12953 # making a dummy file named 'D' -- because '-MD' means "put the output
12954 # in D".
12955 rm -rf conftest.dir
12956 mkdir conftest.dir
12957 # Copy depcomp to subdir because otherwise we won't find it if we're
12958 # using a relative directory.
12959 cp "$am_depcomp" conftest.dir
12960 cd conftest.dir
12961 # We will build objects and dependencies in a subdirectory because
12962 # it helps to detect inapplicable dependency modes. For instance
12963 # both Tru64's cc and ICC support -MD to output dependencies as a
12964 # side effect of compilation, but ICC will put the dependencies in
12965 # the current directory while Tru64 will put them in the object
12966 # directory.
12967 mkdir sub
12968
12969 am_cv_CC_dependencies_compiler_type=none
12970 if test "$am_compiler_list" = ""; then
12971 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12972 fi
12973 am__universal=false
12974 case " $depcc " in #(
12975 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12976 esac
12977
12978 for depmode in $am_compiler_list; do
12979 # Setup a source with many dependencies, because some compilers
12980 # like to wrap large dependency lists on column 80 (with \), and
12981 # we should not choose a depcomp mode which is confused by this.
12982 #
12983 # We need to recreate these files for each test, as the compiler may
12984 # overwrite some of them when testing with obscure command lines.
12985 # This happens at least with the AIX C compiler.
12986 : > sub/conftest.c
12987 for i in 1 2 3 4 5 6; do
12988 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12989 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12990 # Solaris 10 /bin/sh.
12991 echo '/* dummy */' > sub/conftst$i.h
12992 done
12993 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12994
12995 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12996 # mode. It turns out that the SunPro C++ compiler does not properly
12997 # handle '-M -o', and we need to detect this. Also, some Intel
12998 # versions had trouble with output in subdirs.
12999 am__obj=sub/conftest.${OBJEXT-o}
13000 am__minus_obj="-o $am__obj"
13001 case $depmode in
13002 gcc)
13003 # This depmode causes a compiler race in universal mode.
13004 test "$am__universal" = false || continue
13005 ;;
13006 nosideeffect)
13007 # After this tag, mechanisms are not by side-effect, so they'll
13008 # only be used when explicitly requested.
13009 if test "x$enable_dependency_tracking" = xyes; then
13010 continue
13011 else
13012 break
13013 fi
13014 ;;
13015 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13016 # This compiler won't grok '-c -o', but also, the minuso test has
13017 # not run yet. These depmodes are late enough in the game, and
13018 # so weak that their functioning should not be impacted.
13019 am__obj=conftest.${OBJEXT-o}
13020 am__minus_obj=
13021 ;;
13022 none) break ;;
13023 esac
13024 if depmode=$depmode \
13025 source=sub/conftest.c object=$am__obj \
13026 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13027 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13028 >/dev/null 2>conftest.err &&
13029 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13030 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13031 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13032 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13033 # icc doesn't choke on unknown options, it will just issue warnings
13034 # or remarks (even with -Werror). So we grep stderr for any message
13035 # that says an option was ignored or not supported.
13036 # When given -MP, icc 7.0 and 7.1 complain thusly:
13037 # icc: Command line warning: ignoring option '-M'; no argument required
13038 # The diagnosis changed in icc 8.0:
13039 # icc: Command line remark: option '-MP' not supported
13040 if (grep 'ignoring option' conftest.err ||
13041 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13042 am_cv_CC_dependencies_compiler_type=$depmode
13043 break
13044 fi
13045 fi
13046 done
13047
13048 cd ..
13049 rm -rf conftest.dir
13050 else
13051 am_cv_CC_dependencies_compiler_type=none
13052 fi
13053
13054 fi
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13056 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13057 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13058
13059 if
13060 test "x$enable_dependency_tracking" != xno \
13061 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13062 am__fastdepCC_TRUE=
13063 am__fastdepCC_FALSE='#'
13064 else
13065 am__fastdepCC_TRUE='#'
13066 am__fastdepCC_FALSE=
13067 fi
13068
13069
13070
13071 # POSIX will say in a future version that running "rm -f" with no argument
13072 # is OK; and we want to be able to make that assumption in our Makefile
13073 # recipes. So use an aggressive probe to check that the usage we want is
13074 # actually supported "in the wild" to an acceptable degree.
13075 # See automake bug#10828.
13076 # To make any issue more visible, cause the running configure to be aborted
13077 # by default if the 'rm' program in use doesn't match our expectations; the
13078 # user can still override this though.
13079 if rm -f && rm -fr && rm -rf; then : OK; else
13080 cat >&2 <<'END'
13081 Oops!
13082
13083 Your 'rm' program seems unable to run without file operands specified
13084 on the command line, even when the '-f' option is present. This is contrary
13085 to the behaviour of most rm programs out there, and not conforming with
13086 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13087
13088 Please tell bug-automake@gnu.org about your system, including the value
13089 of your $PATH and any error possibly output before this message. This
13090 can help us improve future automake versions.
13091
13092 END
13093 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13094 echo 'Configuration will proceed anyway, since you have set the' >&2
13095 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13096 echo >&2
13097 else
13098 cat >&2 <<'END'
13099 Aborting the configuration process, to ensure you take notice of the issue.
13100
13101 You can download and install GNU coreutils to get an 'rm' implementation
13102 that behaves properly: <http://www.gnu.org/software/coreutils/>.
13103
13104 If you want to complete the configuration process using your problematic
13105 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13106 to "yes", and re-run configure.
13107
13108 END
13109 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
13110 fi
13111 fi
13112
13113 # Check whether --enable-silent-rules was given.
13114 if test "${enable_silent_rules+set}" = set; then :
13115 enableval=$enable_silent_rules;
13116 fi
13117
13118 case $enable_silent_rules in # (((
13119 yes) AM_DEFAULT_VERBOSITY=0;;
13120 no) AM_DEFAULT_VERBOSITY=1;;
13121 *) AM_DEFAULT_VERBOSITY=0;;
13122 esac
13123 am_make=${MAKE-make}
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13125 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13126 if ${am_cv_make_support_nested_variables+:} false; then :
13127 $as_echo_n "(cached) " >&6
13128 else
13129 if $as_echo 'TRUE=$(BAR$(V))
13130 BAR0=false
13131 BAR1=true
13132 V=1
13133 am__doit:
13134 @$(TRUE)
13135 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13136 am_cv_make_support_nested_variables=yes
13137 else
13138 am_cv_make_support_nested_variables=no
13139 fi
13140 fi
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13142 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13143 if test $am_cv_make_support_nested_variables = yes; then
13144 AM_V='$(V)'
13145 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13146 else
13147 AM_V=$AM_DEFAULT_VERBOSITY
13148 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13149 fi
13150 AM_BACKSLASH='\'
13151
13152
13153 # If a cpu ever has more than one simulator to choose from, use
13154 # --enable-sim=... to choose.
13155 # Check whether --enable-sim was given.
13156 if test "${enable_sim+set}" = set; then :
13157 enableval=$enable_sim; case "${enableval}" in
13158 yes | no) ;;
13159 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
13160 esac
13161 fi
13162
13163
13164 # Check whether --enable-example-sims was given.
13165 if test "${enable_example_sims+set}" = set; then :
13166 enableval=$enable_example_sims;
13167 fi
13168
13169
13170 # Check whether --enable-targets was given.
13171 if test "${enable_targets+set}" = set; then :
13172 enableval=$enable_targets; case "${enableval}" in
13173 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
13174 ;;
13175 no) enable_targets= ;;
13176 *) enable_targets=$enableval ;;
13177 esac
13178 fi
13179
13180
13181 SIM_PRIMARY_TARGET=
13182
13183
13184
13185
13186
13187 if test "${enable_sim}" != no; then
13188 sim_igen=no
13189 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
13190 do
13191 case "${targ}" in
13192 all|aarch64*-*-*)
13193 if test "${targ}" = "${target}"; then
13194 SIM_PRIMARY_TARGET=aarch64
13195 fi
13196
13197
13198 subdirs="$subdirs aarch64"
13199
13200 ac_config_commands="$ac_config_commands depdir-aarch64"
13201
13202
13203
13204 ;;
13205 esac
13206
13207 case "${targ}" in
13208 all|arm*-*-*)
13209 if test "${targ}" = "${target}"; then
13210 SIM_PRIMARY_TARGET=arm
13211 fi
13212 subdirs="$subdirs arm"
13213
13214 ac_config_commands="$ac_config_commands depdir-arm"
13215
13216
13217
13218 ;;
13219 esac
13220
13221 case "${targ}" in
13222 all|avr*-*-*)
13223 if test "${targ}" = "${target}"; then
13224 SIM_PRIMARY_TARGET=avr
13225 fi
13226 subdirs="$subdirs avr"
13227
13228 ac_config_commands="$ac_config_commands depdir-avr"
13229
13230
13231
13232 ;;
13233 esac
13234
13235 case "${targ}" in
13236 all|bfin-*-*)
13237 if test "${targ}" = "${target}"; then
13238 SIM_PRIMARY_TARGET=bfin
13239 fi
13240 subdirs="$subdirs bfin"
13241
13242 ac_config_commands="$ac_config_commands depdir-bfin"
13243
13244
13245
13246 ;;
13247 esac
13248
13249 case "${targ}" in
13250 all|bpf-*-*)
13251 if test "${targ}" = "${target}"; then
13252 SIM_PRIMARY_TARGET=bpf
13253 fi
13254 subdirs="$subdirs bpf"
13255
13256 ac_config_commands="$ac_config_commands depdir-bpf"
13257
13258
13259
13260 ;;
13261 esac
13262
13263 case "${targ}" in
13264 all|cr16*-*-*)
13265 if test "${targ}" = "${target}"; then
13266 SIM_PRIMARY_TARGET=cr16
13267 fi
13268 subdirs="$subdirs cr16"
13269
13270 ac_config_commands="$ac_config_commands depdir-cr16"
13271
13272
13273
13274 ;;
13275 esac
13276
13277 case "${targ}" in
13278 all|cris-*-* | crisv32-*-*)
13279 if test "${targ}" = "${target}"; then
13280 SIM_PRIMARY_TARGET=cris
13281 fi
13282 subdirs="$subdirs cris"
13283
13284 ac_config_commands="$ac_config_commands depdir-cris"
13285
13286
13287
13288 ;;
13289 esac
13290
13291 case "${targ}" in
13292 all|d10v-*-*)
13293 if test "${targ}" = "${target}"; then
13294 SIM_PRIMARY_TARGET=d10v
13295 fi
13296 subdirs="$subdirs d10v"
13297
13298 ac_config_commands="$ac_config_commands depdir-d10v"
13299
13300
13301
13302 ;;
13303 esac
13304
13305 case "${targ}" in
13306 all|frv-*-*)
13307 if test "${targ}" = "${target}"; then
13308 SIM_PRIMARY_TARGET=frv
13309 fi
13310 subdirs="$subdirs frv"
13311
13312 ac_config_commands="$ac_config_commands depdir-frv"
13313
13314
13315
13316 ;;
13317 esac
13318
13319 case "${targ}" in
13320 all|h8300*-*-*)
13321 if test "${targ}" = "${target}"; then
13322 SIM_PRIMARY_TARGET=h8300
13323 fi
13324 subdirs="$subdirs h8300"
13325
13326 ac_config_commands="$ac_config_commands depdir-h8300"
13327
13328
13329
13330 ;;
13331 esac
13332
13333 case "${targ}" in
13334 all|iq2000-*-*)
13335 if test "${targ}" = "${target}"; then
13336 SIM_PRIMARY_TARGET=iq2000
13337 fi
13338 subdirs="$subdirs iq2000"
13339
13340 ac_config_commands="$ac_config_commands depdir-iq2000"
13341
13342
13343
13344 ;;
13345 esac
13346
13347 case "${targ}" in
13348 all|lm32-*-*)
13349 if test "${targ}" = "${target}"; then
13350 SIM_PRIMARY_TARGET=lm32
13351 fi
13352 subdirs="$subdirs lm32"
13353
13354 ac_config_commands="$ac_config_commands depdir-lm32"
13355
13356
13357
13358 ;;
13359 esac
13360
13361 case "${targ}" in
13362 all|m32c-*-*)
13363 if test "${targ}" = "${target}"; then
13364 SIM_PRIMARY_TARGET=m32c
13365 fi
13366 subdirs="$subdirs m32c"
13367
13368 ac_config_commands="$ac_config_commands depdir-m32c"
13369
13370
13371
13372 ;;
13373 esac
13374
13375 case "${targ}" in
13376 all|m32r-*-*)
13377 if test "${targ}" = "${target}"; then
13378 SIM_PRIMARY_TARGET=m32r
13379 fi
13380 subdirs="$subdirs m32r"
13381
13382 ac_config_commands="$ac_config_commands depdir-m32r"
13383
13384
13385
13386 ;;
13387 esac
13388
13389 case "${targ}" in
13390 all|m68hc11-*-*|m6811-*-*)
13391 if test "${targ}" = "${target}"; then
13392 SIM_PRIMARY_TARGET=m68hc11
13393 fi
13394 subdirs="$subdirs m68hc11"
13395
13396 ac_config_commands="$ac_config_commands depdir-m68hc11"
13397
13398
13399
13400 ;;
13401 esac
13402
13403 case "${targ}" in
13404 all|mcore-*-*)
13405 if test "${targ}" = "${target}"; then
13406 SIM_PRIMARY_TARGET=mcore
13407 fi
13408 subdirs="$subdirs mcore"
13409
13410 ac_config_commands="$ac_config_commands depdir-mcore"
13411
13412
13413
13414 ;;
13415 esac
13416
13417 case "${targ}" in
13418 all|microblaze-*-*)
13419 if test "${targ}" = "${target}"; then
13420 SIM_PRIMARY_TARGET=microblaze
13421 fi
13422 subdirs="$subdirs microblaze"
13423
13424 ac_config_commands="$ac_config_commands depdir-microblaze"
13425
13426
13427
13428 ;;
13429 esac
13430
13431 case "${targ}" in
13432 all|mips*-*-*)
13433 if test "${targ}" = "${target}"; then
13434 SIM_PRIMARY_TARGET=mips
13435 fi
13436 subdirs="$subdirs mips"
13437
13438 ac_config_commands="$ac_config_commands depdir-mips"
13439
13440
13441 sim_igen=yes
13442 ;;
13443 esac
13444
13445 case "${targ}" in
13446 all|mn10300*-*-*)
13447 if test "${targ}" = "${target}"; then
13448 SIM_PRIMARY_TARGET=mn10300
13449 fi
13450 subdirs="$subdirs mn10300"
13451
13452 ac_config_commands="$ac_config_commands depdir-mn10300"
13453
13454
13455 sim_igen=yes
13456 ;;
13457 esac
13458
13459 case "${targ}" in
13460 all|moxie-*-*)
13461 if test "${targ}" = "${target}"; then
13462 SIM_PRIMARY_TARGET=moxie
13463 fi
13464 subdirs="$subdirs moxie"
13465
13466 ac_config_commands="$ac_config_commands depdir-moxie"
13467
13468
13469
13470 ;;
13471 esac
13472
13473 case "${targ}" in
13474 all|msp430*-*-*)
13475 if test "${targ}" = "${target}"; then
13476 SIM_PRIMARY_TARGET=msp430
13477 fi
13478 subdirs="$subdirs msp430"
13479
13480 ac_config_commands="$ac_config_commands depdir-msp430"
13481
13482
13483
13484 ;;
13485 esac
13486
13487 case "${targ}" in
13488 all|or1k-*-* | or1knd-*-*)
13489 if test "${targ}" = "${target}"; then
13490 SIM_PRIMARY_TARGET=or1k
13491 fi
13492 subdirs="$subdirs or1k"
13493
13494 ac_config_commands="$ac_config_commands depdir-or1k"
13495
13496
13497
13498 ;;
13499 esac
13500
13501 case "${targ}" in
13502 all|pru*-*-*)
13503 if test "${targ}" = "${target}"; then
13504 SIM_PRIMARY_TARGET=pru
13505 fi
13506 subdirs="$subdirs pru"
13507
13508 ac_config_commands="$ac_config_commands depdir-pru"
13509
13510
13511
13512 ;;
13513 esac
13514
13515 case "${targ}" in
13516 all|riscv*-*-*)
13517 if test "${targ}" = "${target}"; then
13518 SIM_PRIMARY_TARGET=riscv
13519 fi
13520 subdirs="$subdirs riscv"
13521
13522 ac_config_commands="$ac_config_commands depdir-riscv"
13523
13524
13525
13526 ;;
13527 esac
13528
13529 case "${targ}" in
13530 all|rl78-*-*)
13531 if test "${targ}" = "${target}"; then
13532 SIM_PRIMARY_TARGET=rl78
13533 fi
13534 subdirs="$subdirs rl78"
13535
13536 ac_config_commands="$ac_config_commands depdir-rl78"
13537
13538
13539
13540 ;;
13541 esac
13542
13543 case "${targ}" in
13544 all|rx-*-*)
13545 if test "${targ}" = "${target}"; then
13546 SIM_PRIMARY_TARGET=rx
13547 fi
13548 subdirs="$subdirs rx"
13549
13550 ac_config_commands="$ac_config_commands depdir-rx"
13551
13552
13553
13554 ;;
13555 esac
13556
13557 case "${targ}" in
13558 all|sh*-*-*)
13559 if test "${targ}" = "${target}"; then
13560 SIM_PRIMARY_TARGET=sh
13561 fi
13562 subdirs="$subdirs sh"
13563
13564 ac_config_commands="$ac_config_commands depdir-sh"
13565
13566
13567
13568 ;;
13569 esac
13570
13571 case "${targ}" in
13572 all|sparc-*-rtems*|sparc-*-elf*)
13573 if test "${targ}" = "${target}"; then
13574 SIM_PRIMARY_TARGET=erc32
13575 fi
13576 subdirs="$subdirs erc32"
13577
13578 ac_config_commands="$ac_config_commands depdir-erc32"
13579
13580
13581
13582 ;;
13583 esac
13584
13585 case "${targ}" in
13586 all|powerpc*-*-*)
13587 if test "${targ}" = "${target}"; then
13588 SIM_PRIMARY_TARGET=ppc
13589 fi
13590 subdirs="$subdirs ppc"
13591
13592 ac_config_commands="$ac_config_commands depdir-ppc"
13593
13594
13595
13596 ;;
13597 esac
13598
13599 case "${targ}" in
13600 all|ft32-*-*)
13601 if test "${targ}" = "${target}"; then
13602 SIM_PRIMARY_TARGET=ft32
13603 fi
13604 subdirs="$subdirs ft32"
13605
13606 ac_config_commands="$ac_config_commands depdir-ft32"
13607
13608
13609
13610 ;;
13611 esac
13612
13613 case "${targ}" in
13614 all|v850*-*-*)
13615 if test "${targ}" = "${target}"; then
13616 SIM_PRIMARY_TARGET=v850
13617 fi
13618 subdirs="$subdirs v850"
13619
13620 ac_config_commands="$ac_config_commands depdir-v850"
13621
13622
13623 sim_igen=yes
13624 ;;
13625 esac
13626
13627 done
13628
13629 if test "x${enable_example_sims}" = xyes; then
13630 subdirs="$subdirs example-synacor"
13631
13632 ac_config_commands="$ac_config_commands depdir-example-synacor"
13633
13634
13635 fi
13636 fi
13637 if test "$sim_igen" = "yes"; then
13638 SIM_ENABLE_IGEN_TRUE=
13639 SIM_ENABLE_IGEN_FALSE='#'
13640 else
13641 SIM_ENABLE_IGEN_TRUE='#'
13642 SIM_ENABLE_IGEN_FALSE=
13643 fi
13644
13645
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
13647 $as_echo_n "checking whether to force sim alignment... " >&6; }
13648 sim_alignment=
13649 # Check whether --enable-sim-alignment was given.
13650 if test "${enable_sim_alignment+set}" = set; then :
13651 enableval=$enable_sim_alignment; case "${enableval}" in
13652 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
13653 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
13654 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
13655 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
13656 esac
13657 fi
13658
13659 cat >>confdefs.h <<_ACEOF
13660 #define WITH_ALIGNMENT ${sim_alignment:-0}
13661 _ACEOF
13662
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13664 $as_echo "${sim_alignment:-no}" >&6; }
13665
13666
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
13668 $as_echo_n "checking whether to enable sim asserts... " >&6; }
13669 sim_assert="1"
13670 # Check whether --enable-sim-assert was given.
13671 if test "${enable_sim_assert+set}" = set; then :
13672 enableval=$enable_sim_assert; case "${enableval}" in
13673 yes) sim_assert="1";;
13674 no) sim_assert="0";;
13675 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
13676 esac
13677 fi
13678
13679 cat >>confdefs.h <<_ACEOF
13680 #define WITH_ASSERT $sim_assert
13681 _ACEOF
13682
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
13684 $as_echo "$sim_assert" >&6; }
13685
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
13687 $as_echo_n "checking for sim debug setting... " >&6; }
13688 sim_debug="0"
13689 # Check whether --enable-sim-debug was given.
13690 if test "${enable_sim_debug+set}" = set; then :
13691 enableval=$enable_sim_debug; case "${enableval}" in
13692 yes) sim_debug="7";;
13693 no) sim_debug="0";;
13694 *) sim_debug="($enableval)";;
13695 esac
13696 fi
13697 if test "$sim_debug" != "0"; then
13698
13699 cat >>confdefs.h <<_ACEOF
13700 #define DEBUG $sim_debug
13701 _ACEOF
13702
13703 fi
13704
13705 cat >>confdefs.h <<_ACEOF
13706 #define WITH_DEBUG $sim_debug
13707 _ACEOF
13708
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
13710 $as_echo "$sim_debug" >&6; }
13711
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
13713 $as_echo_n "checking whether to force sim endianness... " >&6; }
13714 sim_endian=
13715 # Check whether --enable-sim-endian was given.
13716 if test "${enable_sim_endian+set}" = set; then :
13717 enableval=$enable_sim_endian; case "${enableval}" in
13718 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
13719 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
13720 yes | no) ;;
13721 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
13722 esac
13723 fi
13724
13725 cat >>confdefs.h <<_ACEOF
13726 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
13727 _ACEOF
13728
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13730 $as_echo "${sim_alignment:-no}" >&6; }
13731
13732
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
13734 $as_echo_n "checking default sim environment setting... " >&6; }
13735 sim_environment="ALL_ENVIRONMENT"
13736 # Check whether --enable-sim-environment was given.
13737 if test "${enable_sim_environment+set}" = set; then :
13738 enableval=$enable_sim_environment; case "${enableval}" in
13739 all | ALL) sim_environment="ALL_ENVIRONMENT";;
13740 user | USER) sim_environment="USER_ENVIRONMENT";;
13741 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
13742 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
13743 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
13744 esac
13745 fi
13746
13747 cat >>confdefs.h <<_ACEOF
13748 #define WITH_ENVIRONMENT $sim_environment
13749 _ACEOF
13750
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
13752 $as_echo "$sim_environment" >&6; }
13753
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
13755 $as_echo_n "checking for sim profile settings... " >&6; }
13756 profile="1"
13757 sim_profile="-1"
13758 # Check whether --enable-sim-profile was given.
13759 if test "${enable_sim_profile+set}" = set; then :
13760 enableval=$enable_sim_profile; case "${enableval}" in
13761 yes) profile="1" sim_profile="-1";;
13762 no) profile="0" sim_profile="0";;
13763 [-0-9]*)
13764 profile="(${enableval})" sim_profile="(${enableval})";;
13765 [a-z]*)
13766 profile="1"
13767 sim_profile=""
13768 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13769 if test x"$sim_profile" = x; then
13770 sim_profile="(PROFILE_$x"
13771 else
13772 sim_profile="${sim_profile}|PROFILE_$x"
13773 fi
13774 done
13775 sim_profile="$sim_profile)" ;;
13776 esac
13777 fi
13778
13779 cat >>confdefs.h <<_ACEOF
13780 #define PROFILE $profile
13781 _ACEOF
13782
13783
13784 cat >>confdefs.h <<_ACEOF
13785 #define WITH_PROFILE $sim_profile
13786 _ACEOF
13787
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
13789 $as_echo "$sim_profile" >&6; }
13790
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
13792 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
13793 sim_stdio="0"
13794 # Check whether --enable-sim-stdio was given.
13795 if test "${enable_sim_stdio+set}" = set; then :
13796 enableval=$enable_sim_stdio; case "${enableval}" in
13797 yes) sim_stdio="DO_USE_STDIO";;
13798 no) sim_stdio="DONT_USE_STDIO";;
13799 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
13800 esac
13801 fi
13802
13803 cat >>confdefs.h <<_ACEOF
13804 #define WITH_STDIO $sim_stdio
13805 _ACEOF
13806
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
13808 $as_echo "$sim_stdio" >&6; }
13809
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
13811 $as_echo_n "checking for sim trace settings... " >&6; }
13812 sim_trace="~TRACE_debug"
13813 # Check whether --enable-sim-trace was given.
13814 if test "${enable_sim_trace+set}" = set; then :
13815 enableval=$enable_sim_trace; case "${enableval}" in
13816 yes) sim_trace="-1";;
13817 no) sim_trace="0";;
13818 [-0-9]*)
13819 sim_trace="'(${enableval})'";;
13820 [[:lower:]]*)
13821 sim_trace=""
13822 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13823 if test x"$sim_trace" = x; then
13824 sim_trace="(TRACE_$x"
13825 else
13826 sim_trace="${sim_trace}|TRACE_$x"
13827 fi
13828 done
13829 sim_trace="$sim_trace)" ;;
13830 esac
13831 fi
13832
13833 cat >>confdefs.h <<_ACEOF
13834 #define WITH_TRACE $sim_trace
13835 _ACEOF
13836
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
13838 $as_echo "$sim_trace" >&6; }
13839
13840
13841 # Check whether --enable-werror was given.
13842 if test "${enable_werror+set}" = set; then :
13843 enableval=$enable_werror; case "${enableval}" in
13844 yes | y) ERROR_ON_WARNING="yes" ;;
13845 no | n) ERROR_ON_WARNING="no" ;;
13846 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13847 esac
13848 fi
13849
13850
13851 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13852 ERROR_ON_WARNING=yes
13853 fi
13854
13855 WERROR_CFLAGS=""
13856 if test "${ERROR_ON_WARNING}" = yes ; then
13857 WERROR_CFLAGS="-Werror"
13858 fi
13859
13860 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13861 -Wpointer-sign \
13862 -Wno-unused -Wunused-value -Wunused-function \
13863 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
13864 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
13865 -Wold-style-declaration -Wold-style-definition"
13866
13867 # Enable -Wno-format by default when using gcc on mingw since many
13868 # GCC versions complain about %I64.
13869 case "${host}" in
13870 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
13871 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
13872 esac
13873
13874 # Check whether --enable-build-warnings was given.
13875 if test "${enable_build_warnings+set}" = set; then :
13876 enableval=$enable_build_warnings; case "${enableval}" in
13877 yes) ;;
13878 no) build_warnings="-w";;
13879 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13880 build_warnings="${build_warnings} ${t}";;
13881 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13882 build_warnings="${t} ${build_warnings}";;
13883 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13884 esac
13885 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13886 echo "Setting compiler warning flags = $build_warnings" 6>&1
13887 fi
13888 fi
13889 # Check whether --enable-sim-build-warnings was given.
13890 if test "${enable_sim_build_warnings+set}" = set; then :
13891 enableval=$enable_sim_build_warnings; case "${enableval}" in
13892 yes) ;;
13893 no) build_warnings="-w";;
13894 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13895 build_warnings="${build_warnings} ${t}";;
13896 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13897 build_warnings="${t} ${build_warnings}";;
13898 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13899 esac
13900 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13901 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13902 fi
13903 fi
13904 WARN_CFLAGS=""
13905 if test "x${build_warnings}" != x -a "x$GCC" = xyes
13906 then
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13908 $as_echo_n "checking compiler warning flags... " >&6; }
13909 # Separate out the -Werror flag as some files just cannot be
13910 # compiled with it enabled.
13911 for w in ${build_warnings}; do
13912 case $w in
13913 -Werr*) WERROR_CFLAGS=-Werror ;;
13914 *) # Check that GCC accepts it
13915 saved_CFLAGS="$CFLAGS"
13916 CFLAGS="$CFLAGS -Werror $w"
13917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13918 /* end confdefs.h. */
13919
13920 int
13921 main ()
13922 {
13923
13924 ;
13925 return 0;
13926 }
13927 _ACEOF
13928 if ac_fn_c_try_compile "$LINENO"; then :
13929 WARN_CFLAGS="${WARN_CFLAGS} $w"
13930 fi
13931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13932 CFLAGS="$saved_CFLAGS"
13933 esac
13934 done
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13936 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13937 fi
13938
13939
13940 ac_config_files="$ac_config_files arch-subdir.mk Makefile"
13941
13942 cat >confcache <<\_ACEOF
13943 # This file is a shell script that caches the results of configure
13944 # tests run on this system so they can be shared between configure
13945 # scripts and configure runs, see configure's option --config-cache.
13946 # It is not useful on other systems. If it contains results you don't
13947 # want to keep, you may remove or edit it.
13948 #
13949 # config.status only pays attention to the cache file if you give it
13950 # the --recheck option to rerun configure.
13951 #
13952 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13954 # following values.
13955
13956 _ACEOF
13957
13958 # The following way of writing the cache mishandles newlines in values,
13959 # but we know of no workaround that is simple, portable, and efficient.
13960 # So, we kill variables containing newlines.
13961 # Ultrix sh set writes to stderr and can't be redirected directly,
13962 # and sets the high bit in the cache file unless we assign to the vars.
13963 (
13964 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13965 eval ac_val=\$$ac_var
13966 case $ac_val in #(
13967 *${as_nl}*)
13968 case $ac_var in #(
13969 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13970 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13971 esac
13972 case $ac_var in #(
13973 _ | IFS | as_nl) ;; #(
13974 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13975 *) { eval $ac_var=; unset $ac_var;} ;;
13976 esac ;;
13977 esac
13978 done
13979
13980 (set) 2>&1 |
13981 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13982 *${as_nl}ac_space=\ *)
13983 # `set' does not quote correctly, so add quotes: double-quote
13984 # substitution turns \\\\ into \\, and sed turns \\ into \.
13985 sed -n \
13986 "s/'/'\\\\''/g;
13987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13988 ;; #(
13989 *)
13990 # `set' quotes correctly as required by POSIX, so do not add quotes.
13991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13992 ;;
13993 esac |
13994 sort
13995 ) |
13996 sed '
13997 /^ac_cv_env_/b end
13998 t clear
13999 :clear
14000 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14001 t end
14002 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14003 :end' >>confcache
14004 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14005 if test -w "$cache_file"; then
14006 if test "x$cache_file" != "x/dev/null"; then
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14008 $as_echo "$as_me: updating cache $cache_file" >&6;}
14009 if test ! -f "$cache_file" || test -h "$cache_file"; then
14010 cat confcache >"$cache_file"
14011 else
14012 case $cache_file in #(
14013 */* | ?:*)
14014 mv -f confcache "$cache_file"$$ &&
14015 mv -f "$cache_file"$$ "$cache_file" ;; #(
14016 *)
14017 mv -f confcache "$cache_file" ;;
14018 esac
14019 fi
14020 fi
14021 else
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14023 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14024 fi
14025 fi
14026 rm -f confcache
14027
14028 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14029 # Let make expand exec_prefix.
14030 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14031
14032 DEFS=-DHAVE_CONFIG_H
14033
14034 ac_libobjs=
14035 ac_ltlibobjs=
14036 U=
14037 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14038 # 1. Remove the extension, and $U if already installed.
14039 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14040 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14041 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14042 # will be set to the directory where LIBOBJS objects are built.
14043 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14044 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14045 done
14046 LIBOBJS=$ac_libobjs
14047
14048 LTLIBOBJS=$ac_ltlibobjs
14049
14050
14051
14052 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
14053 as_fn_error $? "conditional \"PLUGINS\" was never defined.
14054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14055 fi
14056 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14057 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14059 fi
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14061 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14062 if test -n "$am_sleep_pid"; then
14063 # Hide warnings about reused PIDs.
14064 wait $am_sleep_pid 2>/dev/null
14065 fi
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14067 $as_echo "done" >&6; }
14068 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14069 as_fn_error $? "conditional \"AMDEP\" was never defined.
14070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14071 fi
14072 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14073 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14075 fi
14076 if test -n "$EXEEXT"; then
14077 am__EXEEXT_TRUE=
14078 am__EXEEXT_FALSE='#'
14079 else
14080 am__EXEEXT_TRUE='#'
14081 am__EXEEXT_FALSE=
14082 fi
14083
14084 if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
14085 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
14086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14087 fi
14088
14089 : "${CONFIG_STATUS=./config.status}"
14090 ac_write_fail=0
14091 ac_clean_files_save=$ac_clean_files
14092 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14094 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14095 as_write_fail=0
14096 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14097 #! $SHELL
14098 # Generated by $as_me.
14099 # Run this file to recreate the current configuration.
14100 # Compiler output produced by configure, useful for debugging
14101 # configure, is in config.log if it exists.
14102
14103 debug=false
14104 ac_cs_recheck=false
14105 ac_cs_silent=false
14106
14107 SHELL=\${CONFIG_SHELL-$SHELL}
14108 export SHELL
14109 _ASEOF
14110 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14111 ## -------------------- ##
14112 ## M4sh Initialization. ##
14113 ## -------------------- ##
14114
14115 # Be more Bourne compatible
14116 DUALCASE=1; export DUALCASE # for MKS sh
14117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14118 emulate sh
14119 NULLCMD=:
14120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14121 # is contrary to our usage. Disable this feature.
14122 alias -g '${1+"$@"}'='"$@"'
14123 setopt NO_GLOB_SUBST
14124 else
14125 case `(set -o) 2>/dev/null` in #(
14126 *posix*) :
14127 set -o posix ;; #(
14128 *) :
14129 ;;
14130 esac
14131 fi
14132
14133
14134 as_nl='
14135 '
14136 export as_nl
14137 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14138 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14141 # Prefer a ksh shell builtin over an external printf program on Solaris,
14142 # but without wasting forks for bash or zsh.
14143 if test -z "$BASH_VERSION$ZSH_VERSION" \
14144 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14145 as_echo='print -r --'
14146 as_echo_n='print -rn --'
14147 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14148 as_echo='printf %s\n'
14149 as_echo_n='printf %s'
14150 else
14151 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14152 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14153 as_echo_n='/usr/ucb/echo -n'
14154 else
14155 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14156 as_echo_n_body='eval
14157 arg=$1;
14158 case $arg in #(
14159 *"$as_nl"*)
14160 expr "X$arg" : "X\\(.*\\)$as_nl";
14161 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14162 esac;
14163 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14164 '
14165 export as_echo_n_body
14166 as_echo_n='sh -c $as_echo_n_body as_echo'
14167 fi
14168 export as_echo_body
14169 as_echo='sh -c $as_echo_body as_echo'
14170 fi
14171
14172 # The user is always right.
14173 if test "${PATH_SEPARATOR+set}" != set; then
14174 PATH_SEPARATOR=:
14175 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14176 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14177 PATH_SEPARATOR=';'
14178 }
14179 fi
14180
14181
14182 # IFS
14183 # We need space, tab and new line, in precisely that order. Quoting is
14184 # there to prevent editors from complaining about space-tab.
14185 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14186 # splitting by setting IFS to empty value.)
14187 IFS=" "" $as_nl"
14188
14189 # Find who we are. Look in the path if we contain no directory separator.
14190 as_myself=
14191 case $0 in #((
14192 *[\\/]* ) as_myself=$0 ;;
14193 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194 for as_dir in $PATH
14195 do
14196 IFS=$as_save_IFS
14197 test -z "$as_dir" && as_dir=.
14198 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14199 done
14200 IFS=$as_save_IFS
14201
14202 ;;
14203 esac
14204 # We did not find ourselves, most probably we were run as `sh COMMAND'
14205 # in which case we are not to be found in the path.
14206 if test "x$as_myself" = x; then
14207 as_myself=$0
14208 fi
14209 if test ! -f "$as_myself"; then
14210 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14211 exit 1
14212 fi
14213
14214 # Unset variables that we do not need and which cause bugs (e.g. in
14215 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14216 # suppresses any "Segmentation fault" message there. '((' could
14217 # trigger a bug in pdksh 5.2.14.
14218 for as_var in BASH_ENV ENV MAIL MAILPATH
14219 do eval test x\${$as_var+set} = xset \
14220 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14221 done
14222 PS1='$ '
14223 PS2='> '
14224 PS4='+ '
14225
14226 # NLS nuisances.
14227 LC_ALL=C
14228 export LC_ALL
14229 LANGUAGE=C
14230 export LANGUAGE
14231
14232 # CDPATH.
14233 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14234
14235
14236 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14237 # ----------------------------------------
14238 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14239 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14240 # script with STATUS, using 1 if that was 0.
14241 as_fn_error ()
14242 {
14243 as_status=$1; test $as_status -eq 0 && as_status=1
14244 if test "$4"; then
14245 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14246 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14247 fi
14248 $as_echo "$as_me: error: $2" >&2
14249 as_fn_exit $as_status
14250 } # as_fn_error
14251
14252
14253 # as_fn_set_status STATUS
14254 # -----------------------
14255 # Set $? to STATUS, without forking.
14256 as_fn_set_status ()
14257 {
14258 return $1
14259 } # as_fn_set_status
14260
14261 # as_fn_exit STATUS
14262 # -----------------
14263 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14264 as_fn_exit ()
14265 {
14266 set +e
14267 as_fn_set_status $1
14268 exit $1
14269 } # as_fn_exit
14270
14271 # as_fn_unset VAR
14272 # ---------------
14273 # Portably unset VAR.
14274 as_fn_unset ()
14275 {
14276 { eval $1=; unset $1;}
14277 }
14278 as_unset=as_fn_unset
14279 # as_fn_append VAR VALUE
14280 # ----------------------
14281 # Append the text in VALUE to the end of the definition contained in VAR. Take
14282 # advantage of any shell optimizations that allow amortized linear growth over
14283 # repeated appends, instead of the typical quadratic growth present in naive
14284 # implementations.
14285 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14286 eval 'as_fn_append ()
14287 {
14288 eval $1+=\$2
14289 }'
14290 else
14291 as_fn_append ()
14292 {
14293 eval $1=\$$1\$2
14294 }
14295 fi # as_fn_append
14296
14297 # as_fn_arith ARG...
14298 # ------------------
14299 # Perform arithmetic evaluation on the ARGs, and store the result in the
14300 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14301 # must be portable across $(()) and expr.
14302 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14303 eval 'as_fn_arith ()
14304 {
14305 as_val=$(( $* ))
14306 }'
14307 else
14308 as_fn_arith ()
14309 {
14310 as_val=`expr "$@" || test $? -eq 1`
14311 }
14312 fi # as_fn_arith
14313
14314
14315 if expr a : '\(a\)' >/dev/null 2>&1 &&
14316 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14317 as_expr=expr
14318 else
14319 as_expr=false
14320 fi
14321
14322 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14323 as_basename=basename
14324 else
14325 as_basename=false
14326 fi
14327
14328 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14329 as_dirname=dirname
14330 else
14331 as_dirname=false
14332 fi
14333
14334 as_me=`$as_basename -- "$0" ||
14335 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14336 X"$0" : 'X\(//\)$' \| \
14337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14338 $as_echo X/"$0" |
14339 sed '/^.*\/\([^/][^/]*\)\/*$/{
14340 s//\1/
14341 q
14342 }
14343 /^X\/\(\/\/\)$/{
14344 s//\1/
14345 q
14346 }
14347 /^X\/\(\/\).*/{
14348 s//\1/
14349 q
14350 }
14351 s/.*/./; q'`
14352
14353 # Avoid depending upon Character Ranges.
14354 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14355 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14356 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14357 as_cr_digits='0123456789'
14358 as_cr_alnum=$as_cr_Letters$as_cr_digits
14359
14360 ECHO_C= ECHO_N= ECHO_T=
14361 case `echo -n x` in #(((((
14362 -n*)
14363 case `echo 'xy\c'` in
14364 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14365 xy) ECHO_C='\c';;
14366 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14367 ECHO_T=' ';;
14368 esac;;
14369 *)
14370 ECHO_N='-n';;
14371 esac
14372
14373 rm -f conf$$ conf$$.exe conf$$.file
14374 if test -d conf$$.dir; then
14375 rm -f conf$$.dir/conf$$.file
14376 else
14377 rm -f conf$$.dir
14378 mkdir conf$$.dir 2>/dev/null
14379 fi
14380 if (echo >conf$$.file) 2>/dev/null; then
14381 if ln -s conf$$.file conf$$ 2>/dev/null; then
14382 as_ln_s='ln -s'
14383 # ... but there are two gotchas:
14384 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14385 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14386 # In both cases, we have to default to `cp -pR'.
14387 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14388 as_ln_s='cp -pR'
14389 elif ln conf$$.file conf$$ 2>/dev/null; then
14390 as_ln_s=ln
14391 else
14392 as_ln_s='cp -pR'
14393 fi
14394 else
14395 as_ln_s='cp -pR'
14396 fi
14397 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14398 rmdir conf$$.dir 2>/dev/null
14399
14400
14401 # as_fn_mkdir_p
14402 # -------------
14403 # Create "$as_dir" as a directory, including parents if necessary.
14404 as_fn_mkdir_p ()
14405 {
14406
14407 case $as_dir in #(
14408 -*) as_dir=./$as_dir;;
14409 esac
14410 test -d "$as_dir" || eval $as_mkdir_p || {
14411 as_dirs=
14412 while :; do
14413 case $as_dir in #(
14414 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14415 *) as_qdir=$as_dir;;
14416 esac
14417 as_dirs="'$as_qdir' $as_dirs"
14418 as_dir=`$as_dirname -- "$as_dir" ||
14419 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14420 X"$as_dir" : 'X\(//\)[^/]' \| \
14421 X"$as_dir" : 'X\(//\)$' \| \
14422 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14423 $as_echo X"$as_dir" |
14424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14425 s//\1/
14426 q
14427 }
14428 /^X\(\/\/\)[^/].*/{
14429 s//\1/
14430 q
14431 }
14432 /^X\(\/\/\)$/{
14433 s//\1/
14434 q
14435 }
14436 /^X\(\/\).*/{
14437 s//\1/
14438 q
14439 }
14440 s/.*/./; q'`
14441 test -d "$as_dir" && break
14442 done
14443 test -z "$as_dirs" || eval "mkdir $as_dirs"
14444 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14445
14446
14447 } # as_fn_mkdir_p
14448 if mkdir -p . 2>/dev/null; then
14449 as_mkdir_p='mkdir -p "$as_dir"'
14450 else
14451 test -d ./-p && rmdir ./-p
14452 as_mkdir_p=false
14453 fi
14454
14455
14456 # as_fn_executable_p FILE
14457 # -----------------------
14458 # Test if FILE is an executable regular file.
14459 as_fn_executable_p ()
14460 {
14461 test -f "$1" && test -x "$1"
14462 } # as_fn_executable_p
14463 as_test_x='test -x'
14464 as_executable_p=as_fn_executable_p
14465
14466 # Sed expression to map a string onto a valid CPP name.
14467 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14468
14469 # Sed expression to map a string onto a valid variable name.
14470 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14471
14472
14473 exec 6>&1
14474 ## ----------------------------------- ##
14475 ## Main body of $CONFIG_STATUS script. ##
14476 ## ----------------------------------- ##
14477 _ASEOF
14478 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14479
14480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14481 # Save the log message, to keep $0 and so on meaningful, and to
14482 # report actual input values of CONFIG_FILES etc. instead of their
14483 # values after options handling.
14484 ac_log="
14485 This file was extended by sim $as_me 0, which was
14486 generated by GNU Autoconf 2.69. Invocation command line was
14487
14488 CONFIG_FILES = $CONFIG_FILES
14489 CONFIG_HEADERS = $CONFIG_HEADERS
14490 CONFIG_LINKS = $CONFIG_LINKS
14491 CONFIG_COMMANDS = $CONFIG_COMMANDS
14492 $ $0 $@
14493
14494 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14495 "
14496
14497 _ACEOF
14498
14499 case $ac_config_files in *"
14500 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14501 esac
14502
14503 case $ac_config_headers in *"
14504 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14505 esac
14506
14507
14508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14509 # Files that config.status was made for.
14510 config_files="$ac_config_files"
14511 config_headers="$ac_config_headers"
14512 config_commands="$ac_config_commands"
14513
14514 _ACEOF
14515
14516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14517 ac_cs_usage="\
14518 \`$as_me' instantiates files and other configuration actions
14519 from templates according to the current configuration. Unless the files
14520 and actions are specified as TAGs, all are instantiated by default.
14521
14522 Usage: $0 [OPTION]... [TAG]...
14523
14524 -h, --help print this help, then exit
14525 -V, --version print version number and configuration settings, then exit
14526 --config print configuration, then exit
14527 -q, --quiet, --silent
14528 do not print progress messages
14529 -d, --debug don't remove temporary files
14530 --recheck update $as_me by reconfiguring in the same conditions
14531 --file=FILE[:TEMPLATE]
14532 instantiate the configuration file FILE
14533 --header=FILE[:TEMPLATE]
14534 instantiate the configuration header FILE
14535
14536 Configuration files:
14537 $config_files
14538
14539 Configuration headers:
14540 $config_headers
14541
14542 Configuration commands:
14543 $config_commands
14544
14545 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
14546 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
14547
14548 _ACEOF
14549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14550 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14551 ac_cs_version="\\
14552 sim config.status 0
14553 configured by $0, generated by GNU Autoconf 2.69,
14554 with options \\"\$ac_cs_config\\"
14555
14556 Copyright (C) 2012 Free Software Foundation, Inc.
14557 This config.status script is free software; the Free Software Foundation
14558 gives unlimited permission to copy, distribute and modify it."
14559
14560 ac_pwd='$ac_pwd'
14561 srcdir='$srcdir'
14562 INSTALL='$INSTALL'
14563 MKDIR_P='$MKDIR_P'
14564 AWK='$AWK'
14565 test -n "\$AWK" || AWK=awk
14566 _ACEOF
14567
14568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14569 # The default lists apply if the user does not specify any file.
14570 ac_need_defaults=:
14571 while test $# != 0
14572 do
14573 case $1 in
14574 --*=?*)
14575 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14576 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14577 ac_shift=:
14578 ;;
14579 --*=)
14580 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14581 ac_optarg=
14582 ac_shift=:
14583 ;;
14584 *)
14585 ac_option=$1
14586 ac_optarg=$2
14587 ac_shift=shift
14588 ;;
14589 esac
14590
14591 case $ac_option in
14592 # Handling of the options.
14593 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14594 ac_cs_recheck=: ;;
14595 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14596 $as_echo "$ac_cs_version"; exit ;;
14597 --config | --confi | --conf | --con | --co | --c )
14598 $as_echo "$ac_cs_config"; exit ;;
14599 --debug | --debu | --deb | --de | --d | -d )
14600 debug=: ;;
14601 --file | --fil | --fi | --f )
14602 $ac_shift
14603 case $ac_optarg in
14604 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14605 '') as_fn_error $? "missing file argument" ;;
14606 esac
14607 as_fn_append CONFIG_FILES " '$ac_optarg'"
14608 ac_need_defaults=false;;
14609 --header | --heade | --head | --hea )
14610 $ac_shift
14611 case $ac_optarg in
14612 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14613 esac
14614 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14615 ac_need_defaults=false;;
14616 --he | --h)
14617 # Conflict between --help and --header
14618 as_fn_error $? "ambiguous option: \`$1'
14619 Try \`$0 --help' for more information.";;
14620 --help | --hel | -h )
14621 $as_echo "$ac_cs_usage"; exit ;;
14622 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14623 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14624 ac_cs_silent=: ;;
14625
14626 # This is an error.
14627 -*) as_fn_error $? "unrecognized option: \`$1'
14628 Try \`$0 --help' for more information." ;;
14629
14630 *) as_fn_append ac_config_targets " $1"
14631 ac_need_defaults=false ;;
14632
14633 esac
14634 shift
14635 done
14636
14637 ac_configure_extra_args=
14638
14639 if $ac_cs_silent; then
14640 exec 6>/dev/null
14641 ac_configure_extra_args="$ac_configure_extra_args --silent"
14642 fi
14643
14644 _ACEOF
14645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14646 if \$ac_cs_recheck; then
14647 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14648 shift
14649 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14650 CONFIG_SHELL='$SHELL'
14651 export CONFIG_SHELL
14652 exec "\$@"
14653 fi
14654
14655 _ACEOF
14656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14657 exec 5>>config.log
14658 {
14659 echo
14660 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14661 ## Running $as_me. ##
14662 _ASBOX
14663 $as_echo "$ac_log"
14664 } >&5
14665
14666 _ACEOF
14667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14668 #
14669 # INIT-COMMANDS
14670 #
14671
14672
14673 # The HP-UX ksh and POSIX shell print the target directory to stdout
14674 # if CDPATH is set.
14675 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14676
14677 sed_quote_subst='$sed_quote_subst'
14678 double_quote_subst='$double_quote_subst'
14679 delay_variable_subst='$delay_variable_subst'
14680 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14681 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14682 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14683 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14684 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14685 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14686 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14687 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14688 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14689 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14690 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14691 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14692 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14693 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14694 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14695 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14696 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14697 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14698 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14699 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14700 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14701 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14702 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14703 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14704 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14705 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14706 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14707 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14708 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14709 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14710 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14711 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14712 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14713 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14714 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14715 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14716 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14717 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14718 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14719 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14720 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14721 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14722 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14723 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14724 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14725 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14726 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14727 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14728 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"`'
14729 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14730 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14731 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14732 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14733 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14734 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14735 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14736 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14737 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14738 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14739 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14740 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14741 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14742 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14743 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14744 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14745 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14746 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14747 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14748 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14749 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14750 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14751 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14752 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14753 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14754 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14755 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14756 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14757 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14758 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14759 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14760 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14761 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14762 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14763 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14764 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14765 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14766 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14767 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14768 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14769 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14770 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14771 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14772 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14773 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14774 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14775 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14776 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14777 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14778 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14779 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14780 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14781 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14782 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14783 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14784 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14785 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14786 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14787 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14788 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14789 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14790 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14791 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14792 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14793 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14794 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14795 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14796 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14797 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14798 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14799 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14800
14801 LTCC='$LTCC'
14802 LTCFLAGS='$LTCFLAGS'
14803 compiler='$compiler_DEFAULT'
14804
14805 # A function that is used when there is no print builtin or printf.
14806 func_fallback_echo ()
14807 {
14808 eval 'cat <<_LTECHO_EOF
14809 \$1
14810 _LTECHO_EOF'
14811 }
14812
14813 # Quote evaled strings.
14814 for var in SHELL \
14815 ECHO \
14816 SED \
14817 GREP \
14818 EGREP \
14819 FGREP \
14820 LD \
14821 NM \
14822 LN_S \
14823 lt_SP2NL \
14824 lt_NL2SP \
14825 reload_flag \
14826 OBJDUMP \
14827 deplibs_check_method \
14828 file_magic_cmd \
14829 AR \
14830 AR_FLAGS \
14831 STRIP \
14832 RANLIB \
14833 CC \
14834 CFLAGS \
14835 compiler \
14836 lt_cv_sys_global_symbol_pipe \
14837 lt_cv_sys_global_symbol_to_cdecl \
14838 lt_cv_sys_global_symbol_to_c_name_address \
14839 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14840 lt_prog_compiler_no_builtin_flag \
14841 lt_prog_compiler_wl \
14842 lt_prog_compiler_pic \
14843 lt_prog_compiler_static \
14844 lt_cv_prog_compiler_c_o \
14845 need_locks \
14846 DSYMUTIL \
14847 NMEDIT \
14848 LIPO \
14849 OTOOL \
14850 OTOOL64 \
14851 shrext_cmds \
14852 export_dynamic_flag_spec \
14853 whole_archive_flag_spec \
14854 compiler_needs_object \
14855 with_gnu_ld \
14856 allow_undefined_flag \
14857 no_undefined_flag \
14858 hardcode_libdir_flag_spec \
14859 hardcode_libdir_flag_spec_ld \
14860 hardcode_libdir_separator \
14861 fix_srcfile_path \
14862 exclude_expsyms \
14863 include_expsyms \
14864 file_list_spec \
14865 variables_saved_for_relink \
14866 libname_spec \
14867 library_names_spec \
14868 soname_spec \
14869 install_override_mode \
14870 finish_eval \
14871 old_striplib \
14872 striplib; do
14873 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14874 *[\\\\\\\`\\"\\\$]*)
14875 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14876 ;;
14877 *)
14878 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14879 ;;
14880 esac
14881 done
14882
14883 # Double-quote double-evaled strings.
14884 for var in reload_cmds \
14885 old_postinstall_cmds \
14886 old_postuninstall_cmds \
14887 old_archive_cmds \
14888 extract_expsyms_cmds \
14889 old_archive_from_new_cmds \
14890 old_archive_from_expsyms_cmds \
14891 archive_cmds \
14892 archive_expsym_cmds \
14893 module_cmds \
14894 module_expsym_cmds \
14895 export_symbols_cmds \
14896 prelink_cmds \
14897 postinstall_cmds \
14898 postuninstall_cmds \
14899 finish_cmds \
14900 sys_lib_search_path_spec \
14901 sys_lib_dlsearch_path_spec; do
14902 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14903 *[\\\\\\\`\\"\\\$]*)
14904 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14905 ;;
14906 *)
14907 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14908 ;;
14909 esac
14910 done
14911
14912 ac_aux_dir='$ac_aux_dir'
14913 xsi_shell='$xsi_shell'
14914 lt_shell_append='$lt_shell_append'
14915
14916 # See if we are running on zsh, and set the options which allow our
14917 # commands through without removal of \ escapes INIT.
14918 if test -n "\${ZSH_VERSION+set}" ; then
14919 setopt NO_GLOB_SUBST
14920 fi
14921
14922
14923 PACKAGE='$PACKAGE'
14924 VERSION='$VERSION'
14925 TIMESTAMP='$TIMESTAMP'
14926 RM='$RM'
14927 ofile='$ofile'
14928
14929
14930
14931 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14932 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14933 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14934 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14935 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14936 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14937 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14938 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14939 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14940 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14941 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14942 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14943 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14944 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14945 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14946 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14947 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14948 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14949 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14950 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14951 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14952 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14953 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14954 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14955 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14956 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14957 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14958 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14959 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14960 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14961 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14962 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14963 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14964
14965 _ACEOF
14966
14967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14968
14969 # Handling of arguments.
14970 for ac_config_target in $ac_config_targets
14971 do
14972 case $ac_config_target in
14973 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14974 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14975 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14976 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
14977 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
14978 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
14979 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
14980 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
14981 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
14982 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
14983 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
14984 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
14985 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
14986 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
14987 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
14988 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
14989 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
14990 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
14991 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
14992 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
14993 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
14994 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
14995 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
14996 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
14997 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
14998 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
14999 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
15000 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
15001 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
15002 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
15003 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
15004 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
15005 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
15006 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
15007 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
15008 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
15009 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15010
15011 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15012 esac
15013 done
15014
15015
15016 # If the user did not use the arguments to specify the items to instantiate,
15017 # then the envvar interface is used. Set only those that are not.
15018 # We use the long form for the default assignment because of an extremely
15019 # bizarre bug on SunOS 4.1.3.
15020 if $ac_need_defaults; then
15021 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15022 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15023 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15024 fi
15025
15026 # Have a temporary directory for convenience. Make it in the build tree
15027 # simply because there is no reason against having it here, and in addition,
15028 # creating and moving files from /tmp can sometimes cause problems.
15029 # Hook for its removal unless debugging.
15030 # Note that there is a small window in which the directory will not be cleaned:
15031 # after its creation but before its name has been assigned to `$tmp'.
15032 $debug ||
15033 {
15034 tmp= ac_tmp=
15035 trap 'exit_status=$?
15036 : "${ac_tmp:=$tmp}"
15037 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15038 ' 0
15039 trap 'as_fn_exit 1' 1 2 13 15
15040 }
15041 # Create a (secure) tmp directory for tmp files.
15042
15043 {
15044 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15045 test -d "$tmp"
15046 } ||
15047 {
15048 tmp=./conf$$-$RANDOM
15049 (umask 077 && mkdir "$tmp")
15050 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15051 ac_tmp=$tmp
15052
15053 # Set up the scripts for CONFIG_FILES section.
15054 # No need to generate them if there are no CONFIG_FILES.
15055 # This happens for instance with `./config.status config.h'.
15056 if test -n "$CONFIG_FILES"; then
15057
15058
15059 ac_cr=`echo X | tr X '\015'`
15060 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15061 # But we know of no other shell where ac_cr would be empty at this
15062 # point, so we can use a bashism as a fallback.
15063 if test "x$ac_cr" = x; then
15064 eval ac_cr=\$\'\\r\'
15065 fi
15066 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15067 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15068 ac_cs_awk_cr='\\r'
15069 else
15070 ac_cs_awk_cr=$ac_cr
15071 fi
15072
15073 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15074 _ACEOF
15075
15076
15077 {
15078 echo "cat >conf$$subs.awk <<_ACEOF" &&
15079 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15080 echo "_ACEOF"
15081 } >conf$$subs.sh ||
15082 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15083 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15084 ac_delim='%!_!# '
15085 for ac_last_try in false false false false false :; do
15086 . ./conf$$subs.sh ||
15087 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15088
15089 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15090 if test $ac_delim_n = $ac_delim_num; then
15091 break
15092 elif $ac_last_try; then
15093 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15094 else
15095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15096 fi
15097 done
15098 rm -f conf$$subs.sh
15099
15100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15101 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15102 _ACEOF
15103 sed -n '
15104 h
15105 s/^/S["/; s/!.*/"]=/
15106 p
15107 g
15108 s/^[^!]*!//
15109 :repl
15110 t repl
15111 s/'"$ac_delim"'$//
15112 t delim
15113 :nl
15114 h
15115 s/\(.\{148\}\)..*/\1/
15116 t more1
15117 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15118 p
15119 n
15120 b repl
15121 :more1
15122 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15123 p
15124 g
15125 s/.\{148\}//
15126 t nl
15127 :delim
15128 h
15129 s/\(.\{148\}\)..*/\1/
15130 t more2
15131 s/["\\]/\\&/g; s/^/"/; s/$/"/
15132 p
15133 b
15134 :more2
15135 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15136 p
15137 g
15138 s/.\{148\}//
15139 t delim
15140 ' <conf$$subs.awk | sed '
15141 /^[^""]/{
15142 N
15143 s/\n//
15144 }
15145 ' >>$CONFIG_STATUS || ac_write_fail=1
15146 rm -f conf$$subs.awk
15147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15148 _ACAWK
15149 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15150 for (key in S) S_is_set[key] = 1
15151 FS = "\a"
15152
15153 }
15154 {
15155 line = $ 0
15156 nfields = split(line, field, "@")
15157 substed = 0
15158 len = length(field[1])
15159 for (i = 2; i < nfields; i++) {
15160 key = field[i]
15161 keylen = length(key)
15162 if (S_is_set[key]) {
15163 value = S[key]
15164 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15165 len += length(value) + length(field[++i])
15166 substed = 1
15167 } else
15168 len += 1 + keylen
15169 }
15170
15171 print line
15172 }
15173
15174 _ACAWK
15175 _ACEOF
15176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15177 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15178 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15179 else
15180 cat
15181 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15182 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15183 _ACEOF
15184
15185 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15186 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15187 # trailing colons and then remove the whole line if VPATH becomes empty
15188 # (actually we leave an empty line to preserve line numbers).
15189 if test "x$srcdir" = x.; then
15190 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15191 h
15192 s///
15193 s/^/:/
15194 s/[ ]*$/:/
15195 s/:\$(srcdir):/:/g
15196 s/:\${srcdir}:/:/g
15197 s/:@srcdir@:/:/g
15198 s/^:*//
15199 s/:*$//
15200 x
15201 s/\(=[ ]*\).*/\1/
15202 G
15203 s/\n//
15204 s/^[^=]*=[ ]*$//
15205 }'
15206 fi
15207
15208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15209 fi # test -n "$CONFIG_FILES"
15210
15211 # Set up the scripts for CONFIG_HEADERS section.
15212 # No need to generate them if there are no CONFIG_HEADERS.
15213 # This happens for instance with `./config.status Makefile'.
15214 if test -n "$CONFIG_HEADERS"; then
15215 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15216 BEGIN {
15217 _ACEOF
15218
15219 # Transform confdefs.h into an awk script `defines.awk', embedded as
15220 # here-document in config.status, that substitutes the proper values into
15221 # config.h.in to produce config.h.
15222
15223 # Create a delimiter string that does not exist in confdefs.h, to ease
15224 # handling of long lines.
15225 ac_delim='%!_!# '
15226 for ac_last_try in false false :; do
15227 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15228 if test -z "$ac_tt"; then
15229 break
15230 elif $ac_last_try; then
15231 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15232 else
15233 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15234 fi
15235 done
15236
15237 # For the awk script, D is an array of macro values keyed by name,
15238 # likewise P contains macro parameters if any. Preserve backslash
15239 # newline sequences.
15240
15241 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15242 sed -n '
15243 s/.\{148\}/&'"$ac_delim"'/g
15244 t rset
15245 :rset
15246 s/^[ ]*#[ ]*define[ ][ ]*/ /
15247 t def
15248 d
15249 :def
15250 s/\\$//
15251 t bsnl
15252 s/["\\]/\\&/g
15253 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15254 D["\1"]=" \3"/p
15255 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15256 d
15257 :bsnl
15258 s/["\\]/\\&/g
15259 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15260 D["\1"]=" \3\\\\\\n"\\/p
15261 t cont
15262 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15263 t cont
15264 d
15265 :cont
15266 n
15267 s/.\{148\}/&'"$ac_delim"'/g
15268 t clear
15269 :clear
15270 s/\\$//
15271 t bsnlc
15272 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15273 d
15274 :bsnlc
15275 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15276 b cont
15277 ' <confdefs.h | sed '
15278 s/'"$ac_delim"'/"\\\
15279 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15280
15281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15282 for (key in D) D_is_set[key] = 1
15283 FS = "\a"
15284 }
15285 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15286 line = \$ 0
15287 split(line, arg, " ")
15288 if (arg[1] == "#") {
15289 defundef = arg[2]
15290 mac1 = arg[3]
15291 } else {
15292 defundef = substr(arg[1], 2)
15293 mac1 = arg[2]
15294 }
15295 split(mac1, mac2, "(") #)
15296 macro = mac2[1]
15297 prefix = substr(line, 1, index(line, defundef) - 1)
15298 if (D_is_set[macro]) {
15299 # Preserve the white space surrounding the "#".
15300 print prefix "define", macro P[macro] D[macro]
15301 next
15302 } else {
15303 # Replace #undef with comments. This is necessary, for example,
15304 # in the case of _POSIX_SOURCE, which is predefined and required
15305 # on some systems where configure will not decide to define it.
15306 if (defundef == "undef") {
15307 print "/*", prefix defundef, macro, "*/"
15308 next
15309 }
15310 }
15311 }
15312 { print }
15313 _ACAWK
15314 _ACEOF
15315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15316 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15317 fi # test -n "$CONFIG_HEADERS"
15318
15319
15320 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15321 shift
15322 for ac_tag
15323 do
15324 case $ac_tag in
15325 :[FHLC]) ac_mode=$ac_tag; continue;;
15326 esac
15327 case $ac_mode$ac_tag in
15328 :[FHL]*:*);;
15329 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15330 :[FH]-) ac_tag=-:-;;
15331 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15332 esac
15333 ac_save_IFS=$IFS
15334 IFS=:
15335 set x $ac_tag
15336 IFS=$ac_save_IFS
15337 shift
15338 ac_file=$1
15339 shift
15340
15341 case $ac_mode in
15342 :L) ac_source=$1;;
15343 :[FH])
15344 ac_file_inputs=
15345 for ac_f
15346 do
15347 case $ac_f in
15348 -) ac_f="$ac_tmp/stdin";;
15349 *) # Look for the file first in the build tree, then in the source tree
15350 # (if the path is not absolute). The absolute path cannot be DOS-style,
15351 # because $ac_f cannot contain `:'.
15352 test -f "$ac_f" ||
15353 case $ac_f in
15354 [\\/$]*) false;;
15355 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15356 esac ||
15357 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15358 esac
15359 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15360 as_fn_append ac_file_inputs " '$ac_f'"
15361 done
15362
15363 # Let's still pretend it is `configure' which instantiates (i.e., don't
15364 # use $as_me), people would be surprised to read:
15365 # /* config.h. Generated by config.status. */
15366 configure_input='Generated from '`
15367 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15368 `' by configure.'
15369 if test x"$ac_file" != x-; then
15370 configure_input="$ac_file. $configure_input"
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15372 $as_echo "$as_me: creating $ac_file" >&6;}
15373 fi
15374 # Neutralize special characters interpreted by sed in replacement strings.
15375 case $configure_input in #(
15376 *\&* | *\|* | *\\* )
15377 ac_sed_conf_input=`$as_echo "$configure_input" |
15378 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15379 *) ac_sed_conf_input=$configure_input;;
15380 esac
15381
15382 case $ac_tag in
15383 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15384 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15385 esac
15386 ;;
15387 esac
15388
15389 ac_dir=`$as_dirname -- "$ac_file" ||
15390 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15391 X"$ac_file" : 'X\(//\)[^/]' \| \
15392 X"$ac_file" : 'X\(//\)$' \| \
15393 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15394 $as_echo X"$ac_file" |
15395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15396 s//\1/
15397 q
15398 }
15399 /^X\(\/\/\)[^/].*/{
15400 s//\1/
15401 q
15402 }
15403 /^X\(\/\/\)$/{
15404 s//\1/
15405 q
15406 }
15407 /^X\(\/\).*/{
15408 s//\1/
15409 q
15410 }
15411 s/.*/./; q'`
15412 as_dir="$ac_dir"; as_fn_mkdir_p
15413 ac_builddir=.
15414
15415 case "$ac_dir" in
15416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15417 *)
15418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15419 # A ".." for each directory in $ac_dir_suffix.
15420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15421 case $ac_top_builddir_sub in
15422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15424 esac ;;
15425 esac
15426 ac_abs_top_builddir=$ac_pwd
15427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15428 # for backward compatibility:
15429 ac_top_builddir=$ac_top_build_prefix
15430
15431 case $srcdir in
15432 .) # We are building in place.
15433 ac_srcdir=.
15434 ac_top_srcdir=$ac_top_builddir_sub
15435 ac_abs_top_srcdir=$ac_pwd ;;
15436 [\\/]* | ?:[\\/]* ) # Absolute name.
15437 ac_srcdir=$srcdir$ac_dir_suffix;
15438 ac_top_srcdir=$srcdir
15439 ac_abs_top_srcdir=$srcdir ;;
15440 *) # Relative name.
15441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15442 ac_top_srcdir=$ac_top_build_prefix$srcdir
15443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15444 esac
15445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15446
15447
15448 case $ac_mode in
15449 :F)
15450 #
15451 # CONFIG_FILE
15452 #
15453
15454 case $INSTALL in
15455 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15456 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15457 esac
15458 ac_MKDIR_P=$MKDIR_P
15459 case $MKDIR_P in
15460 [\\/$]* | ?:[\\/]* ) ;;
15461 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15462 esac
15463 _ACEOF
15464
15465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15466 # If the template does not know about datarootdir, expand it.
15467 # FIXME: This hack should be removed a few years after 2.60.
15468 ac_datarootdir_hack=; ac_datarootdir_seen=
15469 ac_sed_dataroot='
15470 /datarootdir/ {
15471 p
15472 q
15473 }
15474 /@datadir@/p
15475 /@docdir@/p
15476 /@infodir@/p
15477 /@localedir@/p
15478 /@mandir@/p'
15479 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15480 *datarootdir*) ac_datarootdir_seen=yes;;
15481 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15483 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15484 _ACEOF
15485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15486 ac_datarootdir_hack='
15487 s&@datadir@&$datadir&g
15488 s&@docdir@&$docdir&g
15489 s&@infodir@&$infodir&g
15490 s&@localedir@&$localedir&g
15491 s&@mandir@&$mandir&g
15492 s&\\\${datarootdir}&$datarootdir&g' ;;
15493 esac
15494 _ACEOF
15495
15496 # Neutralize VPATH when `$srcdir' = `.'.
15497 # Shell code in configure.ac might set extrasub.
15498 # FIXME: do we really want to maintain this feature?
15499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15500 ac_sed_extra="$ac_vpsub
15501 $extrasub
15502 _ACEOF
15503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15504 :t
15505 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15506 s|@configure_input@|$ac_sed_conf_input|;t t
15507 s&@top_builddir@&$ac_top_builddir_sub&;t t
15508 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15509 s&@srcdir@&$ac_srcdir&;t t
15510 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15511 s&@top_srcdir@&$ac_top_srcdir&;t t
15512 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15513 s&@builddir@&$ac_builddir&;t t
15514 s&@abs_builddir@&$ac_abs_builddir&;t t
15515 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15516 s&@INSTALL@&$ac_INSTALL&;t t
15517 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15518 $ac_datarootdir_hack
15519 "
15520 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15521 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15522
15523 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15524 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15525 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15526 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15528 which seems to be undefined. Please make sure it is defined" >&5
15529 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15530 which seems to be undefined. Please make sure it is defined" >&2;}
15531
15532 rm -f "$ac_tmp/stdin"
15533 case $ac_file in
15534 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15535 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15536 esac \
15537 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15538 ;;
15539 :H)
15540 #
15541 # CONFIG_HEADER
15542 #
15543 if test x"$ac_file" != x-; then
15544 {
15545 $as_echo "/* $configure_input */" \
15546 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15547 } >"$ac_tmp/config.h" \
15548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15549 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15551 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15552 else
15553 rm -f "$ac_file"
15554 mv "$ac_tmp/config.h" "$ac_file" \
15555 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15556 fi
15557 else
15558 $as_echo "/* $configure_input */" \
15559 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15560 || as_fn_error $? "could not create -" "$LINENO" 5
15561 fi
15562 # Compute "$ac_file"'s index in $config_headers.
15563 _am_arg="$ac_file"
15564 _am_stamp_count=1
15565 for _am_header in $config_headers :; do
15566 case $_am_header in
15567 $_am_arg | $_am_arg:* )
15568 break ;;
15569 * )
15570 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15571 esac
15572 done
15573 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15574 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15575 X"$_am_arg" : 'X\(//\)[^/]' \| \
15576 X"$_am_arg" : 'X\(//\)$' \| \
15577 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15578 $as_echo X"$_am_arg" |
15579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15580 s//\1/
15581 q
15582 }
15583 /^X\(\/\/\)[^/].*/{
15584 s//\1/
15585 q
15586 }
15587 /^X\(\/\/\)$/{
15588 s//\1/
15589 q
15590 }
15591 /^X\(\/\).*/{
15592 s//\1/
15593 q
15594 }
15595 s/.*/./; q'`/stamp-h$_am_stamp_count
15596 ;;
15597
15598 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15599 $as_echo "$as_me: executing $ac_file commands" >&6;}
15600 ;;
15601 esac
15602
15603
15604 case $ac_file$ac_mode in
15605 "libtool":C)
15606
15607 # See if we are running on zsh, and set the options which allow our
15608 # commands through without removal of \ escapes.
15609 if test -n "${ZSH_VERSION+set}" ; then
15610 setopt NO_GLOB_SUBST
15611 fi
15612
15613 cfgfile="${ofile}T"
15614 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15615 $RM "$cfgfile"
15616
15617 cat <<_LT_EOF >> "$cfgfile"
15618 #! $SHELL
15619
15620 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15621 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15622 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15623 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15624 #
15625 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15626 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15627 # Written by Gordon Matzigkeit, 1996
15628 #
15629 # This file is part of GNU Libtool.
15630 #
15631 # GNU Libtool is free software; you can redistribute it and/or
15632 # modify it under the terms of the GNU General Public License as
15633 # published by the Free Software Foundation; either version 2 of
15634 # the License, or (at your option) any later version.
15635 #
15636 # As a special exception to the GNU General Public License,
15637 # if you distribute this file as part of a program or library that
15638 # is built using GNU Libtool, you may include this file under the
15639 # same distribution terms that you use for the rest of that program.
15640 #
15641 # GNU Libtool is distributed in the hope that it will be useful,
15642 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15643 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15644 # GNU General Public License for more details.
15645 #
15646 # You should have received a copy of the GNU General Public License
15647 # along with GNU Libtool; see the file COPYING. If not, a copy
15648 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15649 # obtained by writing to the Free Software Foundation, Inc.,
15650 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15651
15652
15653 # The names of the tagged configurations supported by this script.
15654 available_tags=""
15655
15656 # ### BEGIN LIBTOOL CONFIG
15657
15658 # Which release of libtool.m4 was used?
15659 macro_version=$macro_version
15660 macro_revision=$macro_revision
15661
15662 # Whether or not to build shared libraries.
15663 build_libtool_libs=$enable_shared
15664
15665 # Whether or not to build static libraries.
15666 build_old_libs=$enable_static
15667
15668 # What type of objects to build.
15669 pic_mode=$pic_mode
15670
15671 # Whether or not to optimize for fast installation.
15672 fast_install=$enable_fast_install
15673
15674 # Shell to use when invoking shell scripts.
15675 SHELL=$lt_SHELL
15676
15677 # An echo program that protects backslashes.
15678 ECHO=$lt_ECHO
15679
15680 # The host system.
15681 host_alias=$host_alias
15682 host=$host
15683 host_os=$host_os
15684
15685 # The build system.
15686 build_alias=$build_alias
15687 build=$build
15688 build_os=$build_os
15689
15690 # A sed program that does not truncate output.
15691 SED=$lt_SED
15692
15693 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15694 Xsed="\$SED -e 1s/^X//"
15695
15696 # A grep program that handles long lines.
15697 GREP=$lt_GREP
15698
15699 # An ERE matcher.
15700 EGREP=$lt_EGREP
15701
15702 # A literal string matcher.
15703 FGREP=$lt_FGREP
15704
15705 # A BSD- or MS-compatible name lister.
15706 NM=$lt_NM
15707
15708 # Whether we need soft or hard links.
15709 LN_S=$lt_LN_S
15710
15711 # What is the maximum length of a command?
15712 max_cmd_len=$max_cmd_len
15713
15714 # Object file suffix (normally "o").
15715 objext=$ac_objext
15716
15717 # Executable file suffix (normally "").
15718 exeext=$exeext
15719
15720 # whether the shell understands "unset".
15721 lt_unset=$lt_unset
15722
15723 # turn spaces into newlines.
15724 SP2NL=$lt_lt_SP2NL
15725
15726 # turn newlines into spaces.
15727 NL2SP=$lt_lt_NL2SP
15728
15729 # An object symbol dumper.
15730 OBJDUMP=$lt_OBJDUMP
15731
15732 # Method to check whether dependent libraries are shared objects.
15733 deplibs_check_method=$lt_deplibs_check_method
15734
15735 # Command to use when deplibs_check_method == "file_magic".
15736 file_magic_cmd=$lt_file_magic_cmd
15737
15738 # The archiver.
15739 AR=$lt_AR
15740 AR_FLAGS=$lt_AR_FLAGS
15741
15742 # A symbol stripping program.
15743 STRIP=$lt_STRIP
15744
15745 # Commands used to install an old-style archive.
15746 RANLIB=$lt_RANLIB
15747 old_postinstall_cmds=$lt_old_postinstall_cmds
15748 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15749
15750 # Whether to use a lock for old archive extraction.
15751 lock_old_archive_extraction=$lock_old_archive_extraction
15752
15753 # A C compiler.
15754 LTCC=$lt_CC
15755
15756 # LTCC compiler flags.
15757 LTCFLAGS=$lt_CFLAGS
15758
15759 # Take the output of nm and produce a listing of raw symbols and C names.
15760 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15761
15762 # Transform the output of nm in a proper C declaration.
15763 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15764
15765 # Transform the output of nm in a C name address pair.
15766 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15767
15768 # Transform the output of nm in a C name address pair when lib prefix is needed.
15769 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15770
15771 # The name of the directory that contains temporary libtool files.
15772 objdir=$objdir
15773
15774 # Used to examine libraries when file_magic_cmd begins with "file".
15775 MAGIC_CMD=$MAGIC_CMD
15776
15777 # Must we lock files when doing compilation?
15778 need_locks=$lt_need_locks
15779
15780 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15781 DSYMUTIL=$lt_DSYMUTIL
15782
15783 # Tool to change global to local symbols on Mac OS X.
15784 NMEDIT=$lt_NMEDIT
15785
15786 # Tool to manipulate fat objects and archives on Mac OS X.
15787 LIPO=$lt_LIPO
15788
15789 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15790 OTOOL=$lt_OTOOL
15791
15792 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15793 OTOOL64=$lt_OTOOL64
15794
15795 # Old archive suffix (normally "a").
15796 libext=$libext
15797
15798 # Shared library suffix (normally ".so").
15799 shrext_cmds=$lt_shrext_cmds
15800
15801 # The commands to extract the exported symbol list from a shared archive.
15802 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15803
15804 # Variables whose values should be saved in libtool wrapper scripts and
15805 # restored at link time.
15806 variables_saved_for_relink=$lt_variables_saved_for_relink
15807
15808 # Do we need the "lib" prefix for modules?
15809 need_lib_prefix=$need_lib_prefix
15810
15811 # Do we need a version for libraries?
15812 need_version=$need_version
15813
15814 # Library versioning type.
15815 version_type=$version_type
15816
15817 # Shared library runtime path variable.
15818 runpath_var=$runpath_var
15819
15820 # Shared library path variable.
15821 shlibpath_var=$shlibpath_var
15822
15823 # Is shlibpath searched before the hard-coded library search path?
15824 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15825
15826 # Format of library name prefix.
15827 libname_spec=$lt_libname_spec
15828
15829 # List of archive names. First name is the real one, the rest are links.
15830 # The last name is the one that the linker finds with -lNAME
15831 library_names_spec=$lt_library_names_spec
15832
15833 # The coded name of the library, if different from the real name.
15834 soname_spec=$lt_soname_spec
15835
15836 # Permission mode override for installation of shared libraries.
15837 install_override_mode=$lt_install_override_mode
15838
15839 # Command to use after installation of a shared archive.
15840 postinstall_cmds=$lt_postinstall_cmds
15841
15842 # Command to use after uninstallation of a shared archive.
15843 postuninstall_cmds=$lt_postuninstall_cmds
15844
15845 # Commands used to finish a libtool library installation in a directory.
15846 finish_cmds=$lt_finish_cmds
15847
15848 # As "finish_cmds", except a single script fragment to be evaled but
15849 # not shown.
15850 finish_eval=$lt_finish_eval
15851
15852 # Whether we should hardcode library paths into libraries.
15853 hardcode_into_libs=$hardcode_into_libs
15854
15855 # Compile-time system search path for libraries.
15856 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15857
15858 # Run-time system search path for libraries.
15859 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15860
15861 # Whether dlopen is supported.
15862 dlopen_support=$enable_dlopen
15863
15864 # Whether dlopen of programs is supported.
15865 dlopen_self=$enable_dlopen_self
15866
15867 # Whether dlopen of statically linked programs is supported.
15868 dlopen_self_static=$enable_dlopen_self_static
15869
15870 # Commands to strip libraries.
15871 old_striplib=$lt_old_striplib
15872 striplib=$lt_striplib
15873
15874
15875 # The linker used to build libraries.
15876 LD=$lt_LD
15877
15878 # How to create reloadable object files.
15879 reload_flag=$lt_reload_flag
15880 reload_cmds=$lt_reload_cmds
15881
15882 # Commands used to build an old-style archive.
15883 old_archive_cmds=$lt_old_archive_cmds
15884
15885 # A language specific compiler.
15886 CC=$lt_compiler
15887
15888 # Is the compiler the GNU compiler?
15889 with_gcc=$GCC
15890
15891 # Compiler flag to turn off builtin functions.
15892 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15893
15894 # How to pass a linker flag through the compiler.
15895 wl=$lt_lt_prog_compiler_wl
15896
15897 # Additional compiler flags for building library objects.
15898 pic_flag=$lt_lt_prog_compiler_pic
15899
15900 # Compiler flag to prevent dynamic linking.
15901 link_static_flag=$lt_lt_prog_compiler_static
15902
15903 # Does compiler simultaneously support -c and -o options?
15904 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15905
15906 # Whether or not to add -lc for building shared libraries.
15907 build_libtool_need_lc=$archive_cmds_need_lc
15908
15909 # Whether or not to disallow shared libs when runtime libs are static.
15910 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15911
15912 # Compiler flag to allow reflexive dlopens.
15913 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15914
15915 # Compiler flag to generate shared objects directly from archives.
15916 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15917
15918 # Whether the compiler copes with passing no objects directly.
15919 compiler_needs_object=$lt_compiler_needs_object
15920
15921 # Create an old-style archive from a shared archive.
15922 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15923
15924 # Create a temporary old-style archive to link instead of a shared archive.
15925 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15926
15927 # Commands used to build a shared archive.
15928 archive_cmds=$lt_archive_cmds
15929 archive_expsym_cmds=$lt_archive_expsym_cmds
15930
15931 # Commands used to build a loadable module if different from building
15932 # a shared archive.
15933 module_cmds=$lt_module_cmds
15934 module_expsym_cmds=$lt_module_expsym_cmds
15935
15936 # Whether we are building with GNU ld or not.
15937 with_gnu_ld=$lt_with_gnu_ld
15938
15939 # Flag that allows shared libraries with undefined symbols to be built.
15940 allow_undefined_flag=$lt_allow_undefined_flag
15941
15942 # Flag that enforces no undefined symbols.
15943 no_undefined_flag=$lt_no_undefined_flag
15944
15945 # Flag to hardcode \$libdir into a binary during linking.
15946 # This must work even if \$libdir does not exist
15947 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15948
15949 # If ld is used when linking, flag to hardcode \$libdir into a binary
15950 # during linking. This must work even if \$libdir does not exist.
15951 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15952
15953 # Whether we need a single "-rpath" flag with a separated argument.
15954 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15955
15956 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15957 # DIR into the resulting binary.
15958 hardcode_direct=$hardcode_direct
15959
15960 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15961 # DIR into the resulting binary and the resulting library dependency is
15962 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15963 # library is relocated.
15964 hardcode_direct_absolute=$hardcode_direct_absolute
15965
15966 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15967 # into the resulting binary.
15968 hardcode_minus_L=$hardcode_minus_L
15969
15970 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15971 # into the resulting binary.
15972 hardcode_shlibpath_var=$hardcode_shlibpath_var
15973
15974 # Set to "yes" if building a shared library automatically hardcodes DIR
15975 # into the library and all subsequent libraries and executables linked
15976 # against it.
15977 hardcode_automatic=$hardcode_automatic
15978
15979 # Set to yes if linker adds runtime paths of dependent libraries
15980 # to runtime path list.
15981 inherit_rpath=$inherit_rpath
15982
15983 # Whether libtool must link a program against all its dependency libraries.
15984 link_all_deplibs=$link_all_deplibs
15985
15986 # Fix the shell variable \$srcfile for the compiler.
15987 fix_srcfile_path=$lt_fix_srcfile_path
15988
15989 # Set to "yes" if exported symbols are required.
15990 always_export_symbols=$always_export_symbols
15991
15992 # The commands to list exported symbols.
15993 export_symbols_cmds=$lt_export_symbols_cmds
15994
15995 # Symbols that should not be listed in the preloaded symbols.
15996 exclude_expsyms=$lt_exclude_expsyms
15997
15998 # Symbols that must always be exported.
15999 include_expsyms=$lt_include_expsyms
16000
16001 # Commands necessary for linking programs (against libraries) with templates.
16002 prelink_cmds=$lt_prelink_cmds
16003
16004 # Specify filename containing input files.
16005 file_list_spec=$lt_file_list_spec
16006
16007 # How to hardcode a shared library path into an executable.
16008 hardcode_action=$hardcode_action
16009
16010 # ### END LIBTOOL CONFIG
16011
16012 _LT_EOF
16013
16014 case $host_os in
16015 aix3*)
16016 cat <<\_LT_EOF >> "$cfgfile"
16017 # AIX sometimes has problems with the GCC collect2 program. For some
16018 # reason, if we set the COLLECT_NAMES environment variable, the problems
16019 # vanish in a puff of smoke.
16020 if test "X${COLLECT_NAMES+set}" != Xset; then
16021 COLLECT_NAMES=
16022 export COLLECT_NAMES
16023 fi
16024 _LT_EOF
16025 ;;
16026 esac
16027
16028
16029 ltmain="$ac_aux_dir/ltmain.sh"
16030
16031
16032 # We use sed instead of cat because bash on DJGPP gets confused if
16033 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16034 # text mode, it properly converts lines to CR/LF. This bash problem
16035 # is reportedly fixed, but why not run on old versions too?
16036 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16037 || (rm -f "$cfgfile"; exit 1)
16038
16039 case $xsi_shell in
16040 yes)
16041 cat << \_LT_EOF >> "$cfgfile"
16042
16043 # func_dirname file append nondir_replacement
16044 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16045 # otherwise set result to NONDIR_REPLACEMENT.
16046 func_dirname ()
16047 {
16048 case ${1} in
16049 */*) func_dirname_result="${1%/*}${2}" ;;
16050 * ) func_dirname_result="${3}" ;;
16051 esac
16052 }
16053
16054 # func_basename file
16055 func_basename ()
16056 {
16057 func_basename_result="${1##*/}"
16058 }
16059
16060 # func_dirname_and_basename file append nondir_replacement
16061 # perform func_basename and func_dirname in a single function
16062 # call:
16063 # dirname: Compute the dirname of FILE. If nonempty,
16064 # add APPEND to the result, otherwise set result
16065 # to NONDIR_REPLACEMENT.
16066 # value returned in "$func_dirname_result"
16067 # basename: Compute filename of FILE.
16068 # value retuned in "$func_basename_result"
16069 # Implementation must be kept synchronized with func_dirname
16070 # and func_basename. For efficiency, we do not delegate to
16071 # those functions but instead duplicate the functionality here.
16072 func_dirname_and_basename ()
16073 {
16074 case ${1} in
16075 */*) func_dirname_result="${1%/*}${2}" ;;
16076 * ) func_dirname_result="${3}" ;;
16077 esac
16078 func_basename_result="${1##*/}"
16079 }
16080
16081 # func_stripname prefix suffix name
16082 # strip PREFIX and SUFFIX off of NAME.
16083 # PREFIX and SUFFIX must not contain globbing or regex special
16084 # characters, hashes, percent signs, but SUFFIX may contain a leading
16085 # dot (in which case that matches only a dot).
16086 func_stripname ()
16087 {
16088 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16089 # positional parameters, so assign one to ordinary parameter first.
16090 func_stripname_result=${3}
16091 func_stripname_result=${func_stripname_result#"${1}"}
16092 func_stripname_result=${func_stripname_result%"${2}"}
16093 }
16094
16095 # func_opt_split
16096 func_opt_split ()
16097 {
16098 func_opt_split_opt=${1%%=*}
16099 func_opt_split_arg=${1#*=}
16100 }
16101
16102 # func_lo2o object
16103 func_lo2o ()
16104 {
16105 case ${1} in
16106 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16107 *) func_lo2o_result=${1} ;;
16108 esac
16109 }
16110
16111 # func_xform libobj-or-source
16112 func_xform ()
16113 {
16114 func_xform_result=${1%.*}.lo
16115 }
16116
16117 # func_arith arithmetic-term...
16118 func_arith ()
16119 {
16120 func_arith_result=$(( $* ))
16121 }
16122
16123 # func_len string
16124 # STRING may not start with a hyphen.
16125 func_len ()
16126 {
16127 func_len_result=${#1}
16128 }
16129
16130 _LT_EOF
16131 ;;
16132 *) # Bourne compatible functions.
16133 cat << \_LT_EOF >> "$cfgfile"
16134
16135 # func_dirname file append nondir_replacement
16136 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16137 # otherwise set result to NONDIR_REPLACEMENT.
16138 func_dirname ()
16139 {
16140 # Extract subdirectory from the argument.
16141 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16142 if test "X$func_dirname_result" = "X${1}"; then
16143 func_dirname_result="${3}"
16144 else
16145 func_dirname_result="$func_dirname_result${2}"
16146 fi
16147 }
16148
16149 # func_basename file
16150 func_basename ()
16151 {
16152 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16153 }
16154
16155
16156 # func_stripname prefix suffix name
16157 # strip PREFIX and SUFFIX off of NAME.
16158 # PREFIX and SUFFIX must not contain globbing or regex special
16159 # characters, hashes, percent signs, but SUFFIX may contain a leading
16160 # dot (in which case that matches only a dot).
16161 # func_strip_suffix prefix name
16162 func_stripname ()
16163 {
16164 case ${2} in
16165 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16166 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16167 esac
16168 }
16169
16170 # sed scripts:
16171 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16172 my_sed_long_arg='1s/^-[^=]*=//'
16173
16174 # func_opt_split
16175 func_opt_split ()
16176 {
16177 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16178 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16179 }
16180
16181 # func_lo2o object
16182 func_lo2o ()
16183 {
16184 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16185 }
16186
16187 # func_xform libobj-or-source
16188 func_xform ()
16189 {
16190 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16191 }
16192
16193 # func_arith arithmetic-term...
16194 func_arith ()
16195 {
16196 func_arith_result=`expr "$@"`
16197 }
16198
16199 # func_len string
16200 # STRING may not start with a hyphen.
16201 func_len ()
16202 {
16203 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16204 }
16205
16206 _LT_EOF
16207 esac
16208
16209 case $lt_shell_append in
16210 yes)
16211 cat << \_LT_EOF >> "$cfgfile"
16212
16213 # func_append var value
16214 # Append VALUE to the end of shell variable VAR.
16215 func_append ()
16216 {
16217 eval "$1+=\$2"
16218 }
16219 _LT_EOF
16220 ;;
16221 *)
16222 cat << \_LT_EOF >> "$cfgfile"
16223
16224 # func_append var value
16225 # Append VALUE to the end of shell variable VAR.
16226 func_append ()
16227 {
16228 eval "$1=\$$1\$2"
16229 }
16230
16231 _LT_EOF
16232 ;;
16233 esac
16234
16235
16236 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16237 || (rm -f "$cfgfile"; exit 1)
16238
16239 mv -f "$cfgfile" "$ofile" ||
16240 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16241 chmod +x "$ofile"
16242
16243 ;;
16244 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16245 # Older Autoconf quotes --file arguments for eval, but not when files
16246 # are listed without --file. Let's play safe and only enable the eval
16247 # if we detect the quoting.
16248 case $CONFIG_FILES in
16249 *\'*) eval set x "$CONFIG_FILES" ;;
16250 *) set x $CONFIG_FILES ;;
16251 esac
16252 shift
16253 for mf
16254 do
16255 # Strip MF so we end up with the name of the file.
16256 mf=`echo "$mf" | sed -e 's/:.*$//'`
16257 # Check whether this is an Automake generated Makefile or not.
16258 # We used to match only the files named 'Makefile.in', but
16259 # some people rename them; so instead we look at the file content.
16260 # Grep'ing the first line is not enough: some people post-process
16261 # each Makefile.in and add a new line on top of each file to say so.
16262 # Grep'ing the whole file is not good either: AIX grep has a line
16263 # limit of 2048, but all sed's we know have understand at least 4000.
16264 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16265 dirpart=`$as_dirname -- "$mf" ||
16266 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16267 X"$mf" : 'X\(//\)[^/]' \| \
16268 X"$mf" : 'X\(//\)$' \| \
16269 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16270 $as_echo X"$mf" |
16271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16272 s//\1/
16273 q
16274 }
16275 /^X\(\/\/\)[^/].*/{
16276 s//\1/
16277 q
16278 }
16279 /^X\(\/\/\)$/{
16280 s//\1/
16281 q
16282 }
16283 /^X\(\/\).*/{
16284 s//\1/
16285 q
16286 }
16287 s/.*/./; q'`
16288 else
16289 continue
16290 fi
16291 # Extract the definition of DEPDIR, am__include, and am__quote
16292 # from the Makefile without running 'make'.
16293 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16294 test -z "$DEPDIR" && continue
16295 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16296 test -z "$am__include" && continue
16297 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16298 # Find all dependency output files, they are included files with
16299 # $(DEPDIR) in their names. We invoke sed twice because it is the
16300 # simplest approach to changing $(DEPDIR) to its actual value in the
16301 # expansion.
16302 for file in `sed -n "
16303 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16304 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16305 # Make sure the directory exists.
16306 test -f "$dirpart/$file" && continue
16307 fdir=`$as_dirname -- "$file" ||
16308 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16309 X"$file" : 'X\(//\)[^/]' \| \
16310 X"$file" : 'X\(//\)$' \| \
16311 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16312 $as_echo X"$file" |
16313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16314 s//\1/
16315 q
16316 }
16317 /^X\(\/\/\)[^/].*/{
16318 s//\1/
16319 q
16320 }
16321 /^X\(\/\/\)$/{
16322 s//\1/
16323 q
16324 }
16325 /^X\(\/\).*/{
16326 s//\1/
16327 q
16328 }
16329 s/.*/./; q'`
16330 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16331 # echo "creating $dirpart/$file"
16332 echo '# dummy' > "$dirpart/$file"
16333 done
16334 done
16335 }
16336 ;;
16337 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
16338 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
16339 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
16340 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
16341 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
16342 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
16343 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
16344 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
16345 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
16346 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
16347 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
16348 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
16349 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
16350 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
16351 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
16352 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
16353 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
16354 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
16355 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
16356 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
16357 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
16358 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
16359 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
16360 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
16361 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
16362 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
16363 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
16364 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
16365 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
16366 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
16367 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
16368 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
16369
16370 esac
16371 done # for ac_tag
16372
16373
16374 as_fn_exit 0
16375 _ACEOF
16376 ac_clean_files=$ac_clean_files_save
16377
16378 test $ac_write_fail = 0 ||
16379 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16380
16381
16382 # configure is writing to config.log, and then calls config.status.
16383 # config.status does its own redirection, appending to config.log.
16384 # Unfortunately, on DOS this fails, as config.log is still kept open
16385 # by configure, so config.status won't be able to write to it; its
16386 # output is simply discarded. So we exec the FD to /dev/null,
16387 # effectively closing config.log, so it can be properly (re)opened and
16388 # appended to by config.status. When coming back to configure, we
16389 # need to make the FD available again.
16390 if test "$no_create" != yes; then
16391 ac_cs_success=:
16392 ac_config_status_args=
16393 test "$silent" = yes &&
16394 ac_config_status_args="$ac_config_status_args --quiet"
16395 exec 5>/dev/null
16396 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16397 exec 5>>config.log
16398 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16399 # would make configure fail if this is the last instruction.
16400 $ac_cs_success || as_fn_exit 1
16401 fi
16402
16403 #
16404 # CONFIG_SUBDIRS section.
16405 #
16406 if test "$no_recursion" != yes; then
16407
16408 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16409 # so they do not pile up.
16410 ac_sub_configure_args=
16411 ac_prev=
16412 eval "set x $ac_configure_args"
16413 shift
16414 for ac_arg
16415 do
16416 if test -n "$ac_prev"; then
16417 ac_prev=
16418 continue
16419 fi
16420 case $ac_arg in
16421 -cache-file | --cache-file | --cache-fil | --cache-fi \
16422 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16423 ac_prev=cache_file ;;
16424 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16425 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16426 | --c=*)
16427 ;;
16428 --config-cache | -C)
16429 ;;
16430 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16431 ac_prev=srcdir ;;
16432 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16433 ;;
16434 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16435 ac_prev=prefix ;;
16436 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16437 ;;
16438 --disable-option-checking)
16439 ;;
16440 *)
16441 case $ac_arg in
16442 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16443 esac
16444 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16445 esac
16446 done
16447
16448 # Always prepend --prefix to ensure using the same prefix
16449 # in subdir configurations.
16450 ac_arg="--prefix=$prefix"
16451 case $ac_arg in
16452 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16453 esac
16454 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16455
16456 # Pass --silent
16457 if test "$silent" = yes; then
16458 ac_sub_configure_args="--silent $ac_sub_configure_args"
16459 fi
16460
16461 # Always prepend --disable-option-checking to silence warnings, since
16462 # different subdirs can have different --enable and --with options.
16463 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16464
16465 ac_popdir=`pwd`
16466 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16467
16468 # Do not complain, so a configure script can configure whichever
16469 # parts of a large source tree are present.
16470 test -d "$srcdir/$ac_dir" || continue
16471
16472 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16473 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16474 $as_echo "$ac_msg" >&6
16475 as_dir="$ac_dir"; as_fn_mkdir_p
16476 ac_builddir=.
16477
16478 case "$ac_dir" in
16479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16480 *)
16481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16482 # A ".." for each directory in $ac_dir_suffix.
16483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16484 case $ac_top_builddir_sub in
16485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16487 esac ;;
16488 esac
16489 ac_abs_top_builddir=$ac_pwd
16490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16491 # for backward compatibility:
16492 ac_top_builddir=$ac_top_build_prefix
16493
16494 case $srcdir in
16495 .) # We are building in place.
16496 ac_srcdir=.
16497 ac_top_srcdir=$ac_top_builddir_sub
16498 ac_abs_top_srcdir=$ac_pwd ;;
16499 [\\/]* | ?:[\\/]* ) # Absolute name.
16500 ac_srcdir=$srcdir$ac_dir_suffix;
16501 ac_top_srcdir=$srcdir
16502 ac_abs_top_srcdir=$srcdir ;;
16503 *) # Relative name.
16504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16505 ac_top_srcdir=$ac_top_build_prefix$srcdir
16506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16507 esac
16508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16509
16510
16511 cd "$ac_dir"
16512
16513 # Check for guested configure; otherwise get Cygnus style configure.
16514 if test -f "$ac_srcdir/configure.gnu"; then
16515 ac_sub_configure=$ac_srcdir/configure.gnu
16516 elif test -f "$ac_srcdir/configure"; then
16517 ac_sub_configure=$ac_srcdir/configure
16518 elif test -f "$ac_srcdir/configure.in"; then
16519 # This should be Cygnus configure.
16520 ac_sub_configure=$ac_aux_dir/configure
16521 else
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16523 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16524 ac_sub_configure=
16525 fi
16526
16527 # The recursion is here.
16528 if test -n "$ac_sub_configure"; then
16529 # Make the cache file name correct relative to the subdirectory.
16530 case $cache_file in
16531 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16532 *) # Relative name.
16533 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16534 esac
16535
16536 { $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
16537 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16538 # The eval makes quoting arguments work.
16539 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16540 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16541 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16542 fi
16543
16544 cd "$ac_popdir"
16545 done
16546 fi
16547 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16549 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16550 fi
16551