sim: unify toolchain probing logic
[deliverable/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 LIBOBJS
702 C_DIALECT
703 RANLIB
704 AR
705 LDFLAGS_FOR_BUILD
706 CFLAGS_FOR_BUILD
707 RANLIB_FOR_BUILD
708 CC_FOR_BUILD
709 AR_FOR_BUILD
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 EGREP
714 GREP
715 CPP
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 target_os
724 target_vendor
725 target_cpu
726 target
727 host_os
728 host_vendor
729 host_cpu
730 host
731 build_os
732 build_vendor
733 build_cpu
734 build
735 REPORT_BUGS_TEXI
736 REPORT_BUGS_TO
737 PKGVERSION
738 target_alias
739 host_alias
740 build_alias
741 LIBS
742 ECHO_T
743 ECHO_N
744 ECHO_C
745 DEFS
746 mandir
747 localedir
748 libdir
749 psdir
750 pdfdir
751 dvidir
752 htmldir
753 infodir
754 docdir
755 oldincludedir
756 includedir
757 localstatedir
758 sharedstatedir
759 sysconfdir
760 datadir
761 datarootdir
762 libexecdir
763 sbindir
764 bindir
765 program_transform_name
766 prefix
767 exec_prefix
768 PACKAGE_URL
769 PACKAGE_BUGREPORT
770 PACKAGE_STRING
771 PACKAGE_VERSION
772 PACKAGE_TARNAME
773 PACKAGE_NAME
774 PATH_SEPARATOR
775 SHELL
776 WERROR_CFLAGS
777 WARN_CFLAGS'
778 ac_subst_files=''
779 ac_user_opts='
780 enable_option_checking
781 with_pkgversion
782 with_bugurl
783 with_system_zlib
784 enable_plugins
785 enable_shared
786 enable_static
787 with_pic
788 enable_fast_install
789 with_gnu_ld
790 enable_libtool_lock
791 enable_maintainer_mode
792 enable_dependency_tracking
793 enable_silent_rules
794 enable_sim
795 enable_example_sims
796 enable_targets
797 enable_sim_alignment
798 enable_sim_assert
799 enable_sim_debug
800 enable_sim_endian
801 enable_sim_environment
802 enable_sim_profile
803 enable_sim_stdio
804 enable_sim_trace
805 enable_werror
806 enable_build_warnings
807 enable_sim_build_warnings
808 '
809 ac_precious_vars='build_alias
810 host_alias
811 target_alias
812 CC
813 CFLAGS
814 LDFLAGS
815 LIBS
816 CPPFLAGS
817 CPP'
818 ac_subdirs_all='aarch64
819 arm
820 avr
821 bfin
822 bpf
823 cr16
824 cris
825 d10v
826 frv
827 h8300
828 iq2000
829 lm32
830 m32c
831 m32r
832 m68hc11
833 mcore
834 microblaze
835 mips
836 mn10300
837 moxie
838 msp430
839 or1k
840 pru
841 riscv
842 rl78
843 rx
844 sh
845 erc32
846 ppc
847 ft32
848 v850
849 example-synacor'
850
851 # Initialize some variables set by options.
852 ac_init_help=
853 ac_init_version=false
854 ac_unrecognized_opts=
855 ac_unrecognized_sep=
856 # The variables have the same names as the options, with
857 # dashes changed to underlines.
858 cache_file=/dev/null
859 exec_prefix=NONE
860 no_create=
861 no_recursion=
862 prefix=NONE
863 program_prefix=NONE
864 program_suffix=NONE
865 program_transform_name=s,x,x,
866 silent=
867 site=
868 srcdir=
869 verbose=
870 x_includes=NONE
871 x_libraries=NONE
872
873 # Installation directory options.
874 # These are left unexpanded so users can "make install exec_prefix=/foo"
875 # and all the variables that are supposed to be based on exec_prefix
876 # by default will actually change.
877 # Use braces instead of parens because sh, perl, etc. also accept them.
878 # (The list follows the same order as the GNU Coding Standards.)
879 bindir='${exec_prefix}/bin'
880 sbindir='${exec_prefix}/sbin'
881 libexecdir='${exec_prefix}/libexec'
882 datarootdir='${prefix}/share'
883 datadir='${datarootdir}'
884 sysconfdir='${prefix}/etc'
885 sharedstatedir='${prefix}/com'
886 localstatedir='${prefix}/var'
887 includedir='${prefix}/include'
888 oldincludedir='/usr/include'
889 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
890 infodir='${datarootdir}/info'
891 htmldir='${docdir}'
892 dvidir='${docdir}'
893 pdfdir='${docdir}'
894 psdir='${docdir}'
895 libdir='${exec_prefix}/lib'
896 localedir='${datarootdir}/locale'
897 mandir='${datarootdir}/man'
898
899 ac_prev=
900 ac_dashdash=
901 for ac_option
902 do
903 # If the previous option needs an argument, assign it.
904 if test -n "$ac_prev"; then
905 eval $ac_prev=\$ac_option
906 ac_prev=
907 continue
908 fi
909
910 case $ac_option in
911 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912 *=) ac_optarg= ;;
913 *) ac_optarg=yes ;;
914 esac
915
916 # Accept the important Cygnus configure options, so we can diagnose typos.
917
918 case $ac_dashdash$ac_option in
919 --)
920 ac_dashdash=yes ;;
921
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
923 ac_prev=bindir ;;
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 bindir=$ac_optarg ;;
926
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
931
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
938
939 --config-cache | -C)
940 cache_file=config.cache ;;
941
942 -datadir | --datadir | --datadi | --datad)
943 ac_prev=datadir ;;
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
946
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
953
954 -disable-* | --disable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=no ;;
969
970 -docdir | --docdir | --docdi | --doc | --do)
971 ac_prev=docdir ;;
972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 docdir=$ac_optarg ;;
974
975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976 ac_prev=dvidir ;;
977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 dvidir=$ac_optarg ;;
979
980 -enable-* | --enable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: $ac_useropt"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
995
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1004
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1008
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1015
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1020
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1026
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1033
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1038
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1043
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1050
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1055
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1062
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1067
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1071
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1074 no_create=yes ;;
1075
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1079
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1088
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1093
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1100
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1107
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1124
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1129
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1134
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1138
1139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140 ac_prev=sbindir ;;
1141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142 | --sbi=* | --sb=*)
1143 sbindir=$ac_optarg ;;
1144
1145 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1146 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1147 | --sharedst | --shareds | --shared | --share | --shar \
1148 | --sha | --sh)
1149 ac_prev=sharedstatedir ;;
1150 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1151 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1152 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1153 | --sha=* | --sh=*)
1154 sharedstatedir=$ac_optarg ;;
1155
1156 -site | --site | --sit)
1157 ac_prev=site ;;
1158 -site=* | --site=* | --sit=*)
1159 site=$ac_optarg ;;
1160
1161 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162 ac_prev=srcdir ;;
1163 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1164 srcdir=$ac_optarg ;;
1165
1166 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1167 | --syscon | --sysco | --sysc | --sys | --sy)
1168 ac_prev=sysconfdir ;;
1169 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1170 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1171 sysconfdir=$ac_optarg ;;
1172
1173 -target | --target | --targe | --targ | --tar | --ta | --t)
1174 ac_prev=target_alias ;;
1175 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1176 target_alias=$ac_optarg ;;
1177
1178 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 verbose=yes ;;
1180
1181 -version | --version | --versio | --versi | --vers | -V)
1182 ac_init_version=: ;;
1183
1184 -with-* | --with-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=\$ac_optarg ;;
1199
1200 -without-* | --without-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error $? "invalid package name: $ac_useropt"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=no ;;
1215
1216 --x)
1217 # Obsolete; use --with-x.
1218 with_x=yes ;;
1219
1220 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1221 | --x-incl | --x-inc | --x-in | --x-i)
1222 ac_prev=x_includes ;;
1223 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1224 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1225 x_includes=$ac_optarg ;;
1226
1227 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1228 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1229 ac_prev=x_libraries ;;
1230 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232 x_libraries=$ac_optarg ;;
1233
1234 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1235 Try \`$0 --help' for more information"
1236 ;;
1237
1238 *=*)
1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
1241 case $ac_envvar in #(
1242 '' | [0-9]* | *[!_$as_cr_alnum]* )
1243 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1244 esac
1245 eval $ac_envvar=\$ac_optarg
1246 export $ac_envvar ;;
1247
1248 *)
1249 # FIXME: should be removed in autoconf 3.0.
1250 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1253 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1254 ;;
1255
1256 esac
1257 done
1258
1259 if test -n "$ac_prev"; then
1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261 as_fn_error $? "missing argument to $ac_option"
1262 fi
1263
1264 if test -n "$ac_unrecognized_opts"; then
1265 case $enable_option_checking in
1266 no) ;;
1267 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1268 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 esac
1270 fi
1271
1272 # Check all directory arguments for consistency.
1273 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274 datadir sysconfdir sharedstatedir localstatedir includedir \
1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276 libdir localedir mandir
1277 do
1278 eval ac_val=\$$ac_var
1279 # Remove trailing slashes.
1280 case $ac_val in
1281 */ )
1282 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283 eval $ac_var=\$ac_val;;
1284 esac
1285 # Be sure to have absolute directory names.
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
1290 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1291 done
1292
1293 # There might be people who depend on the old broken behavior: `$host'
1294 # used to hold the argument of --host etc.
1295 # FIXME: To remove some day.
1296 build=$build_alias
1297 host=$host_alias
1298 target=$target_alias
1299
1300 # FIXME: To remove some day.
1301 if test "x$host_alias" != x; then
1302 if test "x$build_alias" = x; then
1303 cross_compiling=maybe
1304 elif test "x$build_alias" != "x$host_alias"; then
1305 cross_compiling=yes
1306 fi
1307 fi
1308
1309 ac_tool_prefix=
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312 test "$silent" = yes && exec 6>/dev/null
1313
1314
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 as_fn_error $? "working directory cannot be determined"
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 as_fn_error $? "pwd does not report name of working directory"
1321
1322
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)[^/].*/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\).*/{
1346 s//\1/
1347 q
1348 }
1349 s/.*/./; q'`
1350 srcdir=$ac_confdir
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 srcdir=..
1353 fi
1354 else
1355 ac_srcdir_defaulted=no
1356 fi
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1360 fi
1361 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 ac_abs_confdir=`(
1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1364 pwd)`
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367 srcdir=.
1368 fi
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1372 case $srcdir in
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374 esac
1375 for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380 done
1381
1382 #
1383 # Report the --help message.
1384 #
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1388 cat <<_ACEOF
1389 \`configure' configures sim 0 to adapt to many kinds of systems.
1390
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1395
1396 Defaults for the options are specified in brackets.
1397
1398 Configuration:
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking ...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1408
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1413 [PREFIX]
1414
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1419
1420 For better control, use the options below.
1421
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1442 _ACEOF
1443
1444 cat <<\_ACEOF
1445
1446 Program names:
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1450
1451 System types:
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454 --target=TARGET configure for building compilers for TARGET [HOST]
1455 _ACEOF
1456 fi
1457
1458 if test -n "$ac_init_help"; then
1459 case $ac_init_help in
1460 short | recursive ) echo "Configuration of sim 0:";;
1461 esac
1462 cat <<\_ACEOF
1463
1464 Optional Features:
1465 --disable-option-checking ignore unrecognized --enable/--with options
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1468 --enable-plugins Enable support for plugins
1469 --enable-shared[=PKGS] build shared libraries [default=yes]
1470 --enable-static[=PKGS] build static libraries [default=yes]
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1474 --enable-maintainer-mode
1475 enable make rules and dependencies not useful (and
1476 sometimes confusing) to the casual installer
1477 --enable-dependency-tracking
1478 do not reject slow dependency extractors
1479 --disable-dependency-tracking
1480 speeds up one-time build
1481 --enable-silent-rules less verbose build output (undo: "make V=1")
1482 --disable-silent-rules verbose build output (undo: "make V=0")
1483 --enable-sim Enable the GNU simulator
1484 --enable-example-sims enable example GNU simulators
1485 --enable-targets alternative target configurations
1486 --enable-sim-alignment=align
1487 Specify strict, nonstrict or forced alignment of
1488 memory accesses
1489 --enable-sim-assert Specify whether to perform random assertions
1490 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1491 itself)
1492 --enable-sim-endian=endian
1493 Specify target byte endian orientation
1494 --enable-sim-environment=environment
1495 Specify mixed, user, virtual or operating
1496 environment
1497 --enable-sim-profile=opts
1498 Enable profiling flags
1499 --enable-sim-stdio Specify whether to use stdio for console
1500 input/output
1501 --enable-sim-trace=opts Enable tracing of simulated programs
1502 --enable-werror treat compile warnings as errors
1503 --enable-build-warnings enable build-time compiler warnings if gcc is used
1504 --enable-sim-build-warnings
1505 enable SIM specific build-time compiler warnings if
1506 gcc is used
1507
1508 Optional Packages:
1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1511 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1512 --with-bugurl=URL Direct users to URL to report a bug
1513 --with-system-zlib use installed libz
1514 --with-pic try to use only PIC/non-PIC objects [default=use
1515 both]
1516 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1517
1518 Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
1523 LIBS libraries to pass to the linker, e.g. -l<library>
1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1525 you have headers in a nonstandard directory <include dir>
1526 CPP C preprocessor
1527
1528 Use these variables to override the choices made by `configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1530
1531 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
1532 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
1533 _ACEOF
1534 ac_status=$?
1535 fi
1536
1537 if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540 test -d "$ac_dir" ||
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 continue
1543 ac_builddir=.
1544
1545 case "$ac_dir" in
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *)
1548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 esac ;;
1555 esac
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1560
1561 case $srcdir in
1562 .) # We are building in place.
1563 ac_srcdir=.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1570 *) # Relative name.
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 esac
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for guested configure.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure" --help=recursive
1585 else
1586 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587 fi || ac_status=$?
1588 cd "$ac_pwd" || { ac_status=$?; break; }
1589 done
1590 fi
1591
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1594 cat <<\_ACEOF
1595 sim configure 0
1596 generated by GNU Autoconf 2.69
1597
1598 Copyright (C) 2012 Free Software Foundation, Inc.
1599 This configure script is free software; the Free Software Foundation
1600 gives unlimited permission to copy, distribute and modify it.
1601 _ACEOF
1602 exit
1603 fi
1604
1605 ## ------------------------ ##
1606 ## Autoconf initialization. ##
1607 ## ------------------------ ##
1608
1609 # ac_fn_c_try_compile LINENO
1610 # --------------------------
1611 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_compile ()
1613 {
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext
1616 if { { ac_try="$ac_compile"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_compile") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest.$ac_objext; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641 fi
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1644
1645 } # ac_fn_c_try_compile
1646
1647 # ac_fn_c_try_cpp LINENO
1648 # ----------------------
1649 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_c_try_cpp ()
1651 {
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { { ac_try="$ac_cpp conftest.$ac_ext"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } > conftest.i && {
1669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 }; then :
1672 ac_retval=0
1673 else
1674 $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677 ac_retval=1
1678 fi
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_cpp
1683
1684 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1685 # -------------------------------------------------------
1686 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1687 # the include files in INCLUDES and setting the cache variable VAR
1688 # accordingly.
1689 ac_fn_c_check_header_mongrel ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if eval \${$3+:} false; then :
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 $as_echo_n "checking for $2... " >&6; }
1695 if eval \${$3+:} false; then :
1696 $as_echo_n "(cached) " >&6
1697 fi
1698 eval ac_res=\$$3
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 $as_echo "$ac_res" >&6; }
1701 else
1702 # Is the header compilable?
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1704 $as_echo_n "checking $2 usability... " >&6; }
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1707 $4
1708 #include <$2>
1709 _ACEOF
1710 if ac_fn_c_try_compile "$LINENO"; then :
1711 ac_header_compiler=yes
1712 else
1713 ac_header_compiler=no
1714 fi
1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1717 $as_echo "$ac_header_compiler" >&6; }
1718
1719 # Is the header present?
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1721 $as_echo_n "checking $2 presence... " >&6; }
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1724 #include <$2>
1725 _ACEOF
1726 if ac_fn_c_try_cpp "$LINENO"; then :
1727 ac_header_preproc=yes
1728 else
1729 ac_header_preproc=no
1730 fi
1731 rm -f conftest.err conftest.i conftest.$ac_ext
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1733 $as_echo "$ac_header_preproc" >&6; }
1734
1735 # So? What about this header?
1736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1737 yes:no: )
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1739 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1741 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1742 ;;
1743 no:yes:* )
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1745 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1747 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1749 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1751 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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 ( $as_echo "## -------------------------------------------------------------------------------------- ##
1755 ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
1756 ## -------------------------------------------------------------------------------------- ##"
1757 ) | sed "s/^/$as_me: WARNING: /" >&2
1758 ;;
1759 esac
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if eval \${$3+:} false; then :
1763 $as_echo_n "(cached) " >&6
1764 else
1765 eval "$3=\$ac_header_compiler"
1766 fi
1767 eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 fi
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773 } # ac_fn_c_check_header_mongrel
1774
1775 # ac_fn_c_try_run LINENO
1776 # ----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1778 # that executables *can* be run.
1779 ac_fn_c_try_run ()
1780 {
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if { { ac_try="$ac_link"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>&5
1790 ac_status=$?
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1793 { { case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_try") 2>&5
1800 ac_status=$?
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; }; }; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: program exited with status $ac_status" >&5
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1808
1809 ac_retval=$ac_status
1810 fi
1811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
1814
1815 } # ac_fn_c_try_run
1816
1817 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1818 # -------------------------------------------------------
1819 # Tests whether HEADER exists and can be compiled using the include files in
1820 # INCLUDES, setting the cache variable VAR accordingly.
1821 ac_fn_c_check_header_compile ()
1822 {
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1828 else
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1831 $4
1832 #include <$2>
1833 _ACEOF
1834 if ac_fn_c_try_compile "$LINENO"; then :
1835 eval "$3=yes"
1836 else
1837 eval "$3=no"
1838 fi
1839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840 fi
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846 } # ac_fn_c_check_header_compile
1847
1848 # ac_fn_c_try_link LINENO
1849 # -----------------------
1850 # Try to link conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_link ()
1852 {
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext conftest$ac_exeext
1855 if { { ac_try="$ac_link"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_link") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1868 fi
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest$ac_exeext && {
1874 test "$cross_compiling" = yes ||
1875 test -x conftest$ac_exeext
1876 }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1881
1882 ac_retval=1
1883 fi
1884 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1885 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1886 # interfere with the next link command; also delete a directory that is
1887 # left behind by Apple's compiler. We do this before executing the actions.
1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status $ac_retval
1891
1892 } # ac_fn_c_try_link
1893
1894 # ac_fn_c_check_func LINENO FUNC VAR
1895 # ----------------------------------
1896 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1897 ac_fn_c_check_func ()
1898 {
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval \${$3+:} false; then :
1903 $as_echo_n "(cached) " >&6
1904 else
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1909 #define $2 innocuous_$2
1910
1911 /* System header to define __stub macros and hopefully few prototypes,
1912 which can conflict with char $2 (); below.
1913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1914 <limits.h> exists even on freestanding compilers. */
1915
1916 #ifdef __STDC__
1917 # include <limits.h>
1918 #else
1919 # include <assert.h>
1920 #endif
1921
1922 #undef $2
1923
1924 /* Override any GCC internal prototype to avoid an error.
1925 Use char because int might match the return type of a GCC
1926 builtin and then its argument prototype would still apply. */
1927 #ifdef __cplusplus
1928 extern "C"
1929 #endif
1930 char $2 ();
1931 /* The GNU C library defines this for functions which it implements
1932 to always fail with ENOSYS. Some functions are actually named
1933 something starting with __ and the normal name is an alias. */
1934 #if defined __stub_$2 || defined __stub___$2
1935 choke me
1936 #endif
1937
1938 int
1939 main ()
1940 {
1941 return $2 ();
1942 ;
1943 return 0;
1944 }
1945 _ACEOF
1946 if ac_fn_c_try_link "$LINENO"; then :
1947 eval "$3=yes"
1948 else
1949 eval "$3=no"
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext \
1952 conftest$ac_exeext conftest.$ac_ext
1953 fi
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958
1959 } # ac_fn_c_check_func
1960
1961 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1962 # ----------------------------------------------------
1963 # Tries to find if the field MEMBER exists in type AGGR, after including
1964 # INCLUDES, setting cache variable VAR accordingly.
1965 ac_fn_c_check_member ()
1966 {
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1969 $as_echo_n "checking for $2.$3... " >&6; }
1970 if eval \${$4+:} false; then :
1971 $as_echo_n "(cached) " >&6
1972 else
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 $5
1976 int
1977 main ()
1978 {
1979 static $2 ac_aggr;
1980 if (ac_aggr.$3)
1981 return 0;
1982 ;
1983 return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 eval "$4=yes"
1988 else
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1991 $5
1992 int
1993 main ()
1994 {
1995 static $2 ac_aggr;
1996 if (sizeof ac_aggr.$3)
1997 return 0;
1998 ;
1999 return 0;
2000 }
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 eval "$4=yes"
2004 else
2005 eval "$4=no"
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 fi
2011 eval ac_res=\$$4
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 $as_echo "$ac_res" >&6; }
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015
2016 } # ac_fn_c_check_member
2017
2018 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2019 # ---------------------------------------------
2020 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2021 # accordingly.
2022 ac_fn_c_check_decl ()
2023 {
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 as_decl_name=`echo $2|sed 's/ *(.*//'`
2026 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2028 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2029 if eval \${$3+:} false; then :
2030 $as_echo_n "(cached) " >&6
2031 else
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 $4
2035 int
2036 main ()
2037 {
2038 #ifndef $as_decl_name
2039 #ifdef __cplusplus
2040 (void) $as_decl_use;
2041 #else
2042 (void) $as_decl_name;
2043 #endif
2044 #endif
2045
2046 ;
2047 return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051 eval "$3=yes"
2052 else
2053 eval "$3=no"
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 fi
2057 eval ac_res=\$$3
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061
2062 } # ac_fn_c_check_decl
2063
2064 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2065 # -------------------------------------------
2066 # Tests whether TYPE exists after having included INCLUDES, setting cache
2067 # variable VAR accordingly.
2068 ac_fn_c_check_type ()
2069 {
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 eval "$3=no"
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2079 $4
2080 int
2081 main ()
2082 {
2083 if (sizeof ($2))
2084 return 0;
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 $4
2093 int
2094 main ()
2095 {
2096 if (sizeof (($2)))
2097 return 0;
2098 ;
2099 return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103
2104 else
2105 eval "$3=yes"
2106 fi
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 fi
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 fi
2111 eval ac_res=\$$3
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115
2116 } # ac_fn_c_check_type
2117 cat >config.log <<_ACEOF
2118 This file contains any messages produced by compilers while
2119 running configure, to aid debugging if configure makes a mistake.
2120
2121 It was created by sim $as_me 0, which was
2122 generated by GNU Autoconf 2.69. Invocation command line was
2123
2124 $ $0 $@
2125
2126 _ACEOF
2127 exec 5>>config.log
2128 {
2129 cat <<_ASUNAME
2130 ## --------- ##
2131 ## Platform. ##
2132 ## --------- ##
2133
2134 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2135 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2136 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2137 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2138 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2139
2140 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2141 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2142
2143 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2144 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2145 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2146 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2147 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2148 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2149 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2150
2151 _ASUNAME
2152
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156 IFS=$as_save_IFS
2157 test -z "$as_dir" && as_dir=.
2158 $as_echo "PATH: $as_dir"
2159 done
2160 IFS=$as_save_IFS
2161
2162 } >&5
2163
2164 cat >&5 <<_ACEOF
2165
2166
2167 ## ----------- ##
2168 ## Core tests. ##
2169 ## ----------- ##
2170
2171 _ACEOF
2172
2173
2174 # Keep a trace of the command line.
2175 # Strip out --no-create and --no-recursion so they do not pile up.
2176 # Strip out --silent because we don't want to record it for future runs.
2177 # Also quote any args containing shell meta-characters.
2178 # Make two passes to allow for proper duplicate-argument suppression.
2179 ac_configure_args=
2180 ac_configure_args0=
2181 ac_configure_args1=
2182 ac_must_keep_next=false
2183 for ac_pass in 1 2
2184 do
2185 for ac_arg
2186 do
2187 case $ac_arg in
2188 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2190 | -silent | --silent | --silen | --sile | --sil)
2191 continue ;;
2192 *\'*)
2193 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2194 esac
2195 case $ac_pass in
2196 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2197 2)
2198 as_fn_append ac_configure_args1 " '$ac_arg'"
2199 if test $ac_must_keep_next = true; then
2200 ac_must_keep_next=false # Got value, back to normal.
2201 else
2202 case $ac_arg in
2203 *=* | --config-cache | -C | -disable-* | --disable-* \
2204 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2205 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2206 | -with-* | --with-* | -without-* | --without-* | --x)
2207 case "$ac_configure_args0 " in
2208 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2209 esac
2210 ;;
2211 -* ) ac_must_keep_next=true ;;
2212 esac
2213 fi
2214 as_fn_append ac_configure_args " '$ac_arg'"
2215 ;;
2216 esac
2217 done
2218 done
2219 { ac_configure_args0=; unset ac_configure_args0;}
2220 { ac_configure_args1=; unset ac_configure_args1;}
2221
2222 # When interrupted or exit'd, cleanup temporary files, and complete
2223 # config.log. We remove comments because anyway the quotes in there
2224 # would cause problems or look ugly.
2225 # WARNING: Use '\'' to represent an apostrophe within the trap.
2226 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2227 trap 'exit_status=$?
2228 # Save into config.log some information that might help in debugging.
2229 {
2230 echo
2231
2232 $as_echo "## ---------------- ##
2233 ## Cache variables. ##
2234 ## ---------------- ##"
2235 echo
2236 # The following way of writing the cache mishandles newlines in values,
2237 (
2238 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2239 eval ac_val=\$$ac_var
2240 case $ac_val in #(
2241 *${as_nl}*)
2242 case $ac_var in #(
2243 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2244 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2245 esac
2246 case $ac_var in #(
2247 _ | IFS | as_nl) ;; #(
2248 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2249 *) { eval $ac_var=; unset $ac_var;} ;;
2250 esac ;;
2251 esac
2252 done
2253 (set) 2>&1 |
2254 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2255 *${as_nl}ac_space=\ *)
2256 sed -n \
2257 "s/'\''/'\''\\\\'\'''\''/g;
2258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2259 ;; #(
2260 *)
2261 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2262 ;;
2263 esac |
2264 sort
2265 )
2266 echo
2267
2268 $as_echo "## ----------------- ##
2269 ## Output variables. ##
2270 ## ----------------- ##"
2271 echo
2272 for ac_var in $ac_subst_vars
2273 do
2274 eval ac_val=\$$ac_var
2275 case $ac_val in
2276 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2277 esac
2278 $as_echo "$ac_var='\''$ac_val'\''"
2279 done | sort
2280 echo
2281
2282 if test -n "$ac_subst_files"; then
2283 $as_echo "## ------------------- ##
2284 ## File substitutions. ##
2285 ## ------------------- ##"
2286 echo
2287 for ac_var in $ac_subst_files
2288 do
2289 eval ac_val=\$$ac_var
2290 case $ac_val in
2291 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2292 esac
2293 $as_echo "$ac_var='\''$ac_val'\''"
2294 done | sort
2295 echo
2296 fi
2297
2298 if test -s confdefs.h; then
2299 $as_echo "## ----------- ##
2300 ## confdefs.h. ##
2301 ## ----------- ##"
2302 echo
2303 cat confdefs.h
2304 echo
2305 fi
2306 test "$ac_signal" != 0 &&
2307 $as_echo "$as_me: caught signal $ac_signal"
2308 $as_echo "$as_me: exit $exit_status"
2309 } >&5
2310 rm -f core *.core core.conftest.* &&
2311 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2312 exit $exit_status
2313 ' 0
2314 for ac_signal in 1 2 13 15; do
2315 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2316 done
2317 ac_signal=0
2318
2319 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2320 rm -f -r conftest* confdefs.h
2321
2322 $as_echo "/* confdefs.h */" > confdefs.h
2323
2324 # Predefined preprocessor variables.
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_NAME "$PACKAGE_NAME"
2328 _ACEOF
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2332 _ACEOF
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2336 _ACEOF
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_STRING "$PACKAGE_STRING"
2340 _ACEOF
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_URL "$PACKAGE_URL"
2348 _ACEOF
2349
2350
2351 # Let the site file select an alternate cache file if it wants to.
2352 # Prefer an explicitly selected file to automatically selected ones.
2353 ac_site_file1=NONE
2354 ac_site_file2=NONE
2355 if test -n "$CONFIG_SITE"; then
2356 # We do not want a PATH search for config.site.
2357 case $CONFIG_SITE in #((
2358 -*) ac_site_file1=./$CONFIG_SITE;;
2359 */*) ac_site_file1=$CONFIG_SITE;;
2360 *) ac_site_file1=./$CONFIG_SITE;;
2361 esac
2362 elif test "x$prefix" != xNONE; then
2363 ac_site_file1=$prefix/share/config.site
2364 ac_site_file2=$prefix/etc/config.site
2365 else
2366 ac_site_file1=$ac_default_prefix/share/config.site
2367 ac_site_file2=$ac_default_prefix/etc/config.site
2368 fi
2369 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2370 do
2371 test "x$ac_site_file" = xNONE && continue
2372 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2374 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2375 sed 's/^/| /' "$ac_site_file" >&5
2376 . "$ac_site_file" \
2377 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2379 as_fn_error $? "failed to load site script $ac_site_file
2380 See \`config.log' for more details" "$LINENO" 5; }
2381 fi
2382 done
2383
2384 if test -r "$cache_file"; then
2385 # Some versions of bash will fail to source /dev/null (special files
2386 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2387 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2389 $as_echo "$as_me: loading cache $cache_file" >&6;}
2390 case $cache_file in
2391 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2392 *) . "./$cache_file";;
2393 esac
2394 fi
2395 else
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2397 $as_echo "$as_me: creating cache $cache_file" >&6;}
2398 >$cache_file
2399 fi
2400
2401 as_fn_append ac_header_list " dlfcn.h"
2402 as_fn_append ac_header_list " fcntl.h"
2403 as_fn_append ac_header_list " fpu_control.h"
2404 as_fn_append ac_header_list " termios.h"
2405 as_fn_append ac_header_list " unistd.h"
2406 as_fn_append ac_header_list " utime.h"
2407 as_fn_append ac_header_list " linux/if_tun.h"
2408 as_fn_append ac_header_list " linux/mii.h"
2409 as_fn_append ac_header_list " linux/types.h"
2410 as_fn_append ac_header_list " net/if.h"
2411 as_fn_append ac_header_list " netinet/in.h"
2412 as_fn_append ac_header_list " netinet/tcp.h"
2413 as_fn_append ac_header_list " sys/ioctl.h"
2414 as_fn_append ac_header_list " sys/mman.h"
2415 as_fn_append ac_header_list " sys/mount.h"
2416 as_fn_append ac_header_list " sys/param.h"
2417 as_fn_append ac_header_list " sys/resource.h"
2418 as_fn_append ac_header_list " sys/socket.h"
2419 as_fn_append ac_header_list " sys/stat.h"
2420 as_fn_append ac_header_list " sys/statfs.h"
2421 as_fn_append ac_header_list " sys/termio.h"
2422 as_fn_append ac_header_list " sys/termios.h"
2423 as_fn_append ac_header_list " sys/types.h"
2424 as_fn_append ac_header_list " sys/vfs.h"
2425 as_fn_append ac_func_list " __setfpucw"
2426 as_fn_append ac_func_list " access"
2427 as_fn_append ac_func_list " aint"
2428 as_fn_append ac_func_list " anint"
2429 as_fn_append ac_func_list " cfgetispeed"
2430 as_fn_append ac_func_list " cfgetospeed"
2431 as_fn_append ac_func_list " cfsetispeed"
2432 as_fn_append ac_func_list " cfsetospeed"
2433 as_fn_append ac_func_list " chdir"
2434 as_fn_append ac_func_list " chmod"
2435 as_fn_append ac_func_list " dup"
2436 as_fn_append ac_func_list " dup2"
2437 as_fn_append ac_func_list " execv"
2438 as_fn_append ac_func_list " execve"
2439 as_fn_append ac_func_list " fcntl"
2440 as_fn_append ac_func_list " fork"
2441 as_fn_append ac_func_list " fstat"
2442 as_fn_append ac_func_list " fstatfs"
2443 as_fn_append ac_func_list " ftruncate"
2444 as_fn_append ac_func_list " getdirentries"
2445 as_fn_append ac_func_list " getegid"
2446 as_fn_append ac_func_list " geteuid"
2447 as_fn_append ac_func_list " getgid"
2448 as_fn_append ac_func_list " getpid"
2449 as_fn_append ac_func_list " getppid"
2450 as_fn_append ac_func_list " getrusage"
2451 as_fn_append ac_func_list " gettimeofday"
2452 as_fn_append ac_func_list " getuid"
2453 as_fn_append ac_func_list " ioctl"
2454 as_fn_append ac_func_list " kill"
2455 as_fn_append ac_func_list " link"
2456 as_fn_append ac_func_list " lseek"
2457 as_fn_append ac_func_list " mmap"
2458 as_fn_append ac_func_list " munmap"
2459 as_fn_append ac_func_list " pipe"
2460 as_fn_append ac_func_list " posix_fallocate"
2461 as_fn_append ac_func_list " pread"
2462 as_fn_append ac_func_list " rmdir"
2463 as_fn_append ac_func_list " setregid"
2464 as_fn_append ac_func_list " setreuid"
2465 as_fn_append ac_func_list " setgid"
2466 as_fn_append ac_func_list " setuid"
2467 as_fn_append ac_func_list " sigaction"
2468 as_fn_append ac_func_list " sigprocmask"
2469 as_fn_append ac_func_list " sqrt"
2470 as_fn_append ac_func_list " stat"
2471 as_fn_append ac_func_list " strsignal"
2472 as_fn_append ac_func_list " symlink"
2473 as_fn_append ac_func_list " tcdrain"
2474 as_fn_append ac_func_list " tcflow"
2475 as_fn_append ac_func_list " tcflush"
2476 as_fn_append ac_func_list " tcgetattr"
2477 as_fn_append ac_func_list " tcgetpgrp"
2478 as_fn_append ac_func_list " tcsendbreak"
2479 as_fn_append ac_func_list " tcsetattr"
2480 as_fn_append ac_func_list " tcsetpgrp"
2481 as_fn_append ac_func_list " time"
2482 as_fn_append ac_func_list " truncate"
2483 as_fn_append ac_func_list " umask"
2484 as_fn_append ac_func_list " unlink"
2485 as_fn_append ac_func_list " utime"
2486 # Check that the precious variables saved in the cache have kept the same
2487 # value.
2488 ac_cache_corrupted=false
2489 for ac_var in $ac_precious_vars; do
2490 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2491 eval ac_new_set=\$ac_env_${ac_var}_set
2492 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2493 eval ac_new_val=\$ac_env_${ac_var}_value
2494 case $ac_old_set,$ac_new_set in
2495 set,)
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2497 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2498 ac_cache_corrupted=: ;;
2499 ,set)
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2501 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2502 ac_cache_corrupted=: ;;
2503 ,);;
2504 *)
2505 if test "x$ac_old_val" != "x$ac_new_val"; then
2506 # differences in whitespace do not lead to failure.
2507 ac_old_val_w=`echo x $ac_old_val`
2508 ac_new_val_w=`echo x $ac_new_val`
2509 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2511 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2512 ac_cache_corrupted=:
2513 else
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2515 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2516 eval $ac_var=\$ac_old_val
2517 fi
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2519 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2521 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2522 fi;;
2523 esac
2524 # Pass precious variables to config.status.
2525 if test "$ac_new_set" = set; then
2526 case $ac_new_val in
2527 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2528 *) ac_arg=$ac_var=$ac_new_val ;;
2529 esac
2530 case " $ac_configure_args " in
2531 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2532 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2533 esac
2534 fi
2535 done
2536 if $ac_cache_corrupted; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2540 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2541 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2542 fi
2543 ## -------------------- ##
2544 ## Main body of script. ##
2545 ## -------------------- ##
2546
2547 ac_ext=c
2548 ac_cpp='$CPP $CPPFLAGS'
2549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2552
2553
2554
2555
2556
2557
2558
2559
2560 # Check whether --with-pkgversion was given.
2561 if test "${with_pkgversion+set}" = set; then :
2562 withval=$with_pkgversion; case "$withval" in
2563 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2564 no) PKGVERSION= ;;
2565 *) PKGVERSION="($withval) " ;;
2566 esac
2567 else
2568 PKGVERSION="(SIM) "
2569
2570 fi
2571
2572
2573
2574
2575 cat >>confdefs.h <<_ACEOF
2576 #define PKGVERSION "$PKGVERSION"
2577 _ACEOF
2578
2579
2580
2581 # Check whether --with-bugurl was given.
2582 if test "${with_bugurl+set}" = set; then :
2583 withval=$with_bugurl; case "$withval" in
2584 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2585 no) BUGURL=
2586 ;;
2587 *) BUGURL="$withval"
2588 ;;
2589 esac
2590 else
2591 BUGURL="$PACKAGE_BUGREPORT"
2592
2593 fi
2594
2595 case ${BUGURL} in
2596 "")
2597 REPORT_BUGS_TO=
2598 REPORT_BUGS_TEXI=
2599 ;;
2600 *)
2601 REPORT_BUGS_TO="<$BUGURL>"
2602 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2603 ;;
2604 esac;
2605
2606
2607
2608
2609 cat >>confdefs.h <<_ACEOF
2610 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2611 _ACEOF
2612
2613
2614 ac_config_headers="$ac_config_headers config.h"
2615
2616
2617 ac_aux_dir=
2618 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2619 if test -f "$ac_dir/install-sh"; then
2620 ac_aux_dir=$ac_dir
2621 ac_install_sh="$ac_aux_dir/install-sh -c"
2622 break
2623 elif test -f "$ac_dir/install.sh"; then
2624 ac_aux_dir=$ac_dir
2625 ac_install_sh="$ac_aux_dir/install.sh -c"
2626 break
2627 elif test -f "$ac_dir/shtool"; then
2628 ac_aux_dir=$ac_dir
2629 ac_install_sh="$ac_aux_dir/shtool install -c"
2630 break
2631 fi
2632 done
2633 if test -z "$ac_aux_dir"; then
2634 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2635 fi
2636
2637 # These three variables are undocumented and unsupported,
2638 # and are intended to be withdrawn in a future Autoconf release.
2639 # They can cause serious problems if a builder's source tree is in a directory
2640 # whose full name contains unusual characters.
2641 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2642 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2643 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2644
2645
2646 # Make sure we can run config.sub.
2647 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2648 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2649
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2651 $as_echo_n "checking build system type... " >&6; }
2652 if ${ac_cv_build+:} false; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 ac_build_alias=$build_alias
2656 test "x$ac_build_alias" = x &&
2657 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2658 test "x$ac_build_alias" = x &&
2659 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2660 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2661 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2662
2663 fi
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2665 $as_echo "$ac_cv_build" >&6; }
2666 case $ac_cv_build in
2667 *-*-*) ;;
2668 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2669 esac
2670 build=$ac_cv_build
2671 ac_save_IFS=$IFS; IFS='-'
2672 set x $ac_cv_build
2673 shift
2674 build_cpu=$1
2675 build_vendor=$2
2676 shift; shift
2677 # Remember, the first character of IFS is used to create $*,
2678 # except with old shells:
2679 build_os=$*
2680 IFS=$ac_save_IFS
2681 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2682
2683
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2685 $as_echo_n "checking host system type... " >&6; }
2686 if ${ac_cv_host+:} false; then :
2687 $as_echo_n "(cached) " >&6
2688 else
2689 if test "x$host_alias" = x; then
2690 ac_cv_host=$ac_cv_build
2691 else
2692 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2693 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2694 fi
2695
2696 fi
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2698 $as_echo "$ac_cv_host" >&6; }
2699 case $ac_cv_host in
2700 *-*-*) ;;
2701 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2702 esac
2703 host=$ac_cv_host
2704 ac_save_IFS=$IFS; IFS='-'
2705 set x $ac_cv_host
2706 shift
2707 host_cpu=$1
2708 host_vendor=$2
2709 shift; shift
2710 # Remember, the first character of IFS is used to create $*,
2711 # except with old shells:
2712 host_os=$*
2713 IFS=$ac_save_IFS
2714 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2715
2716
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2718 $as_echo_n "checking target system type... " >&6; }
2719 if ${ac_cv_target+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 if test "x$target_alias" = x; then
2723 ac_cv_target=$ac_cv_host
2724 else
2725 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2726 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2727 fi
2728
2729 fi
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2731 $as_echo "$ac_cv_target" >&6; }
2732 case $ac_cv_target in
2733 *-*-*) ;;
2734 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2735 esac
2736 target=$ac_cv_target
2737 ac_save_IFS=$IFS; IFS='-'
2738 set x $ac_cv_target
2739 shift
2740 target_cpu=$1
2741 target_vendor=$2
2742 shift; shift
2743 # Remember, the first character of IFS is used to create $*,
2744 # except with old shells:
2745 target_os=$*
2746 IFS=$ac_save_IFS
2747 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2748
2749
2750 # The aliases save the names the user supplied, while $host etc.
2751 # will get canonicalized.
2752 test -n "$target_alias" &&
2753 test "$program_prefix$program_suffix$program_transform_name" = \
2754 NONENONEs,x,x, &&
2755 program_prefix=${target_alias}-
2756 # Expand $ac_aux_dir to an absolute path.
2757 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2758
2759 ac_ext=c
2760 ac_cpp='$CPP $CPPFLAGS'
2761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764 if test -n "$ac_tool_prefix"; then
2765 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2766 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if ${ac_cv_prog_CC+:} false; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2777 do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2785 fi
2786 done
2787 done
2788 IFS=$as_save_IFS
2789
2790 fi
2791 fi
2792 CC=$ac_cv_prog_CC
2793 if test -n "$CC"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795 $as_echo "$CC" >&6; }
2796 else
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2799 fi
2800
2801
2802 fi
2803 if test -z "$ac_cv_prog_CC"; then
2804 ac_ct_CC=$CC
2805 # Extract the first word of "gcc", so it can be a program name with args.
2806 set dummy gcc; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 if test -n "$ac_ct_CC"; then
2813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822 ac_cv_prog_ac_ct_CC="gcc"
2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2825 fi
2826 done
2827 done
2828 IFS=$as_save_IFS
2829
2830 fi
2831 fi
2832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2833 if test -n "$ac_ct_CC"; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2835 $as_echo "$ac_ct_CC" >&6; }
2836 else
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2839 fi
2840
2841 if test "x$ac_ct_CC" = x; then
2842 CC=""
2843 else
2844 case $cross_compiling:$ac_tool_warned in
2845 yes:)
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2848 ac_tool_warned=yes ;;
2849 esac
2850 CC=$ac_ct_CC
2851 fi
2852 else
2853 CC="$ac_cv_prog_CC"
2854 fi
2855
2856 if test -z "$CC"; then
2857 if test -n "$ac_tool_prefix"; then
2858 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2859 set dummy ${ac_tool_prefix}cc; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if ${ac_cv_prog_CC+:} false; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 if test -n "$CC"; then
2866 ac_cv_prog_CC="$CC" # Let the user override the test.
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875 ac_cv_prog_CC="${ac_tool_prefix}cc"
2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 break 2
2878 fi
2879 done
2880 done
2881 IFS=$as_save_IFS
2882
2883 fi
2884 fi
2885 CC=$ac_cv_prog_CC
2886 if test -n "$CC"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2888 $as_echo "$CC" >&6; }
2889 else
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2892 fi
2893
2894
2895 fi
2896 fi
2897 if test -z "$CC"; then
2898 # Extract the first word of "cc", so it can be a program name with args.
2899 set dummy cc; ac_word=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if ${ac_cv_prog_CC+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 if test -n "$CC"; then
2906 ac_cv_prog_CC="$CC" # Let the user override the test.
2907 else
2908 ac_prog_rejected=no
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2911 do
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2916 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2917 ac_prog_rejected=yes
2918 continue
2919 fi
2920 ac_cv_prog_CC="cc"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924 done
2925 done
2926 IFS=$as_save_IFS
2927
2928 if test $ac_prog_rejected = yes; then
2929 # We found a bogon in the path, so make sure we never use it.
2930 set dummy $ac_cv_prog_CC
2931 shift
2932 if test $# != 0; then
2933 # We chose a different compiler from the bogus one.
2934 # However, it has the same basename, so the bogon will be chosen
2935 # first if we set CC to just the basename; use the full file name.
2936 shift
2937 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2938 fi
2939 fi
2940 fi
2941 fi
2942 CC=$ac_cv_prog_CC
2943 if test -n "$CC"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2945 $as_echo "$CC" >&6; }
2946 else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951
2952 fi
2953 if test -z "$CC"; then
2954 if test -n "$ac_tool_prefix"; then
2955 for ac_prog in cl.exe
2956 do
2957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if ${ac_cv_prog_CC+:} false; then :
2962 $as_echo_n "(cached) " >&6
2963 else
2964 if test -n "$CC"; then
2965 ac_cv_prog_CC="$CC" # Let the user override the test.
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2969 do
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2974 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 break 2
2977 fi
2978 done
2979 done
2980 IFS=$as_save_IFS
2981
2982 fi
2983 fi
2984 CC=$ac_cv_prog_CC
2985 if test -n "$CC"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2987 $as_echo "$CC" >&6; }
2988 else
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2991 fi
2992
2993
2994 test -n "$CC" && break
2995 done
2996 fi
2997 if test -z "$CC"; then
2998 ac_ct_CC=$CC
2999 for ac_prog in cl.exe
3000 do
3001 # Extract the first word of "$ac_prog", so it can be a program name with args.
3002 set dummy $ac_prog; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 if test -n "$ac_ct_CC"; then
3009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_ac_ct_CC="$ac_prog"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 break 2
3021 fi
3022 done
3023 done
3024 IFS=$as_save_IFS
3025
3026 fi
3027 fi
3028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3029 if test -n "$ac_ct_CC"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3031 $as_echo "$ac_ct_CC" >&6; }
3032 else
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 fi
3036
3037
3038 test -n "$ac_ct_CC" && break
3039 done
3040
3041 if test "x$ac_ct_CC" = x; then
3042 CC=""
3043 else
3044 case $cross_compiling:$ac_tool_warned in
3045 yes:)
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3048 ac_tool_warned=yes ;;
3049 esac
3050 CC=$ac_ct_CC
3051 fi
3052 fi
3053
3054 fi
3055
3056
3057 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3059 as_fn_error $? "no acceptable C compiler found in \$PATH
3060 See \`config.log' for more details" "$LINENO" 5; }
3061
3062 # Provide some information about the compiler.
3063 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3064 set X $ac_compile
3065 ac_compiler=$2
3066 for ac_option in --version -v -V -qversion; do
3067 { { ac_try="$ac_compiler $ac_option >&5"
3068 case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071 esac
3072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073 $as_echo "$ac_try_echo"; } >&5
3074 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3075 ac_status=$?
3076 if test -s conftest.err; then
3077 sed '10a\
3078 ... rest of stderr output deleted ...
3079 10q' conftest.err >conftest.er1
3080 cat conftest.er1 >&5
3081 fi
3082 rm -f conftest.er1 conftest.err
3083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084 test $ac_status = 0; }
3085 done
3086
3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h. */
3089
3090 int
3091 main ()
3092 {
3093
3094 ;
3095 return 0;
3096 }
3097 _ACEOF
3098 ac_clean_files_save=$ac_clean_files
3099 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3100 # Try to create an executable without -o first, disregard a.out.
3101 # It will help us diagnose broken compilers, and finding out an intuition
3102 # of exeext.
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3104 $as_echo_n "checking whether the C compiler works... " >&6; }
3105 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3106
3107 # The possible output files:
3108 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3109
3110 ac_rmfiles=
3111 for ac_file in $ac_files
3112 do
3113 case $ac_file in
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3115 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3116 esac
3117 done
3118 rm -f $ac_rmfiles
3119
3120 if { { ac_try="$ac_link_default"
3121 case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 $as_echo "$ac_try_echo"; } >&5
3127 (eval "$ac_link_default") 2>&5
3128 ac_status=$?
3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }; then :
3131 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3132 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3133 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3134 # so that the user can short-circuit this test for compilers unknown to
3135 # Autoconf.
3136 for ac_file in $ac_files ''
3137 do
3138 test -f "$ac_file" || continue
3139 case $ac_file in
3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3141 ;;
3142 [ab].out )
3143 # We found the default executable, but exeext='' is most
3144 # certainly right.
3145 break;;
3146 *.* )
3147 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3148 then :; else
3149 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150 fi
3151 # We set ac_cv_exeext here because the later test for it is not
3152 # safe: cross compilers may not add the suffix if given an `-o'
3153 # argument, so we may need to know it at that point already.
3154 # Even if this section looks crufty: it has the advantage of
3155 # actually working.
3156 break;;
3157 * )
3158 break;;
3159 esac
3160 done
3161 test "$ac_cv_exeext" = no && ac_cv_exeext=
3162
3163 else
3164 ac_file=''
3165 fi
3166 if test -z "$ac_file"; then :
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3169 $as_echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3171
3172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 as_fn_error 77 "C compiler cannot create executables
3175 See \`config.log' for more details" "$LINENO" 5; }
3176 else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3178 $as_echo "yes" >&6; }
3179 fi
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3181 $as_echo_n "checking for C compiler default output file name... " >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3183 $as_echo "$ac_file" >&6; }
3184 ac_exeext=$ac_cv_exeext
3185
3186 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3187 ac_clean_files=$ac_clean_files_save
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3189 $as_echo_n "checking for suffix of executables... " >&6; }
3190 if { { ac_try="$ac_link"
3191 case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194 esac
3195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196 $as_echo "$ac_try_echo"; } >&5
3197 (eval "$ac_link") 2>&5
3198 ac_status=$?
3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }; then :
3201 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3202 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3203 # work properly (i.e., refer to `conftest.exe'), while it won't with
3204 # `rm'.
3205 for ac_file in conftest.exe conftest conftest.*; do
3206 test -f "$ac_file" || continue
3207 case $ac_file in
3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3209 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3210 break;;
3211 * ) break;;
3212 esac
3213 done
3214 else
3215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3218 See \`config.log' for more details" "$LINENO" 5; }
3219 fi
3220 rm -f conftest conftest$ac_cv_exeext
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3222 $as_echo "$ac_cv_exeext" >&6; }
3223
3224 rm -f conftest.$ac_ext
3225 EXEEXT=$ac_cv_exeext
3226 ac_exeext=$EXEEXT
3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h. */
3229 #include <stdio.h>
3230 int
3231 main ()
3232 {
3233 FILE *f = fopen ("conftest.out", "w");
3234 return ferror (f) || fclose (f) != 0;
3235
3236 ;
3237 return 0;
3238 }
3239 _ACEOF
3240 ac_clean_files="$ac_clean_files conftest.out"
3241 # Check that the compiler produces executables we can run. If not, either
3242 # the compiler is broken, or we cross compile.
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3244 $as_echo_n "checking whether we are cross compiling... " >&6; }
3245 if test "$cross_compiling" != yes; then
3246 { { ac_try="$ac_link"
3247 case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 $as_echo "$ac_try_echo"; } >&5
3253 (eval "$ac_link") 2>&5
3254 ac_status=$?
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }
3257 if { ac_try='./conftest$ac_cv_exeext'
3258 { { case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264 (eval "$ac_try") 2>&5
3265 ac_status=$?
3266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267 test $ac_status = 0; }; }; then
3268 cross_compiling=no
3269 else
3270 if test "$cross_compiling" = maybe; then
3271 cross_compiling=yes
3272 else
3273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 as_fn_error $? "cannot run C compiled programs.
3276 If you meant to cross compile, use \`--host'.
3277 See \`config.log' for more details" "$LINENO" 5; }
3278 fi
3279 fi
3280 fi
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3282 $as_echo "$cross_compiling" >&6; }
3283
3284 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3285 ac_clean_files=$ac_clean_files_save
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3287 $as_echo_n "checking for suffix of object files... " >&6; }
3288 if ${ac_cv_objext+:} false; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3293
3294 int
3295 main ()
3296 {
3297
3298 ;
3299 return 0;
3300 }
3301 _ACEOF
3302 rm -f conftest.o conftest.obj
3303 if { { ac_try="$ac_compile"
3304 case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310 (eval "$ac_compile") 2>&5
3311 ac_status=$?
3312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313 test $ac_status = 0; }; then :
3314 for ac_file in conftest.o conftest.obj conftest.*; do
3315 test -f "$ac_file" || continue;
3316 case $ac_file in
3317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3319 break;;
3320 esac
3321 done
3322 else
3323 $as_echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error $? "cannot compute suffix of object files: cannot compile
3329 See \`config.log' for more details" "$LINENO" 5; }
3330 fi
3331 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3332 fi
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3334 $as_echo "$ac_cv_objext" >&6; }
3335 OBJEXT=$ac_cv_objext
3336 ac_objext=$OBJEXT
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3338 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3339 if ${ac_cv_c_compiler_gnu+:} false; then :
3340 $as_echo_n "(cached) " >&6
3341 else
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3344
3345 int
3346 main ()
3347 {
3348 #ifndef __GNUC__
3349 choke me
3350 #endif
3351
3352 ;
3353 return 0;
3354 }
3355 _ACEOF
3356 if ac_fn_c_try_compile "$LINENO"; then :
3357 ac_compiler_gnu=yes
3358 else
3359 ac_compiler_gnu=no
3360 fi
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3363
3364 fi
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3366 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3367 if test $ac_compiler_gnu = yes; then
3368 GCC=yes
3369 else
3370 GCC=
3371 fi
3372 ac_test_CFLAGS=${CFLAGS+set}
3373 ac_save_CFLAGS=$CFLAGS
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3375 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3376 if ${ac_cv_prog_cc_g+:} false; then :
3377 $as_echo_n "(cached) " >&6
3378 else
3379 ac_save_c_werror_flag=$ac_c_werror_flag
3380 ac_c_werror_flag=yes
3381 ac_cv_prog_cc_g=no
3382 CFLAGS="-g"
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3385
3386 int
3387 main ()
3388 {
3389
3390 ;
3391 return 0;
3392 }
3393 _ACEOF
3394 if ac_fn_c_try_compile "$LINENO"; then :
3395 ac_cv_prog_cc_g=yes
3396 else
3397 CFLAGS=""
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3400
3401 int
3402 main ()
3403 {
3404
3405 ;
3406 return 0;
3407 }
3408 _ACEOF
3409 if ac_fn_c_try_compile "$LINENO"; then :
3410
3411 else
3412 ac_c_werror_flag=$ac_save_c_werror_flag
3413 CFLAGS="-g"
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3416
3417 int
3418 main ()
3419 {
3420
3421 ;
3422 return 0;
3423 }
3424 _ACEOF
3425 if ac_fn_c_try_compile "$LINENO"; then :
3426 ac_cv_prog_cc_g=yes
3427 fi
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429 fi
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 fi
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 ac_c_werror_flag=$ac_save_c_werror_flag
3434 fi
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3436 $as_echo "$ac_cv_prog_cc_g" >&6; }
3437 if test "$ac_test_CFLAGS" = set; then
3438 CFLAGS=$ac_save_CFLAGS
3439 elif test $ac_cv_prog_cc_g = yes; then
3440 if test "$GCC" = yes; then
3441 CFLAGS="-g -O2"
3442 else
3443 CFLAGS="-g"
3444 fi
3445 else
3446 if test "$GCC" = yes; then
3447 CFLAGS="-O2"
3448 else
3449 CFLAGS=
3450 fi
3451 fi
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3453 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3454 if ${ac_cv_prog_cc_c89+:} false; then :
3455 $as_echo_n "(cached) " >&6
3456 else
3457 ac_cv_prog_cc_c89=no
3458 ac_save_CC=$CC
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461 #include <stdarg.h>
3462 #include <stdio.h>
3463 struct stat;
3464 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3465 struct buf { int x; };
3466 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3467 static char *e (p, i)
3468 char **p;
3469 int i;
3470 {
3471 return p[i];
3472 }
3473 static char *f (char * (*g) (char **, int), char **p, ...)
3474 {
3475 char *s;
3476 va_list v;
3477 va_start (v,p);
3478 s = g (p, va_arg (v,int));
3479 va_end (v);
3480 return s;
3481 }
3482
3483 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3484 function prototypes and stuff, but not '\xHH' hex character constants.
3485 These don't provoke an error unfortunately, instead are silently treated
3486 as 'x'. The following induces an error, until -std is added to get
3487 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3488 array size at least. It's necessary to write '\x00'==0 to get something
3489 that's true only with -std. */
3490 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3491
3492 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3493 inside strings and character constants. */
3494 #define FOO(x) 'x'
3495 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3496
3497 int test (int i, double x);
3498 struct s1 {int (*f) (int a);};
3499 struct s2 {int (*f) (double a);};
3500 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3501 int argc;
3502 char **argv;
3503 int
3504 main ()
3505 {
3506 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3507 ;
3508 return 0;
3509 }
3510 _ACEOF
3511 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3512 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3513 do
3514 CC="$ac_save_CC $ac_arg"
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516 ac_cv_prog_cc_c89=$ac_arg
3517 fi
3518 rm -f core conftest.err conftest.$ac_objext
3519 test "x$ac_cv_prog_cc_c89" != "xno" && break
3520 done
3521 rm -f conftest.$ac_ext
3522 CC=$ac_save_CC
3523
3524 fi
3525 # AC_CACHE_VAL
3526 case "x$ac_cv_prog_cc_c89" in
3527 x)
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3529 $as_echo "none needed" >&6; } ;;
3530 xno)
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3532 $as_echo "unsupported" >&6; } ;;
3533 *)
3534 CC="$CC $ac_cv_prog_cc_c89"
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3536 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3537 esac
3538 if test "x$ac_cv_prog_cc_c89" != xno; then :
3539
3540 fi
3541
3542 ac_ext=c
3543 ac_cpp='$CPP $CPPFLAGS'
3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547
3548 ac_ext=c
3549 ac_cpp='$CPP $CPPFLAGS'
3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3554 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3555 if ${am_cv_prog_cc_c_o+:} false; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3560
3561 int
3562 main ()
3563 {
3564
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 # Make sure it works both with $CC and with simple cc.
3570 # Following AC_PROG_CC_C_O, we do the test twice because some
3571 # compilers refuse to overwrite an existing .o file with -o,
3572 # though they will create one.
3573 am_cv_prog_cc_c_o=yes
3574 for am_i in 1 2; do
3575 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3576 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } \
3580 && test -f conftest2.$ac_objext; then
3581 : OK
3582 else
3583 am_cv_prog_cc_c_o=no
3584 break
3585 fi
3586 done
3587 rm -f core conftest*
3588 unset am_i
3589 fi
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3591 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3592 if test "$am_cv_prog_cc_c_o" != yes; then
3593 # Losing compiler, so override with the script.
3594 # FIXME: It is wrong to rewrite CC.
3595 # But if we don't then we get into trouble of one sort or another.
3596 # A longer-term fix would be to have automake use am__CC in this case,
3597 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3598 CC="$am_aux_dir/compile $CC"
3599 fi
3600 ac_ext=c
3601 ac_cpp='$CPP $CPPFLAGS'
3602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605
3606
3607
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3614 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3615 # On Suns, sometimes $CPP names a directory.
3616 if test -n "$CPP" && test -d "$CPP"; then
3617 CPP=
3618 fi
3619 if test -z "$CPP"; then
3620 if ${ac_cv_prog_CPP+:} false; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 # Double quotes because CPP needs to be expanded
3624 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3625 do
3626 ac_preproc_ok=false
3627 for ac_c_preproc_warn_flag in '' yes
3628 do
3629 # Use a header file that comes with gcc, so configuring glibc
3630 # with a fresh cross-compiler works.
3631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3632 # <limits.h> exists even on freestanding compilers.
3633 # On the NeXT, cc -E runs the code through the compiler's parser,
3634 # not just through cpp. "Syntax error" is here to catch this case.
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3637 #ifdef __STDC__
3638 # include <limits.h>
3639 #else
3640 # include <assert.h>
3641 #endif
3642 Syntax error
3643 _ACEOF
3644 if ac_fn_c_try_cpp "$LINENO"; then :
3645
3646 else
3647 # Broken: fails on valid input.
3648 continue
3649 fi
3650 rm -f conftest.err conftest.i conftest.$ac_ext
3651
3652 # OK, works on sane cases. Now check whether nonexistent headers
3653 # can be detected and how.
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3656 #include <ac_nonexistent.h>
3657 _ACEOF
3658 if ac_fn_c_try_cpp "$LINENO"; then :
3659 # Broken: success on invalid input.
3660 continue
3661 else
3662 # Passes both tests.
3663 ac_preproc_ok=:
3664 break
3665 fi
3666 rm -f conftest.err conftest.i conftest.$ac_ext
3667
3668 done
3669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3670 rm -f conftest.i conftest.err conftest.$ac_ext
3671 if $ac_preproc_ok; then :
3672 break
3673 fi
3674
3675 done
3676 ac_cv_prog_CPP=$CPP
3677
3678 fi
3679 CPP=$ac_cv_prog_CPP
3680 else
3681 ac_cv_prog_CPP=$CPP
3682 fi
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3684 $as_echo "$CPP" >&6; }
3685 ac_preproc_ok=false
3686 for ac_c_preproc_warn_flag in '' yes
3687 do
3688 # Use a header file that comes with gcc, so configuring glibc
3689 # with a fresh cross-compiler works.
3690 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3691 # <limits.h> exists even on freestanding compilers.
3692 # On the NeXT, cc -E runs the code through the compiler's parser,
3693 # not just through cpp. "Syntax error" is here to catch this case.
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3696 #ifdef __STDC__
3697 # include <limits.h>
3698 #else
3699 # include <assert.h>
3700 #endif
3701 Syntax error
3702 _ACEOF
3703 if ac_fn_c_try_cpp "$LINENO"; then :
3704
3705 else
3706 # Broken: fails on valid input.
3707 continue
3708 fi
3709 rm -f conftest.err conftest.i conftest.$ac_ext
3710
3711 # OK, works on sane cases. Now check whether nonexistent headers
3712 # can be detected and how.
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715 #include <ac_nonexistent.h>
3716 _ACEOF
3717 if ac_fn_c_try_cpp "$LINENO"; then :
3718 # Broken: success on invalid input.
3719 continue
3720 else
3721 # Passes both tests.
3722 ac_preproc_ok=:
3723 break
3724 fi
3725 rm -f conftest.err conftest.i conftest.$ac_ext
3726
3727 done
3728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3729 rm -f conftest.i conftest.err conftest.$ac_ext
3730 if $ac_preproc_ok; then :
3731
3732 else
3733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3735 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3736 See \`config.log' for more details" "$LINENO" 5; }
3737 fi
3738
3739 ac_ext=c
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744
3745
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3747 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3748 if ${ac_cv_path_GREP+:} false; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 if test -z "$GREP"; then
3752 ac_path_GREP_found=false
3753 # Loop through the user's path and test for each of PROGNAME-LIST
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3756 do
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_prog in grep ggrep; do
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3762 as_fn_executable_p "$ac_path_GREP" || continue
3763 # Check for GNU ac_path_GREP and select it if it is found.
3764 # Check for GNU $ac_path_GREP
3765 case `"$ac_path_GREP" --version 2>&1` in
3766 *GNU*)
3767 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3768 *)
3769 ac_count=0
3770 $as_echo_n 0123456789 >"conftest.in"
3771 while :
3772 do
3773 cat "conftest.in" "conftest.in" >"conftest.tmp"
3774 mv "conftest.tmp" "conftest.in"
3775 cp "conftest.in" "conftest.nl"
3776 $as_echo 'GREP' >> "conftest.nl"
3777 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3779 as_fn_arith $ac_count + 1 && ac_count=$as_val
3780 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3781 # Best one so far, save it but keep looking for a better one
3782 ac_cv_path_GREP="$ac_path_GREP"
3783 ac_path_GREP_max=$ac_count
3784 fi
3785 # 10*(2^10) chars as input seems more than enough
3786 test $ac_count -gt 10 && break
3787 done
3788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3789 esac
3790
3791 $ac_path_GREP_found && break 3
3792 done
3793 done
3794 done
3795 IFS=$as_save_IFS
3796 if test -z "$ac_cv_path_GREP"; then
3797 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3798 fi
3799 else
3800 ac_cv_path_GREP=$GREP
3801 fi
3802
3803 fi
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3805 $as_echo "$ac_cv_path_GREP" >&6; }
3806 GREP="$ac_cv_path_GREP"
3807
3808
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3810 $as_echo_n "checking for egrep... " >&6; }
3811 if ${ac_cv_path_EGREP+:} false; then :
3812 $as_echo_n "(cached) " >&6
3813 else
3814 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3815 then ac_cv_path_EGREP="$GREP -E"
3816 else
3817 if test -z "$EGREP"; then
3818 ac_path_EGREP_found=false
3819 # Loop through the user's path and test for each of PROGNAME-LIST
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3822 do
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for ac_prog in egrep; do
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3828 as_fn_executable_p "$ac_path_EGREP" || continue
3829 # Check for GNU ac_path_EGREP and select it if it is found.
3830 # Check for GNU $ac_path_EGREP
3831 case `"$ac_path_EGREP" --version 2>&1` in
3832 *GNU*)
3833 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3834 *)
3835 ac_count=0
3836 $as_echo_n 0123456789 >"conftest.in"
3837 while :
3838 do
3839 cat "conftest.in" "conftest.in" >"conftest.tmp"
3840 mv "conftest.tmp" "conftest.in"
3841 cp "conftest.in" "conftest.nl"
3842 $as_echo 'EGREP' >> "conftest.nl"
3843 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3845 as_fn_arith $ac_count + 1 && ac_count=$as_val
3846 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3847 # Best one so far, save it but keep looking for a better one
3848 ac_cv_path_EGREP="$ac_path_EGREP"
3849 ac_path_EGREP_max=$ac_count
3850 fi
3851 # 10*(2^10) chars as input seems more than enough
3852 test $ac_count -gt 10 && break
3853 done
3854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3855 esac
3856
3857 $ac_path_EGREP_found && break 3
3858 done
3859 done
3860 done
3861 IFS=$as_save_IFS
3862 if test -z "$ac_cv_path_EGREP"; then
3863 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3864 fi
3865 else
3866 ac_cv_path_EGREP=$EGREP
3867 fi
3868
3869 fi
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3872 $as_echo "$ac_cv_path_EGREP" >&6; }
3873 EGREP="$ac_cv_path_EGREP"
3874
3875
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3877 $as_echo_n "checking for ANSI C header files... " >&6; }
3878 if ${ac_cv_header_stdc+:} false; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3883 #include <stdlib.h>
3884 #include <stdarg.h>
3885 #include <string.h>
3886 #include <float.h>
3887
3888 int
3889 main ()
3890 {
3891
3892 ;
3893 return 0;
3894 }
3895 _ACEOF
3896 if ac_fn_c_try_compile "$LINENO"; then :
3897 ac_cv_header_stdc=yes
3898 else
3899 ac_cv_header_stdc=no
3900 fi
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902
3903 if test $ac_cv_header_stdc = yes; then
3904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907 #include <string.h>
3908
3909 _ACEOF
3910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3911 $EGREP "memchr" >/dev/null 2>&1; then :
3912
3913 else
3914 ac_cv_header_stdc=no
3915 fi
3916 rm -f conftest*
3917
3918 fi
3919
3920 if test $ac_cv_header_stdc = yes; then
3921 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3924 #include <stdlib.h>
3925
3926 _ACEOF
3927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3928 $EGREP "free" >/dev/null 2>&1; then :
3929
3930 else
3931 ac_cv_header_stdc=no
3932 fi
3933 rm -f conftest*
3934
3935 fi
3936
3937 if test $ac_cv_header_stdc = yes; then
3938 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3939 if test "$cross_compiling" = yes; then :
3940 :
3941 else
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3944 #include <ctype.h>
3945 #include <stdlib.h>
3946 #if ((' ' & 0x0FF) == 0x020)
3947 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3948 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3949 #else
3950 # define ISLOWER(c) \
3951 (('a' <= (c) && (c) <= 'i') \
3952 || ('j' <= (c) && (c) <= 'r') \
3953 || ('s' <= (c) && (c) <= 'z'))
3954 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3955 #endif
3956
3957 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3958 int
3959 main ()
3960 {
3961 int i;
3962 for (i = 0; i < 256; i++)
3963 if (XOR (islower (i), ISLOWER (i))
3964 || toupper (i) != TOUPPER (i))
3965 return 2;
3966 return 0;
3967 }
3968 _ACEOF
3969 if ac_fn_c_try_run "$LINENO"; then :
3970
3971 else
3972 ac_cv_header_stdc=no
3973 fi
3974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3975 conftest.$ac_objext conftest.beam conftest.$ac_ext
3976 fi
3977
3978 fi
3979 fi
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3981 $as_echo "$ac_cv_header_stdc" >&6; }
3982 if test $ac_cv_header_stdc = yes; then
3983
3984 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3985
3986 fi
3987
3988 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3989 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3990 inttypes.h stdint.h unistd.h
3991 do :
3992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3993 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3994 "
3995 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3996 cat >>confdefs.h <<_ACEOF
3997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3998 _ACEOF
3999
4000 fi
4001
4002 done
4003
4004
4005
4006 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4007 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4008 MINIX=yes
4009 else
4010 MINIX=
4011 fi
4012
4013
4014 if test "$MINIX" = yes; then
4015
4016 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4017
4018
4019 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4020
4021
4022 $as_echo "#define _MINIX 1" >>confdefs.h
4023
4024 fi
4025
4026
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4028 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4029 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4034
4035 # define __EXTENSIONS__ 1
4036 $ac_includes_default
4037 int
4038 main ()
4039 {
4040
4041 ;
4042 return 0;
4043 }
4044 _ACEOF
4045 if ac_fn_c_try_compile "$LINENO"; then :
4046 ac_cv_safe_to_define___extensions__=yes
4047 else
4048 ac_cv_safe_to_define___extensions__=no
4049 fi
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 fi
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4053 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4054 test $ac_cv_safe_to_define___extensions__ = yes &&
4055 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4056
4057 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4058
4059 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4060
4061 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4062
4063 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4064
4065
4066 test "$program_prefix" != NONE &&
4067 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4068 # Use a double $ so make ignores it.
4069 test "$program_suffix" != NONE &&
4070 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4071 # Double any \ or $.
4072 # By default was `s,x,x', remove it if useless.
4073 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4074 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4075
4076 # Find a good install program. We prefer a C program (faster),
4077 # so one script is as good as another. But avoid the broken or
4078 # incompatible versions:
4079 # SysV /etc/install, /usr/sbin/install
4080 # SunOS /usr/etc/install
4081 # IRIX /sbin/install
4082 # AIX /bin/install
4083 # AmigaOS /C/install, which installs bootblocks on floppy discs
4084 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4085 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4086 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4087 # OS/2's system install, which has a completely different semantic
4088 # ./install, which can be erroneously created by make from ./install.sh.
4089 # Reject install programs that cannot install multiple files.
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4091 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4092 if test -z "$INSTALL"; then
4093 if ${ac_cv_path_install+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH
4098 do
4099 IFS=$as_save_IFS
4100 test -z "$as_dir" && as_dir=.
4101 # Account for people who put trailing slashes in PATH elements.
4102 case $as_dir/ in #((
4103 ./ | .// | /[cC]/* | \
4104 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4105 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4106 /usr/ucb/* ) ;;
4107 *)
4108 # OSF1 and SCO ODT 3.0 have their own names for install.
4109 # Don't use installbsd from OSF since it installs stuff as root
4110 # by default.
4111 for ac_prog in ginstall scoinst install; do
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4114 if test $ac_prog = install &&
4115 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4116 # AIX install. It has an incompatible calling convention.
4117 :
4118 elif test $ac_prog = install &&
4119 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4120 # program-specific install script used by HP pwplus--don't use.
4121 :
4122 else
4123 rm -rf conftest.one conftest.two conftest.dir
4124 echo one > conftest.one
4125 echo two > conftest.two
4126 mkdir conftest.dir
4127 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4128 test -s conftest.one && test -s conftest.two &&
4129 test -s conftest.dir/conftest.one &&
4130 test -s conftest.dir/conftest.two
4131 then
4132 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4133 break 3
4134 fi
4135 fi
4136 fi
4137 done
4138 done
4139 ;;
4140 esac
4141
4142 done
4143 IFS=$as_save_IFS
4144
4145 rm -rf conftest.one conftest.two conftest.dir
4146
4147 fi
4148 if test "${ac_cv_path_install+set}" = set; then
4149 INSTALL=$ac_cv_path_install
4150 else
4151 # As a last resort, use the slow shell script. Don't cache a
4152 # value for INSTALL within a source directory, because that will
4153 # break other packages using the cache if that directory is
4154 # removed, or if the value is a relative name.
4155 INSTALL=$ac_install_sh
4156 fi
4157 fi
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4159 $as_echo "$INSTALL" >&6; }
4160
4161 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4162 # It thinks the first close brace ends the variable substitution.
4163 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4164
4165 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4166
4167 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4168
4169
4170
4171
4172
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4174 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4175 if ${ac_cv_c_bigendian+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 ac_cv_c_bigendian=unknown
4179 # See if we're dealing with a universal compiler.
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182 #ifndef __APPLE_CC__
4183 not a universal capable compiler
4184 #endif
4185 typedef int dummy;
4186
4187 _ACEOF
4188 if ac_fn_c_try_compile "$LINENO"; then :
4189
4190 # Check for potential -arch flags. It is not universal unless
4191 # there are at least two -arch flags with different values.
4192 ac_arch=
4193 ac_prev=
4194 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4195 if test -n "$ac_prev"; then
4196 case $ac_word in
4197 i?86 | x86_64 | ppc | ppc64)
4198 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4199 ac_arch=$ac_word
4200 else
4201 ac_cv_c_bigendian=universal
4202 break
4203 fi
4204 ;;
4205 esac
4206 ac_prev=
4207 elif test "x$ac_word" = "x-arch"; then
4208 ac_prev=arch
4209 fi
4210 done
4211 fi
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 if test $ac_cv_c_bigendian = unknown; then
4214 # See if sys/param.h defines the BYTE_ORDER macro.
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217 #include <sys/types.h>
4218 #include <sys/param.h>
4219
4220 int
4221 main ()
4222 {
4223 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4224 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4225 && LITTLE_ENDIAN)
4226 bogus endian macros
4227 #endif
4228
4229 ;
4230 return 0;
4231 }
4232 _ACEOF
4233 if ac_fn_c_try_compile "$LINENO"; then :
4234 # It does; now see whether it defined to BIG_ENDIAN or not.
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4237 #include <sys/types.h>
4238 #include <sys/param.h>
4239
4240 int
4241 main ()
4242 {
4243 #if BYTE_ORDER != BIG_ENDIAN
4244 not big endian
4245 #endif
4246
4247 ;
4248 return 0;
4249 }
4250 _ACEOF
4251 if ac_fn_c_try_compile "$LINENO"; then :
4252 ac_cv_c_bigendian=yes
4253 else
4254 ac_cv_c_bigendian=no
4255 fi
4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 fi
4258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 fi
4260 if test $ac_cv_c_bigendian = unknown; then
4261 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264 #include <limits.h>
4265
4266 int
4267 main ()
4268 {
4269 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4270 bogus endian macros
4271 #endif
4272
4273 ;
4274 return 0;
4275 }
4276 _ACEOF
4277 if ac_fn_c_try_compile "$LINENO"; then :
4278 # It does; now see whether it defined to _BIG_ENDIAN or not.
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281 #include <limits.h>
4282
4283 int
4284 main ()
4285 {
4286 #ifndef _BIG_ENDIAN
4287 not big endian
4288 #endif
4289
4290 ;
4291 return 0;
4292 }
4293 _ACEOF
4294 if ac_fn_c_try_compile "$LINENO"; then :
4295 ac_cv_c_bigendian=yes
4296 else
4297 ac_cv_c_bigendian=no
4298 fi
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 fi
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 fi
4303 if test $ac_cv_c_bigendian = unknown; then
4304 # Compile a test program.
4305 if test "$cross_compiling" = yes; then :
4306 # Try to guess by grepping values from an object file.
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309 short int ascii_mm[] =
4310 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4311 short int ascii_ii[] =
4312 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4313 int use_ascii (int i) {
4314 return ascii_mm[i] + ascii_ii[i];
4315 }
4316 short int ebcdic_ii[] =
4317 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4318 short int ebcdic_mm[] =
4319 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4320 int use_ebcdic (int i) {
4321 return ebcdic_mm[i] + ebcdic_ii[i];
4322 }
4323 extern int foo;
4324
4325 int
4326 main ()
4327 {
4328 return use_ascii (foo) == use_ebcdic (foo);
4329 ;
4330 return 0;
4331 }
4332 _ACEOF
4333 if ac_fn_c_try_compile "$LINENO"; then :
4334 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4335 ac_cv_c_bigendian=yes
4336 fi
4337 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4338 if test "$ac_cv_c_bigendian" = unknown; then
4339 ac_cv_c_bigendian=no
4340 else
4341 # finding both strings is unlikely to happen, but who knows?
4342 ac_cv_c_bigendian=unknown
4343 fi
4344 fi
4345 fi
4346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347 else
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350 $ac_includes_default
4351 int
4352 main ()
4353 {
4354
4355 /* Are we little or big endian? From Harbison&Steele. */
4356 union
4357 {
4358 long int l;
4359 char c[sizeof (long int)];
4360 } u;
4361 u.l = 1;
4362 return u.c[sizeof (long int) - 1] == 1;
4363
4364 ;
4365 return 0;
4366 }
4367 _ACEOF
4368 if ac_fn_c_try_run "$LINENO"; then :
4369 ac_cv_c_bigendian=no
4370 else
4371 ac_cv_c_bigendian=yes
4372 fi
4373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4374 conftest.$ac_objext conftest.beam conftest.$ac_ext
4375 fi
4376
4377 fi
4378 fi
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4380 $as_echo "$ac_cv_c_bigendian" >&6; }
4381 case $ac_cv_c_bigendian in #(
4382 yes)
4383 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4384 ;; #(
4385 no)
4386 ;; #(
4387 universal)
4388
4389 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4390
4391 ;; #(
4392 *)
4393 as_fn_error $? "unknown endianness
4394 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4395 esac
4396
4397
4398
4399
4400 if test "x$cross_compiling" = "xno"; then
4401 : "${AR_FOR_BUILD:=\$(AR)}"
4402 : "${CC_FOR_BUILD:=\$(CC)}"
4403 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4404 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4405 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4406 else
4407 : "${AR_FOR_BUILD:=ar}"
4408 : "${CC_FOR_BUILD:=gcc}"
4409 : "${RANLIB_FOR_BUILD:=ranlib}"
4410 : "${CFLAGS_FOR_BUILD:=-g -O}"
4411 : "${LDLFAGS_FOR_BUILD:=}"
4412 fi
4413
4414
4415
4416
4417
4418
4419
4420 if test -n "$ac_tool_prefix"; then
4421 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4422 set dummy ${ac_tool_prefix}ar; ac_word=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if ${ac_cv_prog_AR+:} false; then :
4426 $as_echo_n "(cached) " >&6
4427 else
4428 if test -n "$AR"; then
4429 ac_cv_prog_AR="$AR" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_prog_AR="${ac_tool_prefix}ar"
4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4441 fi
4442 done
4443 done
4444 IFS=$as_save_IFS
4445
4446 fi
4447 fi
4448 AR=$ac_cv_prog_AR
4449 if test -n "$AR"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4451 $as_echo "$AR" >&6; }
4452 else
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4455 fi
4456
4457
4458 fi
4459 if test -z "$ac_cv_prog_AR"; then
4460 ac_ct_AR=$AR
4461 # Extract the first word of "ar", so it can be a program name with args.
4462 set dummy ar; ac_word=$2
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 $as_echo_n "checking for $ac_word... " >&6; }
4465 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 if test -n "$ac_ct_AR"; then
4469 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4478 ac_cv_prog_ac_ct_AR="ar"
4479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4481 fi
4482 done
4483 done
4484 IFS=$as_save_IFS
4485
4486 fi
4487 fi
4488 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4489 if test -n "$ac_ct_AR"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4491 $as_echo "$ac_ct_AR" >&6; }
4492 else
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4495 fi
4496
4497 if test "x$ac_ct_AR" = x; then
4498 AR=""
4499 else
4500 case $cross_compiling:$ac_tool_warned in
4501 yes:)
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4504 ac_tool_warned=yes ;;
4505 esac
4506 AR=$ac_ct_AR
4507 fi
4508 else
4509 AR="$ac_cv_prog_AR"
4510 fi
4511
4512 if test -n "$ac_tool_prefix"; then
4513 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4514 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516 $as_echo_n "checking for $ac_word... " >&6; }
4517 if ${ac_cv_prog_RANLIB+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 if test -n "$RANLIB"; then
4521 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4533 fi
4534 done
4535 done
4536 IFS=$as_save_IFS
4537
4538 fi
4539 fi
4540 RANLIB=$ac_cv_prog_RANLIB
4541 if test -n "$RANLIB"; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4543 $as_echo "$RANLIB" >&6; }
4544 else
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4547 fi
4548
4549
4550 fi
4551 if test -z "$ac_cv_prog_RANLIB"; then
4552 ac_ct_RANLIB=$RANLIB
4553 # Extract the first word of "ranlib", so it can be a program name with args.
4554 set dummy ranlib; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$ac_ct_RANLIB"; then
4561 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 ac_cv_prog_ac_ct_RANLIB="ranlib"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4573 fi
4574 done
4575 done
4576 IFS=$as_save_IFS
4577
4578 fi
4579 fi
4580 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4581 if test -n "$ac_ct_RANLIB"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4583 $as_echo "$ac_ct_RANLIB" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4587 fi
4588
4589 if test "x$ac_ct_RANLIB" = x; then
4590 RANLIB=":"
4591 else
4592 case $cross_compiling:$ac_tool_warned in
4593 yes:)
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4596 ac_tool_warned=yes ;;
4597 esac
4598 RANLIB=$ac_ct_RANLIB
4599 fi
4600 else
4601 RANLIB="$ac_cv_prog_RANLIB"
4602 fi
4603
4604
4605 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
4606 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
4607 # is C99. So handle it ourselves.
4608 :
4609 C_DIALECT=
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4611 $as_echo_n "checking whether C11 is supported by default... " >&6; }
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614
4615 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4616 # error "C11 support not found"
4617 #endif
4618
4619 _ACEOF
4620 if ac_fn_c_try_compile "$LINENO"; then :
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4622 $as_echo "yes" >&6; }
4623 else
4624
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4628 $as_echo_n "checking for -std=c11 support... " >&6; }
4629 ac_save_CC="$CC"
4630 CC="$CC -std=c11"
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633
4634 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4635 # error "C11 support not found"
4636 #endif
4637
4638 _ACEOF
4639 if ac_fn_c_try_compile "$LINENO"; then :
4640
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4642 $as_echo "yes" >&6; }
4643 CC="$ac_save_CC"
4644 C_DIALECT="-std=c11"
4645
4646 else
4647 as_fn_error $? "C11 is required" "$LINENO" 5
4648 fi
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 fi
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652
4653
4654
4655
4656
4657 for ac_header in $ac_header_list
4658 do :
4659 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4660 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4661 "
4662 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4663 cat >>confdefs.h <<_ACEOF
4664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4665 _ACEOF
4666
4667 fi
4668
4669 done
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
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 for ac_func in $ac_func_list
4723 do :
4724 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4725 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4726 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4727 cat >>confdefs.h <<_ACEOF
4728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4729 _ACEOF
4730
4731 fi
4732 done
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4857 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4858 if ${ac_cv_struct_tm+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4863 #include <sys/types.h>
4864 #include <time.h>
4865
4866 int
4867 main ()
4868 {
4869 struct tm tm;
4870 int *p = &tm.tm_sec;
4871 return !p;
4872 ;
4873 return 0;
4874 }
4875 _ACEOF
4876 if ac_fn_c_try_compile "$LINENO"; then :
4877 ac_cv_struct_tm=time.h
4878 else
4879 ac_cv_struct_tm=sys/time.h
4880 fi
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4884 $as_echo "$ac_cv_struct_tm" >&6; }
4885 if test $ac_cv_struct_tm = sys/time.h; then
4886
4887 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4888
4889 fi
4890
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4892 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4893 if ${ac_cv_type_uid_t+:} false; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4898 #include <sys/types.h>
4899
4900 _ACEOF
4901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4902 $EGREP "uid_t" >/dev/null 2>&1; then :
4903 ac_cv_type_uid_t=yes
4904 else
4905 ac_cv_type_uid_t=no
4906 fi
4907 rm -f conftest*
4908
4909 fi
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4911 $as_echo "$ac_cv_type_uid_t" >&6; }
4912 if test $ac_cv_type_uid_t = no; then
4913
4914 $as_echo "#define uid_t int" >>confdefs.h
4915
4916
4917 $as_echo "#define gid_t int" >>confdefs.h
4918
4919 fi
4920
4921 case `pwd` in
4922 *\ * | *\ *)
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4924 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4925 esac
4926
4927
4928
4929 macro_version='2.2.7a'
4930 macro_revision='1.3134'
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944 ltmain="$ac_aux_dir/ltmain.sh"
4945
4946 # Backslashify metacharacters that are still active within
4947 # double-quoted strings.
4948 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4949
4950 # Same as above, but do not quote variable references.
4951 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4952
4953 # Sed substitution to delay expansion of an escaped shell variable in a
4954 # double_quote_subst'ed string.
4955 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4956
4957 # Sed substitution to delay expansion of an escaped single quote.
4958 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4959
4960 # Sed substitution to avoid accidental globbing in evaled expressions
4961 no_glob_subst='s/\*/\\\*/g'
4962
4963 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4964 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4965 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4966
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4968 $as_echo_n "checking how to print strings... " >&6; }
4969 # Test print first, because it will be a builtin if present.
4970 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4971 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4972 ECHO='print -r --'
4973 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4974 ECHO='printf %s\n'
4975 else
4976 # Use this function as a fallback that always works.
4977 func_fallback_echo ()
4978 {
4979 eval 'cat <<_LTECHO_EOF
4980 $1
4981 _LTECHO_EOF'
4982 }
4983 ECHO='func_fallback_echo'
4984 fi
4985
4986 # func_echo_all arg...
4987 # Invoke $ECHO with all args, space-separated.
4988 func_echo_all ()
4989 {
4990 $ECHO ""
4991 }
4992
4993 case "$ECHO" in
4994 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4995 $as_echo "printf" >&6; } ;;
4996 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4997 $as_echo "print -r" >&6; } ;;
4998 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4999 $as_echo "cat" >&6; } ;;
5000 esac
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5016 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5017 if ${ac_cv_path_SED+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5021 for ac_i in 1 2 3 4 5 6 7; do
5022 ac_script="$ac_script$as_nl$ac_script"
5023 done
5024 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5025 { ac_script=; unset ac_script;}
5026 if test -z "$SED"; then
5027 ac_path_SED_found=false
5028 # Loop through the user's path and test for each of PROGNAME-LIST
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_prog in sed gsed; do
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5037 as_fn_executable_p "$ac_path_SED" || continue
5038 # Check for GNU ac_path_SED and select it if it is found.
5039 # Check for GNU $ac_path_SED
5040 case `"$ac_path_SED" --version 2>&1` in
5041 *GNU*)
5042 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5043 *)
5044 ac_count=0
5045 $as_echo_n 0123456789 >"conftest.in"
5046 while :
5047 do
5048 cat "conftest.in" "conftest.in" >"conftest.tmp"
5049 mv "conftest.tmp" "conftest.in"
5050 cp "conftest.in" "conftest.nl"
5051 $as_echo '' >> "conftest.nl"
5052 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5054 as_fn_arith $ac_count + 1 && ac_count=$as_val
5055 if test $ac_count -gt ${ac_path_SED_max-0}; then
5056 # Best one so far, save it but keep looking for a better one
5057 ac_cv_path_SED="$ac_path_SED"
5058 ac_path_SED_max=$ac_count
5059 fi
5060 # 10*(2^10) chars as input seems more than enough
5061 test $ac_count -gt 10 && break
5062 done
5063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5064 esac
5065
5066 $ac_path_SED_found && break 3
5067 done
5068 done
5069 done
5070 IFS=$as_save_IFS
5071 if test -z "$ac_cv_path_SED"; then
5072 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5073 fi
5074 else
5075 ac_cv_path_SED=$SED
5076 fi
5077
5078 fi
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5080 $as_echo "$ac_cv_path_SED" >&6; }
5081 SED="$ac_cv_path_SED"
5082 rm -f conftest.sed
5083
5084 test -z "$SED" && SED=sed
5085 Xsed="$SED -e 1s/^X//"
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5098 $as_echo_n "checking for fgrep... " >&6; }
5099 if ${ac_cv_path_FGREP+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5103 then ac_cv_path_FGREP="$GREP -F"
5104 else
5105 if test -z "$FGREP"; then
5106 ac_path_FGREP_found=false
5107 # Loop through the user's path and test for each of PROGNAME-LIST
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5110 do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_prog in fgrep; do
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5116 as_fn_executable_p "$ac_path_FGREP" || continue
5117 # Check for GNU ac_path_FGREP and select it if it is found.
5118 # Check for GNU $ac_path_FGREP
5119 case `"$ac_path_FGREP" --version 2>&1` in
5120 *GNU*)
5121 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5122 *)
5123 ac_count=0
5124 $as_echo_n 0123456789 >"conftest.in"
5125 while :
5126 do
5127 cat "conftest.in" "conftest.in" >"conftest.tmp"
5128 mv "conftest.tmp" "conftest.in"
5129 cp "conftest.in" "conftest.nl"
5130 $as_echo 'FGREP' >> "conftest.nl"
5131 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5133 as_fn_arith $ac_count + 1 && ac_count=$as_val
5134 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5135 # Best one so far, save it but keep looking for a better one
5136 ac_cv_path_FGREP="$ac_path_FGREP"
5137 ac_path_FGREP_max=$ac_count
5138 fi
5139 # 10*(2^10) chars as input seems more than enough
5140 test $ac_count -gt 10 && break
5141 done
5142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5143 esac
5144
5145 $ac_path_FGREP_found && break 3
5146 done
5147 done
5148 done
5149 IFS=$as_save_IFS
5150 if test -z "$ac_cv_path_FGREP"; then
5151 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5152 fi
5153 else
5154 ac_cv_path_FGREP=$FGREP
5155 fi
5156
5157 fi
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5160 $as_echo "$ac_cv_path_FGREP" >&6; }
5161 FGREP="$ac_cv_path_FGREP"
5162
5163
5164 test -z "$GREP" && GREP=grep
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184 # Check whether --with-gnu-ld was given.
5185 if test "${with_gnu_ld+set}" = set; then :
5186 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5187 else
5188 with_gnu_ld=no
5189 fi
5190
5191 ac_prog=ld
5192 if test "$GCC" = yes; then
5193 # Check if gcc -print-prog-name=ld gives a path.
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5195 $as_echo_n "checking for ld used by $CC... " >&6; }
5196 case $host in
5197 *-*-mingw*)
5198 # gcc leaves a trailing carriage return which upsets mingw
5199 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5200 *)
5201 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5202 esac
5203 case $ac_prog in
5204 # Accept absolute paths.
5205 [\\/]* | ?:[\\/]*)
5206 re_direlt='/[^/][^/]*/\.\./'
5207 # Canonicalize the pathname of ld
5208 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5209 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5210 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5211 done
5212 test -z "$LD" && LD="$ac_prog"
5213 ;;
5214 "")
5215 # If it fails, then pretend we aren't using GCC.
5216 ac_prog=ld
5217 ;;
5218 *)
5219 # If it is relative, then search for the first ld in PATH.
5220 with_gnu_ld=unknown
5221 ;;
5222 esac
5223 elif test "$with_gnu_ld" = yes; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5225 $as_echo_n "checking for GNU ld... " >&6; }
5226 else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5228 $as_echo_n "checking for non-GNU ld... " >&6; }
5229 fi
5230 if ${lt_cv_path_LD+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 if test -z "$LD"; then
5234 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5235 for ac_dir in $PATH; do
5236 IFS="$lt_save_ifs"
5237 test -z "$ac_dir" && ac_dir=.
5238 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5239 lt_cv_path_LD="$ac_dir/$ac_prog"
5240 # Check to see if the program is GNU ld. I'd rather use --version,
5241 # but apparently some variants of GNU ld only accept -v.
5242 # Break only if it was the GNU/non-GNU ld that we prefer.
5243 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5244 *GNU* | *'with BFD'*)
5245 test "$with_gnu_ld" != no && break
5246 ;;
5247 *)
5248 test "$with_gnu_ld" != yes && break
5249 ;;
5250 esac
5251 fi
5252 done
5253 IFS="$lt_save_ifs"
5254 else
5255 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5256 fi
5257 fi
5258
5259 LD="$lt_cv_path_LD"
5260 if test -n "$LD"; then
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5262 $as_echo "$LD" >&6; }
5263 else
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265 $as_echo "no" >&6; }
5266 fi
5267 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5269 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5270 if ${lt_cv_prog_gnu_ld+:} false; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5274 case `$LD -v 2>&1 </dev/null` in
5275 *GNU* | *'with BFD'*)
5276 lt_cv_prog_gnu_ld=yes
5277 ;;
5278 *)
5279 lt_cv_prog_gnu_ld=no
5280 ;;
5281 esac
5282 fi
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5284 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5285 with_gnu_ld=$lt_cv_prog_gnu_ld
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5296 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5297 if ${lt_cv_path_NM+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 if test -n "$NM"; then
5301 # Let the user override the test.
5302 lt_cv_path_NM="$NM"
5303 else
5304 lt_nm_to_check="${ac_tool_prefix}nm"
5305 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5306 lt_nm_to_check="$lt_nm_to_check nm"
5307 fi
5308 for lt_tmp_nm in $lt_nm_to_check; do
5309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5310 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5311 IFS="$lt_save_ifs"
5312 test -z "$ac_dir" && ac_dir=.
5313 tmp_nm="$ac_dir/$lt_tmp_nm"
5314 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5315 # Check to see if the nm accepts a BSD-compat flag.
5316 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5317 # nm: unknown option "B" ignored
5318 # Tru64's nm complains that /dev/null is an invalid object file
5319 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5320 */dev/null* | *'Invalid file or object type'*)
5321 lt_cv_path_NM="$tmp_nm -B"
5322 break
5323 ;;
5324 *)
5325 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5326 */dev/null*)
5327 lt_cv_path_NM="$tmp_nm -p"
5328 break
5329 ;;
5330 *)
5331 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5332 continue # so that we can try to find one that supports BSD flags
5333 ;;
5334 esac
5335 ;;
5336 esac
5337 fi
5338 done
5339 IFS="$lt_save_ifs"
5340 done
5341 : ${lt_cv_path_NM=no}
5342 fi
5343 fi
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5345 $as_echo "$lt_cv_path_NM" >&6; }
5346 if test "$lt_cv_path_NM" != "no"; then
5347 NM="$lt_cv_path_NM"
5348 else
5349 # Didn't find any BSD compatible name lister, look for dumpbin.
5350 if test -n "$DUMPBIN"; then :
5351 # Let the user override the test.
5352 else
5353 if test -n "$ac_tool_prefix"; then
5354 for ac_prog in dumpbin "link -dump"
5355 do
5356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if ${ac_cv_prog_DUMPBIN+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 if test -n "$DUMPBIN"; then
5364 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5376 fi
5377 done
5378 done
5379 IFS=$as_save_IFS
5380
5381 fi
5382 fi
5383 DUMPBIN=$ac_cv_prog_DUMPBIN
5384 if test -n "$DUMPBIN"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5386 $as_echo "$DUMPBIN" >&6; }
5387 else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5390 fi
5391
5392
5393 test -n "$DUMPBIN" && break
5394 done
5395 fi
5396 if test -z "$DUMPBIN"; then
5397 ac_ct_DUMPBIN=$DUMPBIN
5398 for ac_prog in dumpbin "link -dump"
5399 do
5400 # Extract the first word of "$ac_prog", so it can be a program name with args.
5401 set dummy $ac_prog; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 if test -n "$ac_ct_DUMPBIN"; then
5408 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5412 do
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5420 fi
5421 done
5422 done
5423 IFS=$as_save_IFS
5424
5425 fi
5426 fi
5427 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5428 if test -n "$ac_ct_DUMPBIN"; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5430 $as_echo "$ac_ct_DUMPBIN" >&6; }
5431 else
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 $as_echo "no" >&6; }
5434 fi
5435
5436
5437 test -n "$ac_ct_DUMPBIN" && break
5438 done
5439
5440 if test "x$ac_ct_DUMPBIN" = x; then
5441 DUMPBIN=":"
5442 else
5443 case $cross_compiling:$ac_tool_warned in
5444 yes:)
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5447 ac_tool_warned=yes ;;
5448 esac
5449 DUMPBIN=$ac_ct_DUMPBIN
5450 fi
5451 fi
5452
5453 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5454 *COFF*)
5455 DUMPBIN="$DUMPBIN -symbols"
5456 ;;
5457 *)
5458 DUMPBIN=:
5459 ;;
5460 esac
5461 fi
5462
5463 if test "$DUMPBIN" != ":"; then
5464 NM="$DUMPBIN"
5465 fi
5466 fi
5467 test -z "$NM" && NM=nm
5468
5469
5470
5471
5472
5473
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5475 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5476 if ${lt_cv_nm_interface+:} false; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 lt_cv_nm_interface="BSD nm"
5480 echo "int some_variable = 0;" > conftest.$ac_ext
5481 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5482 (eval "$ac_compile" 2>conftest.err)
5483 cat conftest.err >&5
5484 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5485 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5486 cat conftest.err >&5
5487 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5488 cat conftest.out >&5
5489 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5490 lt_cv_nm_interface="MS dumpbin"
5491 fi
5492 rm -f conftest*
5493 fi
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5495 $as_echo "$lt_cv_nm_interface" >&6; }
5496
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5498 $as_echo_n "checking whether ln -s works... " >&6; }
5499 LN_S=$as_ln_s
5500 if test "$LN_S" = "ln -s"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5502 $as_echo "yes" >&6; }
5503 else
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5505 $as_echo "no, using $LN_S" >&6; }
5506 fi
5507
5508 # find the maximum length of command line arguments
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5510 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5511 if ${lt_cv_sys_max_cmd_len+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 i=0
5515 teststring="ABCD"
5516
5517 case $build_os in
5518 msdosdjgpp*)
5519 # On DJGPP, this test can blow up pretty badly due to problems in libc
5520 # (any single argument exceeding 2000 bytes causes a buffer overrun
5521 # during glob expansion). Even if it were fixed, the result of this
5522 # check would be larger than it should be.
5523 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5524 ;;
5525
5526 gnu*)
5527 # Under GNU Hurd, this test is not required because there is
5528 # no limit to the length of command line arguments.
5529 # Libtool will interpret -1 as no limit whatsoever
5530 lt_cv_sys_max_cmd_len=-1;
5531 ;;
5532
5533 cygwin* | mingw* | cegcc*)
5534 # On Win9x/ME, this test blows up -- it succeeds, but takes
5535 # about 5 minutes as the teststring grows exponentially.
5536 # Worse, since 9x/ME are not pre-emptively multitasking,
5537 # you end up with a "frozen" computer, even though with patience
5538 # the test eventually succeeds (with a max line length of 256k).
5539 # Instead, let's just punt: use the minimum linelength reported by
5540 # all of the supported platforms: 8192 (on NT/2K/XP).
5541 lt_cv_sys_max_cmd_len=8192;
5542 ;;
5543
5544 mint*)
5545 # On MiNT this can take a long time and run out of memory.
5546 lt_cv_sys_max_cmd_len=8192;
5547 ;;
5548
5549 amigaos*)
5550 # On AmigaOS with pdksh, this test takes hours, literally.
5551 # So we just punt and use a minimum line length of 8192.
5552 lt_cv_sys_max_cmd_len=8192;
5553 ;;
5554
5555 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5556 # This has been around since 386BSD, at least. Likely further.
5557 if test -x /sbin/sysctl; then
5558 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5559 elif test -x /usr/sbin/sysctl; then
5560 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5561 else
5562 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5563 fi
5564 # And add a safety zone
5565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5566 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5567 ;;
5568
5569 interix*)
5570 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5571 lt_cv_sys_max_cmd_len=196608
5572 ;;
5573
5574 osf*)
5575 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5576 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5577 # nice to cause kernel panics so lets avoid the loop below.
5578 # First set a reasonable default.
5579 lt_cv_sys_max_cmd_len=16384
5580 #
5581 if test -x /sbin/sysconfig; then
5582 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5583 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5584 esac
5585 fi
5586 ;;
5587 sco3.2v5*)
5588 lt_cv_sys_max_cmd_len=102400
5589 ;;
5590 sysv5* | sco5v6* | sysv4.2uw2*)
5591 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5592 if test -n "$kargmax"; then
5593 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5594 else
5595 lt_cv_sys_max_cmd_len=32768
5596 fi
5597 ;;
5598 *)
5599 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5600 if test -n "$lt_cv_sys_max_cmd_len"; then
5601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5603 else
5604 # Make teststring a little bigger before we do anything with it.
5605 # a 1K string should be a reasonable start.
5606 for i in 1 2 3 4 5 6 7 8 ; do
5607 teststring=$teststring$teststring
5608 done
5609 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5610 # If test is not a shell built-in, we'll probably end up computing a
5611 # maximum length that is only half of the actual maximum length, but
5612 # we can't tell.
5613 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5614 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5615 test $i != 17 # 1/2 MB should be enough
5616 do
5617 i=`expr $i + 1`
5618 teststring=$teststring$teststring
5619 done
5620 # Only check the string length outside the loop.
5621 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5622 teststring=
5623 # Add a significant safety factor because C++ compilers can tack on
5624 # massive amounts of additional arguments before passing them to the
5625 # linker. It appears as though 1/2 is a usable value.
5626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5627 fi
5628 ;;
5629 esac
5630
5631 fi
5632
5633 if test -n $lt_cv_sys_max_cmd_len ; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5635 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5636 else
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5638 $as_echo "none" >&6; }
5639 fi
5640 max_cmd_len=$lt_cv_sys_max_cmd_len
5641
5642
5643
5644
5645
5646
5647 : ${CP="cp -f"}
5648 : ${MV="mv -f"}
5649 : ${RM="rm -f"}
5650
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5652 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5653 # Try some XSI features
5654 xsi_shell=no
5655 ( _lt_dummy="a/b/c"
5656 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5657 = c,a/b,, \
5658 && eval 'test $(( 1 + 1 )) -eq 2 \
5659 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5660 && xsi_shell=yes
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5662 $as_echo "$xsi_shell" >&6; }
5663
5664
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5666 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5667 lt_shell_append=no
5668 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5669 >/dev/null 2>&1 \
5670 && lt_shell_append=yes
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5672 $as_echo "$lt_shell_append" >&6; }
5673
5674
5675 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5676 lt_unset=unset
5677 else
5678 lt_unset=false
5679 fi
5680
5681
5682
5683
5684
5685 # test EBCDIC or ASCII
5686 case `echo X|tr X '\101'` in
5687 A) # ASCII based system
5688 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5689 lt_SP2NL='tr \040 \012'
5690 lt_NL2SP='tr \015\012 \040\040'
5691 ;;
5692 *) # EBCDIC based system
5693 lt_SP2NL='tr \100 \n'
5694 lt_NL2SP='tr \r\n \100\100'
5695 ;;
5696 esac
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5707 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5708 if ${lt_cv_ld_reload_flag+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 lt_cv_ld_reload_flag='-r'
5712 fi
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5714 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5715 reload_flag=$lt_cv_ld_reload_flag
5716 case $reload_flag in
5717 "" | " "*) ;;
5718 *) reload_flag=" $reload_flag" ;;
5719 esac
5720 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5721 case $host_os in
5722 darwin*)
5723 if test "$GCC" = yes; then
5724 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5725 else
5726 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5727 fi
5728 ;;
5729 esac
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739 if test -n "$ac_tool_prefix"; then
5740 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5741 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if ${ac_cv_prog_OBJDUMP+:} false; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 if test -n "$OBJDUMP"; then
5748 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753 IFS=$as_save_IFS
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5764
5765 fi
5766 fi
5767 OBJDUMP=$ac_cv_prog_OBJDUMP
5768 if test -n "$OBJDUMP"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5770 $as_echo "$OBJDUMP" >&6; }
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5774 fi
5775
5776
5777 fi
5778 if test -z "$ac_cv_prog_OBJDUMP"; then
5779 ac_ct_OBJDUMP=$OBJDUMP
5780 # Extract the first word of "objdump", so it can be a program name with args.
5781 set dummy objdump; ac_word=$2
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5783 $as_echo_n "checking for $ac_word... " >&6; }
5784 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5787 if test -n "$ac_ct_OBJDUMP"; then
5788 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5789 else
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793 IFS=$as_save_IFS
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 break 2
5800 fi
5801 done
5802 done
5803 IFS=$as_save_IFS
5804
5805 fi
5806 fi
5807 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5808 if test -n "$ac_ct_OBJDUMP"; then
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5810 $as_echo "$ac_ct_OBJDUMP" >&6; }
5811 else
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813 $as_echo "no" >&6; }
5814 fi
5815
5816 if test "x$ac_ct_OBJDUMP" = x; then
5817 OBJDUMP="false"
5818 else
5819 case $cross_compiling:$ac_tool_warned in
5820 yes:)
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5823 ac_tool_warned=yes ;;
5824 esac
5825 OBJDUMP=$ac_ct_OBJDUMP
5826 fi
5827 else
5828 OBJDUMP="$ac_cv_prog_OBJDUMP"
5829 fi
5830
5831 test -z "$OBJDUMP" && OBJDUMP=objdump
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5842 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5843 if ${lt_cv_deplibs_check_method+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 lt_cv_file_magic_cmd='$MAGIC_CMD'
5847 lt_cv_file_magic_test_file=
5848 lt_cv_deplibs_check_method='unknown'
5849 # Need to set the preceding variable on all platforms that support
5850 # interlibrary dependencies.
5851 # 'none' -- dependencies not supported.
5852 # `unknown' -- same as none, but documents that we really don't know.
5853 # 'pass_all' -- all dependencies passed with no checks.
5854 # 'test_compile' -- check by making test program.
5855 # 'file_magic [[regex]]' -- check by looking for files in library path
5856 # which responds to the $file_magic_cmd with a given extended regex.
5857 # If you have `file' or equivalent on your system and you're not sure
5858 # whether `pass_all' will *always* work, you probably want this one.
5859
5860 case $host_os in
5861 aix[4-9]*)
5862 lt_cv_deplibs_check_method=pass_all
5863 ;;
5864
5865 beos*)
5866 lt_cv_deplibs_check_method=pass_all
5867 ;;
5868
5869 bsdi[45]*)
5870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5871 lt_cv_file_magic_cmd='/usr/bin/file -L'
5872 lt_cv_file_magic_test_file=/shlib/libc.so
5873 ;;
5874
5875 cygwin*)
5876 # func_win32_libid is a shell function defined in ltmain.sh
5877 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5878 lt_cv_file_magic_cmd='func_win32_libid'
5879 ;;
5880
5881 mingw* | pw32*)
5882 # Base MSYS/MinGW do not provide the 'file' command needed by
5883 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5884 # unless we find 'file', for example because we are cross-compiling.
5885 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5886 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5887 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5888 lt_cv_file_magic_cmd='func_win32_libid'
5889 else
5890 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5891 lt_cv_file_magic_cmd='$OBJDUMP -f'
5892 fi
5893 ;;
5894
5895 cegcc*)
5896 # use the weaker test based on 'objdump'. See mingw*.
5897 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5898 lt_cv_file_magic_cmd='$OBJDUMP -f'
5899 ;;
5900
5901 darwin* | rhapsody*)
5902 lt_cv_deplibs_check_method=pass_all
5903 ;;
5904
5905 freebsd* | dragonfly*)
5906 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5907 case $host_cpu in
5908 i*86 )
5909 # Not sure whether the presence of OpenBSD here was a mistake.
5910 # Let's accept both of them until this is cleared up.
5911 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5912 lt_cv_file_magic_cmd=/usr/bin/file
5913 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5914 ;;
5915 esac
5916 else
5917 lt_cv_deplibs_check_method=pass_all
5918 fi
5919 ;;
5920
5921 gnu*)
5922 lt_cv_deplibs_check_method=pass_all
5923 ;;
5924
5925 haiku*)
5926 lt_cv_deplibs_check_method=pass_all
5927 ;;
5928
5929 hpux10.20* | hpux11*)
5930 lt_cv_file_magic_cmd=/usr/bin/file
5931 case $host_cpu in
5932 ia64*)
5933 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5934 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5935 ;;
5936 hppa*64*)
5937 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]'
5938 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5939 ;;
5940 *)
5941 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5942 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5943 ;;
5944 esac
5945 ;;
5946
5947 interix[3-9]*)
5948 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5950 ;;
5951
5952 irix5* | irix6* | nonstopux*)
5953 case $LD in
5954 *-32|*"-32 ") libmagic=32-bit;;
5955 *-n32|*"-n32 ") libmagic=N32;;
5956 *-64|*"-64 ") libmagic=64-bit;;
5957 *) libmagic=never-match;;
5958 esac
5959 lt_cv_deplibs_check_method=pass_all
5960 ;;
5961
5962 # This must be Linux ELF.
5963 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5964 lt_cv_deplibs_check_method=pass_all
5965 ;;
5966
5967 netbsd*)
5968 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5970 else
5971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5972 fi
5973 ;;
5974
5975 newos6*)
5976 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5977 lt_cv_file_magic_cmd=/usr/bin/file
5978 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5979 ;;
5980
5981 *nto* | *qnx*)
5982 lt_cv_deplibs_check_method=pass_all
5983 ;;
5984
5985 openbsd*)
5986 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5988 else
5989 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5990 fi
5991 ;;
5992
5993 osf3* | osf4* | osf5*)
5994 lt_cv_deplibs_check_method=pass_all
5995 ;;
5996
5997 rdos*)
5998 lt_cv_deplibs_check_method=pass_all
5999 ;;
6000
6001 solaris*)
6002 lt_cv_deplibs_check_method=pass_all
6003 ;;
6004
6005 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6006 lt_cv_deplibs_check_method=pass_all
6007 ;;
6008
6009 sysv4 | sysv4.3*)
6010 case $host_vendor in
6011 motorola)
6012 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]'
6013 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6014 ;;
6015 ncr)
6016 lt_cv_deplibs_check_method=pass_all
6017 ;;
6018 sequent)
6019 lt_cv_file_magic_cmd='/bin/file'
6020 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6021 ;;
6022 sni)
6023 lt_cv_file_magic_cmd='/bin/file'
6024 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6025 lt_cv_file_magic_test_file=/lib/libc.so
6026 ;;
6027 siemens)
6028 lt_cv_deplibs_check_method=pass_all
6029 ;;
6030 pc)
6031 lt_cv_deplibs_check_method=pass_all
6032 ;;
6033 esac
6034 ;;
6035
6036 tpf*)
6037 lt_cv_deplibs_check_method=pass_all
6038 ;;
6039 esac
6040
6041 fi
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6043 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6044 file_magic_cmd=$lt_cv_file_magic_cmd
6045 deplibs_check_method=$lt_cv_deplibs_check_method
6046 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059 plugin_option=
6060 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6061 for plugin in $plugin_names; do
6062 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6063 if test x$plugin_so = x$plugin; then
6064 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6065 fi
6066 if test x$plugin_so != x$plugin; then
6067 plugin_option="--plugin $plugin_so"
6068 break
6069 fi
6070 done
6071
6072 if test -n "$ac_tool_prefix"; then
6073 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6074 set dummy ${ac_tool_prefix}ar; ac_word=$2
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076 $as_echo_n "checking for $ac_word... " >&6; }
6077 if ${ac_cv_prog_AR+:} false; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 if test -n "$AR"; then
6081 ac_cv_prog_AR="$AR" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6090 ac_cv_prog_AR="${ac_tool_prefix}ar"
6091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 break 2
6093 fi
6094 done
6095 done
6096 IFS=$as_save_IFS
6097
6098 fi
6099 fi
6100 AR=$ac_cv_prog_AR
6101 if test -n "$AR"; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6103 $as_echo "$AR" >&6; }
6104 else
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 $as_echo "no" >&6; }
6107 fi
6108
6109
6110 fi
6111 if test -z "$ac_cv_prog_AR"; then
6112 ac_ct_AR=$AR
6113 # Extract the first word of "ar", so it can be a program name with args.
6114 set dummy ar; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 if test -n "$ac_ct_AR"; then
6121 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_ac_ct_AR="ar"
6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6133 fi
6134 done
6135 done
6136 IFS=$as_save_IFS
6137
6138 fi
6139 fi
6140 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6141 if test -n "$ac_ct_AR"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6143 $as_echo "$ac_ct_AR" >&6; }
6144 else
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6147 fi
6148
6149 if test "x$ac_ct_AR" = x; then
6150 AR="false"
6151 else
6152 case $cross_compiling:$ac_tool_warned in
6153 yes:)
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6156 ac_tool_warned=yes ;;
6157 esac
6158 AR=$ac_ct_AR
6159 fi
6160 else
6161 AR="$ac_cv_prog_AR"
6162 fi
6163
6164 test -z "$AR" && AR=ar
6165 if test -n "$plugin_option"; then
6166 if $AR --help 2>&1 | grep -q "\--plugin"; then
6167 touch conftest.c
6168 $AR $plugin_option rc conftest.a conftest.c
6169 if test "$?" != 0; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6171 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6172 else
6173 AR="$AR $plugin_option"
6174 fi
6175 rm -f conftest.*
6176 fi
6177 fi
6178 test -z "$AR_FLAGS" && AR_FLAGS=cru
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190 if test -n "$ac_tool_prefix"; then
6191 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6192 set dummy ${ac_tool_prefix}strip; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if ${ac_cv_prog_STRIP+:} false; then :
6196 $as_echo_n "(cached) " >&6
6197 else
6198 if test -n "$STRIP"; then
6199 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6208 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 break 2
6211 fi
6212 done
6213 done
6214 IFS=$as_save_IFS
6215
6216 fi
6217 fi
6218 STRIP=$ac_cv_prog_STRIP
6219 if test -n "$STRIP"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6221 $as_echo "$STRIP" >&6; }
6222 else
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6225 fi
6226
6227
6228 fi
6229 if test -z "$ac_cv_prog_STRIP"; then
6230 ac_ct_STRIP=$STRIP
6231 # Extract the first word of "strip", so it can be a program name with args.
6232 set dummy strip; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 if test -n "$ac_ct_STRIP"; then
6239 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248 ac_cv_prog_ac_ct_STRIP="strip"
6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 break 2
6251 fi
6252 done
6253 done
6254 IFS=$as_save_IFS
6255
6256 fi
6257 fi
6258 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6259 if test -n "$ac_ct_STRIP"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6261 $as_echo "$ac_ct_STRIP" >&6; }
6262 else
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6265 fi
6266
6267 if test "x$ac_ct_STRIP" = x; then
6268 STRIP=":"
6269 else
6270 case $cross_compiling:$ac_tool_warned in
6271 yes:)
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6274 ac_tool_warned=yes ;;
6275 esac
6276 STRIP=$ac_ct_STRIP
6277 fi
6278 else
6279 STRIP="$ac_cv_prog_STRIP"
6280 fi
6281
6282 test -z "$STRIP" && STRIP=:
6283
6284
6285
6286
6287
6288
6289 if test -n "$ac_tool_prefix"; then
6290 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6291 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if ${ac_cv_prog_RANLIB+:} false; then :
6295 $as_echo_n "(cached) " >&6
6296 else
6297 if test -n "$RANLIB"; then
6298 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6307 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 break 2
6310 fi
6311 done
6312 done
6313 IFS=$as_save_IFS
6314
6315 fi
6316 fi
6317 RANLIB=$ac_cv_prog_RANLIB
6318 if test -n "$RANLIB"; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6320 $as_echo "$RANLIB" >&6; }
6321 else
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6324 fi
6325
6326
6327 fi
6328 if test -z "$ac_cv_prog_RANLIB"; then
6329 ac_ct_RANLIB=$RANLIB
6330 # Extract the first word of "ranlib", so it can be a program name with args.
6331 set dummy ranlib; ac_word=$2
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333 $as_echo_n "checking for $ac_word... " >&6; }
6334 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 if test -n "$ac_ct_RANLIB"; then
6338 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6339 else
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6347 ac_cv_prog_ac_ct_RANLIB="ranlib"
6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 break 2
6350 fi
6351 done
6352 done
6353 IFS=$as_save_IFS
6354
6355 fi
6356 fi
6357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6358 if test -n "$ac_ct_RANLIB"; then
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6360 $as_echo "$ac_ct_RANLIB" >&6; }
6361 else
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; }
6364 fi
6365
6366 if test "x$ac_ct_RANLIB" = x; then
6367 RANLIB=":"
6368 else
6369 case $cross_compiling:$ac_tool_warned in
6370 yes:)
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6373 ac_tool_warned=yes ;;
6374 esac
6375 RANLIB=$ac_ct_RANLIB
6376 fi
6377 else
6378 RANLIB="$ac_cv_prog_RANLIB"
6379 fi
6380
6381 test -z "$RANLIB" && RANLIB=:
6382 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6383 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6384 RANLIB="$RANLIB $plugin_option"
6385 fi
6386 fi
6387
6388
6389
6390
6391
6392
6393 # Determine commands to create old-style static archives.
6394 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6395 old_postinstall_cmds='chmod 644 $oldlib'
6396 old_postuninstall_cmds=
6397
6398 if test -n "$RANLIB"; then
6399 case $host_os in
6400 openbsd*)
6401 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6402 ;;
6403 *)
6404 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6405 ;;
6406 esac
6407 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6408 fi
6409
6410 case $host_os in
6411 darwin*)
6412 lock_old_archive_extraction=yes ;;
6413 *)
6414 lock_old_archive_extraction=no ;;
6415 esac
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437 for ac_prog in gawk mawk nawk awk
6438 do
6439 # Extract the first word of "$ac_prog", so it can be a program name with args.
6440 set dummy $ac_prog; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_AWK+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -n "$AWK"; then
6447 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_prog_AWK="$ac_prog"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6459 fi
6460 done
6461 done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 AWK=$ac_cv_prog_AWK
6467 if test -n "$AWK"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6469 $as_echo "$AWK" >&6; }
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475
6476 test -n "$AWK" && break
6477 done
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497 # If no C compiler was specified, use CC.
6498 LTCC=${LTCC-"$CC"}
6499
6500 # If no C compiler flags were specified, use CFLAGS.
6501 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6502
6503 # Allow CC to be a program name with arguments.
6504 compiler=$CC
6505
6506
6507 # Check for command to grab the raw symbol name followed by C symbol from nm.
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6509 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6510 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6511 $as_echo_n "(cached) " >&6
6512 else
6513
6514 # These are sane defaults that work on at least a few old systems.
6515 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6516
6517 # Character class describing NM global symbol codes.
6518 symcode='[BCDEGRST]'
6519
6520 # Regexp to match symbols that can be accessed directly from C.
6521 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6522
6523 # Define system-specific variables.
6524 case $host_os in
6525 aix*)
6526 symcode='[BCDT]'
6527 ;;
6528 cygwin* | mingw* | pw32* | cegcc*)
6529 symcode='[ABCDGISTW]'
6530 ;;
6531 hpux*)
6532 if test "$host_cpu" = ia64; then
6533 symcode='[ABCDEGRST]'
6534 fi
6535 ;;
6536 irix* | nonstopux*)
6537 symcode='[BCDEGRST]'
6538 ;;
6539 osf*)
6540 symcode='[BCDEGQRST]'
6541 ;;
6542 solaris*)
6543 symcode='[BDRT]'
6544 ;;
6545 sco3.2v5*)
6546 symcode='[DT]'
6547 ;;
6548 sysv4.2uw2*)
6549 symcode='[DT]'
6550 ;;
6551 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6552 symcode='[ABDT]'
6553 ;;
6554 sysv4)
6555 symcode='[DFNSTU]'
6556 ;;
6557 esac
6558
6559 # If we're using GNU nm, then use its standard symbol codes.
6560 case `$NM -V 2>&1` in
6561 *GNU* | *'with BFD'*)
6562 symcode='[ABCDGIRSTW]' ;;
6563 esac
6564
6565 # Transform an extracted symbol line into a proper C declaration.
6566 # Some systems (esp. on ia64) link data and code symbols differently,
6567 # so use this general approach.
6568 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6569
6570 # Transform an extracted symbol line into symbol name and symbol address
6571 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6572 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'"
6573
6574 # Handle CRLF in mingw tool chain
6575 opt_cr=
6576 case $build_os in
6577 mingw*)
6578 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6579 ;;
6580 esac
6581
6582 # Try without a prefix underscore, then with it.
6583 for ac_symprfx in "" "_"; do
6584
6585 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6586 symxfrm="\\1 $ac_symprfx\\2 \\2"
6587
6588 # Write the raw and C identifiers.
6589 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6590 # Fake it for dumpbin and say T for any non-static function
6591 # and D for any global variable.
6592 # Also find C++ and __fastcall symbols from MSVC++,
6593 # which start with @ or ?.
6594 lt_cv_sys_global_symbol_pipe="$AWK '"\
6595 " {last_section=section; section=\$ 3};"\
6596 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6597 " \$ 0!~/External *\|/{next};"\
6598 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6599 " {if(hide[section]) next};"\
6600 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6601 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6602 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6603 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6604 " ' prfx=^$ac_symprfx"
6605 else
6606 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6607 fi
6608
6609 # Check to see that the pipe works correctly.
6610 pipe_works=no
6611
6612 rm -f conftest*
6613 cat > conftest.$ac_ext <<_LT_EOF
6614 #ifdef __cplusplus
6615 extern "C" {
6616 #endif
6617 char nm_test_var;
6618 void nm_test_func(void);
6619 void nm_test_func(void){}
6620 #ifdef __cplusplus
6621 }
6622 #endif
6623 int main(){nm_test_var='a';nm_test_func();return(0);}
6624 _LT_EOF
6625
6626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6627 (eval $ac_compile) 2>&5
6628 ac_status=$?
6629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6630 test $ac_status = 0; }; then
6631 # Now try to grab the symbols.
6632 nlist=conftest.nm
6633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6634 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6635 ac_status=$?
6636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6637 test $ac_status = 0; } && test -s "$nlist"; then
6638 # Try sorting and uniquifying the output.
6639 if sort "$nlist" | uniq > "$nlist"T; then
6640 mv -f "$nlist"T "$nlist"
6641 else
6642 rm -f "$nlist"T
6643 fi
6644
6645 # Make sure that we snagged all the symbols we need.
6646 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6647 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6648 cat <<_LT_EOF > conftest.$ac_ext
6649 #ifdef __cplusplus
6650 extern "C" {
6651 #endif
6652
6653 _LT_EOF
6654 # Now generate the symbol file.
6655 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6656
6657 cat <<_LT_EOF >> conftest.$ac_ext
6658
6659 /* The mapping between symbol names and symbols. */
6660 const struct {
6661 const char *name;
6662 void *address;
6663 }
6664 lt__PROGRAM__LTX_preloaded_symbols[] =
6665 {
6666 { "@PROGRAM@", (void *) 0 },
6667 _LT_EOF
6668 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6669 cat <<\_LT_EOF >> conftest.$ac_ext
6670 {0, (void *) 0}
6671 };
6672
6673 /* This works around a problem in FreeBSD linker */
6674 #ifdef FREEBSD_WORKAROUND
6675 static const void *lt_preloaded_setup() {
6676 return lt__PROGRAM__LTX_preloaded_symbols;
6677 }
6678 #endif
6679
6680 #ifdef __cplusplus
6681 }
6682 #endif
6683 _LT_EOF
6684 # Now try linking the two files.
6685 mv conftest.$ac_objext conftstm.$ac_objext
6686 lt_save_LIBS="$LIBS"
6687 lt_save_CFLAGS="$CFLAGS"
6688 LIBS="conftstm.$ac_objext"
6689 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6691 (eval $ac_link) 2>&5
6692 ac_status=$?
6693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6695 pipe_works=yes
6696 fi
6697 LIBS="$lt_save_LIBS"
6698 CFLAGS="$lt_save_CFLAGS"
6699 else
6700 echo "cannot find nm_test_func in $nlist" >&5
6701 fi
6702 else
6703 echo "cannot find nm_test_var in $nlist" >&5
6704 fi
6705 else
6706 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6707 fi
6708 else
6709 echo "$progname: failed program was:" >&5
6710 cat conftest.$ac_ext >&5
6711 fi
6712 rm -rf conftest* conftst*
6713
6714 # Do not use the global_symbol_pipe unless it works.
6715 if test "$pipe_works" = yes; then
6716 break
6717 else
6718 lt_cv_sys_global_symbol_pipe=
6719 fi
6720 done
6721
6722 fi
6723
6724 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6725 lt_cv_sys_global_symbol_to_cdecl=
6726 fi
6727 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6729 $as_echo "failed" >&6; }
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6732 $as_echo "ok" >&6; }
6733 fi
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756 # Check whether --enable-libtool-lock was given.
6757 if test "${enable_libtool_lock+set}" = set; then :
6758 enableval=$enable_libtool_lock;
6759 fi
6760
6761 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6762
6763 # Some flags need to be propagated to the compiler or linker for good
6764 # libtool support.
6765 case $host in
6766 ia64-*-hpux*)
6767 # Find out which ABI we are using.
6768 echo 'int i;' > conftest.$ac_ext
6769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6770 (eval $ac_compile) 2>&5
6771 ac_status=$?
6772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773 test $ac_status = 0; }; then
6774 case `/usr/bin/file conftest.$ac_objext` in
6775 *ELF-32*)
6776 HPUX_IA64_MODE="32"
6777 ;;
6778 *ELF-64*)
6779 HPUX_IA64_MODE="64"
6780 ;;
6781 esac
6782 fi
6783 rm -rf conftest*
6784 ;;
6785 *-*-irix6*)
6786 # Find out which ABI we are using.
6787 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6789 (eval $ac_compile) 2>&5
6790 ac_status=$?
6791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792 test $ac_status = 0; }; then
6793 if test "$lt_cv_prog_gnu_ld" = yes; then
6794 case `/usr/bin/file conftest.$ac_objext` in
6795 *32-bit*)
6796 LD="${LD-ld} -melf32bsmip"
6797 ;;
6798 *N32*)
6799 LD="${LD-ld} -melf32bmipn32"
6800 ;;
6801 *64-bit*)
6802 LD="${LD-ld} -melf64bmip"
6803 ;;
6804 esac
6805 else
6806 case `/usr/bin/file conftest.$ac_objext` in
6807 *32-bit*)
6808 LD="${LD-ld} -32"
6809 ;;
6810 *N32*)
6811 LD="${LD-ld} -n32"
6812 ;;
6813 *64-bit*)
6814 LD="${LD-ld} -64"
6815 ;;
6816 esac
6817 fi
6818 fi
6819 rm -rf conftest*
6820 ;;
6821
6822 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6823 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6824 # Find out which ABI we are using.
6825 echo 'int i;' > conftest.$ac_ext
6826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6827 (eval $ac_compile) 2>&5
6828 ac_status=$?
6829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6830 test $ac_status = 0; }; then
6831 case `/usr/bin/file conftest.o` in
6832 *32-bit*)
6833 case $host in
6834 x86_64-*kfreebsd*-gnu)
6835 LD="${LD-ld} -m elf_i386_fbsd"
6836 ;;
6837 x86_64-*linux*)
6838 case `/usr/bin/file conftest.o` in
6839 *x86-64*)
6840 LD="${LD-ld} -m elf32_x86_64"
6841 ;;
6842 *)
6843 LD="${LD-ld} -m elf_i386"
6844 ;;
6845 esac
6846 ;;
6847 powerpc64le-*linux*)
6848 LD="${LD-ld} -m elf32lppclinux"
6849 ;;
6850 powerpc64-*linux*)
6851 LD="${LD-ld} -m elf32ppclinux"
6852 ;;
6853 s390x-*linux*)
6854 LD="${LD-ld} -m elf_s390"
6855 ;;
6856 sparc64-*linux*)
6857 LD="${LD-ld} -m elf32_sparc"
6858 ;;
6859 esac
6860 ;;
6861 *64-bit*)
6862 case $host in
6863 x86_64-*kfreebsd*-gnu)
6864 LD="${LD-ld} -m elf_x86_64_fbsd"
6865 ;;
6866 x86_64-*linux*)
6867 LD="${LD-ld} -m elf_x86_64"
6868 ;;
6869 powerpcle-*linux*)
6870 LD="${LD-ld} -m elf64lppc"
6871 ;;
6872 powerpc-*linux*)
6873 LD="${LD-ld} -m elf64ppc"
6874 ;;
6875 s390*-*linux*|s390*-*tpf*)
6876 LD="${LD-ld} -m elf64_s390"
6877 ;;
6878 sparc*-*linux*)
6879 LD="${LD-ld} -m elf64_sparc"
6880 ;;
6881 esac
6882 ;;
6883 esac
6884 fi
6885 rm -rf conftest*
6886 ;;
6887
6888 *-*-sco3.2v5*)
6889 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6890 SAVE_CFLAGS="$CFLAGS"
6891 CFLAGS="$CFLAGS -belf"
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6893 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6894 if ${lt_cv_cc_needs_belf+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 ac_ext=c
6898 ac_cpp='$CPP $CPPFLAGS'
6899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6902
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6905
6906 int
6907 main ()
6908 {
6909
6910 ;
6911 return 0;
6912 }
6913 _ACEOF
6914 if ac_fn_c_try_link "$LINENO"; then :
6915 lt_cv_cc_needs_belf=yes
6916 else
6917 lt_cv_cc_needs_belf=no
6918 fi
6919 rm -f core conftest.err conftest.$ac_objext \
6920 conftest$ac_exeext conftest.$ac_ext
6921 ac_ext=c
6922 ac_cpp='$CPP $CPPFLAGS'
6923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6926
6927 fi
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6929 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6930 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6931 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6932 CFLAGS="$SAVE_CFLAGS"
6933 fi
6934 ;;
6935 sparc*-*solaris*)
6936 # Find out which ABI we are using.
6937 echo 'int i;' > conftest.$ac_ext
6938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6939 (eval $ac_compile) 2>&5
6940 ac_status=$?
6941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6942 test $ac_status = 0; }; then
6943 case `/usr/bin/file conftest.o` in
6944 *64-bit*)
6945 case $lt_cv_prog_gnu_ld in
6946 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6947 *)
6948 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6949 LD="${LD-ld} -64"
6950 fi
6951 ;;
6952 esac
6953 ;;
6954 esac
6955 fi
6956 rm -rf conftest*
6957 ;;
6958 esac
6959
6960 need_locks="$enable_libtool_lock"
6961
6962
6963 case $host_os in
6964 rhapsody* | darwin*)
6965 if test -n "$ac_tool_prefix"; then
6966 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6967 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969 $as_echo_n "checking for $ac_word... " >&6; }
6970 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 if test -n "$DSYMUTIL"; then
6974 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6975 else
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 break 2
6986 fi
6987 done
6988 done
6989 IFS=$as_save_IFS
6990
6991 fi
6992 fi
6993 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6994 if test -n "$DSYMUTIL"; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6996 $as_echo "$DSYMUTIL" >&6; }
6997 else
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 $as_echo "no" >&6; }
7000 fi
7001
7002
7003 fi
7004 if test -z "$ac_cv_prog_DSYMUTIL"; then
7005 ac_ct_DSYMUTIL=$DSYMUTIL
7006 # Extract the first word of "dsymutil", so it can be a program name with args.
7007 set dummy dsymutil; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7011 $as_echo_n "(cached) " >&6
7012 else
7013 if test -n "$ac_ct_DSYMUTIL"; then
7014 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027 done
7028 done
7029 IFS=$as_save_IFS
7030
7031 fi
7032 fi
7033 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7034 if test -n "$ac_ct_DSYMUTIL"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7036 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7037 else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7040 fi
7041
7042 if test "x$ac_ct_DSYMUTIL" = x; then
7043 DSYMUTIL=":"
7044 else
7045 case $cross_compiling:$ac_tool_warned in
7046 yes:)
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7049 ac_tool_warned=yes ;;
7050 esac
7051 DSYMUTIL=$ac_ct_DSYMUTIL
7052 fi
7053 else
7054 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7055 fi
7056
7057 if test -n "$ac_tool_prefix"; then
7058 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7059 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if ${ac_cv_prog_NMEDIT+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 if test -n "$NMEDIT"; then
7066 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083 fi
7084 fi
7085 NMEDIT=$ac_cv_prog_NMEDIT
7086 if test -n "$NMEDIT"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7088 $as_echo "$NMEDIT" >&6; }
7089 else
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7092 fi
7093
7094
7095 fi
7096 if test -z "$ac_cv_prog_NMEDIT"; then
7097 ac_ct_NMEDIT=$NMEDIT
7098 # Extract the first word of "nmedit", so it can be a program name with args.
7099 set dummy nmedit; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 if test -n "$ac_ct_NMEDIT"; then
7106 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119 done
7120 done
7121 IFS=$as_save_IFS
7122
7123 fi
7124 fi
7125 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7126 if test -n "$ac_ct_NMEDIT"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7128 $as_echo "$ac_ct_NMEDIT" >&6; }
7129 else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132 fi
7133
7134 if test "x$ac_ct_NMEDIT" = x; then
7135 NMEDIT=":"
7136 else
7137 case $cross_compiling:$ac_tool_warned in
7138 yes:)
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7141 ac_tool_warned=yes ;;
7142 esac
7143 NMEDIT=$ac_ct_NMEDIT
7144 fi
7145 else
7146 NMEDIT="$ac_cv_prog_NMEDIT"
7147 fi
7148
7149 if test -n "$ac_tool_prefix"; then
7150 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7151 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_LIPO+:} false; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 if test -n "$LIPO"; then
7158 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 LIPO=$ac_cv_prog_LIPO
7178 if test -n "$LIPO"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7180 $as_echo "$LIPO" >&6; }
7181 else
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186
7187 fi
7188 if test -z "$ac_cv_prog_LIPO"; then
7189 ac_ct_LIPO=$LIPO
7190 # Extract the first word of "lipo", so it can be a program name with args.
7191 set dummy lipo; ac_word=$2
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 $as_echo_n "checking for $ac_word... " >&6; }
7194 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 if test -n "$ac_ct_LIPO"; then
7198 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7207 ac_cv_prog_ac_ct_LIPO="lipo"
7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7210 fi
7211 done
7212 done
7213 IFS=$as_save_IFS
7214
7215 fi
7216 fi
7217 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7218 if test -n "$ac_ct_LIPO"; then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7220 $as_echo "$ac_ct_LIPO" >&6; }
7221 else
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 $as_echo "no" >&6; }
7224 fi
7225
7226 if test "x$ac_ct_LIPO" = x; then
7227 LIPO=":"
7228 else
7229 case $cross_compiling:$ac_tool_warned in
7230 yes:)
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7233 ac_tool_warned=yes ;;
7234 esac
7235 LIPO=$ac_ct_LIPO
7236 fi
7237 else
7238 LIPO="$ac_cv_prog_LIPO"
7239 fi
7240
7241 if test -n "$ac_tool_prefix"; then
7242 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7243 set dummy ${ac_tool_prefix}otool; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_OTOOL+:} false; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 if test -n "$OTOOL"; then
7250 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263 done
7264 done
7265 IFS=$as_save_IFS
7266
7267 fi
7268 fi
7269 OTOOL=$ac_cv_prog_OTOOL
7270 if test -n "$OTOOL"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7272 $as_echo "$OTOOL" >&6; }
7273 else
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7277
7278
7279 fi
7280 if test -z "$ac_cv_prog_OTOOL"; then
7281 ac_ct_OTOOL=$OTOOL
7282 # Extract the first word of "otool", so it can be a program name with args.
7283 set dummy otool; ac_word=$2
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285 $as_echo_n "checking for $ac_word... " >&6; }
7286 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 if test -n "$ac_ct_OTOOL"; then
7290 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299 ac_cv_prog_ac_ct_OTOOL="otool"
7300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 break 2
7302 fi
7303 done
7304 done
7305 IFS=$as_save_IFS
7306
7307 fi
7308 fi
7309 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7310 if test -n "$ac_ct_OTOOL"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7312 $as_echo "$ac_ct_OTOOL" >&6; }
7313 else
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315 $as_echo "no" >&6; }
7316 fi
7317
7318 if test "x$ac_ct_OTOOL" = x; then
7319 OTOOL=":"
7320 else
7321 case $cross_compiling:$ac_tool_warned in
7322 yes:)
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7325 ac_tool_warned=yes ;;
7326 esac
7327 OTOOL=$ac_ct_OTOOL
7328 fi
7329 else
7330 OTOOL="$ac_cv_prog_OTOOL"
7331 fi
7332
7333 if test -n "$ac_tool_prefix"; then
7334 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7335 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_OTOOL64+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$OTOOL64"; then
7342 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355 done
7356 done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 OTOOL64=$ac_cv_prog_OTOOL64
7362 if test -n "$OTOOL64"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7364 $as_echo "$OTOOL64" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370
7371 fi
7372 if test -z "$ac_cv_prog_OTOOL64"; then
7373 ac_ct_OTOOL64=$OTOOL64
7374 # Extract the first word of "otool64", so it can be a program name with args.
7375 set dummy otool64; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 if test -n "$ac_ct_OTOOL64"; then
7382 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387 IFS=$as_save_IFS
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7391 ac_cv_prog_ac_ct_OTOOL64="otool64"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 break 2
7394 fi
7395 done
7396 done
7397 IFS=$as_save_IFS
7398
7399 fi
7400 fi
7401 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7402 if test -n "$ac_ct_OTOOL64"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7404 $as_echo "$ac_ct_OTOOL64" >&6; }
7405 else
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7408 fi
7409
7410 if test "x$ac_ct_OTOOL64" = x; then
7411 OTOOL64=":"
7412 else
7413 case $cross_compiling:$ac_tool_warned in
7414 yes:)
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7417 ac_tool_warned=yes ;;
7418 esac
7419 OTOOL64=$ac_ct_OTOOL64
7420 fi
7421 else
7422 OTOOL64="$ac_cv_prog_OTOOL64"
7423 fi
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7452 $as_echo_n "checking for -single_module linker flag... " >&6; }
7453 if ${lt_cv_apple_cc_single_mod+:} false; then :
7454 $as_echo_n "(cached) " >&6
7455 else
7456 lt_cv_apple_cc_single_mod=no
7457 if test -z "${LT_MULTI_MODULE}"; then
7458 # By default we will add the -single_module flag. You can override
7459 # by either setting the environment variable LT_MULTI_MODULE
7460 # non-empty at configure time, or by adding -multi_module to the
7461 # link flags.
7462 rm -rf libconftest.dylib*
7463 echo "int foo(void){return 1;}" > conftest.c
7464 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7465 -dynamiclib -Wl,-single_module conftest.c" >&5
7466 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7467 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7468 _lt_result=$?
7469 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7470 lt_cv_apple_cc_single_mod=yes
7471 else
7472 cat conftest.err >&5
7473 fi
7474 rm -rf libconftest.dylib*
7475 rm -f conftest.*
7476 fi
7477 fi
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7479 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7481 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7482 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 lt_cv_ld_exported_symbols_list=no
7486 save_LDFLAGS=$LDFLAGS
7487 echo "_main" > conftest.sym
7488 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h. */
7491
7492 int
7493 main ()
7494 {
7495
7496 ;
7497 return 0;
7498 }
7499 _ACEOF
7500 if ac_fn_c_try_link "$LINENO"; then :
7501 lt_cv_ld_exported_symbols_list=yes
7502 else
7503 lt_cv_ld_exported_symbols_list=no
7504 fi
7505 rm -f core conftest.err conftest.$ac_objext \
7506 conftest$ac_exeext conftest.$ac_ext
7507 LDFLAGS="$save_LDFLAGS"
7508
7509 fi
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7511 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7513 $as_echo_n "checking for -force_load linker flag... " >&6; }
7514 if ${lt_cv_ld_force_load+:} false; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 lt_cv_ld_force_load=no
7518 cat > conftest.c << _LT_EOF
7519 int forced_loaded() { return 2;}
7520 _LT_EOF
7521 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7522 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7523 echo "$AR cru libconftest.a conftest.o" >&5
7524 $AR cru libconftest.a conftest.o 2>&5
7525 cat > conftest.c << _LT_EOF
7526 int main() { return 0;}
7527 _LT_EOF
7528 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7529 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7530 _lt_result=$?
7531 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7532 lt_cv_ld_force_load=yes
7533 else
7534 cat conftest.err >&5
7535 fi
7536 rm -f conftest.err libconftest.a conftest conftest.c
7537 rm -rf conftest.dSYM
7538
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7541 $as_echo "$lt_cv_ld_force_load" >&6; }
7542 case $host_os in
7543 rhapsody* | darwin1.[012])
7544 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7545 darwin1.*)
7546 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7547 darwin*) # darwin 5.x on
7548 # if running on 10.5 or later, the deployment target defaults
7549 # to the OS version, if on x86, and 10.4, the deployment
7550 # target defaults to 10.4. Don't you love it?
7551 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7552 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7553 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7554 10.[012][,.]*)
7555 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7556 10.*)
7557 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7558 esac
7559 ;;
7560 esac
7561 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7562 _lt_dar_single_mod='$single_module'
7563 fi
7564 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7565 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7566 else
7567 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7568 fi
7569 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7570 _lt_dsymutil='~$DSYMUTIL $lib || :'
7571 else
7572 _lt_dsymutil=
7573 fi
7574 ;;
7575 esac
7576
7577 for ac_header in dlfcn.h
7578 do :
7579 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7580 "
7581 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7582 cat >>confdefs.h <<_ACEOF
7583 #define HAVE_DLFCN_H 1
7584 _ACEOF
7585
7586 fi
7587
7588 done
7589
7590
7591 ac_header_dirent=no
7592 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7593 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7595 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7596 if eval \${$as_ac_Header+:} false; then :
7597 $as_echo_n "(cached) " >&6
7598 else
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h. */
7601 #include <sys/types.h>
7602 #include <$ac_hdr>
7603
7604 int
7605 main ()
7606 {
7607 if ((DIR *) 0)
7608 return 0;
7609 ;
7610 return 0;
7611 }
7612 _ACEOF
7613 if ac_fn_c_try_compile "$LINENO"; then :
7614 eval "$as_ac_Header=yes"
7615 else
7616 eval "$as_ac_Header=no"
7617 fi
7618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 fi
7620 eval ac_res=\$$as_ac_Header
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7622 $as_echo "$ac_res" >&6; }
7623 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7624 cat >>confdefs.h <<_ACEOF
7625 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7626 _ACEOF
7627
7628 ac_header_dirent=$ac_hdr; break
7629 fi
7630
7631 done
7632 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7633 if test $ac_header_dirent = dirent.h; then
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7635 $as_echo_n "checking for library containing opendir... " >&6; }
7636 if ${ac_cv_search_opendir+:} false; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 ac_func_search_save_LIBS=$LIBS
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642
7643 /* Override any GCC internal prototype to avoid an error.
7644 Use char because int might match the return type of a GCC
7645 builtin and then its argument prototype would still apply. */
7646 #ifdef __cplusplus
7647 extern "C"
7648 #endif
7649 char opendir ();
7650 int
7651 main ()
7652 {
7653 return opendir ();
7654 ;
7655 return 0;
7656 }
7657 _ACEOF
7658 for ac_lib in '' dir; do
7659 if test -z "$ac_lib"; then
7660 ac_res="none required"
7661 else
7662 ac_res=-l$ac_lib
7663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7664 fi
7665 if ac_fn_c_try_link "$LINENO"; then :
7666 ac_cv_search_opendir=$ac_res
7667 fi
7668 rm -f core conftest.err conftest.$ac_objext \
7669 conftest$ac_exeext
7670 if ${ac_cv_search_opendir+:} false; then :
7671 break
7672 fi
7673 done
7674 if ${ac_cv_search_opendir+:} false; then :
7675
7676 else
7677 ac_cv_search_opendir=no
7678 fi
7679 rm conftest.$ac_ext
7680 LIBS=$ac_func_search_save_LIBS
7681 fi
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7683 $as_echo "$ac_cv_search_opendir" >&6; }
7684 ac_res=$ac_cv_search_opendir
7685 if test "$ac_res" != no; then :
7686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7687
7688 fi
7689
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7692 $as_echo_n "checking for library containing opendir... " >&6; }
7693 if ${ac_cv_search_opendir+:} false; then :
7694 $as_echo_n "(cached) " >&6
7695 else
7696 ac_func_search_save_LIBS=$LIBS
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7699
7700 /* Override any GCC internal prototype to avoid an error.
7701 Use char because int might match the return type of a GCC
7702 builtin and then its argument prototype would still apply. */
7703 #ifdef __cplusplus
7704 extern "C"
7705 #endif
7706 char opendir ();
7707 int
7708 main ()
7709 {
7710 return opendir ();
7711 ;
7712 return 0;
7713 }
7714 _ACEOF
7715 for ac_lib in '' x; do
7716 if test -z "$ac_lib"; then
7717 ac_res="none required"
7718 else
7719 ac_res=-l$ac_lib
7720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7721 fi
7722 if ac_fn_c_try_link "$LINENO"; then :
7723 ac_cv_search_opendir=$ac_res
7724 fi
7725 rm -f core conftest.err conftest.$ac_objext \
7726 conftest$ac_exeext
7727 if ${ac_cv_search_opendir+:} false; then :
7728 break
7729 fi
7730 done
7731 if ${ac_cv_search_opendir+:} false; then :
7732
7733 else
7734 ac_cv_search_opendir=no
7735 fi
7736 rm conftest.$ac_ext
7737 LIBS=$ac_func_search_save_LIBS
7738 fi
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7740 $as_echo "$ac_cv_search_opendir" >&6; }
7741 ac_res=$ac_cv_search_opendir
7742 if test "$ac_res" != no; then :
7743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7744
7745 fi
7746
7747 fi
7748
7749
7750
7751
7752 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7753 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7754
7755 cat >>confdefs.h <<_ACEOF
7756 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7757 _ACEOF
7758
7759
7760 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7761
7762 fi
7763
7764
7765 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7766 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7767
7768 cat >>confdefs.h <<_ACEOF
7769 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7770 _ACEOF
7771
7772
7773 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7774
7775 else
7776 case " $LIBOBJS " in
7777 *" fileblocks.$ac_objext "* ) ;;
7778 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7779 ;;
7780 esac
7781
7782 fi
7783
7784
7785 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7786 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7787
7788 cat >>confdefs.h <<_ACEOF
7789 #define HAVE_STRUCT_STAT_ST_RDEV 1
7790 _ACEOF
7791
7792
7793 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7794
7795 fi
7796
7797
7798 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7799 #include <$ac_cv_struct_tm>
7800
7801 "
7802 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7803
7804 cat >>confdefs.h <<_ACEOF
7805 #define HAVE_STRUCT_TM_TM_ZONE 1
7806 _ACEOF
7807
7808
7809 fi
7810
7811 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7812
7813 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7814
7815 else
7816 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7817 "
7818 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7819 ac_have_decl=1
7820 else
7821 ac_have_decl=0
7822 fi
7823
7824 cat >>confdefs.h <<_ACEOF
7825 #define HAVE_DECL_TZNAME $ac_have_decl
7826 _ACEOF
7827
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7829 $as_echo_n "checking for tzname... " >&6; }
7830 if ${ac_cv_var_tzname+:} false; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835 #include <time.h>
7836 #if !HAVE_DECL_TZNAME
7837 extern char *tzname[];
7838 #endif
7839
7840 int
7841 main ()
7842 {
7843 return tzname[0][0];
7844 ;
7845 return 0;
7846 }
7847 _ACEOF
7848 if ac_fn_c_try_link "$LINENO"; then :
7849 ac_cv_var_tzname=yes
7850 else
7851 ac_cv_var_tzname=no
7852 fi
7853 rm -f core conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
7855 fi
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7857 $as_echo "$ac_cv_var_tzname" >&6; }
7858 if test $ac_cv_var_tzname = yes; then
7859
7860 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7861
7862 fi
7863 fi
7864
7865
7866 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
7867 #include <sys/types.h>
7868 #endif
7869 #ifdef HAVE_SYS_STAT_H
7870 #include <sys/stat.h>
7871 #endif
7872 "
7873 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
7874
7875 cat >>confdefs.h <<_ACEOF
7876 #define HAVE_STRUCT_STAT_ST_DEV 1
7877 _ACEOF
7878
7879
7880 fi
7881 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
7882 #include <sys/types.h>
7883 #endif
7884 #ifdef HAVE_SYS_STAT_H
7885 #include <sys/stat.h>
7886 #endif
7887 "
7888 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
7889
7890 cat >>confdefs.h <<_ACEOF
7891 #define HAVE_STRUCT_STAT_ST_INO 1
7892 _ACEOF
7893
7894
7895 fi
7896 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
7897 #include <sys/types.h>
7898 #endif
7899 #ifdef HAVE_SYS_STAT_H
7900 #include <sys/stat.h>
7901 #endif
7902 "
7903 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
7904
7905 cat >>confdefs.h <<_ACEOF
7906 #define HAVE_STRUCT_STAT_ST_MODE 1
7907 _ACEOF
7908
7909
7910 fi
7911 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
7912 #include <sys/types.h>
7913 #endif
7914 #ifdef HAVE_SYS_STAT_H
7915 #include <sys/stat.h>
7916 #endif
7917 "
7918 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
7919
7920 cat >>confdefs.h <<_ACEOF
7921 #define HAVE_STRUCT_STAT_ST_NLINK 1
7922 _ACEOF
7923
7924
7925 fi
7926 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
7927 #include <sys/types.h>
7928 #endif
7929 #ifdef HAVE_SYS_STAT_H
7930 #include <sys/stat.h>
7931 #endif
7932 "
7933 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
7934
7935 cat >>confdefs.h <<_ACEOF
7936 #define HAVE_STRUCT_STAT_ST_UID 1
7937 _ACEOF
7938
7939
7940 fi
7941 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
7942 #include <sys/types.h>
7943 #endif
7944 #ifdef HAVE_SYS_STAT_H
7945 #include <sys/stat.h>
7946 #endif
7947 "
7948 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
7949
7950 cat >>confdefs.h <<_ACEOF
7951 #define HAVE_STRUCT_STAT_ST_GID 1
7952 _ACEOF
7953
7954
7955 fi
7956 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
7957 #include <sys/types.h>
7958 #endif
7959 #ifdef HAVE_SYS_STAT_H
7960 #include <sys/stat.h>
7961 #endif
7962 "
7963 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7964
7965 cat >>confdefs.h <<_ACEOF
7966 #define HAVE_STRUCT_STAT_ST_RDEV 1
7967 _ACEOF
7968
7969
7970 fi
7971 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
7972 #include <sys/types.h>
7973 #endif
7974 #ifdef HAVE_SYS_STAT_H
7975 #include <sys/stat.h>
7976 #endif
7977 "
7978 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
7979
7980 cat >>confdefs.h <<_ACEOF
7981 #define HAVE_STRUCT_STAT_ST_SIZE 1
7982 _ACEOF
7983
7984
7985 fi
7986 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
7987 #include <sys/types.h>
7988 #endif
7989 #ifdef HAVE_SYS_STAT_H
7990 #include <sys/stat.h>
7991 #endif
7992 "
7993 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7994
7995 cat >>confdefs.h <<_ACEOF
7996 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7997 _ACEOF
7998
7999
8000 fi
8001 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8002 #include <sys/types.h>
8003 #endif
8004 #ifdef HAVE_SYS_STAT_H
8005 #include <sys/stat.h>
8006 #endif
8007 "
8008 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8009
8010 cat >>confdefs.h <<_ACEOF
8011 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8012 _ACEOF
8013
8014
8015 fi
8016 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8017 #include <sys/types.h>
8018 #endif
8019 #ifdef HAVE_SYS_STAT_H
8020 #include <sys/stat.h>
8021 #endif
8022 "
8023 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8024
8025 cat >>confdefs.h <<_ACEOF
8026 #define HAVE_STRUCT_STAT_ST_ATIME 1
8027 _ACEOF
8028
8029
8030 fi
8031 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8032 #include <sys/types.h>
8033 #endif
8034 #ifdef HAVE_SYS_STAT_H
8035 #include <sys/stat.h>
8036 #endif
8037 "
8038 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8039
8040 cat >>confdefs.h <<_ACEOF
8041 #define HAVE_STRUCT_STAT_ST_MTIME 1
8042 _ACEOF
8043
8044
8045 fi
8046 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8047 #include <sys/types.h>
8048 #endif
8049 #ifdef HAVE_SYS_STAT_H
8050 #include <sys/stat.h>
8051 #endif
8052 "
8053 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8054
8055 cat >>confdefs.h <<_ACEOF
8056 #define HAVE_STRUCT_STAT_ST_CTIME 1
8057 _ACEOF
8058
8059
8060 fi
8061
8062
8063 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8064 if test "x$ac_cv_type___int128" = xyes; then :
8065
8066 cat >>confdefs.h <<_ACEOF
8067 #define HAVE___INT128 1
8068 _ACEOF
8069
8070
8071 fi
8072
8073 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8074 #include <sys/socket.h>
8075
8076 "
8077 if test "x$ac_cv_type_socklen_t" = xyes; then :
8078
8079 cat >>confdefs.h <<_ACEOF
8080 #define HAVE_SOCKLEN_T 1
8081 _ACEOF
8082
8083
8084 fi
8085
8086
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8088 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8089 if ${ac_cv_type_getgroups+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 if test "$cross_compiling" = yes; then :
8093 ac_cv_type_getgroups=cross
8094 else
8095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h. */
8097 /* Thanks to Mike Rendell for this test. */
8098 $ac_includes_default
8099 #define NGID 256
8100 #undef MAX
8101 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8102
8103 int
8104 main ()
8105 {
8106 gid_t gidset[NGID];
8107 int i, n;
8108 union { gid_t gval; long int lval; } val;
8109
8110 val.lval = -1;
8111 for (i = 0; i < NGID; i++)
8112 gidset[i] = val.gval;
8113 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8114 gidset);
8115 /* Exit non-zero if getgroups seems to require an array of ints. This
8116 happens when gid_t is short int but getgroups modifies an array
8117 of ints. */
8118 return n > 0 && gidset[n] != val.gval;
8119 }
8120 _ACEOF
8121 if ac_fn_c_try_run "$LINENO"; then :
8122 ac_cv_type_getgroups=gid_t
8123 else
8124 ac_cv_type_getgroups=int
8125 fi
8126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8127 conftest.$ac_objext conftest.beam conftest.$ac_ext
8128 fi
8129
8130 if test $ac_cv_type_getgroups = cross; then
8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h. */
8133 #include <unistd.h>
8134
8135 _ACEOF
8136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8137 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8138 ac_cv_type_getgroups=gid_t
8139 else
8140 ac_cv_type_getgroups=int
8141 fi
8142 rm -f conftest*
8143
8144 fi
8145 fi
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8147 $as_echo "$ac_cv_type_getgroups" >&6; }
8148
8149 cat >>confdefs.h <<_ACEOF
8150 #define GETGROUPS_T $ac_cv_type_getgroups
8151 _ACEOF
8152
8153
8154 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8155 if test "x$ac_cv_type_mode_t" = xyes; then :
8156
8157 else
8158
8159 cat >>confdefs.h <<_ACEOF
8160 #define mode_t int
8161 _ACEOF
8162
8163 fi
8164
8165 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8166 if test "x$ac_cv_type_off_t" = xyes; then :
8167
8168 else
8169
8170 cat >>confdefs.h <<_ACEOF
8171 #define off_t long int
8172 _ACEOF
8173
8174 fi
8175
8176 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8177 if test "x$ac_cv_type_pid_t" = xyes; then :
8178
8179 else
8180
8181 cat >>confdefs.h <<_ACEOF
8182 #define pid_t int
8183 _ACEOF
8184
8185 fi
8186
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8188 $as_echo_n "checking return type of signal handlers... " >&6; }
8189 if ${ac_cv_type_signal+:} false; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8194 #include <sys/types.h>
8195 #include <signal.h>
8196
8197 int
8198 main ()
8199 {
8200 return *(signal (0, 0)) (0) == 1;
8201 ;
8202 return 0;
8203 }
8204 _ACEOF
8205 if ac_fn_c_try_compile "$LINENO"; then :
8206 ac_cv_type_signal=int
8207 else
8208 ac_cv_type_signal=void
8209 fi
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211 fi
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8213 $as_echo "$ac_cv_type_signal" >&6; }
8214
8215 cat >>confdefs.h <<_ACEOF
8216 #define RETSIGTYPE $ac_cv_type_signal
8217 _ACEOF
8218
8219
8220 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8221 if test "x$ac_cv_type_size_t" = xyes; then :
8222
8223 else
8224
8225 cat >>confdefs.h <<_ACEOF
8226 #define size_t unsigned int
8227 _ACEOF
8228
8229 fi
8230
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8232 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8233 if ${ac_cv_type_uid_t+:} false; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8238 #include <sys/types.h>
8239
8240 _ACEOF
8241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8242 $EGREP "uid_t" >/dev/null 2>&1; then :
8243 ac_cv_type_uid_t=yes
8244 else
8245 ac_cv_type_uid_t=no
8246 fi
8247 rm -f conftest*
8248
8249 fi
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8251 $as_echo "$ac_cv_type_uid_t" >&6; }
8252 if test $ac_cv_type_uid_t = no; then
8253
8254 $as_echo "#define uid_t int" >>confdefs.h
8255
8256
8257 $as_echo "#define gid_t int" >>confdefs.h
8258
8259 fi
8260
8261
8262
8263 # Use the system's zlib library.
8264 zlibdir="-L\$(top_builddir)/../zlib"
8265 zlibinc="-I\$(top_srcdir)/../zlib"
8266
8267 # Check whether --with-system-zlib was given.
8268 if test "${with_system_zlib+set}" = set; then :
8269 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8270 zlibdir=
8271 zlibinc=
8272 fi
8273
8274 fi
8275
8276
8277
8278
8279
8280
8281 maybe_plugins=no
8282 for ac_header in dlfcn.h
8283 do :
8284 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8285 "
8286 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8287 cat >>confdefs.h <<_ACEOF
8288 #define HAVE_DLFCN_H 1
8289 _ACEOF
8290 maybe_plugins=yes
8291 fi
8292
8293 done
8294
8295 for ac_header in windows.h
8296 do :
8297 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
8298 "
8299 if test "x$ac_cv_header_windows_h" = xyes; then :
8300 cat >>confdefs.h <<_ACEOF
8301 #define HAVE_WINDOWS_H 1
8302 _ACEOF
8303 maybe_plugins=yes
8304 fi
8305
8306 done
8307
8308
8309 # Check whether --enable-plugins was given.
8310 if test "${enable_plugins+set}" = set; then :
8311 enableval=$enable_plugins; case "${enableval}" in
8312 no) plugins=no ;;
8313 *) plugins=yes
8314 if test "$maybe_plugins" != "yes" ; then
8315 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
8316 fi ;;
8317 esac
8318 else
8319 plugins=$maybe_plugins
8320
8321 fi
8322
8323 if test "$plugins" = "yes"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
8325 $as_echo_n "checking for library containing dlsym... " >&6; }
8326 if ${ac_cv_search_dlsym+:} false; then :
8327 $as_echo_n "(cached) " >&6
8328 else
8329 ac_func_search_save_LIBS=$LIBS
8330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8332
8333 /* Override any GCC internal prototype to avoid an error.
8334 Use char because int might match the return type of a GCC
8335 builtin and then its argument prototype would still apply. */
8336 #ifdef __cplusplus
8337 extern "C"
8338 #endif
8339 char dlsym ();
8340 int
8341 main ()
8342 {
8343 return dlsym ();
8344 ;
8345 return 0;
8346 }
8347 _ACEOF
8348 for ac_lib in '' dl; do
8349 if test -z "$ac_lib"; then
8350 ac_res="none required"
8351 else
8352 ac_res=-l$ac_lib
8353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8354 fi
8355 if ac_fn_c_try_link "$LINENO"; then :
8356 ac_cv_search_dlsym=$ac_res
8357 fi
8358 rm -f core conftest.err conftest.$ac_objext \
8359 conftest$ac_exeext
8360 if ${ac_cv_search_dlsym+:} false; then :
8361 break
8362 fi
8363 done
8364 if ${ac_cv_search_dlsym+:} false; then :
8365
8366 else
8367 ac_cv_search_dlsym=no
8368 fi
8369 rm conftest.$ac_ext
8370 LIBS=$ac_func_search_save_LIBS
8371 fi
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
8373 $as_echo "$ac_cv_search_dlsym" >&6; }
8374 ac_res=$ac_cv_search_dlsym
8375 if test "$ac_res" != no; then :
8376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8377
8378 fi
8379
8380 fi
8381
8382 if test "$plugins" = yes; then
8383 PLUGINS_TRUE=
8384 PLUGINS_FALSE='#'
8385 else
8386 PLUGINS_TRUE='#'
8387 PLUGINS_FALSE=
8388 fi
8389
8390
8391
8392
8393
8394 # Set options
8395 enable_dlopen=yes
8396
8397
8398
8399
8400 enable_win32_dll=no
8401
8402
8403 # Check whether --enable-shared was given.
8404 if test "${enable_shared+set}" = set; then :
8405 enableval=$enable_shared; p=${PACKAGE-default}
8406 case $enableval in
8407 yes) enable_shared=yes ;;
8408 no) enable_shared=no ;;
8409 *)
8410 enable_shared=no
8411 # Look at the argument we got. We use all the common list separators.
8412 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8413 for pkg in $enableval; do
8414 IFS="$lt_save_ifs"
8415 if test "X$pkg" = "X$p"; then
8416 enable_shared=yes
8417 fi
8418 done
8419 IFS="$lt_save_ifs"
8420 ;;
8421 esac
8422 else
8423 enable_shared=yes
8424 fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434 # Check whether --enable-static was given.
8435 if test "${enable_static+set}" = set; then :
8436 enableval=$enable_static; p=${PACKAGE-default}
8437 case $enableval in
8438 yes) enable_static=yes ;;
8439 no) enable_static=no ;;
8440 *)
8441 enable_static=no
8442 # Look at the argument we got. We use all the common list separators.
8443 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8444 for pkg in $enableval; do
8445 IFS="$lt_save_ifs"
8446 if test "X$pkg" = "X$p"; then
8447 enable_static=yes
8448 fi
8449 done
8450 IFS="$lt_save_ifs"
8451 ;;
8452 esac
8453 else
8454 enable_static=yes
8455 fi
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466 # Check whether --with-pic was given.
8467 if test "${with_pic+set}" = set; then :
8468 withval=$with_pic; pic_mode="$withval"
8469 else
8470 pic_mode=default
8471 fi
8472
8473
8474 test -z "$pic_mode" && pic_mode=default
8475
8476
8477
8478
8479
8480
8481
8482 # Check whether --enable-fast-install was given.
8483 if test "${enable_fast_install+set}" = set; then :
8484 enableval=$enable_fast_install; p=${PACKAGE-default}
8485 case $enableval in
8486 yes) enable_fast_install=yes ;;
8487 no) enable_fast_install=no ;;
8488 *)
8489 enable_fast_install=no
8490 # Look at the argument we got. We use all the common list separators.
8491 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8492 for pkg in $enableval; do
8493 IFS="$lt_save_ifs"
8494 if test "X$pkg" = "X$p"; then
8495 enable_fast_install=yes
8496 fi
8497 done
8498 IFS="$lt_save_ifs"
8499 ;;
8500 esac
8501 else
8502 enable_fast_install=yes
8503 fi
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515 # This can be used to rebuild libtool when needed
8516 LIBTOOL_DEPS="$ltmain"
8517
8518 # Always use our own libtool.
8519 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546 test -z "$LN_S" && LN_S="ln -s"
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561 if test -n "${ZSH_VERSION+set}" ; then
8562 setopt NO_GLOB_SUBST
8563 fi
8564
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8566 $as_echo_n "checking for objdir... " >&6; }
8567 if ${lt_cv_objdir+:} false; then :
8568 $as_echo_n "(cached) " >&6
8569 else
8570 rm -f .libs 2>/dev/null
8571 mkdir .libs 2>/dev/null
8572 if test -d .libs; then
8573 lt_cv_objdir=.libs
8574 else
8575 # MS-DOS does not allow filenames that begin with a dot.
8576 lt_cv_objdir=_libs
8577 fi
8578 rmdir .libs 2>/dev/null
8579 fi
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8581 $as_echo "$lt_cv_objdir" >&6; }
8582 objdir=$lt_cv_objdir
8583
8584
8585
8586
8587
8588 cat >>confdefs.h <<_ACEOF
8589 #define LT_OBJDIR "$lt_cv_objdir/"
8590 _ACEOF
8591
8592
8593
8594
8595 case $host_os in
8596 aix3*)
8597 # AIX sometimes has problems with the GCC collect2 program. For some
8598 # reason, if we set the COLLECT_NAMES environment variable, the problems
8599 # vanish in a puff of smoke.
8600 if test "X${COLLECT_NAMES+set}" != Xset; then
8601 COLLECT_NAMES=
8602 export COLLECT_NAMES
8603 fi
8604 ;;
8605 esac
8606
8607 # Global variables:
8608 ofile=libtool
8609 can_build_shared=yes
8610
8611 # All known linkers require a `.a' archive for static linking (except MSVC,
8612 # which needs '.lib').
8613 libext=a
8614
8615 with_gnu_ld="$lt_cv_prog_gnu_ld"
8616
8617 old_CC="$CC"
8618 old_CFLAGS="$CFLAGS"
8619
8620 # Set sane defaults for various variables
8621 test -z "$CC" && CC=cc
8622 test -z "$LTCC" && LTCC=$CC
8623 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8624 test -z "$LD" && LD=ld
8625 test -z "$ac_objext" && ac_objext=o
8626
8627 for cc_temp in $compiler""; do
8628 case $cc_temp in
8629 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8630 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8631 \-*) ;;
8632 *) break;;
8633 esac
8634 done
8635 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8636
8637
8638 # Only perform the check for file, if the check method requires it
8639 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8640 case $deplibs_check_method in
8641 file_magic*)
8642 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8644 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8645 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 case $MAGIC_CMD in
8649 [\\/*] | ?:[\\/]*)
8650 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8651 ;;
8652 *)
8653 lt_save_MAGIC_CMD="$MAGIC_CMD"
8654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8655 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8656 for ac_dir in $ac_dummy; do
8657 IFS="$lt_save_ifs"
8658 test -z "$ac_dir" && ac_dir=.
8659 if test -f $ac_dir/${ac_tool_prefix}file; then
8660 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8661 if test -n "$file_magic_test_file"; then
8662 case $deplibs_check_method in
8663 "file_magic "*)
8664 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8665 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8666 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8667 $EGREP "$file_magic_regex" > /dev/null; then
8668 :
8669 else
8670 cat <<_LT_EOF 1>&2
8671
8672 *** Warning: the command libtool uses to detect shared libraries,
8673 *** $file_magic_cmd, produces output that libtool cannot recognize.
8674 *** The result is that libtool may fail to recognize shared libraries
8675 *** as such. This will affect the creation of libtool libraries that
8676 *** depend on shared libraries, but programs linked with such libtool
8677 *** libraries will work regardless of this problem. Nevertheless, you
8678 *** may want to report the problem to your system manager and/or to
8679 *** bug-libtool@gnu.org
8680
8681 _LT_EOF
8682 fi ;;
8683 esac
8684 fi
8685 break
8686 fi
8687 done
8688 IFS="$lt_save_ifs"
8689 MAGIC_CMD="$lt_save_MAGIC_CMD"
8690 ;;
8691 esac
8692 fi
8693
8694 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8695 if test -n "$MAGIC_CMD"; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8697 $as_echo "$MAGIC_CMD" >&6; }
8698 else
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8700 $as_echo "no" >&6; }
8701 fi
8702
8703
8704
8705
8706
8707 if test -z "$lt_cv_path_MAGIC_CMD"; then
8708 if test -n "$ac_tool_prefix"; then
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8710 $as_echo_n "checking for file... " >&6; }
8711 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8712 $as_echo_n "(cached) " >&6
8713 else
8714 case $MAGIC_CMD in
8715 [\\/*] | ?:[\\/]*)
8716 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8717 ;;
8718 *)
8719 lt_save_MAGIC_CMD="$MAGIC_CMD"
8720 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8721 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8722 for ac_dir in $ac_dummy; do
8723 IFS="$lt_save_ifs"
8724 test -z "$ac_dir" && ac_dir=.
8725 if test -f $ac_dir/file; then
8726 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8727 if test -n "$file_magic_test_file"; then
8728 case $deplibs_check_method in
8729 "file_magic "*)
8730 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8731 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8732 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8733 $EGREP "$file_magic_regex" > /dev/null; then
8734 :
8735 else
8736 cat <<_LT_EOF 1>&2
8737
8738 *** Warning: the command libtool uses to detect shared libraries,
8739 *** $file_magic_cmd, produces output that libtool cannot recognize.
8740 *** The result is that libtool may fail to recognize shared libraries
8741 *** as such. This will affect the creation of libtool libraries that
8742 *** depend on shared libraries, but programs linked with such libtool
8743 *** libraries will work regardless of this problem. Nevertheless, you
8744 *** may want to report the problem to your system manager and/or to
8745 *** bug-libtool@gnu.org
8746
8747 _LT_EOF
8748 fi ;;
8749 esac
8750 fi
8751 break
8752 fi
8753 done
8754 IFS="$lt_save_ifs"
8755 MAGIC_CMD="$lt_save_MAGIC_CMD"
8756 ;;
8757 esac
8758 fi
8759
8760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8761 if test -n "$MAGIC_CMD"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8763 $as_echo "$MAGIC_CMD" >&6; }
8764 else
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766 $as_echo "no" >&6; }
8767 fi
8768
8769
8770 else
8771 MAGIC_CMD=:
8772 fi
8773 fi
8774
8775 fi
8776 ;;
8777 esac
8778
8779 # Use C for the default configuration in the libtool script
8780
8781 lt_save_CC="$CC"
8782 ac_ext=c
8783 ac_cpp='$CPP $CPPFLAGS'
8784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8787
8788
8789 # Source file extension for C test sources.
8790 ac_ext=c
8791
8792 # Object file extension for compiled C test sources.
8793 objext=o
8794 objext=$objext
8795
8796 # Code to be used in simple compile tests
8797 lt_simple_compile_test_code="int some_variable = 0;"
8798
8799 # Code to be used in simple link tests
8800 lt_simple_link_test_code='int main(){return(0);}'
8801
8802
8803
8804
8805
8806
8807
8808 # If no C compiler was specified, use CC.
8809 LTCC=${LTCC-"$CC"}
8810
8811 # If no C compiler flags were specified, use CFLAGS.
8812 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8813
8814 # Allow CC to be a program name with arguments.
8815 compiler=$CC
8816
8817 # Save the default compiler, since it gets overwritten when the other
8818 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8819 compiler_DEFAULT=$CC
8820
8821 # save warnings/boilerplate of simple test code
8822 ac_outfile=conftest.$ac_objext
8823 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8824 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8825 _lt_compiler_boilerplate=`cat conftest.err`
8826 $RM conftest*
8827
8828 ac_outfile=conftest.$ac_objext
8829 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8830 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8831 _lt_linker_boilerplate=`cat conftest.err`
8832 $RM -r conftest*
8833
8834
8835 ## CAVEAT EMPTOR:
8836 ## There is no encapsulation within the following macros, do not change
8837 ## the running order or otherwise move them around unless you know exactly
8838 ## what you are doing...
8839 if test -n "$compiler"; then
8840
8841 lt_prog_compiler_no_builtin_flag=
8842
8843 if test "$GCC" = yes; then
8844 case $cc_basename in
8845 nvcc*)
8846 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8847 *)
8848 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8849 esac
8850
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8852 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8853 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8854 $as_echo_n "(cached) " >&6
8855 else
8856 lt_cv_prog_compiler_rtti_exceptions=no
8857 ac_outfile=conftest.$ac_objext
8858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8859 lt_compiler_flag="-fno-rtti -fno-exceptions"
8860 # Insert the option either (1) after the last *FLAGS variable, or
8861 # (2) before a word containing "conftest.", or (3) at the end.
8862 # Note that $ac_compile itself does not contain backslashes and begins
8863 # with a dollar sign (not a hyphen), so the echo should work correctly.
8864 # The option is referenced via a variable to avoid confusing sed.
8865 lt_compile=`echo "$ac_compile" | $SED \
8866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8868 -e 's:$: $lt_compiler_flag:'`
8869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8870 (eval "$lt_compile" 2>conftest.err)
8871 ac_status=$?
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 if (exit $ac_status) && test -s "$ac_outfile"; then
8875 # The compiler can only warn and ignore the option if not recognized
8876 # So say no if there are warnings other than the usual output.
8877 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8879 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8880 lt_cv_prog_compiler_rtti_exceptions=yes
8881 fi
8882 fi
8883 $RM conftest*
8884
8885 fi
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8887 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8888
8889 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8890 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8891 else
8892 :
8893 fi
8894
8895 fi
8896
8897
8898
8899
8900
8901
8902 lt_prog_compiler_wl=
8903 lt_prog_compiler_pic=
8904 lt_prog_compiler_static=
8905
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8907 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8908
8909 if test "$GCC" = yes; then
8910 lt_prog_compiler_wl='-Wl,'
8911 lt_prog_compiler_static='-static'
8912
8913 case $host_os in
8914 aix*)
8915 # All AIX code is PIC.
8916 if test "$host_cpu" = ia64; then
8917 # AIX 5 now supports IA64 processor
8918 lt_prog_compiler_static='-Bstatic'
8919 fi
8920 lt_prog_compiler_pic='-fPIC'
8921 ;;
8922
8923 amigaos*)
8924 case $host_cpu in
8925 powerpc)
8926 # see comment about AmigaOS4 .so support
8927 lt_prog_compiler_pic='-fPIC'
8928 ;;
8929 m68k)
8930 # FIXME: we need at least 68020 code to build shared libraries, but
8931 # adding the `-m68020' flag to GCC prevents building anything better,
8932 # like `-m68040'.
8933 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8934 ;;
8935 esac
8936 ;;
8937
8938 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8939 # PIC is the default for these OSes.
8940 ;;
8941
8942 mingw* | cygwin* | pw32* | os2* | cegcc*)
8943 # This hack is so that the source file can tell whether it is being
8944 # built for inclusion in a dll (and should export symbols for example).
8945 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8946 # (--disable-auto-import) libraries
8947 lt_prog_compiler_pic='-DDLL_EXPORT'
8948 ;;
8949
8950 darwin* | rhapsody*)
8951 # PIC is the default on this platform
8952 # Common symbols not allowed in MH_DYLIB files
8953 lt_prog_compiler_pic='-fno-common'
8954 ;;
8955
8956 haiku*)
8957 # PIC is the default for Haiku.
8958 # The "-static" flag exists, but is broken.
8959 lt_prog_compiler_static=
8960 ;;
8961
8962 hpux*)
8963 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8964 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8965 # sets the default TLS model and affects inlining.
8966 case $host_cpu in
8967 hppa*64*)
8968 # +Z the default
8969 ;;
8970 *)
8971 lt_prog_compiler_pic='-fPIC'
8972 ;;
8973 esac
8974 ;;
8975
8976 interix[3-9]*)
8977 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8978 # Instead, we relocate shared libraries at runtime.
8979 ;;
8980
8981 msdosdjgpp*)
8982 # Just because we use GCC doesn't mean we suddenly get shared libraries
8983 # on systems that don't support them.
8984 lt_prog_compiler_can_build_shared=no
8985 enable_shared=no
8986 ;;
8987
8988 *nto* | *qnx*)
8989 # QNX uses GNU C++, but need to define -shared option too, otherwise
8990 # it will coredump.
8991 lt_prog_compiler_pic='-fPIC -shared'
8992 ;;
8993
8994 sysv4*MP*)
8995 if test -d /usr/nec; then
8996 lt_prog_compiler_pic=-Kconform_pic
8997 fi
8998 ;;
8999
9000 *)
9001 lt_prog_compiler_pic='-fPIC'
9002 ;;
9003 esac
9004
9005 case $cc_basename in
9006 nvcc*) # Cuda Compiler Driver 2.2
9007 lt_prog_compiler_wl='-Xlinker '
9008 lt_prog_compiler_pic='-Xcompiler -fPIC'
9009 ;;
9010 esac
9011 else
9012 # PORTME Check for flag to pass linker flags through the system compiler.
9013 case $host_os in
9014 aix*)
9015 lt_prog_compiler_wl='-Wl,'
9016 if test "$host_cpu" = ia64; then
9017 # AIX 5 now supports IA64 processor
9018 lt_prog_compiler_static='-Bstatic'
9019 else
9020 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9021 fi
9022 ;;
9023
9024 mingw* | cygwin* | pw32* | os2* | cegcc*)
9025 # This hack is so that the source file can tell whether it is being
9026 # built for inclusion in a dll (and should export symbols for example).
9027 lt_prog_compiler_pic='-DDLL_EXPORT'
9028 ;;
9029
9030 hpux9* | hpux10* | hpux11*)
9031 lt_prog_compiler_wl='-Wl,'
9032 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9033 # not for PA HP-UX.
9034 case $host_cpu in
9035 hppa*64*|ia64*)
9036 # +Z the default
9037 ;;
9038 *)
9039 lt_prog_compiler_pic='+Z'
9040 ;;
9041 esac
9042 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9043 lt_prog_compiler_static='${wl}-a ${wl}archive'
9044 ;;
9045
9046 irix5* | irix6* | nonstopux*)
9047 lt_prog_compiler_wl='-Wl,'
9048 # PIC (with -KPIC) is the default.
9049 lt_prog_compiler_static='-non_shared'
9050 ;;
9051
9052 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9053 case $cc_basename in
9054 # old Intel for x86_64 which still supported -KPIC.
9055 ecc*)
9056 lt_prog_compiler_wl='-Wl,'
9057 lt_prog_compiler_pic='-KPIC'
9058 lt_prog_compiler_static='-static'
9059 ;;
9060 # icc used to be incompatible with GCC.
9061 # ICC 10 doesn't accept -KPIC any more.
9062 icc* | ifort*)
9063 lt_prog_compiler_wl='-Wl,'
9064 lt_prog_compiler_pic='-fPIC'
9065 lt_prog_compiler_static='-static'
9066 ;;
9067 # Lahey Fortran 8.1.
9068 lf95*)
9069 lt_prog_compiler_wl='-Wl,'
9070 lt_prog_compiler_pic='--shared'
9071 lt_prog_compiler_static='--static'
9072 ;;
9073 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9074 # Portland Group compilers (*not* the Pentium gcc compiler,
9075 # which looks to be a dead project)
9076 lt_prog_compiler_wl='-Wl,'
9077 lt_prog_compiler_pic='-fpic'
9078 lt_prog_compiler_static='-Bstatic'
9079 ;;
9080 ccc*)
9081 lt_prog_compiler_wl='-Wl,'
9082 # All Alpha code is PIC.
9083 lt_prog_compiler_static='-non_shared'
9084 ;;
9085 xl* | bgxl* | bgf* | mpixl*)
9086 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9087 lt_prog_compiler_wl='-Wl,'
9088 lt_prog_compiler_pic='-qpic'
9089 lt_prog_compiler_static='-qstaticlink'
9090 ;;
9091 *)
9092 case `$CC -V 2>&1 | sed 5q` in
9093 *Sun\ F* | *Sun*Fortran*)
9094 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9095 lt_prog_compiler_pic='-KPIC'
9096 lt_prog_compiler_static='-Bstatic'
9097 lt_prog_compiler_wl=''
9098 ;;
9099 *Sun\ C*)
9100 # Sun C 5.9
9101 lt_prog_compiler_pic='-KPIC'
9102 lt_prog_compiler_static='-Bstatic'
9103 lt_prog_compiler_wl='-Wl,'
9104 ;;
9105 esac
9106 ;;
9107 esac
9108 ;;
9109
9110 newsos6)
9111 lt_prog_compiler_pic='-KPIC'
9112 lt_prog_compiler_static='-Bstatic'
9113 ;;
9114
9115 *nto* | *qnx*)
9116 # QNX uses GNU C++, but need to define -shared option too, otherwise
9117 # it will coredump.
9118 lt_prog_compiler_pic='-fPIC -shared'
9119 ;;
9120
9121 osf3* | osf4* | osf5*)
9122 lt_prog_compiler_wl='-Wl,'
9123 # All OSF/1 code is PIC.
9124 lt_prog_compiler_static='-non_shared'
9125 ;;
9126
9127 rdos*)
9128 lt_prog_compiler_static='-non_shared'
9129 ;;
9130
9131 solaris*)
9132 lt_prog_compiler_pic='-KPIC'
9133 lt_prog_compiler_static='-Bstatic'
9134 case $cc_basename in
9135 f77* | f90* | f95*)
9136 lt_prog_compiler_wl='-Qoption ld ';;
9137 *)
9138 lt_prog_compiler_wl='-Wl,';;
9139 esac
9140 ;;
9141
9142 sunos4*)
9143 lt_prog_compiler_wl='-Qoption ld '
9144 lt_prog_compiler_pic='-PIC'
9145 lt_prog_compiler_static='-Bstatic'
9146 ;;
9147
9148 sysv4 | sysv4.2uw2* | sysv4.3*)
9149 lt_prog_compiler_wl='-Wl,'
9150 lt_prog_compiler_pic='-KPIC'
9151 lt_prog_compiler_static='-Bstatic'
9152 ;;
9153
9154 sysv4*MP*)
9155 if test -d /usr/nec ;then
9156 lt_prog_compiler_pic='-Kconform_pic'
9157 lt_prog_compiler_static='-Bstatic'
9158 fi
9159 ;;
9160
9161 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9162 lt_prog_compiler_wl='-Wl,'
9163 lt_prog_compiler_pic='-KPIC'
9164 lt_prog_compiler_static='-Bstatic'
9165 ;;
9166
9167 unicos*)
9168 lt_prog_compiler_wl='-Wl,'
9169 lt_prog_compiler_can_build_shared=no
9170 ;;
9171
9172 uts4*)
9173 lt_prog_compiler_pic='-pic'
9174 lt_prog_compiler_static='-Bstatic'
9175 ;;
9176
9177 *)
9178 lt_prog_compiler_can_build_shared=no
9179 ;;
9180 esac
9181 fi
9182
9183 case $host_os in
9184 # For platforms which do not support PIC, -DPIC is meaningless:
9185 *djgpp*)
9186 lt_prog_compiler_pic=
9187 ;;
9188 *)
9189 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9190 ;;
9191 esac
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9193 $as_echo "$lt_prog_compiler_pic" >&6; }
9194
9195
9196
9197
9198
9199
9200 #
9201 # Check to make sure the PIC flag actually works.
9202 #
9203 if test -n "$lt_prog_compiler_pic"; then
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9205 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9206 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9207 $as_echo_n "(cached) " >&6
9208 else
9209 lt_cv_prog_compiler_pic_works=no
9210 ac_outfile=conftest.$ac_objext
9211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9212 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9213 # Insert the option either (1) after the last *FLAGS variable, or
9214 # (2) before a word containing "conftest.", or (3) at the end.
9215 # Note that $ac_compile itself does not contain backslashes and begins
9216 # with a dollar sign (not a hyphen), so the echo should work correctly.
9217 # The option is referenced via a variable to avoid confusing sed.
9218 lt_compile=`echo "$ac_compile" | $SED \
9219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9221 -e 's:$: $lt_compiler_flag:'`
9222 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9223 (eval "$lt_compile" 2>conftest.err)
9224 ac_status=$?
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 if (exit $ac_status) && test -s "$ac_outfile"; then
9228 # The compiler can only warn and ignore the option if not recognized
9229 # So say no if there are warnings other than the usual output.
9230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9232 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9233 lt_cv_prog_compiler_pic_works=yes
9234 fi
9235 fi
9236 $RM conftest*
9237
9238 fi
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9240 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9241
9242 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9243 case $lt_prog_compiler_pic in
9244 "" | " "*) ;;
9245 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9246 esac
9247 else
9248 lt_prog_compiler_pic=
9249 lt_prog_compiler_can_build_shared=no
9250 fi
9251
9252 fi
9253
9254
9255
9256
9257
9258
9259 #
9260 # Check to make sure the static flag actually works.
9261 #
9262 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9264 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9265 if ${lt_cv_prog_compiler_static_works+:} false; then :
9266 $as_echo_n "(cached) " >&6
9267 else
9268 lt_cv_prog_compiler_static_works=no
9269 save_LDFLAGS="$LDFLAGS"
9270 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9271 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9272 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9273 # The linker can only warn and ignore the option if not recognized
9274 # So say no if there are warnings
9275 if test -s conftest.err; then
9276 # Append any errors to the config.log.
9277 cat conftest.err 1>&5
9278 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9279 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9280 if diff conftest.exp conftest.er2 >/dev/null; then
9281 lt_cv_prog_compiler_static_works=yes
9282 fi
9283 else
9284 lt_cv_prog_compiler_static_works=yes
9285 fi
9286 fi
9287 $RM -r conftest*
9288 LDFLAGS="$save_LDFLAGS"
9289
9290 fi
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9292 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9293
9294 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9295 :
9296 else
9297 lt_prog_compiler_static=
9298 fi
9299
9300
9301
9302
9303
9304
9305
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9307 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9308 if ${lt_cv_prog_compiler_c_o+:} false; then :
9309 $as_echo_n "(cached) " >&6
9310 else
9311 lt_cv_prog_compiler_c_o=no
9312 $RM -r conftest 2>/dev/null
9313 mkdir conftest
9314 cd conftest
9315 mkdir out
9316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9317
9318 lt_compiler_flag="-o out/conftest2.$ac_objext"
9319 # Insert the option either (1) after the last *FLAGS variable, or
9320 # (2) before a word containing "conftest.", or (3) at the end.
9321 # Note that $ac_compile itself does not contain backslashes and begins
9322 # with a dollar sign (not a hyphen), so the echo should work correctly.
9323 lt_compile=`echo "$ac_compile" | $SED \
9324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9326 -e 's:$: $lt_compiler_flag:'`
9327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9328 (eval "$lt_compile" 2>out/conftest.err)
9329 ac_status=$?
9330 cat out/conftest.err >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9333 then
9334 # The compiler can only warn and ignore the option if not recognized
9335 # So say no if there are warnings
9336 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9337 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9338 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9339 lt_cv_prog_compiler_c_o=yes
9340 fi
9341 fi
9342 chmod u+w . 2>&5
9343 $RM conftest*
9344 # SGI C++ compiler will create directory out/ii_files/ for
9345 # template instantiation
9346 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9347 $RM out/* && rmdir out
9348 cd ..
9349 $RM -r conftest
9350 $RM conftest*
9351
9352 fi
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9354 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9355
9356
9357
9358
9359
9360
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9362 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9363 if ${lt_cv_prog_compiler_c_o+:} false; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 lt_cv_prog_compiler_c_o=no
9367 $RM -r conftest 2>/dev/null
9368 mkdir conftest
9369 cd conftest
9370 mkdir out
9371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9372
9373 lt_compiler_flag="-o out/conftest2.$ac_objext"
9374 # Insert the option either (1) after the last *FLAGS variable, or
9375 # (2) before a word containing "conftest.", or (3) at the end.
9376 # Note that $ac_compile itself does not contain backslashes and begins
9377 # with a dollar sign (not a hyphen), so the echo should work correctly.
9378 lt_compile=`echo "$ac_compile" | $SED \
9379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9381 -e 's:$: $lt_compiler_flag:'`
9382 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9383 (eval "$lt_compile" 2>out/conftest.err)
9384 ac_status=$?
9385 cat out/conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9388 then
9389 # The compiler can only warn and ignore the option if not recognized
9390 # So say no if there are warnings
9391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9392 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9393 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9394 lt_cv_prog_compiler_c_o=yes
9395 fi
9396 fi
9397 chmod u+w . 2>&5
9398 $RM conftest*
9399 # SGI C++ compiler will create directory out/ii_files/ for
9400 # template instantiation
9401 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9402 $RM out/* && rmdir out
9403 cd ..
9404 $RM -r conftest
9405 $RM conftest*
9406
9407 fi
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9409 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9410
9411
9412
9413
9414 hard_links="nottested"
9415 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9416 # do not overwrite the value of need_locks provided by the user
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9418 $as_echo_n "checking if we can lock with hard links... " >&6; }
9419 hard_links=yes
9420 $RM conftest*
9421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9422 touch conftest.a
9423 ln conftest.a conftest.b 2>&5 || hard_links=no
9424 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9426 $as_echo "$hard_links" >&6; }
9427 if test "$hard_links" = no; then
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9429 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9430 need_locks=warn
9431 fi
9432 else
9433 need_locks=no
9434 fi
9435
9436
9437
9438
9439
9440
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9442 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9443
9444 runpath_var=
9445 allow_undefined_flag=
9446 always_export_symbols=no
9447 archive_cmds=
9448 archive_expsym_cmds=
9449 compiler_needs_object=no
9450 enable_shared_with_static_runtimes=no
9451 export_dynamic_flag_spec=
9452 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9453 hardcode_automatic=no
9454 hardcode_direct=no
9455 hardcode_direct_absolute=no
9456 hardcode_libdir_flag_spec=
9457 hardcode_libdir_flag_spec_ld=
9458 hardcode_libdir_separator=
9459 hardcode_minus_L=no
9460 hardcode_shlibpath_var=unsupported
9461 inherit_rpath=no
9462 link_all_deplibs=unknown
9463 module_cmds=
9464 module_expsym_cmds=
9465 old_archive_from_new_cmds=
9466 old_archive_from_expsyms_cmds=
9467 thread_safe_flag_spec=
9468 whole_archive_flag_spec=
9469 # include_expsyms should be a list of space-separated symbols to be *always*
9470 # included in the symbol list
9471 include_expsyms=
9472 # exclude_expsyms can be an extended regexp of symbols to exclude
9473 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9474 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9475 # as well as any symbol that contains `d'.
9476 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9477 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9478 # platforms (ab)use it in PIC code, but their linkers get confused if
9479 # the symbol is explicitly referenced. Since portable code cannot
9480 # rely on this symbol name, it's probably fine to never include it in
9481 # preloaded symbol tables.
9482 # Exclude shared library initialization/finalization symbols.
9483 extract_expsyms_cmds=
9484
9485 case $host_os in
9486 cygwin* | mingw* | pw32* | cegcc*)
9487 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9488 # When not using gcc, we currently assume that we are using
9489 # Microsoft Visual C++.
9490 if test "$GCC" != yes; then
9491 with_gnu_ld=no
9492 fi
9493 ;;
9494 interix*)
9495 # we just hope/assume this is gcc and not c89 (= MSVC++)
9496 with_gnu_ld=yes
9497 ;;
9498 openbsd*)
9499 with_gnu_ld=no
9500 ;;
9501 esac
9502
9503 ld_shlibs=yes
9504
9505 # On some targets, GNU ld is compatible enough with the native linker
9506 # that we're better off using the native interface for both.
9507 lt_use_gnu_ld_interface=no
9508 if test "$with_gnu_ld" = yes; then
9509 case $host_os in
9510 aix*)
9511 # The AIX port of GNU ld has always aspired to compatibility
9512 # with the native linker. However, as the warning in the GNU ld
9513 # block says, versions before 2.19.5* couldn't really create working
9514 # shared libraries, regardless of the interface used.
9515 case `$LD -v 2>&1` in
9516 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9517 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9518 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9519 *)
9520 lt_use_gnu_ld_interface=yes
9521 ;;
9522 esac
9523 ;;
9524 *)
9525 lt_use_gnu_ld_interface=yes
9526 ;;
9527 esac
9528 fi
9529
9530 if test "$lt_use_gnu_ld_interface" = yes; then
9531 # If archive_cmds runs LD, not CC, wlarc should be empty
9532 wlarc='${wl}'
9533
9534 # Set some defaults for GNU ld with shared library support. These
9535 # are reset later if shared libraries are not supported. Putting them
9536 # here allows them to be overridden if necessary.
9537 runpath_var=LD_RUN_PATH
9538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9539 export_dynamic_flag_spec='${wl}--export-dynamic'
9540 # ancient GNU ld didn't support --whole-archive et. al.
9541 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9542 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9543 else
9544 whole_archive_flag_spec=
9545 fi
9546 supports_anon_versioning=no
9547 case `$LD -v 2>&1` in
9548 *GNU\ gold*) supports_anon_versioning=yes ;;
9549 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9550 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9551 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9552 *\ 2.11.*) ;; # other 2.11 versions
9553 *) supports_anon_versioning=yes ;;
9554 esac
9555
9556 # See if GNU ld supports shared libraries.
9557 case $host_os in
9558 aix[3-9]*)
9559 # On AIX/PPC, the GNU linker is very broken
9560 if test "$host_cpu" != ia64; then
9561 ld_shlibs=no
9562 cat <<_LT_EOF 1>&2
9563
9564 *** Warning: the GNU linker, at least up to release 2.19, is reported
9565 *** to be unable to reliably create shared libraries on AIX.
9566 *** Therefore, libtool is disabling shared libraries support. If you
9567 *** really care for shared libraries, you may want to install binutils
9568 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9569 *** You will then need to restart the configuration process.
9570
9571 _LT_EOF
9572 fi
9573 ;;
9574
9575 amigaos*)
9576 case $host_cpu in
9577 powerpc)
9578 # see comment about AmigaOS4 .so support
9579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9580 archive_expsym_cmds=''
9581 ;;
9582 m68k)
9583 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)'
9584 hardcode_libdir_flag_spec='-L$libdir'
9585 hardcode_minus_L=yes
9586 ;;
9587 esac
9588 ;;
9589
9590 beos*)
9591 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9592 allow_undefined_flag=unsupported
9593 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9594 # support --undefined. This deserves some investigation. FIXME
9595 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9596 else
9597 ld_shlibs=no
9598 fi
9599 ;;
9600
9601 cygwin* | mingw* | pw32* | cegcc*)
9602 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9603 # as there is no search path for DLLs.
9604 hardcode_libdir_flag_spec='-L$libdir'
9605 export_dynamic_flag_spec='${wl}--export-all-symbols'
9606 allow_undefined_flag=unsupported
9607 always_export_symbols=no
9608 enable_shared_with_static_runtimes=yes
9609 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9610
9611 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9613 # If the export-symbols file already is a .def file (1st line
9614 # is EXPORTS), use it as is; otherwise, prepend...
9615 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9616 cp $export_symbols $output_objdir/$soname.def;
9617 else
9618 echo EXPORTS > $output_objdir/$soname.def;
9619 cat $export_symbols >> $output_objdir/$soname.def;
9620 fi~
9621 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9622 else
9623 ld_shlibs=no
9624 fi
9625 ;;
9626
9627 haiku*)
9628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9629 link_all_deplibs=yes
9630 ;;
9631
9632 interix[3-9]*)
9633 hardcode_direct=no
9634 hardcode_shlibpath_var=no
9635 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9636 export_dynamic_flag_spec='${wl}-E'
9637 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9638 # Instead, shared libraries are loaded at an image base (0x10000000 by
9639 # default) and relocated if they conflict, which is a slow very memory
9640 # consuming and fragmenting process. To avoid this, we pick a random,
9641 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9642 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9643 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9644 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'
9645 ;;
9646
9647 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9648 tmp_diet=no
9649 if test "$host_os" = linux-dietlibc; then
9650 case $cc_basename in
9651 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9652 esac
9653 fi
9654 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9655 && test "$tmp_diet" = no
9656 then
9657 tmp_addflag=' $pic_flag'
9658 tmp_sharedflag='-shared'
9659 case $cc_basename,$host_cpu in
9660 pgcc*) # Portland Group C compiler
9661 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'
9662 tmp_addflag=' $pic_flag'
9663 ;;
9664 pgf77* | pgf90* | pgf95* | pgfortran*)
9665 # Portland Group f77 and f90 compilers
9666 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'
9667 tmp_addflag=' $pic_flag -Mnomain' ;;
9668 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9669 tmp_addflag=' -i_dynamic' ;;
9670 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9671 tmp_addflag=' -i_dynamic -nofor_main' ;;
9672 ifc* | ifort*) # Intel Fortran compiler
9673 tmp_addflag=' -nofor_main' ;;
9674 lf95*) # Lahey Fortran 8.1
9675 whole_archive_flag_spec=
9676 tmp_sharedflag='--shared' ;;
9677 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9678 tmp_sharedflag='-qmkshrobj'
9679 tmp_addflag= ;;
9680 nvcc*) # Cuda Compiler Driver 2.2
9681 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'
9682 compiler_needs_object=yes
9683 ;;
9684 esac
9685 case `$CC -V 2>&1 | sed 5q` in
9686 *Sun\ C*) # Sun C 5.9
9687 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'
9688 compiler_needs_object=yes
9689 tmp_sharedflag='-G' ;;
9690 *Sun\ F*) # Sun Fortran 8.3
9691 tmp_sharedflag='-G' ;;
9692 esac
9693 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9694
9695 if test "x$supports_anon_versioning" = xyes; then
9696 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9697 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9698 echo "local: *; };" >> $output_objdir/$libname.ver~
9699 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9700 fi
9701
9702 case $cc_basename in
9703 xlf* | bgf* | bgxlf* | mpixlf*)
9704 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9705 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9706 hardcode_libdir_flag_spec=
9707 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9708 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9709 if test "x$supports_anon_versioning" = xyes; then
9710 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9711 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9712 echo "local: *; };" >> $output_objdir/$libname.ver~
9713 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9714 fi
9715 ;;
9716 esac
9717 else
9718 ld_shlibs=no
9719 fi
9720 ;;
9721
9722 netbsd*)
9723 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9724 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9725 wlarc=
9726 else
9727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9728 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9729 fi
9730 ;;
9731
9732 solaris*)
9733 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9734 ld_shlibs=no
9735 cat <<_LT_EOF 1>&2
9736
9737 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9738 *** create shared libraries on Solaris systems. Therefore, libtool
9739 *** is disabling shared libraries support. We urge you to upgrade GNU
9740 *** binutils to release 2.9.1 or newer. Another option is to modify
9741 *** your PATH or compiler configuration so that the native linker is
9742 *** used, and then restart.
9743
9744 _LT_EOF
9745 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9747 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9748 else
9749 ld_shlibs=no
9750 fi
9751 ;;
9752
9753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9754 case `$LD -v 2>&1` in
9755 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9756 ld_shlibs=no
9757 cat <<_LT_EOF 1>&2
9758
9759 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9760 *** reliably create shared libraries on SCO systems. Therefore, libtool
9761 *** is disabling shared libraries support. We urge you to upgrade GNU
9762 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9763 *** your PATH or compiler configuration so that the native linker is
9764 *** used, and then restart.
9765
9766 _LT_EOF
9767 ;;
9768 *)
9769 # For security reasons, it is highly recommended that you always
9770 # use absolute paths for naming shared libraries, and exclude the
9771 # DT_RUNPATH tag from executables and libraries. But doing so
9772 # requires that you compile everything twice, which is a pain.
9773 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9776 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9777 else
9778 ld_shlibs=no
9779 fi
9780 ;;
9781 esac
9782 ;;
9783
9784 sunos4*)
9785 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9786 wlarc=
9787 hardcode_direct=yes
9788 hardcode_shlibpath_var=no
9789 ;;
9790
9791 *)
9792 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9794 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9795 else
9796 ld_shlibs=no
9797 fi
9798 ;;
9799 esac
9800
9801 if test "$ld_shlibs" = no; then
9802 runpath_var=
9803 hardcode_libdir_flag_spec=
9804 export_dynamic_flag_spec=
9805 whole_archive_flag_spec=
9806 fi
9807 else
9808 # PORTME fill in a description of your system's linker (not GNU ld)
9809 case $host_os in
9810 aix3*)
9811 allow_undefined_flag=unsupported
9812 always_export_symbols=yes
9813 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'
9814 # Note: this linker hardcodes the directories in LIBPATH if there
9815 # are no directories specified by -L.
9816 hardcode_minus_L=yes
9817 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9818 # Neither direct hardcoding nor static linking is supported with a
9819 # broken collect2.
9820 hardcode_direct=unsupported
9821 fi
9822 ;;
9823
9824 aix[4-9]*)
9825 if test "$host_cpu" = ia64; then
9826 # On IA64, the linker does run time linking by default, so we don't
9827 # have to do anything special.
9828 aix_use_runtimelinking=no
9829 exp_sym_flag='-Bexport'
9830 no_entry_flag=""
9831 else
9832 # If we're using GNU nm, then we don't want the "-C" option.
9833 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9834 # Also, AIX nm treats weak defined symbols like other global
9835 # defined symbols, whereas GNU nm marks them as "W".
9836 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9837 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'
9838 else
9839 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'
9840 fi
9841 aix_use_runtimelinking=no
9842
9843 # Test if we are trying to use run time linking or normal
9844 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9845 # need to do runtime linking.
9846 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9847 for ld_flag in $LDFLAGS; do
9848 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9849 aix_use_runtimelinking=yes
9850 break
9851 fi
9852 done
9853 ;;
9854 esac
9855
9856 exp_sym_flag='-bexport'
9857 no_entry_flag='-bnoentry'
9858 fi
9859
9860 # When large executables or shared objects are built, AIX ld can
9861 # have problems creating the table of contents. If linking a library
9862 # or program results in "error TOC overflow" add -mminimal-toc to
9863 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9864 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9865
9866 archive_cmds=''
9867 hardcode_direct=yes
9868 hardcode_direct_absolute=yes
9869 hardcode_libdir_separator=':'
9870 link_all_deplibs=yes
9871 file_list_spec='${wl}-f,'
9872
9873 if test "$GCC" = yes; then
9874 case $host_os in aix4.[012]|aix4.[012].*)
9875 # We only want to do this on AIX 4.2 and lower, the check
9876 # below for broken collect2 doesn't work under 4.3+
9877 collect2name=`${CC} -print-prog-name=collect2`
9878 if test -f "$collect2name" &&
9879 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9880 then
9881 # We have reworked collect2
9882 :
9883 else
9884 # We have old collect2
9885 hardcode_direct=unsupported
9886 # It fails to find uninstalled libraries when the uninstalled
9887 # path is not listed in the libpath. Setting hardcode_minus_L
9888 # to unsupported forces relinking
9889 hardcode_minus_L=yes
9890 hardcode_libdir_flag_spec='-L$libdir'
9891 hardcode_libdir_separator=
9892 fi
9893 ;;
9894 esac
9895 shared_flag='-shared'
9896 if test "$aix_use_runtimelinking" = yes; then
9897 shared_flag="$shared_flag "'${wl}-G'
9898 fi
9899 else
9900 # not using gcc
9901 if test "$host_cpu" = ia64; then
9902 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9903 # chokes on -Wl,-G. The following line is correct:
9904 shared_flag='-G'
9905 else
9906 if test "$aix_use_runtimelinking" = yes; then
9907 shared_flag='${wl}-G'
9908 else
9909 shared_flag='${wl}-bM:SRE'
9910 fi
9911 fi
9912 fi
9913
9914 export_dynamic_flag_spec='${wl}-bexpall'
9915 # It seems that -bexpall does not export symbols beginning with
9916 # underscore (_), so it is better to generate a list of symbols to export.
9917 always_export_symbols=yes
9918 if test "$aix_use_runtimelinking" = yes; then
9919 # Warning - without using the other runtime loading flags (-brtl),
9920 # -berok will link without error, but may produce a broken library.
9921 allow_undefined_flag='-berok'
9922 # Determine the default libpath from the value encoded in an
9923 # empty executable.
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9926
9927 int
9928 main ()
9929 {
9930
9931 ;
9932 return 0;
9933 }
9934 _ACEOF
9935 if ac_fn_c_try_link "$LINENO"; then :
9936
9937 lt_aix_libpath_sed='
9938 /Import File Strings/,/^$/ {
9939 /^0/ {
9940 s/^0 *\(.*\)$/\1/
9941 p
9942 }
9943 }'
9944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9945 # Check for a 64-bit object if we didn't find anything.
9946 if test -z "$aix_libpath"; then
9947 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9948 fi
9949 fi
9950 rm -f core conftest.err conftest.$ac_objext \
9951 conftest$ac_exeext conftest.$ac_ext
9952 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9953
9954 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9955 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"
9956 else
9957 if test "$host_cpu" = ia64; then
9958 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9959 allow_undefined_flag="-z nodefs"
9960 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"
9961 else
9962 # Determine the default libpath from the value encoded in an
9963 # empty executable.
9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h. */
9966
9967 int
9968 main ()
9969 {
9970
9971 ;
9972 return 0;
9973 }
9974 _ACEOF
9975 if ac_fn_c_try_link "$LINENO"; then :
9976
9977 lt_aix_libpath_sed='
9978 /Import File Strings/,/^$/ {
9979 /^0/ {
9980 s/^0 *\(.*\)$/\1/
9981 p
9982 }
9983 }'
9984 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9985 # Check for a 64-bit object if we didn't find anything.
9986 if test -z "$aix_libpath"; then
9987 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9988 fi
9989 fi
9990 rm -f core conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9992 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9993
9994 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9995 # Warning - without using the other run time loading flags,
9996 # -berok will link without error, but may produce a broken library.
9997 no_undefined_flag=' ${wl}-bernotok'
9998 allow_undefined_flag=' ${wl}-berok'
9999 if test "$with_gnu_ld" = yes; then
10000 # We only use this code for GNU lds that support --whole-archive.
10001 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10002 else
10003 # Exported symbols can be pulled into shared objects from archives
10004 whole_archive_flag_spec='$convenience'
10005 fi
10006 archive_cmds_need_lc=yes
10007 # This is similar to how AIX traditionally builds its shared libraries.
10008 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'
10009 fi
10010 fi
10011 ;;
10012
10013 amigaos*)
10014 case $host_cpu in
10015 powerpc)
10016 # see comment about AmigaOS4 .so support
10017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10018 archive_expsym_cmds=''
10019 ;;
10020 m68k)
10021 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)'
10022 hardcode_libdir_flag_spec='-L$libdir'
10023 hardcode_minus_L=yes
10024 ;;
10025 esac
10026 ;;
10027
10028 bsdi[45]*)
10029 export_dynamic_flag_spec=-rdynamic
10030 ;;
10031
10032 cygwin* | mingw* | pw32* | cegcc*)
10033 # When not using gcc, we currently assume that we are using
10034 # Microsoft Visual C++.
10035 # hardcode_libdir_flag_spec is actually meaningless, as there is
10036 # no search path for DLLs.
10037 hardcode_libdir_flag_spec=' '
10038 allow_undefined_flag=unsupported
10039 # Tell ltmain to make .lib files, not .a files.
10040 libext=lib
10041 # Tell ltmain to make .dll files, not .so files.
10042 shrext_cmds=".dll"
10043 # FIXME: Setting linknames here is a bad hack.
10044 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10045 # The linker will automatically build a .lib file if we build a DLL.
10046 old_archive_from_new_cmds='true'
10047 # FIXME: Should let the user specify the lib program.
10048 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10049 fix_srcfile_path='`cygpath -w "$srcfile"`'
10050 enable_shared_with_static_runtimes=yes
10051 ;;
10052
10053 darwin* | rhapsody*)
10054
10055
10056 archive_cmds_need_lc=no
10057 hardcode_direct=no
10058 hardcode_automatic=yes
10059 hardcode_shlibpath_var=unsupported
10060 if test "$lt_cv_ld_force_load" = "yes"; then
10061 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\"`'
10062 else
10063 whole_archive_flag_spec=''
10064 fi
10065 link_all_deplibs=yes
10066 allow_undefined_flag="$_lt_dar_allow_undefined"
10067 case $cc_basename in
10068 ifort*) _lt_dar_can_shared=yes ;;
10069 *) _lt_dar_can_shared=$GCC ;;
10070 esac
10071 if test "$_lt_dar_can_shared" = "yes"; then
10072 output_verbose_link_cmd=func_echo_all
10073 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10074 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10075 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}"
10076 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}"
10077
10078 else
10079 ld_shlibs=no
10080 fi
10081
10082 ;;
10083
10084 dgux*)
10085 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10086 hardcode_libdir_flag_spec='-L$libdir'
10087 hardcode_shlibpath_var=no
10088 ;;
10089
10090 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10091 # support. Future versions do this automatically, but an explicit c++rt0.o
10092 # does not break anything, and helps significantly (at the cost of a little
10093 # extra space).
10094 freebsd2.2*)
10095 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10096 hardcode_libdir_flag_spec='-R$libdir'
10097 hardcode_direct=yes
10098 hardcode_shlibpath_var=no
10099 ;;
10100
10101 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10102 freebsd2.*)
10103 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10104 hardcode_direct=yes
10105 hardcode_minus_L=yes
10106 hardcode_shlibpath_var=no
10107 ;;
10108
10109 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10110 freebsd* | dragonfly*)
10111 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10112 hardcode_libdir_flag_spec='-R$libdir'
10113 hardcode_direct=yes
10114 hardcode_shlibpath_var=no
10115 ;;
10116
10117 hpux9*)
10118 if test "$GCC" = yes; then
10119 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'
10120 else
10121 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'
10122 fi
10123 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10124 hardcode_libdir_separator=:
10125 hardcode_direct=yes
10126
10127 # hardcode_minus_L: Not really in the search PATH,
10128 # but as the default location of the library.
10129 hardcode_minus_L=yes
10130 export_dynamic_flag_spec='${wl}-E'
10131 ;;
10132
10133 hpux10*)
10134 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10135 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10136 else
10137 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10138 fi
10139 if test "$with_gnu_ld" = no; then
10140 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10141 hardcode_libdir_flag_spec_ld='+b $libdir'
10142 hardcode_libdir_separator=:
10143 hardcode_direct=yes
10144 hardcode_direct_absolute=yes
10145 export_dynamic_flag_spec='${wl}-E'
10146 # hardcode_minus_L: Not really in the search PATH,
10147 # but as the default location of the library.
10148 hardcode_minus_L=yes
10149 fi
10150 ;;
10151
10152 hpux11*)
10153 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10154 case $host_cpu in
10155 hppa*64*)
10156 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10157 ;;
10158 ia64*)
10159 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10160 ;;
10161 *)
10162 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10163 ;;
10164 esac
10165 else
10166 case $host_cpu in
10167 hppa*64*)
10168 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10169 ;;
10170 ia64*)
10171 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10172 ;;
10173 *)
10174
10175 # Older versions of the 11.00 compiler do not understand -b yet
10176 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10178 $as_echo_n "checking if $CC understands -b... " >&6; }
10179 if ${lt_cv_prog_compiler__b+:} false; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 lt_cv_prog_compiler__b=no
10183 save_LDFLAGS="$LDFLAGS"
10184 LDFLAGS="$LDFLAGS -b"
10185 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10186 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10187 # The linker can only warn and ignore the option if not recognized
10188 # So say no if there are warnings
10189 if test -s conftest.err; then
10190 # Append any errors to the config.log.
10191 cat conftest.err 1>&5
10192 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10194 if diff conftest.exp conftest.er2 >/dev/null; then
10195 lt_cv_prog_compiler__b=yes
10196 fi
10197 else
10198 lt_cv_prog_compiler__b=yes
10199 fi
10200 fi
10201 $RM -r conftest*
10202 LDFLAGS="$save_LDFLAGS"
10203
10204 fi
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10206 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10207
10208 if test x"$lt_cv_prog_compiler__b" = xyes; then
10209 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10210 else
10211 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10212 fi
10213
10214 ;;
10215 esac
10216 fi
10217 if test "$with_gnu_ld" = no; then
10218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10219 hardcode_libdir_separator=:
10220
10221 case $host_cpu in
10222 hppa*64*|ia64*)
10223 hardcode_direct=no
10224 hardcode_shlibpath_var=no
10225 ;;
10226 *)
10227 hardcode_direct=yes
10228 hardcode_direct_absolute=yes
10229 export_dynamic_flag_spec='${wl}-E'
10230
10231 # hardcode_minus_L: Not really in the search PATH,
10232 # but as the default location of the library.
10233 hardcode_minus_L=yes
10234 ;;
10235 esac
10236 fi
10237 ;;
10238
10239 irix5* | irix6* | nonstopux*)
10240 if test "$GCC" = yes; then
10241 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'
10242 # Try to use the -exported_symbol ld option, if it does not
10243 # work, assume that -exports_file does not work either and
10244 # implicitly export all symbols.
10245 save_LDFLAGS="$LDFLAGS"
10246 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248 /* end confdefs.h. */
10249 int foo(void) {}
10250 _ACEOF
10251 if ac_fn_c_try_link "$LINENO"; then :
10252 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'
10253
10254 fi
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10257 LDFLAGS="$save_LDFLAGS"
10258 else
10259 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'
10260 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'
10261 fi
10262 archive_cmds_need_lc='no'
10263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10264 hardcode_libdir_separator=:
10265 inherit_rpath=yes
10266 link_all_deplibs=yes
10267 ;;
10268
10269 netbsd*)
10270 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10271 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10272 else
10273 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10274 fi
10275 hardcode_libdir_flag_spec='-R$libdir'
10276 hardcode_direct=yes
10277 hardcode_shlibpath_var=no
10278 ;;
10279
10280 newsos6)
10281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10282 hardcode_direct=yes
10283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10284 hardcode_libdir_separator=:
10285 hardcode_shlibpath_var=no
10286 ;;
10287
10288 *nto* | *qnx*)
10289 ;;
10290
10291 openbsd*)
10292 if test -f /usr/libexec/ld.so; then
10293 hardcode_direct=yes
10294 hardcode_shlibpath_var=no
10295 hardcode_direct_absolute=yes
10296 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10297 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10298 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10299 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10300 export_dynamic_flag_spec='${wl}-E'
10301 else
10302 case $host_os in
10303 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10304 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10305 hardcode_libdir_flag_spec='-R$libdir'
10306 ;;
10307 *)
10308 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10309 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10310 ;;
10311 esac
10312 fi
10313 else
10314 ld_shlibs=no
10315 fi
10316 ;;
10317
10318 os2*)
10319 hardcode_libdir_flag_spec='-L$libdir'
10320 hardcode_minus_L=yes
10321 allow_undefined_flag=unsupported
10322 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'
10323 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10324 ;;
10325
10326 osf3*)
10327 if test "$GCC" = yes; then
10328 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10329 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'
10330 else
10331 allow_undefined_flag=' -expect_unresolved \*'
10332 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'
10333 fi
10334 archive_cmds_need_lc='no'
10335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10336 hardcode_libdir_separator=:
10337 ;;
10338
10339 osf4* | osf5*) # as osf3* with the addition of -msym flag
10340 if test "$GCC" = yes; then
10341 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10342 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'
10343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10344 else
10345 allow_undefined_flag=' -expect_unresolved \*'
10346 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'
10347 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~
10348 $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'
10349
10350 # Both c and cxx compiler support -rpath directly
10351 hardcode_libdir_flag_spec='-rpath $libdir'
10352 fi
10353 archive_cmds_need_lc='no'
10354 hardcode_libdir_separator=:
10355 ;;
10356
10357 solaris*)
10358 no_undefined_flag=' -z defs'
10359 if test "$GCC" = yes; then
10360 wlarc='${wl}'
10361 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10362 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10363 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10364 else
10365 case `$CC -V 2>&1` in
10366 *"Compilers 5.0"*)
10367 wlarc=''
10368 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10369 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10370 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10371 ;;
10372 *)
10373 wlarc='${wl}'
10374 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10375 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10376 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10377 ;;
10378 esac
10379 fi
10380 hardcode_libdir_flag_spec='-R$libdir'
10381 hardcode_shlibpath_var=no
10382 case $host_os in
10383 solaris2.[0-5] | solaris2.[0-5].*) ;;
10384 *)
10385 # The compiler driver will combine and reorder linker options,
10386 # but understands `-z linker_flag'. GCC discards it without `$wl',
10387 # but is careful enough not to reorder.
10388 # Supported since Solaris 2.6 (maybe 2.5.1?)
10389 if test "$GCC" = yes; then
10390 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10391 else
10392 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10393 fi
10394 ;;
10395 esac
10396 link_all_deplibs=yes
10397 ;;
10398
10399 sunos4*)
10400 if test "x$host_vendor" = xsequent; then
10401 # Use $CC to link under sequent, because it throws in some extra .o
10402 # files that make .init and .fini sections work.
10403 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10404 else
10405 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10406 fi
10407 hardcode_libdir_flag_spec='-L$libdir'
10408 hardcode_direct=yes
10409 hardcode_minus_L=yes
10410 hardcode_shlibpath_var=no
10411 ;;
10412
10413 sysv4)
10414 case $host_vendor in
10415 sni)
10416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10417 hardcode_direct=yes # is this really true???
10418 ;;
10419 siemens)
10420 ## LD is ld it makes a PLAMLIB
10421 ## CC just makes a GrossModule.
10422 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10423 reload_cmds='$CC -r -o $output$reload_objs'
10424 hardcode_direct=no
10425 ;;
10426 motorola)
10427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10429 ;;
10430 esac
10431 runpath_var='LD_RUN_PATH'
10432 hardcode_shlibpath_var=no
10433 ;;
10434
10435 sysv4.3*)
10436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10437 hardcode_shlibpath_var=no
10438 export_dynamic_flag_spec='-Bexport'
10439 ;;
10440
10441 sysv4*MP*)
10442 if test -d /usr/nec; then
10443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10444 hardcode_shlibpath_var=no
10445 runpath_var=LD_RUN_PATH
10446 hardcode_runpath_var=yes
10447 ld_shlibs=yes
10448 fi
10449 ;;
10450
10451 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10452 no_undefined_flag='${wl}-z,text'
10453 archive_cmds_need_lc=no
10454 hardcode_shlibpath_var=no
10455 runpath_var='LD_RUN_PATH'
10456
10457 if test "$GCC" = yes; then
10458 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10459 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10460 else
10461 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10462 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10463 fi
10464 ;;
10465
10466 sysv5* | sco3.2v5* | sco5v6*)
10467 # Note: We can NOT use -z defs as we might desire, because we do not
10468 # link with -lc, and that would cause any symbols used from libc to
10469 # always be unresolved, which means just about no library would
10470 # ever link correctly. If we're not using GNU ld we use -z text
10471 # though, which does catch some bad symbols but isn't as heavy-handed
10472 # as -z defs.
10473 no_undefined_flag='${wl}-z,text'
10474 allow_undefined_flag='${wl}-z,nodefs'
10475 archive_cmds_need_lc=no
10476 hardcode_shlibpath_var=no
10477 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10478 hardcode_libdir_separator=':'
10479 link_all_deplibs=yes
10480 export_dynamic_flag_spec='${wl}-Bexport'
10481 runpath_var='LD_RUN_PATH'
10482
10483 if test "$GCC" = yes; then
10484 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10485 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10486 else
10487 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10488 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10489 fi
10490 ;;
10491
10492 uts4*)
10493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10494 hardcode_libdir_flag_spec='-L$libdir'
10495 hardcode_shlibpath_var=no
10496 ;;
10497
10498 *)
10499 ld_shlibs=no
10500 ;;
10501 esac
10502
10503 if test x$host_vendor = xsni; then
10504 case $host in
10505 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10506 export_dynamic_flag_spec='${wl}-Blargedynsym'
10507 ;;
10508 esac
10509 fi
10510 fi
10511
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10513 $as_echo "$ld_shlibs" >&6; }
10514 test "$ld_shlibs" = no && can_build_shared=no
10515
10516 with_gnu_ld=$with_gnu_ld
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532 #
10533 # Do we need to explicitly link libc?
10534 #
10535 case "x$archive_cmds_need_lc" in
10536 x|xyes)
10537 # Assume -lc should be added
10538 archive_cmds_need_lc=yes
10539
10540 if test "$enable_shared" = yes && test "$GCC" = yes; then
10541 case $archive_cmds in
10542 *'~'*)
10543 # FIXME: we may have to deal with multi-command sequences.
10544 ;;
10545 '$CC '*)
10546 # Test whether the compiler implicitly links with -lc since on some
10547 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10548 # to ld, don't add -lc before -lgcc.
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10550 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10551 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10552 $as_echo_n "(cached) " >&6
10553 else
10554 $RM conftest*
10555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10556
10557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10558 (eval $ac_compile) 2>&5
10559 ac_status=$?
10560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10561 test $ac_status = 0; } 2>conftest.err; then
10562 soname=conftest
10563 lib=conftest
10564 libobjs=conftest.$ac_objext
10565 deplibs=
10566 wl=$lt_prog_compiler_wl
10567 pic_flag=$lt_prog_compiler_pic
10568 compiler_flags=-v
10569 linker_flags=-v
10570 verstring=
10571 output_objdir=.
10572 libname=conftest
10573 lt_save_allow_undefined_flag=$allow_undefined_flag
10574 allow_undefined_flag=
10575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10576 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10577 ac_status=$?
10578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10579 test $ac_status = 0; }
10580 then
10581 lt_cv_archive_cmds_need_lc=no
10582 else
10583 lt_cv_archive_cmds_need_lc=yes
10584 fi
10585 allow_undefined_flag=$lt_save_allow_undefined_flag
10586 else
10587 cat conftest.err 1>&5
10588 fi
10589 $RM conftest*
10590
10591 fi
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10593 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10594 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10595 ;;
10596 esac
10597 fi
10598 ;;
10599 esac
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10758 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10759
10760 if test "$GCC" = yes; then
10761 case $host_os in
10762 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10763 *) lt_awk_arg="/^libraries:/" ;;
10764 esac
10765 case $host_os in
10766 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10767 *) lt_sed_strip_eq="s,=/,/,g" ;;
10768 esac
10769 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10770 case $lt_search_path_spec in
10771 *\;*)
10772 # if the path contains ";" then we assume it to be the separator
10773 # otherwise default to the standard path separator (i.e. ":") - it is
10774 # assumed that no part of a normal pathname contains ";" but that should
10775 # okay in the real world where ";" in dirpaths is itself problematic.
10776 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10777 ;;
10778 *)
10779 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10780 ;;
10781 esac
10782 # Ok, now we have the path, separated by spaces, we can step through it
10783 # and add multilib dir if necessary.
10784 lt_tmp_lt_search_path_spec=
10785 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10786 for lt_sys_path in $lt_search_path_spec; do
10787 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10788 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10789 else
10790 test -d "$lt_sys_path" && \
10791 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10792 fi
10793 done
10794 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10795 BEGIN {RS=" "; FS="/|\n";} {
10796 lt_foo="";
10797 lt_count=0;
10798 for (lt_i = NF; lt_i > 0; lt_i--) {
10799 if ($lt_i != "" && $lt_i != ".") {
10800 if ($lt_i == "..") {
10801 lt_count++;
10802 } else {
10803 if (lt_count == 0) {
10804 lt_foo="/" $lt_i lt_foo;
10805 } else {
10806 lt_count--;
10807 }
10808 }
10809 }
10810 }
10811 if (lt_foo != "") { lt_freq[lt_foo]++; }
10812 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10813 }'`
10814 # AWK program above erroneously prepends '/' to C:/dos/paths
10815 # for these hosts.
10816 case $host_os in
10817 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10818 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10819 esac
10820 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10821 else
10822 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10823 fi
10824 library_names_spec=
10825 libname_spec='lib$name'
10826 soname_spec=
10827 shrext_cmds=".so"
10828 postinstall_cmds=
10829 postuninstall_cmds=
10830 finish_cmds=
10831 finish_eval=
10832 shlibpath_var=
10833 shlibpath_overrides_runpath=unknown
10834 version_type=none
10835 dynamic_linker="$host_os ld.so"
10836 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10837 need_lib_prefix=unknown
10838 hardcode_into_libs=no
10839
10840 # when you set need_version to no, make sure it does not cause -set_version
10841 # flags to be left without arguments
10842 need_version=unknown
10843
10844 case $host_os in
10845 aix3*)
10846 version_type=linux
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10848 shlibpath_var=LIBPATH
10849
10850 # AIX 3 has no versioning support, so we append a major version to the name.
10851 soname_spec='${libname}${release}${shared_ext}$major'
10852 ;;
10853
10854 aix[4-9]*)
10855 version_type=linux
10856 need_lib_prefix=no
10857 need_version=no
10858 hardcode_into_libs=yes
10859 if test "$host_cpu" = ia64; then
10860 # AIX 5 supports IA64
10861 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10862 shlibpath_var=LD_LIBRARY_PATH
10863 else
10864 # With GCC up to 2.95.x, collect2 would create an import file
10865 # for dependence libraries. The import file would start with
10866 # the line `#! .'. This would cause the generated library to
10867 # depend on `.', always an invalid library. This was fixed in
10868 # development snapshots of GCC prior to 3.0.
10869 case $host_os in
10870 aix4 | aix4.[01] | aix4.[01].*)
10871 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10872 echo ' yes '
10873 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10874 :
10875 else
10876 can_build_shared=no
10877 fi
10878 ;;
10879 esac
10880 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10881 # soname into executable. Probably we can add versioning support to
10882 # collect2, so additional links can be useful in future.
10883 if test "$aix_use_runtimelinking" = yes; then
10884 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10885 # instead of lib<name>.a to let people know that these are not
10886 # typical AIX shared libraries.
10887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888 else
10889 # We preserve .a as extension for shared libraries through AIX4.2
10890 # and later when we are not doing run time linking.
10891 library_names_spec='${libname}${release}.a $libname.a'
10892 soname_spec='${libname}${release}${shared_ext}$major'
10893 fi
10894 shlibpath_var=LIBPATH
10895 fi
10896 ;;
10897
10898 amigaos*)
10899 case $host_cpu in
10900 powerpc)
10901 # Since July 2007 AmigaOS4 officially supports .so libraries.
10902 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904 ;;
10905 m68k)
10906 library_names_spec='$libname.ixlibrary $libname.a'
10907 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10908 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'
10909 ;;
10910 esac
10911 ;;
10912
10913 beos*)
10914 library_names_spec='${libname}${shared_ext}'
10915 dynamic_linker="$host_os ld.so"
10916 shlibpath_var=LIBRARY_PATH
10917 ;;
10918
10919 bsdi[45]*)
10920 version_type=linux
10921 need_version=no
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10927 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10928 # the default ld.so.conf also contains /usr/contrib/lib and
10929 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10930 # libtool to hard-code these into programs
10931 ;;
10932
10933 cygwin* | mingw* | pw32* | cegcc*)
10934 version_type=windows
10935 shrext_cmds=".dll"
10936 need_version=no
10937 need_lib_prefix=no
10938
10939 case $GCC,$host_os in
10940 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10941 library_names_spec='$libname.dll.a'
10942 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10943 postinstall_cmds='base_file=`basename \${file}`~
10944 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10945 dldir=$destdir/`dirname \$dlpath`~
10946 test -d \$dldir || mkdir -p \$dldir~
10947 $install_prog $dir/$dlname \$dldir/$dlname~
10948 chmod a+x \$dldir/$dlname~
10949 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10950 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10951 fi'
10952 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10953 dlpath=$dir/\$dldll~
10954 $RM \$dlpath'
10955 shlibpath_overrides_runpath=yes
10956
10957 case $host_os in
10958 cygwin*)
10959 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10960 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10961
10962 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10963 ;;
10964 mingw* | cegcc*)
10965 # MinGW DLLs use traditional 'lib' prefix
10966 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10967 ;;
10968 pw32*)
10969 # pw32 DLLs use 'pw' prefix rather than 'lib'
10970 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10971 ;;
10972 esac
10973 ;;
10974
10975 *)
10976 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10977 ;;
10978 esac
10979 dynamic_linker='Win32 ld.exe'
10980 # FIXME: first we should search . and the directory the executable is in
10981 shlibpath_var=PATH
10982 ;;
10983
10984 darwin* | rhapsody*)
10985 dynamic_linker="$host_os dyld"
10986 version_type=darwin
10987 need_lib_prefix=no
10988 need_version=no
10989 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10990 soname_spec='${libname}${release}${major}$shared_ext'
10991 shlibpath_overrides_runpath=yes
10992 shlibpath_var=DYLD_LIBRARY_PATH
10993 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10994
10995 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10996 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10997 ;;
10998
10999 dgux*)
11000 version_type=linux
11001 need_lib_prefix=no
11002 need_version=no
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11004 soname_spec='${libname}${release}${shared_ext}$major'
11005 shlibpath_var=LD_LIBRARY_PATH
11006 ;;
11007
11008 freebsd* | dragonfly*)
11009 # DragonFly does not have aout. When/if they implement a new
11010 # versioning mechanism, adjust this.
11011 if test -x /usr/bin/objformat; then
11012 objformat=`/usr/bin/objformat`
11013 else
11014 case $host_os in
11015 freebsd[23].*) objformat=aout ;;
11016 *) objformat=elf ;;
11017 esac
11018 fi
11019 version_type=freebsd-$objformat
11020 case $version_type in
11021 freebsd-elf*)
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11023 need_version=no
11024 need_lib_prefix=no
11025 ;;
11026 freebsd-*)
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11028 need_version=yes
11029 ;;
11030 esac
11031 shlibpath_var=LD_LIBRARY_PATH
11032 case $host_os in
11033 freebsd2.*)
11034 shlibpath_overrides_runpath=yes
11035 ;;
11036 freebsd3.[01]* | freebsdelf3.[01]*)
11037 shlibpath_overrides_runpath=yes
11038 hardcode_into_libs=yes
11039 ;;
11040 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11041 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11042 shlibpath_overrides_runpath=no
11043 hardcode_into_libs=yes
11044 ;;
11045 *) # from 4.6 on, and DragonFly
11046 shlibpath_overrides_runpath=yes
11047 hardcode_into_libs=yes
11048 ;;
11049 esac
11050 ;;
11051
11052 haiku*)
11053 version_type=linux
11054 need_lib_prefix=no
11055 need_version=no
11056 dynamic_linker="$host_os runtime_loader"
11057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11058 soname_spec='${libname}${release}${shared_ext}$major'
11059 shlibpath_var=LIBRARY_PATH
11060 shlibpath_overrides_runpath=yes
11061 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11062 hardcode_into_libs=yes
11063 ;;
11064
11065 hpux9* | hpux10* | hpux11*)
11066 # Give a soname corresponding to the major version so that dld.sl refuses to
11067 # link against other versions.
11068 version_type=sunos
11069 need_lib_prefix=no
11070 need_version=no
11071 case $host_cpu in
11072 ia64*)
11073 shrext_cmds='.so'
11074 hardcode_into_libs=yes
11075 dynamic_linker="$host_os dld.so"
11076 shlibpath_var=LD_LIBRARY_PATH
11077 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11079 soname_spec='${libname}${release}${shared_ext}$major'
11080 if test "X$HPUX_IA64_MODE" = X32; then
11081 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11082 else
11083 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11084 fi
11085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11086 ;;
11087 hppa*64*)
11088 shrext_cmds='.sl'
11089 hardcode_into_libs=yes
11090 dynamic_linker="$host_os dld.sl"
11091 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 soname_spec='${libname}${release}${shared_ext}$major'
11095 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11097 ;;
11098 *)
11099 shrext_cmds='.sl'
11100 dynamic_linker="$host_os dld.sl"
11101 shlibpath_var=SHLIB_PATH
11102 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 ;;
11106 esac
11107 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11108 postinstall_cmds='chmod 555 $lib'
11109 # or fails outright, so override atomically:
11110 install_override_mode=555
11111 ;;
11112
11113 interix[3-9]*)
11114 version_type=linux
11115 need_lib_prefix=no
11116 need_version=no
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 shlibpath_overrides_runpath=no
11122 hardcode_into_libs=yes
11123 ;;
11124
11125 irix5* | irix6* | nonstopux*)
11126 case $host_os in
11127 nonstopux*) version_type=nonstopux ;;
11128 *)
11129 if test "$lt_cv_prog_gnu_ld" = yes; then
11130 version_type=linux
11131 else
11132 version_type=irix
11133 fi ;;
11134 esac
11135 need_lib_prefix=no
11136 need_version=no
11137 soname_spec='${libname}${release}${shared_ext}$major'
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11139 case $host_os in
11140 irix5* | nonstopux*)
11141 libsuff= shlibsuff=
11142 ;;
11143 *)
11144 case $LD in # libtool.m4 will add one of these switches to LD
11145 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11146 libsuff= shlibsuff= libmagic=32-bit;;
11147 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11148 libsuff=32 shlibsuff=N32 libmagic=N32;;
11149 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11150 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11151 *) libsuff= shlibsuff= libmagic=never-match;;
11152 esac
11153 ;;
11154 esac
11155 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11156 shlibpath_overrides_runpath=no
11157 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11158 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11159 hardcode_into_libs=yes
11160 ;;
11161
11162 # No shared lib support for Linux oldld, aout, or coff.
11163 linux*oldld* | linux*aout* | linux*coff*)
11164 dynamic_linker=no
11165 ;;
11166
11167 # This must be Linux ELF.
11168 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11169 version_type=linux
11170 need_lib_prefix=no
11171 need_version=no
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 shlibpath_overrides_runpath=no
11177
11178 # Some binutils ld are patched to set DT_RUNPATH
11179 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11180 $as_echo_n "(cached) " >&6
11181 else
11182 lt_cv_shlibpath_overrides_runpath=no
11183 save_LDFLAGS=$LDFLAGS
11184 save_libdir=$libdir
11185 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11186 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11189
11190 int
11191 main ()
11192 {
11193
11194 ;
11195 return 0;
11196 }
11197 _ACEOF
11198 if ac_fn_c_try_link "$LINENO"; then :
11199 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11200 lt_cv_shlibpath_overrides_runpath=yes
11201 fi
11202 fi
11203 rm -f core conftest.err conftest.$ac_objext \
11204 conftest$ac_exeext conftest.$ac_ext
11205 LDFLAGS=$save_LDFLAGS
11206 libdir=$save_libdir
11207
11208 fi
11209
11210 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11211
11212 # This implies no fast_install, which is unacceptable.
11213 # Some rework will be needed to allow for fast_install
11214 # before this can be enabled.
11215 hardcode_into_libs=yes
11216
11217 # Append ld.so.conf contents to the search path
11218 if test -f /etc/ld.so.conf; then
11219 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' ' '`
11220 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11221 fi
11222
11223 # We used to test for /lib/ld.so.1 and disable shared libraries on
11224 # powerpc, because MkLinux only supported shared libraries with the
11225 # GNU dynamic linker. Since this was broken with cross compilers,
11226 # most powerpc-linux boxes support dynamic linking these days and
11227 # people can always --disable-shared, the test was removed, and we
11228 # assume the GNU/Linux dynamic linker is in use.
11229 dynamic_linker='GNU/Linux ld.so'
11230 ;;
11231
11232 netbsd*)
11233 version_type=sunos
11234 need_lib_prefix=no
11235 need_version=no
11236 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11239 dynamic_linker='NetBSD (a.out) ld.so'
11240 else
11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11242 soname_spec='${libname}${release}${shared_ext}$major'
11243 dynamic_linker='NetBSD ld.elf_so'
11244 fi
11245 shlibpath_var=LD_LIBRARY_PATH
11246 shlibpath_overrides_runpath=yes
11247 hardcode_into_libs=yes
11248 ;;
11249
11250 newsos6)
11251 version_type=linux
11252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 shlibpath_overrides_runpath=yes
11255 ;;
11256
11257 *nto* | *qnx*)
11258 version_type=qnx
11259 need_lib_prefix=no
11260 need_version=no
11261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262 soname_spec='${libname}${release}${shared_ext}$major'
11263 shlibpath_var=LD_LIBRARY_PATH
11264 shlibpath_overrides_runpath=no
11265 hardcode_into_libs=yes
11266 dynamic_linker='ldqnx.so'
11267 ;;
11268
11269 openbsd*)
11270 version_type=sunos
11271 sys_lib_dlsearch_path_spec="/usr/lib"
11272 need_lib_prefix=no
11273 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11274 case $host_os in
11275 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11276 *) need_version=no ;;
11277 esac
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11280 shlibpath_var=LD_LIBRARY_PATH
11281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11282 case $host_os in
11283 openbsd2.[89] | openbsd2.[89].*)
11284 shlibpath_overrides_runpath=no
11285 ;;
11286 *)
11287 shlibpath_overrides_runpath=yes
11288 ;;
11289 esac
11290 else
11291 shlibpath_overrides_runpath=yes
11292 fi
11293 ;;
11294
11295 os2*)
11296 libname_spec='$name'
11297 shrext_cmds=".dll"
11298 need_lib_prefix=no
11299 library_names_spec='$libname${shared_ext} $libname.a'
11300 dynamic_linker='OS/2 ld.exe'
11301 shlibpath_var=LIBPATH
11302 ;;
11303
11304 osf3* | osf4* | osf5*)
11305 version_type=osf
11306 need_lib_prefix=no
11307 need_version=no
11308 soname_spec='${libname}${release}${shared_ext}$major'
11309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11310 shlibpath_var=LD_LIBRARY_PATH
11311 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11312 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11313 ;;
11314
11315 rdos*)
11316 dynamic_linker=no
11317 ;;
11318
11319 solaris*)
11320 version_type=linux
11321 need_lib_prefix=no
11322 need_version=no
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324 soname_spec='${libname}${release}${shared_ext}$major'
11325 shlibpath_var=LD_LIBRARY_PATH
11326 shlibpath_overrides_runpath=yes
11327 hardcode_into_libs=yes
11328 # ldd complains unless libraries are executable
11329 postinstall_cmds='chmod +x $lib'
11330 ;;
11331
11332 sunos4*)
11333 version_type=sunos
11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11335 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11336 shlibpath_var=LD_LIBRARY_PATH
11337 shlibpath_overrides_runpath=yes
11338 if test "$with_gnu_ld" = yes; then
11339 need_lib_prefix=no
11340 fi
11341 need_version=yes
11342 ;;
11343
11344 sysv4 | sysv4.3*)
11345 version_type=linux
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 shlibpath_var=LD_LIBRARY_PATH
11349 case $host_vendor in
11350 sni)
11351 shlibpath_overrides_runpath=no
11352 need_lib_prefix=no
11353 runpath_var=LD_RUN_PATH
11354 ;;
11355 siemens)
11356 need_lib_prefix=no
11357 ;;
11358 motorola)
11359 need_lib_prefix=no
11360 need_version=no
11361 shlibpath_overrides_runpath=no
11362 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11363 ;;
11364 esac
11365 ;;
11366
11367 sysv4*MP*)
11368 if test -d /usr/nec ;then
11369 version_type=linux
11370 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11371 soname_spec='$libname${shared_ext}.$major'
11372 shlibpath_var=LD_LIBRARY_PATH
11373 fi
11374 ;;
11375
11376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11377 version_type=freebsd-elf
11378 need_lib_prefix=no
11379 need_version=no
11380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11381 soname_spec='${libname}${release}${shared_ext}$major'
11382 shlibpath_var=LD_LIBRARY_PATH
11383 shlibpath_overrides_runpath=yes
11384 hardcode_into_libs=yes
11385 if test "$with_gnu_ld" = yes; then
11386 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11387 else
11388 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11389 case $host_os in
11390 sco3.2v5*)
11391 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11392 ;;
11393 esac
11394 fi
11395 sys_lib_dlsearch_path_spec='/usr/lib'
11396 ;;
11397
11398 tpf*)
11399 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11400 version_type=linux
11401 need_lib_prefix=no
11402 need_version=no
11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404 shlibpath_var=LD_LIBRARY_PATH
11405 shlibpath_overrides_runpath=no
11406 hardcode_into_libs=yes
11407 ;;
11408
11409 uts4*)
11410 version_type=linux
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11412 soname_spec='${libname}${release}${shared_ext}$major'
11413 shlibpath_var=LD_LIBRARY_PATH
11414 ;;
11415
11416 *)
11417 dynamic_linker=no
11418 ;;
11419 esac
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11421 $as_echo "$dynamic_linker" >&6; }
11422 test "$dynamic_linker" = no && can_build_shared=no
11423
11424 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11425 if test "$GCC" = yes; then
11426 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11427 fi
11428
11429 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11430 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11431 fi
11432 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11433 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11434 fi
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11528 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11529 hardcode_action=
11530 if test -n "$hardcode_libdir_flag_spec" ||
11531 test -n "$runpath_var" ||
11532 test "X$hardcode_automatic" = "Xyes" ; then
11533
11534 # We can hardcode non-existent directories.
11535 if test "$hardcode_direct" != no &&
11536 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11537 # have to relink, otherwise we might link with an installed library
11538 # when we should be linking with a yet-to-be-installed one
11539 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11540 test "$hardcode_minus_L" != no; then
11541 # Linking always hardcodes the temporary library directory.
11542 hardcode_action=relink
11543 else
11544 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11545 hardcode_action=immediate
11546 fi
11547 else
11548 # We cannot hardcode anything, or else we can only hardcode existing
11549 # directories.
11550 hardcode_action=unsupported
11551 fi
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11553 $as_echo "$hardcode_action" >&6; }
11554
11555 if test "$hardcode_action" = relink ||
11556 test "$inherit_rpath" = yes; then
11557 # Fast installation is not supported
11558 enable_fast_install=no
11559 elif test "$shlibpath_overrides_runpath" = yes ||
11560 test "$enable_shared" = no; then
11561 # Fast installation is not necessary
11562 enable_fast_install=needless
11563 fi
11564
11565
11566
11567
11568
11569
11570 if test "x$enable_dlopen" != xyes; then
11571 enable_dlopen=unknown
11572 enable_dlopen_self=unknown
11573 enable_dlopen_self_static=unknown
11574 else
11575 lt_cv_dlopen=no
11576 lt_cv_dlopen_libs=
11577
11578 case $host_os in
11579 beos*)
11580 lt_cv_dlopen="load_add_on"
11581 lt_cv_dlopen_libs=
11582 lt_cv_dlopen_self=yes
11583 ;;
11584
11585 mingw* | pw32* | cegcc*)
11586 lt_cv_dlopen="LoadLibrary"
11587 lt_cv_dlopen_libs=
11588 ;;
11589
11590 cygwin*)
11591 lt_cv_dlopen="dlopen"
11592 lt_cv_dlopen_libs=
11593 ;;
11594
11595 darwin*)
11596 # if libdl is installed we need to link against it
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11598 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11599 if ${ac_cv_lib_dl_dlopen+:} false; then :
11600 $as_echo_n "(cached) " >&6
11601 else
11602 ac_check_lib_save_LIBS=$LIBS
11603 LIBS="-ldl $LIBS"
11604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h. */
11606
11607 /* Override any GCC internal prototype to avoid an error.
11608 Use char because int might match the return type of a GCC
11609 builtin and then its argument prototype would still apply. */
11610 #ifdef __cplusplus
11611 extern "C"
11612 #endif
11613 char dlopen ();
11614 int
11615 main ()
11616 {
11617 return dlopen ();
11618 ;
11619 return 0;
11620 }
11621 _ACEOF
11622 if ac_fn_c_try_link "$LINENO"; then :
11623 ac_cv_lib_dl_dlopen=yes
11624 else
11625 ac_cv_lib_dl_dlopen=no
11626 fi
11627 rm -f core conftest.err conftest.$ac_objext \
11628 conftest$ac_exeext conftest.$ac_ext
11629 LIBS=$ac_check_lib_save_LIBS
11630 fi
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11632 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11633 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11634 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11635 else
11636
11637 lt_cv_dlopen="dyld"
11638 lt_cv_dlopen_libs=
11639 lt_cv_dlopen_self=yes
11640
11641 fi
11642
11643 ;;
11644
11645 *)
11646 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11647 if test "x$ac_cv_func_shl_load" = xyes; then :
11648 lt_cv_dlopen="shl_load"
11649 else
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11651 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11652 if ${ac_cv_lib_dld_shl_load+:} false; then :
11653 $as_echo_n "(cached) " >&6
11654 else
11655 ac_check_lib_save_LIBS=$LIBS
11656 LIBS="-ldld $LIBS"
11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h. */
11659
11660 /* Override any GCC internal prototype to avoid an error.
11661 Use char because int might match the return type of a GCC
11662 builtin and then its argument prototype would still apply. */
11663 #ifdef __cplusplus
11664 extern "C"
11665 #endif
11666 char shl_load ();
11667 int
11668 main ()
11669 {
11670 return shl_load ();
11671 ;
11672 return 0;
11673 }
11674 _ACEOF
11675 if ac_fn_c_try_link "$LINENO"; then :
11676 ac_cv_lib_dld_shl_load=yes
11677 else
11678 ac_cv_lib_dld_shl_load=no
11679 fi
11680 rm -f core conftest.err conftest.$ac_objext \
11681 conftest$ac_exeext conftest.$ac_ext
11682 LIBS=$ac_check_lib_save_LIBS
11683 fi
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11685 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11686 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11687 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11688 else
11689 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11690 if test "x$ac_cv_func_dlopen" = xyes; then :
11691 lt_cv_dlopen="dlopen"
11692 else
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11694 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11695 if ${ac_cv_lib_dl_dlopen+:} false; then :
11696 $as_echo_n "(cached) " >&6
11697 else
11698 ac_check_lib_save_LIBS=$LIBS
11699 LIBS="-ldl $LIBS"
11700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11701 /* end confdefs.h. */
11702
11703 /* Override any GCC internal prototype to avoid an error.
11704 Use char because int might match the return type of a GCC
11705 builtin and then its argument prototype would still apply. */
11706 #ifdef __cplusplus
11707 extern "C"
11708 #endif
11709 char dlopen ();
11710 int
11711 main ()
11712 {
11713 return dlopen ();
11714 ;
11715 return 0;
11716 }
11717 _ACEOF
11718 if ac_fn_c_try_link "$LINENO"; then :
11719 ac_cv_lib_dl_dlopen=yes
11720 else
11721 ac_cv_lib_dl_dlopen=no
11722 fi
11723 rm -f core conftest.err conftest.$ac_objext \
11724 conftest$ac_exeext conftest.$ac_ext
11725 LIBS=$ac_check_lib_save_LIBS
11726 fi
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11728 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11729 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11730 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11731 else
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11733 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11734 if ${ac_cv_lib_svld_dlopen+:} false; then :
11735 $as_echo_n "(cached) " >&6
11736 else
11737 ac_check_lib_save_LIBS=$LIBS
11738 LIBS="-lsvld $LIBS"
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h. */
11741
11742 /* Override any GCC internal prototype to avoid an error.
11743 Use char because int might match the return type of a GCC
11744 builtin and then its argument prototype would still apply. */
11745 #ifdef __cplusplus
11746 extern "C"
11747 #endif
11748 char dlopen ();
11749 int
11750 main ()
11751 {
11752 return dlopen ();
11753 ;
11754 return 0;
11755 }
11756 _ACEOF
11757 if ac_fn_c_try_link "$LINENO"; then :
11758 ac_cv_lib_svld_dlopen=yes
11759 else
11760 ac_cv_lib_svld_dlopen=no
11761 fi
11762 rm -f core conftest.err conftest.$ac_objext \
11763 conftest$ac_exeext conftest.$ac_ext
11764 LIBS=$ac_check_lib_save_LIBS
11765 fi
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11767 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11768 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11770 else
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11772 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11773 if ${ac_cv_lib_dld_dld_link+:} false; then :
11774 $as_echo_n "(cached) " >&6
11775 else
11776 ac_check_lib_save_LIBS=$LIBS
11777 LIBS="-ldld $LIBS"
11778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11779 /* end confdefs.h. */
11780
11781 /* Override any GCC internal prototype to avoid an error.
11782 Use char because int might match the return type of a GCC
11783 builtin and then its argument prototype would still apply. */
11784 #ifdef __cplusplus
11785 extern "C"
11786 #endif
11787 char dld_link ();
11788 int
11789 main ()
11790 {
11791 return dld_link ();
11792 ;
11793 return 0;
11794 }
11795 _ACEOF
11796 if ac_fn_c_try_link "$LINENO"; then :
11797 ac_cv_lib_dld_dld_link=yes
11798 else
11799 ac_cv_lib_dld_dld_link=no
11800 fi
11801 rm -f core conftest.err conftest.$ac_objext \
11802 conftest$ac_exeext conftest.$ac_ext
11803 LIBS=$ac_check_lib_save_LIBS
11804 fi
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11806 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11807 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11808 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11809 fi
11810
11811
11812 fi
11813
11814
11815 fi
11816
11817
11818 fi
11819
11820
11821 fi
11822
11823
11824 fi
11825
11826 ;;
11827 esac
11828
11829 if test "x$lt_cv_dlopen" != xno; then
11830 enable_dlopen=yes
11831 else
11832 enable_dlopen=no
11833 fi
11834
11835 case $lt_cv_dlopen in
11836 dlopen)
11837 save_CPPFLAGS="$CPPFLAGS"
11838 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11839
11840 save_LDFLAGS="$LDFLAGS"
11841 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11842
11843 save_LIBS="$LIBS"
11844 LIBS="$lt_cv_dlopen_libs $LIBS"
11845
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11847 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11848 if ${lt_cv_dlopen_self+:} false; then :
11849 $as_echo_n "(cached) " >&6
11850 else
11851 if test "$cross_compiling" = yes; then :
11852 lt_cv_dlopen_self=cross
11853 else
11854 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11855 lt_status=$lt_dlunknown
11856 cat > conftest.$ac_ext <<_LT_EOF
11857 #line 11857 "configure"
11858 #include "confdefs.h"
11859
11860 #if HAVE_DLFCN_H
11861 #include <dlfcn.h>
11862 #endif
11863
11864 #include <stdio.h>
11865
11866 #ifdef RTLD_GLOBAL
11867 # define LT_DLGLOBAL RTLD_GLOBAL
11868 #else
11869 # ifdef DL_GLOBAL
11870 # define LT_DLGLOBAL DL_GLOBAL
11871 # else
11872 # define LT_DLGLOBAL 0
11873 # endif
11874 #endif
11875
11876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11877 find out it does not work in some platform. */
11878 #ifndef LT_DLLAZY_OR_NOW
11879 # ifdef RTLD_LAZY
11880 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11881 # else
11882 # ifdef DL_LAZY
11883 # define LT_DLLAZY_OR_NOW DL_LAZY
11884 # else
11885 # ifdef RTLD_NOW
11886 # define LT_DLLAZY_OR_NOW RTLD_NOW
11887 # else
11888 # ifdef DL_NOW
11889 # define LT_DLLAZY_OR_NOW DL_NOW
11890 # else
11891 # define LT_DLLAZY_OR_NOW 0
11892 # endif
11893 # endif
11894 # endif
11895 # endif
11896 #endif
11897
11898 /* When -fvisbility=hidden is used, assume the code has been annotated
11899 correspondingly for the symbols needed. */
11900 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11901 void fnord () __attribute__((visibility("default")));
11902 #endif
11903
11904 void fnord () { int i=42; }
11905 int main ()
11906 {
11907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11908 int status = $lt_dlunknown;
11909
11910 if (self)
11911 {
11912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11913 else
11914 {
11915 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11916 else puts (dlerror ());
11917 }
11918 /* dlclose (self); */
11919 }
11920 else
11921 puts (dlerror ());
11922
11923 return status;
11924 }
11925 _LT_EOF
11926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11927 (eval $ac_link) 2>&5
11928 ac_status=$?
11929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11930 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11931 (./conftest; exit; ) >&5 2>/dev/null
11932 lt_status=$?
11933 case x$lt_status in
11934 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11935 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11936 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11937 esac
11938 else :
11939 # compilation failed
11940 lt_cv_dlopen_self=no
11941 fi
11942 fi
11943 rm -fr conftest*
11944
11945
11946 fi
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11948 $as_echo "$lt_cv_dlopen_self" >&6; }
11949
11950 if test "x$lt_cv_dlopen_self" = xyes; then
11951 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11953 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11954 if ${lt_cv_dlopen_self_static+:} false; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 if test "$cross_compiling" = yes; then :
11958 lt_cv_dlopen_self_static=cross
11959 else
11960 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11961 lt_status=$lt_dlunknown
11962 cat > conftest.$ac_ext <<_LT_EOF
11963 #line 11963 "configure"
11964 #include "confdefs.h"
11965
11966 #if HAVE_DLFCN_H
11967 #include <dlfcn.h>
11968 #endif
11969
11970 #include <stdio.h>
11971
11972 #ifdef RTLD_GLOBAL
11973 # define LT_DLGLOBAL RTLD_GLOBAL
11974 #else
11975 # ifdef DL_GLOBAL
11976 # define LT_DLGLOBAL DL_GLOBAL
11977 # else
11978 # define LT_DLGLOBAL 0
11979 # endif
11980 #endif
11981
11982 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11983 find out it does not work in some platform. */
11984 #ifndef LT_DLLAZY_OR_NOW
11985 # ifdef RTLD_LAZY
11986 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11987 # else
11988 # ifdef DL_LAZY
11989 # define LT_DLLAZY_OR_NOW DL_LAZY
11990 # else
11991 # ifdef RTLD_NOW
11992 # define LT_DLLAZY_OR_NOW RTLD_NOW
11993 # else
11994 # ifdef DL_NOW
11995 # define LT_DLLAZY_OR_NOW DL_NOW
11996 # else
11997 # define LT_DLLAZY_OR_NOW 0
11998 # endif
11999 # endif
12000 # endif
12001 # endif
12002 #endif
12003
12004 /* When -fvisbility=hidden is used, assume the code has been annotated
12005 correspondingly for the symbols needed. */
12006 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12007 void fnord () __attribute__((visibility("default")));
12008 #endif
12009
12010 void fnord () { int i=42; }
12011 int main ()
12012 {
12013 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12014 int status = $lt_dlunknown;
12015
12016 if (self)
12017 {
12018 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12019 else
12020 {
12021 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12022 else puts (dlerror ());
12023 }
12024 /* dlclose (self); */
12025 }
12026 else
12027 puts (dlerror ());
12028
12029 return status;
12030 }
12031 _LT_EOF
12032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12033 (eval $ac_link) 2>&5
12034 ac_status=$?
12035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12036 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12037 (./conftest; exit; ) >&5 2>/dev/null
12038 lt_status=$?
12039 case x$lt_status in
12040 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12041 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12042 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12043 esac
12044 else :
12045 # compilation failed
12046 lt_cv_dlopen_self_static=no
12047 fi
12048 fi
12049 rm -fr conftest*
12050
12051
12052 fi
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12054 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12055 fi
12056
12057 CPPFLAGS="$save_CPPFLAGS"
12058 LDFLAGS="$save_LDFLAGS"
12059 LIBS="$save_LIBS"
12060 ;;
12061 esac
12062
12063 case $lt_cv_dlopen_self in
12064 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12065 *) enable_dlopen_self=unknown ;;
12066 esac
12067
12068 case $lt_cv_dlopen_self_static in
12069 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12070 *) enable_dlopen_self_static=unknown ;;
12071 esac
12072 fi
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090 striplib=
12091 old_striplib=
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12093 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12094 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12095 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12096 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12098 $as_echo "yes" >&6; }
12099 else
12100 # FIXME - insert some real tests, host_os isn't really good enough
12101 case $host_os in
12102 darwin*)
12103 if test -n "$STRIP" ; then
12104 striplib="$STRIP -x"
12105 old_striplib="$STRIP -S"
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12107 $as_echo "yes" >&6; }
12108 else
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12111 fi
12112 ;;
12113 *)
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12116 ;;
12117 esac
12118 fi
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131 # Report which library types will actually be built
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12133 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12135 $as_echo "$can_build_shared" >&6; }
12136
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12138 $as_echo_n "checking whether to build shared libraries... " >&6; }
12139 test "$can_build_shared" = "no" && enable_shared=no
12140
12141 # On AIX, shared libraries and static libraries use the same namespace, and
12142 # are all built from PIC.
12143 case $host_os in
12144 aix3*)
12145 test "$enable_shared" = yes && enable_static=no
12146 if test -n "$RANLIB"; then
12147 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12148 postinstall_cmds='$RANLIB $lib'
12149 fi
12150 ;;
12151
12152 aix[4-9]*)
12153 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12154 test "$enable_shared" = yes && enable_static=no
12155 fi
12156 ;;
12157 esac
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12159 $as_echo "$enable_shared" >&6; }
12160
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12162 $as_echo_n "checking whether to build static libraries... " >&6; }
12163 # Make sure either enable_shared or enable_static is yes.
12164 test "$enable_shared" = yes || enable_static=yes
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12166 $as_echo "$enable_static" >&6; }
12167
12168
12169
12170
12171 fi
12172 ac_ext=c
12173 ac_cpp='$CPP $CPPFLAGS'
12174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12177
12178 CC="$lt_save_CC"
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192 ac_config_commands="$ac_config_commands libtool"
12193
12194
12195
12196
12197 # Only expand once:
12198
12199
12200
12201
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
12203 $as_echo_n "checking for bind in -lsocket... " >&6; }
12204 if ${ac_cv_lib_socket_bind+:} false; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 ac_check_lib_save_LIBS=$LIBS
12208 LIBS="-lsocket $LIBS"
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12211
12212 /* Override any GCC internal prototype to avoid an error.
12213 Use char because int might match the return type of a GCC
12214 builtin and then its argument prototype would still apply. */
12215 #ifdef __cplusplus
12216 extern "C"
12217 #endif
12218 char bind ();
12219 int
12220 main ()
12221 {
12222 return bind ();
12223 ;
12224 return 0;
12225 }
12226 _ACEOF
12227 if ac_fn_c_try_link "$LINENO"; then :
12228 ac_cv_lib_socket_bind=yes
12229 else
12230 ac_cv_lib_socket_bind=no
12231 fi
12232 rm -f core conftest.err conftest.$ac_objext \
12233 conftest$ac_exeext conftest.$ac_ext
12234 LIBS=$ac_check_lib_save_LIBS
12235 fi
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
12237 $as_echo "$ac_cv_lib_socket_bind" >&6; }
12238 if test "x$ac_cv_lib_socket_bind" = xyes; then :
12239 cat >>confdefs.h <<_ACEOF
12240 #define HAVE_LIBSOCKET 1
12241 _ACEOF
12242
12243 LIBS="-lsocket $LIBS"
12244
12245 fi
12246
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12248 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12249 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12250 $as_echo_n "(cached) " >&6
12251 else
12252 ac_check_lib_save_LIBS=$LIBS
12253 LIBS="-lnsl $LIBS"
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12256
12257 /* Override any GCC internal prototype to avoid an error.
12258 Use char because int might match the return type of a GCC
12259 builtin and then its argument prototype would still apply. */
12260 #ifdef __cplusplus
12261 extern "C"
12262 #endif
12263 char gethostbyname ();
12264 int
12265 main ()
12266 {
12267 return gethostbyname ();
12268 ;
12269 return 0;
12270 }
12271 _ACEOF
12272 if ac_fn_c_try_link "$LINENO"; then :
12273 ac_cv_lib_nsl_gethostbyname=yes
12274 else
12275 ac_cv_lib_nsl_gethostbyname=no
12276 fi
12277 rm -f core conftest.err conftest.$ac_objext \
12278 conftest$ac_exeext conftest.$ac_ext
12279 LIBS=$ac_check_lib_save_LIBS
12280 fi
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12282 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12283 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12284 cat >>confdefs.h <<_ACEOF
12285 #define HAVE_LIBNSL 1
12286 _ACEOF
12287
12288 LIBS="-lnsl $LIBS"
12289
12290 fi
12291
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12293 $as_echo_n "checking for fabs in -lm... " >&6; }
12294 if ${ac_cv_lib_m_fabs+:} false; then :
12295 $as_echo_n "(cached) " >&6
12296 else
12297 ac_check_lib_save_LIBS=$LIBS
12298 LIBS="-lm $LIBS"
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12301
12302 /* Override any GCC internal prototype to avoid an error.
12303 Use char because int might match the return type of a GCC
12304 builtin and then its argument prototype would still apply. */
12305 #ifdef __cplusplus
12306 extern "C"
12307 #endif
12308 char fabs ();
12309 int
12310 main ()
12311 {
12312 return fabs ();
12313 ;
12314 return 0;
12315 }
12316 _ACEOF
12317 if ac_fn_c_try_link "$LINENO"; then :
12318 ac_cv_lib_m_fabs=yes
12319 else
12320 ac_cv_lib_m_fabs=no
12321 fi
12322 rm -f core conftest.err conftest.$ac_objext \
12323 conftest$ac_exeext conftest.$ac_ext
12324 LIBS=$ac_check_lib_save_LIBS
12325 fi
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12327 $as_echo "$ac_cv_lib_m_fabs" >&6; }
12328 if test "x$ac_cv_lib_m_fabs" = xyes; then :
12329 cat >>confdefs.h <<_ACEOF
12330 #define HAVE_LIBM 1
12331 _ACEOF
12332
12333 LIBS="-lm $LIBS"
12334
12335 fi
12336
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
12338 $as_echo_n "checking for log2 in -lm... " >&6; }
12339 if ${ac_cv_lib_m_log2+:} false; then :
12340 $as_echo_n "(cached) " >&6
12341 else
12342 ac_check_lib_save_LIBS=$LIBS
12343 LIBS="-lm $LIBS"
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12346
12347 /* Override any GCC internal prototype to avoid an error.
12348 Use char because int might match the return type of a GCC
12349 builtin and then its argument prototype would still apply. */
12350 #ifdef __cplusplus
12351 extern "C"
12352 #endif
12353 char log2 ();
12354 int
12355 main ()
12356 {
12357 return log2 ();
12358 ;
12359 return 0;
12360 }
12361 _ACEOF
12362 if ac_fn_c_try_link "$LINENO"; then :
12363 ac_cv_lib_m_log2=yes
12364 else
12365 ac_cv_lib_m_log2=no
12366 fi
12367 rm -f core conftest.err conftest.$ac_objext \
12368 conftest$ac_exeext conftest.$ac_ext
12369 LIBS=$ac_check_lib_save_LIBS
12370 fi
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12372 $as_echo "$ac_cv_lib_m_log2" >&6; }
12373 if test "x$ac_cv_lib_m_log2" = xyes; then :
12374 cat >>confdefs.h <<_ACEOF
12375 #define HAVE_LIBM 1
12376 _ACEOF
12377
12378 LIBS="-lm $LIBS"
12379
12380 fi
12381
12382
12383
12384
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12386 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12387 # Check whether --enable-maintainer-mode was given.
12388 if test "${enable_maintainer_mode+set}" = set; then :
12389 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12390 else
12391 USE_MAINTAINER_MODE=no
12392 fi
12393
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12395 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12396 if test $USE_MAINTAINER_MODE = yes; then
12397 MAINTAINER_MODE_TRUE=
12398 MAINTAINER_MODE_FALSE='#'
12399 else
12400 MAINTAINER_MODE_TRUE='#'
12401 MAINTAINER_MODE_FALSE=
12402 fi
12403
12404 MAINT=$MAINTAINER_MODE_TRUE
12405
12406
12407 am__api_version='1.15'
12408
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12410 $as_echo_n "checking whether build environment is sane... " >&6; }
12411 # Reject unsafe characters in $srcdir or the absolute working directory
12412 # name. Accept space and tab only in the latter.
12413 am_lf='
12414 '
12415 case `pwd` in
12416 *[\\\"\#\$\&\'\`$am_lf]*)
12417 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12418 esac
12419 case $srcdir in
12420 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12421 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12422 esac
12423
12424 # Do 'set' in a subshell so we don't clobber the current shell's
12425 # arguments. Must try -L first in case configure is actually a
12426 # symlink; some systems play weird games with the mod time of symlinks
12427 # (eg FreeBSD returns the mod time of the symlink's containing
12428 # directory).
12429 if (
12430 am_has_slept=no
12431 for am_try in 1 2; do
12432 echo "timestamp, slept: $am_has_slept" > conftest.file
12433 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12434 if test "$*" = "X"; then
12435 # -L didn't work.
12436 set X `ls -t "$srcdir/configure" conftest.file`
12437 fi
12438 if test "$*" != "X $srcdir/configure conftest.file" \
12439 && test "$*" != "X conftest.file $srcdir/configure"; then
12440
12441 # If neither matched, then we have a broken ls. This can happen
12442 # if, for instance, CONFIG_SHELL is bash and it inherits a
12443 # broken ls alias from the environment. This has actually
12444 # happened. Such a system could not be considered "sane".
12445 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
12446 alias in your environment" "$LINENO" 5
12447 fi
12448 if test "$2" = conftest.file || test $am_try -eq 2; then
12449 break
12450 fi
12451 # Just in case.
12452 sleep 1
12453 am_has_slept=yes
12454 done
12455 test "$2" = conftest.file
12456 )
12457 then
12458 # Ok.
12459 :
12460 else
12461 as_fn_error $? "newly created file is older than distributed files!
12462 Check your system clock" "$LINENO" 5
12463 fi
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12465 $as_echo "yes" >&6; }
12466 # If we didn't sleep, we still need to ensure time stamps of config.status and
12467 # generated files are strictly newer.
12468 am_sleep_pid=
12469 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12470 ( sleep 1 ) &
12471 am_sleep_pid=$!
12472 fi
12473
12474 rm -f conftest.file
12475
12476 if test x"${MISSING+set}" != xset; then
12477 case $am_aux_dir in
12478 *\ * | *\ *)
12479 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
12480 *)
12481 MISSING="\${SHELL} $am_aux_dir/missing" ;;
12482 esac
12483 fi
12484 # Use eval to expand $SHELL
12485 if eval "$MISSING --is-lightweight"; then
12486 am_missing_run="$MISSING "
12487 else
12488 am_missing_run=
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12490 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12491 fi
12492
12493 if test x"${install_sh+set}" != xset; then
12494 case $am_aux_dir in
12495 *\ * | *\ *)
12496 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12497 *)
12498 install_sh="\${SHELL} $am_aux_dir/install-sh"
12499 esac
12500 fi
12501
12502 # Installed binaries are usually stripped using 'strip' when the user
12503 # run "make install-strip". However 'strip' might not be the right
12504 # tool to use in cross-compilation environments, therefore Automake
12505 # will honor the 'STRIP' environment variable to overrule this program.
12506 if test "$cross_compiling" != no; then
12507 if test -n "$ac_tool_prefix"; then
12508 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12509 set dummy ${ac_tool_prefix}strip; ac_word=$2
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12511 $as_echo_n "checking for $ac_word... " >&6; }
12512 if ${ac_cv_prog_STRIP+:} false; then :
12513 $as_echo_n "(cached) " >&6
12514 else
12515 if test -n "$STRIP"; then
12516 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12517 else
12518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12519 for as_dir in $PATH
12520 do
12521 IFS=$as_save_IFS
12522 test -z "$as_dir" && as_dir=.
12523 for ac_exec_ext in '' $ac_executable_extensions; do
12524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12525 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12527 break 2
12528 fi
12529 done
12530 done
12531 IFS=$as_save_IFS
12532
12533 fi
12534 fi
12535 STRIP=$ac_cv_prog_STRIP
12536 if test -n "$STRIP"; then
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12538 $as_echo "$STRIP" >&6; }
12539 else
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541 $as_echo "no" >&6; }
12542 fi
12543
12544
12545 fi
12546 if test -z "$ac_cv_prog_STRIP"; then
12547 ac_ct_STRIP=$STRIP
12548 # Extract the first word of "strip", so it can be a program name with args.
12549 set dummy strip; ac_word=$2
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12551 $as_echo_n "checking for $ac_word... " >&6; }
12552 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12553 $as_echo_n "(cached) " >&6
12554 else
12555 if test -n "$ac_ct_STRIP"; then
12556 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12557 else
12558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559 for as_dir in $PATH
12560 do
12561 IFS=$as_save_IFS
12562 test -z "$as_dir" && as_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12565 ac_cv_prog_ac_ct_STRIP="strip"
12566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 break 2
12568 fi
12569 done
12570 done
12571 IFS=$as_save_IFS
12572
12573 fi
12574 fi
12575 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12576 if test -n "$ac_ct_STRIP"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12578 $as_echo "$ac_ct_STRIP" >&6; }
12579 else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581 $as_echo "no" >&6; }
12582 fi
12583
12584 if test "x$ac_ct_STRIP" = x; then
12585 STRIP=":"
12586 else
12587 case $cross_compiling:$ac_tool_warned in
12588 yes:)
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12591 ac_tool_warned=yes ;;
12592 esac
12593 STRIP=$ac_ct_STRIP
12594 fi
12595 else
12596 STRIP="$ac_cv_prog_STRIP"
12597 fi
12598
12599 fi
12600 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12601
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12603 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12604 if test -z "$MKDIR_P"; then
12605 if ${ac_cv_path_mkdir+:} false; then :
12606 $as_echo_n "(cached) " >&6
12607 else
12608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12610 do
12611 IFS=$as_save_IFS
12612 test -z "$as_dir" && as_dir=.
12613 for ac_prog in mkdir gmkdir; do
12614 for ac_exec_ext in '' $ac_executable_extensions; do
12615 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12616 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12617 'mkdir (GNU coreutils) '* | \
12618 'mkdir (coreutils) '* | \
12619 'mkdir (fileutils) '4.1*)
12620 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12621 break 3;;
12622 esac
12623 done
12624 done
12625 done
12626 IFS=$as_save_IFS
12627
12628 fi
12629
12630 test -d ./--version && rmdir ./--version
12631 if test "${ac_cv_path_mkdir+set}" = set; then
12632 MKDIR_P="$ac_cv_path_mkdir -p"
12633 else
12634 # As a last resort, use the slow shell script. Don't cache a
12635 # value for MKDIR_P within a source directory, because that will
12636 # break other packages using the cache if that directory is
12637 # removed, or if the value is a relative name.
12638 MKDIR_P="$ac_install_sh -d"
12639 fi
12640 fi
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12642 $as_echo "$MKDIR_P" >&6; }
12643
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12645 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12646 set x ${MAKE-make}
12647 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12648 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12649 $as_echo_n "(cached) " >&6
12650 else
12651 cat >conftest.make <<\_ACEOF
12652 SHELL = /bin/sh
12653 all:
12654 @echo '@@@%%%=$(MAKE)=@@@%%%'
12655 _ACEOF
12656 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12657 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12658 *@@@%%%=?*=@@@%%%*)
12659 eval ac_cv_prog_make_${ac_make}_set=yes;;
12660 *)
12661 eval ac_cv_prog_make_${ac_make}_set=no;;
12662 esac
12663 rm -f conftest.make
12664 fi
12665 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12667 $as_echo "yes" >&6; }
12668 SET_MAKE=
12669 else
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12671 $as_echo "no" >&6; }
12672 SET_MAKE="MAKE=${MAKE-make}"
12673 fi
12674
12675 rm -rf .tst 2>/dev/null
12676 mkdir .tst 2>/dev/null
12677 if test -d .tst; then
12678 am__leading_dot=.
12679 else
12680 am__leading_dot=_
12681 fi
12682 rmdir .tst 2>/dev/null
12683
12684 DEPDIR="${am__leading_dot}deps"
12685
12686 ac_config_commands="$ac_config_commands depfiles"
12687
12688
12689 am_make=${MAKE-make}
12690 cat > confinc << 'END'
12691 am__doit:
12692 @echo this is the am__doit target
12693 .PHONY: am__doit
12694 END
12695 # If we don't find an include directive, just comment out the code.
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
12697 $as_echo_n "checking for style of include used by $am_make... " >&6; }
12698 am__include="#"
12699 am__quote=
12700 _am_result=none
12701 # First try GNU make style include.
12702 echo "include confinc" > confmf
12703 # Ignore all kinds of additional output from 'make'.
12704 case `$am_make -s -f confmf 2> /dev/null` in #(
12705 *the\ am__doit\ target*)
12706 am__include=include
12707 am__quote=
12708 _am_result=GNU
12709 ;;
12710 esac
12711 # Now try BSD make style include.
12712 if test "$am__include" = "#"; then
12713 echo '.include "confinc"' > confmf
12714 case `$am_make -s -f confmf 2> /dev/null` in #(
12715 *the\ am__doit\ target*)
12716 am__include=.include
12717 am__quote="\""
12718 _am_result=BSD
12719 ;;
12720 esac
12721 fi
12722
12723
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
12725 $as_echo "$_am_result" >&6; }
12726 rm -f confinc confmf
12727
12728 # Check whether --enable-dependency-tracking was given.
12729 if test "${enable_dependency_tracking+set}" = set; then :
12730 enableval=$enable_dependency_tracking;
12731 fi
12732
12733 if test "x$enable_dependency_tracking" != xno; then
12734 am_depcomp="$ac_aux_dir/depcomp"
12735 AMDEPBACKSLASH='\'
12736 am__nodep='_no'
12737 fi
12738 if test "x$enable_dependency_tracking" != xno; then
12739 AMDEP_TRUE=
12740 AMDEP_FALSE='#'
12741 else
12742 AMDEP_TRUE='#'
12743 AMDEP_FALSE=
12744 fi
12745
12746
12747 # Check whether --enable-silent-rules was given.
12748 if test "${enable_silent_rules+set}" = set; then :
12749 enableval=$enable_silent_rules;
12750 fi
12751
12752 case $enable_silent_rules in # (((
12753 yes) AM_DEFAULT_VERBOSITY=0;;
12754 no) AM_DEFAULT_VERBOSITY=1;;
12755 *) AM_DEFAULT_VERBOSITY=1;;
12756 esac
12757 am_make=${MAKE-make}
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12759 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12760 if ${am_cv_make_support_nested_variables+:} false; then :
12761 $as_echo_n "(cached) " >&6
12762 else
12763 if $as_echo 'TRUE=$(BAR$(V))
12764 BAR0=false
12765 BAR1=true
12766 V=1
12767 am__doit:
12768 @$(TRUE)
12769 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12770 am_cv_make_support_nested_variables=yes
12771 else
12772 am_cv_make_support_nested_variables=no
12773 fi
12774 fi
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12776 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12777 if test $am_cv_make_support_nested_variables = yes; then
12778 AM_V='$(V)'
12779 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12780 else
12781 AM_V=$AM_DEFAULT_VERBOSITY
12782 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12783 fi
12784 AM_BACKSLASH='\'
12785
12786 if test "`cd $srcdir && pwd`" != "`pwd`"; then
12787 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12788 # is not polluted with repeated "-I."
12789 am__isrc=' -I$(srcdir)'
12790 # test to see if srcdir already configured
12791 if test -f $srcdir/config.status; then
12792 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12793 fi
12794 fi
12795
12796 # test whether we have cygpath
12797 if test -z "$CYGPATH_W"; then
12798 if (cygpath --version) >/dev/null 2>/dev/null; then
12799 CYGPATH_W='cygpath -w'
12800 else
12801 CYGPATH_W=echo
12802 fi
12803 fi
12804
12805
12806 # Define the identity of the package.
12807 PACKAGE='sim'
12808 VERSION='0'
12809
12810
12811 cat >>confdefs.h <<_ACEOF
12812 #define PACKAGE "$PACKAGE"
12813 _ACEOF
12814
12815
12816 cat >>confdefs.h <<_ACEOF
12817 #define VERSION "$VERSION"
12818 _ACEOF
12819
12820 # Some tools Automake needs.
12821
12822 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
12823
12824
12825 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12826
12827
12828 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
12829
12830
12831 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12832
12833
12834 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12835
12836 # For better backward compatibility. To be removed once Automake 1.9.x
12837 # dies out for good. For more background, see:
12838 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
12839 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
12840 mkdir_p='$(MKDIR_P)'
12841
12842 # We need awk for the "check" target (and possibly the TAP driver). The
12843 # system "awk" is bad on some platforms.
12844 # Always define AMTAR for backward compatibility. Yes, it's still used
12845 # in the wild :-( We should find a proper way to deprecate it ...
12846 AMTAR='$${TAR-tar}'
12847
12848
12849 # We'll loop over all known methods to create a tar archive until one works.
12850 _am_tools='gnutar pax cpio none'
12851
12852 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
12853
12854
12855
12856
12857
12858 depcc="$CC" am_compiler_list=
12859
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12861 $as_echo_n "checking dependency style of $depcc... " >&6; }
12862 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12863 $as_echo_n "(cached) " >&6
12864 else
12865 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12866 # We make a subdir and do the tests there. Otherwise we can end up
12867 # making bogus files that we don't know about and never remove. For
12868 # instance it was reported that on HP-UX the gcc test will end up
12869 # making a dummy file named 'D' -- because '-MD' means "put the output
12870 # in D".
12871 rm -rf conftest.dir
12872 mkdir conftest.dir
12873 # Copy depcomp to subdir because otherwise we won't find it if we're
12874 # using a relative directory.
12875 cp "$am_depcomp" conftest.dir
12876 cd conftest.dir
12877 # We will build objects and dependencies in a subdirectory because
12878 # it helps to detect inapplicable dependency modes. For instance
12879 # both Tru64's cc and ICC support -MD to output dependencies as a
12880 # side effect of compilation, but ICC will put the dependencies in
12881 # the current directory while Tru64 will put them in the object
12882 # directory.
12883 mkdir sub
12884
12885 am_cv_CC_dependencies_compiler_type=none
12886 if test "$am_compiler_list" = ""; then
12887 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12888 fi
12889 am__universal=false
12890 case " $depcc " in #(
12891 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12892 esac
12893
12894 for depmode in $am_compiler_list; do
12895 # Setup a source with many dependencies, because some compilers
12896 # like to wrap large dependency lists on column 80 (with \), and
12897 # we should not choose a depcomp mode which is confused by this.
12898 #
12899 # We need to recreate these files for each test, as the compiler may
12900 # overwrite some of them when testing with obscure command lines.
12901 # This happens at least with the AIX C compiler.
12902 : > sub/conftest.c
12903 for i in 1 2 3 4 5 6; do
12904 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12905 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12906 # Solaris 10 /bin/sh.
12907 echo '/* dummy */' > sub/conftst$i.h
12908 done
12909 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12910
12911 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12912 # mode. It turns out that the SunPro C++ compiler does not properly
12913 # handle '-M -o', and we need to detect this. Also, some Intel
12914 # versions had trouble with output in subdirs.
12915 am__obj=sub/conftest.${OBJEXT-o}
12916 am__minus_obj="-o $am__obj"
12917 case $depmode in
12918 gcc)
12919 # This depmode causes a compiler race in universal mode.
12920 test "$am__universal" = false || continue
12921 ;;
12922 nosideeffect)
12923 # After this tag, mechanisms are not by side-effect, so they'll
12924 # only be used when explicitly requested.
12925 if test "x$enable_dependency_tracking" = xyes; then
12926 continue
12927 else
12928 break
12929 fi
12930 ;;
12931 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12932 # This compiler won't grok '-c -o', but also, the minuso test has
12933 # not run yet. These depmodes are late enough in the game, and
12934 # so weak that their functioning should not be impacted.
12935 am__obj=conftest.${OBJEXT-o}
12936 am__minus_obj=
12937 ;;
12938 none) break ;;
12939 esac
12940 if depmode=$depmode \
12941 source=sub/conftest.c object=$am__obj \
12942 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12943 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12944 >/dev/null 2>conftest.err &&
12945 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12946 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12947 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12948 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12949 # icc doesn't choke on unknown options, it will just issue warnings
12950 # or remarks (even with -Werror). So we grep stderr for any message
12951 # that says an option was ignored or not supported.
12952 # When given -MP, icc 7.0 and 7.1 complain thusly:
12953 # icc: Command line warning: ignoring option '-M'; no argument required
12954 # The diagnosis changed in icc 8.0:
12955 # icc: Command line remark: option '-MP' not supported
12956 if (grep 'ignoring option' conftest.err ||
12957 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12958 am_cv_CC_dependencies_compiler_type=$depmode
12959 break
12960 fi
12961 fi
12962 done
12963
12964 cd ..
12965 rm -rf conftest.dir
12966 else
12967 am_cv_CC_dependencies_compiler_type=none
12968 fi
12969
12970 fi
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12972 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12973 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12974
12975 if
12976 test "x$enable_dependency_tracking" != xno \
12977 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12978 am__fastdepCC_TRUE=
12979 am__fastdepCC_FALSE='#'
12980 else
12981 am__fastdepCC_TRUE='#'
12982 am__fastdepCC_FALSE=
12983 fi
12984
12985
12986
12987 # POSIX will say in a future version that running "rm -f" with no argument
12988 # is OK; and we want to be able to make that assumption in our Makefile
12989 # recipes. So use an aggressive probe to check that the usage we want is
12990 # actually supported "in the wild" to an acceptable degree.
12991 # See automake bug#10828.
12992 # To make any issue more visible, cause the running configure to be aborted
12993 # by default if the 'rm' program in use doesn't match our expectations; the
12994 # user can still override this though.
12995 if rm -f && rm -fr && rm -rf; then : OK; else
12996 cat >&2 <<'END'
12997 Oops!
12998
12999 Your 'rm' program seems unable to run without file operands specified
13000 on the command line, even when the '-f' option is present. This is contrary
13001 to the behaviour of most rm programs out there, and not conforming with
13002 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13003
13004 Please tell bug-automake@gnu.org about your system, including the value
13005 of your $PATH and any error possibly output before this message. This
13006 can help us improve future automake versions.
13007
13008 END
13009 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13010 echo 'Configuration will proceed anyway, since you have set the' >&2
13011 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13012 echo >&2
13013 else
13014 cat >&2 <<'END'
13015 Aborting the configuration process, to ensure you take notice of the issue.
13016
13017 You can download and install GNU coreutils to get an 'rm' implementation
13018 that behaves properly: <http://www.gnu.org/software/coreutils/>.
13019
13020 If you want to complete the configuration process using your problematic
13021 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13022 to "yes", and re-run configure.
13023
13024 END
13025 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
13026 fi
13027 fi
13028
13029 # Check whether --enable-silent-rules was given.
13030 if test "${enable_silent_rules+set}" = set; then :
13031 enableval=$enable_silent_rules;
13032 fi
13033
13034 case $enable_silent_rules in # (((
13035 yes) AM_DEFAULT_VERBOSITY=0;;
13036 no) AM_DEFAULT_VERBOSITY=1;;
13037 *) AM_DEFAULT_VERBOSITY=0;;
13038 esac
13039 am_make=${MAKE-make}
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13041 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13042 if ${am_cv_make_support_nested_variables+:} false; then :
13043 $as_echo_n "(cached) " >&6
13044 else
13045 if $as_echo 'TRUE=$(BAR$(V))
13046 BAR0=false
13047 BAR1=true
13048 V=1
13049 am__doit:
13050 @$(TRUE)
13051 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13052 am_cv_make_support_nested_variables=yes
13053 else
13054 am_cv_make_support_nested_variables=no
13055 fi
13056 fi
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13058 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13059 if test $am_cv_make_support_nested_variables = yes; then
13060 AM_V='$(V)'
13061 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13062 else
13063 AM_V=$AM_DEFAULT_VERBOSITY
13064 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13065 fi
13066 AM_BACKSLASH='\'
13067
13068
13069 # If a cpu ever has more than one simulator to choose from, use
13070 # --enable-sim=... to choose.
13071 # Check whether --enable-sim was given.
13072 if test "${enable_sim+set}" = set; then :
13073 enableval=$enable_sim; case "${enableval}" in
13074 yes | no) ;;
13075 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
13076 esac
13077 fi
13078
13079
13080 # Check whether --enable-example-sims was given.
13081 if test "${enable_example_sims+set}" = set; then :
13082 enableval=$enable_example_sims;
13083 fi
13084
13085
13086 # Check whether --enable-targets was given.
13087 if test "${enable_targets+set}" = set; then :
13088 enableval=$enable_targets; case "${enableval}" in
13089 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
13090 ;;
13091 no) enable_targets= ;;
13092 *) enable_targets=$enableval ;;
13093 esac
13094 fi
13095
13096
13097 SIM_PRIMARY_TARGET=
13098
13099
13100
13101
13102 if test "${enable_sim}" != no; then
13103 sim_igen=no
13104 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
13105 do
13106
13107 case "${targ}" in
13108 all|aarch64*-*-*)
13109 if test "${targ}" = "${target}"; then
13110 SIM_PRIMARY_TARGET=aarch64
13111 fi
13112
13113
13114 subdirs="$subdirs aarch64"
13115
13116
13117 ;;
13118 esac
13119
13120
13121 case "${targ}" in
13122 all|arm*-*-*)
13123 if test "${targ}" = "${target}"; then
13124 SIM_PRIMARY_TARGET=arm
13125 fi
13126 subdirs="$subdirs arm"
13127
13128
13129 ;;
13130 esac
13131
13132
13133 case "${targ}" in
13134 all|avr*-*-*)
13135 if test "${targ}" = "${target}"; then
13136 SIM_PRIMARY_TARGET=avr
13137 fi
13138 subdirs="$subdirs avr"
13139
13140
13141 ;;
13142 esac
13143
13144
13145 case "${targ}" in
13146 all|bfin-*-*)
13147 if test "${targ}" = "${target}"; then
13148 SIM_PRIMARY_TARGET=bfin
13149 fi
13150 subdirs="$subdirs bfin"
13151
13152
13153 ;;
13154 esac
13155
13156
13157 case "${targ}" in
13158 all|bpf-*-*)
13159 if test "${targ}" = "${target}"; then
13160 SIM_PRIMARY_TARGET=bpf
13161 fi
13162 subdirs="$subdirs bpf"
13163
13164
13165 ;;
13166 esac
13167
13168
13169 case "${targ}" in
13170 all|cr16*-*-*)
13171 if test "${targ}" = "${target}"; then
13172 SIM_PRIMARY_TARGET=cr16
13173 fi
13174 subdirs="$subdirs cr16"
13175
13176
13177 ;;
13178 esac
13179
13180
13181 case "${targ}" in
13182 all|cris-*-* | crisv32-*-*)
13183 if test "${targ}" = "${target}"; then
13184 SIM_PRIMARY_TARGET=cris
13185 fi
13186 subdirs="$subdirs cris"
13187
13188
13189 ;;
13190 esac
13191
13192
13193 case "${targ}" in
13194 all|d10v-*-*)
13195 if test "${targ}" = "${target}"; then
13196 SIM_PRIMARY_TARGET=d10v
13197 fi
13198 subdirs="$subdirs d10v"
13199
13200
13201 ;;
13202 esac
13203
13204
13205 case "${targ}" in
13206 all|frv-*-*)
13207 if test "${targ}" = "${target}"; then
13208 SIM_PRIMARY_TARGET=frv
13209 fi
13210 subdirs="$subdirs frv"
13211
13212
13213 ;;
13214 esac
13215
13216
13217 case "${targ}" in
13218 all|h8300*-*-*)
13219 if test "${targ}" = "${target}"; then
13220 SIM_PRIMARY_TARGET=h8300
13221 fi
13222 subdirs="$subdirs h8300"
13223
13224
13225 ;;
13226 esac
13227
13228
13229 case "${targ}" in
13230 all|iq2000-*-*)
13231 if test "${targ}" = "${target}"; then
13232 SIM_PRIMARY_TARGET=iq2000
13233 fi
13234 subdirs="$subdirs iq2000"
13235
13236
13237 ;;
13238 esac
13239
13240
13241 case "${targ}" in
13242 all|lm32-*-*)
13243 if test "${targ}" = "${target}"; then
13244 SIM_PRIMARY_TARGET=lm32
13245 fi
13246 subdirs="$subdirs lm32"
13247
13248
13249 ;;
13250 esac
13251
13252
13253 case "${targ}" in
13254 all|m32c-*-*)
13255 if test "${targ}" = "${target}"; then
13256 SIM_PRIMARY_TARGET=m32c
13257 fi
13258 subdirs="$subdirs m32c"
13259
13260
13261 ;;
13262 esac
13263
13264
13265 case "${targ}" in
13266 all|m32r-*-*)
13267 if test "${targ}" = "${target}"; then
13268 SIM_PRIMARY_TARGET=m32r
13269 fi
13270 subdirs="$subdirs m32r"
13271
13272
13273 ;;
13274 esac
13275
13276
13277 case "${targ}" in
13278 all|m68hc11-*-*|m6811-*-*)
13279 if test "${targ}" = "${target}"; then
13280 SIM_PRIMARY_TARGET=m68hc11
13281 fi
13282 subdirs="$subdirs m68hc11"
13283
13284
13285 ;;
13286 esac
13287
13288
13289 case "${targ}" in
13290 all|mcore-*-*)
13291 if test "${targ}" = "${target}"; then
13292 SIM_PRIMARY_TARGET=mcore
13293 fi
13294 subdirs="$subdirs mcore"
13295
13296
13297 ;;
13298 esac
13299
13300
13301 case "${targ}" in
13302 all|microblaze-*-*)
13303 if test "${targ}" = "${target}"; then
13304 SIM_PRIMARY_TARGET=microblaze
13305 fi
13306 subdirs="$subdirs microblaze"
13307
13308
13309 ;;
13310 esac
13311
13312
13313 case "${targ}" in
13314 all|mips*-*-*)
13315 if test "${targ}" = "${target}"; then
13316 SIM_PRIMARY_TARGET=mips
13317 fi
13318 subdirs="$subdirs mips"
13319
13320 sim_igen=yes
13321 ;;
13322 esac
13323
13324
13325 case "${targ}" in
13326 all|mn10300*-*-*)
13327 if test "${targ}" = "${target}"; then
13328 SIM_PRIMARY_TARGET=mn10300
13329 fi
13330 subdirs="$subdirs mn10300"
13331
13332 sim_igen=yes
13333 ;;
13334 esac
13335
13336
13337 case "${targ}" in
13338 all|moxie-*-*)
13339 if test "${targ}" = "${target}"; then
13340 SIM_PRIMARY_TARGET=moxie
13341 fi
13342 subdirs="$subdirs moxie"
13343
13344
13345 ;;
13346 esac
13347
13348
13349 case "${targ}" in
13350 all|msp430*-*-*)
13351 if test "${targ}" = "${target}"; then
13352 SIM_PRIMARY_TARGET=msp430
13353 fi
13354 subdirs="$subdirs msp430"
13355
13356
13357 ;;
13358 esac
13359
13360
13361 case "${targ}" in
13362 all|or1k-*-* | or1knd-*-*)
13363 if test "${targ}" = "${target}"; then
13364 SIM_PRIMARY_TARGET=or1k
13365 fi
13366 subdirs="$subdirs or1k"
13367
13368
13369 ;;
13370 esac
13371
13372
13373 case "${targ}" in
13374 all|pru*-*-*)
13375 if test "${targ}" = "${target}"; then
13376 SIM_PRIMARY_TARGET=pru
13377 fi
13378 subdirs="$subdirs pru"
13379
13380
13381 ;;
13382 esac
13383
13384
13385 case "${targ}" in
13386 all|riscv*-*-*)
13387 if test "${targ}" = "${target}"; then
13388 SIM_PRIMARY_TARGET=riscv
13389 fi
13390 subdirs="$subdirs riscv"
13391
13392
13393 ;;
13394 esac
13395
13396
13397 case "${targ}" in
13398 all|rl78-*-*)
13399 if test "${targ}" = "${target}"; then
13400 SIM_PRIMARY_TARGET=rl78
13401 fi
13402 subdirs="$subdirs rl78"
13403
13404
13405 ;;
13406 esac
13407
13408
13409 case "${targ}" in
13410 all|rx-*-*)
13411 if test "${targ}" = "${target}"; then
13412 SIM_PRIMARY_TARGET=rx
13413 fi
13414 subdirs="$subdirs rx"
13415
13416
13417 ;;
13418 esac
13419
13420
13421 case "${targ}" in
13422 all|sh*-*-*)
13423 if test "${targ}" = "${target}"; then
13424 SIM_PRIMARY_TARGET=sh
13425 fi
13426 subdirs="$subdirs sh"
13427
13428
13429 ;;
13430 esac
13431
13432
13433 case "${targ}" in
13434 all|sparc-*-rtems*|sparc-*-elf*)
13435 if test "${targ}" = "${target}"; then
13436 SIM_PRIMARY_TARGET=erc32
13437 fi
13438 subdirs="$subdirs erc32"
13439
13440
13441 ;;
13442 esac
13443
13444
13445 case "${targ}" in
13446 all|powerpc*-*-*)
13447 if test "${targ}" = "${target}"; then
13448 SIM_PRIMARY_TARGET=ppc
13449 fi
13450 subdirs="$subdirs ppc"
13451
13452
13453 ;;
13454 esac
13455
13456
13457 case "${targ}" in
13458 all|ft32-*-*)
13459 if test "${targ}" = "${target}"; then
13460 SIM_PRIMARY_TARGET=ft32
13461 fi
13462 subdirs="$subdirs ft32"
13463
13464
13465 ;;
13466 esac
13467
13468
13469 case "${targ}" in
13470 all|v850*-*-*)
13471 if test "${targ}" = "${target}"; then
13472 SIM_PRIMARY_TARGET=v850
13473 fi
13474 subdirs="$subdirs v850"
13475
13476 sim_igen=yes
13477 ;;
13478 esac
13479
13480 done
13481
13482 if test "x${enable_example_sims}" = xyes; then
13483 subdirs="$subdirs example-synacor"
13484
13485 fi
13486 fi
13487 if test "$sim_igen" = "yes"; then
13488 SIM_ENABLE_IGEN_TRUE=
13489 SIM_ENABLE_IGEN_FALSE='#'
13490 else
13491 SIM_ENABLE_IGEN_TRUE='#'
13492 SIM_ENABLE_IGEN_FALSE=
13493 fi
13494
13495
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
13497 $as_echo_n "checking whether to force sim alignment... " >&6; }
13498 sim_alignment=
13499 # Check whether --enable-sim-alignment was given.
13500 if test "${enable_sim_alignment+set}" = set; then :
13501 enableval=$enable_sim_alignment; case "${enableval}" in
13502 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
13503 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
13504 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
13505 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
13506 esac
13507 fi
13508
13509 cat >>confdefs.h <<_ACEOF
13510 #define WITH_ALIGNMENT ${sim_alignment:-0}
13511 _ACEOF
13512
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13514 $as_echo "${sim_alignment:-no}" >&6; }
13515
13516
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
13518 $as_echo_n "checking whether to enable sim asserts... " >&6; }
13519 sim_assert="1"
13520 # Check whether --enable-sim-assert was given.
13521 if test "${enable_sim_assert+set}" = set; then :
13522 enableval=$enable_sim_assert; case "${enableval}" in
13523 yes) sim_assert="1";;
13524 no) sim_assert="0";;
13525 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
13526 esac
13527 fi
13528
13529 cat >>confdefs.h <<_ACEOF
13530 #define WITH_ASSERT $sim_assert
13531 _ACEOF
13532
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
13534 $as_echo "$sim_assert" >&6; }
13535
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
13537 $as_echo_n "checking for sim debug setting... " >&6; }
13538 sim_debug="0"
13539 # Check whether --enable-sim-debug was given.
13540 if test "${enable_sim_debug+set}" = set; then :
13541 enableval=$enable_sim_debug; case "${enableval}" in
13542 yes) sim_debug="7";;
13543 no) sim_debug="0";;
13544 *) sim_debug="($enableval)";;
13545 esac
13546 fi
13547 if test "$sim_debug" != "0"; then
13548
13549 cat >>confdefs.h <<_ACEOF
13550 #define DEBUG $sim_debug
13551 _ACEOF
13552
13553 fi
13554
13555 cat >>confdefs.h <<_ACEOF
13556 #define WITH_DEBUG $sim_debug
13557 _ACEOF
13558
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
13560 $as_echo "$sim_debug" >&6; }
13561
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
13563 $as_echo_n "checking whether to force sim endianness... " >&6; }
13564 sim_endian=
13565 # Check whether --enable-sim-endian was given.
13566 if test "${enable_sim_endian+set}" = set; then :
13567 enableval=$enable_sim_endian; case "${enableval}" in
13568 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
13569 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
13570 yes | no) ;;
13571 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
13572 esac
13573 fi
13574
13575 cat >>confdefs.h <<_ACEOF
13576 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
13577 _ACEOF
13578
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13580 $as_echo "${sim_alignment:-no}" >&6; }
13581
13582
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
13584 $as_echo_n "checking default sim environment setting... " >&6; }
13585 sim_environment="ALL_ENVIRONMENT"
13586 # Check whether --enable-sim-environment was given.
13587 if test "${enable_sim_environment+set}" = set; then :
13588 enableval=$enable_sim_environment; case "${enableval}" in
13589 all | ALL) sim_environment="ALL_ENVIRONMENT";;
13590 user | USER) sim_environment="USER_ENVIRONMENT";;
13591 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
13592 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
13593 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
13594 esac
13595 fi
13596
13597 cat >>confdefs.h <<_ACEOF
13598 #define WITH_ENVIRONMENT $sim_environment
13599 _ACEOF
13600
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
13602 $as_echo "$sim_environment" >&6; }
13603
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
13605 $as_echo_n "checking for sim profile settings... " >&6; }
13606 profile="1"
13607 sim_profile="-1"
13608 # Check whether --enable-sim-profile was given.
13609 if test "${enable_sim_profile+set}" = set; then :
13610 enableval=$enable_sim_profile; case "${enableval}" in
13611 yes) profile="1" sim_profile="-1";;
13612 no) profile="0" sim_profile="0";;
13613 [-0-9]*)
13614 profile="(${enableval})" sim_profile="(${enableval})";;
13615 [a-z]*)
13616 profile="1"
13617 sim_profile=""
13618 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13619 if test x"$sim_profile" = x; then
13620 sim_profile="(PROFILE_$x"
13621 else
13622 sim_profile="${sim_profile}|PROFILE_$x"
13623 fi
13624 done
13625 sim_profile="$sim_profile)" ;;
13626 esac
13627 fi
13628
13629 cat >>confdefs.h <<_ACEOF
13630 #define PROFILE $profile
13631 _ACEOF
13632
13633
13634 cat >>confdefs.h <<_ACEOF
13635 #define WITH_PROFILE $sim_profile
13636 _ACEOF
13637
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
13639 $as_echo "$sim_profile" >&6; }
13640
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
13642 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
13643 sim_stdio="0"
13644 # Check whether --enable-sim-stdio was given.
13645 if test "${enable_sim_stdio+set}" = set; then :
13646 enableval=$enable_sim_stdio; case "${enableval}" in
13647 yes) sim_stdio="DO_USE_STDIO";;
13648 no) sim_stdio="DONT_USE_STDIO";;
13649 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
13650 esac
13651 fi
13652
13653 cat >>confdefs.h <<_ACEOF
13654 #define WITH_STDIO $sim_stdio
13655 _ACEOF
13656
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
13658 $as_echo "$sim_stdio" >&6; }
13659
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
13661 $as_echo_n "checking for sim trace settings... " >&6; }
13662 sim_trace="~TRACE_debug"
13663 # Check whether --enable-sim-trace was given.
13664 if test "${enable_sim_trace+set}" = set; then :
13665 enableval=$enable_sim_trace; case "${enableval}" in
13666 yes) sim_trace="-1";;
13667 no) sim_trace="0";;
13668 [-0-9]*)
13669 sim_trace="'(${enableval})'";;
13670 [[:lower:]]*)
13671 sim_trace=""
13672 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13673 if test x"$sim_trace" = x; then
13674 sim_trace="(TRACE_$x"
13675 else
13676 sim_trace="${sim_trace}|TRACE_$x"
13677 fi
13678 done
13679 sim_trace="$sim_trace)" ;;
13680 esac
13681 fi
13682
13683 cat >>confdefs.h <<_ACEOF
13684 #define WITH_TRACE $sim_trace
13685 _ACEOF
13686
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
13688 $as_echo "$sim_trace" >&6; }
13689
13690
13691 # Check whether --enable-werror was given.
13692 if test "${enable_werror+set}" = set; then :
13693 enableval=$enable_werror; case "${enableval}" in
13694 yes | y) ERROR_ON_WARNING="yes" ;;
13695 no | n) ERROR_ON_WARNING="no" ;;
13696 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13697 esac
13698 fi
13699
13700
13701 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13702 ERROR_ON_WARNING=yes
13703 fi
13704
13705 WERROR_CFLAGS=""
13706 if test "${ERROR_ON_WARNING}" = yes ; then
13707 WERROR_CFLAGS="-Werror"
13708 fi
13709
13710 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13711 -Wpointer-sign \
13712 -Wno-unused -Wunused-value -Wunused-function \
13713 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
13714 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
13715 -Wold-style-declaration -Wold-style-definition"
13716
13717 # Enable -Wno-format by default when using gcc on mingw since many
13718 # GCC versions complain about %I64.
13719 case "${host}" in
13720 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
13721 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
13722 esac
13723
13724 # Check whether --enable-build-warnings was given.
13725 if test "${enable_build_warnings+set}" = set; then :
13726 enableval=$enable_build_warnings; case "${enableval}" in
13727 yes) ;;
13728 no) build_warnings="-w";;
13729 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13730 build_warnings="${build_warnings} ${t}";;
13731 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13732 build_warnings="${t} ${build_warnings}";;
13733 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13734 esac
13735 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13736 echo "Setting compiler warning flags = $build_warnings" 6>&1
13737 fi
13738 fi
13739 # Check whether --enable-sim-build-warnings was given.
13740 if test "${enable_sim_build_warnings+set}" = set; then :
13741 enableval=$enable_sim_build_warnings; case "${enableval}" in
13742 yes) ;;
13743 no) build_warnings="-w";;
13744 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13745 build_warnings="${build_warnings} ${t}";;
13746 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13747 build_warnings="${t} ${build_warnings}";;
13748 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13749 esac
13750 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13751 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13752 fi
13753 fi
13754 WARN_CFLAGS=""
13755 if test "x${build_warnings}" != x -a "x$GCC" = xyes
13756 then
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13758 $as_echo_n "checking compiler warning flags... " >&6; }
13759 # Separate out the -Werror flag as some files just cannot be
13760 # compiled with it enabled.
13761 for w in ${build_warnings}; do
13762 case $w in
13763 -Werr*) WERROR_CFLAGS=-Werror ;;
13764 *) # Check that GCC accepts it
13765 saved_CFLAGS="$CFLAGS"
13766 CFLAGS="$CFLAGS -Werror $w"
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13769
13770 int
13771 main ()
13772 {
13773
13774 ;
13775 return 0;
13776 }
13777 _ACEOF
13778 if ac_fn_c_try_compile "$LINENO"; then :
13779 WARN_CFLAGS="${WARN_CFLAGS} $w"
13780 fi
13781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13782 CFLAGS="$saved_CFLAGS"
13783 esac
13784 done
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13786 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13787 fi
13788
13789
13790 ac_config_files="$ac_config_files arch-subdir.mk Makefile"
13791
13792 cat >confcache <<\_ACEOF
13793 # This file is a shell script that caches the results of configure
13794 # tests run on this system so they can be shared between configure
13795 # scripts and configure runs, see configure's option --config-cache.
13796 # It is not useful on other systems. If it contains results you don't
13797 # want to keep, you may remove or edit it.
13798 #
13799 # config.status only pays attention to the cache file if you give it
13800 # the --recheck option to rerun configure.
13801 #
13802 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13803 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13804 # following values.
13805
13806 _ACEOF
13807
13808 # The following way of writing the cache mishandles newlines in values,
13809 # but we know of no workaround that is simple, portable, and efficient.
13810 # So, we kill variables containing newlines.
13811 # Ultrix sh set writes to stderr and can't be redirected directly,
13812 # and sets the high bit in the cache file unless we assign to the vars.
13813 (
13814 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13815 eval ac_val=\$$ac_var
13816 case $ac_val in #(
13817 *${as_nl}*)
13818 case $ac_var in #(
13819 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13820 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13821 esac
13822 case $ac_var in #(
13823 _ | IFS | as_nl) ;; #(
13824 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13825 *) { eval $ac_var=; unset $ac_var;} ;;
13826 esac ;;
13827 esac
13828 done
13829
13830 (set) 2>&1 |
13831 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13832 *${as_nl}ac_space=\ *)
13833 # `set' does not quote correctly, so add quotes: double-quote
13834 # substitution turns \\\\ into \\, and sed turns \\ into \.
13835 sed -n \
13836 "s/'/'\\\\''/g;
13837 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13838 ;; #(
13839 *)
13840 # `set' quotes correctly as required by POSIX, so do not add quotes.
13841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13842 ;;
13843 esac |
13844 sort
13845 ) |
13846 sed '
13847 /^ac_cv_env_/b end
13848 t clear
13849 :clear
13850 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13851 t end
13852 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13853 :end' >>confcache
13854 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13855 if test -w "$cache_file"; then
13856 if test "x$cache_file" != "x/dev/null"; then
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13858 $as_echo "$as_me: updating cache $cache_file" >&6;}
13859 if test ! -f "$cache_file" || test -h "$cache_file"; then
13860 cat confcache >"$cache_file"
13861 else
13862 case $cache_file in #(
13863 */* | ?:*)
13864 mv -f confcache "$cache_file"$$ &&
13865 mv -f "$cache_file"$$ "$cache_file" ;; #(
13866 *)
13867 mv -f confcache "$cache_file" ;;
13868 esac
13869 fi
13870 fi
13871 else
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13873 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13874 fi
13875 fi
13876 rm -f confcache
13877
13878 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13879 # Let make expand exec_prefix.
13880 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13881
13882 DEFS=-DHAVE_CONFIG_H
13883
13884 ac_libobjs=
13885 ac_ltlibobjs=
13886 U=
13887 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13888 # 1. Remove the extension, and $U if already installed.
13889 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13890 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13891 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13892 # will be set to the directory where LIBOBJS objects are built.
13893 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13894 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13895 done
13896 LIBOBJS=$ac_libobjs
13897
13898 LTLIBOBJS=$ac_ltlibobjs
13899
13900
13901
13902 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
13903 as_fn_error $? "conditional \"PLUGINS\" was never defined.
13904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13905 fi
13906 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13907 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13909 fi
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13911 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13912 if test -n "$am_sleep_pid"; then
13913 # Hide warnings about reused PIDs.
13914 wait $am_sleep_pid 2>/dev/null
13915 fi
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13917 $as_echo "done" >&6; }
13918 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13919 as_fn_error $? "conditional \"AMDEP\" was never defined.
13920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13921 fi
13922 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13923 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13925 fi
13926 if test -n "$EXEEXT"; then
13927 am__EXEEXT_TRUE=
13928 am__EXEEXT_FALSE='#'
13929 else
13930 am__EXEEXT_TRUE='#'
13931 am__EXEEXT_FALSE=
13932 fi
13933
13934 if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
13935 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
13936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13937 fi
13938
13939 : "${CONFIG_STATUS=./config.status}"
13940 ac_write_fail=0
13941 ac_clean_files_save=$ac_clean_files
13942 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13944 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13945 as_write_fail=0
13946 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13947 #! $SHELL
13948 # Generated by $as_me.
13949 # Run this file to recreate the current configuration.
13950 # Compiler output produced by configure, useful for debugging
13951 # configure, is in config.log if it exists.
13952
13953 debug=false
13954 ac_cs_recheck=false
13955 ac_cs_silent=false
13956
13957 SHELL=\${CONFIG_SHELL-$SHELL}
13958 export SHELL
13959 _ASEOF
13960 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13961 ## -------------------- ##
13962 ## M4sh Initialization. ##
13963 ## -------------------- ##
13964
13965 # Be more Bourne compatible
13966 DUALCASE=1; export DUALCASE # for MKS sh
13967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13968 emulate sh
13969 NULLCMD=:
13970 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13971 # is contrary to our usage. Disable this feature.
13972 alias -g '${1+"$@"}'='"$@"'
13973 setopt NO_GLOB_SUBST
13974 else
13975 case `(set -o) 2>/dev/null` in #(
13976 *posix*) :
13977 set -o posix ;; #(
13978 *) :
13979 ;;
13980 esac
13981 fi
13982
13983
13984 as_nl='
13985 '
13986 export as_nl
13987 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13988 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13989 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13990 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13991 # Prefer a ksh shell builtin over an external printf program on Solaris,
13992 # but without wasting forks for bash or zsh.
13993 if test -z "$BASH_VERSION$ZSH_VERSION" \
13994 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13995 as_echo='print -r --'
13996 as_echo_n='print -rn --'
13997 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13998 as_echo='printf %s\n'
13999 as_echo_n='printf %s'
14000 else
14001 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14002 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14003 as_echo_n='/usr/ucb/echo -n'
14004 else
14005 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14006 as_echo_n_body='eval
14007 arg=$1;
14008 case $arg in #(
14009 *"$as_nl"*)
14010 expr "X$arg" : "X\\(.*\\)$as_nl";
14011 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14012 esac;
14013 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14014 '
14015 export as_echo_n_body
14016 as_echo_n='sh -c $as_echo_n_body as_echo'
14017 fi
14018 export as_echo_body
14019 as_echo='sh -c $as_echo_body as_echo'
14020 fi
14021
14022 # The user is always right.
14023 if test "${PATH_SEPARATOR+set}" != set; then
14024 PATH_SEPARATOR=:
14025 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14026 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14027 PATH_SEPARATOR=';'
14028 }
14029 fi
14030
14031
14032 # IFS
14033 # We need space, tab and new line, in precisely that order. Quoting is
14034 # there to prevent editors from complaining about space-tab.
14035 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14036 # splitting by setting IFS to empty value.)
14037 IFS=" "" $as_nl"
14038
14039 # Find who we are. Look in the path if we contain no directory separator.
14040 as_myself=
14041 case $0 in #((
14042 *[\\/]* ) as_myself=$0 ;;
14043 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14044 for as_dir in $PATH
14045 do
14046 IFS=$as_save_IFS
14047 test -z "$as_dir" && as_dir=.
14048 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14049 done
14050 IFS=$as_save_IFS
14051
14052 ;;
14053 esac
14054 # We did not find ourselves, most probably we were run as `sh COMMAND'
14055 # in which case we are not to be found in the path.
14056 if test "x$as_myself" = x; then
14057 as_myself=$0
14058 fi
14059 if test ! -f "$as_myself"; then
14060 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14061 exit 1
14062 fi
14063
14064 # Unset variables that we do not need and which cause bugs (e.g. in
14065 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14066 # suppresses any "Segmentation fault" message there. '((' could
14067 # trigger a bug in pdksh 5.2.14.
14068 for as_var in BASH_ENV ENV MAIL MAILPATH
14069 do eval test x\${$as_var+set} = xset \
14070 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14071 done
14072 PS1='$ '
14073 PS2='> '
14074 PS4='+ '
14075
14076 # NLS nuisances.
14077 LC_ALL=C
14078 export LC_ALL
14079 LANGUAGE=C
14080 export LANGUAGE
14081
14082 # CDPATH.
14083 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14084
14085
14086 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14087 # ----------------------------------------
14088 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14089 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14090 # script with STATUS, using 1 if that was 0.
14091 as_fn_error ()
14092 {
14093 as_status=$1; test $as_status -eq 0 && as_status=1
14094 if test "$4"; then
14095 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14096 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14097 fi
14098 $as_echo "$as_me: error: $2" >&2
14099 as_fn_exit $as_status
14100 } # as_fn_error
14101
14102
14103 # as_fn_set_status STATUS
14104 # -----------------------
14105 # Set $? to STATUS, without forking.
14106 as_fn_set_status ()
14107 {
14108 return $1
14109 } # as_fn_set_status
14110
14111 # as_fn_exit STATUS
14112 # -----------------
14113 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14114 as_fn_exit ()
14115 {
14116 set +e
14117 as_fn_set_status $1
14118 exit $1
14119 } # as_fn_exit
14120
14121 # as_fn_unset VAR
14122 # ---------------
14123 # Portably unset VAR.
14124 as_fn_unset ()
14125 {
14126 { eval $1=; unset $1;}
14127 }
14128 as_unset=as_fn_unset
14129 # as_fn_append VAR VALUE
14130 # ----------------------
14131 # Append the text in VALUE to the end of the definition contained in VAR. Take
14132 # advantage of any shell optimizations that allow amortized linear growth over
14133 # repeated appends, instead of the typical quadratic growth present in naive
14134 # implementations.
14135 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14136 eval 'as_fn_append ()
14137 {
14138 eval $1+=\$2
14139 }'
14140 else
14141 as_fn_append ()
14142 {
14143 eval $1=\$$1\$2
14144 }
14145 fi # as_fn_append
14146
14147 # as_fn_arith ARG...
14148 # ------------------
14149 # Perform arithmetic evaluation on the ARGs, and store the result in the
14150 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14151 # must be portable across $(()) and expr.
14152 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14153 eval 'as_fn_arith ()
14154 {
14155 as_val=$(( $* ))
14156 }'
14157 else
14158 as_fn_arith ()
14159 {
14160 as_val=`expr "$@" || test $? -eq 1`
14161 }
14162 fi # as_fn_arith
14163
14164
14165 if expr a : '\(a\)' >/dev/null 2>&1 &&
14166 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14167 as_expr=expr
14168 else
14169 as_expr=false
14170 fi
14171
14172 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14173 as_basename=basename
14174 else
14175 as_basename=false
14176 fi
14177
14178 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14179 as_dirname=dirname
14180 else
14181 as_dirname=false
14182 fi
14183
14184 as_me=`$as_basename -- "$0" ||
14185 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14186 X"$0" : 'X\(//\)$' \| \
14187 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14188 $as_echo X/"$0" |
14189 sed '/^.*\/\([^/][^/]*\)\/*$/{
14190 s//\1/
14191 q
14192 }
14193 /^X\/\(\/\/\)$/{
14194 s//\1/
14195 q
14196 }
14197 /^X\/\(\/\).*/{
14198 s//\1/
14199 q
14200 }
14201 s/.*/./; q'`
14202
14203 # Avoid depending upon Character Ranges.
14204 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14205 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14206 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14207 as_cr_digits='0123456789'
14208 as_cr_alnum=$as_cr_Letters$as_cr_digits
14209
14210 ECHO_C= ECHO_N= ECHO_T=
14211 case `echo -n x` in #(((((
14212 -n*)
14213 case `echo 'xy\c'` in
14214 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14215 xy) ECHO_C='\c';;
14216 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14217 ECHO_T=' ';;
14218 esac;;
14219 *)
14220 ECHO_N='-n';;
14221 esac
14222
14223 rm -f conf$$ conf$$.exe conf$$.file
14224 if test -d conf$$.dir; then
14225 rm -f conf$$.dir/conf$$.file
14226 else
14227 rm -f conf$$.dir
14228 mkdir conf$$.dir 2>/dev/null
14229 fi
14230 if (echo >conf$$.file) 2>/dev/null; then
14231 if ln -s conf$$.file conf$$ 2>/dev/null; then
14232 as_ln_s='ln -s'
14233 # ... but there are two gotchas:
14234 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14235 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14236 # In both cases, we have to default to `cp -pR'.
14237 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14238 as_ln_s='cp -pR'
14239 elif ln conf$$.file conf$$ 2>/dev/null; then
14240 as_ln_s=ln
14241 else
14242 as_ln_s='cp -pR'
14243 fi
14244 else
14245 as_ln_s='cp -pR'
14246 fi
14247 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14248 rmdir conf$$.dir 2>/dev/null
14249
14250
14251 # as_fn_mkdir_p
14252 # -------------
14253 # Create "$as_dir" as a directory, including parents if necessary.
14254 as_fn_mkdir_p ()
14255 {
14256
14257 case $as_dir in #(
14258 -*) as_dir=./$as_dir;;
14259 esac
14260 test -d "$as_dir" || eval $as_mkdir_p || {
14261 as_dirs=
14262 while :; do
14263 case $as_dir in #(
14264 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14265 *) as_qdir=$as_dir;;
14266 esac
14267 as_dirs="'$as_qdir' $as_dirs"
14268 as_dir=`$as_dirname -- "$as_dir" ||
14269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14270 X"$as_dir" : 'X\(//\)[^/]' \| \
14271 X"$as_dir" : 'X\(//\)$' \| \
14272 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14273 $as_echo X"$as_dir" |
14274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14275 s//\1/
14276 q
14277 }
14278 /^X\(\/\/\)[^/].*/{
14279 s//\1/
14280 q
14281 }
14282 /^X\(\/\/\)$/{
14283 s//\1/
14284 q
14285 }
14286 /^X\(\/\).*/{
14287 s//\1/
14288 q
14289 }
14290 s/.*/./; q'`
14291 test -d "$as_dir" && break
14292 done
14293 test -z "$as_dirs" || eval "mkdir $as_dirs"
14294 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14295
14296
14297 } # as_fn_mkdir_p
14298 if mkdir -p . 2>/dev/null; then
14299 as_mkdir_p='mkdir -p "$as_dir"'
14300 else
14301 test -d ./-p && rmdir ./-p
14302 as_mkdir_p=false
14303 fi
14304
14305
14306 # as_fn_executable_p FILE
14307 # -----------------------
14308 # Test if FILE is an executable regular file.
14309 as_fn_executable_p ()
14310 {
14311 test -f "$1" && test -x "$1"
14312 } # as_fn_executable_p
14313 as_test_x='test -x'
14314 as_executable_p=as_fn_executable_p
14315
14316 # Sed expression to map a string onto a valid CPP name.
14317 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14318
14319 # Sed expression to map a string onto a valid variable name.
14320 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14321
14322
14323 exec 6>&1
14324 ## ----------------------------------- ##
14325 ## Main body of $CONFIG_STATUS script. ##
14326 ## ----------------------------------- ##
14327 _ASEOF
14328 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14329
14330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14331 # Save the log message, to keep $0 and so on meaningful, and to
14332 # report actual input values of CONFIG_FILES etc. instead of their
14333 # values after options handling.
14334 ac_log="
14335 This file was extended by sim $as_me 0, which was
14336 generated by GNU Autoconf 2.69. Invocation command line was
14337
14338 CONFIG_FILES = $CONFIG_FILES
14339 CONFIG_HEADERS = $CONFIG_HEADERS
14340 CONFIG_LINKS = $CONFIG_LINKS
14341 CONFIG_COMMANDS = $CONFIG_COMMANDS
14342 $ $0 $@
14343
14344 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14345 "
14346
14347 _ACEOF
14348
14349 case $ac_config_files in *"
14350 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14351 esac
14352
14353 case $ac_config_headers in *"
14354 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14355 esac
14356
14357
14358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14359 # Files that config.status was made for.
14360 config_files="$ac_config_files"
14361 config_headers="$ac_config_headers"
14362 config_commands="$ac_config_commands"
14363
14364 _ACEOF
14365
14366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14367 ac_cs_usage="\
14368 \`$as_me' instantiates files and other configuration actions
14369 from templates according to the current configuration. Unless the files
14370 and actions are specified as TAGs, all are instantiated by default.
14371
14372 Usage: $0 [OPTION]... [TAG]...
14373
14374 -h, --help print this help, then exit
14375 -V, --version print version number and configuration settings, then exit
14376 --config print configuration, then exit
14377 -q, --quiet, --silent
14378 do not print progress messages
14379 -d, --debug don't remove temporary files
14380 --recheck update $as_me by reconfiguring in the same conditions
14381 --file=FILE[:TEMPLATE]
14382 instantiate the configuration file FILE
14383 --header=FILE[:TEMPLATE]
14384 instantiate the configuration header FILE
14385
14386 Configuration files:
14387 $config_files
14388
14389 Configuration headers:
14390 $config_headers
14391
14392 Configuration commands:
14393 $config_commands
14394
14395 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
14396 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
14397
14398 _ACEOF
14399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14400 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14401 ac_cs_version="\\
14402 sim config.status 0
14403 configured by $0, generated by GNU Autoconf 2.69,
14404 with options \\"\$ac_cs_config\\"
14405
14406 Copyright (C) 2012 Free Software Foundation, Inc.
14407 This config.status script is free software; the Free Software Foundation
14408 gives unlimited permission to copy, distribute and modify it."
14409
14410 ac_pwd='$ac_pwd'
14411 srcdir='$srcdir'
14412 INSTALL='$INSTALL'
14413 MKDIR_P='$MKDIR_P'
14414 AWK='$AWK'
14415 test -n "\$AWK" || AWK=awk
14416 _ACEOF
14417
14418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14419 # The default lists apply if the user does not specify any file.
14420 ac_need_defaults=:
14421 while test $# != 0
14422 do
14423 case $1 in
14424 --*=?*)
14425 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14426 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14427 ac_shift=:
14428 ;;
14429 --*=)
14430 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14431 ac_optarg=
14432 ac_shift=:
14433 ;;
14434 *)
14435 ac_option=$1
14436 ac_optarg=$2
14437 ac_shift=shift
14438 ;;
14439 esac
14440
14441 case $ac_option in
14442 # Handling of the options.
14443 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14444 ac_cs_recheck=: ;;
14445 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14446 $as_echo "$ac_cs_version"; exit ;;
14447 --config | --confi | --conf | --con | --co | --c )
14448 $as_echo "$ac_cs_config"; exit ;;
14449 --debug | --debu | --deb | --de | --d | -d )
14450 debug=: ;;
14451 --file | --fil | --fi | --f )
14452 $ac_shift
14453 case $ac_optarg in
14454 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14455 '') as_fn_error $? "missing file argument" ;;
14456 esac
14457 as_fn_append CONFIG_FILES " '$ac_optarg'"
14458 ac_need_defaults=false;;
14459 --header | --heade | --head | --hea )
14460 $ac_shift
14461 case $ac_optarg in
14462 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14463 esac
14464 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14465 ac_need_defaults=false;;
14466 --he | --h)
14467 # Conflict between --help and --header
14468 as_fn_error $? "ambiguous option: \`$1'
14469 Try \`$0 --help' for more information.";;
14470 --help | --hel | -h )
14471 $as_echo "$ac_cs_usage"; exit ;;
14472 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14473 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14474 ac_cs_silent=: ;;
14475
14476 # This is an error.
14477 -*) as_fn_error $? "unrecognized option: \`$1'
14478 Try \`$0 --help' for more information." ;;
14479
14480 *) as_fn_append ac_config_targets " $1"
14481 ac_need_defaults=false ;;
14482
14483 esac
14484 shift
14485 done
14486
14487 ac_configure_extra_args=
14488
14489 if $ac_cs_silent; then
14490 exec 6>/dev/null
14491 ac_configure_extra_args="$ac_configure_extra_args --silent"
14492 fi
14493
14494 _ACEOF
14495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14496 if \$ac_cs_recheck; then
14497 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14498 shift
14499 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14500 CONFIG_SHELL='$SHELL'
14501 export CONFIG_SHELL
14502 exec "\$@"
14503 fi
14504
14505 _ACEOF
14506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14507 exec 5>>config.log
14508 {
14509 echo
14510 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14511 ## Running $as_me. ##
14512 _ASBOX
14513 $as_echo "$ac_log"
14514 } >&5
14515
14516 _ACEOF
14517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14518 #
14519 # INIT-COMMANDS
14520 #
14521
14522
14523 # The HP-UX ksh and POSIX shell print the target directory to stdout
14524 # if CDPATH is set.
14525 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14526
14527 sed_quote_subst='$sed_quote_subst'
14528 double_quote_subst='$double_quote_subst'
14529 delay_variable_subst='$delay_variable_subst'
14530 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14531 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14532 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14533 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14534 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14535 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14536 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14537 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14538 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14539 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14540 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14541 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14542 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14543 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14544 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14545 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14546 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14547 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14548 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14549 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14550 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14551 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14552 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14553 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14554 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14555 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14556 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14557 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14558 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14559 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14560 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14561 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14562 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14563 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14564 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14565 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14566 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14567 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14568 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14569 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14570 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14571 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14572 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14573 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14574 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14575 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14576 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14577 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14578 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"`'
14579 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14580 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14581 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14582 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14583 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14584 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14585 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14586 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14587 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14588 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14589 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14590 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14591 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14592 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14593 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14594 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14595 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14596 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14597 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14598 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14599 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14600 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14601 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14602 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14603 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14604 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14605 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14606 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14607 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14608 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14609 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14610 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14611 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14612 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14613 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14614 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14615 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14616 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14617 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14618 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14619 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14620 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14621 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14622 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14623 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14624 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14625 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14626 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14627 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14628 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14629 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14630 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14631 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14632 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14633 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14634 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14635 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14636 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14637 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14638 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14639 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14640 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14641 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14642 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14643 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14644 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14645 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14646 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14647 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14648 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14649 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14650
14651 LTCC='$LTCC'
14652 LTCFLAGS='$LTCFLAGS'
14653 compiler='$compiler_DEFAULT'
14654
14655 # A function that is used when there is no print builtin or printf.
14656 func_fallback_echo ()
14657 {
14658 eval 'cat <<_LTECHO_EOF
14659 \$1
14660 _LTECHO_EOF'
14661 }
14662
14663 # Quote evaled strings.
14664 for var in SHELL \
14665 ECHO \
14666 SED \
14667 GREP \
14668 EGREP \
14669 FGREP \
14670 LD \
14671 NM \
14672 LN_S \
14673 lt_SP2NL \
14674 lt_NL2SP \
14675 reload_flag \
14676 OBJDUMP \
14677 deplibs_check_method \
14678 file_magic_cmd \
14679 AR \
14680 AR_FLAGS \
14681 STRIP \
14682 RANLIB \
14683 CC \
14684 CFLAGS \
14685 compiler \
14686 lt_cv_sys_global_symbol_pipe \
14687 lt_cv_sys_global_symbol_to_cdecl \
14688 lt_cv_sys_global_symbol_to_c_name_address \
14689 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14690 lt_prog_compiler_no_builtin_flag \
14691 lt_prog_compiler_wl \
14692 lt_prog_compiler_pic \
14693 lt_prog_compiler_static \
14694 lt_cv_prog_compiler_c_o \
14695 need_locks \
14696 DSYMUTIL \
14697 NMEDIT \
14698 LIPO \
14699 OTOOL \
14700 OTOOL64 \
14701 shrext_cmds \
14702 export_dynamic_flag_spec \
14703 whole_archive_flag_spec \
14704 compiler_needs_object \
14705 with_gnu_ld \
14706 allow_undefined_flag \
14707 no_undefined_flag \
14708 hardcode_libdir_flag_spec \
14709 hardcode_libdir_flag_spec_ld \
14710 hardcode_libdir_separator \
14711 fix_srcfile_path \
14712 exclude_expsyms \
14713 include_expsyms \
14714 file_list_spec \
14715 variables_saved_for_relink \
14716 libname_spec \
14717 library_names_spec \
14718 soname_spec \
14719 install_override_mode \
14720 finish_eval \
14721 old_striplib \
14722 striplib; do
14723 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14724 *[\\\\\\\`\\"\\\$]*)
14725 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14726 ;;
14727 *)
14728 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14729 ;;
14730 esac
14731 done
14732
14733 # Double-quote double-evaled strings.
14734 for var in reload_cmds \
14735 old_postinstall_cmds \
14736 old_postuninstall_cmds \
14737 old_archive_cmds \
14738 extract_expsyms_cmds \
14739 old_archive_from_new_cmds \
14740 old_archive_from_expsyms_cmds \
14741 archive_cmds \
14742 archive_expsym_cmds \
14743 module_cmds \
14744 module_expsym_cmds \
14745 export_symbols_cmds \
14746 prelink_cmds \
14747 postinstall_cmds \
14748 postuninstall_cmds \
14749 finish_cmds \
14750 sys_lib_search_path_spec \
14751 sys_lib_dlsearch_path_spec; do
14752 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14753 *[\\\\\\\`\\"\\\$]*)
14754 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14755 ;;
14756 *)
14757 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14758 ;;
14759 esac
14760 done
14761
14762 ac_aux_dir='$ac_aux_dir'
14763 xsi_shell='$xsi_shell'
14764 lt_shell_append='$lt_shell_append'
14765
14766 # See if we are running on zsh, and set the options which allow our
14767 # commands through without removal of \ escapes INIT.
14768 if test -n "\${ZSH_VERSION+set}" ; then
14769 setopt NO_GLOB_SUBST
14770 fi
14771
14772
14773 PACKAGE='$PACKAGE'
14774 VERSION='$VERSION'
14775 TIMESTAMP='$TIMESTAMP'
14776 RM='$RM'
14777 ofile='$ofile'
14778
14779
14780
14781 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14782
14783 _ACEOF
14784
14785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14786
14787 # Handling of arguments.
14788 for ac_config_target in $ac_config_targets
14789 do
14790 case $ac_config_target in
14791 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14792 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14793 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14794 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
14795 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14796
14797 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14798 esac
14799 done
14800
14801
14802 # If the user did not use the arguments to specify the items to instantiate,
14803 # then the envvar interface is used. Set only those that are not.
14804 # We use the long form for the default assignment because of an extremely
14805 # bizarre bug on SunOS 4.1.3.
14806 if $ac_need_defaults; then
14807 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14808 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14809 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14810 fi
14811
14812 # Have a temporary directory for convenience. Make it in the build tree
14813 # simply because there is no reason against having it here, and in addition,
14814 # creating and moving files from /tmp can sometimes cause problems.
14815 # Hook for its removal unless debugging.
14816 # Note that there is a small window in which the directory will not be cleaned:
14817 # after its creation but before its name has been assigned to `$tmp'.
14818 $debug ||
14819 {
14820 tmp= ac_tmp=
14821 trap 'exit_status=$?
14822 : "${ac_tmp:=$tmp}"
14823 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14824 ' 0
14825 trap 'as_fn_exit 1' 1 2 13 15
14826 }
14827 # Create a (secure) tmp directory for tmp files.
14828
14829 {
14830 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14831 test -d "$tmp"
14832 } ||
14833 {
14834 tmp=./conf$$-$RANDOM
14835 (umask 077 && mkdir "$tmp")
14836 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14837 ac_tmp=$tmp
14838
14839 # Set up the scripts for CONFIG_FILES section.
14840 # No need to generate them if there are no CONFIG_FILES.
14841 # This happens for instance with `./config.status config.h'.
14842 if test -n "$CONFIG_FILES"; then
14843
14844
14845 ac_cr=`echo X | tr X '\015'`
14846 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14847 # But we know of no other shell where ac_cr would be empty at this
14848 # point, so we can use a bashism as a fallback.
14849 if test "x$ac_cr" = x; then
14850 eval ac_cr=\$\'\\r\'
14851 fi
14852 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14853 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14854 ac_cs_awk_cr='\\r'
14855 else
14856 ac_cs_awk_cr=$ac_cr
14857 fi
14858
14859 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14860 _ACEOF
14861
14862
14863 {
14864 echo "cat >conf$$subs.awk <<_ACEOF" &&
14865 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14866 echo "_ACEOF"
14867 } >conf$$subs.sh ||
14868 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14869 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14870 ac_delim='%!_!# '
14871 for ac_last_try in false false false false false :; do
14872 . ./conf$$subs.sh ||
14873 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14874
14875 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14876 if test $ac_delim_n = $ac_delim_num; then
14877 break
14878 elif $ac_last_try; then
14879 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14880 else
14881 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14882 fi
14883 done
14884 rm -f conf$$subs.sh
14885
14886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14887 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14888 _ACEOF
14889 sed -n '
14890 h
14891 s/^/S["/; s/!.*/"]=/
14892 p
14893 g
14894 s/^[^!]*!//
14895 :repl
14896 t repl
14897 s/'"$ac_delim"'$//
14898 t delim
14899 :nl
14900 h
14901 s/\(.\{148\}\)..*/\1/
14902 t more1
14903 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14904 p
14905 n
14906 b repl
14907 :more1
14908 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14909 p
14910 g
14911 s/.\{148\}//
14912 t nl
14913 :delim
14914 h
14915 s/\(.\{148\}\)..*/\1/
14916 t more2
14917 s/["\\]/\\&/g; s/^/"/; s/$/"/
14918 p
14919 b
14920 :more2
14921 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14922 p
14923 g
14924 s/.\{148\}//
14925 t delim
14926 ' <conf$$subs.awk | sed '
14927 /^[^""]/{
14928 N
14929 s/\n//
14930 }
14931 ' >>$CONFIG_STATUS || ac_write_fail=1
14932 rm -f conf$$subs.awk
14933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14934 _ACAWK
14935 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14936 for (key in S) S_is_set[key] = 1
14937 FS = "\a"
14938
14939 }
14940 {
14941 line = $ 0
14942 nfields = split(line, field, "@")
14943 substed = 0
14944 len = length(field[1])
14945 for (i = 2; i < nfields; i++) {
14946 key = field[i]
14947 keylen = length(key)
14948 if (S_is_set[key]) {
14949 value = S[key]
14950 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14951 len += length(value) + length(field[++i])
14952 substed = 1
14953 } else
14954 len += 1 + keylen
14955 }
14956
14957 print line
14958 }
14959
14960 _ACAWK
14961 _ACEOF
14962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14963 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14964 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14965 else
14966 cat
14967 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14968 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14969 _ACEOF
14970
14971 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14972 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14973 # trailing colons and then remove the whole line if VPATH becomes empty
14974 # (actually we leave an empty line to preserve line numbers).
14975 if test "x$srcdir" = x.; then
14976 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14977 h
14978 s///
14979 s/^/:/
14980 s/[ ]*$/:/
14981 s/:\$(srcdir):/:/g
14982 s/:\${srcdir}:/:/g
14983 s/:@srcdir@:/:/g
14984 s/^:*//
14985 s/:*$//
14986 x
14987 s/\(=[ ]*\).*/\1/
14988 G
14989 s/\n//
14990 s/^[^=]*=[ ]*$//
14991 }'
14992 fi
14993
14994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14995 fi # test -n "$CONFIG_FILES"
14996
14997 # Set up the scripts for CONFIG_HEADERS section.
14998 # No need to generate them if there are no CONFIG_HEADERS.
14999 # This happens for instance with `./config.status Makefile'.
15000 if test -n "$CONFIG_HEADERS"; then
15001 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15002 BEGIN {
15003 _ACEOF
15004
15005 # Transform confdefs.h into an awk script `defines.awk', embedded as
15006 # here-document in config.status, that substitutes the proper values into
15007 # config.h.in to produce config.h.
15008
15009 # Create a delimiter string that does not exist in confdefs.h, to ease
15010 # handling of long lines.
15011 ac_delim='%!_!# '
15012 for ac_last_try in false false :; do
15013 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15014 if test -z "$ac_tt"; then
15015 break
15016 elif $ac_last_try; then
15017 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15018 else
15019 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15020 fi
15021 done
15022
15023 # For the awk script, D is an array of macro values keyed by name,
15024 # likewise P contains macro parameters if any. Preserve backslash
15025 # newline sequences.
15026
15027 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15028 sed -n '
15029 s/.\{148\}/&'"$ac_delim"'/g
15030 t rset
15031 :rset
15032 s/^[ ]*#[ ]*define[ ][ ]*/ /
15033 t def
15034 d
15035 :def
15036 s/\\$//
15037 t bsnl
15038 s/["\\]/\\&/g
15039 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15040 D["\1"]=" \3"/p
15041 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15042 d
15043 :bsnl
15044 s/["\\]/\\&/g
15045 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15046 D["\1"]=" \3\\\\\\n"\\/p
15047 t cont
15048 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15049 t cont
15050 d
15051 :cont
15052 n
15053 s/.\{148\}/&'"$ac_delim"'/g
15054 t clear
15055 :clear
15056 s/\\$//
15057 t bsnlc
15058 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15059 d
15060 :bsnlc
15061 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15062 b cont
15063 ' <confdefs.h | sed '
15064 s/'"$ac_delim"'/"\\\
15065 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15066
15067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15068 for (key in D) D_is_set[key] = 1
15069 FS = "\a"
15070 }
15071 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15072 line = \$ 0
15073 split(line, arg, " ")
15074 if (arg[1] == "#") {
15075 defundef = arg[2]
15076 mac1 = arg[3]
15077 } else {
15078 defundef = substr(arg[1], 2)
15079 mac1 = arg[2]
15080 }
15081 split(mac1, mac2, "(") #)
15082 macro = mac2[1]
15083 prefix = substr(line, 1, index(line, defundef) - 1)
15084 if (D_is_set[macro]) {
15085 # Preserve the white space surrounding the "#".
15086 print prefix "define", macro P[macro] D[macro]
15087 next
15088 } else {
15089 # Replace #undef with comments. This is necessary, for example,
15090 # in the case of _POSIX_SOURCE, which is predefined and required
15091 # on some systems where configure will not decide to define it.
15092 if (defundef == "undef") {
15093 print "/*", prefix defundef, macro, "*/"
15094 next
15095 }
15096 }
15097 }
15098 { print }
15099 _ACAWK
15100 _ACEOF
15101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15102 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15103 fi # test -n "$CONFIG_HEADERS"
15104
15105
15106 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15107 shift
15108 for ac_tag
15109 do
15110 case $ac_tag in
15111 :[FHLC]) ac_mode=$ac_tag; continue;;
15112 esac
15113 case $ac_mode$ac_tag in
15114 :[FHL]*:*);;
15115 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15116 :[FH]-) ac_tag=-:-;;
15117 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15118 esac
15119 ac_save_IFS=$IFS
15120 IFS=:
15121 set x $ac_tag
15122 IFS=$ac_save_IFS
15123 shift
15124 ac_file=$1
15125 shift
15126
15127 case $ac_mode in
15128 :L) ac_source=$1;;
15129 :[FH])
15130 ac_file_inputs=
15131 for ac_f
15132 do
15133 case $ac_f in
15134 -) ac_f="$ac_tmp/stdin";;
15135 *) # Look for the file first in the build tree, then in the source tree
15136 # (if the path is not absolute). The absolute path cannot be DOS-style,
15137 # because $ac_f cannot contain `:'.
15138 test -f "$ac_f" ||
15139 case $ac_f in
15140 [\\/$]*) false;;
15141 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15142 esac ||
15143 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15144 esac
15145 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15146 as_fn_append ac_file_inputs " '$ac_f'"
15147 done
15148
15149 # Let's still pretend it is `configure' which instantiates (i.e., don't
15150 # use $as_me), people would be surprised to read:
15151 # /* config.h. Generated by config.status. */
15152 configure_input='Generated from '`
15153 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15154 `' by configure.'
15155 if test x"$ac_file" != x-; then
15156 configure_input="$ac_file. $configure_input"
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15158 $as_echo "$as_me: creating $ac_file" >&6;}
15159 fi
15160 # Neutralize special characters interpreted by sed in replacement strings.
15161 case $configure_input in #(
15162 *\&* | *\|* | *\\* )
15163 ac_sed_conf_input=`$as_echo "$configure_input" |
15164 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15165 *) ac_sed_conf_input=$configure_input;;
15166 esac
15167
15168 case $ac_tag in
15169 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15170 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15171 esac
15172 ;;
15173 esac
15174
15175 ac_dir=`$as_dirname -- "$ac_file" ||
15176 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15177 X"$ac_file" : 'X\(//\)[^/]' \| \
15178 X"$ac_file" : 'X\(//\)$' \| \
15179 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15180 $as_echo X"$ac_file" |
15181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15182 s//\1/
15183 q
15184 }
15185 /^X\(\/\/\)[^/].*/{
15186 s//\1/
15187 q
15188 }
15189 /^X\(\/\/\)$/{
15190 s//\1/
15191 q
15192 }
15193 /^X\(\/\).*/{
15194 s//\1/
15195 q
15196 }
15197 s/.*/./; q'`
15198 as_dir="$ac_dir"; as_fn_mkdir_p
15199 ac_builddir=.
15200
15201 case "$ac_dir" in
15202 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15203 *)
15204 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15205 # A ".." for each directory in $ac_dir_suffix.
15206 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15207 case $ac_top_builddir_sub in
15208 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15209 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15210 esac ;;
15211 esac
15212 ac_abs_top_builddir=$ac_pwd
15213 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15214 # for backward compatibility:
15215 ac_top_builddir=$ac_top_build_prefix
15216
15217 case $srcdir in
15218 .) # We are building in place.
15219 ac_srcdir=.
15220 ac_top_srcdir=$ac_top_builddir_sub
15221 ac_abs_top_srcdir=$ac_pwd ;;
15222 [\\/]* | ?:[\\/]* ) # Absolute name.
15223 ac_srcdir=$srcdir$ac_dir_suffix;
15224 ac_top_srcdir=$srcdir
15225 ac_abs_top_srcdir=$srcdir ;;
15226 *) # Relative name.
15227 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15228 ac_top_srcdir=$ac_top_build_prefix$srcdir
15229 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15230 esac
15231 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15232
15233
15234 case $ac_mode in
15235 :F)
15236 #
15237 # CONFIG_FILE
15238 #
15239
15240 case $INSTALL in
15241 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15242 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15243 esac
15244 ac_MKDIR_P=$MKDIR_P
15245 case $MKDIR_P in
15246 [\\/$]* | ?:[\\/]* ) ;;
15247 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15248 esac
15249 _ACEOF
15250
15251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15252 # If the template does not know about datarootdir, expand it.
15253 # FIXME: This hack should be removed a few years after 2.60.
15254 ac_datarootdir_hack=; ac_datarootdir_seen=
15255 ac_sed_dataroot='
15256 /datarootdir/ {
15257 p
15258 q
15259 }
15260 /@datadir@/p
15261 /@docdir@/p
15262 /@infodir@/p
15263 /@localedir@/p
15264 /@mandir@/p'
15265 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15266 *datarootdir*) ac_datarootdir_seen=yes;;
15267 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15269 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15270 _ACEOF
15271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15272 ac_datarootdir_hack='
15273 s&@datadir@&$datadir&g
15274 s&@docdir@&$docdir&g
15275 s&@infodir@&$infodir&g
15276 s&@localedir@&$localedir&g
15277 s&@mandir@&$mandir&g
15278 s&\\\${datarootdir}&$datarootdir&g' ;;
15279 esac
15280 _ACEOF
15281
15282 # Neutralize VPATH when `$srcdir' = `.'.
15283 # Shell code in configure.ac might set extrasub.
15284 # FIXME: do we really want to maintain this feature?
15285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15286 ac_sed_extra="$ac_vpsub
15287 $extrasub
15288 _ACEOF
15289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15290 :t
15291 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15292 s|@configure_input@|$ac_sed_conf_input|;t t
15293 s&@top_builddir@&$ac_top_builddir_sub&;t t
15294 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15295 s&@srcdir@&$ac_srcdir&;t t
15296 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15297 s&@top_srcdir@&$ac_top_srcdir&;t t
15298 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15299 s&@builddir@&$ac_builddir&;t t
15300 s&@abs_builddir@&$ac_abs_builddir&;t t
15301 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15302 s&@INSTALL@&$ac_INSTALL&;t t
15303 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15304 $ac_datarootdir_hack
15305 "
15306 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15307 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15308
15309 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15310 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15311 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15312 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15314 which seems to be undefined. Please make sure it is defined" >&5
15315 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15316 which seems to be undefined. Please make sure it is defined" >&2;}
15317
15318 rm -f "$ac_tmp/stdin"
15319 case $ac_file in
15320 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15321 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15322 esac \
15323 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15324 ;;
15325 :H)
15326 #
15327 # CONFIG_HEADER
15328 #
15329 if test x"$ac_file" != x-; then
15330 {
15331 $as_echo "/* $configure_input */" \
15332 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15333 } >"$ac_tmp/config.h" \
15334 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15335 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15337 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15338 else
15339 rm -f "$ac_file"
15340 mv "$ac_tmp/config.h" "$ac_file" \
15341 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15342 fi
15343 else
15344 $as_echo "/* $configure_input */" \
15345 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15346 || as_fn_error $? "could not create -" "$LINENO" 5
15347 fi
15348 # Compute "$ac_file"'s index in $config_headers.
15349 _am_arg="$ac_file"
15350 _am_stamp_count=1
15351 for _am_header in $config_headers :; do
15352 case $_am_header in
15353 $_am_arg | $_am_arg:* )
15354 break ;;
15355 * )
15356 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15357 esac
15358 done
15359 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15360 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15361 X"$_am_arg" : 'X\(//\)[^/]' \| \
15362 X"$_am_arg" : 'X\(//\)$' \| \
15363 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15364 $as_echo X"$_am_arg" |
15365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15366 s//\1/
15367 q
15368 }
15369 /^X\(\/\/\)[^/].*/{
15370 s//\1/
15371 q
15372 }
15373 /^X\(\/\/\)$/{
15374 s//\1/
15375 q
15376 }
15377 /^X\(\/\).*/{
15378 s//\1/
15379 q
15380 }
15381 s/.*/./; q'`/stamp-h$_am_stamp_count
15382 ;;
15383
15384 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15385 $as_echo "$as_me: executing $ac_file commands" >&6;}
15386 ;;
15387 esac
15388
15389
15390 case $ac_file$ac_mode in
15391 "libtool":C)
15392
15393 # See if we are running on zsh, and set the options which allow our
15394 # commands through without removal of \ escapes.
15395 if test -n "${ZSH_VERSION+set}" ; then
15396 setopt NO_GLOB_SUBST
15397 fi
15398
15399 cfgfile="${ofile}T"
15400 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15401 $RM "$cfgfile"
15402
15403 cat <<_LT_EOF >> "$cfgfile"
15404 #! $SHELL
15405
15406 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15407 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15408 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15409 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15410 #
15411 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15412 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15413 # Written by Gordon Matzigkeit, 1996
15414 #
15415 # This file is part of GNU Libtool.
15416 #
15417 # GNU Libtool is free software; you can redistribute it and/or
15418 # modify it under the terms of the GNU General Public License as
15419 # published by the Free Software Foundation; either version 2 of
15420 # the License, or (at your option) any later version.
15421 #
15422 # As a special exception to the GNU General Public License,
15423 # if you distribute this file as part of a program or library that
15424 # is built using GNU Libtool, you may include this file under the
15425 # same distribution terms that you use for the rest of that program.
15426 #
15427 # GNU Libtool is distributed in the hope that it will be useful,
15428 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15429 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15430 # GNU General Public License for more details.
15431 #
15432 # You should have received a copy of the GNU General Public License
15433 # along with GNU Libtool; see the file COPYING. If not, a copy
15434 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15435 # obtained by writing to the Free Software Foundation, Inc.,
15436 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15437
15438
15439 # The names of the tagged configurations supported by this script.
15440 available_tags=""
15441
15442 # ### BEGIN LIBTOOL CONFIG
15443
15444 # Which release of libtool.m4 was used?
15445 macro_version=$macro_version
15446 macro_revision=$macro_revision
15447
15448 # Whether or not to build shared libraries.
15449 build_libtool_libs=$enable_shared
15450
15451 # Whether or not to build static libraries.
15452 build_old_libs=$enable_static
15453
15454 # What type of objects to build.
15455 pic_mode=$pic_mode
15456
15457 # Whether or not to optimize for fast installation.
15458 fast_install=$enable_fast_install
15459
15460 # Shell to use when invoking shell scripts.
15461 SHELL=$lt_SHELL
15462
15463 # An echo program that protects backslashes.
15464 ECHO=$lt_ECHO
15465
15466 # The host system.
15467 host_alias=$host_alias
15468 host=$host
15469 host_os=$host_os
15470
15471 # The build system.
15472 build_alias=$build_alias
15473 build=$build
15474 build_os=$build_os
15475
15476 # A sed program that does not truncate output.
15477 SED=$lt_SED
15478
15479 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15480 Xsed="\$SED -e 1s/^X//"
15481
15482 # A grep program that handles long lines.
15483 GREP=$lt_GREP
15484
15485 # An ERE matcher.
15486 EGREP=$lt_EGREP
15487
15488 # A literal string matcher.
15489 FGREP=$lt_FGREP
15490
15491 # A BSD- or MS-compatible name lister.
15492 NM=$lt_NM
15493
15494 # Whether we need soft or hard links.
15495 LN_S=$lt_LN_S
15496
15497 # What is the maximum length of a command?
15498 max_cmd_len=$max_cmd_len
15499
15500 # Object file suffix (normally "o").
15501 objext=$ac_objext
15502
15503 # Executable file suffix (normally "").
15504 exeext=$exeext
15505
15506 # whether the shell understands "unset".
15507 lt_unset=$lt_unset
15508
15509 # turn spaces into newlines.
15510 SP2NL=$lt_lt_SP2NL
15511
15512 # turn newlines into spaces.
15513 NL2SP=$lt_lt_NL2SP
15514
15515 # An object symbol dumper.
15516 OBJDUMP=$lt_OBJDUMP
15517
15518 # Method to check whether dependent libraries are shared objects.
15519 deplibs_check_method=$lt_deplibs_check_method
15520
15521 # Command to use when deplibs_check_method == "file_magic".
15522 file_magic_cmd=$lt_file_magic_cmd
15523
15524 # The archiver.
15525 AR=$lt_AR
15526 AR_FLAGS=$lt_AR_FLAGS
15527
15528 # A symbol stripping program.
15529 STRIP=$lt_STRIP
15530
15531 # Commands used to install an old-style archive.
15532 RANLIB=$lt_RANLIB
15533 old_postinstall_cmds=$lt_old_postinstall_cmds
15534 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15535
15536 # Whether to use a lock for old archive extraction.
15537 lock_old_archive_extraction=$lock_old_archive_extraction
15538
15539 # A C compiler.
15540 LTCC=$lt_CC
15541
15542 # LTCC compiler flags.
15543 LTCFLAGS=$lt_CFLAGS
15544
15545 # Take the output of nm and produce a listing of raw symbols and C names.
15546 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15547
15548 # Transform the output of nm in a proper C declaration.
15549 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15550
15551 # Transform the output of nm in a C name address pair.
15552 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15553
15554 # Transform the output of nm in a C name address pair when lib prefix is needed.
15555 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15556
15557 # The name of the directory that contains temporary libtool files.
15558 objdir=$objdir
15559
15560 # Used to examine libraries when file_magic_cmd begins with "file".
15561 MAGIC_CMD=$MAGIC_CMD
15562
15563 # Must we lock files when doing compilation?
15564 need_locks=$lt_need_locks
15565
15566 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15567 DSYMUTIL=$lt_DSYMUTIL
15568
15569 # Tool to change global to local symbols on Mac OS X.
15570 NMEDIT=$lt_NMEDIT
15571
15572 # Tool to manipulate fat objects and archives on Mac OS X.
15573 LIPO=$lt_LIPO
15574
15575 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15576 OTOOL=$lt_OTOOL
15577
15578 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15579 OTOOL64=$lt_OTOOL64
15580
15581 # Old archive suffix (normally "a").
15582 libext=$libext
15583
15584 # Shared library suffix (normally ".so").
15585 shrext_cmds=$lt_shrext_cmds
15586
15587 # The commands to extract the exported symbol list from a shared archive.
15588 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15589
15590 # Variables whose values should be saved in libtool wrapper scripts and
15591 # restored at link time.
15592 variables_saved_for_relink=$lt_variables_saved_for_relink
15593
15594 # Do we need the "lib" prefix for modules?
15595 need_lib_prefix=$need_lib_prefix
15596
15597 # Do we need a version for libraries?
15598 need_version=$need_version
15599
15600 # Library versioning type.
15601 version_type=$version_type
15602
15603 # Shared library runtime path variable.
15604 runpath_var=$runpath_var
15605
15606 # Shared library path variable.
15607 shlibpath_var=$shlibpath_var
15608
15609 # Is shlibpath searched before the hard-coded library search path?
15610 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15611
15612 # Format of library name prefix.
15613 libname_spec=$lt_libname_spec
15614
15615 # List of archive names. First name is the real one, the rest are links.
15616 # The last name is the one that the linker finds with -lNAME
15617 library_names_spec=$lt_library_names_spec
15618
15619 # The coded name of the library, if different from the real name.
15620 soname_spec=$lt_soname_spec
15621
15622 # Permission mode override for installation of shared libraries.
15623 install_override_mode=$lt_install_override_mode
15624
15625 # Command to use after installation of a shared archive.
15626 postinstall_cmds=$lt_postinstall_cmds
15627
15628 # Command to use after uninstallation of a shared archive.
15629 postuninstall_cmds=$lt_postuninstall_cmds
15630
15631 # Commands used to finish a libtool library installation in a directory.
15632 finish_cmds=$lt_finish_cmds
15633
15634 # As "finish_cmds", except a single script fragment to be evaled but
15635 # not shown.
15636 finish_eval=$lt_finish_eval
15637
15638 # Whether we should hardcode library paths into libraries.
15639 hardcode_into_libs=$hardcode_into_libs
15640
15641 # Compile-time system search path for libraries.
15642 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15643
15644 # Run-time system search path for libraries.
15645 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15646
15647 # Whether dlopen is supported.
15648 dlopen_support=$enable_dlopen
15649
15650 # Whether dlopen of programs is supported.
15651 dlopen_self=$enable_dlopen_self
15652
15653 # Whether dlopen of statically linked programs is supported.
15654 dlopen_self_static=$enable_dlopen_self_static
15655
15656 # Commands to strip libraries.
15657 old_striplib=$lt_old_striplib
15658 striplib=$lt_striplib
15659
15660
15661 # The linker used to build libraries.
15662 LD=$lt_LD
15663
15664 # How to create reloadable object files.
15665 reload_flag=$lt_reload_flag
15666 reload_cmds=$lt_reload_cmds
15667
15668 # Commands used to build an old-style archive.
15669 old_archive_cmds=$lt_old_archive_cmds
15670
15671 # A language specific compiler.
15672 CC=$lt_compiler
15673
15674 # Is the compiler the GNU compiler?
15675 with_gcc=$GCC
15676
15677 # Compiler flag to turn off builtin functions.
15678 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15679
15680 # How to pass a linker flag through the compiler.
15681 wl=$lt_lt_prog_compiler_wl
15682
15683 # Additional compiler flags for building library objects.
15684 pic_flag=$lt_lt_prog_compiler_pic
15685
15686 # Compiler flag to prevent dynamic linking.
15687 link_static_flag=$lt_lt_prog_compiler_static
15688
15689 # Does compiler simultaneously support -c and -o options?
15690 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15691
15692 # Whether or not to add -lc for building shared libraries.
15693 build_libtool_need_lc=$archive_cmds_need_lc
15694
15695 # Whether or not to disallow shared libs when runtime libs are static.
15696 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15697
15698 # Compiler flag to allow reflexive dlopens.
15699 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15700
15701 # Compiler flag to generate shared objects directly from archives.
15702 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15703
15704 # Whether the compiler copes with passing no objects directly.
15705 compiler_needs_object=$lt_compiler_needs_object
15706
15707 # Create an old-style archive from a shared archive.
15708 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15709
15710 # Create a temporary old-style archive to link instead of a shared archive.
15711 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15712
15713 # Commands used to build a shared archive.
15714 archive_cmds=$lt_archive_cmds
15715 archive_expsym_cmds=$lt_archive_expsym_cmds
15716
15717 # Commands used to build a loadable module if different from building
15718 # a shared archive.
15719 module_cmds=$lt_module_cmds
15720 module_expsym_cmds=$lt_module_expsym_cmds
15721
15722 # Whether we are building with GNU ld or not.
15723 with_gnu_ld=$lt_with_gnu_ld
15724
15725 # Flag that allows shared libraries with undefined symbols to be built.
15726 allow_undefined_flag=$lt_allow_undefined_flag
15727
15728 # Flag that enforces no undefined symbols.
15729 no_undefined_flag=$lt_no_undefined_flag
15730
15731 # Flag to hardcode \$libdir into a binary during linking.
15732 # This must work even if \$libdir does not exist
15733 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15734
15735 # If ld is used when linking, flag to hardcode \$libdir into a binary
15736 # during linking. This must work even if \$libdir does not exist.
15737 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15738
15739 # Whether we need a single "-rpath" flag with a separated argument.
15740 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15741
15742 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15743 # DIR into the resulting binary.
15744 hardcode_direct=$hardcode_direct
15745
15746 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15747 # DIR into the resulting binary and the resulting library dependency is
15748 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15749 # library is relocated.
15750 hardcode_direct_absolute=$hardcode_direct_absolute
15751
15752 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15753 # into the resulting binary.
15754 hardcode_minus_L=$hardcode_minus_L
15755
15756 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15757 # into the resulting binary.
15758 hardcode_shlibpath_var=$hardcode_shlibpath_var
15759
15760 # Set to "yes" if building a shared library automatically hardcodes DIR
15761 # into the library and all subsequent libraries and executables linked
15762 # against it.
15763 hardcode_automatic=$hardcode_automatic
15764
15765 # Set to yes if linker adds runtime paths of dependent libraries
15766 # to runtime path list.
15767 inherit_rpath=$inherit_rpath
15768
15769 # Whether libtool must link a program against all its dependency libraries.
15770 link_all_deplibs=$link_all_deplibs
15771
15772 # Fix the shell variable \$srcfile for the compiler.
15773 fix_srcfile_path=$lt_fix_srcfile_path
15774
15775 # Set to "yes" if exported symbols are required.
15776 always_export_symbols=$always_export_symbols
15777
15778 # The commands to list exported symbols.
15779 export_symbols_cmds=$lt_export_symbols_cmds
15780
15781 # Symbols that should not be listed in the preloaded symbols.
15782 exclude_expsyms=$lt_exclude_expsyms
15783
15784 # Symbols that must always be exported.
15785 include_expsyms=$lt_include_expsyms
15786
15787 # Commands necessary for linking programs (against libraries) with templates.
15788 prelink_cmds=$lt_prelink_cmds
15789
15790 # Specify filename containing input files.
15791 file_list_spec=$lt_file_list_spec
15792
15793 # How to hardcode a shared library path into an executable.
15794 hardcode_action=$hardcode_action
15795
15796 # ### END LIBTOOL CONFIG
15797
15798 _LT_EOF
15799
15800 case $host_os in
15801 aix3*)
15802 cat <<\_LT_EOF >> "$cfgfile"
15803 # AIX sometimes has problems with the GCC collect2 program. For some
15804 # reason, if we set the COLLECT_NAMES environment variable, the problems
15805 # vanish in a puff of smoke.
15806 if test "X${COLLECT_NAMES+set}" != Xset; then
15807 COLLECT_NAMES=
15808 export COLLECT_NAMES
15809 fi
15810 _LT_EOF
15811 ;;
15812 esac
15813
15814
15815 ltmain="$ac_aux_dir/ltmain.sh"
15816
15817
15818 # We use sed instead of cat because bash on DJGPP gets confused if
15819 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15820 # text mode, it properly converts lines to CR/LF. This bash problem
15821 # is reportedly fixed, but why not run on old versions too?
15822 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15823 || (rm -f "$cfgfile"; exit 1)
15824
15825 case $xsi_shell in
15826 yes)
15827 cat << \_LT_EOF >> "$cfgfile"
15828
15829 # func_dirname file append nondir_replacement
15830 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15831 # otherwise set result to NONDIR_REPLACEMENT.
15832 func_dirname ()
15833 {
15834 case ${1} in
15835 */*) func_dirname_result="${1%/*}${2}" ;;
15836 * ) func_dirname_result="${3}" ;;
15837 esac
15838 }
15839
15840 # func_basename file
15841 func_basename ()
15842 {
15843 func_basename_result="${1##*/}"
15844 }
15845
15846 # func_dirname_and_basename file append nondir_replacement
15847 # perform func_basename and func_dirname in a single function
15848 # call:
15849 # dirname: Compute the dirname of FILE. If nonempty,
15850 # add APPEND to the result, otherwise set result
15851 # to NONDIR_REPLACEMENT.
15852 # value returned in "$func_dirname_result"
15853 # basename: Compute filename of FILE.
15854 # value retuned in "$func_basename_result"
15855 # Implementation must be kept synchronized with func_dirname
15856 # and func_basename. For efficiency, we do not delegate to
15857 # those functions but instead duplicate the functionality here.
15858 func_dirname_and_basename ()
15859 {
15860 case ${1} in
15861 */*) func_dirname_result="${1%/*}${2}" ;;
15862 * ) func_dirname_result="${3}" ;;
15863 esac
15864 func_basename_result="${1##*/}"
15865 }
15866
15867 # func_stripname prefix suffix name
15868 # strip PREFIX and SUFFIX off of NAME.
15869 # PREFIX and SUFFIX must not contain globbing or regex special
15870 # characters, hashes, percent signs, but SUFFIX may contain a leading
15871 # dot (in which case that matches only a dot).
15872 func_stripname ()
15873 {
15874 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15875 # positional parameters, so assign one to ordinary parameter first.
15876 func_stripname_result=${3}
15877 func_stripname_result=${func_stripname_result#"${1}"}
15878 func_stripname_result=${func_stripname_result%"${2}"}
15879 }
15880
15881 # func_opt_split
15882 func_opt_split ()
15883 {
15884 func_opt_split_opt=${1%%=*}
15885 func_opt_split_arg=${1#*=}
15886 }
15887
15888 # func_lo2o object
15889 func_lo2o ()
15890 {
15891 case ${1} in
15892 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15893 *) func_lo2o_result=${1} ;;
15894 esac
15895 }
15896
15897 # func_xform libobj-or-source
15898 func_xform ()
15899 {
15900 func_xform_result=${1%.*}.lo
15901 }
15902
15903 # func_arith arithmetic-term...
15904 func_arith ()
15905 {
15906 func_arith_result=$(( $* ))
15907 }
15908
15909 # func_len string
15910 # STRING may not start with a hyphen.
15911 func_len ()
15912 {
15913 func_len_result=${#1}
15914 }
15915
15916 _LT_EOF
15917 ;;
15918 *) # Bourne compatible functions.
15919 cat << \_LT_EOF >> "$cfgfile"
15920
15921 # func_dirname file append nondir_replacement
15922 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15923 # otherwise set result to NONDIR_REPLACEMENT.
15924 func_dirname ()
15925 {
15926 # Extract subdirectory from the argument.
15927 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15928 if test "X$func_dirname_result" = "X${1}"; then
15929 func_dirname_result="${3}"
15930 else
15931 func_dirname_result="$func_dirname_result${2}"
15932 fi
15933 }
15934
15935 # func_basename file
15936 func_basename ()
15937 {
15938 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15939 }
15940
15941
15942 # func_stripname prefix suffix name
15943 # strip PREFIX and SUFFIX off of NAME.
15944 # PREFIX and SUFFIX must not contain globbing or regex special
15945 # characters, hashes, percent signs, but SUFFIX may contain a leading
15946 # dot (in which case that matches only a dot).
15947 # func_strip_suffix prefix name
15948 func_stripname ()
15949 {
15950 case ${2} in
15951 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15952 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15953 esac
15954 }
15955
15956 # sed scripts:
15957 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15958 my_sed_long_arg='1s/^-[^=]*=//'
15959
15960 # func_opt_split
15961 func_opt_split ()
15962 {
15963 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15964 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15965 }
15966
15967 # func_lo2o object
15968 func_lo2o ()
15969 {
15970 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15971 }
15972
15973 # func_xform libobj-or-source
15974 func_xform ()
15975 {
15976 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15977 }
15978
15979 # func_arith arithmetic-term...
15980 func_arith ()
15981 {
15982 func_arith_result=`expr "$@"`
15983 }
15984
15985 # func_len string
15986 # STRING may not start with a hyphen.
15987 func_len ()
15988 {
15989 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15990 }
15991
15992 _LT_EOF
15993 esac
15994
15995 case $lt_shell_append in
15996 yes)
15997 cat << \_LT_EOF >> "$cfgfile"
15998
15999 # func_append var value
16000 # Append VALUE to the end of shell variable VAR.
16001 func_append ()
16002 {
16003 eval "$1+=\$2"
16004 }
16005 _LT_EOF
16006 ;;
16007 *)
16008 cat << \_LT_EOF >> "$cfgfile"
16009
16010 # func_append var value
16011 # Append VALUE to the end of shell variable VAR.
16012 func_append ()
16013 {
16014 eval "$1=\$$1\$2"
16015 }
16016
16017 _LT_EOF
16018 ;;
16019 esac
16020
16021
16022 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16023 || (rm -f "$cfgfile"; exit 1)
16024
16025 mv -f "$cfgfile" "$ofile" ||
16026 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16027 chmod +x "$ofile"
16028
16029 ;;
16030 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16031 # Older Autoconf quotes --file arguments for eval, but not when files
16032 # are listed without --file. Let's play safe and only enable the eval
16033 # if we detect the quoting.
16034 case $CONFIG_FILES in
16035 *\'*) eval set x "$CONFIG_FILES" ;;
16036 *) set x $CONFIG_FILES ;;
16037 esac
16038 shift
16039 for mf
16040 do
16041 # Strip MF so we end up with the name of the file.
16042 mf=`echo "$mf" | sed -e 's/:.*$//'`
16043 # Check whether this is an Automake generated Makefile or not.
16044 # We used to match only the files named 'Makefile.in', but
16045 # some people rename them; so instead we look at the file content.
16046 # Grep'ing the first line is not enough: some people post-process
16047 # each Makefile.in and add a new line on top of each file to say so.
16048 # Grep'ing the whole file is not good either: AIX grep has a line
16049 # limit of 2048, but all sed's we know have understand at least 4000.
16050 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16051 dirpart=`$as_dirname -- "$mf" ||
16052 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16053 X"$mf" : 'X\(//\)[^/]' \| \
16054 X"$mf" : 'X\(//\)$' \| \
16055 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16056 $as_echo X"$mf" |
16057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16058 s//\1/
16059 q
16060 }
16061 /^X\(\/\/\)[^/].*/{
16062 s//\1/
16063 q
16064 }
16065 /^X\(\/\/\)$/{
16066 s//\1/
16067 q
16068 }
16069 /^X\(\/\).*/{
16070 s//\1/
16071 q
16072 }
16073 s/.*/./; q'`
16074 else
16075 continue
16076 fi
16077 # Extract the definition of DEPDIR, am__include, and am__quote
16078 # from the Makefile without running 'make'.
16079 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16080 test -z "$DEPDIR" && continue
16081 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16082 test -z "$am__include" && continue
16083 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16084 # Find all dependency output files, they are included files with
16085 # $(DEPDIR) in their names. We invoke sed twice because it is the
16086 # simplest approach to changing $(DEPDIR) to its actual value in the
16087 # expansion.
16088 for file in `sed -n "
16089 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16090 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16091 # Make sure the directory exists.
16092 test -f "$dirpart/$file" && continue
16093 fdir=`$as_dirname -- "$file" ||
16094 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16095 X"$file" : 'X\(//\)[^/]' \| \
16096 X"$file" : 'X\(//\)$' \| \
16097 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16098 $as_echo X"$file" |
16099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16100 s//\1/
16101 q
16102 }
16103 /^X\(\/\/\)[^/].*/{
16104 s//\1/
16105 q
16106 }
16107 /^X\(\/\/\)$/{
16108 s//\1/
16109 q
16110 }
16111 /^X\(\/\).*/{
16112 s//\1/
16113 q
16114 }
16115 s/.*/./; q'`
16116 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16117 # echo "creating $dirpart/$file"
16118 echo '# dummy' > "$dirpart/$file"
16119 done
16120 done
16121 }
16122 ;;
16123
16124 esac
16125 done # for ac_tag
16126
16127
16128 as_fn_exit 0
16129 _ACEOF
16130 ac_clean_files=$ac_clean_files_save
16131
16132 test $ac_write_fail = 0 ||
16133 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16134
16135
16136 # configure is writing to config.log, and then calls config.status.
16137 # config.status does its own redirection, appending to config.log.
16138 # Unfortunately, on DOS this fails, as config.log is still kept open
16139 # by configure, so config.status won't be able to write to it; its
16140 # output is simply discarded. So we exec the FD to /dev/null,
16141 # effectively closing config.log, so it can be properly (re)opened and
16142 # appended to by config.status. When coming back to configure, we
16143 # need to make the FD available again.
16144 if test "$no_create" != yes; then
16145 ac_cs_success=:
16146 ac_config_status_args=
16147 test "$silent" = yes &&
16148 ac_config_status_args="$ac_config_status_args --quiet"
16149 exec 5>/dev/null
16150 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16151 exec 5>>config.log
16152 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16153 # would make configure fail if this is the last instruction.
16154 $ac_cs_success || as_fn_exit 1
16155 fi
16156
16157 #
16158 # CONFIG_SUBDIRS section.
16159 #
16160 if test "$no_recursion" != yes; then
16161
16162 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16163 # so they do not pile up.
16164 ac_sub_configure_args=
16165 ac_prev=
16166 eval "set x $ac_configure_args"
16167 shift
16168 for ac_arg
16169 do
16170 if test -n "$ac_prev"; then
16171 ac_prev=
16172 continue
16173 fi
16174 case $ac_arg in
16175 -cache-file | --cache-file | --cache-fil | --cache-fi \
16176 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16177 ac_prev=cache_file ;;
16178 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16179 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16180 | --c=*)
16181 ;;
16182 --config-cache | -C)
16183 ;;
16184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16185 ac_prev=srcdir ;;
16186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16187 ;;
16188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16189 ac_prev=prefix ;;
16190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16191 ;;
16192 --disable-option-checking)
16193 ;;
16194 *)
16195 case $ac_arg in
16196 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16197 esac
16198 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16199 esac
16200 done
16201
16202 # Always prepend --prefix to ensure using the same prefix
16203 # in subdir configurations.
16204 ac_arg="--prefix=$prefix"
16205 case $ac_arg in
16206 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16207 esac
16208 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16209
16210 # Pass --silent
16211 if test "$silent" = yes; then
16212 ac_sub_configure_args="--silent $ac_sub_configure_args"
16213 fi
16214
16215 # Always prepend --disable-option-checking to silence warnings, since
16216 # different subdirs can have different --enable and --with options.
16217 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16218
16219 ac_popdir=`pwd`
16220 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16221
16222 # Do not complain, so a configure script can configure whichever
16223 # parts of a large source tree are present.
16224 test -d "$srcdir/$ac_dir" || continue
16225
16226 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16227 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16228 $as_echo "$ac_msg" >&6
16229 as_dir="$ac_dir"; as_fn_mkdir_p
16230 ac_builddir=.
16231
16232 case "$ac_dir" in
16233 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16234 *)
16235 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16236 # A ".." for each directory in $ac_dir_suffix.
16237 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16238 case $ac_top_builddir_sub in
16239 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16240 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16241 esac ;;
16242 esac
16243 ac_abs_top_builddir=$ac_pwd
16244 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16245 # for backward compatibility:
16246 ac_top_builddir=$ac_top_build_prefix
16247
16248 case $srcdir in
16249 .) # We are building in place.
16250 ac_srcdir=.
16251 ac_top_srcdir=$ac_top_builddir_sub
16252 ac_abs_top_srcdir=$ac_pwd ;;
16253 [\\/]* | ?:[\\/]* ) # Absolute name.
16254 ac_srcdir=$srcdir$ac_dir_suffix;
16255 ac_top_srcdir=$srcdir
16256 ac_abs_top_srcdir=$srcdir ;;
16257 *) # Relative name.
16258 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16259 ac_top_srcdir=$ac_top_build_prefix$srcdir
16260 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16261 esac
16262 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16263
16264
16265 cd "$ac_dir"
16266
16267 # Check for guested configure; otherwise get Cygnus style configure.
16268 if test -f "$ac_srcdir/configure.gnu"; then
16269 ac_sub_configure=$ac_srcdir/configure.gnu
16270 elif test -f "$ac_srcdir/configure"; then
16271 ac_sub_configure=$ac_srcdir/configure
16272 elif test -f "$ac_srcdir/configure.in"; then
16273 # This should be Cygnus configure.
16274 ac_sub_configure=$ac_aux_dir/configure
16275 else
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16277 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16278 ac_sub_configure=
16279 fi
16280
16281 # The recursion is here.
16282 if test -n "$ac_sub_configure"; then
16283 # Make the cache file name correct relative to the subdirectory.
16284 case $cache_file in
16285 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16286 *) # Relative name.
16287 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16288 esac
16289
16290 { $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
16291 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16292 # The eval makes quoting arguments work.
16293 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16294 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16295 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16296 fi
16297
16298 cd "$ac_popdir"
16299 done
16300 fi
16301 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16303 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16304 fi
16305
This page took 0.683206 seconds and 4 git commands to generate.