]> git.ipfire.org Git - thirdparty/gcc.git/blob - libbacktrace/configure
check undefine_p for one more vr
[thirdparty/gcc.git] / libbacktrace / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libbacktrace'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="backtrace.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 NATIVE_FALSE
637 NATIVE_TRUE
638 HAVE_LIBLZMA_FALSE
639 HAVE_LIBLZMA_TRUE
640 HAVE_MINIDEBUG_FALSE
641 HAVE_MINIDEBUG_TRUE
642 HAVE_COMM_FALSE
643 HAVE_COMM_TRUE
644 COMM
645 HAVE_XZ_FALSE
646 HAVE_XZ_TRUE
647 XZ
648 USE_DSYMUTIL_FALSE
649 USE_DSYMUTIL_TRUE
650 HAVE_OBJCOPY_DEBUGLINK_FALSE
651 HAVE_OBJCOPY_DEBUGLINK_TRUE
652 READELF
653 OBJCOPY
654 HAVE_COMPRESSED_DEBUG_ZSTD_FALSE
655 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE
656 HAVE_ZSTD_FALSE
657 HAVE_ZSTD_TRUE
658 HAVE_COMPRESSED_DEBUG_FALSE
659 HAVE_COMPRESSED_DEBUG_TRUE
660 HAVE_BUILDID_FALSE
661 HAVE_BUILDID_TRUE
662 HAVE_ZLIB_FALSE
663 HAVE_ZLIB_TRUE
664 HAVE_DWARF5_FALSE
665 HAVE_DWARF5_TRUE
666 HAVE_PTHREAD_FALSE
667 HAVE_PTHREAD_TRUE
668 PTHREAD_CFLAGS
669 CLOCK_GETTIME_LINK
670 BACKTRACE_USES_MALLOC
671 ALLOC_FILE
672 VIEW_FILE
673 BACKTRACE_SUPPORTS_DATA
674 BACKTRACE_SUPPORTED
675 HAVE_ELF_FALSE
676 HAVE_ELF_TRUE
677 FORMAT_FILE
678 BACKTRACE_SUPPORTS_THREADS
679 CET_HOST_FLAGS
680 PIC_FLAG
681 WARN_FLAGS
682 EXTRA_FLAGS
683 BACKTRACE_FILE
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
689 AR
690 OBJDUMP
691 LN_S
692 NM
693 ac_ct_DUMPBIN
694 DUMPBIN
695 LD
696 FGREP
697 SED
698 LIBTOOL
699 HAVE_DWZ_FALSE
700 HAVE_DWZ_TRUE
701 DWZ
702 RANLIB
703 MAINT
704 MAINTAINER_MODE_FALSE
705 MAINTAINER_MODE_TRUE
706 AM_BACKSLASH
707 AM_DEFAULT_VERBOSITY
708 AM_DEFAULT_V
709 AM_V
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
715 AWK
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 libtool_VERSION
734 EGREP
735 GREP
736 CPP
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
743 CC
744 target_os
745 target_vendor
746 target_cpu
747 target
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 multi_basedir
757 target_alias
758 host_alias
759 build_alias
760 LIBS
761 ECHO_T
762 ECHO_N
763 ECHO_C
764 DEFS
765 mandir
766 localedir
767 libdir
768 psdir
769 pdfdir
770 dvidir
771 htmldir
772 infodir
773 docdir
774 oldincludedir
775 includedir
776 localstatedir
777 sharedstatedir
778 sysconfdir
779 datadir
780 datarootdir
781 libexecdir
782 sbindir
783 bindir
784 program_transform_name
785 prefix
786 exec_prefix
787 PACKAGE_URL
788 PACKAGE_BUGREPORT
789 PACKAGE_STRING
790 PACKAGE_VERSION
791 PACKAGE_TARNAME
792 PACKAGE_NAME
793 PATH_SEPARATOR
794 SHELL'
795 ac_subst_files=''
796 ac_user_opts='
797 enable_option_checking
798 enable_multilib
799 enable_silent_rules
800 enable_maintainer_mode
801 with_target_subdir
802 enable_shared
803 enable_static
804 with_pic
805 enable_fast_install
806 with_gnu_ld
807 enable_libtool_lock
808 enable_largefile
809 enable_cet
810 enable_werror
811 with_system_libunwind
812 enable_host_shared
813 '
814 ac_precious_vars='build_alias
815 host_alias
816 target_alias
817 CC
818 CFLAGS
819 LDFLAGS
820 LIBS
821 CPPFLAGS
822 CPP
823 OBJCOPY
824 DSYMUTIL
825 NM'
826
827
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
883 ac_prev=
884 continue
885 fi
886
887 case $ac_option in
888 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *=) ac_optarg= ;;
890 *) ac_optarg=yes ;;
891 esac
892
893 # Accept the important Cygnus configure options, so we can diagnose typos.
894
895 case $ac_dashdash$ac_option in
896 --)
897 ac_dashdash=yes ;;
898
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 bindir=$ac_optarg ;;
903
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
908
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
915
916 --config-cache | -C)
917 cache_file=config.cache ;;
918
919 -datadir | --datadir | --datadi | --datad)
920 ac_prev=datadir ;;
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
923
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
930
931 -disable-* | --disable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
939 *"
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=no ;;
946
947 -docdir | --docdir | --docdi | --doc | --do)
948 ac_prev=docdir ;;
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 docdir=$ac_optarg ;;
951
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953 ac_prev=dvidir ;;
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 dvidir=$ac_optarg ;;
956
957 -enable-* | --enable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966 "enable_$ac_useropt"
967 "*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=\$ac_optarg ;;
972
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev=exec_prefix ;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
980 exec_prefix=$ac_optarg ;;
981
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
984 with_gas=yes ;;
985
986 -help | --help | --hel | --he | -h)
987 ac_init_help=long ;;
988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989 ac_init_help=recursive ;;
990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991 ac_init_help=short ;;
992
993 -host | --host | --hos | --ho)
994 ac_prev=host_alias ;;
995 -host=* | --host=* | --hos=* | --ho=*)
996 host_alias=$ac_optarg ;;
997
998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999 ac_prev=htmldir ;;
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001 | --ht=*)
1002 htmldir=$ac_optarg ;;
1003
1004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev=includedir ;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
1009 includedir=$ac_optarg ;;
1010
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1012 ac_prev=infodir ;;
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014 infodir=$ac_optarg ;;
1015
1016 -libdir | --libdir | --libdi | --libd)
1017 ac_prev=libdir ;;
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019 libdir=$ac_optarg ;;
1020
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev=libexecdir ;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
1026 libexecdir=$ac_optarg ;;
1027
1028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev=localedir ;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir=$ac_optarg ;;
1032
1033 -localstatedir | --localstatedir | --localstatedi | --localstated \
1034 | --localstate | --localstat | --localsta | --localst | --locals)
1035 ac_prev=localstatedir ;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038 localstatedir=$ac_optarg ;;
1039
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041 ac_prev=mandir ;;
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043 mandir=$ac_optarg ;;
1044
1045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1047 with_fp=no ;;
1048
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050 | --no-cr | --no-c | -n)
1051 no_create=yes ;;
1052
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055 no_recursion=yes ;;
1056
1057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev=oldincludedir ;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064 oldincludedir=$ac_optarg ;;
1065
1066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067 ac_prev=prefix ;;
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069 prefix=$ac_optarg ;;
1070
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev=program_prefix ;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076 program_prefix=$ac_optarg ;;
1077
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev=program_suffix ;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083 program_suffix=$ac_optarg ;;
1084
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev=program_transform_name ;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
1100 program_transform_name=$ac_optarg ;;
1101
1102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103 ac_prev=pdfdir ;;
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir=$ac_optarg ;;
1106
1107 -psdir | --psdir | --psdi | --psd | --ps)
1108 ac_prev=psdir ;;
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110 psdir=$ac_optarg ;;
1111
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1114 silent=yes ;;
1115
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117 ac_prev=sbindir ;;
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119 | --sbi=* | --sb=*)
1120 sbindir=$ac_optarg ;;
1121
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1125 | --sha | --sh)
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130 | --sha=* | --sh=*)
1131 sharedstatedir=$ac_optarg ;;
1132
1133 -site | --site | --sit)
1134 ac_prev=site ;;
1135 -site=* | --site=* | --sit=*)
1136 site=$ac_optarg ;;
1137
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139 ac_prev=srcdir ;;
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141 srcdir=$ac_optarg ;;
1142
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148 sysconfdir=$ac_optarg ;;
1149
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
1151 ac_prev=target_alias ;;
1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153 target_alias=$ac_optarg ;;
1154
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 verbose=yes ;;
1157
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
1160
1161 -with-* | --with-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1169 *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=\$ac_optarg ;;
1176
1177 -without-* | --without-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1185 *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=no ;;
1192
1193 --x)
1194 # Obsolete; use --with-x.
1195 with_x=yes ;;
1196
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1203
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1210
1211 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1212 Try \`$0 --help' for more information"
1213 ;;
1214
1215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 case $ac_envvar in #(
1219 '' | [0-9]* | *[!_$as_cr_alnum]* )
1220 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1221 esac
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1224
1225 *)
1226 # FIXME: should be removed in autoconf 3.0.
1227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231 ;;
1232
1233 esac
1234 done
1235
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 as_fn_error $? "missing argument to $ac_option"
1239 fi
1240
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1243 no) ;;
1244 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 esac
1247 fi
1248
1249 # Check all directory arguments for consistency.
1250 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir
1254 do
1255 eval ac_val=\$$ac_var
1256 # Remove trailing slashes.
1257 case $ac_val in
1258 */ )
1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\$ac_val;;
1261 esac
1262 # Be sure to have absolute directory names.
1263 case $ac_val in
1264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266 esac
1267 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268 done
1269
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1276
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 elif test "x$build_alias" != "x$host_alias"; then
1282 cross_compiling=yes
1283 fi
1284 fi
1285
1286 ac_tool_prefix=
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288
1289 test "$silent" = yes && exec 6>/dev/null
1290
1291
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 as_fn_error $? "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 as_fn_error $? "pwd does not report name of working directory"
1298
1299
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\/\)[^/].*/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\).*/{
1323 s//\1/
1324 q
1325 }
1326 s/.*/./; q'`
1327 srcdir=$ac_confdir
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 srcdir=..
1330 fi
1331 else
1332 ac_srcdir_defaulted=no
1333 fi
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1337 fi
1338 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339 ac_abs_confdir=`(
1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341 pwd)`
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344 srcdir=.
1345 fi
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1349 case $srcdir in
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351 esac
1352 for ac_var in $ac_precious_vars; do
1353 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_env_${ac_var}_value=\$${ac_var}
1355 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 done
1358
1359 #
1360 # Report the --help message.
1361 #
1362 if test "$ac_init_help" = "long"; then
1363 # Omit some internal or obsolete options to make the list less imposing.
1364 # This message is too long to be a string in the A/UX 3.1 sh.
1365 cat <<_ACEOF
1366 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1367
1368 Usage: $0 [OPTION]... [VAR=VALUE]...
1369
1370 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371 VAR=VALUE. See below for descriptions of some of the useful variables.
1372
1373 Defaults for the options are specified in brackets.
1374
1375 Configuration:
1376 -h, --help display this help and exit
1377 --help=short display options specific to this package
1378 --help=recursive display the short help of all the included packages
1379 -V, --version display version information and exit
1380 -q, --quiet, --silent do not print \`checking ...' messages
1381 --cache-file=FILE cache test results in FILE [disabled]
1382 -C, --config-cache alias for \`--cache-file=config.cache'
1383 -n, --no-create do not create output files
1384 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1385
1386 Installation directories:
1387 --prefix=PREFIX install architecture-independent files in PREFIX
1388 [$ac_default_prefix]
1389 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1390 [PREFIX]
1391
1392 By default, \`make install' will install all the files in
1393 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1394 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1395 for instance \`--prefix=\$HOME'.
1396
1397 For better control, use the options below.
1398
1399 Fine tuning of the installation directories:
1400 --bindir=DIR user executables [EPREFIX/bin]
1401 --sbindir=DIR system admin executables [EPREFIX/sbin]
1402 --libexecdir=DIR program executables [EPREFIX/libexec]
1403 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1404 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1405 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1406 --libdir=DIR object code libraries [EPREFIX/lib]
1407 --includedir=DIR C header files [PREFIX/include]
1408 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1409 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1410 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1411 --infodir=DIR info documentation [DATAROOTDIR/info]
1412 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1413 --mandir=DIR man documentation [DATAROOTDIR/man]
1414 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1415 --htmldir=DIR html documentation [DOCDIR]
1416 --dvidir=DIR dvi documentation [DOCDIR]
1417 --pdfdir=DIR pdf documentation [DOCDIR]
1418 --psdir=DIR ps documentation [DOCDIR]
1419 _ACEOF
1420
1421 cat <<\_ACEOF
1422
1423 Program names:
1424 --program-prefix=PREFIX prepend PREFIX to installed program names
1425 --program-suffix=SUFFIX append SUFFIX to installed program names
1426 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1427
1428 System types:
1429 --build=BUILD configure for building on BUILD [guessed]
1430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431 --target=TARGET configure for building compilers for TARGET [HOST]
1432 _ACEOF
1433 fi
1434
1435 if test -n "$ac_init_help"; then
1436 case $ac_init_help in
1437 short | recursive ) echo "Configuration of package-unused version-unused:";;
1438 esac
1439 cat <<\_ACEOF
1440
1441 Optional Features:
1442 --disable-option-checking ignore unrecognized --enable/--with options
1443 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1444 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1445 --enable-multilib build many library versions (default)
1446 --enable-silent-rules less verbose build output (undo: "make V=1")
1447 --disable-silent-rules verbose build output (undo: "make V=0")
1448 --enable-maintainer-mode
1449 enable make rules and dependencies not useful (and
1450 sometimes confusing) to the casual installer
1451 --enable-shared[=PKGS] build shared libraries [default=yes]
1452 --enable-static[=PKGS] build static libraries [default=yes]
1453 --enable-fast-install[=PKGS]
1454 optimize for fast installation [default=yes]
1455 --disable-libtool-lock avoid locking (might break parallel builds)
1456 --disable-largefile omit support for large files
1457 --enable-cet enable Intel CET in target libraries [default=auto]
1458 --disable-werror disable building with -Werror
1459 --enable-host-shared build host code as shared libraries
1460 --enable-cet enable Intel CET in host libraries [default=auto]
1461
1462 Optional Packages:
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1466 --with-pic try to use only PIC/non-PIC objects [default=use
1467 both]
1468 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1469 --with-system-libunwind use installed libunwind
1470
1471 Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 LIBS libraries to pass to the linker, e.g. -l<library>
1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1479 CPP C preprocessor
1480 OBJCOPY location of objcopy
1481 DSYMUTIL location of dsymutil
1482 NM location of nm
1483
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1486
1487 Report bugs to the package provider.
1488 _ACEOF
1489 ac_status=$?
1490 fi
1491
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" ||
1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497 continue
1498 ac_builddir=.
1499
1500 case "$ac_dir" in
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *)
1503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504 # A ".." for each directory in $ac_dir_suffix.
1505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506 case $ac_top_builddir_sub in
1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 esac ;;
1510 esac
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1515
1516 case $srcdir in
1517 .) # We are building in place.
1518 ac_srcdir=.
1519 ac_top_srcdir=$ac_top_builddir_sub
1520 ac_abs_top_srcdir=$ac_pwd ;;
1521 [\\/]* | ?:[\\/]* ) # Absolute name.
1522 ac_srcdir=$srcdir$ac_dir_suffix;
1523 ac_top_srcdir=$srcdir
1524 ac_abs_top_srcdir=$srcdir ;;
1525 *) # Relative name.
1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527 ac_top_srcdir=$ac_top_build_prefix$srcdir
1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 esac
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for guested configure.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1540 else
1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 fi || ac_status=$?
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1544 done
1545 fi
1546
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1549 cat <<\_ACEOF
1550 package-unused configure version-unused
1551 generated by GNU Autoconf 2.69
1552
1553 Copyright (C) 2012 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556 _ACEOF
1557 exit
1558 fi
1559
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
1563
1564 # ac_fn_c_try_compile LINENO
1565 # --------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_compile ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext
1571 if { { ac_try="$ac_compile"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_compile") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest.$ac_objext; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=1
1596 fi
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1599
1600 } # ac_fn_c_try_compile
1601
1602 # ac_fn_c_try_cpp LINENO
1603 # ----------------------
1604 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_cpp ()
1606 {
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { { ac_try="$ac_cpp conftest.$ac_ext"
1609 case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1621 fi
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } > conftest.i && {
1624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 }; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632 ac_retval=1
1633 fi
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1636
1637 } # ac_fn_c_try_cpp
1638
1639 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1642 # the include files in INCLUDES and setting the cache variable VAR
1643 # accordingly.
1644 ac_fn_c_check_header_mongrel ()
1645 {
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if eval \${$3+:} false; then :
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 $as_echo_n "checking for $2... " >&6; }
1650 if eval \${$3+:} false; then :
1651 $as_echo_n "(cached) " >&6
1652 fi
1653 eval ac_res=\$$3
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 $as_echo "$ac_res" >&6; }
1656 else
1657 # Is the header compilable?
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1659 $as_echo_n "checking $2 usability... " >&6; }
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1662 $4
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666 ac_header_compiler=yes
1667 else
1668 ac_header_compiler=no
1669 fi
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1672 $as_echo "$ac_header_compiler" >&6; }
1673
1674 # Is the header present?
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1676 $as_echo_n "checking $2 presence... " >&6; }
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1679 #include <$2>
1680 _ACEOF
1681 if ac_fn_c_try_cpp "$LINENO"; then :
1682 ac_header_preproc=yes
1683 else
1684 ac_header_preproc=no
1685 fi
1686 rm -f conftest.err conftest.i conftest.$ac_ext
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1688 $as_echo "$ac_header_preproc" >&6; }
1689
1690 # So? What about this header?
1691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1692 yes:no: )
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1694 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1696 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1697 ;;
1698 no:yes:* )
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1700 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1702 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1704 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1706 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1708 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1709 ;;
1710 esac
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if eval \${$3+:} false; then :
1714 $as_echo_n "(cached) " >&6
1715 else
1716 eval "$3=\$ac_header_compiler"
1717 fi
1718 eval ac_res=\$$3
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1721 fi
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723
1724 } # ac_fn_c_check_header_mongrel
1725
1726 # ac_fn_c_try_run LINENO
1727 # ----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729 # that executables *can* be run.
1730 ac_fn_c_try_run ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744 { { case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_try") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=$ac_status
1761 fi
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1765
1766 } # ac_fn_c_try_run
1767
1768 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists and can be compiled using the include files in
1771 # INCLUDES, setting the cache variable VAR accordingly.
1772 ac_fn_c_check_header_compile ()
1773 {
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 $4
1783 #include <$2>
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786 eval "$3=yes"
1787 else
1788 eval "$3=no"
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 fi
1792 eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797 } # ac_fn_c_check_header_compile
1798
1799 # ac_fn_c_try_link LINENO
1800 # -----------------------
1801 # Try to link conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_link ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext conftest$ac_exeext
1806 if { { ac_try="$ac_link"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_link") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest$ac_exeext && {
1825 test "$cross_compiling" = yes ||
1826 test -x conftest$ac_exeext
1827 }; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833 ac_retval=1
1834 fi
1835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837 # interfere with the next link command; also delete a directory that is
1838 # left behind by Apple's compiler. We do this before executing the actions.
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1842
1843 } # ac_fn_c_try_link
1844
1845 # ac_fn_c_check_func LINENO FUNC VAR
1846 # ----------------------------------
1847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1848 ac_fn_c_check_func ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1855 else
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1860 #define $2 innocuous_$2
1861
1862 /* System header to define __stub macros and hopefully few prototypes,
1863 which can conflict with char $2 (); below.
1864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865 <limits.h> exists even on freestanding compilers. */
1866
1867 #ifdef __STDC__
1868 # include <limits.h>
1869 #else
1870 # include <assert.h>
1871 #endif
1872
1873 #undef $2
1874
1875 /* Override any GCC internal prototype to avoid an error.
1876 Use char because int might match the return type of a GCC
1877 builtin and then its argument prototype would still apply. */
1878 #ifdef __cplusplus
1879 extern "C"
1880 #endif
1881 char $2 ();
1882 /* The GNU C library defines this for functions which it implements
1883 to always fail with ENOSYS. Some functions are actually named
1884 something starting with __ and the normal name is an alias. */
1885 #if defined __stub_$2 || defined __stub___$2
1886 choke me
1887 #endif
1888
1889 int
1890 main ()
1891 {
1892 return $2 ();
1893 ;
1894 return 0;
1895 }
1896 _ACEOF
1897 if ac_fn_c_try_link "$LINENO"; then :
1898 eval "$3=yes"
1899 else
1900 eval "$3=no"
1901 fi
1902 rm -f core conftest.err conftest.$ac_objext \
1903 conftest$ac_exeext conftest.$ac_ext
1904 fi
1905 eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910 } # ac_fn_c_check_func
1911
1912 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1913 # -------------------------------------------
1914 # Tests whether TYPE exists after having included INCLUDES, setting cache
1915 # variable VAR accordingly.
1916 ac_fn_c_check_type ()
1917 {
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920 $as_echo_n "checking for $2... " >&6; }
1921 if eval \${$3+:} false; then :
1922 $as_echo_n "(cached) " >&6
1923 else
1924 eval "$3=no"
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1927 $4
1928 int
1929 main ()
1930 {
1931 if (sizeof ($2))
1932 return 0;
1933 ;
1934 return 0;
1935 }
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 $4
1941 int
1942 main ()
1943 {
1944 if (sizeof (($2)))
1945 return 0;
1946 ;
1947 return 0;
1948 }
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951
1952 else
1953 eval "$3=yes"
1954 fi
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 fi
1957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958 fi
1959 eval ac_res=\$$3
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964 } # ac_fn_c_check_type
1965
1966 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1967 # --------------------------------------------
1968 # Tries to find the compile-time value of EXPR in a program that includes
1969 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1970 # computed
1971 ac_fn_c_compute_int ()
1972 {
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if test "$cross_compiling" = yes; then
1975 # Depending upon the size, compute the lo and hi bounds.
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1978 $4
1979 int
1980 main ()
1981 {
1982 static int test_array [1 - 2 * !(($2) >= 0)];
1983 test_array [0] = 0;
1984 return test_array [0];
1985
1986 ;
1987 return 0;
1988 }
1989 _ACEOF
1990 if ac_fn_c_try_compile "$LINENO"; then :
1991 ac_lo=0 ac_mid=0
1992 while :; do
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 $4
1996 int
1997 main ()
1998 {
1999 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2000 test_array [0] = 0;
2001 return test_array [0];
2002
2003 ;
2004 return 0;
2005 }
2006 _ACEOF
2007 if ac_fn_c_try_compile "$LINENO"; then :
2008 ac_hi=$ac_mid; break
2009 else
2010 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2011 if test $ac_lo -le $ac_mid; then
2012 ac_lo= ac_hi=
2013 break
2014 fi
2015 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2016 fi
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 done
2019 else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $4
2023 int
2024 main ()
2025 {
2026 static int test_array [1 - 2 * !(($2) < 0)];
2027 test_array [0] = 0;
2028 return test_array [0];
2029
2030 ;
2031 return 0;
2032 }
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035 ac_hi=-1 ac_mid=-1
2036 while :; do
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2039 $4
2040 int
2041 main ()
2042 {
2043 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2044 test_array [0] = 0;
2045 return test_array [0];
2046
2047 ;
2048 return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 ac_lo=$ac_mid; break
2053 else
2054 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2055 if test $ac_mid -le $ac_hi; then
2056 ac_lo= ac_hi=
2057 break
2058 fi
2059 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2060 fi
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 done
2063 else
2064 ac_lo= ac_hi=
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 # Binary search between lo and hi bounds.
2070 while test "x$ac_lo" != "x$ac_hi"; do
2071 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 $4
2075 int
2076 main ()
2077 {
2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2079 test_array [0] = 0;
2080 return test_array [0];
2081
2082 ;
2083 return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_hi=$ac_mid
2088 else
2089 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 done
2093 case $ac_lo in #((
2094 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2095 '') ac_retval=1 ;;
2096 esac
2097 else
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 $4
2101 static long int longval () { return $2; }
2102 static unsigned long int ulongval () { return $2; }
2103 #include <stdio.h>
2104 #include <stdlib.h>
2105 int
2106 main ()
2107 {
2108
2109 FILE *f = fopen ("conftest.val", "w");
2110 if (! f)
2111 return 1;
2112 if (($2) < 0)
2113 {
2114 long int i = longval ();
2115 if (i != ($2))
2116 return 1;
2117 fprintf (f, "%ld", i);
2118 }
2119 else
2120 {
2121 unsigned long int i = ulongval ();
2122 if (i != ($2))
2123 return 1;
2124 fprintf (f, "%lu", i);
2125 }
2126 /* Do not output a trailing newline, as this causes \r\n confusion
2127 on some platforms. */
2128 return ferror (f) || fclose (f) != 0;
2129
2130 ;
2131 return 0;
2132 }
2133 _ACEOF
2134 if ac_fn_c_try_run "$LINENO"; then :
2135 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2136 else
2137 ac_retval=1
2138 fi
2139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2140 conftest.$ac_objext conftest.beam conftest.$ac_ext
2141 rm -f conftest.val
2142
2143 fi
2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145 as_fn_set_status $ac_retval
2146
2147 } # ac_fn_c_compute_int
2148
2149 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2150 # ---------------------------------------------
2151 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2152 # accordingly.
2153 ac_fn_c_check_decl ()
2154 {
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 as_decl_name=`echo $2|sed 's/ *(.*//'`
2157 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2159 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2160 if eval \${$3+:} false; then :
2161 $as_echo_n "(cached) " >&6
2162 else
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2165 $4
2166 int
2167 main ()
2168 {
2169 #ifndef $as_decl_name
2170 #ifdef __cplusplus
2171 (void) $as_decl_use;
2172 #else
2173 (void) $as_decl_name;
2174 #endif
2175 #endif
2176
2177 ;
2178 return 0;
2179 }
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182 eval "$3=yes"
2183 else
2184 eval "$3=no"
2185 fi
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 fi
2188 eval ac_res=\$$3
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2190 $as_echo "$ac_res" >&6; }
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192
2193 } # ac_fn_c_check_decl
2194 cat >config.log <<_ACEOF
2195 This file contains any messages produced by compilers while
2196 running configure, to aid debugging if configure makes a mistake.
2197
2198 It was created by package-unused $as_me version-unused, which was
2199 generated by GNU Autoconf 2.69. Invocation command line was
2200
2201 $ $0 $@
2202
2203 _ACEOF
2204 exec 5>>config.log
2205 {
2206 cat <<_ASUNAME
2207 ## --------- ##
2208 ## Platform. ##
2209 ## --------- ##
2210
2211 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2212 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2213 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2214 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2215 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2216
2217 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2218 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2219
2220 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2221 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2222 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2223 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2224 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2225 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2226 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2227
2228 _ASUNAME
2229
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 for as_dir in $PATH
2232 do
2233 IFS=$as_save_IFS
2234 test -z "$as_dir" && as_dir=.
2235 $as_echo "PATH: $as_dir"
2236 done
2237 IFS=$as_save_IFS
2238
2239 } >&5
2240
2241 cat >&5 <<_ACEOF
2242
2243
2244 ## ----------- ##
2245 ## Core tests. ##
2246 ## ----------- ##
2247
2248 _ACEOF
2249
2250
2251 # Keep a trace of the command line.
2252 # Strip out --no-create and --no-recursion so they do not pile up.
2253 # Strip out --silent because we don't want to record it for future runs.
2254 # Also quote any args containing shell meta-characters.
2255 # Make two passes to allow for proper duplicate-argument suppression.
2256 ac_configure_args=
2257 ac_configure_args0=
2258 ac_configure_args1=
2259 ac_must_keep_next=false
2260 for ac_pass in 1 2
2261 do
2262 for ac_arg
2263 do
2264 case $ac_arg in
2265 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2267 | -silent | --silent | --silen | --sile | --sil)
2268 continue ;;
2269 *\'*)
2270 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2271 esac
2272 case $ac_pass in
2273 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2274 2)
2275 as_fn_append ac_configure_args1 " '$ac_arg'"
2276 if test $ac_must_keep_next = true; then
2277 ac_must_keep_next=false # Got value, back to normal.
2278 else
2279 case $ac_arg in
2280 *=* | --config-cache | -C | -disable-* | --disable-* \
2281 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2282 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2283 | -with-* | --with-* | -without-* | --without-* | --x)
2284 case "$ac_configure_args0 " in
2285 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2286 esac
2287 ;;
2288 -* ) ac_must_keep_next=true ;;
2289 esac
2290 fi
2291 as_fn_append ac_configure_args " '$ac_arg'"
2292 ;;
2293 esac
2294 done
2295 done
2296 { ac_configure_args0=; unset ac_configure_args0;}
2297 { ac_configure_args1=; unset ac_configure_args1;}
2298
2299 # When interrupted or exit'd, cleanup temporary files, and complete
2300 # config.log. We remove comments because anyway the quotes in there
2301 # would cause problems or look ugly.
2302 # WARNING: Use '\'' to represent an apostrophe within the trap.
2303 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2304 trap 'exit_status=$?
2305 # Save into config.log some information that might help in debugging.
2306 {
2307 echo
2308
2309 $as_echo "## ---------------- ##
2310 ## Cache variables. ##
2311 ## ---------------- ##"
2312 echo
2313 # The following way of writing the cache mishandles newlines in values,
2314 (
2315 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2316 eval ac_val=\$$ac_var
2317 case $ac_val in #(
2318 *${as_nl}*)
2319 case $ac_var in #(
2320 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2321 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2322 esac
2323 case $ac_var in #(
2324 _ | IFS | as_nl) ;; #(
2325 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2326 *) { eval $ac_var=; unset $ac_var;} ;;
2327 esac ;;
2328 esac
2329 done
2330 (set) 2>&1 |
2331 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2332 *${as_nl}ac_space=\ *)
2333 sed -n \
2334 "s/'\''/'\''\\\\'\'''\''/g;
2335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2336 ;; #(
2337 *)
2338 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2339 ;;
2340 esac |
2341 sort
2342 )
2343 echo
2344
2345 $as_echo "## ----------------- ##
2346 ## Output variables. ##
2347 ## ----------------- ##"
2348 echo
2349 for ac_var in $ac_subst_vars
2350 do
2351 eval ac_val=\$$ac_var
2352 case $ac_val in
2353 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354 esac
2355 $as_echo "$ac_var='\''$ac_val'\''"
2356 done | sort
2357 echo
2358
2359 if test -n "$ac_subst_files"; then
2360 $as_echo "## ------------------- ##
2361 ## File substitutions. ##
2362 ## ------------------- ##"
2363 echo
2364 for ac_var in $ac_subst_files
2365 do
2366 eval ac_val=\$$ac_var
2367 case $ac_val in
2368 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2369 esac
2370 $as_echo "$ac_var='\''$ac_val'\''"
2371 done | sort
2372 echo
2373 fi
2374
2375 if test -s confdefs.h; then
2376 $as_echo "## ----------- ##
2377 ## confdefs.h. ##
2378 ## ----------- ##"
2379 echo
2380 cat confdefs.h
2381 echo
2382 fi
2383 test "$ac_signal" != 0 &&
2384 $as_echo "$as_me: caught signal $ac_signal"
2385 $as_echo "$as_me: exit $exit_status"
2386 } >&5
2387 rm -f core *.core core.conftest.* &&
2388 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2389 exit $exit_status
2390 ' 0
2391 for ac_signal in 1 2 13 15; do
2392 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2393 done
2394 ac_signal=0
2395
2396 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2397 rm -f -r conftest* confdefs.h
2398
2399 $as_echo "/* confdefs.h */" > confdefs.h
2400
2401 # Predefined preprocessor variables.
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_NAME "$PACKAGE_NAME"
2405 _ACEOF
2406
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2409 _ACEOF
2410
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2413 _ACEOF
2414
2415 cat >>confdefs.h <<_ACEOF
2416 #define PACKAGE_STRING "$PACKAGE_STRING"
2417 _ACEOF
2418
2419 cat >>confdefs.h <<_ACEOF
2420 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2421 _ACEOF
2422
2423 cat >>confdefs.h <<_ACEOF
2424 #define PACKAGE_URL "$PACKAGE_URL"
2425 _ACEOF
2426
2427
2428 # Let the site file select an alternate cache file if it wants to.
2429 # Prefer an explicitly selected file to automatically selected ones.
2430 ac_site_file1=NONE
2431 ac_site_file2=NONE
2432 if test -n "$CONFIG_SITE"; then
2433 # We do not want a PATH search for config.site.
2434 case $CONFIG_SITE in #((
2435 -*) ac_site_file1=./$CONFIG_SITE;;
2436 */*) ac_site_file1=$CONFIG_SITE;;
2437 *) ac_site_file1=./$CONFIG_SITE;;
2438 esac
2439 elif test "x$prefix" != xNONE; then
2440 ac_site_file1=$prefix/share/config.site
2441 ac_site_file2=$prefix/etc/config.site
2442 else
2443 ac_site_file1=$ac_default_prefix/share/config.site
2444 ac_site_file2=$ac_default_prefix/etc/config.site
2445 fi
2446 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2447 do
2448 test "x$ac_site_file" = xNONE && continue
2449 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2451 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2452 sed 's/^/| /' "$ac_site_file" >&5
2453 . "$ac_site_file" \
2454 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2456 as_fn_error $? "failed to load site script $ac_site_file
2457 See \`config.log' for more details" "$LINENO" 5; }
2458 fi
2459 done
2460
2461 if test -r "$cache_file"; then
2462 # Some versions of bash will fail to source /dev/null (special files
2463 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2464 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2466 $as_echo "$as_me: loading cache $cache_file" >&6;}
2467 case $cache_file in
2468 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2469 *) . "./$cache_file";;
2470 esac
2471 fi
2472 else
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2474 $as_echo "$as_me: creating cache $cache_file" >&6;}
2475 >$cache_file
2476 fi
2477
2478 # Check that the precious variables saved in the cache have kept the same
2479 # value.
2480 ac_cache_corrupted=false
2481 for ac_var in $ac_precious_vars; do
2482 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2483 eval ac_new_set=\$ac_env_${ac_var}_set
2484 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2485 eval ac_new_val=\$ac_env_${ac_var}_value
2486 case $ac_old_set,$ac_new_set in
2487 set,)
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2489 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2490 ac_cache_corrupted=: ;;
2491 ,set)
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2493 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2494 ac_cache_corrupted=: ;;
2495 ,);;
2496 *)
2497 if test "x$ac_old_val" != "x$ac_new_val"; then
2498 # differences in whitespace do not lead to failure.
2499 ac_old_val_w=`echo x $ac_old_val`
2500 ac_new_val_w=`echo x $ac_new_val`
2501 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2503 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2504 ac_cache_corrupted=:
2505 else
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2507 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2508 eval $ac_var=\$ac_old_val
2509 fi
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2511 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2513 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2514 fi;;
2515 esac
2516 # Pass precious variables to config.status.
2517 if test "$ac_new_set" = set; then
2518 case $ac_new_val in
2519 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2520 *) ac_arg=$ac_var=$ac_new_val ;;
2521 esac
2522 case " $ac_configure_args " in
2523 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2524 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2525 esac
2526 fi
2527 done
2528 if $ac_cache_corrupted; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2532 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2533 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2534 fi
2535 ## -------------------- ##
2536 ## Main body of script. ##
2537 ## -------------------- ##
2538
2539 ac_ext=c
2540 ac_cpp='$CPP $CPPFLAGS'
2541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544
2545
2546
2547
2548
2549
2550 ac_config_headers="$ac_config_headers config.h"
2551
2552
2553 if test -n "${with_target_subdir}"; then
2554 # Default to --enable-multilib
2555 # Check whether --enable-multilib was given.
2556 if test "${enable_multilib+set}" = set; then :
2557 enableval=$enable_multilib; case "$enableval" in
2558 yes) multilib=yes ;;
2559 no) multilib=no ;;
2560 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2561 esac
2562 else
2563 multilib=yes
2564 fi
2565
2566
2567 # We may get other options which we leave undocumented:
2568 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2569 # See config-ml.in if you want the gory details.
2570
2571 if test "$srcdir" = "."; then
2572 if test "$with_target_subdir" != "."; then
2573 multi_basedir="$srcdir/$with_multisrctop../.."
2574 else
2575 multi_basedir="$srcdir/$with_multisrctop.."
2576 fi
2577 else
2578 multi_basedir="$srcdir/.."
2579 fi
2580
2581
2582 # Even if the default multilib is not a cross compilation,
2583 # it may be that some of the other multilibs are.
2584 if test $cross_compiling = no && test $multilib = yes \
2585 && test "x${with_multisubdir}" != x ; then
2586 cross_compiling=maybe
2587 fi
2588
2589 ac_config_commands="$ac_config_commands default-1"
2590
2591 fi
2592
2593 ac_aux_dir=
2594 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2595 if test -f "$ac_dir/install-sh"; then
2596 ac_aux_dir=$ac_dir
2597 ac_install_sh="$ac_aux_dir/install-sh -c"
2598 break
2599 elif test -f "$ac_dir/install.sh"; then
2600 ac_aux_dir=$ac_dir
2601 ac_install_sh="$ac_aux_dir/install.sh -c"
2602 break
2603 elif test -f "$ac_dir/shtool"; then
2604 ac_aux_dir=$ac_dir
2605 ac_install_sh="$ac_aux_dir/shtool install -c"
2606 break
2607 fi
2608 done
2609 if test -z "$ac_aux_dir"; then
2610 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2611 fi
2612
2613 # These three variables are undocumented and unsupported,
2614 # and are intended to be withdrawn in a future Autoconf release.
2615 # They can cause serious problems if a builder's source tree is in a directory
2616 # whose full name contains unusual characters.
2617 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2618 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2619 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2620
2621
2622 # Make sure we can run config.sub.
2623 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2624 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2625
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2627 $as_echo_n "checking build system type... " >&6; }
2628 if ${ac_cv_build+:} false; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 ac_build_alias=$build_alias
2632 test "x$ac_build_alias" = x &&
2633 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2634 test "x$ac_build_alias" = x &&
2635 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2636 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2637 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2638
2639 fi
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2641 $as_echo "$ac_cv_build" >&6; }
2642 case $ac_cv_build in
2643 *-*-*) ;;
2644 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2645 esac
2646 build=$ac_cv_build
2647 ac_save_IFS=$IFS; IFS='-'
2648 set x $ac_cv_build
2649 shift
2650 build_cpu=$1
2651 build_vendor=$2
2652 shift; shift
2653 # Remember, the first character of IFS is used to create $*,
2654 # except with old shells:
2655 build_os=$*
2656 IFS=$ac_save_IFS
2657 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2658
2659
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2661 $as_echo_n "checking host system type... " >&6; }
2662 if ${ac_cv_host+:} false; then :
2663 $as_echo_n "(cached) " >&6
2664 else
2665 if test "x$host_alias" = x; then
2666 ac_cv_host=$ac_cv_build
2667 else
2668 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2669 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2670 fi
2671
2672 fi
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2674 $as_echo "$ac_cv_host" >&6; }
2675 case $ac_cv_host in
2676 *-*-*) ;;
2677 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2678 esac
2679 host=$ac_cv_host
2680 ac_save_IFS=$IFS; IFS='-'
2681 set x $ac_cv_host
2682 shift
2683 host_cpu=$1
2684 host_vendor=$2
2685 shift; shift
2686 # Remember, the first character of IFS is used to create $*,
2687 # except with old shells:
2688 host_os=$*
2689 IFS=$ac_save_IFS
2690 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2691
2692
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2694 $as_echo_n "checking target system type... " >&6; }
2695 if ${ac_cv_target+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if test "x$target_alias" = x; then
2699 ac_cv_target=$ac_cv_host
2700 else
2701 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2702 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2703 fi
2704
2705 fi
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2707 $as_echo "$ac_cv_target" >&6; }
2708 case $ac_cv_target in
2709 *-*-*) ;;
2710 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2711 esac
2712 target=$ac_cv_target
2713 ac_save_IFS=$IFS; IFS='-'
2714 set x $ac_cv_target
2715 shift
2716 target_cpu=$1
2717 target_vendor=$2
2718 shift; shift
2719 # Remember, the first character of IFS is used to create $*,
2720 # except with old shells:
2721 target_os=$*
2722 IFS=$ac_save_IFS
2723 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2724
2725
2726 # The aliases save the names the user supplied, while $host etc.
2727 # will get canonicalized.
2728 test -n "$target_alias" &&
2729 test "$program_prefix$program_suffix$program_transform_name" = \
2730 NONENONEs,x,x, &&
2731 program_prefix=${target_alias}-
2732
2733 target_alias=${target_alias-$host_alias}
2734
2735 # Expand $ac_aux_dir to an absolute path.
2736 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2737
2738 ac_ext=c
2739 ac_cpp='$CPP $CPPFLAGS'
2740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743 if test -n "$ac_tool_prefix"; then
2744 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2745 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 $as_echo_n "checking for $ac_word... " >&6; }
2748 if ${ac_cv_prog_CC+:} false; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 if test -n "$CC"; then
2752 ac_cv_prog_CC="$CC" # Let the user override the test.
2753 else
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH
2756 do
2757 IFS=$as_save_IFS
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2761 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 break 2
2764 fi
2765 done
2766 done
2767 IFS=$as_save_IFS
2768
2769 fi
2770 fi
2771 CC=$ac_cv_prog_CC
2772 if test -n "$CC"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774 $as_echo "$CC" >&6; }
2775 else
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2778 fi
2779
2780
2781 fi
2782 if test -z "$ac_cv_prog_CC"; then
2783 ac_ct_CC=$CC
2784 # Extract the first word of "gcc", so it can be a program name with args.
2785 set dummy gcc; ac_word=$2
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test -n "$ac_ct_CC"; then
2792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2801 ac_cv_prog_ac_ct_CC="gcc"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 fi
2810 fi
2811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2812 if test -n "$ac_ct_CC"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2814 $as_echo "$ac_ct_CC" >&6; }
2815 else
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2818 fi
2819
2820 if test "x$ac_ct_CC" = x; then
2821 CC=""
2822 else
2823 case $cross_compiling:$ac_tool_warned in
2824 yes:)
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2827 ac_tool_warned=yes ;;
2828 esac
2829 CC=$ac_ct_CC
2830 fi
2831 else
2832 CC="$ac_cv_prog_CC"
2833 fi
2834
2835 if test -z "$CC"; then
2836 if test -n "$ac_tool_prefix"; then
2837 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}cc; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if ${ac_cv_prog_CC+:} false; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_CC="${ac_tool_prefix}cc"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 fi
2863 fi
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2868 else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2871 fi
2872
2873
2874 fi
2875 fi
2876 if test -z "$CC"; then
2877 # Extract the first word of "cc", so it can be a program name with args.
2878 set dummy cc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_CC+:} false; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2886 else
2887 ac_prog_rejected=no
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2896 ac_prog_rejected=yes
2897 continue
2898 fi
2899 ac_cv_prog_CC="cc"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903 done
2904 done
2905 IFS=$as_save_IFS
2906
2907 if test $ac_prog_rejected = yes; then
2908 # We found a bogon in the path, so make sure we never use it.
2909 set dummy $ac_cv_prog_CC
2910 shift
2911 if test $# != 0; then
2912 # We chose a different compiler from the bogus one.
2913 # However, it has the same basename, so the bogon will be chosen
2914 # first if we set CC to just the basename; use the full file name.
2915 shift
2916 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2917 fi
2918 fi
2919 fi
2920 fi
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924 $as_echo "$CC" >&6; }
2925 else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2928 fi
2929
2930
2931 fi
2932 if test -z "$CC"; then
2933 if test -n "$ac_tool_prefix"; then
2934 for ac_prog in cl.exe
2935 do
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if ${ac_cv_prog_CC+:} false; then :
2941 $as_echo_n "(cached) " >&6
2942 else
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC="$CC" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2956 fi
2957 done
2958 done
2959 IFS=$as_save_IFS
2960
2961 fi
2962 fi
2963 CC=$ac_cv_prog_CC
2964 if test -n "$CC"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2966 $as_echo "$CC" >&6; }
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2970 fi
2971
2972
2973 test -n "$CC" && break
2974 done
2975 fi
2976 if test -z "$CC"; then
2977 ac_ct_CC=$CC
2978 for ac_prog in cl.exe
2979 do
2980 # Extract the first word of "$ac_prog", so it can be a program name with args.
2981 set dummy $ac_prog; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 if test -n "$ac_ct_CC"; then
2988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_ac_ct_CC="$ac_prog"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3000 fi
3001 done
3002 done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008 if test -n "$ac_ct_CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3010 $as_echo "$ac_ct_CC" >&6; }
3011 else
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3014 fi
3015
3016
3017 test -n "$ac_ct_CC" && break
3018 done
3019
3020 if test "x$ac_ct_CC" = x; then
3021 CC=""
3022 else
3023 case $cross_compiling:$ac_tool_warned in
3024 yes:)
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3027 ac_tool_warned=yes ;;
3028 esac
3029 CC=$ac_ct_CC
3030 fi
3031 fi
3032
3033 fi
3034
3035
3036 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038 as_fn_error $? "no acceptable C compiler found in \$PATH
3039 See \`config.log' for more details" "$LINENO" 5; }
3040
3041 # Provide some information about the compiler.
3042 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3043 set X $ac_compile
3044 ac_compiler=$2
3045 for ac_option in --version -v -V -qversion; do
3046 { { ac_try="$ac_compiler $ac_option >&5"
3047 case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050 esac
3051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3052 $as_echo "$ac_try_echo"; } >&5
3053 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3054 ac_status=$?
3055 if test -s conftest.err; then
3056 sed '10a\
3057 ... rest of stderr output deleted ...
3058 10q' conftest.err >conftest.er1
3059 cat conftest.er1 >&5
3060 fi
3061 rm -f conftest.er1 conftest.err
3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 test $ac_status = 0; }
3064 done
3065
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h. */
3068
3069 int
3070 main ()
3071 {
3072
3073 ;
3074 return 0;
3075 }
3076 _ACEOF
3077 ac_clean_files_save=$ac_clean_files
3078 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3079 # Try to create an executable without -o first, disregard a.out.
3080 # It will help us diagnose broken compilers, and finding out an intuition
3081 # of exeext.
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3083 $as_echo_n "checking whether the C compiler works... " >&6; }
3084 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3085
3086 # The possible output files:
3087 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3088
3089 ac_rmfiles=
3090 for ac_file in $ac_files
3091 do
3092 case $ac_file in
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3094 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3095 esac
3096 done
3097 rm -f $ac_rmfiles
3098
3099 if { { ac_try="$ac_link_default"
3100 case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103 esac
3104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105 $as_echo "$ac_try_echo"; } >&5
3106 (eval "$ac_link_default") 2>&5
3107 ac_status=$?
3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109 test $ac_status = 0; }; then :
3110 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3111 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3112 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3113 # so that the user can short-circuit this test for compilers unknown to
3114 # Autoconf.
3115 for ac_file in $ac_files ''
3116 do
3117 test -f "$ac_file" || continue
3118 case $ac_file in
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3120 ;;
3121 [ab].out )
3122 # We found the default executable, but exeext='' is most
3123 # certainly right.
3124 break;;
3125 *.* )
3126 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3127 then :; else
3128 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3129 fi
3130 # We set ac_cv_exeext here because the later test for it is not
3131 # safe: cross compilers may not add the suffix if given an `-o'
3132 # argument, so we may need to know it at that point already.
3133 # Even if this section looks crufty: it has the advantage of
3134 # actually working.
3135 break;;
3136 * )
3137 break;;
3138 esac
3139 done
3140 test "$ac_cv_exeext" = no && ac_cv_exeext=
3141
3142 else
3143 ac_file=''
3144 fi
3145 if test -z "$ac_file"; then :
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 $as_echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
3151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 as_fn_error 77 "C compiler cannot create executables
3154 See \`config.log' for more details" "$LINENO" 5; }
3155 else
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3157 $as_echo "yes" >&6; }
3158 fi
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3160 $as_echo_n "checking for C compiler default output file name... " >&6; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3162 $as_echo "$ac_file" >&6; }
3163 ac_exeext=$ac_cv_exeext
3164
3165 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3166 ac_clean_files=$ac_clean_files_save
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3168 $as_echo_n "checking for suffix of executables... " >&6; }
3169 if { { ac_try="$ac_link"
3170 case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175 $as_echo "$ac_try_echo"; } >&5
3176 (eval "$ac_link") 2>&5
3177 ac_status=$?
3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179 test $ac_status = 0; }; then :
3180 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3181 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3182 # work properly (i.e., refer to `conftest.exe'), while it won't with
3183 # `rm'.
3184 for ac_file in conftest.exe conftest conftest.*; do
3185 test -f "$ac_file" || continue
3186 case $ac_file in
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3188 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3189 break;;
3190 * ) break;;
3191 esac
3192 done
3193 else
3194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3197 See \`config.log' for more details" "$LINENO" 5; }
3198 fi
3199 rm -f conftest conftest$ac_cv_exeext
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3201 $as_echo "$ac_cv_exeext" >&6; }
3202
3203 rm -f conftest.$ac_ext
3204 EXEEXT=$ac_cv_exeext
3205 ac_exeext=$EXEEXT
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3208 #include <stdio.h>
3209 int
3210 main ()
3211 {
3212 FILE *f = fopen ("conftest.out", "w");
3213 return ferror (f) || fclose (f) != 0;
3214
3215 ;
3216 return 0;
3217 }
3218 _ACEOF
3219 ac_clean_files="$ac_clean_files conftest.out"
3220 # Check that the compiler produces executables we can run. If not, either
3221 # the compiler is broken, or we cross compile.
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3223 $as_echo_n "checking whether we are cross compiling... " >&6; }
3224 if test "$cross_compiling" != yes; then
3225 { { ac_try="$ac_link"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_link") 2>&5
3233 ac_status=$?
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }
3236 if { ac_try='./conftest$ac_cv_exeext'
3237 { { case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3243 (eval "$ac_try") 2>&5
3244 ac_status=$?
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }; }; then
3247 cross_compiling=no
3248 else
3249 if test "$cross_compiling" = maybe; then
3250 cross_compiling=yes
3251 else
3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error $? "cannot run C compiled programs.
3255 If you meant to cross compile, use \`--host'.
3256 See \`config.log' for more details" "$LINENO" 5; }
3257 fi
3258 fi
3259 fi
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3261 $as_echo "$cross_compiling" >&6; }
3262
3263 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3264 ac_clean_files=$ac_clean_files_save
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3266 $as_echo_n "checking for suffix of object files... " >&6; }
3267 if ${ac_cv_objext+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3272
3273 int
3274 main ()
3275 {
3276
3277 ;
3278 return 0;
3279 }
3280 _ACEOF
3281 rm -f conftest.o conftest.obj
3282 if { { ac_try="$ac_compile"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_compile") 2>&5
3290 ac_status=$?
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }; then :
3293 for ac_file in conftest.o conftest.obj conftest.*; do
3294 test -f "$ac_file" || continue;
3295 case $ac_file in
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3297 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3298 break;;
3299 esac
3300 done
3301 else
3302 $as_echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error $? "cannot compute suffix of object files: cannot compile
3308 See \`config.log' for more details" "$LINENO" 5; }
3309 fi
3310 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3311 fi
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3313 $as_echo "$ac_cv_objext" >&6; }
3314 OBJEXT=$ac_cv_objext
3315 ac_objext=$OBJEXT
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3317 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3318 if ${ac_cv_c_compiler_gnu+:} false; then :
3319 $as_echo_n "(cached) " >&6
3320 else
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3323
3324 int
3325 main ()
3326 {
3327 #ifndef __GNUC__
3328 choke me
3329 #endif
3330
3331 ;
3332 return 0;
3333 }
3334 _ACEOF
3335 if ac_fn_c_try_compile "$LINENO"; then :
3336 ac_compiler_gnu=yes
3337 else
3338 ac_compiler_gnu=no
3339 fi
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3342
3343 fi
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3345 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3346 if test $ac_compiler_gnu = yes; then
3347 GCC=yes
3348 else
3349 GCC=
3350 fi
3351 ac_test_CFLAGS=${CFLAGS+set}
3352 ac_save_CFLAGS=$CFLAGS
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3354 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3355 if ${ac_cv_prog_cc_g+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 ac_save_c_werror_flag=$ac_c_werror_flag
3359 ac_c_werror_flag=yes
3360 ac_cv_prog_cc_g=no
3361 CFLAGS="-g"
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3364
3365 int
3366 main ()
3367 {
3368
3369 ;
3370 return 0;
3371 }
3372 _ACEOF
3373 if ac_fn_c_try_compile "$LINENO"; then :
3374 ac_cv_prog_cc_g=yes
3375 else
3376 CFLAGS=""
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3379
3380 int
3381 main ()
3382 {
3383
3384 ;
3385 return 0;
3386 }
3387 _ACEOF
3388 if ac_fn_c_try_compile "$LINENO"; then :
3389
3390 else
3391 ac_c_werror_flag=$ac_save_c_werror_flag
3392 CFLAGS="-g"
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3395
3396 int
3397 main ()
3398 {
3399
3400 ;
3401 return 0;
3402 }
3403 _ACEOF
3404 if ac_fn_c_try_compile "$LINENO"; then :
3405 ac_cv_prog_cc_g=yes
3406 fi
3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408 fi
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 fi
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 ac_c_werror_flag=$ac_save_c_werror_flag
3413 fi
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3415 $as_echo "$ac_cv_prog_cc_g" >&6; }
3416 if test "$ac_test_CFLAGS" = set; then
3417 CFLAGS=$ac_save_CFLAGS
3418 elif test $ac_cv_prog_cc_g = yes; then
3419 if test "$GCC" = yes; then
3420 CFLAGS="-g -O2"
3421 else
3422 CFLAGS="-g"
3423 fi
3424 else
3425 if test "$GCC" = yes; then
3426 CFLAGS="-O2"
3427 else
3428 CFLAGS=
3429 fi
3430 fi
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3432 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3433 if ${ac_cv_prog_cc_c89+:} false; then :
3434 $as_echo_n "(cached) " >&6
3435 else
3436 ac_cv_prog_cc_c89=no
3437 ac_save_CC=$CC
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3440 #include <stdarg.h>
3441 #include <stdio.h>
3442 struct stat;
3443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3444 struct buf { int x; };
3445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3446 static char *e (p, i)
3447 char **p;
3448 int i;
3449 {
3450 return p[i];
3451 }
3452 static char *f (char * (*g) (char **, int), char **p, ...)
3453 {
3454 char *s;
3455 va_list v;
3456 va_start (v,p);
3457 s = g (p, va_arg (v,int));
3458 va_end (v);
3459 return s;
3460 }
3461
3462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3463 function prototypes and stuff, but not '\xHH' hex character constants.
3464 These don't provoke an error unfortunately, instead are silently treated
3465 as 'x'. The following induces an error, until -std is added to get
3466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3467 array size at least. It's necessary to write '\x00'==0 to get something
3468 that's true only with -std. */
3469 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3470
3471 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3472 inside strings and character constants. */
3473 #define FOO(x) 'x'
3474 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3475
3476 int test (int i, double x);
3477 struct s1 {int (*f) (int a);};
3478 struct s2 {int (*f) (double a);};
3479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3480 int argc;
3481 char **argv;
3482 int
3483 main ()
3484 {
3485 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3486 ;
3487 return 0;
3488 }
3489 _ACEOF
3490 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3491 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3492 do
3493 CC="$ac_save_CC $ac_arg"
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_cv_prog_cc_c89=$ac_arg
3496 fi
3497 rm -f core conftest.err conftest.$ac_objext
3498 test "x$ac_cv_prog_cc_c89" != "xno" && break
3499 done
3500 rm -f conftest.$ac_ext
3501 CC=$ac_save_CC
3502
3503 fi
3504 # AC_CACHE_VAL
3505 case "x$ac_cv_prog_cc_c89" in
3506 x)
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3508 $as_echo "none needed" >&6; } ;;
3509 xno)
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3511 $as_echo "unsupported" >&6; } ;;
3512 *)
3513 CC="$CC $ac_cv_prog_cc_c89"
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3515 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3516 esac
3517 if test "x$ac_cv_prog_cc_c89" != xno; then :
3518
3519 fi
3520
3521 ac_ext=c
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3533 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3534 if ${am_cv_prog_cc_c_o+:} false; then :
3535 $as_echo_n "(cached) " >&6
3536 else
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3539
3540 int
3541 main ()
3542 {
3543
3544 ;
3545 return 0;
3546 }
3547 _ACEOF
3548 # Make sure it works both with $CC and with simple cc.
3549 # Following AC_PROG_CC_C_O, we do the test twice because some
3550 # compilers refuse to overwrite an existing .o file with -o,
3551 # though they will create one.
3552 am_cv_prog_cc_c_o=yes
3553 for am_i in 1 2; do
3554 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3555 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3556 ac_status=$?
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } \
3559 && test -f conftest2.$ac_objext; then
3560 : OK
3561 else
3562 am_cv_prog_cc_c_o=no
3563 break
3564 fi
3565 done
3566 rm -f core conftest*
3567 unset am_i
3568 fi
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3570 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3571 if test "$am_cv_prog_cc_c_o" != yes; then
3572 # Losing compiler, so override with the script.
3573 # FIXME: It is wrong to rewrite CC.
3574 # But if we don't then we get into trouble of one sort or another.
3575 # A longer-term fix would be to have automake use am__CC in this case,
3576 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3577 CC="$am_aux_dir/compile $CC"
3578 fi
3579 ac_ext=c
3580 ac_cpp='$CPP $CPPFLAGS'
3581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584
3585
3586
3587 ac_ext=c
3588 ac_cpp='$CPP $CPPFLAGS'
3589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3593 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3594 # On Suns, sometimes $CPP names a directory.
3595 if test -n "$CPP" && test -d "$CPP"; then
3596 CPP=
3597 fi
3598 if test -z "$CPP"; then
3599 if ${ac_cv_prog_CPP+:} false; then :
3600 $as_echo_n "(cached) " >&6
3601 else
3602 # Double quotes because CPP needs to be expanded
3603 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3604 do
3605 ac_preproc_ok=false
3606 for ac_c_preproc_warn_flag in '' yes
3607 do
3608 # Use a header file that comes with gcc, so configuring glibc
3609 # with a fresh cross-compiler works.
3610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3611 # <limits.h> exists even on freestanding compilers.
3612 # On the NeXT, cc -E runs the code through the compiler's parser,
3613 # not just through cpp. "Syntax error" is here to catch this case.
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3616 #ifdef __STDC__
3617 # include <limits.h>
3618 #else
3619 # include <assert.h>
3620 #endif
3621 Syntax error
3622 _ACEOF
3623 if ac_fn_c_try_cpp "$LINENO"; then :
3624
3625 else
3626 # Broken: fails on valid input.
3627 continue
3628 fi
3629 rm -f conftest.err conftest.i conftest.$ac_ext
3630
3631 # OK, works on sane cases. Now check whether nonexistent headers
3632 # can be detected and how.
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3635 #include <ac_nonexistent.h>
3636 _ACEOF
3637 if ac_fn_c_try_cpp "$LINENO"; then :
3638 # Broken: success on invalid input.
3639 continue
3640 else
3641 # Passes both tests.
3642 ac_preproc_ok=:
3643 break
3644 fi
3645 rm -f conftest.err conftest.i conftest.$ac_ext
3646
3647 done
3648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3649 rm -f conftest.i conftest.err conftest.$ac_ext
3650 if $ac_preproc_ok; then :
3651 break
3652 fi
3653
3654 done
3655 ac_cv_prog_CPP=$CPP
3656
3657 fi
3658 CPP=$ac_cv_prog_CPP
3659 else
3660 ac_cv_prog_CPP=$CPP
3661 fi
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3663 $as_echo "$CPP" >&6; }
3664 ac_preproc_ok=false
3665 for ac_c_preproc_warn_flag in '' yes
3666 do
3667 # Use a header file that comes with gcc, so configuring glibc
3668 # with a fresh cross-compiler works.
3669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3670 # <limits.h> exists even on freestanding compilers.
3671 # On the NeXT, cc -E runs the code through the compiler's parser,
3672 # not just through cpp. "Syntax error" is here to catch this case.
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3675 #ifdef __STDC__
3676 # include <limits.h>
3677 #else
3678 # include <assert.h>
3679 #endif
3680 Syntax error
3681 _ACEOF
3682 if ac_fn_c_try_cpp "$LINENO"; then :
3683
3684 else
3685 # Broken: fails on valid input.
3686 continue
3687 fi
3688 rm -f conftest.err conftest.i conftest.$ac_ext
3689
3690 # OK, works on sane cases. Now check whether nonexistent headers
3691 # can be detected and how.
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3694 #include <ac_nonexistent.h>
3695 _ACEOF
3696 if ac_fn_c_try_cpp "$LINENO"; then :
3697 # Broken: success on invalid input.
3698 continue
3699 else
3700 # Passes both tests.
3701 ac_preproc_ok=:
3702 break
3703 fi
3704 rm -f conftest.err conftest.i conftest.$ac_ext
3705
3706 done
3707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3708 rm -f conftest.i conftest.err conftest.$ac_ext
3709 if $ac_preproc_ok; then :
3710
3711 else
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3715 See \`config.log' for more details" "$LINENO" 5; }
3716 fi
3717
3718 ac_ext=c
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
3724
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3726 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3727 if ${ac_cv_path_GREP+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 if test -z "$GREP"; then
3731 ac_path_GREP_found=false
3732 # Loop through the user's path and test for each of PROGNAME-LIST
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3735 do
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
3738 for ac_prog in grep ggrep; do
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3741 as_fn_executable_p "$ac_path_GREP" || continue
3742 # Check for GNU ac_path_GREP and select it if it is found.
3743 # Check for GNU $ac_path_GREP
3744 case `"$ac_path_GREP" --version 2>&1` in
3745 *GNU*)
3746 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3747 *)
3748 ac_count=0
3749 $as_echo_n 0123456789 >"conftest.in"
3750 while :
3751 do
3752 cat "conftest.in" "conftest.in" >"conftest.tmp"
3753 mv "conftest.tmp" "conftest.in"
3754 cp "conftest.in" "conftest.nl"
3755 $as_echo 'GREP' >> "conftest.nl"
3756 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3758 as_fn_arith $ac_count + 1 && ac_count=$as_val
3759 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3760 # Best one so far, save it but keep looking for a better one
3761 ac_cv_path_GREP="$ac_path_GREP"
3762 ac_path_GREP_max=$ac_count
3763 fi
3764 # 10*(2^10) chars as input seems more than enough
3765 test $ac_count -gt 10 && break
3766 done
3767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3768 esac
3769
3770 $ac_path_GREP_found && break 3
3771 done
3772 done
3773 done
3774 IFS=$as_save_IFS
3775 if test -z "$ac_cv_path_GREP"; then
3776 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3777 fi
3778 else
3779 ac_cv_path_GREP=$GREP
3780 fi
3781
3782 fi
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3784 $as_echo "$ac_cv_path_GREP" >&6; }
3785 GREP="$ac_cv_path_GREP"
3786
3787
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3789 $as_echo_n "checking for egrep... " >&6; }
3790 if ${ac_cv_path_EGREP+:} false; then :
3791 $as_echo_n "(cached) " >&6
3792 else
3793 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3794 then ac_cv_path_EGREP="$GREP -E"
3795 else
3796 if test -z "$EGREP"; then
3797 ac_path_EGREP_found=false
3798 # Loop through the user's path and test for each of PROGNAME-LIST
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3801 do
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_prog in egrep; do
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3807 as_fn_executable_p "$ac_path_EGREP" || continue
3808 # Check for GNU ac_path_EGREP and select it if it is found.
3809 # Check for GNU $ac_path_EGREP
3810 case `"$ac_path_EGREP" --version 2>&1` in
3811 *GNU*)
3812 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3813 *)
3814 ac_count=0
3815 $as_echo_n 0123456789 >"conftest.in"
3816 while :
3817 do
3818 cat "conftest.in" "conftest.in" >"conftest.tmp"
3819 mv "conftest.tmp" "conftest.in"
3820 cp "conftest.in" "conftest.nl"
3821 $as_echo 'EGREP' >> "conftest.nl"
3822 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3824 as_fn_arith $ac_count + 1 && ac_count=$as_val
3825 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3826 # Best one so far, save it but keep looking for a better one
3827 ac_cv_path_EGREP="$ac_path_EGREP"
3828 ac_path_EGREP_max=$ac_count
3829 fi
3830 # 10*(2^10) chars as input seems more than enough
3831 test $ac_count -gt 10 && break
3832 done
3833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3834 esac
3835
3836 $ac_path_EGREP_found && break 3
3837 done
3838 done
3839 done
3840 IFS=$as_save_IFS
3841 if test -z "$ac_cv_path_EGREP"; then
3842 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3843 fi
3844 else
3845 ac_cv_path_EGREP=$EGREP
3846 fi
3847
3848 fi
3849 fi
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3851 $as_echo "$ac_cv_path_EGREP" >&6; }
3852 EGREP="$ac_cv_path_EGREP"
3853
3854
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3856 $as_echo_n "checking for ANSI C header files... " >&6; }
3857 if ${ac_cv_header_stdc+:} false; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862 #include <stdlib.h>
3863 #include <stdarg.h>
3864 #include <string.h>
3865 #include <float.h>
3866
3867 int
3868 main ()
3869 {
3870
3871 ;
3872 return 0;
3873 }
3874 _ACEOF
3875 if ac_fn_c_try_compile "$LINENO"; then :
3876 ac_cv_header_stdc=yes
3877 else
3878 ac_cv_header_stdc=no
3879 fi
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881
3882 if test $ac_cv_header_stdc = yes; then
3883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886 #include <string.h>
3887
3888 _ACEOF
3889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3890 $EGREP "memchr" >/dev/null 2>&1; then :
3891
3892 else
3893 ac_cv_header_stdc=no
3894 fi
3895 rm -f conftest*
3896
3897 fi
3898
3899 if test $ac_cv_header_stdc = yes; then
3900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3903 #include <stdlib.h>
3904
3905 _ACEOF
3906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3907 $EGREP "free" >/dev/null 2>&1; then :
3908
3909 else
3910 ac_cv_header_stdc=no
3911 fi
3912 rm -f conftest*
3913
3914 fi
3915
3916 if test $ac_cv_header_stdc = yes; then
3917 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3918 if test "$cross_compiling" = yes; then :
3919 :
3920 else
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 #include <ctype.h>
3924 #include <stdlib.h>
3925 #if ((' ' & 0x0FF) == 0x020)
3926 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3927 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3928 #else
3929 # define ISLOWER(c) \
3930 (('a' <= (c) && (c) <= 'i') \
3931 || ('j' <= (c) && (c) <= 'r') \
3932 || ('s' <= (c) && (c) <= 'z'))
3933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3934 #endif
3935
3936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3937 int
3938 main ()
3939 {
3940 int i;
3941 for (i = 0; i < 256; i++)
3942 if (XOR (islower (i), ISLOWER (i))
3943 || toupper (i) != TOUPPER (i))
3944 return 2;
3945 return 0;
3946 }
3947 _ACEOF
3948 if ac_fn_c_try_run "$LINENO"; then :
3949
3950 else
3951 ac_cv_header_stdc=no
3952 fi
3953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3954 conftest.$ac_objext conftest.beam conftest.$ac_ext
3955 fi
3956
3957 fi
3958 fi
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3960 $as_echo "$ac_cv_header_stdc" >&6; }
3961 if test $ac_cv_header_stdc = yes; then
3962
3963 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3964
3965 fi
3966
3967 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3968 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3969 inttypes.h stdint.h unistd.h
3970 do :
3971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3972 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3973 "
3974 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3975 cat >>confdefs.h <<_ACEOF
3976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3977 _ACEOF
3978
3979 fi
3980
3981 done
3982
3983
3984
3985 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3986 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3987 MINIX=yes
3988 else
3989 MINIX=
3990 fi
3991
3992
3993 if test "$MINIX" = yes; then
3994
3995 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3996
3997
3998 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3999
4000
4001 $as_echo "#define _MINIX 1" >>confdefs.h
4002
4003 fi
4004
4005
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4007 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4008 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4013
4014 # define __EXTENSIONS__ 1
4015 $ac_includes_default
4016 int
4017 main ()
4018 {
4019
4020 ;
4021 return 0;
4022 }
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025 ac_cv_safe_to_define___extensions__=yes
4026 else
4027 ac_cv_safe_to_define___extensions__=no
4028 fi
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4032 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4033 test $ac_cv_safe_to_define___extensions__ = yes &&
4034 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4035
4036 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4037
4038 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4039
4040 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4041
4042 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4043
4044
4045
4046 libtool_VERSION=1:0:0
4047
4048
4049 # 1.11.1: Require that version of automake.
4050 # foreign: Don't require README, INSTALL, NEWS, etc.
4051 # no-define: Don't define PACKAGE and VERSION.
4052 # no-dependencies: Don't generate automatic dependencies.
4053 # (because it breaks when using bootstrap-lean, since some of the
4054 # headers are gone at "make install" time).
4055 # -Wall: Issue all automake warnings.
4056 # -Wno-portability: Don't warn about constructs supported by GNU make.
4057 # (because GCC requires GNU make anyhow).
4058 am__api_version='1.15'
4059
4060 # Find a good install program. We prefer a C program (faster),
4061 # so one script is as good as another. But avoid the broken or
4062 # incompatible versions:
4063 # SysV /etc/install, /usr/sbin/install
4064 # SunOS /usr/etc/install
4065 # IRIX /sbin/install
4066 # AIX /bin/install
4067 # AmigaOS /C/install, which installs bootblocks on floppy discs
4068 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4069 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4070 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4071 # OS/2's system install, which has a completely different semantic
4072 # ./install, which can be erroneously created by make from ./install.sh.
4073 # Reject install programs that cannot install multiple files.
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4075 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4076 if test -z "$INSTALL"; then
4077 if ${ac_cv_path_install+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH
4082 do
4083 IFS=$as_save_IFS
4084 test -z "$as_dir" && as_dir=.
4085 # Account for people who put trailing slashes in PATH elements.
4086 case $as_dir/ in #((
4087 ./ | .// | /[cC]/* | \
4088 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4089 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4090 /usr/ucb/* ) ;;
4091 *)
4092 # OSF1 and SCO ODT 3.0 have their own names for install.
4093 # Don't use installbsd from OSF since it installs stuff as root
4094 # by default.
4095 for ac_prog in ginstall scoinst install; do
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4098 if test $ac_prog = install &&
4099 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4100 # AIX install. It has an incompatible calling convention.
4101 :
4102 elif test $ac_prog = install &&
4103 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4104 # program-specific install script used by HP pwplus--don't use.
4105 :
4106 else
4107 rm -rf conftest.one conftest.two conftest.dir
4108 echo one > conftest.one
4109 echo two > conftest.two
4110 mkdir conftest.dir
4111 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4112 test -s conftest.one && test -s conftest.two &&
4113 test -s conftest.dir/conftest.one &&
4114 test -s conftest.dir/conftest.two
4115 then
4116 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4117 break 3
4118 fi
4119 fi
4120 fi
4121 done
4122 done
4123 ;;
4124 esac
4125
4126 done
4127 IFS=$as_save_IFS
4128
4129 rm -rf conftest.one conftest.two conftest.dir
4130
4131 fi
4132 if test "${ac_cv_path_install+set}" = set; then
4133 INSTALL=$ac_cv_path_install
4134 else
4135 # As a last resort, use the slow shell script. Don't cache a
4136 # value for INSTALL within a source directory, because that will
4137 # break other packages using the cache if that directory is
4138 # removed, or if the value is a relative name.
4139 INSTALL=$ac_install_sh
4140 fi
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4143 $as_echo "$INSTALL" >&6; }
4144
4145 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4146 # It thinks the first close brace ends the variable substitution.
4147 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4148
4149 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4150
4151 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4152
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4154 $as_echo_n "checking whether build environment is sane... " >&6; }
4155 # Reject unsafe characters in $srcdir or the absolute working directory
4156 # name. Accept space and tab only in the latter.
4157 am_lf='
4158 '
4159 case `pwd` in
4160 *[\\\"\#\$\&\'\`$am_lf]*)
4161 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4162 esac
4163 case $srcdir in
4164 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4165 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4166 esac
4167
4168 # Do 'set' in a subshell so we don't clobber the current shell's
4169 # arguments. Must try -L first in case configure is actually a
4170 # symlink; some systems play weird games with the mod time of symlinks
4171 # (eg FreeBSD returns the mod time of the symlink's containing
4172 # directory).
4173 if (
4174 am_has_slept=no
4175 for am_try in 1 2; do
4176 echo "timestamp, slept: $am_has_slept" > conftest.file
4177 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4178 if test "$*" = "X"; then
4179 # -L didn't work.
4180 set X `ls -t "$srcdir/configure" conftest.file`
4181 fi
4182 if test "$*" != "X $srcdir/configure conftest.file" \
4183 && test "$*" != "X conftest.file $srcdir/configure"; then
4184
4185 # If neither matched, then we have a broken ls. This can happen
4186 # if, for instance, CONFIG_SHELL is bash and it inherits a
4187 # broken ls alias from the environment. This has actually
4188 # happened. Such a system could not be considered "sane".
4189 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4190 alias in your environment" "$LINENO" 5
4191 fi
4192 if test "$2" = conftest.file || test $am_try -eq 2; then
4193 break
4194 fi
4195 # Just in case.
4196 sleep 1
4197 am_has_slept=yes
4198 done
4199 test "$2" = conftest.file
4200 )
4201 then
4202 # Ok.
4203 :
4204 else
4205 as_fn_error $? "newly created file is older than distributed files!
4206 Check your system clock" "$LINENO" 5
4207 fi
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4209 $as_echo "yes" >&6; }
4210 # If we didn't sleep, we still need to ensure time stamps of config.status and
4211 # generated files are strictly newer.
4212 am_sleep_pid=
4213 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4214 ( sleep 1 ) &
4215 am_sleep_pid=$!
4216 fi
4217
4218 rm -f conftest.file
4219
4220 test "$program_prefix" != NONE &&
4221 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4222 # Use a double $ so make ignores it.
4223 test "$program_suffix" != NONE &&
4224 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4225 # Double any \ or $.
4226 # By default was `s,x,x', remove it if useless.
4227 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4228 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4229
4230 if test x"${MISSING+set}" != xset; then
4231 case $am_aux_dir in
4232 *\ * | *\ *)
4233 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4234 *)
4235 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4236 esac
4237 fi
4238 # Use eval to expand $SHELL
4239 if eval "$MISSING --is-lightweight"; then
4240 am_missing_run="$MISSING "
4241 else
4242 am_missing_run=
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4244 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4245 fi
4246
4247 if test x"${install_sh+set}" != xset; then
4248 case $am_aux_dir in
4249 *\ * | *\ *)
4250 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4251 *)
4252 install_sh="\${SHELL} $am_aux_dir/install-sh"
4253 esac
4254 fi
4255
4256 # Installed binaries are usually stripped using 'strip' when the user
4257 # run "make install-strip". However 'strip' might not be the right
4258 # tool to use in cross-compilation environments, therefore Automake
4259 # will honor the 'STRIP' environment variable to overrule this program.
4260 if test "$cross_compiling" != no; then
4261 if test -n "$ac_tool_prefix"; then
4262 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4263 set dummy ${ac_tool_prefix}strip; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_STRIP+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test -n "$STRIP"; then
4270 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4282 fi
4283 done
4284 done
4285 IFS=$as_save_IFS
4286
4287 fi
4288 fi
4289 STRIP=$ac_cv_prog_STRIP
4290 if test -n "$STRIP"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4292 $as_echo "$STRIP" >&6; }
4293 else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 fi
4297
4298
4299 fi
4300 if test -z "$ac_cv_prog_STRIP"; then
4301 ac_ct_STRIP=$STRIP
4302 # Extract the first word of "strip", so it can be a program name with args.
4303 set dummy strip; ac_word=$2
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305 $as_echo_n "checking for $ac_word... " >&6; }
4306 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if test -n "$ac_ct_STRIP"; then
4310 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4314 do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4319 ac_cv_prog_ac_ct_STRIP="strip"
4320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 break 2
4322 fi
4323 done
4324 done
4325 IFS=$as_save_IFS
4326
4327 fi
4328 fi
4329 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4330 if test -n "$ac_ct_STRIP"; then
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4332 $as_echo "$ac_ct_STRIP" >&6; }
4333 else
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335 $as_echo "no" >&6; }
4336 fi
4337
4338 if test "x$ac_ct_STRIP" = x; then
4339 STRIP=":"
4340 else
4341 case $cross_compiling:$ac_tool_warned in
4342 yes:)
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4345 ac_tool_warned=yes ;;
4346 esac
4347 STRIP=$ac_ct_STRIP
4348 fi
4349 else
4350 STRIP="$ac_cv_prog_STRIP"
4351 fi
4352
4353 fi
4354 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4355
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4357 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4358 if test -z "$MKDIR_P"; then
4359 if ${ac_cv_path_mkdir+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4364 do
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_prog in mkdir gmkdir; do
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4370 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4371 'mkdir (GNU coreutils) '* | \
4372 'mkdir (coreutils) '* | \
4373 'mkdir (fileutils) '4.1*)
4374 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4375 break 3;;
4376 esac
4377 done
4378 done
4379 done
4380 IFS=$as_save_IFS
4381
4382 fi
4383
4384 test -d ./--version && rmdir ./--version
4385 if test "${ac_cv_path_mkdir+set}" = set; then
4386 MKDIR_P="$ac_cv_path_mkdir -p"
4387 else
4388 # As a last resort, use the slow shell script. Don't cache a
4389 # value for MKDIR_P within a source directory, because that will
4390 # break other packages using the cache if that directory is
4391 # removed, or if the value is a relative name.
4392 MKDIR_P="$ac_install_sh -d"
4393 fi
4394 fi
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4396 $as_echo "$MKDIR_P" >&6; }
4397
4398 for ac_prog in gawk mawk nawk awk
4399 do
4400 # Extract the first word of "$ac_prog", so it can be a program name with args.
4401 set dummy $ac_prog; ac_word=$2
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 $as_echo_n "checking for $ac_word... " >&6; }
4404 if ${ac_cv_prog_AWK+:} false; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 if test -n "$AWK"; then
4408 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4409 else
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4412 do
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4417 ac_cv_prog_AWK="$ac_prog"
4418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 break 2
4420 fi
4421 done
4422 done
4423 IFS=$as_save_IFS
4424
4425 fi
4426 fi
4427 AWK=$ac_cv_prog_AWK
4428 if test -n "$AWK"; then
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4430 $as_echo "$AWK" >&6; }
4431 else
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 $as_echo "no" >&6; }
4434 fi
4435
4436
4437 test -n "$AWK" && break
4438 done
4439
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4441 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4442 set x ${MAKE-make}
4443 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4444 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 cat >conftest.make <<\_ACEOF
4448 SHELL = /bin/sh
4449 all:
4450 @echo '@@@%%%=$(MAKE)=@@@%%%'
4451 _ACEOF
4452 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4453 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4454 *@@@%%%=?*=@@@%%%*)
4455 eval ac_cv_prog_make_${ac_make}_set=yes;;
4456 *)
4457 eval ac_cv_prog_make_${ac_make}_set=no;;
4458 esac
4459 rm -f conftest.make
4460 fi
4461 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4463 $as_echo "yes" >&6; }
4464 SET_MAKE=
4465 else
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4468 SET_MAKE="MAKE=${MAKE-make}"
4469 fi
4470
4471 rm -rf .tst 2>/dev/null
4472 mkdir .tst 2>/dev/null
4473 if test -d .tst; then
4474 am__leading_dot=.
4475 else
4476 am__leading_dot=_
4477 fi
4478 rmdir .tst 2>/dev/null
4479
4480 # Check whether --enable-silent-rules was given.
4481 if test "${enable_silent_rules+set}" = set; then :
4482 enableval=$enable_silent_rules;
4483 fi
4484
4485 case $enable_silent_rules in # (((
4486 yes) AM_DEFAULT_VERBOSITY=0;;
4487 no) AM_DEFAULT_VERBOSITY=1;;
4488 *) AM_DEFAULT_VERBOSITY=1;;
4489 esac
4490 am_make=${MAKE-make}
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4492 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4493 if ${am_cv_make_support_nested_variables+:} false; then :
4494 $as_echo_n "(cached) " >&6
4495 else
4496 if $as_echo 'TRUE=$(BAR$(V))
4497 BAR0=false
4498 BAR1=true
4499 V=1
4500 am__doit:
4501 @$(TRUE)
4502 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4503 am_cv_make_support_nested_variables=yes
4504 else
4505 am_cv_make_support_nested_variables=no
4506 fi
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4509 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4510 if test $am_cv_make_support_nested_variables = yes; then
4511 AM_V='$(V)'
4512 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4513 else
4514 AM_V=$AM_DEFAULT_VERBOSITY
4515 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4516 fi
4517 AM_BACKSLASH='\'
4518
4519 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4520 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4521 # is not polluted with repeated "-I."
4522 am__isrc=' -I$(srcdir)'
4523 # test to see if srcdir already configured
4524 if test -f $srcdir/config.status; then
4525 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4526 fi
4527 fi
4528
4529 # test whether we have cygpath
4530 if test -z "$CYGPATH_W"; then
4531 if (cygpath --version) >/dev/null 2>/dev/null; then
4532 CYGPATH_W='cygpath -w'
4533 else
4534 CYGPATH_W=echo
4535 fi
4536 fi
4537
4538
4539 # Define the identity of the package.
4540 PACKAGE='libbacktrace'
4541 VERSION='version-unused'
4542
4543
4544 # Some tools Automake needs.
4545
4546 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4547
4548
4549 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4550
4551
4552 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4553
4554
4555 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4556
4557
4558 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4559
4560 # For better backward compatibility. To be removed once Automake 1.9.x
4561 # dies out for good. For more background, see:
4562 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4563 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4564 mkdir_p='$(MKDIR_P)'
4565
4566 # We need awk for the "check" target (and possibly the TAP driver). The
4567 # system "awk" is bad on some platforms.
4568 # Always define AMTAR for backward compatibility. Yes, it's still used
4569 # in the wild :-( We should find a proper way to deprecate it ...
4570 AMTAR='$${TAR-tar}'
4571
4572
4573 # We'll loop over all known methods to create a tar archive until one works.
4574 _am_tools='gnutar pax cpio none'
4575
4576 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4577
4578
4579
4580
4581
4582
4583 # POSIX will say in a future version that running "rm -f" with no argument
4584 # is OK; and we want to be able to make that assumption in our Makefile
4585 # recipes. So use an aggressive probe to check that the usage we want is
4586 # actually supported "in the wild" to an acceptable degree.
4587 # See automake bug#10828.
4588 # To make any issue more visible, cause the running configure to be aborted
4589 # by default if the 'rm' program in use doesn't match our expectations; the
4590 # user can still override this though.
4591 if rm -f && rm -fr && rm -rf; then : OK; else
4592 cat >&2 <<'END'
4593 Oops!
4594
4595 Your 'rm' program seems unable to run without file operands specified
4596 on the command line, even when the '-f' option is present. This is contrary
4597 to the behaviour of most rm programs out there, and not conforming with
4598 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4599
4600 Please tell bug-automake@gnu.org about your system, including the value
4601 of your $PATH and any error possibly output before this message. This
4602 can help us improve future automake versions.
4603
4604 END
4605 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4606 echo 'Configuration will proceed anyway, since you have set the' >&2
4607 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4608 echo >&2
4609 else
4610 cat >&2 <<'END'
4611 Aborting the configuration process, to ensure you take notice of the issue.
4612
4613 You can download and install GNU coreutils to get an 'rm' implementation
4614 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4615
4616 If you want to complete the configuration process using your problematic
4617 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4618 to "yes", and re-run configure.
4619
4620 END
4621 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4622 fi
4623 fi
4624
4625
4626
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4628 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4629 # Check whether --enable-maintainer-mode was given.
4630 if test "${enable_maintainer_mode+set}" = set; then :
4631 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4632 else
4633 USE_MAINTAINER_MODE=no
4634 fi
4635
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4637 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4638 if test $USE_MAINTAINER_MODE = yes; then
4639 MAINTAINER_MODE_TRUE=
4640 MAINTAINER_MODE_FALSE='#'
4641 else
4642 MAINTAINER_MODE_TRUE='#'
4643 MAINTAINER_MODE_FALSE=
4644 fi
4645
4646 MAINT=$MAINTAINER_MODE_TRUE
4647
4648
4649
4650
4651 # Check whether --with-target-subdir was given.
4652 if test "${with_target_subdir+set}" = set; then :
4653 withval=$with_target_subdir;
4654 fi
4655
4656
4657 # We must force CC to /not/ be precious variables; otherwise
4658 # the wrong, non-multilib-adjusted value will be used in multilibs.
4659 # As a side effect, we have to subst CFLAGS ourselves.
4660
4661
4662 ac_ext=c
4663 ac_cpp='$CPP $CPPFLAGS'
4664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4667 if test -n "$ac_tool_prefix"; then
4668 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4669 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if ${ac_cv_prog_CC+:} false; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if test -n "$CC"; then
4676 ac_cv_prog_CC="$CC" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4685 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4688 fi
4689 done
4690 done
4691 IFS=$as_save_IFS
4692
4693 fi
4694 fi
4695 CC=$ac_cv_prog_CC
4696 if test -n "$CC"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4698 $as_echo "$CC" >&6; }
4699 else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4702 fi
4703
4704
4705 fi
4706 if test -z "$ac_cv_prog_CC"; then
4707 ac_ct_CC=$CC
4708 # Extract the first word of "gcc", so it can be a program name with args.
4709 set dummy gcc; ac_word=$2
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 if test -n "$ac_ct_CC"; then
4716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4717 else
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4725 ac_cv_prog_ac_ct_CC="gcc"
4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 break 2
4728 fi
4729 done
4730 done
4731 IFS=$as_save_IFS
4732
4733 fi
4734 fi
4735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4736 if test -n "$ac_ct_CC"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4738 $as_echo "$ac_ct_CC" >&6; }
4739 else
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 $as_echo "no" >&6; }
4742 fi
4743
4744 if test "x$ac_ct_CC" = x; then
4745 CC=""
4746 else
4747 case $cross_compiling:$ac_tool_warned in
4748 yes:)
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4751 ac_tool_warned=yes ;;
4752 esac
4753 CC=$ac_ct_CC
4754 fi
4755 else
4756 CC="$ac_cv_prog_CC"
4757 fi
4758
4759 if test -z "$CC"; then
4760 if test -n "$ac_tool_prefix"; then
4761 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4762 set dummy ${ac_tool_prefix}cc; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if ${ac_cv_prog_CC+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 if test -n "$CC"; then
4769 ac_cv_prog_CC="$CC" # Let the user override the test.
4770 else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4773 do
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4778 ac_cv_prog_CC="${ac_tool_prefix}cc"
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4781 fi
4782 done
4783 done
4784 IFS=$as_save_IFS
4785
4786 fi
4787 fi
4788 CC=$ac_cv_prog_CC
4789 if test -n "$CC"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4791 $as_echo "$CC" >&6; }
4792 else
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4795 fi
4796
4797
4798 fi
4799 fi
4800 if test -z "$CC"; then
4801 # Extract the first word of "cc", so it can be a program name with args.
4802 set dummy cc; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if ${ac_cv_prog_CC+:} false; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 if test -n "$CC"; then
4809 ac_cv_prog_CC="$CC" # Let the user override the test.
4810 else
4811 ac_prog_rejected=no
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4820 ac_prog_rejected=yes
4821 continue
4822 fi
4823 ac_cv_prog_CC="cc"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4826 fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831 if test $ac_prog_rejected = yes; then
4832 # We found a bogon in the path, so make sure we never use it.
4833 set dummy $ac_cv_prog_CC
4834 shift
4835 if test $# != 0; then
4836 # We chose a different compiler from the bogus one.
4837 # However, it has the same basename, so the bogon will be chosen
4838 # first if we set CC to just the basename; use the full file name.
4839 shift
4840 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4841 fi
4842 fi
4843 fi
4844 fi
4845 CC=$ac_cv_prog_CC
4846 if test -n "$CC"; then
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4848 $as_echo "$CC" >&6; }
4849 else
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4852 fi
4853
4854
4855 fi
4856 if test -z "$CC"; then
4857 if test -n "$ac_tool_prefix"; then
4858 for ac_prog in cl.exe
4859 do
4860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if ${ac_cv_prog_CC+:} false; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 if test -n "$CC"; then
4868 ac_cv_prog_CC="$CC" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 fi
4886 fi
4887 CC=$ac_cv_prog_CC
4888 if test -n "$CC"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4890 $as_echo "$CC" >&6; }
4891 else
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4894 fi
4895
4896
4897 test -n "$CC" && break
4898 done
4899 fi
4900 if test -z "$CC"; then
4901 ac_ct_CC=$CC
4902 for ac_prog in cl.exe
4903 do
4904 # Extract the first word of "$ac_prog", so it can be a program name with args.
4905 set dummy $ac_prog; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 if test -n "$ac_ct_CC"; then
4912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4921 ac_cv_prog_ac_ct_CC="$ac_prog"
4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 break 2
4924 fi
4925 done
4926 done
4927 IFS=$as_save_IFS
4928
4929 fi
4930 fi
4931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4932 if test -n "$ac_ct_CC"; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4934 $as_echo "$ac_ct_CC" >&6; }
4935 else
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4938 fi
4939
4940
4941 test -n "$ac_ct_CC" && break
4942 done
4943
4944 if test "x$ac_ct_CC" = x; then
4945 CC=""
4946 else
4947 case $cross_compiling:$ac_tool_warned in
4948 yes:)
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4951 ac_tool_warned=yes ;;
4952 esac
4953 CC=$ac_ct_CC
4954 fi
4955 fi
4956
4957 fi
4958
4959
4960 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4962 as_fn_error $? "no acceptable C compiler found in \$PATH
4963 See \`config.log' for more details" "$LINENO" 5; }
4964
4965 # Provide some information about the compiler.
4966 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4967 set X $ac_compile
4968 ac_compiler=$2
4969 for ac_option in --version -v -V -qversion; do
4970 { { ac_try="$ac_compiler $ac_option >&5"
4971 case "(($ac_try" in
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4974 esac
4975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4976 $as_echo "$ac_try_echo"; } >&5
4977 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4978 ac_status=$?
4979 if test -s conftest.err; then
4980 sed '10a\
4981 ... rest of stderr output deleted ...
4982 10q' conftest.err >conftest.er1
4983 cat conftest.er1 >&5
4984 fi
4985 rm -f conftest.er1 conftest.err
4986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4987 test $ac_status = 0; }
4988 done
4989
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4991 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4992 if ${ac_cv_c_compiler_gnu+:} false; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4997
4998 int
4999 main ()
5000 {
5001 #ifndef __GNUC__
5002 choke me
5003 #endif
5004
5005 ;
5006 return 0;
5007 }
5008 _ACEOF
5009 if ac_fn_c_try_compile "$LINENO"; then :
5010 ac_compiler_gnu=yes
5011 else
5012 ac_compiler_gnu=no
5013 fi
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5016
5017 fi
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5019 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5020 if test $ac_compiler_gnu = yes; then
5021 GCC=yes
5022 else
5023 GCC=
5024 fi
5025 ac_test_CFLAGS=${CFLAGS+set}
5026 ac_save_CFLAGS=$CFLAGS
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5028 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5029 if ${ac_cv_prog_cc_g+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 ac_save_c_werror_flag=$ac_c_werror_flag
5033 ac_c_werror_flag=yes
5034 ac_cv_prog_cc_g=no
5035 CFLAGS="-g"
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5038
5039 int
5040 main ()
5041 {
5042
5043 ;
5044 return 0;
5045 }
5046 _ACEOF
5047 if ac_fn_c_try_compile "$LINENO"; then :
5048 ac_cv_prog_cc_g=yes
5049 else
5050 CFLAGS=""
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053
5054 int
5055 main ()
5056 {
5057
5058 ;
5059 return 0;
5060 }
5061 _ACEOF
5062 if ac_fn_c_try_compile "$LINENO"; then :
5063
5064 else
5065 ac_c_werror_flag=$ac_save_c_werror_flag
5066 CFLAGS="-g"
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069
5070 int
5071 main ()
5072 {
5073
5074 ;
5075 return 0;
5076 }
5077 _ACEOF
5078 if ac_fn_c_try_compile "$LINENO"; then :
5079 ac_cv_prog_cc_g=yes
5080 fi
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 fi
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084 fi
5085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 ac_c_werror_flag=$ac_save_c_werror_flag
5087 fi
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5089 $as_echo "$ac_cv_prog_cc_g" >&6; }
5090 if test "$ac_test_CFLAGS" = set; then
5091 CFLAGS=$ac_save_CFLAGS
5092 elif test $ac_cv_prog_cc_g = yes; then
5093 if test "$GCC" = yes; then
5094 CFLAGS="-g -O2"
5095 else
5096 CFLAGS="-g"
5097 fi
5098 else
5099 if test "$GCC" = yes; then
5100 CFLAGS="-O2"
5101 else
5102 CFLAGS=
5103 fi
5104 fi
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5106 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5107 if ${ac_cv_prog_cc_c89+:} false; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 ac_cv_prog_cc_c89=no
5111 ac_save_CC=$CC
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5114 #include <stdarg.h>
5115 #include <stdio.h>
5116 struct stat;
5117 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5118 struct buf { int x; };
5119 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5120 static char *e (p, i)
5121 char **p;
5122 int i;
5123 {
5124 return p[i];
5125 }
5126 static char *f (char * (*g) (char **, int), char **p, ...)
5127 {
5128 char *s;
5129 va_list v;
5130 va_start (v,p);
5131 s = g (p, va_arg (v,int));
5132 va_end (v);
5133 return s;
5134 }
5135
5136 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5137 function prototypes and stuff, but not '\xHH' hex character constants.
5138 These don't provoke an error unfortunately, instead are silently treated
5139 as 'x'. The following induces an error, until -std is added to get
5140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5141 array size at least. It's necessary to write '\x00'==0 to get something
5142 that's true only with -std. */
5143 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5144
5145 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5146 inside strings and character constants. */
5147 #define FOO(x) 'x'
5148 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5149
5150 int test (int i, double x);
5151 struct s1 {int (*f) (int a);};
5152 struct s2 {int (*f) (double a);};
5153 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5154 int argc;
5155 char **argv;
5156 int
5157 main ()
5158 {
5159 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5160 ;
5161 return 0;
5162 }
5163 _ACEOF
5164 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5165 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5166 do
5167 CC="$ac_save_CC $ac_arg"
5168 if ac_fn_c_try_compile "$LINENO"; then :
5169 ac_cv_prog_cc_c89=$ac_arg
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext
5172 test "x$ac_cv_prog_cc_c89" != "xno" && break
5173 done
5174 rm -f conftest.$ac_ext
5175 CC=$ac_save_CC
5176
5177 fi
5178 # AC_CACHE_VAL
5179 case "x$ac_cv_prog_cc_c89" in
5180 x)
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5182 $as_echo "none needed" >&6; } ;;
5183 xno)
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5185 $as_echo "unsupported" >&6; } ;;
5186 *)
5187 CC="$CC $ac_cv_prog_cc_c89"
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5189 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5190 esac
5191 if test "x$ac_cv_prog_cc_c89" != xno; then :
5192
5193 fi
5194
5195 ac_ext=c
5196 ac_cpp='$CPP $CPPFLAGS'
5197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5200
5201 ac_ext=c
5202 ac_cpp='$CPP $CPPFLAGS'
5203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5207 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5208 if ${am_cv_prog_cc_c_o+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213
5214 int
5215 main ()
5216 {
5217
5218 ;
5219 return 0;
5220 }
5221 _ACEOF
5222 # Make sure it works both with $CC and with simple cc.
5223 # Following AC_PROG_CC_C_O, we do the test twice because some
5224 # compilers refuse to overwrite an existing .o file with -o,
5225 # though they will create one.
5226 am_cv_prog_cc_c_o=yes
5227 for am_i in 1 2; do
5228 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5229 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5230 ac_status=$?
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } \
5233 && test -f conftest2.$ac_objext; then
5234 : OK
5235 else
5236 am_cv_prog_cc_c_o=no
5237 break
5238 fi
5239 done
5240 rm -f core conftest*
5241 unset am_i
5242 fi
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5244 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5245 if test "$am_cv_prog_cc_c_o" != yes; then
5246 # Losing compiler, so override with the script.
5247 # FIXME: It is wrong to rewrite CC.
5248 # But if we don't then we get into trouble of one sort or another.
5249 # A longer-term fix would be to have automake use am__CC in this case,
5250 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5251 CC="$am_aux_dir/compile $CC"
5252 fi
5253 ac_ext=c
5254 ac_cpp='$CPP $CPPFLAGS'
5255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258
5259
5260
5261
5262
5263
5264 if test -n "$ac_tool_prefix"; then
5265 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5266 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if ${ac_cv_prog_RANLIB+:} false; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if test -n "$RANLIB"; then
5273 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5285 fi
5286 done
5287 done
5288 IFS=$as_save_IFS
5289
5290 fi
5291 fi
5292 RANLIB=$ac_cv_prog_RANLIB
5293 if test -n "$RANLIB"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5295 $as_echo "$RANLIB" >&6; }
5296 else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5299 fi
5300
5301
5302 fi
5303 if test -z "$ac_cv_prog_RANLIB"; then
5304 ac_ct_RANLIB=$RANLIB
5305 # Extract the first word of "ranlib", so it can be a program name with args.
5306 set dummy ranlib; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 if test -n "$ac_ct_RANLIB"; then
5313 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5314 else
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5322 ac_cv_prog_ac_ct_RANLIB="ranlib"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 break 2
5325 fi
5326 done
5327 done
5328 IFS=$as_save_IFS
5329
5330 fi
5331 fi
5332 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5333 if test -n "$ac_ct_RANLIB"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5335 $as_echo "$ac_ct_RANLIB" >&6; }
5336 else
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 fi
5340
5341 if test "x$ac_ct_RANLIB" = x; then
5342 RANLIB=":"
5343 else
5344 case $cross_compiling:$ac_tool_warned in
5345 yes:)
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5348 ac_tool_warned=yes ;;
5349 esac
5350 RANLIB=$ac_ct_RANLIB
5351 fi
5352 else
5353 RANLIB="$ac_cv_prog_RANLIB"
5354 fi
5355
5356
5357 for ac_prog in gawk mawk nawk awk
5358 do
5359 # Extract the first word of "$ac_prog", so it can be a program name with args.
5360 set dummy $ac_prog; ac_word=$2
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362 $as_echo_n "checking for $ac_word... " >&6; }
5363 if ${ac_cv_prog_AWK+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 if test -n "$AWK"; then
5367 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5368 else
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5371 do
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376 ac_cv_prog_AWK="$ac_prog"
5377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 break 2
5379 fi
5380 done
5381 done
5382 IFS=$as_save_IFS
5383
5384 fi
5385 fi
5386 AWK=$ac_cv_prog_AWK
5387 if test -n "$AWK"; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5389 $as_echo "$AWK" >&6; }
5390 else
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5393 fi
5394
5395
5396 test -n "$AWK" && break
5397 done
5398
5399 case "$AWK" in
5400 "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
5401 esac
5402
5403 # Extract the first word of "dwz", so it can be a program name with args.
5404 set dummy dwz; ac_word=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if ${ac_cv_prog_DWZ+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 if test -n "$DWZ"; then
5411 ac_cv_prog_DWZ="$DWZ" # Let the user override the test.
5412 else
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5415 do
5416 IFS=$as_save_IFS
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420 ac_cv_prog_DWZ="dwz"
5421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 break 2
5423 fi
5424 done
5425 done
5426 IFS=$as_save_IFS
5427
5428 fi
5429 fi
5430 DWZ=$ac_cv_prog_DWZ
5431 if test -n "$DWZ"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DWZ" >&5
5433 $as_echo "$DWZ" >&6; }
5434 else
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5437 fi
5438
5439
5440 if test "$DWZ" != ""; then
5441 HAVE_DWZ_TRUE=
5442 HAVE_DWZ_FALSE='#'
5443 else
5444 HAVE_DWZ_TRUE='#'
5445 HAVE_DWZ_FALSE=
5446 fi
5447
5448
5449 case `pwd` in
5450 *\ * | *\ *)
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5452 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5453 esac
5454
5455
5456
5457 macro_version='2.2.7a'
5458 macro_revision='1.3134'
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472 ltmain="$ac_aux_dir/ltmain.sh"
5473
5474 # Backslashify metacharacters that are still active within
5475 # double-quoted strings.
5476 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5477
5478 # Same as above, but do not quote variable references.
5479 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5480
5481 # Sed substitution to delay expansion of an escaped shell variable in a
5482 # double_quote_subst'ed string.
5483 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5484
5485 # Sed substitution to delay expansion of an escaped single quote.
5486 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5487
5488 # Sed substitution to avoid accidental globbing in evaled expressions
5489 no_glob_subst='s/\*/\\\*/g'
5490
5491 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5492 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5493 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5494
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5496 $as_echo_n "checking how to print strings... " >&6; }
5497 # Test print first, because it will be a builtin if present.
5498 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5499 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5500 ECHO='print -r --'
5501 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5502 ECHO='printf %s\n'
5503 else
5504 # Use this function as a fallback that always works.
5505 func_fallback_echo ()
5506 {
5507 eval 'cat <<_LTECHO_EOF
5508 $1
5509 _LTECHO_EOF'
5510 }
5511 ECHO='func_fallback_echo'
5512 fi
5513
5514 # func_echo_all arg...
5515 # Invoke $ECHO with all args, space-separated.
5516 func_echo_all ()
5517 {
5518 $ECHO ""
5519 }
5520
5521 case "$ECHO" in
5522 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5523 $as_echo "printf" >&6; } ;;
5524 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5525 $as_echo "print -r" >&6; } ;;
5526 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5527 $as_echo "cat" >&6; } ;;
5528 esac
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5544 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5545 if ${ac_cv_path_SED+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5549 for ac_i in 1 2 3 4 5 6 7; do
5550 ac_script="$ac_script$as_nl$ac_script"
5551 done
5552 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5553 { ac_script=; unset ac_script;}
5554 if test -z "$SED"; then
5555 ac_path_SED_found=false
5556 # Loop through the user's path and test for each of PROGNAME-LIST
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5559 do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_prog in sed gsed; do
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5565 as_fn_executable_p "$ac_path_SED" || continue
5566 # Check for GNU ac_path_SED and select it if it is found.
5567 # Check for GNU $ac_path_SED
5568 case `"$ac_path_SED" --version 2>&1` in
5569 *GNU*)
5570 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5571 *)
5572 ac_count=0
5573 $as_echo_n 0123456789 >"conftest.in"
5574 while :
5575 do
5576 cat "conftest.in" "conftest.in" >"conftest.tmp"
5577 mv "conftest.tmp" "conftest.in"
5578 cp "conftest.in" "conftest.nl"
5579 $as_echo '' >> "conftest.nl"
5580 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5582 as_fn_arith $ac_count + 1 && ac_count=$as_val
5583 if test $ac_count -gt ${ac_path_SED_max-0}; then
5584 # Best one so far, save it but keep looking for a better one
5585 ac_cv_path_SED="$ac_path_SED"
5586 ac_path_SED_max=$ac_count
5587 fi
5588 # 10*(2^10) chars as input seems more than enough
5589 test $ac_count -gt 10 && break
5590 done
5591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5592 esac
5593
5594 $ac_path_SED_found && break 3
5595 done
5596 done
5597 done
5598 IFS=$as_save_IFS
5599 if test -z "$ac_cv_path_SED"; then
5600 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5601 fi
5602 else
5603 ac_cv_path_SED=$SED
5604 fi
5605
5606 fi
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5608 $as_echo "$ac_cv_path_SED" >&6; }
5609 SED="$ac_cv_path_SED"
5610 rm -f conftest.sed
5611
5612 test -z "$SED" && SED=sed
5613 Xsed="$SED -e 1s/^X//"
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5626 $as_echo_n "checking for fgrep... " >&6; }
5627 if ${ac_cv_path_FGREP+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5631 then ac_cv_path_FGREP="$GREP -F"
5632 else
5633 if test -z "$FGREP"; then
5634 ac_path_FGREP_found=false
5635 # Loop through the user's path and test for each of PROGNAME-LIST
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5638 do
5639 IFS=$as_save_IFS
5640 test -z "$as_dir" && as_dir=.
5641 for ac_prog in fgrep; do
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5644 as_fn_executable_p "$ac_path_FGREP" || continue
5645 # Check for GNU ac_path_FGREP and select it if it is found.
5646 # Check for GNU $ac_path_FGREP
5647 case `"$ac_path_FGREP" --version 2>&1` in
5648 *GNU*)
5649 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5650 *)
5651 ac_count=0
5652 $as_echo_n 0123456789 >"conftest.in"
5653 while :
5654 do
5655 cat "conftest.in" "conftest.in" >"conftest.tmp"
5656 mv "conftest.tmp" "conftest.in"
5657 cp "conftest.in" "conftest.nl"
5658 $as_echo 'FGREP' >> "conftest.nl"
5659 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5661 as_fn_arith $ac_count + 1 && ac_count=$as_val
5662 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5663 # Best one so far, save it but keep looking for a better one
5664 ac_cv_path_FGREP="$ac_path_FGREP"
5665 ac_path_FGREP_max=$ac_count
5666 fi
5667 # 10*(2^10) chars as input seems more than enough
5668 test $ac_count -gt 10 && break
5669 done
5670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5671 esac
5672
5673 $ac_path_FGREP_found && break 3
5674 done
5675 done
5676 done
5677 IFS=$as_save_IFS
5678 if test -z "$ac_cv_path_FGREP"; then
5679 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5680 fi
5681 else
5682 ac_cv_path_FGREP=$FGREP
5683 fi
5684
5685 fi
5686 fi
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5688 $as_echo "$ac_cv_path_FGREP" >&6; }
5689 FGREP="$ac_cv_path_FGREP"
5690
5691
5692 test -z "$GREP" && GREP=grep
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712 # Check whether --with-gnu-ld was given.
5713 if test "${with_gnu_ld+set}" = set; then :
5714 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5715 else
5716 with_gnu_ld=no
5717 fi
5718
5719 ac_prog=ld
5720 if test "$GCC" = yes; then
5721 # Check if gcc -print-prog-name=ld gives a path.
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5723 $as_echo_n "checking for ld used by $CC... " >&6; }
5724 case $host in
5725 *-*-mingw*)
5726 # gcc leaves a trailing carriage return which upsets mingw
5727 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5728 *)
5729 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5730 esac
5731 case $ac_prog in
5732 # Accept absolute paths.
5733 [\\/]* | ?:[\\/]*)
5734 re_direlt='/[^/][^/]*/\.\./'
5735 # Canonicalize the pathname of ld
5736 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5737 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5738 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5739 done
5740 test -z "$LD" && LD="$ac_prog"
5741 ;;
5742 "")
5743 # If it fails, then pretend we aren't using GCC.
5744 ac_prog=ld
5745 ;;
5746 *)
5747 # If it is relative, then search for the first ld in PATH.
5748 with_gnu_ld=unknown
5749 ;;
5750 esac
5751 elif test "$with_gnu_ld" = yes; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5753 $as_echo_n "checking for GNU ld... " >&6; }
5754 else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5756 $as_echo_n "checking for non-GNU ld... " >&6; }
5757 fi
5758 if ${lt_cv_path_LD+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 if test -z "$LD"; then
5762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5763 for ac_dir in $PATH; do
5764 IFS="$lt_save_ifs"
5765 test -z "$ac_dir" && ac_dir=.
5766 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5767 lt_cv_path_LD="$ac_dir/$ac_prog"
5768 # Check to see if the program is GNU ld. I'd rather use --version,
5769 # but apparently some variants of GNU ld only accept -v.
5770 # Break only if it was the GNU/non-GNU ld that we prefer.
5771 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5772 *GNU* | *'with BFD'*)
5773 test "$with_gnu_ld" != no && break
5774 ;;
5775 *)
5776 test "$with_gnu_ld" != yes && break
5777 ;;
5778 esac
5779 fi
5780 done
5781 IFS="$lt_save_ifs"
5782 else
5783 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5784 fi
5785 fi
5786
5787 LD="$lt_cv_path_LD"
5788 if test -n "$LD"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5790 $as_echo "$LD" >&6; }
5791 else
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5794 fi
5795 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5797 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5798 if ${lt_cv_prog_gnu_ld+:} false; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5802 case `$LD -v 2>&1 </dev/null` in
5803 *GNU* | *'with BFD'*)
5804 lt_cv_prog_gnu_ld=yes
5805 ;;
5806 *)
5807 lt_cv_prog_gnu_ld=no
5808 ;;
5809 esac
5810 fi
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5812 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5813 with_gnu_ld=$lt_cv_prog_gnu_ld
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5824 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5825 if ${lt_cv_path_NM+:} false; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 if test -n "$NM"; then
5829 # Let the user override the nm to test.
5830 lt_nm_to_check="$NM"
5831 else
5832 lt_nm_to_check="${ac_tool_prefix}nm"
5833 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5834 lt_nm_to_check="$lt_nm_to_check nm"
5835 fi
5836 fi
5837 for lt_tmp_nm in "$lt_nm_to_check"; do
5838 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5839 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5840 IFS="$lt_save_ifs"
5841 test -z "$ac_dir" && ac_dir=.
5842 # Strip out any user-provided options from the nm to test twice,
5843 # the first time to test to see if nm (rather than its options) has
5844 # an explicit path, the second time to yield a file which can be
5845 # nm'ed itself.
5846 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5847 case "$tmp_nm_path" in
5848 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5849 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5850 esac
5851 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5852 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5853 # Check to see if the nm accepts a BSD-compat flag.
5854 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5855 # nm: unknown option "B" ignored
5856 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5857 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5858 break
5859 ;;
5860 *)
5861 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5862 *$tmp_nm*)
5863 lt_cv_path_NM="$tmp_nm -p"
5864 break
5865 ;;
5866 *)
5867 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5868 continue # so that we can try to find one that supports BSD flags
5869 ;;
5870 esac
5871 ;;
5872 esac
5873 fi
5874 done
5875 IFS="$lt_save_ifs"
5876 done
5877 : ${lt_cv_path_NM=no}
5878 fi
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5880 $as_echo "$lt_cv_path_NM" >&6; }
5881 if test "$lt_cv_path_NM" != "no"; then
5882 NM="$lt_cv_path_NM"
5883 else
5884 # Didn't find any BSD compatible name lister, look for dumpbin.
5885 if test -n "$DUMPBIN"; then :
5886 # Let the user override the test.
5887 else
5888 if test -n "$ac_tool_prefix"; then
5889 for ac_prog in dumpbin "link -dump"
5890 do
5891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if ${ac_cv_prog_DUMPBIN+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 if test -n "$DUMPBIN"; then
5899 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904 IFS=$as_save_IFS
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 break 2
5911 fi
5912 done
5913 done
5914 IFS=$as_save_IFS
5915
5916 fi
5917 fi
5918 DUMPBIN=$ac_cv_prog_DUMPBIN
5919 if test -n "$DUMPBIN"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5921 $as_echo "$DUMPBIN" >&6; }
5922 else
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5925 fi
5926
5927
5928 test -n "$DUMPBIN" && break
5929 done
5930 fi
5931 if test -z "$DUMPBIN"; then
5932 ac_ct_DUMPBIN=$DUMPBIN
5933 for ac_prog in dumpbin "link -dump"
5934 do
5935 # Extract the first word of "$ac_prog", so it can be a program name with args.
5936 set dummy $ac_prog; ac_word=$2
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938 $as_echo_n "checking for $ac_word... " >&6; }
5939 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 if test -n "$ac_ct_DUMPBIN"; then
5943 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5944 else
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH
5947 do
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5952 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2
5955 fi
5956 done
5957 done
5958 IFS=$as_save_IFS
5959
5960 fi
5961 fi
5962 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5963 if test -n "$ac_ct_DUMPBIN"; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5965 $as_echo "$ac_ct_DUMPBIN" >&6; }
5966 else
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968 $as_echo "no" >&6; }
5969 fi
5970
5971
5972 test -n "$ac_ct_DUMPBIN" && break
5973 done
5974
5975 if test "x$ac_ct_DUMPBIN" = x; then
5976 DUMPBIN=":"
5977 else
5978 case $cross_compiling:$ac_tool_warned in
5979 yes:)
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5982 ac_tool_warned=yes ;;
5983 esac
5984 DUMPBIN=$ac_ct_DUMPBIN
5985 fi
5986 fi
5987
5988 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5989 *COFF*)
5990 DUMPBIN="$DUMPBIN -symbols"
5991 ;;
5992 *)
5993 DUMPBIN=:
5994 ;;
5995 esac
5996 fi
5997
5998 if test "$DUMPBIN" != ":"; then
5999 NM="$DUMPBIN"
6000 fi
6001 fi
6002 test -z "$NM" && NM=nm
6003
6004
6005
6006
6007
6008
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6010 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6011 if ${lt_cv_nm_interface+:} false; then :
6012 $as_echo_n "(cached) " >&6
6013 else
6014 lt_cv_nm_interface="BSD nm"
6015 echo "int some_variable = 0;" > conftest.$ac_ext
6016 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6017 (eval "$ac_compile" 2>conftest.err)
6018 cat conftest.err >&5
6019 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6020 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6021 cat conftest.err >&5
6022 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6023 cat conftest.out >&5
6024 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6025 lt_cv_nm_interface="MS dumpbin"
6026 fi
6027 rm -f conftest*
6028 fi
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6030 $as_echo "$lt_cv_nm_interface" >&6; }
6031
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6033 $as_echo_n "checking whether ln -s works... " >&6; }
6034 LN_S=$as_ln_s
6035 if test "$LN_S" = "ln -s"; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6037 $as_echo "yes" >&6; }
6038 else
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6040 $as_echo "no, using $LN_S" >&6; }
6041 fi
6042
6043 # find the maximum length of command line arguments
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6045 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6046 if ${lt_cv_sys_max_cmd_len+:} false; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 i=0
6050 teststring="ABCD"
6051
6052 case $build_os in
6053 msdosdjgpp*)
6054 # On DJGPP, this test can blow up pretty badly due to problems in libc
6055 # (any single argument exceeding 2000 bytes causes a buffer overrun
6056 # during glob expansion). Even if it were fixed, the result of this
6057 # check would be larger than it should be.
6058 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6059 ;;
6060
6061 gnu*)
6062 # Under GNU Hurd, this test is not required because there is
6063 # no limit to the length of command line arguments.
6064 # Libtool will interpret -1 as no limit whatsoever
6065 lt_cv_sys_max_cmd_len=-1;
6066 ;;
6067
6068 cygwin* | mingw* | cegcc*)
6069 # On Win9x/ME, this test blows up -- it succeeds, but takes
6070 # about 5 minutes as the teststring grows exponentially.
6071 # Worse, since 9x/ME are not pre-emptively multitasking,
6072 # you end up with a "frozen" computer, even though with patience
6073 # the test eventually succeeds (with a max line length of 256k).
6074 # Instead, let's just punt: use the minimum linelength reported by
6075 # all of the supported platforms: 8192 (on NT/2K/XP).
6076 lt_cv_sys_max_cmd_len=8192;
6077 ;;
6078
6079 mint*)
6080 # On MiNT this can take a long time and run out of memory.
6081 lt_cv_sys_max_cmd_len=8192;
6082 ;;
6083
6084 amigaos*)
6085 # On AmigaOS with pdksh, this test takes hours, literally.
6086 # So we just punt and use a minimum line length of 8192.
6087 lt_cv_sys_max_cmd_len=8192;
6088 ;;
6089
6090 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6091 # This has been around since 386BSD, at least. Likely further.
6092 if test -x /sbin/sysctl; then
6093 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6094 elif test -x /usr/sbin/sysctl; then
6095 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6096 else
6097 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6098 fi
6099 # And add a safety zone
6100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6102 ;;
6103
6104 interix*)
6105 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6106 lt_cv_sys_max_cmd_len=196608
6107 ;;
6108
6109 osf*)
6110 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6111 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6112 # nice to cause kernel panics so lets avoid the loop below.
6113 # First set a reasonable default.
6114 lt_cv_sys_max_cmd_len=16384
6115 #
6116 if test -x /sbin/sysconfig; then
6117 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6118 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6119 esac
6120 fi
6121 ;;
6122 sco3.2v5*)
6123 lt_cv_sys_max_cmd_len=102400
6124 ;;
6125 sysv5* | sco5v6* | sysv4.2uw2*)
6126 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6127 if test -n "$kargmax"; then
6128 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6129 else
6130 lt_cv_sys_max_cmd_len=32768
6131 fi
6132 ;;
6133 *)
6134 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6135 if test -n "$lt_cv_sys_max_cmd_len"; then
6136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6138 else
6139 # Make teststring a little bigger before we do anything with it.
6140 # a 1K string should be a reasonable start.
6141 for i in 1 2 3 4 5 6 7 8 ; do
6142 teststring=$teststring$teststring
6143 done
6144 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6145 # If test is not a shell built-in, we'll probably end up computing a
6146 # maximum length that is only half of the actual maximum length, but
6147 # we can't tell.
6148 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6149 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6150 test $i != 17 # 1/2 MB should be enough
6151 do
6152 i=`expr $i + 1`
6153 teststring=$teststring$teststring
6154 done
6155 # Only check the string length outside the loop.
6156 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6157 teststring=
6158 # Add a significant safety factor because C++ compilers can tack on
6159 # massive amounts of additional arguments before passing them to the
6160 # linker. It appears as though 1/2 is a usable value.
6161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6162 fi
6163 ;;
6164 esac
6165
6166 fi
6167
6168 if test -n $lt_cv_sys_max_cmd_len ; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6170 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6171 else
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6173 $as_echo "none" >&6; }
6174 fi
6175 max_cmd_len=$lt_cv_sys_max_cmd_len
6176
6177
6178
6179
6180
6181
6182 : ${CP="cp -f"}
6183 : ${MV="mv -f"}
6184 : ${RM="rm -f"}
6185
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6187 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6188 # Try some XSI features
6189 xsi_shell=no
6190 ( _lt_dummy="a/b/c"
6191 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6192 = c,a/b,, \
6193 && eval 'test $(( 1 + 1 )) -eq 2 \
6194 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6195 && xsi_shell=yes
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6197 $as_echo "$xsi_shell" >&6; }
6198
6199
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6201 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6202 lt_shell_append=no
6203 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6204 >/dev/null 2>&1 \
6205 && lt_shell_append=yes
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6207 $as_echo "$lt_shell_append" >&6; }
6208
6209
6210 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6211 lt_unset=unset
6212 else
6213 lt_unset=false
6214 fi
6215
6216
6217
6218
6219
6220 # test EBCDIC or ASCII
6221 case `echo X|tr X '\101'` in
6222 A) # ASCII based system
6223 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6224 lt_SP2NL='tr \040 \012'
6225 lt_NL2SP='tr \015\012 \040\040'
6226 ;;
6227 *) # EBCDIC based system
6228 lt_SP2NL='tr \100 \n'
6229 lt_NL2SP='tr \r\n \100\100'
6230 ;;
6231 esac
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6242 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6243 if ${lt_cv_ld_reload_flag+:} false; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 lt_cv_ld_reload_flag='-r'
6247 fi
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6249 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6250 reload_flag=$lt_cv_ld_reload_flag
6251 case $reload_flag in
6252 "" | " "*) ;;
6253 *) reload_flag=" $reload_flag" ;;
6254 esac
6255 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6256 case $host_os in
6257 darwin*)
6258 if test "$GCC" = yes; then
6259 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6260 else
6261 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6262 fi
6263 ;;
6264 esac
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274 if test -n "$ac_tool_prefix"; then
6275 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6276 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278 $as_echo_n "checking for $ac_word... " >&6; }
6279 if ${ac_cv_prog_OBJDUMP+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 if test -n "$OBJDUMP"; then
6283 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6287 do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6292 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296 done
6297 done
6298 IFS=$as_save_IFS
6299
6300 fi
6301 fi
6302 OBJDUMP=$ac_cv_prog_OBJDUMP
6303 if test -n "$OBJDUMP"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6305 $as_echo "$OBJDUMP" >&6; }
6306 else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6309 fi
6310
6311
6312 fi
6313 if test -z "$ac_cv_prog_OBJDUMP"; then
6314 ac_ct_OBJDUMP=$OBJDUMP
6315 # Extract the first word of "objdump", so it can be a program name with args.
6316 set dummy objdump; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 if test -n "$ac_ct_OBJDUMP"; then
6323 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6324 else
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6327 do
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6332 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 break 2
6335 fi
6336 done
6337 done
6338 IFS=$as_save_IFS
6339
6340 fi
6341 fi
6342 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6343 if test -n "$ac_ct_OBJDUMP"; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6345 $as_echo "$ac_ct_OBJDUMP" >&6; }
6346 else
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6349 fi
6350
6351 if test "x$ac_ct_OBJDUMP" = x; then
6352 OBJDUMP="false"
6353 else
6354 case $cross_compiling:$ac_tool_warned in
6355 yes:)
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6358 ac_tool_warned=yes ;;
6359 esac
6360 OBJDUMP=$ac_ct_OBJDUMP
6361 fi
6362 else
6363 OBJDUMP="$ac_cv_prog_OBJDUMP"
6364 fi
6365
6366 test -z "$OBJDUMP" && OBJDUMP=objdump
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6377 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6378 if ${lt_cv_deplibs_check_method+:} false; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 lt_cv_file_magic_cmd='$MAGIC_CMD'
6382 lt_cv_file_magic_test_file=
6383 lt_cv_deplibs_check_method='unknown'
6384 # Need to set the preceding variable on all platforms that support
6385 # interlibrary dependencies.
6386 # 'none' -- dependencies not supported.
6387 # `unknown' -- same as none, but documents that we really don't know.
6388 # 'pass_all' -- all dependencies passed with no checks.
6389 # 'test_compile' -- check by making test program.
6390 # 'file_magic [[regex]]' -- check by looking for files in library path
6391 # which responds to the $file_magic_cmd with a given extended regex.
6392 # If you have `file' or equivalent on your system and you're not sure
6393 # whether `pass_all' will *always* work, you probably want this one.
6394
6395 case $host_os in
6396 aix[4-9]*)
6397 lt_cv_deplibs_check_method=pass_all
6398 ;;
6399
6400 beos*)
6401 lt_cv_deplibs_check_method=pass_all
6402 ;;
6403
6404 bsdi[45]*)
6405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6406 lt_cv_file_magic_cmd='/usr/bin/file -L'
6407 lt_cv_file_magic_test_file=/shlib/libc.so
6408 ;;
6409
6410 cygwin*)
6411 # func_win32_libid is a shell function defined in ltmain.sh
6412 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6413 lt_cv_file_magic_cmd='func_win32_libid'
6414 ;;
6415
6416 mingw* | pw32*)
6417 # Base MSYS/MinGW do not provide the 'file' command needed by
6418 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6419 # unless we find 'file', for example because we are cross-compiling.
6420 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6421 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6422 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6423 lt_cv_file_magic_cmd='func_win32_libid'
6424 else
6425 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6426 lt_cv_file_magic_cmd='$OBJDUMP -f'
6427 fi
6428 ;;
6429
6430 cegcc*)
6431 # use the weaker test based on 'objdump'. See mingw*.
6432 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6433 lt_cv_file_magic_cmd='$OBJDUMP -f'
6434 ;;
6435
6436 darwin* | rhapsody*)
6437 lt_cv_deplibs_check_method=pass_all
6438 ;;
6439
6440 freebsd* | dragonfly*)
6441 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6442 case $host_cpu in
6443 i*86 )
6444 # Not sure whether the presence of OpenBSD here was a mistake.
6445 # Let's accept both of them until this is cleared up.
6446 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6447 lt_cv_file_magic_cmd=/usr/bin/file
6448 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6449 ;;
6450 esac
6451 else
6452 lt_cv_deplibs_check_method=pass_all
6453 fi
6454 ;;
6455
6456 gnu*)
6457 lt_cv_deplibs_check_method=pass_all
6458 ;;
6459
6460 haiku*)
6461 lt_cv_deplibs_check_method=pass_all
6462 ;;
6463
6464 hpux10.20* | hpux11*)
6465 lt_cv_file_magic_cmd=/usr/bin/file
6466 case $host_cpu in
6467 ia64*)
6468 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6469 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6470 ;;
6471 hppa*64*)
6472 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]'
6473 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6474 ;;
6475 *)
6476 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6477 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6478 ;;
6479 esac
6480 ;;
6481
6482 interix[3-9]*)
6483 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6485 ;;
6486
6487 irix5* | irix6* | nonstopux*)
6488 case $LD in
6489 *-32|*"-32 ") libmagic=32-bit;;
6490 *-n32|*"-n32 ") libmagic=N32;;
6491 *-64|*"-64 ") libmagic=64-bit;;
6492 *) libmagic=never-match;;
6493 esac
6494 lt_cv_deplibs_check_method=pass_all
6495 ;;
6496
6497 # This must be Linux ELF.
6498 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6499 lt_cv_deplibs_check_method=pass_all
6500 ;;
6501
6502 netbsd*)
6503 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6505 else
6506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6507 fi
6508 ;;
6509
6510 newos6*)
6511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6512 lt_cv_file_magic_cmd=/usr/bin/file
6513 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6514 ;;
6515
6516 *nto* | *qnx*)
6517 lt_cv_deplibs_check_method=pass_all
6518 ;;
6519
6520 openbsd*)
6521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6523 else
6524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6525 fi
6526 ;;
6527
6528 osf3* | osf4* | osf5*)
6529 lt_cv_deplibs_check_method=pass_all
6530 ;;
6531
6532 rdos*)
6533 lt_cv_deplibs_check_method=pass_all
6534 ;;
6535
6536 solaris*)
6537 lt_cv_deplibs_check_method=pass_all
6538 ;;
6539
6540 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6541 lt_cv_deplibs_check_method=pass_all
6542 ;;
6543
6544 sysv4 | sysv4.3*)
6545 case $host_vendor in
6546 motorola)
6547 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]'
6548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6549 ;;
6550 ncr)
6551 lt_cv_deplibs_check_method=pass_all
6552 ;;
6553 sequent)
6554 lt_cv_file_magic_cmd='/bin/file'
6555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6556 ;;
6557 sni)
6558 lt_cv_file_magic_cmd='/bin/file'
6559 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6560 lt_cv_file_magic_test_file=/lib/libc.so
6561 ;;
6562 siemens)
6563 lt_cv_deplibs_check_method=pass_all
6564 ;;
6565 pc)
6566 lt_cv_deplibs_check_method=pass_all
6567 ;;
6568 esac
6569 ;;
6570
6571 tpf*)
6572 lt_cv_deplibs_check_method=pass_all
6573 ;;
6574 vxworks*)
6575 # Assume VxWorks cross toolchains are built on Linux, possibly
6576 # as canadian for Windows hosts.
6577 lt_cv_deplibs_check_method=pass_all
6578 ;;
6579 esac
6580
6581 fi
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6583 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6584 file_magic_cmd=$lt_cv_file_magic_cmd
6585 deplibs_check_method=$lt_cv_deplibs_check_method
6586 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599 plugin_option=
6600 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6601 for plugin in $plugin_names; do
6602 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6603 if test x$plugin_so = x$plugin; then
6604 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6605 fi
6606 if test x$plugin_so != x$plugin; then
6607 plugin_option="--plugin $plugin_so"
6608 break
6609 fi
6610 done
6611
6612 if test -n "$ac_tool_prefix"; then
6613 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6614 set dummy ${ac_tool_prefix}ar; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if ${ac_cv_prog_AR+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 if test -n "$AR"; then
6621 ac_cv_prog_AR="$AR" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
6626 IFS=$as_save_IFS
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6630 ac_cv_prog_AR="${ac_tool_prefix}ar"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 break 2
6633 fi
6634 done
6635 done
6636 IFS=$as_save_IFS
6637
6638 fi
6639 fi
6640 AR=$ac_cv_prog_AR
6641 if test -n "$AR"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6643 $as_echo "$AR" >&6; }
6644 else
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6647 fi
6648
6649
6650 fi
6651 if test -z "$ac_cv_prog_AR"; then
6652 ac_ct_AR=$AR
6653 # Extract the first word of "ar", so it can be a program name with args.
6654 set dummy ar; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 if test -n "$ac_ct_AR"; then
6661 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670 ac_cv_prog_ac_ct_AR="ar"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6681 if test -n "$ac_ct_AR"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6683 $as_echo "$ac_ct_AR" >&6; }
6684 else
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6687 fi
6688
6689 if test "x$ac_ct_AR" = x; then
6690 AR="false"
6691 else
6692 case $cross_compiling:$ac_tool_warned in
6693 yes:)
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6696 ac_tool_warned=yes ;;
6697 esac
6698 AR=$ac_ct_AR
6699 fi
6700 else
6701 AR="$ac_cv_prog_AR"
6702 fi
6703
6704 test -z "$AR" && AR=ar
6705 if test -n "$plugin_option"; then
6706 if $AR --help 2>&1 | grep -q "\--plugin"; then
6707 touch conftest.c
6708 $AR $plugin_option rc conftest.a conftest.c
6709 if test "$?" != 0; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6711 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6712 else
6713 AR="$AR $plugin_option"
6714 fi
6715 rm -f conftest.*
6716 fi
6717 fi
6718 test -z "$AR_FLAGS" && AR_FLAGS=cru
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730 if test -n "$ac_tool_prefix"; then
6731 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6732 set dummy ${ac_tool_prefix}strip; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if ${ac_cv_prog_STRIP+:} false; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 if test -n "$STRIP"; then
6739 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744 IFS=$as_save_IFS
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6748 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 break 2
6751 fi
6752 done
6753 done
6754 IFS=$as_save_IFS
6755
6756 fi
6757 fi
6758 STRIP=$ac_cv_prog_STRIP
6759 if test -n "$STRIP"; then
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6761 $as_echo "$STRIP" >&6; }
6762 else
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 $as_echo "no" >&6; }
6765 fi
6766
6767
6768 fi
6769 if test -z "$ac_cv_prog_STRIP"; then
6770 ac_ct_STRIP=$STRIP
6771 # Extract the first word of "strip", so it can be a program name with args.
6772 set dummy strip; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 if test -n "$ac_ct_STRIP"; then
6779 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784 IFS=$as_save_IFS
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6788 ac_cv_prog_ac_ct_STRIP="strip"
6789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 break 2
6791 fi
6792 done
6793 done
6794 IFS=$as_save_IFS
6795
6796 fi
6797 fi
6798 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6799 if test -n "$ac_ct_STRIP"; then
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6801 $as_echo "$ac_ct_STRIP" >&6; }
6802 else
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804 $as_echo "no" >&6; }
6805 fi
6806
6807 if test "x$ac_ct_STRIP" = x; then
6808 STRIP=":"
6809 else
6810 case $cross_compiling:$ac_tool_warned in
6811 yes:)
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6814 ac_tool_warned=yes ;;
6815 esac
6816 STRIP=$ac_ct_STRIP
6817 fi
6818 else
6819 STRIP="$ac_cv_prog_STRIP"
6820 fi
6821
6822 test -z "$STRIP" && STRIP=:
6823
6824
6825
6826
6827
6828
6829 if test -n "$ac_tool_prefix"; then
6830 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6831 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if ${ac_cv_prog_RANLIB+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 if test -n "$RANLIB"; then
6838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851 done
6852 done
6853 IFS=$as_save_IFS
6854
6855 fi
6856 fi
6857 RANLIB=$ac_cv_prog_RANLIB
6858 if test -n "$RANLIB"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6860 $as_echo "$RANLIB" >&6; }
6861 else
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6864 fi
6865
6866
6867 fi
6868 if test -z "$ac_cv_prog_RANLIB"; then
6869 ac_ct_RANLIB=$RANLIB
6870 # Extract the first word of "ranlib", so it can be a program name with args.
6871 set dummy ranlib; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 if test -n "$ac_ct_RANLIB"; then
6878 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6887 ac_cv_prog_ac_ct_RANLIB="ranlib"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6890 fi
6891 done
6892 done
6893 IFS=$as_save_IFS
6894
6895 fi
6896 fi
6897 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6898 if test -n "$ac_ct_RANLIB"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6900 $as_echo "$ac_ct_RANLIB" >&6; }
6901 else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6904 fi
6905
6906 if test "x$ac_ct_RANLIB" = x; then
6907 RANLIB=":"
6908 else
6909 case $cross_compiling:$ac_tool_warned in
6910 yes:)
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913 ac_tool_warned=yes ;;
6914 esac
6915 RANLIB=$ac_ct_RANLIB
6916 fi
6917 else
6918 RANLIB="$ac_cv_prog_RANLIB"
6919 fi
6920
6921 test -z "$RANLIB" && RANLIB=:
6922 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6923 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6924 RANLIB="$RANLIB $plugin_option"
6925 fi
6926 fi
6927
6928
6929
6930
6931
6932
6933 # Determine commands to create old-style static archives.
6934 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6935 old_postinstall_cmds='chmod 644 $oldlib'
6936 old_postuninstall_cmds=
6937
6938 if test -n "$RANLIB"; then
6939 case $host_os in
6940 openbsd*)
6941 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6942 ;;
6943 *)
6944 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6945 ;;
6946 esac
6947 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6948 fi
6949
6950 case $host_os in
6951 darwin*)
6952 lock_old_archive_extraction=yes ;;
6953 *)
6954 lock_old_archive_extraction=no ;;
6955 esac
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995 # If no C compiler was specified, use CC.
6996 LTCC=${LTCC-"$CC"}
6997
6998 # If no C compiler flags were specified, use CFLAGS.
6999 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7000
7001 # Allow CC to be a program name with arguments.
7002 compiler=$CC
7003
7004
7005 # Check for command to grab the raw symbol name followed by C symbol from nm.
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7007 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7008 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011
7012 # These are sane defaults that work on at least a few old systems.
7013 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7014
7015 # Character class describing NM global symbol codes.
7016 symcode='[BCDEGRST]'
7017
7018 # Regexp to match symbols that can be accessed directly from C.
7019 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7020
7021 # Define system-specific variables.
7022 case $host_os in
7023 aix*)
7024 symcode='[BCDT]'
7025 ;;
7026 cygwin* | mingw* | pw32* | cegcc*)
7027 symcode='[ABCDGISTW]'
7028 ;;
7029 hpux*)
7030 if test "$host_cpu" = ia64; then
7031 symcode='[ABCDEGRST]'
7032 fi
7033 ;;
7034 irix* | nonstopux*)
7035 symcode='[BCDEGRST]'
7036 ;;
7037 osf*)
7038 symcode='[BCDEGQRST]'
7039 ;;
7040 solaris*)
7041 symcode='[BCDRT]'
7042 ;;
7043 sco3.2v5*)
7044 symcode='[DT]'
7045 ;;
7046 sysv4.2uw2*)
7047 symcode='[DT]'
7048 ;;
7049 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7050 symcode='[ABDT]'
7051 ;;
7052 sysv4)
7053 symcode='[DFNSTU]'
7054 ;;
7055 esac
7056
7057 # If we're using GNU nm, then use its standard symbol codes.
7058 case `$NM -V 2>&1` in
7059 *GNU* | *'with BFD'*)
7060 symcode='[ABCDGIRSTW]' ;;
7061 esac
7062
7063 # Transform an extracted symbol line into a proper C declaration.
7064 # Some systems (esp. on ia64) link data and code symbols differently,
7065 # so use this general approach.
7066 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7067
7068 # Transform an extracted symbol line into symbol name and symbol address
7069 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7070 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'"
7071
7072 # Handle CRLF in mingw tool chain
7073 opt_cr=
7074 case $build_os in
7075 mingw*)
7076 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7077 ;;
7078 esac
7079
7080 # Try without a prefix underscore, then with it.
7081 for ac_symprfx in "" "_"; do
7082
7083 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7084 symxfrm="\\1 $ac_symprfx\\2 \\2"
7085
7086 # Write the raw and C identifiers.
7087 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7088 # Fake it for dumpbin and say T for any non-static function
7089 # and D for any global variable.
7090 # Also find C++ and __fastcall symbols from MSVC++,
7091 # which start with @ or ?.
7092 lt_cv_sys_global_symbol_pipe="$AWK '"\
7093 " {last_section=section; section=\$ 3};"\
7094 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7095 " \$ 0!~/External *\|/{next};"\
7096 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7097 " {if(hide[section]) next};"\
7098 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7099 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7100 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7101 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7102 " ' prfx=^$ac_symprfx"
7103 else
7104 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7105 fi
7106
7107 # Check to see that the pipe works correctly.
7108 pipe_works=no
7109
7110 rm -f conftest*
7111 cat > conftest.$ac_ext <<_LT_EOF
7112 #ifdef __cplusplus
7113 extern "C" {
7114 #endif
7115 char nm_test_var;
7116 void nm_test_func(void);
7117 void nm_test_func(void){}
7118 #ifdef __cplusplus
7119 }
7120 #endif
7121 int main(){nm_test_var='a';nm_test_func();return(0);}
7122 _LT_EOF
7123
7124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7125 (eval $ac_compile) 2>&5
7126 ac_status=$?
7127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7128 test $ac_status = 0; }; then
7129 # Now try to grab the symbols.
7130 nlist=conftest.nm
7131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7132 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7133 ac_status=$?
7134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7135 test $ac_status = 0; } && test -s "$nlist"; then
7136 # Try sorting and uniquifying the output.
7137 if sort "$nlist" | uniq > "$nlist"T; then
7138 mv -f "$nlist"T "$nlist"
7139 else
7140 rm -f "$nlist"T
7141 fi
7142
7143 # Make sure that we snagged all the symbols we need.
7144 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7145 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7146 cat <<_LT_EOF > conftest.$ac_ext
7147 #ifdef __cplusplus
7148 extern "C" {
7149 #endif
7150
7151 _LT_EOF
7152 # Now generate the symbol file.
7153 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7154
7155 cat <<_LT_EOF >> conftest.$ac_ext
7156
7157 /* The mapping between symbol names and symbols. */
7158 const struct {
7159 const char *name;
7160 void *address;
7161 }
7162 lt__PROGRAM__LTX_preloaded_symbols[] =
7163 {
7164 { "@PROGRAM@", (void *) 0 },
7165 _LT_EOF
7166 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7167 cat <<\_LT_EOF >> conftest.$ac_ext
7168 {0, (void *) 0}
7169 };
7170
7171 /* This works around a problem in FreeBSD linker */
7172 #ifdef FREEBSD_WORKAROUND
7173 static const void *lt_preloaded_setup() {
7174 return lt__PROGRAM__LTX_preloaded_symbols;
7175 }
7176 #endif
7177
7178 #ifdef __cplusplus
7179 }
7180 #endif
7181 _LT_EOF
7182 # Now try linking the two files.
7183 mv conftest.$ac_objext conftstm.$ac_objext
7184 lt_save_LIBS="$LIBS"
7185 lt_save_CFLAGS="$CFLAGS"
7186 LIBS="conftstm.$ac_objext"
7187 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7189 (eval $ac_link) 2>&5
7190 ac_status=$?
7191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7193 pipe_works=yes
7194 fi
7195 LIBS="$lt_save_LIBS"
7196 CFLAGS="$lt_save_CFLAGS"
7197 else
7198 echo "cannot find nm_test_func in $nlist" >&5
7199 fi
7200 else
7201 echo "cannot find nm_test_var in $nlist" >&5
7202 fi
7203 else
7204 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7205 fi
7206 else
7207 echo "$progname: failed program was:" >&5
7208 cat conftest.$ac_ext >&5
7209 fi
7210 rm -rf conftest* conftst*
7211
7212 # Do not use the global_symbol_pipe unless it works.
7213 if test "$pipe_works" = yes; then
7214 break
7215 else
7216 lt_cv_sys_global_symbol_pipe=
7217 fi
7218 done
7219
7220 fi
7221
7222 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7223 lt_cv_sys_global_symbol_to_cdecl=
7224 fi
7225 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7227 $as_echo "failed" >&6; }
7228 else
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7230 $as_echo "ok" >&6; }
7231 fi
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254 # Check whether --enable-libtool-lock was given.
7255 if test "${enable_libtool_lock+set}" = set; then :
7256 enableval=$enable_libtool_lock;
7257 fi
7258
7259 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7260
7261 # Some flags need to be propagated to the compiler or linker for good
7262 # libtool support.
7263 case $host in
7264 ia64-*-hpux*)
7265 # Find out which ABI we are using.
7266 echo 'int i;' > conftest.$ac_ext
7267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7268 (eval $ac_compile) 2>&5
7269 ac_status=$?
7270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7271 test $ac_status = 0; }; then
7272 case `/usr/bin/file conftest.$ac_objext` in
7273 *ELF-32*)
7274 HPUX_IA64_MODE="32"
7275 ;;
7276 *ELF-64*)
7277 HPUX_IA64_MODE="64"
7278 ;;
7279 esac
7280 fi
7281 rm -rf conftest*
7282 ;;
7283 *-*-irix6*)
7284 # Find out which ABI we are using.
7285 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7287 (eval $ac_compile) 2>&5
7288 ac_status=$?
7289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7290 test $ac_status = 0; }; then
7291 if test "$lt_cv_prog_gnu_ld" = yes; then
7292 case `/usr/bin/file conftest.$ac_objext` in
7293 *32-bit*)
7294 LD="${LD-ld} -melf32bsmip"
7295 ;;
7296 *N32*)
7297 LD="${LD-ld} -melf32bmipn32"
7298 ;;
7299 *64-bit*)
7300 LD="${LD-ld} -melf64bmip"
7301 ;;
7302 esac
7303 else
7304 case `/usr/bin/file conftest.$ac_objext` in
7305 *32-bit*)
7306 LD="${LD-ld} -32"
7307 ;;
7308 *N32*)
7309 LD="${LD-ld} -n32"
7310 ;;
7311 *64-bit*)
7312 LD="${LD-ld} -64"
7313 ;;
7314 esac
7315 fi
7316 fi
7317 rm -rf conftest*
7318 ;;
7319
7320 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7321 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7322 # Find out which ABI we are using.
7323 echo 'int i;' > conftest.$ac_ext
7324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7325 (eval $ac_compile) 2>&5
7326 ac_status=$?
7327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7328 test $ac_status = 0; }; then
7329 case `/usr/bin/file conftest.o` in
7330 *32-bit*)
7331 case $host in
7332 x86_64-*kfreebsd*-gnu)
7333 LD="${LD-ld} -m elf_i386_fbsd"
7334 ;;
7335 x86_64-*linux*)
7336 case `/usr/bin/file conftest.o` in
7337 *x86-64*)
7338 LD="${LD-ld} -m elf32_x86_64"
7339 ;;
7340 *)
7341 LD="${LD-ld} -m elf_i386"
7342 ;;
7343 esac
7344 ;;
7345 powerpc64le-*linux*)
7346 LD="${LD-ld} -m elf32lppclinux"
7347 ;;
7348 powerpc64-*linux*)
7349 LD="${LD-ld} -m elf32ppclinux"
7350 ;;
7351 s390x-*linux*)
7352 LD="${LD-ld} -m elf_s390"
7353 ;;
7354 sparc64-*linux*)
7355 LD="${LD-ld} -m elf32_sparc"
7356 ;;
7357 esac
7358 ;;
7359 *64-bit*)
7360 case $host in
7361 x86_64-*kfreebsd*-gnu)
7362 LD="${LD-ld} -m elf_x86_64_fbsd"
7363 ;;
7364 x86_64-*linux*)
7365 LD="${LD-ld} -m elf_x86_64"
7366 ;;
7367 powerpcle-*linux*)
7368 LD="${LD-ld} -m elf64lppc"
7369 ;;
7370 powerpc-*linux*)
7371 LD="${LD-ld} -m elf64ppc"
7372 ;;
7373 s390*-*linux*|s390*-*tpf*)
7374 LD="${LD-ld} -m elf64_s390"
7375 ;;
7376 sparc*-*linux*)
7377 LD="${LD-ld} -m elf64_sparc"
7378 ;;
7379 esac
7380 ;;
7381 esac
7382 fi
7383 rm -rf conftest*
7384 ;;
7385
7386 *-*-sco3.2v5*)
7387 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7388 SAVE_CFLAGS="$CFLAGS"
7389 CFLAGS="$CFLAGS -belf"
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7391 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7392 if ${lt_cv_cc_needs_belf+:} false; then :
7393 $as_echo_n "(cached) " >&6
7394 else
7395 ac_ext=c
7396 ac_cpp='$CPP $CPPFLAGS'
7397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7400
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7403
7404 int
7405 main ()
7406 {
7407
7408 ;
7409 return 0;
7410 }
7411 _ACEOF
7412 if ac_fn_c_try_link "$LINENO"; then :
7413 lt_cv_cc_needs_belf=yes
7414 else
7415 lt_cv_cc_needs_belf=no
7416 fi
7417 rm -f core conftest.err conftest.$ac_objext \
7418 conftest$ac_exeext conftest.$ac_ext
7419 ac_ext=c
7420 ac_cpp='$CPP $CPPFLAGS'
7421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7424
7425 fi
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7427 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7428 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7429 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7430 CFLAGS="$SAVE_CFLAGS"
7431 fi
7432 ;;
7433 sparc*-*solaris*)
7434 # Find out which ABI we are using.
7435 echo 'int i;' > conftest.$ac_ext
7436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7437 (eval $ac_compile) 2>&5
7438 ac_status=$?
7439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7440 test $ac_status = 0; }; then
7441 case `/usr/bin/file conftest.o` in
7442 *64-bit*)
7443 case $lt_cv_prog_gnu_ld in
7444 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7445 *)
7446 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7447 LD="${LD-ld} -64"
7448 fi
7449 ;;
7450 esac
7451 ;;
7452 esac
7453 fi
7454 rm -rf conftest*
7455 ;;
7456 esac
7457
7458 need_locks="$enable_libtool_lock"
7459
7460
7461 case $host_os in
7462 rhapsody* | darwin*)
7463 if test -n "$ac_tool_prefix"; then
7464 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7465 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7469 $as_echo_n "(cached) " >&6
7470 else
7471 if test -n "$DSYMUTIL"; then
7472 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7473 else
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7484 fi
7485 done
7486 done
7487 IFS=$as_save_IFS
7488
7489 fi
7490 fi
7491 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7492 if test -n "$DSYMUTIL"; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7494 $as_echo "$DSYMUTIL" >&6; }
7495 else
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7498 fi
7499
7500
7501 fi
7502 if test -z "$ac_cv_prog_DSYMUTIL"; then
7503 ac_ct_DSYMUTIL=$DSYMUTIL
7504 # Extract the first word of "dsymutil", so it can be a program name with args.
7505 set dummy dsymutil; ac_word=$2
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 if test -n "$ac_ct_DSYMUTIL"; then
7512 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7513 else
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7521 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 break 2
7524 fi
7525 done
7526 done
7527 IFS=$as_save_IFS
7528
7529 fi
7530 fi
7531 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7532 if test -n "$ac_ct_DSYMUTIL"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7534 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7535 else
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7538 fi
7539
7540 if test "x$ac_ct_DSYMUTIL" = x; then
7541 DSYMUTIL=":"
7542 else
7543 case $cross_compiling:$ac_tool_warned in
7544 yes:)
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7547 ac_tool_warned=yes ;;
7548 esac
7549 DSYMUTIL=$ac_ct_DSYMUTIL
7550 fi
7551 else
7552 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7553 fi
7554
7555 if test -n "$ac_tool_prefix"; then
7556 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7557 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if ${ac_cv_prog_NMEDIT+:} false; then :
7561 $as_echo_n "(cached) " >&6
7562 else
7563 if test -n "$NMEDIT"; then
7564 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7565 else
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 for as_dir in $PATH
7568 do
7569 IFS=$as_save_IFS
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 break 2
7576 fi
7577 done
7578 done
7579 IFS=$as_save_IFS
7580
7581 fi
7582 fi
7583 NMEDIT=$ac_cv_prog_NMEDIT
7584 if test -n "$NMEDIT"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7586 $as_echo "$NMEDIT" >&6; }
7587 else
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7590 fi
7591
7592
7593 fi
7594 if test -z "$ac_cv_prog_NMEDIT"; then
7595 ac_ct_NMEDIT=$NMEDIT
7596 # Extract the first word of "nmedit", so it can be a program name with args.
7597 set dummy nmedit; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603 if test -n "$ac_ct_NMEDIT"; then
7604 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7608 do
7609 IFS=$as_save_IFS
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7613 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 break 2
7616 fi
7617 done
7618 done
7619 IFS=$as_save_IFS
7620
7621 fi
7622 fi
7623 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7624 if test -n "$ac_ct_NMEDIT"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7626 $as_echo "$ac_ct_NMEDIT" >&6; }
7627 else
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7630 fi
7631
7632 if test "x$ac_ct_NMEDIT" = x; then
7633 NMEDIT=":"
7634 else
7635 case $cross_compiling:$ac_tool_warned in
7636 yes:)
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7639 ac_tool_warned=yes ;;
7640 esac
7641 NMEDIT=$ac_ct_NMEDIT
7642 fi
7643 else
7644 NMEDIT="$ac_cv_prog_NMEDIT"
7645 fi
7646
7647 if test -n "$ac_tool_prefix"; then
7648 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7649 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 $as_echo_n "checking for $ac_word... " >&6; }
7652 if ${ac_cv_prog_LIPO+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 if test -n "$LIPO"; then
7656 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7660 do
7661 IFS=$as_save_IFS
7662 test -z "$as_dir" && as_dir=.
7663 for ac_exec_ext in '' $ac_executable_extensions; do
7664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7665 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 break 2
7668 fi
7669 done
7670 done
7671 IFS=$as_save_IFS
7672
7673 fi
7674 fi
7675 LIPO=$ac_cv_prog_LIPO
7676 if test -n "$LIPO"; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7678 $as_echo "$LIPO" >&6; }
7679 else
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 $as_echo "no" >&6; }
7682 fi
7683
7684
7685 fi
7686 if test -z "$ac_cv_prog_LIPO"; then
7687 ac_ct_LIPO=$LIPO
7688 # Extract the first word of "lipo", so it can be a program name with args.
7689 set dummy lipo; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7693 $as_echo_n "(cached) " >&6
7694 else
7695 if test -n "$ac_ct_LIPO"; then
7696 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705 ac_cv_prog_ac_ct_LIPO="lipo"
7706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 break 2
7708 fi
7709 done
7710 done
7711 IFS=$as_save_IFS
7712
7713 fi
7714 fi
7715 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7716 if test -n "$ac_ct_LIPO"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7718 $as_echo "$ac_ct_LIPO" >&6; }
7719 else
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7722 fi
7723
7724 if test "x$ac_ct_LIPO" = x; then
7725 LIPO=":"
7726 else
7727 case $cross_compiling:$ac_tool_warned in
7728 yes:)
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7731 ac_tool_warned=yes ;;
7732 esac
7733 LIPO=$ac_ct_LIPO
7734 fi
7735 else
7736 LIPO="$ac_cv_prog_LIPO"
7737 fi
7738
7739 if test -n "$ac_tool_prefix"; then
7740 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7741 set dummy ${ac_tool_prefix}otool; ac_word=$2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743 $as_echo_n "checking for $ac_word... " >&6; }
7744 if ${ac_cv_prog_OTOOL+:} false; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 if test -n "$OTOOL"; then
7748 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7752 do
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7760 fi
7761 done
7762 done
7763 IFS=$as_save_IFS
7764
7765 fi
7766 fi
7767 OTOOL=$ac_cv_prog_OTOOL
7768 if test -n "$OTOOL"; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7770 $as_echo "$OTOOL" >&6; }
7771 else
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7774 fi
7775
7776
7777 fi
7778 if test -z "$ac_cv_prog_OTOOL"; then
7779 ac_ct_OTOOL=$OTOOL
7780 # Extract the first word of "otool", so it can be a program name with args.
7781 set dummy otool; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 if test -n "$ac_ct_OTOOL"; then
7788 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7792 do
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7797 ac_cv_prog_ac_ct_OTOOL="otool"
7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 break 2
7800 fi
7801 done
7802 done
7803 IFS=$as_save_IFS
7804
7805 fi
7806 fi
7807 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7808 if test -n "$ac_ct_OTOOL"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7810 $as_echo "$ac_ct_OTOOL" >&6; }
7811 else
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7814 fi
7815
7816 if test "x$ac_ct_OTOOL" = x; then
7817 OTOOL=":"
7818 else
7819 case $cross_compiling:$ac_tool_warned in
7820 yes:)
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7823 ac_tool_warned=yes ;;
7824 esac
7825 OTOOL=$ac_ct_OTOOL
7826 fi
7827 else
7828 OTOOL="$ac_cv_prog_OTOOL"
7829 fi
7830
7831 if test -n "$ac_tool_prefix"; then
7832 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7833 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835 $as_echo_n "checking for $ac_word... " >&6; }
7836 if ${ac_cv_prog_OTOOL64+:} false; then :
7837 $as_echo_n "(cached) " >&6
7838 else
7839 if test -n "$OTOOL64"; then
7840 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7849 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 break 2
7852 fi
7853 done
7854 done
7855 IFS=$as_save_IFS
7856
7857 fi
7858 fi
7859 OTOOL64=$ac_cv_prog_OTOOL64
7860 if test -n "$OTOOL64"; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7862 $as_echo "$OTOOL64" >&6; }
7863 else
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865 $as_echo "no" >&6; }
7866 fi
7867
7868
7869 fi
7870 if test -z "$ac_cv_prog_OTOOL64"; then
7871 ac_ct_OTOOL64=$OTOOL64
7872 # Extract the first word of "otool64", so it can be a program name with args.
7873 set dummy otool64; ac_word=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 if test -n "$ac_ct_OTOOL64"; then
7880 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7881 else
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7884 do
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889 ac_cv_prog_ac_ct_OTOOL64="otool64"
7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 break 2
7892 fi
7893 done
7894 done
7895 IFS=$as_save_IFS
7896
7897 fi
7898 fi
7899 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7900 if test -n "$ac_ct_OTOOL64"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7902 $as_echo "$ac_ct_OTOOL64" >&6; }
7903 else
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7906 fi
7907
7908 if test "x$ac_ct_OTOOL64" = x; then
7909 OTOOL64=":"
7910 else
7911 case $cross_compiling:$ac_tool_warned in
7912 yes:)
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7915 ac_tool_warned=yes ;;
7916 esac
7917 OTOOL64=$ac_ct_OTOOL64
7918 fi
7919 else
7920 OTOOL64="$ac_cv_prog_OTOOL64"
7921 fi
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7950 $as_echo_n "checking for -single_module linker flag... " >&6; }
7951 if ${lt_cv_apple_cc_single_mod+:} false; then :
7952 $as_echo_n "(cached) " >&6
7953 else
7954 lt_cv_apple_cc_single_mod=no
7955 if test -z "${LT_MULTI_MODULE}"; then
7956 # By default we will add the -single_module flag. You can override
7957 # by either setting the environment variable LT_MULTI_MODULE
7958 # non-empty at configure time, or by adding -multi_module to the
7959 # link flags.
7960 rm -rf libconftest.dylib*
7961 echo "int foo(void){return 1;}" > conftest.c
7962 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7963 -dynamiclib -Wl,-single_module conftest.c" >&5
7964 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7965 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7966 _lt_result=$?
7967 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7968 lt_cv_apple_cc_single_mod=yes
7969 else
7970 cat conftest.err >&5
7971 fi
7972 rm -rf libconftest.dylib*
7973 rm -f conftest.*
7974 fi
7975 fi
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7977 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7979 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7980 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 lt_cv_ld_exported_symbols_list=no
7984 save_LDFLAGS=$LDFLAGS
7985 echo "_main" > conftest.sym
7986 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7989
7990 int
7991 main ()
7992 {
7993
7994 ;
7995 return 0;
7996 }
7997 _ACEOF
7998 if ac_fn_c_try_link "$LINENO"; then :
7999 lt_cv_ld_exported_symbols_list=yes
8000 else
8001 lt_cv_ld_exported_symbols_list=no
8002 fi
8003 rm -f core conftest.err conftest.$ac_objext \
8004 conftest$ac_exeext conftest.$ac_ext
8005 LDFLAGS="$save_LDFLAGS"
8006
8007 fi
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8009 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8011 $as_echo_n "checking for -force_load linker flag... " >&6; }
8012 if ${lt_cv_ld_force_load+:} false; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 lt_cv_ld_force_load=no
8016 cat > conftest.c << _LT_EOF
8017 int forced_loaded() { return 2;}
8018 _LT_EOF
8019 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8020 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8021 echo "$AR cru libconftest.a conftest.o" >&5
8022 $AR cru libconftest.a conftest.o 2>&5
8023 cat > conftest.c << _LT_EOF
8024 int main() { return 0;}
8025 _LT_EOF
8026 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8027 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8028 _lt_result=$?
8029 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8030 lt_cv_ld_force_load=yes
8031 else
8032 cat conftest.err >&5
8033 fi
8034 rm -f conftest.err libconftest.a conftest conftest.c
8035 rm -rf conftest.dSYM
8036
8037 fi
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8039 $as_echo "$lt_cv_ld_force_load" >&6; }
8040 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8041 # build without first building modern cctools / linker.
8042 case $host_cpu-$host_os in
8043 *-rhapsody* | *-darwin1.[012])
8044 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8045 *-darwin1.*)
8046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8047 *-darwin*)
8048 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8049 # deployment target is forced to an earlier version.
8050 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8051 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8052 ;;
8053 10.[012][,.]*)
8054 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8055 ;;
8056 *)
8057 ;;
8058 esac
8059 ;;
8060 esac
8061 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8062 _lt_dar_single_mod='$single_module'
8063 fi
8064 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8065 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8066 else
8067 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8068 fi
8069 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8070 _lt_dsymutil='~$DSYMUTIL $lib || :'
8071 else
8072 _lt_dsymutil=
8073 fi
8074 ;;
8075 esac
8076
8077 for ac_header in dlfcn.h
8078 do :
8079 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8080 "
8081 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8082 cat >>confdefs.h <<_ACEOF
8083 #define HAVE_DLFCN_H 1
8084 _ACEOF
8085
8086 fi
8087
8088 done
8089
8090
8091
8092
8093
8094 # Set options
8095
8096
8097
8098 enable_dlopen=no
8099
8100
8101 enable_win32_dll=no
8102
8103
8104 # Check whether --enable-shared was given.
8105 if test "${enable_shared+set}" = set; then :
8106 enableval=$enable_shared; p=${PACKAGE-default}
8107 case $enableval in
8108 yes) enable_shared=yes ;;
8109 no) enable_shared=no ;;
8110 *)
8111 enable_shared=no
8112 # Look at the argument we got. We use all the common list separators.
8113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8114 for pkg in $enableval; do
8115 IFS="$lt_save_ifs"
8116 if test "X$pkg" = "X$p"; then
8117 enable_shared=yes
8118 fi
8119 done
8120 IFS="$lt_save_ifs"
8121 ;;
8122 esac
8123 else
8124 enable_shared=yes
8125 fi
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135 # Check whether --enable-static was given.
8136 if test "${enable_static+set}" = set; then :
8137 enableval=$enable_static; p=${PACKAGE-default}
8138 case $enableval in
8139 yes) enable_static=yes ;;
8140 no) enable_static=no ;;
8141 *)
8142 enable_static=no
8143 # Look at the argument we got. We use all the common list separators.
8144 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8145 for pkg in $enableval; do
8146 IFS="$lt_save_ifs"
8147 if test "X$pkg" = "X$p"; then
8148 enable_static=yes
8149 fi
8150 done
8151 IFS="$lt_save_ifs"
8152 ;;
8153 esac
8154 else
8155 enable_static=yes
8156 fi
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167 # Check whether --with-pic was given.
8168 if test "${with_pic+set}" = set; then :
8169 withval=$with_pic; pic_mode="$withval"
8170 else
8171 pic_mode=default
8172 fi
8173
8174
8175 test -z "$pic_mode" && pic_mode=default
8176
8177
8178
8179
8180
8181
8182
8183 # Check whether --enable-fast-install was given.
8184 if test "${enable_fast_install+set}" = set; then :
8185 enableval=$enable_fast_install; p=${PACKAGE-default}
8186 case $enableval in
8187 yes) enable_fast_install=yes ;;
8188 no) enable_fast_install=no ;;
8189 *)
8190 enable_fast_install=no
8191 # Look at the argument we got. We use all the common list separators.
8192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8193 for pkg in $enableval; do
8194 IFS="$lt_save_ifs"
8195 if test "X$pkg" = "X$p"; then
8196 enable_fast_install=yes
8197 fi
8198 done
8199 IFS="$lt_save_ifs"
8200 ;;
8201 esac
8202 else
8203 enable_fast_install=yes
8204 fi
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216 # This can be used to rebuild libtool when needed
8217 LIBTOOL_DEPS="$ltmain"
8218
8219 # Always use our own libtool.
8220 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247 test -z "$LN_S" && LN_S="ln -s"
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262 if test -n "${ZSH_VERSION+set}" ; then
8263 setopt NO_GLOB_SUBST
8264 fi
8265
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8267 $as_echo_n "checking for objdir... " >&6; }
8268 if ${lt_cv_objdir+:} false; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 rm -f .libs 2>/dev/null
8272 mkdir .libs 2>/dev/null
8273 if test -d .libs; then
8274 lt_cv_objdir=.libs
8275 else
8276 # MS-DOS does not allow filenames that begin with a dot.
8277 lt_cv_objdir=_libs
8278 fi
8279 rmdir .libs 2>/dev/null
8280 fi
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8282 $as_echo "$lt_cv_objdir" >&6; }
8283 objdir=$lt_cv_objdir
8284
8285
8286
8287
8288
8289 cat >>confdefs.h <<_ACEOF
8290 #define LT_OBJDIR "$lt_cv_objdir/"
8291 _ACEOF
8292
8293
8294
8295
8296 case $host_os in
8297 aix3*)
8298 # AIX sometimes has problems with the GCC collect2 program. For some
8299 # reason, if we set the COLLECT_NAMES environment variable, the problems
8300 # vanish in a puff of smoke.
8301 if test "X${COLLECT_NAMES+set}" != Xset; then
8302 COLLECT_NAMES=
8303 export COLLECT_NAMES
8304 fi
8305 ;;
8306 esac
8307
8308 # Global variables:
8309 ofile=libtool
8310 can_build_shared=yes
8311
8312 # All known linkers require a `.a' archive for static linking (except MSVC,
8313 # which needs '.lib').
8314 libext=a
8315
8316 with_gnu_ld="$lt_cv_prog_gnu_ld"
8317
8318 old_CC="$CC"
8319 old_CFLAGS="$CFLAGS"
8320
8321 # Set sane defaults for various variables
8322 test -z "$CC" && CC=cc
8323 test -z "$LTCC" && LTCC=$CC
8324 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8325 test -z "$LD" && LD=ld
8326 test -z "$ac_objext" && ac_objext=o
8327
8328 for cc_temp in $compiler""; do
8329 case $cc_temp in
8330 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8331 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8332 \-*) ;;
8333 *) break;;
8334 esac
8335 done
8336 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8337
8338
8339 # Only perform the check for file, if the check method requires it
8340 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8341 case $deplibs_check_method in
8342 file_magic*)
8343 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8345 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8346 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 case $MAGIC_CMD in
8350 [\\/*] | ?:[\\/]*)
8351 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8352 ;;
8353 *)
8354 lt_save_MAGIC_CMD="$MAGIC_CMD"
8355 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8356 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8357 for ac_dir in $ac_dummy; do
8358 IFS="$lt_save_ifs"
8359 test -z "$ac_dir" && ac_dir=.
8360 if test -f $ac_dir/${ac_tool_prefix}file; then
8361 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8362 if test -n "$file_magic_test_file"; then
8363 case $deplibs_check_method in
8364 "file_magic "*)
8365 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8366 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8367 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8368 $EGREP "$file_magic_regex" > /dev/null; then
8369 :
8370 else
8371 cat <<_LT_EOF 1>&2
8372
8373 *** Warning: the command libtool uses to detect shared libraries,
8374 *** $file_magic_cmd, produces output that libtool cannot recognize.
8375 *** The result is that libtool may fail to recognize shared libraries
8376 *** as such. This will affect the creation of libtool libraries that
8377 *** depend on shared libraries, but programs linked with such libtool
8378 *** libraries will work regardless of this problem. Nevertheless, you
8379 *** may want to report the problem to your system manager and/or to
8380 *** bug-libtool@gnu.org
8381
8382 _LT_EOF
8383 fi ;;
8384 esac
8385 fi
8386 break
8387 fi
8388 done
8389 IFS="$lt_save_ifs"
8390 MAGIC_CMD="$lt_save_MAGIC_CMD"
8391 ;;
8392 esac
8393 fi
8394
8395 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8396 if test -n "$MAGIC_CMD"; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8398 $as_echo "$MAGIC_CMD" >&6; }
8399 else
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 $as_echo "no" >&6; }
8402 fi
8403
8404
8405
8406
8407
8408 if test -z "$lt_cv_path_MAGIC_CMD"; then
8409 if test -n "$ac_tool_prefix"; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8411 $as_echo_n "checking for file... " >&6; }
8412 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8413 $as_echo_n "(cached) " >&6
8414 else
8415 case $MAGIC_CMD in
8416 [\\/*] | ?:[\\/]*)
8417 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8418 ;;
8419 *)
8420 lt_save_MAGIC_CMD="$MAGIC_CMD"
8421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8422 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8423 for ac_dir in $ac_dummy; do
8424 IFS="$lt_save_ifs"
8425 test -z "$ac_dir" && ac_dir=.
8426 if test -f $ac_dir/file; then
8427 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8428 if test -n "$file_magic_test_file"; then
8429 case $deplibs_check_method in
8430 "file_magic "*)
8431 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8432 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8433 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8434 $EGREP "$file_magic_regex" > /dev/null; then
8435 :
8436 else
8437 cat <<_LT_EOF 1>&2
8438
8439 *** Warning: the command libtool uses to detect shared libraries,
8440 *** $file_magic_cmd, produces output that libtool cannot recognize.
8441 *** The result is that libtool may fail to recognize shared libraries
8442 *** as such. This will affect the creation of libtool libraries that
8443 *** depend on shared libraries, but programs linked with such libtool
8444 *** libraries will work regardless of this problem. Nevertheless, you
8445 *** may want to report the problem to your system manager and/or to
8446 *** bug-libtool@gnu.org
8447
8448 _LT_EOF
8449 fi ;;
8450 esac
8451 fi
8452 break
8453 fi
8454 done
8455 IFS="$lt_save_ifs"
8456 MAGIC_CMD="$lt_save_MAGIC_CMD"
8457 ;;
8458 esac
8459 fi
8460
8461 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8462 if test -n "$MAGIC_CMD"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8464 $as_echo "$MAGIC_CMD" >&6; }
8465 else
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467 $as_echo "no" >&6; }
8468 fi
8469
8470
8471 else
8472 MAGIC_CMD=:
8473 fi
8474 fi
8475
8476 fi
8477 ;;
8478 esac
8479
8480 # Use C for the default configuration in the libtool script
8481
8482 lt_save_CC="$CC"
8483 ac_ext=c
8484 ac_cpp='$CPP $CPPFLAGS'
8485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8488
8489
8490 # Source file extension for C test sources.
8491 ac_ext=c
8492
8493 # Object file extension for compiled C test sources.
8494 objext=o
8495 objext=$objext
8496
8497 # Code to be used in simple compile tests
8498 lt_simple_compile_test_code="int some_variable = 0;"
8499
8500 # Code to be used in simple link tests
8501 lt_simple_link_test_code='int main(){return(0);}'
8502
8503
8504
8505
8506
8507
8508
8509 # If no C compiler was specified, use CC.
8510 LTCC=${LTCC-"$CC"}
8511
8512 # If no C compiler flags were specified, use CFLAGS.
8513 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8514
8515 # Allow CC to be a program name with arguments.
8516 compiler=$CC
8517
8518 # Save the default compiler, since it gets overwritten when the other
8519 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8520 compiler_DEFAULT=$CC
8521
8522 # save warnings/boilerplate of simple test code
8523 ac_outfile=conftest.$ac_objext
8524 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8525 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8526 _lt_compiler_boilerplate=`cat conftest.err`
8527 $RM conftest*
8528
8529 ac_outfile=conftest.$ac_objext
8530 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8531 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8532 _lt_linker_boilerplate=`cat conftest.err`
8533 $RM -r conftest*
8534
8535
8536 ## CAVEAT EMPTOR:
8537 ## There is no encapsulation within the following macros, do not change
8538 ## the running order or otherwise move them around unless you know exactly
8539 ## what you are doing...
8540 if test -n "$compiler"; then
8541
8542 lt_prog_compiler_no_builtin_flag=
8543
8544 if test "$GCC" = yes; then
8545 case $cc_basename in
8546 nvcc*)
8547 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8548 *)
8549 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8550 esac
8551
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8553 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8554 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 lt_cv_prog_compiler_rtti_exceptions=no
8558 ac_outfile=conftest.$ac_objext
8559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8560 lt_compiler_flag="-fno-rtti -fno-exceptions"
8561 # Insert the option either (1) after the last *FLAGS variable, or
8562 # (2) before a word containing "conftest.", or (3) at the end.
8563 # Note that $ac_compile itself does not contain backslashes and begins
8564 # with a dollar sign (not a hyphen), so the echo should work correctly.
8565 # The option is referenced via a variable to avoid confusing sed.
8566 lt_compile=`echo "$ac_compile" | $SED \
8567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8569 -e 's:$: $lt_compiler_flag:'`
8570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8571 (eval "$lt_compile" 2>conftest.err)
8572 ac_status=$?
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 if (exit $ac_status) && test -s "$ac_outfile"; then
8576 # The compiler can only warn and ignore the option if not recognized
8577 # So say no if there are warnings other than the usual output.
8578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8580 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8581 lt_cv_prog_compiler_rtti_exceptions=yes
8582 fi
8583 fi
8584 $RM conftest*
8585
8586 fi
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8588 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8589
8590 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8591 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8592 else
8593 :
8594 fi
8595
8596 fi
8597
8598
8599
8600
8601
8602
8603 lt_prog_compiler_wl=
8604 lt_prog_compiler_pic=
8605 lt_prog_compiler_static=
8606
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8608 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8609
8610 if test "$GCC" = yes; then
8611 lt_prog_compiler_wl='-Wl,'
8612 lt_prog_compiler_static='-static'
8613
8614 case $host_os in
8615 aix*)
8616 # All AIX code is PIC.
8617 if test "$host_cpu" = ia64; then
8618 # AIX 5 now supports IA64 processor
8619 lt_prog_compiler_static='-Bstatic'
8620 fi
8621 lt_prog_compiler_pic='-fPIC'
8622 ;;
8623
8624 amigaos*)
8625 case $host_cpu in
8626 powerpc)
8627 # see comment about AmigaOS4 .so support
8628 lt_prog_compiler_pic='-fPIC'
8629 ;;
8630 m68k)
8631 # FIXME: we need at least 68020 code to build shared libraries, but
8632 # adding the `-m68020' flag to GCC prevents building anything better,
8633 # like `-m68040'.
8634 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8635 ;;
8636 esac
8637 ;;
8638
8639 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8640 # PIC is the default for these OSes.
8641 ;;
8642
8643 mingw* | cygwin* | pw32* | os2* | cegcc*)
8644 # This hack is so that the source file can tell whether it is being
8645 # built for inclusion in a dll (and should export symbols for example).
8646 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8647 # (--disable-auto-import) libraries
8648 lt_prog_compiler_pic='-DDLL_EXPORT'
8649 ;;
8650
8651 darwin* | rhapsody*)
8652 # PIC is the default on this platform
8653 # Common symbols not allowed in MH_DYLIB files
8654 lt_prog_compiler_pic='-fno-common'
8655 ;;
8656
8657 haiku*)
8658 # PIC is the default for Haiku.
8659 # The "-static" flag exists, but is broken.
8660 lt_prog_compiler_static=
8661 ;;
8662
8663 hpux*)
8664 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8665 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8666 # sets the default TLS model and affects inlining.
8667 case $host_cpu in
8668 hppa*64*)
8669 # +Z the default
8670 ;;
8671 *)
8672 lt_prog_compiler_pic='-fPIC'
8673 ;;
8674 esac
8675 ;;
8676
8677 interix[3-9]*)
8678 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8679 # Instead, we relocate shared libraries at runtime.
8680 ;;
8681
8682 msdosdjgpp*)
8683 # Just because we use GCC doesn't mean we suddenly get shared libraries
8684 # on systems that don't support them.
8685 lt_prog_compiler_can_build_shared=no
8686 enable_shared=no
8687 ;;
8688
8689 *nto* | *qnx*)
8690 # QNX uses GNU C++, but need to define -shared option too, otherwise
8691 # it will coredump.
8692 lt_prog_compiler_pic='-fPIC -shared'
8693 ;;
8694
8695 sysv4*MP*)
8696 if test -d /usr/nec; then
8697 lt_prog_compiler_pic=-Kconform_pic
8698 fi
8699 ;;
8700
8701 *)
8702 lt_prog_compiler_pic='-fPIC'
8703 ;;
8704 esac
8705
8706 case $cc_basename in
8707 nvcc*) # Cuda Compiler Driver 2.2
8708 lt_prog_compiler_wl='-Xlinker '
8709 lt_prog_compiler_pic='-Xcompiler -fPIC'
8710 ;;
8711 esac
8712 else
8713 # PORTME Check for flag to pass linker flags through the system compiler.
8714 case $host_os in
8715 aix*)
8716 lt_prog_compiler_wl='-Wl,'
8717 if test "$host_cpu" = ia64; then
8718 # AIX 5 now supports IA64 processor
8719 lt_prog_compiler_static='-Bstatic'
8720 else
8721 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8722 fi
8723 ;;
8724
8725 mingw* | cygwin* | pw32* | os2* | cegcc*)
8726 # This hack is so that the source file can tell whether it is being
8727 # built for inclusion in a dll (and should export symbols for example).
8728 lt_prog_compiler_pic='-DDLL_EXPORT'
8729 ;;
8730
8731 hpux9* | hpux10* | hpux11*)
8732 lt_prog_compiler_wl='-Wl,'
8733 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8734 # not for PA HP-UX.
8735 case $host_cpu in
8736 hppa*64*|ia64*)
8737 # +Z the default
8738 ;;
8739 *)
8740 lt_prog_compiler_pic='+Z'
8741 ;;
8742 esac
8743 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8744 lt_prog_compiler_static='${wl}-a ${wl}archive'
8745 ;;
8746
8747 irix5* | irix6* | nonstopux*)
8748 lt_prog_compiler_wl='-Wl,'
8749 # PIC (with -KPIC) is the default.
8750 lt_prog_compiler_static='-non_shared'
8751 ;;
8752
8753 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8754 case $cc_basename in
8755 # old Intel for x86_64 which still supported -KPIC.
8756 ecc*)
8757 lt_prog_compiler_wl='-Wl,'
8758 lt_prog_compiler_pic='-KPIC'
8759 lt_prog_compiler_static='-static'
8760 ;;
8761 # icc used to be incompatible with GCC.
8762 # ICC 10 doesn't accept -KPIC any more.
8763 icc* | ifort*)
8764 lt_prog_compiler_wl='-Wl,'
8765 lt_prog_compiler_pic='-fPIC'
8766 lt_prog_compiler_static='-static'
8767 ;;
8768 # Lahey Fortran 8.1.
8769 lf95*)
8770 lt_prog_compiler_wl='-Wl,'
8771 lt_prog_compiler_pic='--shared'
8772 lt_prog_compiler_static='--static'
8773 ;;
8774 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8775 # Portland Group compilers (*not* the Pentium gcc compiler,
8776 # which looks to be a dead project)
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_pic='-fpic'
8779 lt_prog_compiler_static='-Bstatic'
8780 ;;
8781 ccc*)
8782 lt_prog_compiler_wl='-Wl,'
8783 # All Alpha code is PIC.
8784 lt_prog_compiler_static='-non_shared'
8785 ;;
8786 xl* | bgxl* | bgf* | mpixl*)
8787 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_pic='-qpic'
8790 lt_prog_compiler_static='-qstaticlink'
8791 ;;
8792 *)
8793 case `$CC -V 2>&1 | sed 5q` in
8794 *Sun\ F* | *Sun*Fortran*)
8795 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8796 lt_prog_compiler_pic='-KPIC'
8797 lt_prog_compiler_static='-Bstatic'
8798 lt_prog_compiler_wl=''
8799 ;;
8800 *Sun\ C*)
8801 # Sun C 5.9
8802 lt_prog_compiler_pic='-KPIC'
8803 lt_prog_compiler_static='-Bstatic'
8804 lt_prog_compiler_wl='-Wl,'
8805 ;;
8806 esac
8807 ;;
8808 esac
8809 ;;
8810
8811 newsos6)
8812 lt_prog_compiler_pic='-KPIC'
8813 lt_prog_compiler_static='-Bstatic'
8814 ;;
8815
8816 *nto* | *qnx*)
8817 # QNX uses GNU C++, but need to define -shared option too, otherwise
8818 # it will coredump.
8819 lt_prog_compiler_pic='-fPIC -shared'
8820 ;;
8821
8822 osf3* | osf4* | osf5*)
8823 lt_prog_compiler_wl='-Wl,'
8824 # All OSF/1 code is PIC.
8825 lt_prog_compiler_static='-non_shared'
8826 ;;
8827
8828 rdos*)
8829 lt_prog_compiler_static='-non_shared'
8830 ;;
8831
8832 solaris*)
8833 lt_prog_compiler_pic='-KPIC'
8834 lt_prog_compiler_static='-Bstatic'
8835 case $cc_basename in
8836 f77* | f90* | f95*)
8837 lt_prog_compiler_wl='-Qoption ld ';;
8838 *)
8839 lt_prog_compiler_wl='-Wl,';;
8840 esac
8841 ;;
8842
8843 sunos4*)
8844 lt_prog_compiler_wl='-Qoption ld '
8845 lt_prog_compiler_pic='-PIC'
8846 lt_prog_compiler_static='-Bstatic'
8847 ;;
8848
8849 sysv4 | sysv4.2uw2* | sysv4.3*)
8850 lt_prog_compiler_wl='-Wl,'
8851 lt_prog_compiler_pic='-KPIC'
8852 lt_prog_compiler_static='-Bstatic'
8853 ;;
8854
8855 sysv4*MP*)
8856 if test -d /usr/nec ;then
8857 lt_prog_compiler_pic='-Kconform_pic'
8858 lt_prog_compiler_static='-Bstatic'
8859 fi
8860 ;;
8861
8862 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8863 lt_prog_compiler_wl='-Wl,'
8864 lt_prog_compiler_pic='-KPIC'
8865 lt_prog_compiler_static='-Bstatic'
8866 ;;
8867
8868 unicos*)
8869 lt_prog_compiler_wl='-Wl,'
8870 lt_prog_compiler_can_build_shared=no
8871 ;;
8872
8873 uts4*)
8874 lt_prog_compiler_pic='-pic'
8875 lt_prog_compiler_static='-Bstatic'
8876 ;;
8877
8878 *)
8879 lt_prog_compiler_can_build_shared=no
8880 ;;
8881 esac
8882 fi
8883
8884 case $host_os in
8885 # For platforms which do not support PIC, -DPIC is meaningless:
8886 *djgpp*)
8887 lt_prog_compiler_pic=
8888 ;;
8889 *)
8890 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8891 ;;
8892 esac
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8894 $as_echo "$lt_prog_compiler_pic" >&6; }
8895
8896
8897
8898
8899
8900
8901 #
8902 # Check to make sure the PIC flag actually works.
8903 #
8904 if test -n "$lt_prog_compiler_pic"; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8906 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8907 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 lt_cv_prog_compiler_pic_works=no
8911 ac_outfile=conftest.$ac_objext
8912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8913 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8914 # Insert the option either (1) after the last *FLAGS variable, or
8915 # (2) before a word containing "conftest.", or (3) at the end.
8916 # Note that $ac_compile itself does not contain backslashes and begins
8917 # with a dollar sign (not a hyphen), so the echo should work correctly.
8918 # The option is referenced via a variable to avoid confusing sed.
8919 lt_compile=`echo "$ac_compile" | $SED \
8920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8922 -e 's:$: $lt_compiler_flag:'`
8923 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8924 (eval "$lt_compile" 2>conftest.err)
8925 ac_status=$?
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 if (exit $ac_status) && test -s "$ac_outfile"; then
8929 # The compiler can only warn and ignore the option if not recognized
8930 # So say no if there are warnings other than the usual output.
8931 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8933 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8934 lt_cv_prog_compiler_pic_works=yes
8935 fi
8936 fi
8937 $RM conftest*
8938
8939 fi
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8941 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8942
8943 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8944 case $lt_prog_compiler_pic in
8945 "" | " "*) ;;
8946 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8947 esac
8948 else
8949 lt_prog_compiler_pic=
8950 lt_prog_compiler_can_build_shared=no
8951 fi
8952
8953 fi
8954
8955
8956
8957
8958
8959
8960 #
8961 # Check to make sure the static flag actually works.
8962 #
8963 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8965 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8966 if ${lt_cv_prog_compiler_static_works+:} false; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8969 lt_cv_prog_compiler_static_works=no
8970 save_LDFLAGS="$LDFLAGS"
8971 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8972 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8973 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8974 # The linker can only warn and ignore the option if not recognized
8975 # So say no if there are warnings
8976 if test -s conftest.err; then
8977 # Append any errors to the config.log.
8978 cat conftest.err 1>&5
8979 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8981 if diff conftest.exp conftest.er2 >/dev/null; then
8982 lt_cv_prog_compiler_static_works=yes
8983 fi
8984 else
8985 lt_cv_prog_compiler_static_works=yes
8986 fi
8987 fi
8988 $RM -r conftest*
8989 LDFLAGS="$save_LDFLAGS"
8990
8991 fi
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8993 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8994
8995 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8996 :
8997 else
8998 lt_prog_compiler_static=
8999 fi
9000
9001
9002
9003
9004
9005
9006
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9008 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9009 if ${lt_cv_prog_compiler_c_o+:} false; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 lt_cv_prog_compiler_c_o=no
9013 $RM -r conftest 2>/dev/null
9014 mkdir conftest
9015 cd conftest
9016 mkdir out
9017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9018
9019 lt_compiler_flag="-o out/conftest2.$ac_objext"
9020 # Insert the option either (1) after the last *FLAGS variable, or
9021 # (2) before a word containing "conftest.", or (3) at the end.
9022 # Note that $ac_compile itself does not contain backslashes and begins
9023 # with a dollar sign (not a hyphen), so the echo should work correctly.
9024 lt_compile=`echo "$ac_compile" | $SED \
9025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9027 -e 's:$: $lt_compiler_flag:'`
9028 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9029 (eval "$lt_compile" 2>out/conftest.err)
9030 ac_status=$?
9031 cat out/conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9034 then
9035 # The compiler can only warn and ignore the option if not recognized
9036 # So say no if there are warnings
9037 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9038 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9039 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9040 lt_cv_prog_compiler_c_o=yes
9041 fi
9042 fi
9043 chmod u+w . 2>&5
9044 $RM conftest*
9045 # SGI C++ compiler will create directory out/ii_files/ for
9046 # template instantiation
9047 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9048 $RM out/* && rmdir out
9049 cd ..
9050 $RM -r conftest
9051 $RM conftest*
9052
9053 fi
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9055 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9056
9057
9058
9059
9060
9061
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9063 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9064 if ${lt_cv_prog_compiler_c_o+:} false; then :
9065 $as_echo_n "(cached) " >&6
9066 else
9067 lt_cv_prog_compiler_c_o=no
9068 $RM -r conftest 2>/dev/null
9069 mkdir conftest
9070 cd conftest
9071 mkdir out
9072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9073
9074 lt_compiler_flag="-o out/conftest2.$ac_objext"
9075 # Insert the option either (1) after the last *FLAGS variable, or
9076 # (2) before a word containing "conftest.", or (3) at the end.
9077 # Note that $ac_compile itself does not contain backslashes and begins
9078 # with a dollar sign (not a hyphen), so the echo should work correctly.
9079 lt_compile=`echo "$ac_compile" | $SED \
9080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9082 -e 's:$: $lt_compiler_flag:'`
9083 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9084 (eval "$lt_compile" 2>out/conftest.err)
9085 ac_status=$?
9086 cat out/conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9089 then
9090 # The compiler can only warn and ignore the option if not recognized
9091 # So say no if there are warnings
9092 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9093 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9094 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9095 lt_cv_prog_compiler_c_o=yes
9096 fi
9097 fi
9098 chmod u+w . 2>&5
9099 $RM conftest*
9100 # SGI C++ compiler will create directory out/ii_files/ for
9101 # template instantiation
9102 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9103 $RM out/* && rmdir out
9104 cd ..
9105 $RM -r conftest
9106 $RM conftest*
9107
9108 fi
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9110 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9111
9112
9113
9114
9115 hard_links="nottested"
9116 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9117 # do not overwrite the value of need_locks provided by the user
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9119 $as_echo_n "checking if we can lock with hard links... " >&6; }
9120 hard_links=yes
9121 $RM conftest*
9122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9123 touch conftest.a
9124 ln conftest.a conftest.b 2>&5 || hard_links=no
9125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9127 $as_echo "$hard_links" >&6; }
9128 if test "$hard_links" = no; then
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9130 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9131 need_locks=warn
9132 fi
9133 else
9134 need_locks=no
9135 fi
9136
9137
9138
9139
9140
9141
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9143 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9144
9145 runpath_var=
9146 allow_undefined_flag=
9147 always_export_symbols=no
9148 archive_cmds=
9149 archive_expsym_cmds=
9150 compiler_needs_object=no
9151 enable_shared_with_static_runtimes=no
9152 export_dynamic_flag_spec=
9153 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9154 hardcode_automatic=no
9155 hardcode_direct=no
9156 hardcode_direct_absolute=no
9157 hardcode_libdir_flag_spec=
9158 hardcode_libdir_flag_spec_ld=
9159 hardcode_libdir_separator=
9160 hardcode_minus_L=no
9161 hardcode_shlibpath_var=unsupported
9162 inherit_rpath=no
9163 link_all_deplibs=unknown
9164 module_cmds=
9165 module_expsym_cmds=
9166 old_archive_from_new_cmds=
9167 old_archive_from_expsyms_cmds=
9168 thread_safe_flag_spec=
9169 whole_archive_flag_spec=
9170 # include_expsyms should be a list of space-separated symbols to be *always*
9171 # included in the symbol list
9172 include_expsyms=
9173 # exclude_expsyms can be an extended regexp of symbols to exclude
9174 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9175 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9176 # as well as any symbol that contains `d'.
9177 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9178 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9179 # platforms (ab)use it in PIC code, but their linkers get confused if
9180 # the symbol is explicitly referenced. Since portable code cannot
9181 # rely on this symbol name, it's probably fine to never include it in
9182 # preloaded symbol tables.
9183 # Exclude shared library initialization/finalization symbols.
9184 extract_expsyms_cmds=
9185
9186 case $host_os in
9187 cygwin* | mingw* | pw32* | cegcc*)
9188 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9189 # When not using gcc, we currently assume that we are using
9190 # Microsoft Visual C++.
9191 if test "$GCC" != yes; then
9192 with_gnu_ld=no
9193 fi
9194 ;;
9195 interix*)
9196 # we just hope/assume this is gcc and not c89 (= MSVC++)
9197 with_gnu_ld=yes
9198 ;;
9199 openbsd*)
9200 with_gnu_ld=no
9201 ;;
9202 esac
9203
9204 ld_shlibs=yes
9205
9206 # On some targets, GNU ld is compatible enough with the native linker
9207 # that we're better off using the native interface for both.
9208 lt_use_gnu_ld_interface=no
9209 if test "$with_gnu_ld" = yes; then
9210 case $host_os in
9211 aix*)
9212 # The AIX port of GNU ld has always aspired to compatibility
9213 # with the native linker. However, as the warning in the GNU ld
9214 # block says, versions before 2.19.5* couldn't really create working
9215 # shared libraries, regardless of the interface used.
9216 case `$LD -v 2>&1` in
9217 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9218 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9219 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9220 *)
9221 lt_use_gnu_ld_interface=yes
9222 ;;
9223 esac
9224 ;;
9225 *)
9226 lt_use_gnu_ld_interface=yes
9227 ;;
9228 esac
9229 fi
9230
9231 if test "$lt_use_gnu_ld_interface" = yes; then
9232 # If archive_cmds runs LD, not CC, wlarc should be empty
9233 wlarc='${wl}'
9234
9235 # Set some defaults for GNU ld with shared library support. These
9236 # are reset later if shared libraries are not supported. Putting them
9237 # here allows them to be overridden if necessary.
9238 runpath_var=LD_RUN_PATH
9239 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9240 export_dynamic_flag_spec='${wl}--export-dynamic'
9241 # ancient GNU ld didn't support --whole-archive et. al.
9242 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9243 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9244 else
9245 whole_archive_flag_spec=
9246 fi
9247 supports_anon_versioning=no
9248 case `$LD -v 2>&1` in
9249 *GNU\ gold*) supports_anon_versioning=yes ;;
9250 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9251 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9252 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9253 *\ 2.11.*) ;; # other 2.11 versions
9254 *) supports_anon_versioning=yes ;;
9255 esac
9256
9257 # See if GNU ld supports shared libraries.
9258 case $host_os in
9259 aix[3-9]*)
9260 # On AIX/PPC, the GNU linker is very broken
9261 if test "$host_cpu" != ia64; then
9262 ld_shlibs=no
9263 cat <<_LT_EOF 1>&2
9264
9265 *** Warning: the GNU linker, at least up to release 2.19, is reported
9266 *** to be unable to reliably create shared libraries on AIX.
9267 *** Therefore, libtool is disabling shared libraries support. If you
9268 *** really care for shared libraries, you may want to install binutils
9269 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9270 *** You will then need to restart the configuration process.
9271
9272 _LT_EOF
9273 fi
9274 ;;
9275
9276 amigaos*)
9277 case $host_cpu in
9278 powerpc)
9279 # see comment about AmigaOS4 .so support
9280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9281 archive_expsym_cmds=''
9282 ;;
9283 m68k)
9284 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)'
9285 hardcode_libdir_flag_spec='-L$libdir'
9286 hardcode_minus_L=yes
9287 ;;
9288 esac
9289 ;;
9290
9291 beos*)
9292 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9293 allow_undefined_flag=unsupported
9294 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9295 # support --undefined. This deserves some investigation. FIXME
9296 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9297 else
9298 ld_shlibs=no
9299 fi
9300 ;;
9301
9302 cygwin* | mingw* | pw32* | cegcc*)
9303 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9304 # as there is no search path for DLLs.
9305 hardcode_libdir_flag_spec='-L$libdir'
9306 export_dynamic_flag_spec='${wl}--export-all-symbols'
9307 allow_undefined_flag=unsupported
9308 always_export_symbols=no
9309 enable_shared_with_static_runtimes=yes
9310 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9311
9312 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9314 # If the export-symbols file already is a .def file (1st line
9315 # is EXPORTS), use it as is; otherwise, prepend...
9316 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9317 cp $export_symbols $output_objdir/$soname.def;
9318 else
9319 echo EXPORTS > $output_objdir/$soname.def;
9320 cat $export_symbols >> $output_objdir/$soname.def;
9321 fi~
9322 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9323 else
9324 ld_shlibs=no
9325 fi
9326 ;;
9327
9328 haiku*)
9329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9330 link_all_deplibs=yes
9331 ;;
9332
9333 interix[3-9]*)
9334 hardcode_direct=no
9335 hardcode_shlibpath_var=no
9336 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9337 export_dynamic_flag_spec='${wl}-E'
9338 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9339 # Instead, shared libraries are loaded at an image base (0x10000000 by
9340 # default) and relocated if they conflict, which is a slow very memory
9341 # consuming and fragmenting process. To avoid this, we pick a random,
9342 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9343 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9344 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9345 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'
9346 ;;
9347
9348 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9349 tmp_diet=no
9350 if test "$host_os" = linux-dietlibc; then
9351 case $cc_basename in
9352 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9353 esac
9354 fi
9355 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9356 && test "$tmp_diet" = no
9357 then
9358 tmp_addflag=' $pic_flag'
9359 tmp_sharedflag='-shared'
9360 case $cc_basename,$host_cpu in
9361 pgcc*) # Portland Group C compiler
9362 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'
9363 tmp_addflag=' $pic_flag'
9364 ;;
9365 pgf77* | pgf90* | pgf95* | pgfortran*)
9366 # Portland Group f77 and f90 compilers
9367 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'
9368 tmp_addflag=' $pic_flag -Mnomain' ;;
9369 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9370 tmp_addflag=' -i_dynamic' ;;
9371 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9372 tmp_addflag=' -i_dynamic -nofor_main' ;;
9373 ifc* | ifort*) # Intel Fortran compiler
9374 tmp_addflag=' -nofor_main' ;;
9375 lf95*) # Lahey Fortran 8.1
9376 whole_archive_flag_spec=
9377 tmp_sharedflag='--shared' ;;
9378 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9379 tmp_sharedflag='-qmkshrobj'
9380 tmp_addflag= ;;
9381 nvcc*) # Cuda Compiler Driver 2.2
9382 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'
9383 compiler_needs_object=yes
9384 ;;
9385 esac
9386 case `$CC -V 2>&1 | sed 5q` in
9387 *Sun\ C*) # Sun C 5.9
9388 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'
9389 compiler_needs_object=yes
9390 tmp_sharedflag='-G' ;;
9391 *Sun\ F*) # Sun Fortran 8.3
9392 tmp_sharedflag='-G' ;;
9393 esac
9394 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9395
9396 if test "x$supports_anon_versioning" = xyes; then
9397 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9398 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9399 echo "local: *; };" >> $output_objdir/$libname.ver~
9400 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9401 fi
9402
9403 case $cc_basename in
9404 xlf* | bgf* | bgxlf* | mpixlf*)
9405 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9406 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9407 hardcode_libdir_flag_spec=
9408 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9409 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9410 if test "x$supports_anon_versioning" = xyes; then
9411 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9412 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9413 echo "local: *; };" >> $output_objdir/$libname.ver~
9414 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9415 fi
9416 ;;
9417 esac
9418 else
9419 ld_shlibs=no
9420 fi
9421 ;;
9422
9423 netbsd*)
9424 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9425 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9426 wlarc=
9427 else
9428 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9429 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9430 fi
9431 ;;
9432
9433 solaris*)
9434 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9435 ld_shlibs=no
9436 cat <<_LT_EOF 1>&2
9437
9438 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9439 *** create shared libraries on Solaris systems. Therefore, libtool
9440 *** is disabling shared libraries support. We urge you to upgrade GNU
9441 *** binutils to release 2.9.1 or newer. Another option is to modify
9442 *** your PATH or compiler configuration so that the native linker is
9443 *** used, and then restart.
9444
9445 _LT_EOF
9446 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9448 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9449 else
9450 ld_shlibs=no
9451 fi
9452 ;;
9453
9454 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9455 case `$LD -v 2>&1` in
9456 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9457 ld_shlibs=no
9458 cat <<_LT_EOF 1>&2
9459
9460 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9461 *** reliably create shared libraries on SCO systems. Therefore, libtool
9462 *** is disabling shared libraries support. We urge you to upgrade GNU
9463 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9464 *** your PATH or compiler configuration so that the native linker is
9465 *** used, and then restart.
9466
9467 _LT_EOF
9468 ;;
9469 *)
9470 # For security reasons, it is highly recommended that you always
9471 # use absolute paths for naming shared libraries, and exclude the
9472 # DT_RUNPATH tag from executables and libraries. But doing so
9473 # requires that you compile everything twice, which is a pain.
9474 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9475 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9477 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9478 else
9479 ld_shlibs=no
9480 fi
9481 ;;
9482 esac
9483 ;;
9484
9485 sunos4*)
9486 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9487 wlarc=
9488 hardcode_direct=yes
9489 hardcode_shlibpath_var=no
9490 ;;
9491
9492 *)
9493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9495 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9496 else
9497 ld_shlibs=no
9498 fi
9499 ;;
9500 esac
9501
9502 if test "$ld_shlibs" = no; then
9503 runpath_var=
9504 hardcode_libdir_flag_spec=
9505 export_dynamic_flag_spec=
9506 whole_archive_flag_spec=
9507 fi
9508 else
9509 # PORTME fill in a description of your system's linker (not GNU ld)
9510 case $host_os in
9511 aix3*)
9512 allow_undefined_flag=unsupported
9513 always_export_symbols=yes
9514 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'
9515 # Note: this linker hardcodes the directories in LIBPATH if there
9516 # are no directories specified by -L.
9517 hardcode_minus_L=yes
9518 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9519 # Neither direct hardcoding nor static linking is supported with a
9520 # broken collect2.
9521 hardcode_direct=unsupported
9522 fi
9523 ;;
9524
9525 aix[4-9]*)
9526 if test "$host_cpu" = ia64; then
9527 # On IA64, the linker does run time linking by default, so we don't
9528 # have to do anything special.
9529 aix_use_runtimelinking=no
9530 exp_sym_flag='-Bexport'
9531 no_entry_flag=""
9532 else
9533 # If we're using GNU nm, then we don't want the "-C" option.
9534 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9535 # Also, AIX nm treats weak defined symbols like other global
9536 # defined symbols, whereas GNU nm marks them as "W".
9537 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9538 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'
9539 else
9540 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'
9541 fi
9542 aix_use_runtimelinking=no
9543
9544 # Test if we are trying to use run time linking or normal
9545 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9546 # need to do runtime linking.
9547 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9548 for ld_flag in $LDFLAGS; do
9549 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9550 aix_use_runtimelinking=yes
9551 break
9552 fi
9553 done
9554 ;;
9555 esac
9556
9557 exp_sym_flag='-bexport'
9558 no_entry_flag='-bnoentry'
9559 fi
9560
9561 # When large executables or shared objects are built, AIX ld can
9562 # have problems creating the table of contents. If linking a library
9563 # or program results in "error TOC overflow" add -mminimal-toc to
9564 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9565 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9566
9567 archive_cmds=''
9568 hardcode_direct=yes
9569 hardcode_direct_absolute=yes
9570 hardcode_libdir_separator=':'
9571 link_all_deplibs=yes
9572 file_list_spec='${wl}-f,'
9573
9574 if test "$GCC" = yes; then
9575 case $host_os in aix4.[012]|aix4.[012].*)
9576 # We only want to do this on AIX 4.2 and lower, the check
9577 # below for broken collect2 doesn't work under 4.3+
9578 collect2name=`${CC} -print-prog-name=collect2`
9579 if test -f "$collect2name" &&
9580 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9581 then
9582 # We have reworked collect2
9583 :
9584 else
9585 # We have old collect2
9586 hardcode_direct=unsupported
9587 # It fails to find uninstalled libraries when the uninstalled
9588 # path is not listed in the libpath. Setting hardcode_minus_L
9589 # to unsupported forces relinking
9590 hardcode_minus_L=yes
9591 hardcode_libdir_flag_spec='-L$libdir'
9592 hardcode_libdir_separator=
9593 fi
9594 ;;
9595 esac
9596 shared_flag='-shared'
9597 if test "$aix_use_runtimelinking" = yes; then
9598 shared_flag="$shared_flag "'${wl}-G'
9599 fi
9600 else
9601 # not using gcc
9602 if test "$host_cpu" = ia64; then
9603 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9604 # chokes on -Wl,-G. The following line is correct:
9605 shared_flag='-G'
9606 else
9607 if test "$aix_use_runtimelinking" = yes; then
9608 shared_flag='${wl}-G'
9609 else
9610 shared_flag='${wl}-bM:SRE'
9611 fi
9612 fi
9613 fi
9614
9615 export_dynamic_flag_spec='${wl}-bexpall'
9616 # It seems that -bexpall does not export symbols beginning with
9617 # underscore (_), so it is better to generate a list of symbols to export.
9618 always_export_symbols=yes
9619 if test "$aix_use_runtimelinking" = yes; then
9620 # Warning - without using the other runtime loading flags (-brtl),
9621 # -berok will link without error, but may produce a broken library.
9622 allow_undefined_flag='-berok'
9623 # Determine the default libpath from the value encoded in an
9624 # empty executable.
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9627
9628 int
9629 main ()
9630 {
9631
9632 ;
9633 return 0;
9634 }
9635 _ACEOF
9636 if ac_fn_c_try_link "$LINENO"; then :
9637
9638 lt_aix_libpath_sed='
9639 /Import File Strings/,/^$/ {
9640 /^0/ {
9641 s/^0 *\(.*\)$/\1/
9642 p
9643 }
9644 }'
9645 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9646 # Check for a 64-bit object if we didn't find anything.
9647 if test -z "$aix_libpath"; then
9648 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9649 fi
9650 fi
9651 rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9653 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9654
9655 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9656 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"
9657 else
9658 if test "$host_cpu" = ia64; then
9659 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9660 allow_undefined_flag="-z nodefs"
9661 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"
9662 else
9663 # Determine the default libpath from the value encoded in an
9664 # empty executable.
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h. */
9667
9668 int
9669 main ()
9670 {
9671
9672 ;
9673 return 0;
9674 }
9675 _ACEOF
9676 if ac_fn_c_try_link "$LINENO"; then :
9677
9678 lt_aix_libpath_sed='
9679 /Import File Strings/,/^$/ {
9680 /^0/ {
9681 s/^0 *\(.*\)$/\1/
9682 p
9683 }
9684 }'
9685 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9686 # Check for a 64-bit object if we didn't find anything.
9687 if test -z "$aix_libpath"; then
9688 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9689 fi
9690 fi
9691 rm -f core conftest.err conftest.$ac_objext \
9692 conftest$ac_exeext conftest.$ac_ext
9693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9694
9695 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9696 # Warning - without using the other run time loading flags,
9697 # -berok will link without error, but may produce a broken library.
9698 no_undefined_flag=' ${wl}-bernotok'
9699 allow_undefined_flag=' ${wl}-berok'
9700 if test "$with_gnu_ld" = yes; then
9701 # We only use this code for GNU lds that support --whole-archive.
9702 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9703 else
9704 # Exported symbols can be pulled into shared objects from archives
9705 whole_archive_flag_spec='$convenience'
9706 fi
9707 archive_cmds_need_lc=yes
9708 # This is similar to how AIX traditionally builds its shared libraries.
9709 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'
9710 fi
9711 fi
9712 ;;
9713
9714 amigaos*)
9715 case $host_cpu in
9716 powerpc)
9717 # see comment about AmigaOS4 .so support
9718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9719 archive_expsym_cmds=''
9720 ;;
9721 m68k)
9722 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)'
9723 hardcode_libdir_flag_spec='-L$libdir'
9724 hardcode_minus_L=yes
9725 ;;
9726 esac
9727 ;;
9728
9729 bsdi[45]*)
9730 export_dynamic_flag_spec=-rdynamic
9731 ;;
9732
9733 cygwin* | mingw* | pw32* | cegcc*)
9734 # When not using gcc, we currently assume that we are using
9735 # Microsoft Visual C++.
9736 # hardcode_libdir_flag_spec is actually meaningless, as there is
9737 # no search path for DLLs.
9738 hardcode_libdir_flag_spec=' '
9739 allow_undefined_flag=unsupported
9740 # Tell ltmain to make .lib files, not .a files.
9741 libext=lib
9742 # Tell ltmain to make .dll files, not .so files.
9743 shrext_cmds=".dll"
9744 # FIXME: Setting linknames here is a bad hack.
9745 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9746 # The linker will automatically build a .lib file if we build a DLL.
9747 old_archive_from_new_cmds='true'
9748 # FIXME: Should let the user specify the lib program.
9749 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9750 fix_srcfile_path='`cygpath -w "$srcfile"`'
9751 enable_shared_with_static_runtimes=yes
9752 ;;
9753
9754 darwin* | rhapsody*)
9755
9756
9757 archive_cmds_need_lc=no
9758 hardcode_direct=no
9759 hardcode_automatic=yes
9760 hardcode_shlibpath_var=unsupported
9761 if test "$lt_cv_ld_force_load" = "yes"; then
9762 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\"`'
9763 else
9764 whole_archive_flag_spec=''
9765 fi
9766 link_all_deplibs=yes
9767 allow_undefined_flag="$_lt_dar_allow_undefined"
9768 case $cc_basename in
9769 ifort*) _lt_dar_can_shared=yes ;;
9770 *) _lt_dar_can_shared=$GCC ;;
9771 esac
9772 if test "$_lt_dar_can_shared" = "yes"; then
9773 output_verbose_link_cmd=func_echo_all
9774 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9775 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9776 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}"
9777 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}"
9778
9779 else
9780 ld_shlibs=no
9781 fi
9782
9783 ;;
9784
9785 dgux*)
9786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9787 hardcode_libdir_flag_spec='-L$libdir'
9788 hardcode_shlibpath_var=no
9789 ;;
9790
9791 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9792 # support. Future versions do this automatically, but an explicit c++rt0.o
9793 # does not break anything, and helps significantly (at the cost of a little
9794 # extra space).
9795 freebsd2.2*)
9796 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9797 hardcode_libdir_flag_spec='-R$libdir'
9798 hardcode_direct=yes
9799 hardcode_shlibpath_var=no
9800 ;;
9801
9802 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9803 freebsd2.*)
9804 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_direct=yes
9806 hardcode_minus_L=yes
9807 hardcode_shlibpath_var=no
9808 ;;
9809
9810 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9811 freebsd* | dragonfly*)
9812 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9813 hardcode_libdir_flag_spec='-R$libdir'
9814 hardcode_direct=yes
9815 hardcode_shlibpath_var=no
9816 ;;
9817
9818 hpux9*)
9819 if test "$GCC" = yes; then
9820 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'
9821 else
9822 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'
9823 fi
9824 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9825 hardcode_libdir_separator=:
9826 hardcode_direct=yes
9827
9828 # hardcode_minus_L: Not really in the search PATH,
9829 # but as the default location of the library.
9830 hardcode_minus_L=yes
9831 export_dynamic_flag_spec='${wl}-E'
9832 ;;
9833
9834 hpux10*)
9835 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9836 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9837 else
9838 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9839 fi
9840 if test "$with_gnu_ld" = no; then
9841 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9842 hardcode_libdir_flag_spec_ld='+b $libdir'
9843 hardcode_libdir_separator=:
9844 hardcode_direct=yes
9845 hardcode_direct_absolute=yes
9846 export_dynamic_flag_spec='${wl}-E'
9847 # hardcode_minus_L: Not really in the search PATH,
9848 # but as the default location of the library.
9849 hardcode_minus_L=yes
9850 fi
9851 ;;
9852
9853 hpux11*)
9854 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9855 case $host_cpu in
9856 hppa*64*)
9857 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9858 ;;
9859 ia64*)
9860 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9861 ;;
9862 *)
9863 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9864 ;;
9865 esac
9866 else
9867 case $host_cpu in
9868 hppa*64*)
9869 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9870 ;;
9871 ia64*)
9872 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9873 ;;
9874 *)
9875
9876 # Older versions of the 11.00 compiler do not understand -b yet
9877 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9879 $as_echo_n "checking if $CC understands -b... " >&6; }
9880 if ${lt_cv_prog_compiler__b+:} false; then :
9881 $as_echo_n "(cached) " >&6
9882 else
9883 lt_cv_prog_compiler__b=no
9884 save_LDFLAGS="$LDFLAGS"
9885 LDFLAGS="$LDFLAGS -b"
9886 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9887 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9888 # The linker can only warn and ignore the option if not recognized
9889 # So say no if there are warnings
9890 if test -s conftest.err; then
9891 # Append any errors to the config.log.
9892 cat conftest.err 1>&5
9893 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9895 if diff conftest.exp conftest.er2 >/dev/null; then
9896 lt_cv_prog_compiler__b=yes
9897 fi
9898 else
9899 lt_cv_prog_compiler__b=yes
9900 fi
9901 fi
9902 $RM -r conftest*
9903 LDFLAGS="$save_LDFLAGS"
9904
9905 fi
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9907 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9908
9909 if test x"$lt_cv_prog_compiler__b" = xyes; then
9910 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9911 else
9912 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9913 fi
9914
9915 ;;
9916 esac
9917 fi
9918 if test "$with_gnu_ld" = no; then
9919 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9920 hardcode_libdir_separator=:
9921
9922 case $host_cpu in
9923 hppa*64*|ia64*)
9924 hardcode_direct=no
9925 hardcode_shlibpath_var=no
9926 ;;
9927 *)
9928 hardcode_direct=yes
9929 hardcode_direct_absolute=yes
9930 export_dynamic_flag_spec='${wl}-E'
9931
9932 # hardcode_minus_L: Not really in the search PATH,
9933 # but as the default location of the library.
9934 hardcode_minus_L=yes
9935 ;;
9936 esac
9937 fi
9938 ;;
9939
9940 irix5* | irix6* | nonstopux*)
9941 if test "$GCC" = yes; then
9942 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'
9943 # Try to use the -exported_symbol ld option, if it does not
9944 # work, assume that -exports_file does not work either and
9945 # implicitly export all symbols.
9946 save_LDFLAGS="$LDFLAGS"
9947 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h. */
9950 int foo(void) {}
9951 _ACEOF
9952 if ac_fn_c_try_link "$LINENO"; then :
9953 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'
9954
9955 fi
9956 rm -f core conftest.err conftest.$ac_objext \
9957 conftest$ac_exeext conftest.$ac_ext
9958 LDFLAGS="$save_LDFLAGS"
9959 else
9960 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'
9961 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'
9962 fi
9963 archive_cmds_need_lc='no'
9964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9965 hardcode_libdir_separator=:
9966 inherit_rpath=yes
9967 link_all_deplibs=yes
9968 ;;
9969
9970 netbsd*)
9971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9973 else
9974 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9975 fi
9976 hardcode_libdir_flag_spec='-R$libdir'
9977 hardcode_direct=yes
9978 hardcode_shlibpath_var=no
9979 ;;
9980
9981 newsos6)
9982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9983 hardcode_direct=yes
9984 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9985 hardcode_libdir_separator=:
9986 hardcode_shlibpath_var=no
9987 ;;
9988
9989 *nto* | *qnx*)
9990 ;;
9991
9992 openbsd*)
9993 if test -f /usr/libexec/ld.so; then
9994 hardcode_direct=yes
9995 hardcode_shlibpath_var=no
9996 hardcode_direct_absolute=yes
9997 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9998 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9999 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10000 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10001 export_dynamic_flag_spec='${wl}-E'
10002 else
10003 case $host_os in
10004 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10006 hardcode_libdir_flag_spec='-R$libdir'
10007 ;;
10008 *)
10009 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10010 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10011 ;;
10012 esac
10013 fi
10014 else
10015 ld_shlibs=no
10016 fi
10017 ;;
10018
10019 os2*)
10020 hardcode_libdir_flag_spec='-L$libdir'
10021 hardcode_minus_L=yes
10022 allow_undefined_flag=unsupported
10023 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'
10024 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10025 ;;
10026
10027 osf3*)
10028 if test "$GCC" = yes; then
10029 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10030 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'
10031 else
10032 allow_undefined_flag=' -expect_unresolved \*'
10033 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'
10034 fi
10035 archive_cmds_need_lc='no'
10036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10037 hardcode_libdir_separator=:
10038 ;;
10039
10040 osf4* | osf5*) # as osf3* with the addition of -msym flag
10041 if test "$GCC" = yes; then
10042 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10043 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'
10044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10045 else
10046 allow_undefined_flag=' -expect_unresolved \*'
10047 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'
10048 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~
10049 $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'
10050
10051 # Both c and cxx compiler support -rpath directly
10052 hardcode_libdir_flag_spec='-rpath $libdir'
10053 fi
10054 archive_cmds_need_lc='no'
10055 hardcode_libdir_separator=:
10056 ;;
10057
10058 solaris*)
10059 no_undefined_flag=' -z defs'
10060 if test "$GCC" = yes; then
10061 wlarc='${wl}'
10062 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10063 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10064 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10065 else
10066 case `$CC -V 2>&1` in
10067 *"Compilers 5.0"*)
10068 wlarc=''
10069 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10070 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10071 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10072 ;;
10073 *)
10074 wlarc='${wl}'
10075 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10076 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10077 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10078 ;;
10079 esac
10080 fi
10081 hardcode_libdir_flag_spec='-R$libdir'
10082 hardcode_shlibpath_var=no
10083 case $host_os in
10084 solaris2.[0-5] | solaris2.[0-5].*) ;;
10085 *)
10086 # The compiler driver will combine and reorder linker options,
10087 # but understands `-z linker_flag'. GCC discards it without `$wl',
10088 # but is careful enough not to reorder.
10089 # Supported since Solaris 2.6 (maybe 2.5.1?)
10090 if test "$GCC" = yes; then
10091 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10092 else
10093 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10094 fi
10095 ;;
10096 esac
10097 link_all_deplibs=yes
10098 ;;
10099
10100 sunos4*)
10101 if test "x$host_vendor" = xsequent; then
10102 # Use $CC to link under sequent, because it throws in some extra .o
10103 # files that make .init and .fini sections work.
10104 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10105 else
10106 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10107 fi
10108 hardcode_libdir_flag_spec='-L$libdir'
10109 hardcode_direct=yes
10110 hardcode_minus_L=yes
10111 hardcode_shlibpath_var=no
10112 ;;
10113
10114 sysv4)
10115 case $host_vendor in
10116 sni)
10117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10118 hardcode_direct=yes # is this really true???
10119 ;;
10120 siemens)
10121 ## LD is ld it makes a PLAMLIB
10122 ## CC just makes a GrossModule.
10123 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10124 reload_cmds='$CC -r -o $output$reload_objs'
10125 hardcode_direct=no
10126 ;;
10127 motorola)
10128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10129 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10130 ;;
10131 esac
10132 runpath_var='LD_RUN_PATH'
10133 hardcode_shlibpath_var=no
10134 ;;
10135
10136 sysv4.3*)
10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138 hardcode_shlibpath_var=no
10139 export_dynamic_flag_spec='-Bexport'
10140 ;;
10141
10142 sysv4*MP*)
10143 if test -d /usr/nec; then
10144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145 hardcode_shlibpath_var=no
10146 runpath_var=LD_RUN_PATH
10147 hardcode_runpath_var=yes
10148 ld_shlibs=yes
10149 fi
10150 ;;
10151
10152 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10153 no_undefined_flag='${wl}-z,text'
10154 archive_cmds_need_lc=no
10155 hardcode_shlibpath_var=no
10156 runpath_var='LD_RUN_PATH'
10157
10158 if test "$GCC" = yes; then
10159 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10160 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10161 else
10162 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10163 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164 fi
10165 ;;
10166
10167 sysv5* | sco3.2v5* | sco5v6*)
10168 # Note: We can NOT use -z defs as we might desire, because we do not
10169 # link with -lc, and that would cause any symbols used from libc to
10170 # always be unresolved, which means just about no library would
10171 # ever link correctly. If we're not using GNU ld we use -z text
10172 # though, which does catch some bad symbols but isn't as heavy-handed
10173 # as -z defs.
10174 no_undefined_flag='${wl}-z,text'
10175 allow_undefined_flag='${wl}-z,nodefs'
10176 archive_cmds_need_lc=no
10177 hardcode_shlibpath_var=no
10178 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10179 hardcode_libdir_separator=':'
10180 link_all_deplibs=yes
10181 export_dynamic_flag_spec='${wl}-Bexport'
10182 runpath_var='LD_RUN_PATH'
10183
10184 if test "$GCC" = yes; then
10185 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10186 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10187 else
10188 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10189 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190 fi
10191 ;;
10192
10193 uts4*)
10194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195 hardcode_libdir_flag_spec='-L$libdir'
10196 hardcode_shlibpath_var=no
10197 ;;
10198
10199 *)
10200 ld_shlibs=no
10201 ;;
10202 esac
10203
10204 if test x$host_vendor = xsni; then
10205 case $host in
10206 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10207 export_dynamic_flag_spec='${wl}-Blargedynsym'
10208 ;;
10209 esac
10210 fi
10211 fi
10212
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10214 $as_echo "$ld_shlibs" >&6; }
10215 test "$ld_shlibs" = no && can_build_shared=no
10216
10217 with_gnu_ld=$with_gnu_ld
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233 #
10234 # Do we need to explicitly link libc?
10235 #
10236 case "x$archive_cmds_need_lc" in
10237 x|xyes)
10238 # Assume -lc should be added
10239 archive_cmds_need_lc=yes
10240
10241 if test "$enable_shared" = yes && test "$GCC" = yes; then
10242 case $archive_cmds in
10243 *'~'*)
10244 # FIXME: we may have to deal with multi-command sequences.
10245 ;;
10246 '$CC '*)
10247 # Test whether the compiler implicitly links with -lc since on some
10248 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10249 # to ld, don't add -lc before -lgcc.
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10251 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10252 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10253 $as_echo_n "(cached) " >&6
10254 else
10255 $RM conftest*
10256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10257
10258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10259 (eval $ac_compile) 2>&5
10260 ac_status=$?
10261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10262 test $ac_status = 0; } 2>conftest.err; then
10263 soname=conftest
10264 lib=conftest
10265 libobjs=conftest.$ac_objext
10266 deplibs=
10267 wl=$lt_prog_compiler_wl
10268 pic_flag=$lt_prog_compiler_pic
10269 compiler_flags=-v
10270 linker_flags=-v
10271 verstring=
10272 output_objdir=.
10273 libname=conftest
10274 lt_save_allow_undefined_flag=$allow_undefined_flag
10275 allow_undefined_flag=
10276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10277 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10278 ac_status=$?
10279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10280 test $ac_status = 0; }
10281 then
10282 lt_cv_archive_cmds_need_lc=no
10283 else
10284 lt_cv_archive_cmds_need_lc=yes
10285 fi
10286 allow_undefined_flag=$lt_save_allow_undefined_flag
10287 else
10288 cat conftest.err 1>&5
10289 fi
10290 $RM conftest*
10291
10292 fi
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10294 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10295 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10296 ;;
10297 esac
10298 fi
10299 ;;
10300 esac
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10459 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10460
10461 if test "$GCC" = yes; then
10462 case $host_os in
10463 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10464 *) lt_awk_arg="/^libraries:/" ;;
10465 esac
10466 case $host_os in
10467 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10468 *) lt_sed_strip_eq="s,=/,/,g" ;;
10469 esac
10470 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10471 case $lt_search_path_spec in
10472 *\;*)
10473 # if the path contains ";" then we assume it to be the separator
10474 # otherwise default to the standard path separator (i.e. ":") - it is
10475 # assumed that no part of a normal pathname contains ";" but that should
10476 # okay in the real world where ";" in dirpaths is itself problematic.
10477 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10478 ;;
10479 *)
10480 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10481 ;;
10482 esac
10483 # Ok, now we have the path, separated by spaces, we can step through it
10484 # and add multilib dir if necessary.
10485 lt_tmp_lt_search_path_spec=
10486 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10487 for lt_sys_path in $lt_search_path_spec; do
10488 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10489 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10490 else
10491 test -d "$lt_sys_path" && \
10492 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10493 fi
10494 done
10495 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10496 BEGIN {RS=" "; FS="/|\n";} {
10497 lt_foo="";
10498 lt_count=0;
10499 for (lt_i = NF; lt_i > 0; lt_i--) {
10500 if ($lt_i != "" && $lt_i != ".") {
10501 if ($lt_i == "..") {
10502 lt_count++;
10503 } else {
10504 if (lt_count == 0) {
10505 lt_foo="/" $lt_i lt_foo;
10506 } else {
10507 lt_count--;
10508 }
10509 }
10510 }
10511 }
10512 if (lt_foo != "") { lt_freq[lt_foo]++; }
10513 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10514 }'`
10515 # AWK program above erroneously prepends '/' to C:/dos/paths
10516 # for these hosts.
10517 case $host_os in
10518 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10519 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10520 esac
10521 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10522 else
10523 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10524 fi
10525 library_names_spec=
10526 libname_spec='lib$name'
10527 soname_spec=
10528 shrext_cmds=".so"
10529 postinstall_cmds=
10530 postuninstall_cmds=
10531 finish_cmds=
10532 finish_eval=
10533 shlibpath_var=
10534 shlibpath_overrides_runpath=unknown
10535 version_type=none
10536 dynamic_linker="$host_os ld.so"
10537 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10538 need_lib_prefix=unknown
10539 hardcode_into_libs=no
10540
10541 # when you set need_version to no, make sure it does not cause -set_version
10542 # flags to be left without arguments
10543 need_version=unknown
10544
10545 case $host_os in
10546 aix3*)
10547 version_type=linux
10548 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10549 shlibpath_var=LIBPATH
10550
10551 # AIX 3 has no versioning support, so we append a major version to the name.
10552 soname_spec='${libname}${release}${shared_ext}$major'
10553 ;;
10554
10555 aix[4-9]*)
10556 version_type=linux
10557 need_lib_prefix=no
10558 need_version=no
10559 hardcode_into_libs=yes
10560 if test "$host_cpu" = ia64; then
10561 # AIX 5 supports IA64
10562 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10563 shlibpath_var=LD_LIBRARY_PATH
10564 else
10565 # With GCC up to 2.95.x, collect2 would create an import file
10566 # for dependence libraries. The import file would start with
10567 # the line `#! .'. This would cause the generated library to
10568 # depend on `.', always an invalid library. This was fixed in
10569 # development snapshots of GCC prior to 3.0.
10570 case $host_os in
10571 aix4 | aix4.[01] | aix4.[01].*)
10572 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10573 echo ' yes '
10574 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10575 :
10576 else
10577 can_build_shared=no
10578 fi
10579 ;;
10580 esac
10581 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10582 # soname into executable. Probably we can add versioning support to
10583 # collect2, so additional links can be useful in future.
10584 if test "$aix_use_runtimelinking" = yes; then
10585 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10586 # instead of lib<name>.a to let people know that these are not
10587 # typical AIX shared libraries.
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589 else
10590 # We preserve .a as extension for shared libraries through AIX4.2
10591 # and later when we are not doing run time linking.
10592 library_names_spec='${libname}${release}.a $libname.a'
10593 soname_spec='${libname}${release}${shared_ext}$major'
10594 fi
10595 shlibpath_var=LIBPATH
10596 fi
10597 ;;
10598
10599 amigaos*)
10600 case $host_cpu in
10601 powerpc)
10602 # Since July 2007 AmigaOS4 officially supports .so libraries.
10603 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605 ;;
10606 m68k)
10607 library_names_spec='$libname.ixlibrary $libname.a'
10608 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10609 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'
10610 ;;
10611 esac
10612 ;;
10613
10614 beos*)
10615 library_names_spec='${libname}${shared_ext}'
10616 dynamic_linker="$host_os ld.so"
10617 shlibpath_var=LIBRARY_PATH
10618 ;;
10619
10620 bsdi[45]*)
10621 version_type=linux
10622 need_version=no
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10628 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10629 # the default ld.so.conf also contains /usr/contrib/lib and
10630 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10631 # libtool to hard-code these into programs
10632 ;;
10633
10634 cygwin* | mingw* | pw32* | cegcc*)
10635 version_type=windows
10636 shrext_cmds=".dll"
10637 need_version=no
10638 need_lib_prefix=no
10639
10640 case $GCC,$host_os in
10641 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10642 library_names_spec='$libname.dll.a'
10643 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10644 postinstall_cmds='base_file=`basename \${file}`~
10645 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10646 dldir=$destdir/`dirname \$dlpath`~
10647 test -d \$dldir || mkdir -p \$dldir~
10648 $install_prog $dir/$dlname \$dldir/$dlname~
10649 chmod a+x \$dldir/$dlname~
10650 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10651 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10652 fi'
10653 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10654 dlpath=$dir/\$dldll~
10655 $RM \$dlpath'
10656 shlibpath_overrides_runpath=yes
10657
10658 case $host_os in
10659 cygwin*)
10660 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10661 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10662
10663 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10664 ;;
10665 mingw* | cegcc*)
10666 # MinGW DLLs use traditional 'lib' prefix
10667 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10668 ;;
10669 pw32*)
10670 # pw32 DLLs use 'pw' prefix rather than 'lib'
10671 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10672 ;;
10673 esac
10674 ;;
10675
10676 *)
10677 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10678 ;;
10679 esac
10680 dynamic_linker='Win32 ld.exe'
10681 # FIXME: first we should search . and the directory the executable is in
10682 shlibpath_var=PATH
10683 ;;
10684
10685 darwin* | rhapsody*)
10686 dynamic_linker="$host_os dyld"
10687 version_type=darwin
10688 need_lib_prefix=no
10689 need_version=no
10690 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10691 soname_spec='${libname}${release}${major}$shared_ext'
10692 shlibpath_overrides_runpath=yes
10693 shlibpath_var=DYLD_LIBRARY_PATH
10694 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10695
10696 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10697 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10698 ;;
10699
10700 dgux*)
10701 version_type=linux
10702 need_lib_prefix=no
10703 need_version=no
10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10705 soname_spec='${libname}${release}${shared_ext}$major'
10706 shlibpath_var=LD_LIBRARY_PATH
10707 ;;
10708
10709 freebsd* | dragonfly*)
10710 # DragonFly does not have aout. When/if they implement a new
10711 # versioning mechanism, adjust this.
10712 if test -x /usr/bin/objformat; then
10713 objformat=`/usr/bin/objformat`
10714 else
10715 case $host_os in
10716 freebsd[23].*) objformat=aout ;;
10717 *) objformat=elf ;;
10718 esac
10719 fi
10720 version_type=freebsd-$objformat
10721 case $version_type in
10722 freebsd-elf*)
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10724 need_version=no
10725 need_lib_prefix=no
10726 ;;
10727 freebsd-*)
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10729 need_version=yes
10730 ;;
10731 esac
10732 shlibpath_var=LD_LIBRARY_PATH
10733 case $host_os in
10734 freebsd2.*)
10735 shlibpath_overrides_runpath=yes
10736 ;;
10737 freebsd3.[01]* | freebsdelf3.[01]*)
10738 shlibpath_overrides_runpath=yes
10739 hardcode_into_libs=yes
10740 ;;
10741 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10742 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10743 shlibpath_overrides_runpath=no
10744 hardcode_into_libs=yes
10745 ;;
10746 *) # from 4.6 on, and DragonFly
10747 shlibpath_overrides_runpath=yes
10748 hardcode_into_libs=yes
10749 ;;
10750 esac
10751 ;;
10752
10753 haiku*)
10754 version_type=linux
10755 need_lib_prefix=no
10756 need_version=no
10757 dynamic_linker="$host_os runtime_loader"
10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10759 soname_spec='${libname}${release}${shared_ext}$major'
10760 shlibpath_var=LIBRARY_PATH
10761 shlibpath_overrides_runpath=yes
10762 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10763 hardcode_into_libs=yes
10764 ;;
10765
10766 hpux9* | hpux10* | hpux11*)
10767 # Give a soname corresponding to the major version so that dld.sl refuses to
10768 # link against other versions.
10769 version_type=sunos
10770 need_lib_prefix=no
10771 need_version=no
10772 case $host_cpu in
10773 ia64*)
10774 shrext_cmds='.so'
10775 hardcode_into_libs=yes
10776 dynamic_linker="$host_os dld.so"
10777 shlibpath_var=LD_LIBRARY_PATH
10778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10780 soname_spec='${libname}${release}${shared_ext}$major'
10781 if test "X$HPUX_IA64_MODE" = X32; then
10782 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10783 else
10784 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10785 fi
10786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10787 ;;
10788 hppa*64*)
10789 shrext_cmds='.sl'
10790 hardcode_into_libs=yes
10791 dynamic_linker="$host_os dld.sl"
10792 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795 soname_spec='${libname}${release}${shared_ext}$major'
10796 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10798 ;;
10799 *)
10800 shrext_cmds='.sl'
10801 dynamic_linker="$host_os dld.sl"
10802 shlibpath_var=SHLIB_PATH
10803 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10805 soname_spec='${libname}${release}${shared_ext}$major'
10806 ;;
10807 esac
10808 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10809 postinstall_cmds='chmod 555 $lib'
10810 # or fails outright, so override atomically:
10811 install_override_mode=555
10812 ;;
10813
10814 interix[3-9]*)
10815 version_type=linux
10816 need_lib_prefix=no
10817 need_version=no
10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10819 soname_spec='${libname}${release}${shared_ext}$major'
10820 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10821 shlibpath_var=LD_LIBRARY_PATH
10822 shlibpath_overrides_runpath=no
10823 hardcode_into_libs=yes
10824 ;;
10825
10826 irix5* | irix6* | nonstopux*)
10827 case $host_os in
10828 nonstopux*) version_type=nonstopux ;;
10829 *)
10830 if test "$lt_cv_prog_gnu_ld" = yes; then
10831 version_type=linux
10832 else
10833 version_type=irix
10834 fi ;;
10835 esac
10836 need_lib_prefix=no
10837 need_version=no
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10840 case $host_os in
10841 irix5* | nonstopux*)
10842 libsuff= shlibsuff=
10843 ;;
10844 *)
10845 case $LD in # libtool.m4 will add one of these switches to LD
10846 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10847 libsuff= shlibsuff= libmagic=32-bit;;
10848 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10849 libsuff=32 shlibsuff=N32 libmagic=N32;;
10850 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10851 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10852 *) libsuff= shlibsuff= libmagic=never-match;;
10853 esac
10854 ;;
10855 esac
10856 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10857 shlibpath_overrides_runpath=no
10858 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10859 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10860 hardcode_into_libs=yes
10861 ;;
10862
10863 # No shared lib support for Linux oldld, aout, or coff.
10864 linux*oldld* | linux*aout* | linux*coff*)
10865 dynamic_linker=no
10866 ;;
10867
10868 # This must be Linux ELF.
10869
10870 # uclinux* changes (here and below) have been submitted to the libtool
10871 # project, but have not yet been accepted: they are GCC-local changes
10872 # for the time being. (See
10873 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10874 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10875 version_type=linux
10876 need_lib_prefix=no
10877 need_version=no
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10879 soname_spec='${libname}${release}${shared_ext}$major'
10880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10881 shlibpath_var=LD_LIBRARY_PATH
10882 shlibpath_overrides_runpath=no
10883
10884 # Some binutils ld are patched to set DT_RUNPATH
10885 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10888 lt_cv_shlibpath_overrides_runpath=no
10889 save_LDFLAGS=$LDFLAGS
10890 save_libdir=$libdir
10891 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10892 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10895
10896 int
10897 main ()
10898 {
10899
10900 ;
10901 return 0;
10902 }
10903 _ACEOF
10904 if ac_fn_c_try_link "$LINENO"; then :
10905 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10906 lt_cv_shlibpath_overrides_runpath=yes
10907 fi
10908 fi
10909 rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
10911 LDFLAGS=$save_LDFLAGS
10912 libdir=$save_libdir
10913
10914 fi
10915
10916 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10917
10918 # This implies no fast_install, which is unacceptable.
10919 # Some rework will be needed to allow for fast_install
10920 # before this can be enabled.
10921 hardcode_into_libs=yes
10922
10923 # Append ld.so.conf contents to the search path
10924 if test -f /etc/ld.so.conf; then
10925 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' ' '`
10926 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10927 fi
10928
10929 # We used to test for /lib/ld.so.1 and disable shared libraries on
10930 # powerpc, because MkLinux only supported shared libraries with the
10931 # GNU dynamic linker. Since this was broken with cross compilers,
10932 # most powerpc-linux boxes support dynamic linking these days and
10933 # people can always --disable-shared, the test was removed, and we
10934 # assume the GNU/Linux dynamic linker is in use.
10935 dynamic_linker='GNU/Linux ld.so'
10936 ;;
10937
10938 netbsd*)
10939 version_type=sunos
10940 need_lib_prefix=no
10941 need_version=no
10942 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10945 dynamic_linker='NetBSD (a.out) ld.so'
10946 else
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 dynamic_linker='NetBSD ld.elf_so'
10950 fi
10951 shlibpath_var=LD_LIBRARY_PATH
10952 shlibpath_overrides_runpath=yes
10953 hardcode_into_libs=yes
10954 ;;
10955
10956 newsos6)
10957 version_type=linux
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959 shlibpath_var=LD_LIBRARY_PATH
10960 shlibpath_overrides_runpath=yes
10961 ;;
10962
10963 *nto* | *qnx*)
10964 version_type=qnx
10965 need_lib_prefix=no
10966 need_version=no
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968 soname_spec='${libname}${release}${shared_ext}$major'
10969 shlibpath_var=LD_LIBRARY_PATH
10970 shlibpath_overrides_runpath=no
10971 hardcode_into_libs=yes
10972 dynamic_linker='ldqnx.so'
10973 ;;
10974
10975 openbsd*)
10976 version_type=sunos
10977 sys_lib_dlsearch_path_spec="/usr/lib"
10978 need_lib_prefix=no
10979 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10980 case $host_os in
10981 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10982 *) need_version=no ;;
10983 esac
10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10986 shlibpath_var=LD_LIBRARY_PATH
10987 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10988 case $host_os in
10989 openbsd2.[89] | openbsd2.[89].*)
10990 shlibpath_overrides_runpath=no
10991 ;;
10992 *)
10993 shlibpath_overrides_runpath=yes
10994 ;;
10995 esac
10996 else
10997 shlibpath_overrides_runpath=yes
10998 fi
10999 ;;
11000
11001 os2*)
11002 libname_spec='$name'
11003 shrext_cmds=".dll"
11004 need_lib_prefix=no
11005 library_names_spec='$libname${shared_ext} $libname.a'
11006 dynamic_linker='OS/2 ld.exe'
11007 shlibpath_var=LIBPATH
11008 ;;
11009
11010 osf3* | osf4* | osf5*)
11011 version_type=osf
11012 need_lib_prefix=no
11013 need_version=no
11014 soname_spec='${libname}${release}${shared_ext}$major'
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11016 shlibpath_var=LD_LIBRARY_PATH
11017 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11018 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11019 ;;
11020
11021 rdos*)
11022 dynamic_linker=no
11023 ;;
11024
11025 solaris*)
11026 version_type=linux
11027 need_lib_prefix=no
11028 need_version=no
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030 soname_spec='${libname}${release}${shared_ext}$major'
11031 shlibpath_var=LD_LIBRARY_PATH
11032 shlibpath_overrides_runpath=yes
11033 hardcode_into_libs=yes
11034 # ldd complains unless libraries are executable
11035 postinstall_cmds='chmod +x $lib'
11036 ;;
11037
11038 sunos4*)
11039 version_type=sunos
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11041 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11042 shlibpath_var=LD_LIBRARY_PATH
11043 shlibpath_overrides_runpath=yes
11044 if test "$with_gnu_ld" = yes; then
11045 need_lib_prefix=no
11046 fi
11047 need_version=yes
11048 ;;
11049
11050 sysv4 | sysv4.3*)
11051 version_type=linux
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11053 soname_spec='${libname}${release}${shared_ext}$major'
11054 shlibpath_var=LD_LIBRARY_PATH
11055 case $host_vendor in
11056 sni)
11057 shlibpath_overrides_runpath=no
11058 need_lib_prefix=no
11059 runpath_var=LD_RUN_PATH
11060 ;;
11061 siemens)
11062 need_lib_prefix=no
11063 ;;
11064 motorola)
11065 need_lib_prefix=no
11066 need_version=no
11067 shlibpath_overrides_runpath=no
11068 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11069 ;;
11070 esac
11071 ;;
11072
11073 sysv4*MP*)
11074 if test -d /usr/nec ;then
11075 version_type=linux
11076 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11077 soname_spec='$libname${shared_ext}.$major'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 fi
11080 ;;
11081
11082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11083 version_type=freebsd-elf
11084 need_lib_prefix=no
11085 need_version=no
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11087 soname_spec='${libname}${release}${shared_ext}$major'
11088 shlibpath_var=LD_LIBRARY_PATH
11089 shlibpath_overrides_runpath=yes
11090 hardcode_into_libs=yes
11091 if test "$with_gnu_ld" = yes; then
11092 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11093 else
11094 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11095 case $host_os in
11096 sco3.2v5*)
11097 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11098 ;;
11099 esac
11100 fi
11101 sys_lib_dlsearch_path_spec='/usr/lib'
11102 ;;
11103
11104 tpf*)
11105 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11106 version_type=linux
11107 need_lib_prefix=no
11108 need_version=no
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110 shlibpath_var=LD_LIBRARY_PATH
11111 shlibpath_overrides_runpath=no
11112 hardcode_into_libs=yes
11113 ;;
11114
11115 uts4*)
11116 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
11120 ;;
11121
11122 # Shared libraries for VwWorks, >= 7 only at this stage
11123 # and (fpic) still incompatible with "large" code models
11124 # in a few configurations. Only for RTP mode in any case,
11125 # and upon explicit request at configure time.
11126 vxworks7*)
11127 dynamic_linker=no
11128 case ${with_multisubdir}-${enable_shared} in
11129 *large*)
11130 ;;
11131 *mrtp*-yes)
11132 version_type=linux
11133 need_lib_prefix=no
11134 need_version=no
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11136 soname_spec='${libname}${release}${shared_ext}$major'
11137 dynamic_linker="$host_os module_loader"
11138 ;;
11139 esac
11140 ;;
11141 *)
11142 dynamic_linker=no
11143 ;;
11144 esac
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11146 $as_echo "$dynamic_linker" >&6; }
11147 test "$dynamic_linker" = no && can_build_shared=no
11148
11149 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11150 if test "$GCC" = yes; then
11151 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11152 fi
11153
11154 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11155 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11156 fi
11157 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11158 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11159 fi
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11253 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11254 hardcode_action=
11255 if test -n "$hardcode_libdir_flag_spec" ||
11256 test -n "$runpath_var" ||
11257 test "X$hardcode_automatic" = "Xyes" ; then
11258
11259 # We can hardcode non-existent directories.
11260 if test "$hardcode_direct" != no &&
11261 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11262 # have to relink, otherwise we might link with an installed library
11263 # when we should be linking with a yet-to-be-installed one
11264 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11265 test "$hardcode_minus_L" != no; then
11266 # Linking always hardcodes the temporary library directory.
11267 hardcode_action=relink
11268 else
11269 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11270 hardcode_action=immediate
11271 fi
11272 else
11273 # We cannot hardcode anything, or else we can only hardcode existing
11274 # directories.
11275 hardcode_action=unsupported
11276 fi
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11278 $as_echo "$hardcode_action" >&6; }
11279
11280 if test "$hardcode_action" = relink ||
11281 test "$inherit_rpath" = yes; then
11282 # Fast installation is not supported
11283 enable_fast_install=no
11284 elif test "$shlibpath_overrides_runpath" = yes ||
11285 test "$enable_shared" = no; then
11286 # Fast installation is not necessary
11287 enable_fast_install=needless
11288 fi
11289
11290
11291
11292
11293
11294
11295 if test "x$enable_dlopen" != xyes; then
11296 enable_dlopen=unknown
11297 enable_dlopen_self=unknown
11298 enable_dlopen_self_static=unknown
11299 else
11300 lt_cv_dlopen=no
11301 lt_cv_dlopen_libs=
11302
11303 case $host_os in
11304 beos*)
11305 lt_cv_dlopen="load_add_on"
11306 lt_cv_dlopen_libs=
11307 lt_cv_dlopen_self=yes
11308 ;;
11309
11310 mingw* | pw32* | cegcc*)
11311 lt_cv_dlopen="LoadLibrary"
11312 lt_cv_dlopen_libs=
11313 ;;
11314
11315 cygwin*)
11316 lt_cv_dlopen="dlopen"
11317 lt_cv_dlopen_libs=
11318 ;;
11319
11320 darwin*)
11321 # if libdl is installed we need to link against it
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11323 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11324 if ${ac_cv_lib_dl_dlopen+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 ac_check_lib_save_LIBS=$LIBS
11328 LIBS="-ldl $LIBS"
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11331
11332 /* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
11335 #ifdef __cplusplus
11336 extern "C"
11337 #endif
11338 char dlopen ();
11339 int
11340 main ()
11341 {
11342 return dlopen ();
11343 ;
11344 return 0;
11345 }
11346 _ACEOF
11347 if ac_fn_c_try_link "$LINENO"; then :
11348 ac_cv_lib_dl_dlopen=yes
11349 else
11350 ac_cv_lib_dl_dlopen=no
11351 fi
11352 rm -f core conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11354 LIBS=$ac_check_lib_save_LIBS
11355 fi
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11357 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11358 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11359 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11360 else
11361
11362 lt_cv_dlopen="dyld"
11363 lt_cv_dlopen_libs=
11364 lt_cv_dlopen_self=yes
11365
11366 fi
11367
11368 ;;
11369
11370 *)
11371 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11372 if test "x$ac_cv_func_shl_load" = xyes; then :
11373 lt_cv_dlopen="shl_load"
11374 else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11376 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11377 if ${ac_cv_lib_dld_shl_load+:} false; then :
11378 $as_echo_n "(cached) " >&6
11379 else
11380 ac_check_lib_save_LIBS=$LIBS
11381 LIBS="-ldld $LIBS"
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11384
11385 /* Override any GCC internal prototype to avoid an error.
11386 Use char because int might match the return type of a GCC
11387 builtin and then its argument prototype would still apply. */
11388 #ifdef __cplusplus
11389 extern "C"
11390 #endif
11391 char shl_load ();
11392 int
11393 main ()
11394 {
11395 return shl_load ();
11396 ;
11397 return 0;
11398 }
11399 _ACEOF
11400 if ac_fn_c_try_link "$LINENO"; then :
11401 ac_cv_lib_dld_shl_load=yes
11402 else
11403 ac_cv_lib_dld_shl_load=no
11404 fi
11405 rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_lib_save_LIBS
11408 fi
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11410 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11411 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11412 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11413 else
11414 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11415 if test "x$ac_cv_func_dlopen" = xyes; then :
11416 lt_cv_dlopen="dlopen"
11417 else
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11419 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11420 if ${ac_cv_lib_dl_dlopen+:} false; then :
11421 $as_echo_n "(cached) " >&6
11422 else
11423 ac_check_lib_save_LIBS=$LIBS
11424 LIBS="-ldl $LIBS"
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11427
11428 /* Override any GCC internal prototype to avoid an error.
11429 Use char because int might match the return type of a GCC
11430 builtin and then its argument prototype would still apply. */
11431 #ifdef __cplusplus
11432 extern "C"
11433 #endif
11434 char dlopen ();
11435 int
11436 main ()
11437 {
11438 return dlopen ();
11439 ;
11440 return 0;
11441 }
11442 _ACEOF
11443 if ac_fn_c_try_link "$LINENO"; then :
11444 ac_cv_lib_dl_dlopen=yes
11445 else
11446 ac_cv_lib_dl_dlopen=no
11447 fi
11448 rm -f core conftest.err conftest.$ac_objext \
11449 conftest$ac_exeext conftest.$ac_ext
11450 LIBS=$ac_check_lib_save_LIBS
11451 fi
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11453 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11454 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11455 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11456 else
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11458 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11459 if ${ac_cv_lib_svld_dlopen+:} false; then :
11460 $as_echo_n "(cached) " >&6
11461 else
11462 ac_check_lib_save_LIBS=$LIBS
11463 LIBS="-lsvld $LIBS"
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11466
11467 /* Override any GCC internal prototype to avoid an error.
11468 Use char because int might match the return type of a GCC
11469 builtin and then its argument prototype would still apply. */
11470 #ifdef __cplusplus
11471 extern "C"
11472 #endif
11473 char dlopen ();
11474 int
11475 main ()
11476 {
11477 return dlopen ();
11478 ;
11479 return 0;
11480 }
11481 _ACEOF
11482 if ac_fn_c_try_link "$LINENO"; then :
11483 ac_cv_lib_svld_dlopen=yes
11484 else
11485 ac_cv_lib_svld_dlopen=no
11486 fi
11487 rm -f core conftest.err conftest.$ac_objext \
11488 conftest$ac_exeext conftest.$ac_ext
11489 LIBS=$ac_check_lib_save_LIBS
11490 fi
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11492 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11493 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11494 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11495 else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11497 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11498 if ${ac_cv_lib_dld_dld_link+:} false; then :
11499 $as_echo_n "(cached) " >&6
11500 else
11501 ac_check_lib_save_LIBS=$LIBS
11502 LIBS="-ldld $LIBS"
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11505
11506 /* Override any GCC internal prototype to avoid an error.
11507 Use char because int might match the return type of a GCC
11508 builtin and then its argument prototype would still apply. */
11509 #ifdef __cplusplus
11510 extern "C"
11511 #endif
11512 char dld_link ();
11513 int
11514 main ()
11515 {
11516 return dld_link ();
11517 ;
11518 return 0;
11519 }
11520 _ACEOF
11521 if ac_fn_c_try_link "$LINENO"; then :
11522 ac_cv_lib_dld_dld_link=yes
11523 else
11524 ac_cv_lib_dld_dld_link=no
11525 fi
11526 rm -f core conftest.err conftest.$ac_objext \
11527 conftest$ac_exeext conftest.$ac_ext
11528 LIBS=$ac_check_lib_save_LIBS
11529 fi
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11531 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11532 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11533 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11534 fi
11535
11536
11537 fi
11538
11539
11540 fi
11541
11542
11543 fi
11544
11545
11546 fi
11547
11548
11549 fi
11550
11551 ;;
11552 esac
11553
11554 if test "x$lt_cv_dlopen" != xno; then
11555 enable_dlopen=yes
11556 else
11557 enable_dlopen=no
11558 fi
11559
11560 case $lt_cv_dlopen in
11561 dlopen)
11562 save_CPPFLAGS="$CPPFLAGS"
11563 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11564
11565 save_LDFLAGS="$LDFLAGS"
11566 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11567
11568 save_LIBS="$LIBS"
11569 LIBS="$lt_cv_dlopen_libs $LIBS"
11570
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11572 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11573 if ${lt_cv_dlopen_self+:} false; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 if test "$cross_compiling" = yes; then :
11577 lt_cv_dlopen_self=cross
11578 else
11579 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11580 lt_status=$lt_dlunknown
11581 cat > conftest.$ac_ext <<_LT_EOF
11582 #line 11582 "configure"
11583 #include "confdefs.h"
11584
11585 #if HAVE_DLFCN_H
11586 #include <dlfcn.h>
11587 #endif
11588
11589 #include <stdio.h>
11590
11591 #ifdef RTLD_GLOBAL
11592 # define LT_DLGLOBAL RTLD_GLOBAL
11593 #else
11594 # ifdef DL_GLOBAL
11595 # define LT_DLGLOBAL DL_GLOBAL
11596 # else
11597 # define LT_DLGLOBAL 0
11598 # endif
11599 #endif
11600
11601 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11602 find out it does not work in some platform. */
11603 #ifndef LT_DLLAZY_OR_NOW
11604 # ifdef RTLD_LAZY
11605 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11606 # else
11607 # ifdef DL_LAZY
11608 # define LT_DLLAZY_OR_NOW DL_LAZY
11609 # else
11610 # ifdef RTLD_NOW
11611 # define LT_DLLAZY_OR_NOW RTLD_NOW
11612 # else
11613 # ifdef DL_NOW
11614 # define LT_DLLAZY_OR_NOW DL_NOW
11615 # else
11616 # define LT_DLLAZY_OR_NOW 0
11617 # endif
11618 # endif
11619 # endif
11620 # endif
11621 #endif
11622
11623 /* When -fvisbility=hidden is used, assume the code has been annotated
11624 correspondingly for the symbols needed. */
11625 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11626 void fnord () __attribute__((visibility("default")));
11627 #endif
11628
11629 void fnord () { int i=42; }
11630 int main ()
11631 {
11632 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11633 int status = $lt_dlunknown;
11634
11635 if (self)
11636 {
11637 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11638 else
11639 {
11640 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11641 else puts (dlerror ());
11642 }
11643 /* dlclose (self); */
11644 }
11645 else
11646 puts (dlerror ());
11647
11648 return status;
11649 }
11650 _LT_EOF
11651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11652 (eval $ac_link) 2>&5
11653 ac_status=$?
11654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11655 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11656 (./conftest; exit; ) >&5 2>/dev/null
11657 lt_status=$?
11658 case x$lt_status in
11659 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11660 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11661 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11662 esac
11663 else :
11664 # compilation failed
11665 lt_cv_dlopen_self=no
11666 fi
11667 fi
11668 rm -fr conftest*
11669
11670
11671 fi
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11673 $as_echo "$lt_cv_dlopen_self" >&6; }
11674
11675 if test "x$lt_cv_dlopen_self" = xyes; then
11676 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11678 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11679 if ${lt_cv_dlopen_self_static+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 if test "$cross_compiling" = yes; then :
11683 lt_cv_dlopen_self_static=cross
11684 else
11685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11686 lt_status=$lt_dlunknown
11687 cat > conftest.$ac_ext <<_LT_EOF
11688 #line 11688 "configure"
11689 #include "confdefs.h"
11690
11691 #if HAVE_DLFCN_H
11692 #include <dlfcn.h>
11693 #endif
11694
11695 #include <stdio.h>
11696
11697 #ifdef RTLD_GLOBAL
11698 # define LT_DLGLOBAL RTLD_GLOBAL
11699 #else
11700 # ifdef DL_GLOBAL
11701 # define LT_DLGLOBAL DL_GLOBAL
11702 # else
11703 # define LT_DLGLOBAL 0
11704 # endif
11705 #endif
11706
11707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11708 find out it does not work in some platform. */
11709 #ifndef LT_DLLAZY_OR_NOW
11710 # ifdef RTLD_LAZY
11711 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11712 # else
11713 # ifdef DL_LAZY
11714 # define LT_DLLAZY_OR_NOW DL_LAZY
11715 # else
11716 # ifdef RTLD_NOW
11717 # define LT_DLLAZY_OR_NOW RTLD_NOW
11718 # else
11719 # ifdef DL_NOW
11720 # define LT_DLLAZY_OR_NOW DL_NOW
11721 # else
11722 # define LT_DLLAZY_OR_NOW 0
11723 # endif
11724 # endif
11725 # endif
11726 # endif
11727 #endif
11728
11729 /* When -fvisbility=hidden is used, assume the code has been annotated
11730 correspondingly for the symbols needed. */
11731 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11732 void fnord () __attribute__((visibility("default")));
11733 #endif
11734
11735 void fnord () { int i=42; }
11736 int main ()
11737 {
11738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11739 int status = $lt_dlunknown;
11740
11741 if (self)
11742 {
11743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11744 else
11745 {
11746 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11747 else puts (dlerror ());
11748 }
11749 /* dlclose (self); */
11750 }
11751 else
11752 puts (dlerror ());
11753
11754 return status;
11755 }
11756 _LT_EOF
11757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11758 (eval $ac_link) 2>&5
11759 ac_status=$?
11760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11761 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11762 (./conftest; exit; ) >&5 2>/dev/null
11763 lt_status=$?
11764 case x$lt_status in
11765 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11766 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11767 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11768 esac
11769 else :
11770 # compilation failed
11771 lt_cv_dlopen_self_static=no
11772 fi
11773 fi
11774 rm -fr conftest*
11775
11776
11777 fi
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11779 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11780 fi
11781
11782 CPPFLAGS="$save_CPPFLAGS"
11783 LDFLAGS="$save_LDFLAGS"
11784 LIBS="$save_LIBS"
11785 ;;
11786 esac
11787
11788 case $lt_cv_dlopen_self in
11789 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11790 *) enable_dlopen_self=unknown ;;
11791 esac
11792
11793 case $lt_cv_dlopen_self_static in
11794 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11795 *) enable_dlopen_self_static=unknown ;;
11796 esac
11797 fi
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815 striplib=
11816 old_striplib=
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11818 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11819 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11820 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11821 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11823 $as_echo "yes" >&6; }
11824 else
11825 # FIXME - insert some real tests, host_os isn't really good enough
11826 case $host_os in
11827 darwin*)
11828 if test -n "$STRIP" ; then
11829 striplib="$STRIP -x"
11830 old_striplib="$STRIP -S"
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11832 $as_echo "yes" >&6; }
11833 else
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11836 fi
11837 ;;
11838 *)
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11841 ;;
11842 esac
11843 fi
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856 # Report which library types will actually be built
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11858 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11860 $as_echo "$can_build_shared" >&6; }
11861
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11863 $as_echo_n "checking whether to build shared libraries... " >&6; }
11864 test "$can_build_shared" = "no" && enable_shared=no
11865
11866 # On AIX, shared libraries and static libraries use the same namespace, and
11867 # are all built from PIC.
11868 case $host_os in
11869 aix3*)
11870 test "$enable_shared" = yes && enable_static=no
11871 if test -n "$RANLIB"; then
11872 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11873 postinstall_cmds='$RANLIB $lib'
11874 fi
11875 ;;
11876
11877 aix[4-9]*)
11878 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11879 test "$enable_shared" = yes && enable_static=no
11880 fi
11881 ;;
11882 esac
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11884 $as_echo "$enable_shared" >&6; }
11885
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11887 $as_echo_n "checking whether to build static libraries... " >&6; }
11888 # Make sure either enable_shared or enable_static is yes.
11889 test "$enable_shared" = yes || enable_static=yes
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11891 $as_echo "$enable_static" >&6; }
11892
11893
11894
11895
11896 fi
11897 ac_ext=c
11898 ac_cpp='$CPP $CPPFLAGS'
11899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11902
11903 CC="$lt_save_CC"
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917 ac_config_commands="$ac_config_commands libtool"
11918
11919
11920
11921
11922 # Only expand once:
11923
11924
11925
11926
11927 # Check whether --enable-largefile was given.
11928 if test "${enable_largefile+set}" = set; then :
11929 enableval=$enable_largefile;
11930 fi
11931
11932 if test "$enable_largefile" != no; then
11933
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11935 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11936 if ${ac_cv_sys_largefile_CC+:} false; then :
11937 $as_echo_n "(cached) " >&6
11938 else
11939 ac_cv_sys_largefile_CC=no
11940 if test "$GCC" != yes; then
11941 ac_save_CC=$CC
11942 while :; do
11943 # IRIX 6.2 and later do not support large files by default,
11944 # so use the C compiler's -n32 option if that helps.
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11947 #include <sys/types.h>
11948 /* Check that off_t can represent 2**63 - 1 correctly.
11949 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11950 since some C++ compilers masquerading as C compilers
11951 incorrectly reject 9223372036854775807. */
11952 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11953 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11954 && LARGE_OFF_T % 2147483647 == 1)
11955 ? 1 : -1];
11956 int
11957 main ()
11958 {
11959
11960 ;
11961 return 0;
11962 }
11963 _ACEOF
11964 if ac_fn_c_try_compile "$LINENO"; then :
11965 break
11966 fi
11967 rm -f core conftest.err conftest.$ac_objext
11968 CC="$CC -n32"
11969 if ac_fn_c_try_compile "$LINENO"; then :
11970 ac_cv_sys_largefile_CC=' -n32'; break
11971 fi
11972 rm -f core conftest.err conftest.$ac_objext
11973 break
11974 done
11975 CC=$ac_save_CC
11976 rm -f conftest.$ac_ext
11977 fi
11978 fi
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11980 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11981 if test "$ac_cv_sys_largefile_CC" != no; then
11982 CC=$CC$ac_cv_sys_largefile_CC
11983 fi
11984
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11986 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11987 if ${ac_cv_sys_file_offset_bits+:} false; then :
11988 $as_echo_n "(cached) " >&6
11989 else
11990 while :; do
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11993 #include <sys/types.h>
11994 /* Check that off_t can represent 2**63 - 1 correctly.
11995 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11996 since some C++ compilers masquerading as C compilers
11997 incorrectly reject 9223372036854775807. */
11998 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11999 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12000 && LARGE_OFF_T % 2147483647 == 1)
12001 ? 1 : -1];
12002 int
12003 main ()
12004 {
12005
12006 ;
12007 return 0;
12008 }
12009 _ACEOF
12010 if ac_fn_c_try_compile "$LINENO"; then :
12011 ac_cv_sys_file_offset_bits=no; break
12012 fi
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h. */
12016 #define _FILE_OFFSET_BITS 64
12017 #include <sys/types.h>
12018 /* Check that off_t can represent 2**63 - 1 correctly.
12019 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12020 since some C++ compilers masquerading as C compilers
12021 incorrectly reject 9223372036854775807. */
12022 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12023 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12024 && LARGE_OFF_T % 2147483647 == 1)
12025 ? 1 : -1];
12026 int
12027 main ()
12028 {
12029
12030 ;
12031 return 0;
12032 }
12033 _ACEOF
12034 if ac_fn_c_try_compile "$LINENO"; then :
12035 ac_cv_sys_file_offset_bits=64; break
12036 fi
12037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12038 ac_cv_sys_file_offset_bits=unknown
12039 break
12040 done
12041 fi
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12043 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12044 case $ac_cv_sys_file_offset_bits in #(
12045 no | unknown) ;;
12046 *)
12047 cat >>confdefs.h <<_ACEOF
12048 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12049 _ACEOF
12050 ;;
12051 esac
12052 rm -rf conftest*
12053 if test $ac_cv_sys_file_offset_bits = unknown; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12055 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12056 if ${ac_cv_sys_large_files+:} false; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 while :; do
12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h. */
12062 #include <sys/types.h>
12063 /* Check that off_t can represent 2**63 - 1 correctly.
12064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12065 since some C++ compilers masquerading as C compilers
12066 incorrectly reject 9223372036854775807. */
12067 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12069 && LARGE_OFF_T % 2147483647 == 1)
12070 ? 1 : -1];
12071 int
12072 main ()
12073 {
12074
12075 ;
12076 return 0;
12077 }
12078 _ACEOF
12079 if ac_fn_c_try_compile "$LINENO"; then :
12080 ac_cv_sys_large_files=no; break
12081 fi
12082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085 #define _LARGE_FILES 1
12086 #include <sys/types.h>
12087 /* Check that off_t can represent 2**63 - 1 correctly.
12088 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12089 since some C++ compilers masquerading as C compilers
12090 incorrectly reject 9223372036854775807. */
12091 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12092 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12093 && LARGE_OFF_T % 2147483647 == 1)
12094 ? 1 : -1];
12095 int
12096 main ()
12097 {
12098
12099 ;
12100 return 0;
12101 }
12102 _ACEOF
12103 if ac_fn_c_try_compile "$LINENO"; then :
12104 ac_cv_sys_large_files=1; break
12105 fi
12106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12107 ac_cv_sys_large_files=unknown
12108 break
12109 done
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12112 $as_echo "$ac_cv_sys_large_files" >&6; }
12113 case $ac_cv_sys_large_files in #(
12114 no | unknown) ;;
12115 *)
12116 cat >>confdefs.h <<_ACEOF
12117 #define _LARGE_FILES $ac_cv_sys_large_files
12118 _ACEOF
12119 ;;
12120 esac
12121 rm -rf conftest*
12122 fi
12123
12124
12125 fi
12126
12127
12128 backtrace_supported=yes
12129
12130 if test -n "${with_target_subdir}"; then
12131 # We are compiling a GCC library. We can assume that the unwind
12132 # library exists.
12133 BACKTRACE_FILE="backtrace.lo simple.lo"
12134 else
12135 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
12136 if test "x$ac_cv_header_unwind_h" = xyes; then :
12137 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
12138 if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then :
12139 BACKTRACE_FILE="backtrace.lo simple.lo"
12140 else
12141 BACKTRACE_FILE="nounwind.lo"
12142 backtrace_supported=no
12143 fi
12144
12145 else
12146 BACKTRACE_FILE="nounwind.lo"
12147 backtrace_supported=no
12148 fi
12149
12150
12151 fi
12152
12153
12154 EXTRA_FLAGS=
12155 if test -n "${with_target_subdir}"; then
12156 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
12157 else
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
12159 $as_echo_n "checking for -funwind-tables option... " >&6; }
12160 if ${libbacktrace_cv_c_unwind_tables+:} false; then :
12161 $as_echo_n "(cached) " >&6
12162 else
12163 CFLAGS_hold="$CFLAGS"
12164 CFLAGS="$CFLAGS -funwind-tables"
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h. */
12167 static int f() { return 0; }
12168 int
12169 main ()
12170 {
12171 return f();
12172 ;
12173 return 0;
12174 }
12175 _ACEOF
12176 if ac_fn_c_try_compile "$LINENO"; then :
12177 libbacktrace_cv_c_unwind_tables=yes
12178 else
12179 libbacktrace_cv_c_unwind_tables=no
12180 fi
12181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12182 CFLAGS="$CFLAGS_hold"
12183 fi
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
12185 $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
12186 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
12187 EXTRA_FLAGS=-funwind-tables
12188 fi
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
12190 $as_echo_n "checking for -frandom-seed=string option... " >&6; }
12191 if ${libbacktrace_cv_c_random_seed_string+:} false; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 CFLAGS_hold="$CFLAGS"
12195 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12198
12199 int
12200 main ()
12201 {
12202 return 0;
12203 ;
12204 return 0;
12205 }
12206 _ACEOF
12207 if ac_fn_c_try_compile "$LINENO"; then :
12208 libbacktrace_cv_c_random_seed_string=yes
12209 else
12210 libbacktrace_cv_c_random_seed_string=no
12211 fi
12212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12213 CFLAGS="$CFLAGS_hold"
12214 fi
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
12216 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
12217 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
12218 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
12219 fi
12220 fi
12221
12222 if test -n "${with_target_subdir}"; then
12223 # Add CET specific flags is Intel CET is enabled.
12224 # Check whether --enable-cet was given.
12225 if test "${enable_cet+set}" = set; then :
12226 enableval=$enable_cet;
12227 case "$enableval" in
12228 yes|no|auto) ;;
12229 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12230 esac
12231
12232 else
12233 enable_cet=auto
12234 fi
12235
12236
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12238 $as_echo_n "checking for CET support... " >&6; }
12239
12240 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
12241 case "$host" in
12242 i[34567]86-*-linux* | x86_64-*-linux*)
12243 case "$enable_cet" in
12244 auto)
12245 # Check if target supports multi-byte NOPs
12246 # and if compiler and assembler support CET insn.
12247 cet_save_CFLAGS="$CFLAGS"
12248 CFLAGS="$CFLAGS -fcf-protection"
12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h. */
12251
12252 int
12253 main ()
12254 {
12255
12256 #if !defined(__SSE2__)
12257 #error target does not support multi-byte NOPs
12258 #else
12259 asm ("setssbsy");
12260 #endif
12261
12262 ;
12263 return 0;
12264 }
12265 _ACEOF
12266 if ac_fn_c_try_compile "$LINENO"; then :
12267 enable_cet=yes
12268 else
12269 enable_cet=no
12270 fi
12271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12272 CFLAGS="$cet_save_CFLAGS"
12273 ;;
12274 yes)
12275 # Check if assembler supports CET.
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12278
12279 int
12280 main ()
12281 {
12282 asm ("setssbsy");
12283 ;
12284 return 0;
12285 }
12286 _ACEOF
12287 if ac_fn_c_try_compile "$LINENO"; then :
12288
12289 else
12290 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
12291 fi
12292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12293 ;;
12294 esac
12295 ;;
12296 *)
12297 enable_cet=no
12298 ;;
12299 esac
12300 if test x$enable_cet = xyes; then
12301 CET_FLAGS="-fcf-protection -mshstk"
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12303 $as_echo "yes" >&6; }
12304 else
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 $as_echo "no" >&6; }
12307 fi
12308
12309 EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS"
12310 fi
12311
12312
12313 ac_ext=c
12314 ac_cpp='$CPP $CPPFLAGS'
12315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12318
12319 WARN_FLAGS=
12320 save_CFLAGS="$CFLAGS"
12321 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
12322 -Wmissing-prototypes -Wold-style-definition \
12323 -Wmissing-format-attribute -Wcast-qual; do
12324 # Do the check with the no- prefix removed since gcc silently
12325 # accepts any -Wno-* option on purpose
12326 case $real_option in
12327 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12328 *) option=$real_option ;;
12329 esac
12330 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12331
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12333 $as_echo_n "checking whether $CC supports $option... " >&6; }
12334 if eval \${$as_acx_Woption+:} false; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 CFLAGS="$option"
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12340
12341 int
12342 main ()
12343 {
12344
12345 ;
12346 return 0;
12347 }
12348 _ACEOF
12349 if ac_fn_c_try_compile "$LINENO"; then :
12350 eval "$as_acx_Woption=yes"
12351 else
12352 eval "$as_acx_Woption=no"
12353 fi
12354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12355
12356 fi
12357 eval ac_res=\$$as_acx_Woption
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12359 $as_echo "$ac_res" >&6; }
12360 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12361 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
12362 fi
12363 done
12364 CFLAGS="$save_CFLAGS"
12365 ac_ext=c
12366 ac_cpp='$CPP $CPPFLAGS'
12367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12370
12371
12372
12373 # Check whether --enable-werror was given.
12374 if test "${enable_werror+set}" = set; then :
12375 enableval=$enable_werror;
12376 fi
12377
12378 if test "x$enable_werror" != "xno" && test -n "${with_target_subdir}"; then :
12379 WARN_FLAGS="$WARN_FLAGS -Werror"
12380 fi
12381
12382
12383 if test -n "${with_target_subdir}"; then
12384
12385
12386 # Check whether --with-system-libunwind was given.
12387 if test "${with_system_libunwind+set}" = set; then :
12388 withval=$with_system_libunwind;
12389 fi
12390
12391 # If system-libunwind was not specifically set, pick a default setting.
12392 if test x$with_system_libunwind = x; then
12393 case ${target} in
12394 ia64-*-hpux*) with_system_libunwind=yes ;;
12395 *) with_system_libunwind=no ;;
12396 esac
12397 fi
12398 # Based on system-libunwind and target, do we have ipinfo?
12399 if test x$with_system_libunwind = xyes; then
12400 case ${target} in
12401 ia64-*-*) have_unwind_getipinfo=no ;;
12402 *) have_unwind_getipinfo=yes ;;
12403 esac
12404 else
12405 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12406
12407 case ${target} in
12408 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12409 *) have_unwind_getipinfo=yes ;;
12410 esac
12411
12412 fi
12413
12414 if test x$have_unwind_getipinfo = xyes; then
12415
12416 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12417
12418 fi
12419
12420 else
12421 ac_save_CFFLAGS="$CFLAGS"
12422 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
12424 $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h. */
12427 #include "unwind.h"
12428 struct _Unwind_Context *context;
12429 int ip_before_insn = 0;
12430 int
12431 main ()
12432 {
12433 return _Unwind_GetIPInfo (context, &ip_before_insn);
12434 ;
12435 return 0;
12436 }
12437 _ACEOF
12438 if ac_fn_c_try_link "$LINENO"; then :
12439 have_unwind_getipinfo=yes
12440 else
12441 have_unwind_getipinfo=no
12442 fi
12443 rm -f core conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12445 CFLAGS="$ac_save_CFLAGS"
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
12447 $as_echo "$have_unwind_getipinfo" >&6; }
12448 if test "$have_unwind_getipinfo" = "yes"; then
12449
12450 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12451
12452 fi
12453 fi
12454
12455 # Enable --enable-host-shared.
12456 # Check whether --enable-host-shared was given.
12457 if test "${enable_host_shared+set}" = set; then :
12458 enableval=$enable_host_shared; PIC_FLAG=-fPIC
12459 else
12460 PIC_FLAG=
12461 fi
12462
12463
12464
12465 # Enable Intel CET on Intel CET enabled host if jit is enabled.
12466 # Check whether --enable-cet was given.
12467 if test "${enable_cet+set}" = set; then :
12468 enableval=$enable_cet;
12469 case "$enableval" in
12470 yes|no|auto) ;;
12471 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12472 esac
12473
12474 else
12475 enable_cet=auto
12476 fi
12477
12478
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12480 $as_echo_n "checking for CET support... " >&6; }
12481
12482 case "$host" in
12483 i[34567]86-*-linux* | x86_64-*-linux*)
12484 may_have_cet=yes
12485 cet_save_CFLAGS="$CFLAGS"
12486 CFLAGS="$CFLAGS -fcf-protection"
12487 case "$enable_cet" in
12488 auto)
12489 # Check if target supports multi-byte NOPs
12490 # and if compiler and assembler support CET.
12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h. */
12493
12494 int
12495 main ()
12496 {
12497
12498 #if !defined(__SSE2__)
12499 #error target does not support multi-byte NOPs
12500 #else
12501 asm ("setssbsy");
12502 #endif
12503
12504 ;
12505 return 0;
12506 }
12507 _ACEOF
12508 if ac_fn_c_try_compile "$LINENO"; then :
12509 enable_cet=yes
12510 else
12511 enable_cet=no
12512 fi
12513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12514 ;;
12515 yes)
12516 # Check if compiler and assembler support CET.
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12519
12520 int
12521 main ()
12522 {
12523 asm ("setssbsy");
12524 ;
12525 return 0;
12526 }
12527 _ACEOF
12528 if ac_fn_c_try_compile "$LINENO"; then :
12529 support_cet=yes
12530 else
12531 support_cet=no
12532 fi
12533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12534 if test $support_cet = "no"; then
12535 if test x$enable_bootstrap != xno \
12536 && test -z "${with_build_subdir}" \
12537 && (test ! -f ../stage_current \
12538 || test `cat ../stage_current` != "stage1"); then
12539 # Require CET support only for the final GCC build.
12540 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
12541 else
12542 # Don't enable CET without CET support for non-bootstrap
12543 # build, in stage1 nor for build support.
12544 enable_cet=no
12545 fi
12546 fi
12547 ;;
12548 esac
12549 CFLAGS="$cet_save_CFLAGS"
12550 ;;
12551 *)
12552 may_have_cet=no
12553 enable_cet=no
12554 ;;
12555 esac
12556
12557 cet_save_CFLAGS="$CFLAGS"
12558 CFLAGS="$CFLAGS -fcf-protection=none"
12559 cet_save_LDFLAGS="$LDFLAGS"
12560 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
12561 if test x$may_have_cet = xyes; then
12562 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h. */
12565
12566 int
12567 main ()
12568 {
12569 return 0;
12570 ;
12571 return 0;
12572 }
12573 _ACEOF
12574 if ac_fn_c_try_link "$LINENO"; then :
12575 may_have_cet=yes
12576 else
12577 may_have_cet=no
12578 fi
12579 rm -f core conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext conftest.$ac_ext
12581 fi
12582
12583 if test x$may_have_cet = xyes; then
12584 if test x$cross_compiling = xno; then
12585 if test "$cross_compiling" = yes; then :
12586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12588 as_fn_error $? "cannot run test program while cross compiling
12589 See \`config.log' for more details" "$LINENO" 5; }
12590 else
12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592 /* end confdefs.h. */
12593
12594 int
12595 main ()
12596 {
12597 asm ("endbr32");
12598 return 0;
12599 }
12600
12601 _ACEOF
12602 if ac_fn_c_try_run "$LINENO"; then :
12603 have_multi_byte_nop=yes
12604 else
12605 have_multi_byte_nop=no
12606 fi
12607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12608 conftest.$ac_objext conftest.beam conftest.$ac_ext
12609 fi
12610
12611 have_cet=no
12612 if test x$have_multi_byte_nop = xyes; then
12613 if test "$cross_compiling" = yes; then :
12614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12616 as_fn_error $? "cannot run test program while cross compiling
12617 See \`config.log' for more details" "$LINENO" 5; }
12618 else
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12621
12622 static void
12623 foo (void)
12624 {
12625 }
12626
12627 static void
12628 __attribute__ ((noinline, noclone))
12629 xxx (void (*f) (void))
12630 {
12631 f ();
12632 }
12633
12634 static void
12635 __attribute__ ((noinline, noclone))
12636 bar (void)
12637 {
12638 xxx (foo);
12639 }
12640
12641 int
12642 main ()
12643 {
12644 bar ();
12645 return 0;
12646 }
12647
12648 _ACEOF
12649 if ac_fn_c_try_run "$LINENO"; then :
12650 have_cet=no
12651 else
12652 have_cet=yes
12653 fi
12654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12655 conftest.$ac_objext conftest.beam conftest.$ac_ext
12656 fi
12657
12658 fi
12659 if test x$enable_cet = xno -a x$have_cet = xyes; then
12660 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
12661 fi
12662 fi
12663 else
12664 # Enable CET in cross compiler if possible so that it will run on both
12665 # CET and non-CET hosts.
12666 have_cet=yes
12667 fi
12668 if test x$enable_cet = xyes; then
12669 CET_HOST_FLAGS="-fcf-protection"
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12671 $as_echo "yes" >&6; }
12672 else
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12674 $as_echo "no" >&6; }
12675 fi
12676 CFLAGS="$cet_save_CFLAGS"
12677 LDFLAGS="$cet_save_LDFLAGS"
12678
12679 case x$enable_languages in
12680 *jit*)
12681 ;;
12682 *)
12683 CET_HOST_FLAGS=
12684 ;;
12685 esac
12686
12687
12688 # Test for __sync support.
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
12690 $as_echo_n "checking __sync extensions... " >&6; }
12691 if ${libbacktrace_cv_sys_sync+:} false; then :
12692 $as_echo_n "(cached) " >&6
12693 else
12694 if test -n "${with_target_subdir}"; then
12695 case "${host}" in
12696 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
12697 *) libbacktrace_cv_sys_sync=yes ;;
12698 esac
12699 else
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h. */
12702 int i;
12703 int
12704 main ()
12705 {
12706 __sync_bool_compare_and_swap (&i, i, i);
12707 __sync_lock_test_and_set (&i, 1);
12708 __sync_lock_release (&i);
12709 ;
12710 return 0;
12711 }
12712 _ACEOF
12713 if ac_fn_c_try_link "$LINENO"; then :
12714 libbacktrace_cv_sys_sync=yes
12715 else
12716 libbacktrace_cv_sys_sync=no
12717 fi
12718 rm -f core conftest.err conftest.$ac_objext \
12719 conftest$ac_exeext conftest.$ac_ext
12720 fi
12721 fi
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
12723 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
12724 BACKTRACE_SUPPORTS_THREADS=0
12725 if test "$libbacktrace_cv_sys_sync" = "yes"; then
12726 BACKTRACE_SUPPORTS_THREADS=1
12727
12728 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
12729
12730 fi
12731
12732
12733 # Test for __atomic support.
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
12735 $as_echo_n "checking __atomic extensions... " >&6; }
12736 if ${libbacktrace_cv_sys_atomic+:} false; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12739 if test -n "${with_target_subdir}"; then
12740 libbacktrace_cv_sys_atomic=yes
12741 else
12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12744 int i;
12745 int
12746 main ()
12747 {
12748 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
12749 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
12750 ;
12751 return 0;
12752 }
12753 _ACEOF
12754 if ac_fn_c_try_link "$LINENO"; then :
12755 libbacktrace_cv_sys_atomic=yes
12756 else
12757 libbacktrace_cv_sys_atomic=no
12758 fi
12759 rm -f core conftest.err conftest.$ac_objext \
12760 conftest$ac_exeext conftest.$ac_ext
12761 fi
12762 fi
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12764 $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12765 if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12766
12767 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12768
12769 fi
12770
12771 # The library needs to be able to read the executable itself. Compile
12772 # a file to determine the executable format. The awk script
12773 # filetype.awk prints out the file type.
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12775 $as_echo_n "checking output filetype... " >&6; }
12776 if ${libbacktrace_cv_sys_filetype+:} false; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 filetype=
12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h. */
12782 int i;
12783 int
12784 main ()
12785 {
12786 int j;
12787 ;
12788 return 0;
12789 }
12790 _ACEOF
12791 if ac_fn_c_try_compile "$LINENO"; then :
12792 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12793 else
12794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12796 as_fn_error $? "compiler failed
12797 See \`config.log' for more details" "$LINENO" 5; }
12798 fi
12799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12800 libbacktrace_cv_sys_filetype=$filetype
12801 fi
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12803 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12804
12805 # Match the file type to decide what files to compile.
12806 FORMAT_FILE=
12807 backtrace_supports_data=yes
12808 case "$libbacktrace_cv_sys_filetype" in
12809 elf*) FORMAT_FILE="elf.lo" ;;
12810 macho) FORMAT_FILE="macho.lo" ;;
12811 pecoff) FORMAT_FILE="pecoff.lo"
12812 backtrace_supports_data=no
12813 ;;
12814 xcoff*) FORMAT_FILE="xcoff.lo"
12815 backtrace_supports_data=no
12816 ;;
12817 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12818 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12819 FORMAT_FILE="unknown.lo"
12820 backtrace_supported=no
12821 ;;
12822 esac
12823
12824
12825 # ELF defines.
12826 elfsize=
12827 case "$libbacktrace_cv_sys_filetype" in
12828 elf32) elfsize=32 ;;
12829 elf64) elfsize=64 ;;
12830 *) elfsize=unused
12831 esac
12832
12833 cat >>confdefs.h <<_ACEOF
12834 #define BACKTRACE_ELF_SIZE $elfsize
12835 _ACEOF
12836
12837 if test "$FORMAT_FILE" = "elf.lo"; then
12838 HAVE_ELF_TRUE=
12839 HAVE_ELF_FALSE='#'
12840 else
12841 HAVE_ELF_TRUE='#'
12842 HAVE_ELF_FALSE=
12843 fi
12844
12845
12846 # XCOFF defines.
12847 xcoffsize=
12848 case "$libbacktrace_cv_sys_filetype" in
12849 xcoff32) xcoffsize=32 ;;
12850 xcoff64) xcoffsize=64 ;;
12851 *) xcoffsize=unused
12852 esac
12853
12854 cat >>confdefs.h <<_ACEOF
12855 #define BACKTRACE_XCOFF_SIZE $xcoffsize
12856 _ACEOF
12857
12858
12859 BACKTRACE_SUPPORTED=0
12860 if test "$backtrace_supported" = "yes"; then
12861 BACKTRACE_SUPPORTED=1
12862 fi
12863
12864
12865 BACKTRACE_SUPPORTS_DATA=0
12866 if test "$backtrace_supports_data" = "yes"; then
12867 BACKTRACE_SUPPORTS_DATA=1
12868 fi
12869
12870
12871
12872
12873 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12874
12875 acx_cv_header_stdint=stddef.h
12876 acx_cv_header_stdint_kind="(already complete)"
12877 for i in stdint.h $inttype_headers; do
12878 unset ac_cv_type_uintptr_t
12879 unset ac_cv_type_uintmax_t
12880 unset ac_cv_type_int_least32_t
12881 unset ac_cv_type_int_fast32_t
12882 unset ac_cv_type_uint64_t
12883 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12884 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12885 #include <$i>
12886 "
12887 if test "x$ac_cv_type_uintmax_t" = xyes; then :
12888 acx_cv_header_stdint=$i
12889 else
12890 continue
12891 fi
12892
12893 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12894 #include <$i>
12895 "
12896 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12897
12898 else
12899 acx_cv_header_stdint_kind="(mostly complete)"
12900 fi
12901
12902 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12903 #include <$i>
12904 "
12905 if test "x$ac_cv_type_int_least32_t" = xyes; then :
12906
12907 else
12908 acx_cv_header_stdint_kind="(mostly complete)"
12909 fi
12910
12911 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12912 #include <$i>
12913 "
12914 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
12915
12916 else
12917 acx_cv_header_stdint_kind="(mostly complete)"
12918 fi
12919
12920 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12921 #include <$i>
12922 "
12923 if test "x$ac_cv_type_uint64_t" = xyes; then :
12924
12925 else
12926 acx_cv_header_stdint_kind="(lacks uint64_t)"
12927 fi
12928
12929 break
12930 done
12931 if test "$acx_cv_header_stdint" = stddef.h; then
12932 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12933 for i in stdint.h $inttype_headers; do
12934 unset ac_cv_type_uintptr_t
12935 unset ac_cv_type_uint32_t
12936 unset ac_cv_type_uint64_t
12937 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12938 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12939 #include <$i>
12940 "
12941 if test "x$ac_cv_type_uint32_t" = xyes; then :
12942 acx_cv_header_stdint=$i
12943 else
12944 continue
12945 fi
12946
12947 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12948 #include <$i>
12949 "
12950 if test "x$ac_cv_type_uint64_t" = xyes; then :
12951
12952 fi
12953
12954 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12955 #include <$i>
12956 "
12957 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12958
12959 fi
12960
12961 break
12962 done
12963 fi
12964 if test "$acx_cv_header_stdint" = stddef.h; then
12965 acx_cv_header_stdint_kind="(u_intXX_t style)"
12966 for i in sys/types.h $inttype_headers; do
12967 unset ac_cv_type_u_int32_t
12968 unset ac_cv_type_u_int64_t
12969 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12970 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12971 #include <$i>
12972 "
12973 if test "x$ac_cv_type_u_int32_t" = xyes; then :
12974 acx_cv_header_stdint=$i
12975 else
12976 continue
12977 fi
12978
12979 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12980 #include <$i>
12981 "
12982 if test "x$ac_cv_type_u_int64_t" = xyes; then :
12983
12984 fi
12985
12986 break
12987 done
12988 fi
12989 if test "$acx_cv_header_stdint" = stddef.h; then
12990 acx_cv_header_stdint_kind="(using manual detection)"
12991 fi
12992
12993 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12994 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12995 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12996 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12997 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12998
12999 # ----------------- Summarize what we found so far
13000
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
13002 $as_echo_n "checking what to include in gstdint.h... " >&6; }
13003
13004 case `$as_basename -- gstdint.h ||
13005 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
13006 Xgstdint.h : 'X\(//\)$' \| \
13007 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
13008 $as_echo X/gstdint.h |
13009 sed '/^.*\/\([^/][^/]*\)\/*$/{
13010 s//\1/
13011 q
13012 }
13013 /^X\/\(\/\/\)$/{
13014 s//\1/
13015 q
13016 }
13017 /^X\/\(\/\).*/{
13018 s//\1/
13019 q
13020 }
13021 s/.*/./; q'` in
13022 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13023 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13024 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13025 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13026 *) ;;
13027 esac
13028
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13030 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
13031
13032 # ----------------- done included file, check C basic types --------
13033
13034 # Lacking an uintptr_t? Test size of void *
13035 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13036 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
13037 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13038 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13039 # This bug is HP SR number 8606223364.
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13041 $as_echo_n "checking size of void *... " >&6; }
13042 if ${ac_cv_sizeof_void_p+:} false; then :
13043 $as_echo_n "(cached) " >&6
13044 else
13045 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13046
13047 else
13048 if test "$ac_cv_type_void_p" = yes; then
13049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13051 as_fn_error 77 "cannot compute sizeof (void *)
13052 See \`config.log' for more details" "$LINENO" 5; }
13053 else
13054 ac_cv_sizeof_void_p=0
13055 fi
13056 fi
13057
13058 fi
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13060 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13061
13062
13063
13064 cat >>confdefs.h <<_ACEOF
13065 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13066 _ACEOF
13067
13068 ;;
13069 esac
13070
13071 # Lacking an uint64_t? Test size of long
13072 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13073 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13076 # This bug is HP SR number 8606223364.
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13078 $as_echo_n "checking size of long... " >&6; }
13079 if ${ac_cv_sizeof_long+:} false; then :
13080 $as_echo_n "(cached) " >&6
13081 else
13082 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13083
13084 else
13085 if test "$ac_cv_type_long" = yes; then
13086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13088 as_fn_error 77 "cannot compute sizeof (long)
13089 See \`config.log' for more details" "$LINENO" 5; }
13090 else
13091 ac_cv_sizeof_long=0
13092 fi
13093 fi
13094
13095 fi
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13097 $as_echo "$ac_cv_sizeof_long" >&6; }
13098
13099
13100
13101 cat >>confdefs.h <<_ACEOF
13102 #define SIZEOF_LONG $ac_cv_sizeof_long
13103 _ACEOF
13104
13105 ;;
13106 esac
13107
13108 if test $acx_cv_header_stdint = stddef.h; then
13109 # Lacking a good header? Test size of everything and deduce all types.
13110 # The cast to long int works around a bug in the HP C Compiler
13111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13113 # This bug is HP SR number 8606223364.
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13115 $as_echo_n "checking size of int... " >&6; }
13116 if ${ac_cv_sizeof_int+:} false; then :
13117 $as_echo_n "(cached) " >&6
13118 else
13119 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13120
13121 else
13122 if test "$ac_cv_type_int" = yes; then
13123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13125 as_fn_error 77 "cannot compute sizeof (int)
13126 See \`config.log' for more details" "$LINENO" 5; }
13127 else
13128 ac_cv_sizeof_int=0
13129 fi
13130 fi
13131
13132 fi
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13134 $as_echo "$ac_cv_sizeof_int" >&6; }
13135
13136
13137
13138 cat >>confdefs.h <<_ACEOF
13139 #define SIZEOF_INT $ac_cv_sizeof_int
13140 _ACEOF
13141
13142
13143 # The cast to long int works around a bug in the HP C Compiler
13144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13146 # This bug is HP SR number 8606223364.
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13148 $as_echo_n "checking size of short... " >&6; }
13149 if ${ac_cv_sizeof_short+:} false; then :
13150 $as_echo_n "(cached) " >&6
13151 else
13152 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13153
13154 else
13155 if test "$ac_cv_type_short" = yes; then
13156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13158 as_fn_error 77 "cannot compute sizeof (short)
13159 See \`config.log' for more details" "$LINENO" 5; }
13160 else
13161 ac_cv_sizeof_short=0
13162 fi
13163 fi
13164
13165 fi
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13167 $as_echo "$ac_cv_sizeof_short" >&6; }
13168
13169
13170
13171 cat >>confdefs.h <<_ACEOF
13172 #define SIZEOF_SHORT $ac_cv_sizeof_short
13173 _ACEOF
13174
13175
13176 # The cast to long int works around a bug in the HP C Compiler
13177 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13178 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13179 # This bug is HP SR number 8606223364.
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13181 $as_echo_n "checking size of char... " >&6; }
13182 if ${ac_cv_sizeof_char+:} false; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13186
13187 else
13188 if test "$ac_cv_type_char" = yes; then
13189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13191 as_fn_error 77 "cannot compute sizeof (char)
13192 See \`config.log' for more details" "$LINENO" 5; }
13193 else
13194 ac_cv_sizeof_char=0
13195 fi
13196 fi
13197
13198 fi
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13200 $as_echo "$ac_cv_sizeof_char" >&6; }
13201
13202
13203
13204 cat >>confdefs.h <<_ACEOF
13205 #define SIZEOF_CHAR $ac_cv_sizeof_char
13206 _ACEOF
13207
13208
13209
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13211 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
13212 case "$ac_cv_sizeof_char" in
13213 1) acx_cv_type_int8_t=char ;;
13214 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
13215 esac
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13217 $as_echo "$acx_cv_type_int8_t" >&6; }
13218
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13220 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
13221 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13222 2:*) acx_cv_type_int16_t=int ;;
13223 *:2) acx_cv_type_int16_t=short ;;
13224 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
13225 esac
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13227 $as_echo "$acx_cv_type_int16_t" >&6; }
13228
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13230 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
13231 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13232 4:*) acx_cv_type_int32_t=int ;;
13233 *:4) acx_cv_type_int32_t=long ;;
13234 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
13235 esac
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13237 $as_echo "$acx_cv_type_int32_t" >&6; }
13238 fi
13239
13240 # These tests are here to make the output prettier
13241
13242 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13243 case "$ac_cv_sizeof_long" in
13244 8) acx_cv_type_int64_t=long ;;
13245 esac
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13247 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13249 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13250 fi
13251
13252 # Now we can use the above types
13253
13254 if test "$ac_cv_type_uintptr_t" != yes; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13256 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13257 case $ac_cv_sizeof_void_p in
13258 2) acx_cv_type_intptr_t=int16_t ;;
13259 4) acx_cv_type_intptr_t=int32_t ;;
13260 8) acx_cv_type_intptr_t=int64_t ;;
13261 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
13262 esac
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13264 $as_echo "$acx_cv_type_intptr_t" >&6; }
13265 fi
13266
13267 # ----------------- done all checks, emit header -------------
13268 ac_config_commands="$ac_config_commands gstdint.h"
13269
13270
13271
13272
13273 for ac_header in sys/mman.h
13274 do :
13275 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13276 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13277 cat >>confdefs.h <<_ACEOF
13278 #define HAVE_SYS_MMAN_H 1
13279 _ACEOF
13280
13281 fi
13282
13283 done
13284
13285 if test "$ac_cv_header_sys_mman_h" = "no"; then
13286 have_mmap=no
13287 else
13288 if test -n "${with_target_subdir}"; then
13289 # When built as a GCC target library, we can't do a link test. We
13290 # simply assume that if we have mman.h, we have mmap.
13291 have_mmap=yes
13292 case "${host}" in
13293 *-*-msdosdjgpp)
13294 # DJGPP has sys/man.h, but no mmap
13295 have_mmap=no ;;
13296 esac
13297 else
13298 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13299 if test "x$ac_cv_func_mmap" = xyes; then :
13300 have_mmap=yes
13301 else
13302 have_mmap=no
13303 fi
13304
13305 fi
13306 fi
13307 if test "$have_mmap" = "no"; then
13308 VIEW_FILE=read.lo
13309 ALLOC_FILE=alloc.lo
13310 else
13311 VIEW_FILE=mmapio.lo
13312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h. */
13314
13315 #include <sys/mman.h>
13316 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
13317 #error no MAP_ANONYMOUS
13318 #endif
13319
13320 _ACEOF
13321 if ac_fn_c_try_cpp "$LINENO"; then :
13322 ALLOC_FILE=mmap.lo
13323 else
13324 ALLOC_FILE=alloc.lo
13325 fi
13326 rm -f conftest.err conftest.i conftest.$ac_ext
13327 fi
13328
13329
13330
13331 BACKTRACE_USES_MALLOC=0
13332 if test "$ALLOC_FILE" = "alloc.lo"; then
13333 BACKTRACE_USES_MALLOC=1
13334 fi
13335
13336
13337 # Check for dl_iterate_phdr.
13338 for ac_header in link.h sys/link.h
13339 do :
13340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13341 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13342 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13343 cat >>confdefs.h <<_ACEOF
13344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13345 _ACEOF
13346
13347 fi
13348
13349 done
13350
13351 if test "$ac_cv_header_link_h" = "no" -a "$ac_cv_header_sys_link_h" = "no"; then
13352 have_dl_iterate_phdr=no
13353 else
13354 if test -n "${with_target_subdir}"; then
13355 link_h=link.h
13356 if test "$ac_cv_header_link_h" = "no"; then
13357 link_h=sys/link.h
13358 fi
13359 # When built as a GCC target library, we can't do a link test.
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13362 #include <$link_h>
13363
13364 _ACEOF
13365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13366 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
13367 have_dl_iterate_phdr=yes
13368 else
13369 have_dl_iterate_phdr=no
13370 fi
13371 rm -f conftest*
13372
13373 else
13374 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
13375 if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then :
13376 have_dl_iterate_phdr=yes
13377 else
13378 have_dl_iterate_phdr=no
13379 fi
13380
13381 fi
13382 fi
13383 if test "$have_dl_iterate_phdr" = "yes"; then
13384
13385 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
13386
13387 fi
13388
13389 # Check for header file for Mach-O image functions.
13390 for ac_header in mach-o/dyld.h
13391 do :
13392 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
13393 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
13394 cat >>confdefs.h <<_ACEOF
13395 #define HAVE_MACH_O_DYLD_H 1
13396 _ACEOF
13397
13398 fi
13399
13400 done
13401
13402
13403 # Check for loadquery.
13404 for ac_header in sys/ldr.h
13405 do :
13406 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
13407 if test "x$ac_cv_header_sys_ldr_h" = xyes; then :
13408 cat >>confdefs.h <<_ACEOF
13409 #define HAVE_SYS_LDR_H 1
13410 _ACEOF
13411
13412 fi
13413
13414 done
13415
13416 if test "$ac_cv_header_sys_ldr_h" = "no"; then
13417 have_loadquery=no
13418 else
13419 if test -n "${with_target_subdir}"; then
13420 # When built as a GCC target library, we can't do a link test.
13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13423 #include <sys/ldr.h>
13424
13425 _ACEOF
13426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13427 $EGREP "loadquery" >/dev/null 2>&1; then :
13428 have_loadquery=yes
13429 else
13430 have_loadquery=no
13431 fi
13432 rm -f conftest*
13433
13434 else
13435 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
13436 if test "x$ac_cv_func_loadquery" = xyes; then :
13437 have_loadquery=yes
13438 else
13439 have_loadquery=no
13440 fi
13441
13442 fi
13443 fi
13444 if test "$have_loadquery" = "yes"; then
13445
13446 $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
13447
13448 fi
13449
13450 # Check for the fcntl function.
13451 if test -n "${with_target_subdir}"; then
13452 case "${host}" in
13453 *-*-mingw*) have_fcntl=no ;;
13454 *) have_fcntl=yes ;;
13455 esac
13456 else
13457 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13458 if test "x$ac_cv_func_fcntl" = xyes; then :
13459 have_fcntl=yes
13460 else
13461 have_fcntl=no
13462 fi
13463
13464 fi
13465 if test "$have_fcntl" = "yes"; then
13466
13467 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
13468
13469 fi
13470
13471 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13472 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13473 ac_have_decl=1
13474 else
13475 ac_have_decl=0
13476 fi
13477
13478 cat >>confdefs.h <<_ACEOF
13479 #define HAVE_DECL_STRNLEN $ac_have_decl
13480 _ACEOF
13481 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
13482 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
13483 ac_have_decl=1
13484 else
13485 ac_have_decl=0
13486 fi
13487
13488 cat >>confdefs.h <<_ACEOF
13489 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
13490 _ACEOF
13491
13492 for ac_func in lstat readlink
13493 do :
13494 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13495 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13496 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13497 cat >>confdefs.h <<_ACEOF
13498 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13499 _ACEOF
13500
13501 fi
13502 done
13503
13504
13505 # Check for getexecname function.
13506 if test -n "${with_target_subdir}"; then
13507 case "${host}" in
13508 *-*-solaris2*) have_getexecname=yes ;;
13509 *) have_getexecname=no ;;
13510 esac
13511 else
13512 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
13513 if test "x$ac_cv_func_getexecname" = xyes; then :
13514 have_getexecname=yes
13515 else
13516 have_getexecname=no
13517 fi
13518
13519 fi
13520 if test "$have_getexecname" = "yes"; then
13521
13522 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
13523
13524 fi
13525
13526 # Check for _pgmptr variable, contains the executable filename on windows
13527 ac_fn_c_check_decl "$LINENO" "_pgmptr" "ac_cv_have_decl__pgmptr" "$ac_includes_default"
13528 if test "x$ac_cv_have_decl__pgmptr" = xyes; then :
13529 ac_have_decl=1
13530 else
13531 ac_have_decl=0
13532 fi
13533
13534 cat >>confdefs.h <<_ACEOF
13535 #define HAVE_DECL__PGMPTR $ac_have_decl
13536 _ACEOF
13537
13538
13539 # Check for sysctl definitions.
13540
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROC" >&5
13542 $as_echo_n "checking for KERN_PROC... " >&6; }
13543 if ${libbacktrace_cv_proc+:} false; then :
13544 $as_echo_n "(cached) " >&6
13545 else
13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547 /* end confdefs.h. */
13548
13549 #include <sys/types.h>
13550 #include <sys/sysctl.h>
13551
13552 int
13553 main ()
13554 {
13555 int mib0 = CTL_KERN; int mib1 = KERN_PROC; int mib2 = KERN_PROC_PATHNAME;
13556 ;
13557 return 0;
13558 }
13559 _ACEOF
13560 if ac_fn_c_try_compile "$LINENO"; then :
13561 libbacktrace_cv_proc=yes
13562 else
13563 libbacktrace_cv_proc=no
13564 fi
13565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13566 fi
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_proc" >&5
13568 $as_echo "$libbacktrace_cv_proc" >&6; }
13569 if test "$libbacktrace_cv_proc" = "yes"; then
13570
13571 $as_echo "#define HAVE_KERN_PROC 1" >>confdefs.h
13572
13573 fi
13574
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROG_ARGS" >&5
13576 $as_echo_n "checking for KERN_PROG_ARGS... " >&6; }
13577 if ${libbacktrace_cv_procargs+:} false; then :
13578 $as_echo_n "(cached) " >&6
13579 else
13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581 /* end confdefs.h. */
13582
13583 #include <sys/types.h>
13584 #include <sys/sysctl.h>
13585
13586 int
13587 main ()
13588 {
13589 int mib0 = CTL_KERN; int mib1 = KERN_PROC_ARGS; int mib2 = KERN_PROC_PATHNAME;
13590 ;
13591 return 0;
13592 }
13593 _ACEOF
13594 if ac_fn_c_try_compile "$LINENO"; then :
13595 libbacktrace_cv_procargs=yes
13596 else
13597 libbacktrace_cv_procargs=no
13598 fi
13599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13600 fi
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_procargs" >&5
13602 $as_echo "$libbacktrace_cv_procargs" >&6; }
13603 if test "$libbacktrace_cv_procargs" = "yes"; then
13604
13605 $as_echo "#define HAVE_KERN_PROC_ARGS 1" >>confdefs.h
13606
13607 fi
13608
13609 # Check for the clock_gettime function.
13610 for ac_func in clock_gettime
13611 do :
13612 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13613 if test "x$ac_cv_func_clock_gettime" = xyes; then :
13614 cat >>confdefs.h <<_ACEOF
13615 #define HAVE_CLOCK_GETTIME 1
13616 _ACEOF
13617
13618 fi
13619 done
13620
13621 clock_gettime_link=
13622 # At least for glibc, clock_gettime is in librt. But don't
13623 # pull that in if it still doesn't give us the function we want. This
13624 # test is copied from libgomp, and modified to not link in -lrt as
13625 # we're using this for test timing only.
13626 if test "$ac_cv_func_clock_gettime" = no; then
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13628 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13629 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13630 $as_echo_n "(cached) " >&6
13631 else
13632 ac_check_lib_save_LIBS=$LIBS
13633 LIBS="-lrt $LIBS"
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13636
13637 /* Override any GCC internal prototype to avoid an error.
13638 Use char because int might match the return type of a GCC
13639 builtin and then its argument prototype would still apply. */
13640 #ifdef __cplusplus
13641 extern "C"
13642 #endif
13643 char clock_gettime ();
13644 int
13645 main ()
13646 {
13647 return clock_gettime ();
13648 ;
13649 return 0;
13650 }
13651 _ACEOF
13652 if ac_fn_c_try_link "$LINENO"; then :
13653 ac_cv_lib_rt_clock_gettime=yes
13654 else
13655 ac_cv_lib_rt_clock_gettime=no
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext \
13658 conftest$ac_exeext conftest.$ac_ext
13659 LIBS=$ac_check_lib_save_LIBS
13660 fi
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13662 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13663 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13664 CLOCK_GETTIME_LINK=-lrt
13665
13666 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13667
13668 fi
13669
13670 fi
13671
13672
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13674 $as_echo_n "checking whether -pthread is supported... " >&6; }
13675 if ${libgo_cv_lib_pthread+:} false; then :
13676 $as_echo_n "(cached) " >&6
13677 else
13678 CFLAGS_hold=$CFLAGS
13679 CFLAGS="$CFLAGS -pthread"
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13682 int i;
13683 _ACEOF
13684 if ac_fn_c_try_compile "$LINENO"; then :
13685 libgo_cv_lib_pthread=yes
13686 else
13687 libgo_cv_lib_pthread=no
13688 fi
13689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690 CFLAGS=$CFLAGS_hold
13691 fi
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13693 $as_echo "$libgo_cv_lib_pthread" >&6; }
13694 PTHREAD_CFLAGS=
13695 if test "$libgo_cv_lib_pthread" = yes; then
13696 PTHREAD_CFLAGS=-pthread
13697 fi
13698
13699
13700 if test "$libgo_cv_lib_pthread" = yes; then
13701 HAVE_PTHREAD_TRUE=
13702 HAVE_PTHREAD_FALSE='#'
13703 else
13704 HAVE_PTHREAD_TRUE='#'
13705 HAVE_PTHREAD_FALSE=
13706 fi
13707
13708
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -gdwarf-5 is supported" >&5
13710 $as_echo_n "checking whether -gdwarf-5 is supported... " >&6; }
13711 if ${libbacktrace_cv_lib_dwarf5+:} false; then :
13712 $as_echo_n "(cached) " >&6
13713 else
13714 CFLAGS_hold=$CFLAGS
13715 CFLAGS="$CFLAGS -gdwarf-5"
13716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h. */
13718 int i;
13719 int
13720 main ()
13721 {
13722 return 0;
13723 ;
13724 return 0;
13725 }
13726 _ACEOF
13727 if ac_fn_c_try_link "$LINENO"; then :
13728 libbacktrace_cv_lib_dwarf5=yes
13729 else
13730 libbacktrace_cv_lib_dwarf5=no
13731 fi
13732 rm -f core conftest.err conftest.$ac_objext \
13733 conftest$ac_exeext conftest.$ac_ext
13734 CFLAGS=$CFLAGS_hold
13735 fi
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_lib_dwarf5" >&5
13737 $as_echo "$libbacktrace_cv_lib_dwarf5" >&6; }
13738 if test "$libbacktrace_cv_lib_dwarf5" = yes; then
13739 HAVE_DWARF5_TRUE=
13740 HAVE_DWARF5_FALSE='#'
13741 else
13742 HAVE_DWARF5_TRUE='#'
13743 HAVE_DWARF5_FALSE=
13744 fi
13745
13746
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
13748 $as_echo_n "checking for compress in -lz... " >&6; }
13749 if ${ac_cv_lib_z_compress+:} false; then :
13750 $as_echo_n "(cached) " >&6
13751 else
13752 ac_check_lib_save_LIBS=$LIBS
13753 LIBS="-lz $LIBS"
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13756
13757 /* Override any GCC internal prototype to avoid an error.
13758 Use char because int might match the return type of a GCC
13759 builtin and then its argument prototype would still apply. */
13760 #ifdef __cplusplus
13761 extern "C"
13762 #endif
13763 char compress ();
13764 int
13765 main ()
13766 {
13767 return compress ();
13768 ;
13769 return 0;
13770 }
13771 _ACEOF
13772 if ac_fn_c_try_link "$LINENO"; then :
13773 ac_cv_lib_z_compress=yes
13774 else
13775 ac_cv_lib_z_compress=no
13776 fi
13777 rm -f core conftest.err conftest.$ac_objext \
13778 conftest$ac_exeext conftest.$ac_ext
13779 LIBS=$ac_check_lib_save_LIBS
13780 fi
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
13782 $as_echo "$ac_cv_lib_z_compress" >&6; }
13783 if test "x$ac_cv_lib_z_compress" = xyes; then :
13784
13785 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13786
13787 fi
13788
13789 if test "$ac_cv_lib_z_compress" = yes; then
13790 HAVE_ZLIB_TRUE=
13791 HAVE_ZLIB_FALSE='#'
13792 else
13793 HAVE_ZLIB_TRUE='#'
13794 HAVE_ZLIB_FALSE=
13795 fi
13796
13797
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --build-id is supported" >&5
13799 $as_echo_n "checking whether --build-id is supported... " >&6; }
13800 if ${libbacktrace_cv_ld_buildid+:} false; then :
13801 $as_echo_n "(cached) " >&6
13802 else
13803 LDFLAGS_hold=$LDFLAGS
13804 LDFLAGS="$LDFLAGS -Wl,--build-id"
13805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806 /* end confdefs.h. */
13807
13808 int
13809 main ()
13810 {
13811
13812 ;
13813 return 0;
13814 }
13815 _ACEOF
13816 if ac_fn_c_try_link "$LINENO"; then :
13817 libbacktrace_cv_ld_buildid=yes
13818 else
13819 libbacktrace_cv_ld_buildid=no
13820 fi
13821 rm -f core conftest.err conftest.$ac_objext \
13822 conftest$ac_exeext conftest.$ac_ext
13823 LDFLAGS=$LDFLAGS_hold
13824 fi
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_ld_buildid" >&5
13826 $as_echo "$libbacktrace_cv_ld_buildid" >&6; }
13827 if test "$libbacktrace_cv_ld_buildid" = yes; then
13828 HAVE_BUILDID_TRUE=
13829 HAVE_BUILDID_FALSE='#'
13830 else
13831 HAVE_BUILDID_TRUE='#'
13832 HAVE_BUILDID_FALSE=
13833 fi
13834
13835
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
13837 $as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
13838 if ${libgo_cv_ld_compress+:} false; then :
13839 $as_echo_n "(cached) " >&6
13840 else
13841 LDFLAGS_hold=$LDFLAGS
13842 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
13843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844 /* end confdefs.h. */
13845
13846 int
13847 main ()
13848 {
13849
13850 ;
13851 return 0;
13852 }
13853 _ACEOF
13854 if ac_fn_c_try_link "$LINENO"; then :
13855 libgo_cv_ld_compress=yes
13856 else
13857 libgo_cv_ld_compress=no
13858 fi
13859 rm -f core conftest.err conftest.$ac_objext \
13860 conftest$ac_exeext conftest.$ac_ext
13861 LDFLAGS=$LDFLAGS_hold
13862 fi
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
13864 $as_echo "$libgo_cv_ld_compress" >&6; }
13865 if test "$libgo_cv_ld_compress" = yes; then
13866 HAVE_COMPRESSED_DEBUG_TRUE=
13867 HAVE_COMPRESSED_DEBUG_FALSE='#'
13868 else
13869 HAVE_COMPRESSED_DEBUG_TRUE='#'
13870 HAVE_COMPRESSED_DEBUG_FALSE=
13871 fi
13872
13873
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compress in -lzstd" >&5
13875 $as_echo_n "checking for ZSTD_compress in -lzstd... " >&6; }
13876 if ${ac_cv_lib_zstd_ZSTD_compress+:} false; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 ac_check_lib_save_LIBS=$LIBS
13880 LIBS="-lzstd $LIBS"
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13883
13884 /* Override any GCC internal prototype to avoid an error.
13885 Use char because int might match the return type of a GCC
13886 builtin and then its argument prototype would still apply. */
13887 #ifdef __cplusplus
13888 extern "C"
13889 #endif
13890 char ZSTD_compress ();
13891 int
13892 main ()
13893 {
13894 return ZSTD_compress ();
13895 ;
13896 return 0;
13897 }
13898 _ACEOF
13899 if ac_fn_c_try_link "$LINENO"; then :
13900 ac_cv_lib_zstd_ZSTD_compress=yes
13901 else
13902 ac_cv_lib_zstd_ZSTD_compress=no
13903 fi
13904 rm -f core conftest.err conftest.$ac_objext \
13905 conftest$ac_exeext conftest.$ac_ext
13906 LIBS=$ac_check_lib_save_LIBS
13907 fi
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compress" >&5
13909 $as_echo "$ac_cv_lib_zstd_ZSTD_compress" >&6; }
13910 if test "x$ac_cv_lib_zstd_ZSTD_compress" = xyes; then :
13911
13912 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
13913
13914 fi
13915
13916 if test "$ac_cv_lib_zstd_ZSTD_compress" = yes; then
13917 HAVE_ZSTD_TRUE=
13918 HAVE_ZSTD_FALSE='#'
13919 else
13920 HAVE_ZSTD_TRUE='#'
13921 HAVE_ZSTD_FALSE=
13922 fi
13923
13924
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections=zstd is supported" >&5
13926 $as_echo_n "checking whether --compress-debug-sections=zstd is supported... " >&6; }
13927 if ${libgo_cv_ld_compress_zstd+:} false; then :
13928 $as_echo_n "(cached) " >&6
13929 else
13930 LDFLAGS_hold=$LDFLAGS
13931 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zstd"
13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h. */
13934
13935 int
13936 main ()
13937 {
13938
13939 ;
13940 return 0;
13941 }
13942 _ACEOF
13943 if ac_fn_c_try_link "$LINENO"; then :
13944 libgo_cv_ld_compress_zstd=yes
13945 else
13946 libgo_cv_ld_compress_zstd=no
13947 fi
13948 rm -f core conftest.err conftest.$ac_objext \
13949 conftest$ac_exeext conftest.$ac_ext
13950 LDFLAGS=$LDFLAGS_hold
13951 fi
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress_zstd" >&5
13953 $as_echo "$libgo_cv_ld_compress_zstd" >&6; }
13954 if test "$libgo_cv_ld_compress_zstd" = yes; then
13955 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE=
13956 HAVE_COMPRESSED_DEBUG_ZSTD_FALSE='#'
13957 else
13958 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE='#'
13959 HAVE_COMPRESSED_DEBUG_ZSTD_FALSE=
13960 fi
13961
13962
13963
13964 # Extract the first word of "objcopy", so it can be a program name with args.
13965 set dummy objcopy; ac_word=$2
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13967 $as_echo_n "checking for $ac_word... " >&6; }
13968 if ${ac_cv_prog_OBJCOPY+:} false; then :
13969 $as_echo_n "(cached) " >&6
13970 else
13971 if test -n "$OBJCOPY"; then
13972 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13973 else
13974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13975 for as_dir in $PATH
13976 do
13977 IFS=$as_save_IFS
13978 test -z "$as_dir" && as_dir=.
13979 for ac_exec_ext in '' $ac_executable_extensions; do
13980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13981 ac_cv_prog_OBJCOPY="objcopy"
13982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13983 break 2
13984 fi
13985 done
13986 done
13987 IFS=$as_save_IFS
13988
13989 fi
13990 fi
13991 OBJCOPY=$ac_cv_prog_OBJCOPY
13992 if test -n "$OBJCOPY"; then
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13994 $as_echo "$OBJCOPY" >&6; }
13995 else
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13997 $as_echo "no" >&6; }
13998 fi
13999
14000
14001 # Extract the first word of "readelf", so it can be a program name with args.
14002 set dummy readelf; ac_word=$2
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14004 $as_echo_n "checking for $ac_word... " >&6; }
14005 if ${ac_cv_prog_READELF+:} false; then :
14006 $as_echo_n "(cached) " >&6
14007 else
14008 if test -n "$READELF"; then
14009 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14010 else
14011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14012 for as_dir in $PATH
14013 do
14014 IFS=$as_save_IFS
14015 test -z "$as_dir" && as_dir=.
14016 for ac_exec_ext in '' $ac_executable_extensions; do
14017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14018 ac_cv_prog_READELF="readelf"
14019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14020 break 2
14021 fi
14022 done
14023 done
14024 IFS=$as_save_IFS
14025
14026 fi
14027 fi
14028 READELF=$ac_cv_prog_READELF
14029 if test -n "$READELF"; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14031 $as_echo "$READELF" >&6; }
14032 else
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14034 $as_echo "no" >&6; }
14035 fi
14036
14037
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
14039 $as_echo_n "checking whether objcopy supports debuglink... " >&6; }
14040 if ${libbacktrace_cv_objcopy_debuglink+:} false; then :
14041 $as_echo_n "(cached) " >&6
14042 else
14043 if test -n "${with_target_subdir}"; then
14044 libbacktrace_cv_objcopy_debuglink=no
14045 elif ! test -n "${OBJCOPY}"; then
14046 libbacktrace_cv_objcopy_debuglink=no
14047 elif ${OBJCOPY} --help | grep add-gnu-debuglink >/dev/null 2>&1; then
14048 libbacktrace_cv_objcopy_debuglink=yes
14049 else
14050 libbacktrace_cv_objcopy_debuglink=no
14051 fi
14052 fi
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
14054 $as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
14055 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
14056 HAVE_OBJCOPY_DEBUGLINK_TRUE=
14057 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
14058 else
14059 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
14060 HAVE_OBJCOPY_DEBUGLINK_FALSE=
14061 fi
14062
14063
14064
14065 # Extract the first word of "dsymutil", so it can be a program name with args.
14066 set dummy dsymutil; ac_word=$2
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14068 $as_echo_n "checking for $ac_word... " >&6; }
14069 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14070 $as_echo_n "(cached) " >&6
14071 else
14072 if test -n "$DSYMUTIL"; then
14073 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14074 else
14075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14076 for as_dir in $PATH
14077 do
14078 IFS=$as_save_IFS
14079 test -z "$as_dir" && as_dir=.
14080 for ac_exec_ext in '' $ac_executable_extensions; do
14081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14082 ac_cv_prog_DSYMUTIL="dsymutil"
14083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14084 break 2
14085 fi
14086 done
14087 done
14088 IFS=$as_save_IFS
14089
14090 fi
14091 fi
14092 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14093 if test -n "$DSYMUTIL"; then
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14095 $as_echo "$DSYMUTIL" >&6; }
14096 else
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14098 $as_echo "no" >&6; }
14099 fi
14100
14101
14102 if test -n "${DSYMUTIL}" -a "$FORMAT_FILE" = "macho.lo"; then
14103 USE_DSYMUTIL_TRUE=
14104 USE_DSYMUTIL_FALSE='#'
14105 else
14106 USE_DSYMUTIL_TRUE='#'
14107 USE_DSYMUTIL_FALSE=
14108 fi
14109
14110
14111
14112 # Extract the first word of "nm", so it can be a program name with args.
14113 set dummy nm; ac_word=$2
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14115 $as_echo_n "checking for $ac_word... " >&6; }
14116 if ${ac_cv_prog_NM+:} false; then :
14117 $as_echo_n "(cached) " >&6
14118 else
14119 if test -n "$NM"; then
14120 ac_cv_prog_NM="$NM" # Let the user override the test.
14121 else
14122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14123 for as_dir in $PATH
14124 do
14125 IFS=$as_save_IFS
14126 test -z "$as_dir" && as_dir=.
14127 for ac_exec_ext in '' $ac_executable_extensions; do
14128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14129 ac_cv_prog_NM="nm"
14130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14131 break 2
14132 fi
14133 done
14134 done
14135 IFS=$as_save_IFS
14136
14137 fi
14138 fi
14139 NM=$ac_cv_prog_NM
14140 if test -n "$NM"; then
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
14142 $as_echo "$NM" >&6; }
14143 else
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14145 $as_echo "no" >&6; }
14146 fi
14147
14148
14149
14150 # Extract the first word of "xz", so it can be a program name with args.
14151 set dummy xz; ac_word=$2
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14153 $as_echo_n "checking for $ac_word... " >&6; }
14154 if ${ac_cv_prog_XZ+:} false; then :
14155 $as_echo_n "(cached) " >&6
14156 else
14157 if test -n "$XZ"; then
14158 ac_cv_prog_XZ="$XZ" # Let the user override the test.
14159 else
14160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14161 for as_dir in $PATH
14162 do
14163 IFS=$as_save_IFS
14164 test -z "$as_dir" && as_dir=.
14165 for ac_exec_ext in '' $ac_executable_extensions; do
14166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14167 ac_cv_prog_XZ="xz"
14168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14169 break 2
14170 fi
14171 done
14172 done
14173 IFS=$as_save_IFS
14174
14175 fi
14176 fi
14177 XZ=$ac_cv_prog_XZ
14178 if test -n "$XZ"; then
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
14180 $as_echo "$XZ" >&6; }
14181 else
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14183 $as_echo "no" >&6; }
14184 fi
14185
14186
14187 if test "$XZ" != ""; then
14188 HAVE_XZ_TRUE=
14189 HAVE_XZ_FALSE='#'
14190 else
14191 HAVE_XZ_TRUE='#'
14192 HAVE_XZ_FALSE=
14193 fi
14194
14195 # Extract the first word of "comm", so it can be a program name with args.
14196 set dummy comm; ac_word=$2
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14198 $as_echo_n "checking for $ac_word... " >&6; }
14199 if ${ac_cv_prog_COMM+:} false; then :
14200 $as_echo_n "(cached) " >&6
14201 else
14202 if test -n "$COMM"; then
14203 ac_cv_prog_COMM="$COMM" # Let the user override the test.
14204 else
14205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14206 for as_dir in $PATH
14207 do
14208 IFS=$as_save_IFS
14209 test -z "$as_dir" && as_dir=.
14210 for ac_exec_ext in '' $ac_executable_extensions; do
14211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14212 ac_cv_prog_COMM="comm"
14213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14214 break 2
14215 fi
14216 done
14217 done
14218 IFS=$as_save_IFS
14219
14220 fi
14221 fi
14222 COMM=$ac_cv_prog_COMM
14223 if test -n "$COMM"; then
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
14225 $as_echo "$COMM" >&6; }
14226 else
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14228 $as_echo "no" >&6; }
14229 fi
14230
14231
14232 if test "$COMM" != ""; then
14233 HAVE_COMM_TRUE=
14234 HAVE_COMM_FALSE='#'
14235 else
14236 HAVE_COMM_TRUE='#'
14237 HAVE_COMM_FALSE=
14238 fi
14239
14240
14241 if test "${with_target_subdir}" = "" -a "$FORMAT_FILE" = "elf.lo" -a "${OBJCOPY}" != "" -a "${NM}" != "" -a "${XZ}" != "" -a "${COMM}" != ""; then
14242 HAVE_MINIDEBUG_TRUE=
14243 HAVE_MINIDEBUG_FALSE='#'
14244 else
14245 HAVE_MINIDEBUG_TRUE='#'
14246 HAVE_MINIDEBUG_FALSE=
14247 fi
14248
14249
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_auto_decoder in -llzma" >&5
14251 $as_echo_n "checking for lzma_auto_decoder in -llzma... " >&6; }
14252 if ${ac_cv_lib_lzma_lzma_auto_decoder+:} false; then :
14253 $as_echo_n "(cached) " >&6
14254 else
14255 ac_check_lib_save_LIBS=$LIBS
14256 LIBS="-llzma $LIBS"
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14259
14260 /* Override any GCC internal prototype to avoid an error.
14261 Use char because int might match the return type of a GCC
14262 builtin and then its argument prototype would still apply. */
14263 #ifdef __cplusplus
14264 extern "C"
14265 #endif
14266 char lzma_auto_decoder ();
14267 int
14268 main ()
14269 {
14270 return lzma_auto_decoder ();
14271 ;
14272 return 0;
14273 }
14274 _ACEOF
14275 if ac_fn_c_try_link "$LINENO"; then :
14276 ac_cv_lib_lzma_lzma_auto_decoder=yes
14277 else
14278 ac_cv_lib_lzma_lzma_auto_decoder=no
14279 fi
14280 rm -f core conftest.err conftest.$ac_objext \
14281 conftest$ac_exeext conftest.$ac_ext
14282 LIBS=$ac_check_lib_save_LIBS
14283 fi
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_auto_decoder" >&5
14285 $as_echo "$ac_cv_lib_lzma_lzma_auto_decoder" >&6; }
14286 if test "x$ac_cv_lib_lzma_lzma_auto_decoder" = xyes; then :
14287
14288 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
14289
14290 fi
14291
14292 if test "$ac_cv_lib_lzma_lzma_auto_decoder" = yes; then
14293 HAVE_LIBLZMA_TRUE=
14294 HAVE_LIBLZMA_FALSE='#'
14295 else
14296 HAVE_LIBLZMA_TRUE='#'
14297 HAVE_LIBLZMA_FALSE=
14298 fi
14299
14300
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
14302 $as_echo_n "checking whether tests can run... " >&6; }
14303 if ${libbacktrace_cv_sys_native+:} false; then :
14304 $as_echo_n "(cached) " >&6
14305 else
14306 if test "$cross_compiling" = yes; then :
14307 libbacktrace_cv_sys_native=no
14308 else
14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14311
14312 int
14313 main ()
14314 {
14315 return 0;
14316 ;
14317 return 0;
14318 }
14319 _ACEOF
14320 if ac_fn_c_try_run "$LINENO"; then :
14321 libbacktrace_cv_sys_native=yes
14322 else
14323 libbacktrace_cv_sys_native=no
14324 fi
14325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14326 conftest.$ac_objext conftest.beam conftest.$ac_ext
14327 fi
14328
14329 fi
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
14331 $as_echo "$libbacktrace_cv_sys_native" >&6; }
14332 if test "$libbacktrace_cv_sys_native" = "yes"; then
14333 NATIVE_TRUE=
14334 NATIVE_FALSE='#'
14335 else
14336 NATIVE_TRUE='#'
14337 NATIVE_FALSE=
14338 fi
14339
14340
14341 if test "${multilib}" = "yes"; then
14342 multilib_arg="--enable-multilib"
14343 else
14344 multilib_arg=
14345 fi
14346
14347 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
14348
14349 ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh"
14350
14351
14352 # We need multilib support, but only if configuring for the target.
14353 ac_config_commands="$ac_config_commands default"
14354
14355
14356 cat >confcache <<\_ACEOF
14357 # This file is a shell script that caches the results of configure
14358 # tests run on this system so they can be shared between configure
14359 # scripts and configure runs, see configure's option --config-cache.
14360 # It is not useful on other systems. If it contains results you don't
14361 # want to keep, you may remove or edit it.
14362 #
14363 # config.status only pays attention to the cache file if you give it
14364 # the --recheck option to rerun configure.
14365 #
14366 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14367 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14368 # following values.
14369
14370 _ACEOF
14371
14372 # The following way of writing the cache mishandles newlines in values,
14373 # but we know of no workaround that is simple, portable, and efficient.
14374 # So, we kill variables containing newlines.
14375 # Ultrix sh set writes to stderr and can't be redirected directly,
14376 # and sets the high bit in the cache file unless we assign to the vars.
14377 (
14378 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14379 eval ac_val=\$$ac_var
14380 case $ac_val in #(
14381 *${as_nl}*)
14382 case $ac_var in #(
14383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14384 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14385 esac
14386 case $ac_var in #(
14387 _ | IFS | as_nl) ;; #(
14388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14389 *) { eval $ac_var=; unset $ac_var;} ;;
14390 esac ;;
14391 esac
14392 done
14393
14394 (set) 2>&1 |
14395 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14396 *${as_nl}ac_space=\ *)
14397 # `set' does not quote correctly, so add quotes: double-quote
14398 # substitution turns \\\\ into \\, and sed turns \\ into \.
14399 sed -n \
14400 "s/'/'\\\\''/g;
14401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14402 ;; #(
14403 *)
14404 # `set' quotes correctly as required by POSIX, so do not add quotes.
14405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14406 ;;
14407 esac |
14408 sort
14409 ) |
14410 sed '
14411 /^ac_cv_env_/b end
14412 t clear
14413 :clear
14414 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14415 t end
14416 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14417 :end' >>confcache
14418 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14419 if test -w "$cache_file"; then
14420 if test "x$cache_file" != "x/dev/null"; then
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14422 $as_echo "$as_me: updating cache $cache_file" >&6;}
14423 if test ! -f "$cache_file" || test -h "$cache_file"; then
14424 cat confcache >"$cache_file"
14425 else
14426 case $cache_file in #(
14427 */* | ?:*)
14428 mv -f confcache "$cache_file"$$ &&
14429 mv -f "$cache_file"$$ "$cache_file" ;; #(
14430 *)
14431 mv -f confcache "$cache_file" ;;
14432 esac
14433 fi
14434 fi
14435 else
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14437 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14438 fi
14439 fi
14440 rm -f confcache
14441
14442 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14443 # Let make expand exec_prefix.
14444 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14445
14446 DEFS=-DHAVE_CONFIG_H
14447
14448 ac_libobjs=
14449 ac_ltlibobjs=
14450 U=
14451 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14452 # 1. Remove the extension, and $U if already installed.
14453 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14454 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14456 # will be set to the directory where LIBOBJS objects are built.
14457 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14458 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14459 done
14460 LIBOBJS=$ac_libobjs
14461
14462 LTLIBOBJS=$ac_ltlibobjs
14463
14464
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14466 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14467 if test -n "$am_sleep_pid"; then
14468 # Hide warnings about reused PIDs.
14469 wait $am_sleep_pid 2>/dev/null
14470 fi
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14472 $as_echo "done" >&6; }
14473 if test -n "$EXEEXT"; then
14474 am__EXEEXT_TRUE=
14475 am__EXEEXT_FALSE='#'
14476 else
14477 am__EXEEXT_TRUE='#'
14478 am__EXEEXT_FALSE=
14479 fi
14480
14481 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14482 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14483 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14484 fi
14485 if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then
14486 as_fn_error $? "conditional \"HAVE_DWZ\" was never defined.
14487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14488 fi
14489 if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then
14490 as_fn_error $? "conditional \"HAVE_ELF\" was never defined.
14491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14492 fi
14493 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
14494 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
14495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14496 fi
14497 if test -z "${HAVE_DWARF5_TRUE}" && test -z "${HAVE_DWARF5_FALSE}"; then
14498 as_fn_error $? "conditional \"HAVE_DWARF5\" was never defined.
14499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14500 fi
14501 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
14502 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
14503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14504 fi
14505 if test -z "${HAVE_BUILDID_TRUE}" && test -z "${HAVE_BUILDID_FALSE}"; then
14506 as_fn_error $? "conditional \"HAVE_BUILDID\" was never defined.
14507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14508 fi
14509 if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
14510 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
14511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14512 fi
14513 if test -z "${HAVE_ZSTD_TRUE}" && test -z "${HAVE_ZSTD_FALSE}"; then
14514 as_fn_error $? "conditional \"HAVE_ZSTD\" was never defined.
14515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14516 fi
14517 if test -z "${HAVE_COMPRESSED_DEBUG_ZSTD_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_ZSTD_FALSE}"; then
14518 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG_ZSTD\" was never defined.
14519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14520 fi
14521 if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
14522 as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
14523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14524 fi
14525 if test -z "${USE_DSYMUTIL_TRUE}" && test -z "${USE_DSYMUTIL_FALSE}"; then
14526 as_fn_error $? "conditional \"USE_DSYMUTIL\" was never defined.
14527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14528 fi
14529 if test -z "${HAVE_XZ_TRUE}" && test -z "${HAVE_XZ_FALSE}"; then
14530 as_fn_error $? "conditional \"HAVE_XZ\" was never defined.
14531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14532 fi
14533 if test -z "${HAVE_COMM_TRUE}" && test -z "${HAVE_COMM_FALSE}"; then
14534 as_fn_error $? "conditional \"HAVE_COMM\" was never defined.
14535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14536 fi
14537 if test -z "${HAVE_MINIDEBUG_TRUE}" && test -z "${HAVE_MINIDEBUG_FALSE}"; then
14538 as_fn_error $? "conditional \"HAVE_MINIDEBUG\" was never defined.
14539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14540 fi
14541 if test -z "${HAVE_LIBLZMA_TRUE}" && test -z "${HAVE_LIBLZMA_FALSE}"; then
14542 as_fn_error $? "conditional \"HAVE_LIBLZMA\" was never defined.
14543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14544 fi
14545 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
14546 as_fn_error $? "conditional \"NATIVE\" was never defined.
14547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14548 fi
14549
14550 : "${CONFIG_STATUS=./config.status}"
14551 ac_write_fail=0
14552 ac_clean_files_save=$ac_clean_files
14553 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14555 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14556 as_write_fail=0
14557 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14558 #! $SHELL
14559 # Generated by $as_me.
14560 # Run this file to recreate the current configuration.
14561 # Compiler output produced by configure, useful for debugging
14562 # configure, is in config.log if it exists.
14563
14564 debug=false
14565 ac_cs_recheck=false
14566 ac_cs_silent=false
14567
14568 SHELL=\${CONFIG_SHELL-$SHELL}
14569 export SHELL
14570 _ASEOF
14571 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14572 ## -------------------- ##
14573 ## M4sh Initialization. ##
14574 ## -------------------- ##
14575
14576 # Be more Bourne compatible
14577 DUALCASE=1; export DUALCASE # for MKS sh
14578 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14579 emulate sh
14580 NULLCMD=:
14581 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14582 # is contrary to our usage. Disable this feature.
14583 alias -g '${1+"$@"}'='"$@"'
14584 setopt NO_GLOB_SUBST
14585 else
14586 case `(set -o) 2>/dev/null` in #(
14587 *posix*) :
14588 set -o posix ;; #(
14589 *) :
14590 ;;
14591 esac
14592 fi
14593
14594
14595 as_nl='
14596 '
14597 export as_nl
14598 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14599 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14600 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14601 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14602 # Prefer a ksh shell builtin over an external printf program on Solaris,
14603 # but without wasting forks for bash or zsh.
14604 if test -z "$BASH_VERSION$ZSH_VERSION" \
14605 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14606 as_echo='print -r --'
14607 as_echo_n='print -rn --'
14608 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14609 as_echo='printf %s\n'
14610 as_echo_n='printf %s'
14611 else
14612 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14613 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14614 as_echo_n='/usr/ucb/echo -n'
14615 else
14616 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14617 as_echo_n_body='eval
14618 arg=$1;
14619 case $arg in #(
14620 *"$as_nl"*)
14621 expr "X$arg" : "X\\(.*\\)$as_nl";
14622 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14623 esac;
14624 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14625 '
14626 export as_echo_n_body
14627 as_echo_n='sh -c $as_echo_n_body as_echo'
14628 fi
14629 export as_echo_body
14630 as_echo='sh -c $as_echo_body as_echo'
14631 fi
14632
14633 # The user is always right.
14634 if test "${PATH_SEPARATOR+set}" != set; then
14635 PATH_SEPARATOR=:
14636 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14637 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14638 PATH_SEPARATOR=';'
14639 }
14640 fi
14641
14642
14643 # IFS
14644 # We need space, tab and new line, in precisely that order. Quoting is
14645 # there to prevent editors from complaining about space-tab.
14646 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14647 # splitting by setting IFS to empty value.)
14648 IFS=" "" $as_nl"
14649
14650 # Find who we are. Look in the path if we contain no directory separator.
14651 as_myself=
14652 case $0 in #((
14653 *[\\/]* ) as_myself=$0 ;;
14654 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14655 for as_dir in $PATH
14656 do
14657 IFS=$as_save_IFS
14658 test -z "$as_dir" && as_dir=.
14659 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14660 done
14661 IFS=$as_save_IFS
14662
14663 ;;
14664 esac
14665 # We did not find ourselves, most probably we were run as `sh COMMAND'
14666 # in which case we are not to be found in the path.
14667 if test "x$as_myself" = x; then
14668 as_myself=$0
14669 fi
14670 if test ! -f "$as_myself"; then
14671 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14672 exit 1
14673 fi
14674
14675 # Unset variables that we do not need and which cause bugs (e.g. in
14676 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14677 # suppresses any "Segmentation fault" message there. '((' could
14678 # trigger a bug in pdksh 5.2.14.
14679 for as_var in BASH_ENV ENV MAIL MAILPATH
14680 do eval test x\${$as_var+set} = xset \
14681 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14682 done
14683 PS1='$ '
14684 PS2='> '
14685 PS4='+ '
14686
14687 # NLS nuisances.
14688 LC_ALL=C
14689 export LC_ALL
14690 LANGUAGE=C
14691 export LANGUAGE
14692
14693 # CDPATH.
14694 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14695
14696
14697 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14698 # ----------------------------------------
14699 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14700 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14701 # script with STATUS, using 1 if that was 0.
14702 as_fn_error ()
14703 {
14704 as_status=$1; test $as_status -eq 0 && as_status=1
14705 if test "$4"; then
14706 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14707 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14708 fi
14709 $as_echo "$as_me: error: $2" >&2
14710 as_fn_exit $as_status
14711 } # as_fn_error
14712
14713
14714 # as_fn_set_status STATUS
14715 # -----------------------
14716 # Set $? to STATUS, without forking.
14717 as_fn_set_status ()
14718 {
14719 return $1
14720 } # as_fn_set_status
14721
14722 # as_fn_exit STATUS
14723 # -----------------
14724 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14725 as_fn_exit ()
14726 {
14727 set +e
14728 as_fn_set_status $1
14729 exit $1
14730 } # as_fn_exit
14731
14732 # as_fn_unset VAR
14733 # ---------------
14734 # Portably unset VAR.
14735 as_fn_unset ()
14736 {
14737 { eval $1=; unset $1;}
14738 }
14739 as_unset=as_fn_unset
14740 # as_fn_append VAR VALUE
14741 # ----------------------
14742 # Append the text in VALUE to the end of the definition contained in VAR. Take
14743 # advantage of any shell optimizations that allow amortized linear growth over
14744 # repeated appends, instead of the typical quadratic growth present in naive
14745 # implementations.
14746 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14747 eval 'as_fn_append ()
14748 {
14749 eval $1+=\$2
14750 }'
14751 else
14752 as_fn_append ()
14753 {
14754 eval $1=\$$1\$2
14755 }
14756 fi # as_fn_append
14757
14758 # as_fn_arith ARG...
14759 # ------------------
14760 # Perform arithmetic evaluation on the ARGs, and store the result in the
14761 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14762 # must be portable across $(()) and expr.
14763 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14764 eval 'as_fn_arith ()
14765 {
14766 as_val=$(( $* ))
14767 }'
14768 else
14769 as_fn_arith ()
14770 {
14771 as_val=`expr "$@" || test $? -eq 1`
14772 }
14773 fi # as_fn_arith
14774
14775
14776 if expr a : '\(a\)' >/dev/null 2>&1 &&
14777 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14778 as_expr=expr
14779 else
14780 as_expr=false
14781 fi
14782
14783 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14784 as_basename=basename
14785 else
14786 as_basename=false
14787 fi
14788
14789 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14790 as_dirname=dirname
14791 else
14792 as_dirname=false
14793 fi
14794
14795 as_me=`$as_basename -- "$0" ||
14796 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14797 X"$0" : 'X\(//\)$' \| \
14798 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14799 $as_echo X/"$0" |
14800 sed '/^.*\/\([^/][^/]*\)\/*$/{
14801 s//\1/
14802 q
14803 }
14804 /^X\/\(\/\/\)$/{
14805 s//\1/
14806 q
14807 }
14808 /^X\/\(\/\).*/{
14809 s//\1/
14810 q
14811 }
14812 s/.*/./; q'`
14813
14814 # Avoid depending upon Character Ranges.
14815 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14816 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14817 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14818 as_cr_digits='0123456789'
14819 as_cr_alnum=$as_cr_Letters$as_cr_digits
14820
14821 ECHO_C= ECHO_N= ECHO_T=
14822 case `echo -n x` in #(((((
14823 -n*)
14824 case `echo 'xy\c'` in
14825 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14826 xy) ECHO_C='\c';;
14827 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14828 ECHO_T=' ';;
14829 esac;;
14830 *)
14831 ECHO_N='-n';;
14832 esac
14833
14834 rm -f conf$$ conf$$.exe conf$$.file
14835 if test -d conf$$.dir; then
14836 rm -f conf$$.dir/conf$$.file
14837 else
14838 rm -f conf$$.dir
14839 mkdir conf$$.dir 2>/dev/null
14840 fi
14841 if (echo >conf$$.file) 2>/dev/null; then
14842 if ln -s conf$$.file conf$$ 2>/dev/null; then
14843 as_ln_s='ln -s'
14844 # ... but there are two gotchas:
14845 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14846 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14847 # In both cases, we have to default to `cp -pR'.
14848 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14849 as_ln_s='cp -pR'
14850 elif ln conf$$.file conf$$ 2>/dev/null; then
14851 as_ln_s=ln
14852 else
14853 as_ln_s='cp -pR'
14854 fi
14855 else
14856 as_ln_s='cp -pR'
14857 fi
14858 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14859 rmdir conf$$.dir 2>/dev/null
14860
14861
14862 # as_fn_mkdir_p
14863 # -------------
14864 # Create "$as_dir" as a directory, including parents if necessary.
14865 as_fn_mkdir_p ()
14866 {
14867
14868 case $as_dir in #(
14869 -*) as_dir=./$as_dir;;
14870 esac
14871 test -d "$as_dir" || eval $as_mkdir_p || {
14872 as_dirs=
14873 while :; do
14874 case $as_dir in #(
14875 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14876 *) as_qdir=$as_dir;;
14877 esac
14878 as_dirs="'$as_qdir' $as_dirs"
14879 as_dir=`$as_dirname -- "$as_dir" ||
14880 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14881 X"$as_dir" : 'X\(//\)[^/]' \| \
14882 X"$as_dir" : 'X\(//\)$' \| \
14883 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14884 $as_echo X"$as_dir" |
14885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14886 s//\1/
14887 q
14888 }
14889 /^X\(\/\/\)[^/].*/{
14890 s//\1/
14891 q
14892 }
14893 /^X\(\/\/\)$/{
14894 s//\1/
14895 q
14896 }
14897 /^X\(\/\).*/{
14898 s//\1/
14899 q
14900 }
14901 s/.*/./; q'`
14902 test -d "$as_dir" && break
14903 done
14904 test -z "$as_dirs" || eval "mkdir $as_dirs"
14905 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14906
14907
14908 } # as_fn_mkdir_p
14909 if mkdir -p . 2>/dev/null; then
14910 as_mkdir_p='mkdir -p "$as_dir"'
14911 else
14912 test -d ./-p && rmdir ./-p
14913 as_mkdir_p=false
14914 fi
14915
14916
14917 # as_fn_executable_p FILE
14918 # -----------------------
14919 # Test if FILE is an executable regular file.
14920 as_fn_executable_p ()
14921 {
14922 test -f "$1" && test -x "$1"
14923 } # as_fn_executable_p
14924 as_test_x='test -x'
14925 as_executable_p=as_fn_executable_p
14926
14927 # Sed expression to map a string onto a valid CPP name.
14928 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14929
14930 # Sed expression to map a string onto a valid variable name.
14931 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14932
14933
14934 exec 6>&1
14935 ## ----------------------------------- ##
14936 ## Main body of $CONFIG_STATUS script. ##
14937 ## ----------------------------------- ##
14938 _ASEOF
14939 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14940
14941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14942 # Save the log message, to keep $0 and so on meaningful, and to
14943 # report actual input values of CONFIG_FILES etc. instead of their
14944 # values after options handling.
14945 ac_log="
14946 This file was extended by package-unused $as_me version-unused, which was
14947 generated by GNU Autoconf 2.69. Invocation command line was
14948
14949 CONFIG_FILES = $CONFIG_FILES
14950 CONFIG_HEADERS = $CONFIG_HEADERS
14951 CONFIG_LINKS = $CONFIG_LINKS
14952 CONFIG_COMMANDS = $CONFIG_COMMANDS
14953 $ $0 $@
14954
14955 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14956 "
14957
14958 _ACEOF
14959
14960 case $ac_config_files in *"
14961 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14962 esac
14963
14964 case $ac_config_headers in *"
14965 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14966 esac
14967
14968
14969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14970 # Files that config.status was made for.
14971 config_files="$ac_config_files"
14972 config_headers="$ac_config_headers"
14973 config_commands="$ac_config_commands"
14974
14975 _ACEOF
14976
14977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14978 ac_cs_usage="\
14979 \`$as_me' instantiates files and other configuration actions
14980 from templates according to the current configuration. Unless the files
14981 and actions are specified as TAGs, all are instantiated by default.
14982
14983 Usage: $0 [OPTION]... [TAG]...
14984
14985 -h, --help print this help, then exit
14986 -V, --version print version number and configuration settings, then exit
14987 --config print configuration, then exit
14988 -q, --quiet, --silent
14989 do not print progress messages
14990 -d, --debug don't remove temporary files
14991 --recheck update $as_me by reconfiguring in the same conditions
14992 --file=FILE[:TEMPLATE]
14993 instantiate the configuration file FILE
14994 --header=FILE[:TEMPLATE]
14995 instantiate the configuration header FILE
14996
14997 Configuration files:
14998 $config_files
14999
15000 Configuration headers:
15001 $config_headers
15002
15003 Configuration commands:
15004 $config_commands
15005
15006 Report bugs to the package provider."
15007
15008 _ACEOF
15009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15010 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15011 ac_cs_version="\\
15012 package-unused config.status version-unused
15013 configured by $0, generated by GNU Autoconf 2.69,
15014 with options \\"\$ac_cs_config\\"
15015
15016 Copyright (C) 2012 Free Software Foundation, Inc.
15017 This config.status script is free software; the Free Software Foundation
15018 gives unlimited permission to copy, distribute and modify it."
15019
15020 ac_pwd='$ac_pwd'
15021 srcdir='$srcdir'
15022 INSTALL='$INSTALL'
15023 MKDIR_P='$MKDIR_P'
15024 AWK='$AWK'
15025 test -n "\$AWK" || AWK=awk
15026 _ACEOF
15027
15028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15029 # The default lists apply if the user does not specify any file.
15030 ac_need_defaults=:
15031 while test $# != 0
15032 do
15033 case $1 in
15034 --*=?*)
15035 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15036 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15037 ac_shift=:
15038 ;;
15039 --*=)
15040 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15041 ac_optarg=
15042 ac_shift=:
15043 ;;
15044 *)
15045 ac_option=$1
15046 ac_optarg=$2
15047 ac_shift=shift
15048 ;;
15049 esac
15050
15051 case $ac_option in
15052 # Handling of the options.
15053 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15054 ac_cs_recheck=: ;;
15055 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15056 $as_echo "$ac_cs_version"; exit ;;
15057 --config | --confi | --conf | --con | --co | --c )
15058 $as_echo "$ac_cs_config"; exit ;;
15059 --debug | --debu | --deb | --de | --d | -d )
15060 debug=: ;;
15061 --file | --fil | --fi | --f )
15062 $ac_shift
15063 case $ac_optarg in
15064 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15065 '') as_fn_error $? "missing file argument" ;;
15066 esac
15067 as_fn_append CONFIG_FILES " '$ac_optarg'"
15068 ac_need_defaults=false;;
15069 --header | --heade | --head | --hea )
15070 $ac_shift
15071 case $ac_optarg in
15072 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15073 esac
15074 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15075 ac_need_defaults=false;;
15076 --he | --h)
15077 # Conflict between --help and --header
15078 as_fn_error $? "ambiguous option: \`$1'
15079 Try \`$0 --help' for more information.";;
15080 --help | --hel | -h )
15081 $as_echo "$ac_cs_usage"; exit ;;
15082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15083 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15084 ac_cs_silent=: ;;
15085
15086 # This is an error.
15087 -*) as_fn_error $? "unrecognized option: \`$1'
15088 Try \`$0 --help' for more information." ;;
15089
15090 *) as_fn_append ac_config_targets " $1"
15091 ac_need_defaults=false ;;
15092
15093 esac
15094 shift
15095 done
15096
15097 ac_configure_extra_args=
15098
15099 if $ac_cs_silent; then
15100 exec 6>/dev/null
15101 ac_configure_extra_args="$ac_configure_extra_args --silent"
15102 fi
15103
15104 _ACEOF
15105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15106 if \$ac_cs_recheck; then
15107 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15108 shift
15109 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15110 CONFIG_SHELL='$SHELL'
15111 export CONFIG_SHELL
15112 exec "\$@"
15113 fi
15114
15115 _ACEOF
15116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15117 exec 5>>config.log
15118 {
15119 echo
15120 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15121 ## Running $as_me. ##
15122 _ASBOX
15123 $as_echo "$ac_log"
15124 } >&5
15125
15126 _ACEOF
15127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15128 #
15129 # INIT-COMMANDS
15130 #
15131
15132 srcdir="$srcdir"
15133 host="$host"
15134 target="$target"
15135 with_multisubdir="$with_multisubdir"
15136 with_multisrctop="$with_multisrctop"
15137 with_target_subdir="$with_target_subdir"
15138 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15139 multi_basedir="$multi_basedir"
15140 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15141 CC="$CC"
15142 CXX="$CXX"
15143 GFORTRAN="$GFORTRAN"
15144 GDC="$GDC"
15145
15146
15147 # The HP-UX ksh and POSIX shell print the target directory to stdout
15148 # if CDPATH is set.
15149 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15150
15151 sed_quote_subst='$sed_quote_subst'
15152 double_quote_subst='$double_quote_subst'
15153 delay_variable_subst='$delay_variable_subst'
15154 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15155 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15156 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15157 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15158 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15159 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15160 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15161 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15162 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15163 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15164 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15165 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15166 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15167 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15168 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15169 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15170 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15171 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15172 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15173 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15174 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15175 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15176 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15177 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15178 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15179 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15180 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15181 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15182 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15183 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15184 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15185 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15186 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15187 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15188 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15189 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15190 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15191 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15192 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15193 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15194 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15195 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15196 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15197 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15198 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15199 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15200 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15201 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15202 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"`'
15203 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15204 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15205 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15206 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15207 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15208 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15209 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15210 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15211 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15212 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15213 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15214 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15215 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15216 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15217 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15218 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15219 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15220 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15221 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15222 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15223 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15224 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15225 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15226 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15227 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15228 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15229 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15230 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15231 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15232 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15233 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15234 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15235 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15236 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15237 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15238 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15239 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15240 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15241 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15242 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15243 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15244 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15245 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15246 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15247 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15248 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15249 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15250 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15251 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15252 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15253 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15254 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15255 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15256 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15257 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15258 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15259 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15260 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15261 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15262 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15263 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15264 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15265 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15266 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15267 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15268 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15269 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15270 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15271 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15272 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15273 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15274
15275 LTCC='$LTCC'
15276 LTCFLAGS='$LTCFLAGS'
15277 compiler='$compiler_DEFAULT'
15278
15279 # A function that is used when there is no print builtin or printf.
15280 func_fallback_echo ()
15281 {
15282 eval 'cat <<_LTECHO_EOF
15283 \$1
15284 _LTECHO_EOF'
15285 }
15286
15287 # Quote evaled strings.
15288 for var in SHELL \
15289 ECHO \
15290 SED \
15291 GREP \
15292 EGREP \
15293 FGREP \
15294 LD \
15295 NM \
15296 LN_S \
15297 lt_SP2NL \
15298 lt_NL2SP \
15299 reload_flag \
15300 OBJDUMP \
15301 deplibs_check_method \
15302 file_magic_cmd \
15303 AR \
15304 AR_FLAGS \
15305 STRIP \
15306 RANLIB \
15307 CC \
15308 CFLAGS \
15309 compiler \
15310 lt_cv_sys_global_symbol_pipe \
15311 lt_cv_sys_global_symbol_to_cdecl \
15312 lt_cv_sys_global_symbol_to_c_name_address \
15313 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15314 lt_prog_compiler_no_builtin_flag \
15315 lt_prog_compiler_wl \
15316 lt_prog_compiler_pic \
15317 lt_prog_compiler_static \
15318 lt_cv_prog_compiler_c_o \
15319 need_locks \
15320 DSYMUTIL \
15321 NMEDIT \
15322 LIPO \
15323 OTOOL \
15324 OTOOL64 \
15325 shrext_cmds \
15326 export_dynamic_flag_spec \
15327 whole_archive_flag_spec \
15328 compiler_needs_object \
15329 with_gnu_ld \
15330 allow_undefined_flag \
15331 no_undefined_flag \
15332 hardcode_libdir_flag_spec \
15333 hardcode_libdir_flag_spec_ld \
15334 hardcode_libdir_separator \
15335 fix_srcfile_path \
15336 exclude_expsyms \
15337 include_expsyms \
15338 file_list_spec \
15339 variables_saved_for_relink \
15340 libname_spec \
15341 library_names_spec \
15342 soname_spec \
15343 install_override_mode \
15344 finish_eval \
15345 old_striplib \
15346 striplib; do
15347 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15348 *[\\\\\\\`\\"\\\$]*)
15349 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15350 ;;
15351 *)
15352 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15353 ;;
15354 esac
15355 done
15356
15357 # Double-quote double-evaled strings.
15358 for var in reload_cmds \
15359 old_postinstall_cmds \
15360 old_postuninstall_cmds \
15361 old_archive_cmds \
15362 extract_expsyms_cmds \
15363 old_archive_from_new_cmds \
15364 old_archive_from_expsyms_cmds \
15365 archive_cmds \
15366 archive_expsym_cmds \
15367 module_cmds \
15368 module_expsym_cmds \
15369 export_symbols_cmds \
15370 prelink_cmds \
15371 postinstall_cmds \
15372 postuninstall_cmds \
15373 finish_cmds \
15374 sys_lib_search_path_spec \
15375 sys_lib_dlsearch_path_spec; do
15376 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15377 *[\\\\\\\`\\"\\\$]*)
15378 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15379 ;;
15380 *)
15381 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15382 ;;
15383 esac
15384 done
15385
15386 ac_aux_dir='$ac_aux_dir'
15387 xsi_shell='$xsi_shell'
15388 lt_shell_append='$lt_shell_append'
15389
15390 # See if we are running on zsh, and set the options which allow our
15391 # commands through without removal of \ escapes INIT.
15392 if test -n "\${ZSH_VERSION+set}" ; then
15393 setopt NO_GLOB_SUBST
15394 fi
15395
15396
15397 PACKAGE='$PACKAGE'
15398 VERSION='$VERSION'
15399 TIMESTAMP='$TIMESTAMP'
15400 RM='$RM'
15401 ofile='$ofile'
15402
15403
15404
15405
15406 GCC="$GCC"
15407 CC="$CC"
15408 acx_cv_header_stdint="$acx_cv_header_stdint"
15409 acx_cv_type_int8_t="$acx_cv_type_int8_t"
15410 acx_cv_type_int16_t="$acx_cv_type_int16_t"
15411 acx_cv_type_int32_t="$acx_cv_type_int32_t"
15412 acx_cv_type_int64_t="$acx_cv_type_int64_t"
15413 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
15414 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
15415 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
15416 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
15417 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
15418 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
15419 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
15420 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
15421 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
15422
15423
15424 # Variables needed in config.status (file generation) which aren't already
15425 # passed by autoconf.
15426 SUBDIRS="$SUBDIRS"
15427
15428
15429 _ACEOF
15430
15431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15432
15433 # Handling of arguments.
15434 for ac_config_target in $ac_config_targets
15435 do
15436 case $ac_config_target in
15437 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15438 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15439 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15440 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
15441 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15442 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
15443 "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;;
15444 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15445
15446 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15447 esac
15448 done
15449
15450
15451 # If the user did not use the arguments to specify the items to instantiate,
15452 # then the envvar interface is used. Set only those that are not.
15453 # We use the long form for the default assignment because of an extremely
15454 # bizarre bug on SunOS 4.1.3.
15455 if $ac_need_defaults; then
15456 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15457 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15458 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15459 fi
15460
15461 # Have a temporary directory for convenience. Make it in the build tree
15462 # simply because there is no reason against having it here, and in addition,
15463 # creating and moving files from /tmp can sometimes cause problems.
15464 # Hook for its removal unless debugging.
15465 # Note that there is a small window in which the directory will not be cleaned:
15466 # after its creation but before its name has been assigned to `$tmp'.
15467 $debug ||
15468 {
15469 tmp= ac_tmp=
15470 trap 'exit_status=$?
15471 : "${ac_tmp:=$tmp}"
15472 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15473 ' 0
15474 trap 'as_fn_exit 1' 1 2 13 15
15475 }
15476 # Create a (secure) tmp directory for tmp files.
15477
15478 {
15479 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15480 test -d "$tmp"
15481 } ||
15482 {
15483 tmp=./conf$$-$RANDOM
15484 (umask 077 && mkdir "$tmp")
15485 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15486 ac_tmp=$tmp
15487
15488 # Set up the scripts for CONFIG_FILES section.
15489 # No need to generate them if there are no CONFIG_FILES.
15490 # This happens for instance with `./config.status config.h'.
15491 if test -n "$CONFIG_FILES"; then
15492
15493
15494 ac_cr=`echo X | tr X '\015'`
15495 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15496 # But we know of no other shell where ac_cr would be empty at this
15497 # point, so we can use a bashism as a fallback.
15498 if test "x$ac_cr" = x; then
15499 eval ac_cr=\$\'\\r\'
15500 fi
15501 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15502 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15503 ac_cs_awk_cr='\\r'
15504 else
15505 ac_cs_awk_cr=$ac_cr
15506 fi
15507
15508 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15509 _ACEOF
15510
15511
15512 {
15513 echo "cat >conf$$subs.awk <<_ACEOF" &&
15514 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15515 echo "_ACEOF"
15516 } >conf$$subs.sh ||
15517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15518 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15519 ac_delim='%!_!# '
15520 for ac_last_try in false false false false false :; do
15521 . ./conf$$subs.sh ||
15522 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15523
15524 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15525 if test $ac_delim_n = $ac_delim_num; then
15526 break
15527 elif $ac_last_try; then
15528 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15529 else
15530 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15531 fi
15532 done
15533 rm -f conf$$subs.sh
15534
15535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15536 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15537 _ACEOF
15538 sed -n '
15539 h
15540 s/^/S["/; s/!.*/"]=/
15541 p
15542 g
15543 s/^[^!]*!//
15544 :repl
15545 t repl
15546 s/'"$ac_delim"'$//
15547 t delim
15548 :nl
15549 h
15550 s/\(.\{148\}\)..*/\1/
15551 t more1
15552 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15553 p
15554 n
15555 b repl
15556 :more1
15557 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15558 p
15559 g
15560 s/.\{148\}//
15561 t nl
15562 :delim
15563 h
15564 s/\(.\{148\}\)..*/\1/
15565 t more2
15566 s/["\\]/\\&/g; s/^/"/; s/$/"/
15567 p
15568 b
15569 :more2
15570 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15571 p
15572 g
15573 s/.\{148\}//
15574 t delim
15575 ' <conf$$subs.awk | sed '
15576 /^[^""]/{
15577 N
15578 s/\n//
15579 }
15580 ' >>$CONFIG_STATUS || ac_write_fail=1
15581 rm -f conf$$subs.awk
15582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15583 _ACAWK
15584 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15585 for (key in S) S_is_set[key] = 1
15586 FS = "\a"
15587
15588 }
15589 {
15590 line = $ 0
15591 nfields = split(line, field, "@")
15592 substed = 0
15593 len = length(field[1])
15594 for (i = 2; i < nfields; i++) {
15595 key = field[i]
15596 keylen = length(key)
15597 if (S_is_set[key]) {
15598 value = S[key]
15599 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15600 len += length(value) + length(field[++i])
15601 substed = 1
15602 } else
15603 len += 1 + keylen
15604 }
15605
15606 print line
15607 }
15608
15609 _ACAWK
15610 _ACEOF
15611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15612 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15613 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15614 else
15615 cat
15616 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15617 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15618 _ACEOF
15619
15620 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15621 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15622 # trailing colons and then remove the whole line if VPATH becomes empty
15623 # (actually we leave an empty line to preserve line numbers).
15624 if test "x$srcdir" = x.; then
15625 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15626 h
15627 s///
15628 s/^/:/
15629 s/[ ]*$/:/
15630 s/:\$(srcdir):/:/g
15631 s/:\${srcdir}:/:/g
15632 s/:@srcdir@:/:/g
15633 s/^:*//
15634 s/:*$//
15635 x
15636 s/\(=[ ]*\).*/\1/
15637 G
15638 s/\n//
15639 s/^[^=]*=[ ]*$//
15640 }'
15641 fi
15642
15643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15644 fi # test -n "$CONFIG_FILES"
15645
15646 # Set up the scripts for CONFIG_HEADERS section.
15647 # No need to generate them if there are no CONFIG_HEADERS.
15648 # This happens for instance with `./config.status Makefile'.
15649 if test -n "$CONFIG_HEADERS"; then
15650 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15651 BEGIN {
15652 _ACEOF
15653
15654 # Transform confdefs.h into an awk script `defines.awk', embedded as
15655 # here-document in config.status, that substitutes the proper values into
15656 # config.h.in to produce config.h.
15657
15658 # Create a delimiter string that does not exist in confdefs.h, to ease
15659 # handling of long lines.
15660 ac_delim='%!_!# '
15661 for ac_last_try in false false :; do
15662 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15663 if test -z "$ac_tt"; then
15664 break
15665 elif $ac_last_try; then
15666 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15667 else
15668 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15669 fi
15670 done
15671
15672 # For the awk script, D is an array of macro values keyed by name,
15673 # likewise P contains macro parameters if any. Preserve backslash
15674 # newline sequences.
15675
15676 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15677 sed -n '
15678 s/.\{148\}/&'"$ac_delim"'/g
15679 t rset
15680 :rset
15681 s/^[ ]*#[ ]*define[ ][ ]*/ /
15682 t def
15683 d
15684 :def
15685 s/\\$//
15686 t bsnl
15687 s/["\\]/\\&/g
15688 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15689 D["\1"]=" \3"/p
15690 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15691 d
15692 :bsnl
15693 s/["\\]/\\&/g
15694 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15695 D["\1"]=" \3\\\\\\n"\\/p
15696 t cont
15697 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15698 t cont
15699 d
15700 :cont
15701 n
15702 s/.\{148\}/&'"$ac_delim"'/g
15703 t clear
15704 :clear
15705 s/\\$//
15706 t bsnlc
15707 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15708 d
15709 :bsnlc
15710 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15711 b cont
15712 ' <confdefs.h | sed '
15713 s/'"$ac_delim"'/"\\\
15714 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15715
15716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15717 for (key in D) D_is_set[key] = 1
15718 FS = "\a"
15719 }
15720 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15721 line = \$ 0
15722 split(line, arg, " ")
15723 if (arg[1] == "#") {
15724 defundef = arg[2]
15725 mac1 = arg[3]
15726 } else {
15727 defundef = substr(arg[1], 2)
15728 mac1 = arg[2]
15729 }
15730 split(mac1, mac2, "(") #)
15731 macro = mac2[1]
15732 prefix = substr(line, 1, index(line, defundef) - 1)
15733 if (D_is_set[macro]) {
15734 # Preserve the white space surrounding the "#".
15735 print prefix "define", macro P[macro] D[macro]
15736 next
15737 } else {
15738 # Replace #undef with comments. This is necessary, for example,
15739 # in the case of _POSIX_SOURCE, which is predefined and required
15740 # on some systems where configure will not decide to define it.
15741 if (defundef == "undef") {
15742 print "/*", prefix defundef, macro, "*/"
15743 next
15744 }
15745 }
15746 }
15747 { print }
15748 _ACAWK
15749 _ACEOF
15750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15751 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15752 fi # test -n "$CONFIG_HEADERS"
15753
15754
15755 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15756 shift
15757 for ac_tag
15758 do
15759 case $ac_tag in
15760 :[FHLC]) ac_mode=$ac_tag; continue;;
15761 esac
15762 case $ac_mode$ac_tag in
15763 :[FHL]*:*);;
15764 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15765 :[FH]-) ac_tag=-:-;;
15766 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15767 esac
15768 ac_save_IFS=$IFS
15769 IFS=:
15770 set x $ac_tag
15771 IFS=$ac_save_IFS
15772 shift
15773 ac_file=$1
15774 shift
15775
15776 case $ac_mode in
15777 :L) ac_source=$1;;
15778 :[FH])
15779 ac_file_inputs=
15780 for ac_f
15781 do
15782 case $ac_f in
15783 -) ac_f="$ac_tmp/stdin";;
15784 *) # Look for the file first in the build tree, then in the source tree
15785 # (if the path is not absolute). The absolute path cannot be DOS-style,
15786 # because $ac_f cannot contain `:'.
15787 test -f "$ac_f" ||
15788 case $ac_f in
15789 [\\/$]*) false;;
15790 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15791 esac ||
15792 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15793 esac
15794 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15795 as_fn_append ac_file_inputs " '$ac_f'"
15796 done
15797
15798 # Let's still pretend it is `configure' which instantiates (i.e., don't
15799 # use $as_me), people would be surprised to read:
15800 # /* config.h. Generated by config.status. */
15801 configure_input='Generated from '`
15802 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15803 `' by configure.'
15804 if test x"$ac_file" != x-; then
15805 configure_input="$ac_file. $configure_input"
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15807 $as_echo "$as_me: creating $ac_file" >&6;}
15808 fi
15809 # Neutralize special characters interpreted by sed in replacement strings.
15810 case $configure_input in #(
15811 *\&* | *\|* | *\\* )
15812 ac_sed_conf_input=`$as_echo "$configure_input" |
15813 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15814 *) ac_sed_conf_input=$configure_input;;
15815 esac
15816
15817 case $ac_tag in
15818 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15819 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15820 esac
15821 ;;
15822 esac
15823
15824 ac_dir=`$as_dirname -- "$ac_file" ||
15825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15826 X"$ac_file" : 'X\(//\)[^/]' \| \
15827 X"$ac_file" : 'X\(//\)$' \| \
15828 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15829 $as_echo X"$ac_file" |
15830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15831 s//\1/
15832 q
15833 }
15834 /^X\(\/\/\)[^/].*/{
15835 s//\1/
15836 q
15837 }
15838 /^X\(\/\/\)$/{
15839 s//\1/
15840 q
15841 }
15842 /^X\(\/\).*/{
15843 s//\1/
15844 q
15845 }
15846 s/.*/./; q'`
15847 as_dir="$ac_dir"; as_fn_mkdir_p
15848 ac_builddir=.
15849
15850 case "$ac_dir" in
15851 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15852 *)
15853 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15854 # A ".." for each directory in $ac_dir_suffix.
15855 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15856 case $ac_top_builddir_sub in
15857 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15858 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15859 esac ;;
15860 esac
15861 ac_abs_top_builddir=$ac_pwd
15862 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15863 # for backward compatibility:
15864 ac_top_builddir=$ac_top_build_prefix
15865
15866 case $srcdir in
15867 .) # We are building in place.
15868 ac_srcdir=.
15869 ac_top_srcdir=$ac_top_builddir_sub
15870 ac_abs_top_srcdir=$ac_pwd ;;
15871 [\\/]* | ?:[\\/]* ) # Absolute name.
15872 ac_srcdir=$srcdir$ac_dir_suffix;
15873 ac_top_srcdir=$srcdir
15874 ac_abs_top_srcdir=$srcdir ;;
15875 *) # Relative name.
15876 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15877 ac_top_srcdir=$ac_top_build_prefix$srcdir
15878 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15879 esac
15880 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15881
15882
15883 case $ac_mode in
15884 :F)
15885 #
15886 # CONFIG_FILE
15887 #
15888
15889 case $INSTALL in
15890 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15891 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15892 esac
15893 ac_MKDIR_P=$MKDIR_P
15894 case $MKDIR_P in
15895 [\\/$]* | ?:[\\/]* ) ;;
15896 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15897 esac
15898 _ACEOF
15899
15900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15901 # If the template does not know about datarootdir, expand it.
15902 # FIXME: This hack should be removed a few years after 2.60.
15903 ac_datarootdir_hack=; ac_datarootdir_seen=
15904 ac_sed_dataroot='
15905 /datarootdir/ {
15906 p
15907 q
15908 }
15909 /@datadir@/p
15910 /@docdir@/p
15911 /@infodir@/p
15912 /@localedir@/p
15913 /@mandir@/p'
15914 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15915 *datarootdir*) ac_datarootdir_seen=yes;;
15916 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15918 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15919 _ACEOF
15920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15921 ac_datarootdir_hack='
15922 s&@datadir@&$datadir&g
15923 s&@docdir@&$docdir&g
15924 s&@infodir@&$infodir&g
15925 s&@localedir@&$localedir&g
15926 s&@mandir@&$mandir&g
15927 s&\\\${datarootdir}&$datarootdir&g' ;;
15928 esac
15929 _ACEOF
15930
15931 # Neutralize VPATH when `$srcdir' = `.'.
15932 # Shell code in configure.ac might set extrasub.
15933 # FIXME: do we really want to maintain this feature?
15934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15935 ac_sed_extra="$ac_vpsub
15936 $extrasub
15937 _ACEOF
15938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15939 :t
15940 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15941 s|@configure_input@|$ac_sed_conf_input|;t t
15942 s&@top_builddir@&$ac_top_builddir_sub&;t t
15943 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15944 s&@srcdir@&$ac_srcdir&;t t
15945 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15946 s&@top_srcdir@&$ac_top_srcdir&;t t
15947 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15948 s&@builddir@&$ac_builddir&;t t
15949 s&@abs_builddir@&$ac_abs_builddir&;t t
15950 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15951 s&@INSTALL@&$ac_INSTALL&;t t
15952 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15953 $ac_datarootdir_hack
15954 "
15955 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15956 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15957
15958 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15959 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15960 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15961 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15963 which seems to be undefined. Please make sure it is defined" >&5
15964 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15965 which seems to be undefined. Please make sure it is defined" >&2;}
15966
15967 rm -f "$ac_tmp/stdin"
15968 case $ac_file in
15969 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15970 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15971 esac \
15972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15973 ;;
15974 :H)
15975 #
15976 # CONFIG_HEADER
15977 #
15978 if test x"$ac_file" != x-; then
15979 {
15980 $as_echo "/* $configure_input */" \
15981 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15982 } >"$ac_tmp/config.h" \
15983 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15984 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15986 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15987 else
15988 rm -f "$ac_file"
15989 mv "$ac_tmp/config.h" "$ac_file" \
15990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15991 fi
15992 else
15993 $as_echo "/* $configure_input */" \
15994 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15995 || as_fn_error $? "could not create -" "$LINENO" 5
15996 fi
15997 # Compute "$ac_file"'s index in $config_headers.
15998 _am_arg="$ac_file"
15999 _am_stamp_count=1
16000 for _am_header in $config_headers :; do
16001 case $_am_header in
16002 $_am_arg | $_am_arg:* )
16003 break ;;
16004 * )
16005 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16006 esac
16007 done
16008 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16009 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16010 X"$_am_arg" : 'X\(//\)[^/]' \| \
16011 X"$_am_arg" : 'X\(//\)$' \| \
16012 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16013 $as_echo X"$_am_arg" |
16014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16015 s//\1/
16016 q
16017 }
16018 /^X\(\/\/\)[^/].*/{
16019 s//\1/
16020 q
16021 }
16022 /^X\(\/\/\)$/{
16023 s//\1/
16024 q
16025 }
16026 /^X\(\/\).*/{
16027 s//\1/
16028 q
16029 }
16030 s/.*/./; q'`/stamp-h$_am_stamp_count
16031 ;;
16032
16033 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16034 $as_echo "$as_me: executing $ac_file commands" >&6;}
16035 ;;
16036 esac
16037
16038
16039 case $ac_file$ac_mode in
16040 "default-1":C)
16041 # Only add multilib support code if we just rebuilt the top-level
16042 # Makefile.
16043 case " $CONFIG_FILES " in
16044 *" Makefile "*)
16045 ac_file=Makefile . ${multi_basedir}/config-ml.in
16046 ;;
16047 esac ;;
16048 "libtool":C)
16049
16050 # See if we are running on zsh, and set the options which allow our
16051 # commands through without removal of \ escapes.
16052 if test -n "${ZSH_VERSION+set}" ; then
16053 setopt NO_GLOB_SUBST
16054 fi
16055
16056 cfgfile="${ofile}T"
16057 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16058 $RM "$cfgfile"
16059
16060 cat <<_LT_EOF >> "$cfgfile"
16061 #! $SHELL
16062
16063 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16064 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16065 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16066 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16067 #
16068 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16069 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16070 # Written by Gordon Matzigkeit, 1996
16071 #
16072 # This file is part of GNU Libtool.
16073 #
16074 # GNU Libtool is free software; you can redistribute it and/or
16075 # modify it under the terms of the GNU General Public License as
16076 # published by the Free Software Foundation; either version 2 of
16077 # the License, or (at your option) any later version.
16078 #
16079 # As a special exception to the GNU General Public License,
16080 # if you distribute this file as part of a program or library that
16081 # is built using GNU Libtool, you may include this file under the
16082 # same distribution terms that you use for the rest of that program.
16083 #
16084 # GNU Libtool is distributed in the hope that it will be useful,
16085 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16086 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16087 # GNU General Public License for more details.
16088 #
16089 # You should have received a copy of the GNU General Public License
16090 # along with GNU Libtool; see the file COPYING. If not, a copy
16091 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16092 # obtained by writing to the Free Software Foundation, Inc.,
16093 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16094
16095
16096 # The names of the tagged configurations supported by this script.
16097 available_tags=""
16098
16099 # ### BEGIN LIBTOOL CONFIG
16100
16101 # Which release of libtool.m4 was used?
16102 macro_version=$macro_version
16103 macro_revision=$macro_revision
16104
16105 # Whether or not to build shared libraries.
16106 build_libtool_libs=$enable_shared
16107
16108 # Whether or not to build static libraries.
16109 build_old_libs=$enable_static
16110
16111 # What type of objects to build.
16112 pic_mode=$pic_mode
16113
16114 # Whether or not to optimize for fast installation.
16115 fast_install=$enable_fast_install
16116
16117 # Shell to use when invoking shell scripts.
16118 SHELL=$lt_SHELL
16119
16120 # An echo program that protects backslashes.
16121 ECHO=$lt_ECHO
16122
16123 # The host system.
16124 host_alias=$host_alias
16125 host=$host
16126 host_os=$host_os
16127
16128 # The build system.
16129 build_alias=$build_alias
16130 build=$build
16131 build_os=$build_os
16132
16133 # A sed program that does not truncate output.
16134 SED=$lt_SED
16135
16136 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16137 Xsed="\$SED -e 1s/^X//"
16138
16139 # A grep program that handles long lines.
16140 GREP=$lt_GREP
16141
16142 # An ERE matcher.
16143 EGREP=$lt_EGREP
16144
16145 # A literal string matcher.
16146 FGREP=$lt_FGREP
16147
16148 # A BSD- or MS-compatible name lister.
16149 NM=$lt_NM
16150
16151 # Whether we need soft or hard links.
16152 LN_S=$lt_LN_S
16153
16154 # What is the maximum length of a command?
16155 max_cmd_len=$max_cmd_len
16156
16157 # Object file suffix (normally "o").
16158 objext=$ac_objext
16159
16160 # Executable file suffix (normally "").
16161 exeext=$exeext
16162
16163 # whether the shell understands "unset".
16164 lt_unset=$lt_unset
16165
16166 # turn spaces into newlines.
16167 SP2NL=$lt_lt_SP2NL
16168
16169 # turn newlines into spaces.
16170 NL2SP=$lt_lt_NL2SP
16171
16172 # An object symbol dumper.
16173 OBJDUMP=$lt_OBJDUMP
16174
16175 # Method to check whether dependent libraries are shared objects.
16176 deplibs_check_method=$lt_deplibs_check_method
16177
16178 # Command to use when deplibs_check_method == "file_magic".
16179 file_magic_cmd=$lt_file_magic_cmd
16180
16181 # The archiver.
16182 AR=$lt_AR
16183 AR_FLAGS=$lt_AR_FLAGS
16184
16185 # A symbol stripping program.
16186 STRIP=$lt_STRIP
16187
16188 # Commands used to install an old-style archive.
16189 RANLIB=$lt_RANLIB
16190 old_postinstall_cmds=$lt_old_postinstall_cmds
16191 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16192
16193 # Whether to use a lock for old archive extraction.
16194 lock_old_archive_extraction=$lock_old_archive_extraction
16195
16196 # A C compiler.
16197 LTCC=$lt_CC
16198
16199 # LTCC compiler flags.
16200 LTCFLAGS=$lt_CFLAGS
16201
16202 # Take the output of nm and produce a listing of raw symbols and C names.
16203 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16204
16205 # Transform the output of nm in a proper C declaration.
16206 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16207
16208 # Transform the output of nm in a C name address pair.
16209 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16210
16211 # Transform the output of nm in a C name address pair when lib prefix is needed.
16212 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16213
16214 # The name of the directory that contains temporary libtool files.
16215 objdir=$objdir
16216
16217 # Used to examine libraries when file_magic_cmd begins with "file".
16218 MAGIC_CMD=$MAGIC_CMD
16219
16220 # Must we lock files when doing compilation?
16221 need_locks=$lt_need_locks
16222
16223 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16224 DSYMUTIL=$lt_DSYMUTIL
16225
16226 # Tool to change global to local symbols on Mac OS X.
16227 NMEDIT=$lt_NMEDIT
16228
16229 # Tool to manipulate fat objects and archives on Mac OS X.
16230 LIPO=$lt_LIPO
16231
16232 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16233 OTOOL=$lt_OTOOL
16234
16235 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16236 OTOOL64=$lt_OTOOL64
16237
16238 # Old archive suffix (normally "a").
16239 libext=$libext
16240
16241 # Shared library suffix (normally ".so").
16242 shrext_cmds=$lt_shrext_cmds
16243
16244 # The commands to extract the exported symbol list from a shared archive.
16245 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16246
16247 # Variables whose values should be saved in libtool wrapper scripts and
16248 # restored at link time.
16249 variables_saved_for_relink=$lt_variables_saved_for_relink
16250
16251 # Do we need the "lib" prefix for modules?
16252 need_lib_prefix=$need_lib_prefix
16253
16254 # Do we need a version for libraries?
16255 need_version=$need_version
16256
16257 # Library versioning type.
16258 version_type=$version_type
16259
16260 # Shared library runtime path variable.
16261 runpath_var=$runpath_var
16262
16263 # Shared library path variable.
16264 shlibpath_var=$shlibpath_var
16265
16266 # Is shlibpath searched before the hard-coded library search path?
16267 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16268
16269 # Format of library name prefix.
16270 libname_spec=$lt_libname_spec
16271
16272 # List of archive names. First name is the real one, the rest are links.
16273 # The last name is the one that the linker finds with -lNAME
16274 library_names_spec=$lt_library_names_spec
16275
16276 # The coded name of the library, if different from the real name.
16277 soname_spec=$lt_soname_spec
16278
16279 # Permission mode override for installation of shared libraries.
16280 install_override_mode=$lt_install_override_mode
16281
16282 # Command to use after installation of a shared archive.
16283 postinstall_cmds=$lt_postinstall_cmds
16284
16285 # Command to use after uninstallation of a shared archive.
16286 postuninstall_cmds=$lt_postuninstall_cmds
16287
16288 # Commands used to finish a libtool library installation in a directory.
16289 finish_cmds=$lt_finish_cmds
16290
16291 # As "finish_cmds", except a single script fragment to be evaled but
16292 # not shown.
16293 finish_eval=$lt_finish_eval
16294
16295 # Whether we should hardcode library paths into libraries.
16296 hardcode_into_libs=$hardcode_into_libs
16297
16298 # Compile-time system search path for libraries.
16299 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16300
16301 # Run-time system search path for libraries.
16302 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16303
16304 # Whether dlopen is supported.
16305 dlopen_support=$enable_dlopen
16306
16307 # Whether dlopen of programs is supported.
16308 dlopen_self=$enable_dlopen_self
16309
16310 # Whether dlopen of statically linked programs is supported.
16311 dlopen_self_static=$enable_dlopen_self_static
16312
16313 # Commands to strip libraries.
16314 old_striplib=$lt_old_striplib
16315 striplib=$lt_striplib
16316
16317
16318 # The linker used to build libraries.
16319 LD=$lt_LD
16320
16321 # How to create reloadable object files.
16322 reload_flag=$lt_reload_flag
16323 reload_cmds=$lt_reload_cmds
16324
16325 # Commands used to build an old-style archive.
16326 old_archive_cmds=$lt_old_archive_cmds
16327
16328 # A language specific compiler.
16329 CC=$lt_compiler
16330
16331 # Is the compiler the GNU compiler?
16332 with_gcc=$GCC
16333
16334 # Compiler flag to turn off builtin functions.
16335 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16336
16337 # How to pass a linker flag through the compiler.
16338 wl=$lt_lt_prog_compiler_wl
16339
16340 # Additional compiler flags for building library objects.
16341 pic_flag=$lt_lt_prog_compiler_pic
16342
16343 # Compiler flag to prevent dynamic linking.
16344 link_static_flag=$lt_lt_prog_compiler_static
16345
16346 # Does compiler simultaneously support -c and -o options?
16347 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16348
16349 # Whether or not to add -lc for building shared libraries.
16350 build_libtool_need_lc=$archive_cmds_need_lc
16351
16352 # Whether or not to disallow shared libs when runtime libs are static.
16353 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16354
16355 # Compiler flag to allow reflexive dlopens.
16356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16357
16358 # Compiler flag to generate shared objects directly from archives.
16359 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16360
16361 # Whether the compiler copes with passing no objects directly.
16362 compiler_needs_object=$lt_compiler_needs_object
16363
16364 # Create an old-style archive from a shared archive.
16365 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16366
16367 # Create a temporary old-style archive to link instead of a shared archive.
16368 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16369
16370 # Commands used to build a shared archive.
16371 archive_cmds=$lt_archive_cmds
16372 archive_expsym_cmds=$lt_archive_expsym_cmds
16373
16374 # Commands used to build a loadable module if different from building
16375 # a shared archive.
16376 module_cmds=$lt_module_cmds
16377 module_expsym_cmds=$lt_module_expsym_cmds
16378
16379 # Whether we are building with GNU ld or not.
16380 with_gnu_ld=$lt_with_gnu_ld
16381
16382 # Flag that allows shared libraries with undefined symbols to be built.
16383 allow_undefined_flag=$lt_allow_undefined_flag
16384
16385 # Flag that enforces no undefined symbols.
16386 no_undefined_flag=$lt_no_undefined_flag
16387
16388 # Flag to hardcode \$libdir into a binary during linking.
16389 # This must work even if \$libdir does not exist
16390 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16391
16392 # If ld is used when linking, flag to hardcode \$libdir into a binary
16393 # during linking. This must work even if \$libdir does not exist.
16394 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16395
16396 # Whether we need a single "-rpath" flag with a separated argument.
16397 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16398
16399 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16400 # DIR into the resulting binary.
16401 hardcode_direct=$hardcode_direct
16402
16403 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16404 # DIR into the resulting binary and the resulting library dependency is
16405 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16406 # library is relocated.
16407 hardcode_direct_absolute=$hardcode_direct_absolute
16408
16409 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16410 # into the resulting binary.
16411 hardcode_minus_L=$hardcode_minus_L
16412
16413 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16414 # into the resulting binary.
16415 hardcode_shlibpath_var=$hardcode_shlibpath_var
16416
16417 # Set to "yes" if building a shared library automatically hardcodes DIR
16418 # into the library and all subsequent libraries and executables linked
16419 # against it.
16420 hardcode_automatic=$hardcode_automatic
16421
16422 # Set to yes if linker adds runtime paths of dependent libraries
16423 # to runtime path list.
16424 inherit_rpath=$inherit_rpath
16425
16426 # Whether libtool must link a program against all its dependency libraries.
16427 link_all_deplibs=$link_all_deplibs
16428
16429 # Fix the shell variable \$srcfile for the compiler.
16430 fix_srcfile_path=$lt_fix_srcfile_path
16431
16432 # Set to "yes" if exported symbols are required.
16433 always_export_symbols=$always_export_symbols
16434
16435 # The commands to list exported symbols.
16436 export_symbols_cmds=$lt_export_symbols_cmds
16437
16438 # Symbols that should not be listed in the preloaded symbols.
16439 exclude_expsyms=$lt_exclude_expsyms
16440
16441 # Symbols that must always be exported.
16442 include_expsyms=$lt_include_expsyms
16443
16444 # Commands necessary for linking programs (against libraries) with templates.
16445 prelink_cmds=$lt_prelink_cmds
16446
16447 # Specify filename containing input files.
16448 file_list_spec=$lt_file_list_spec
16449
16450 # How to hardcode a shared library path into an executable.
16451 hardcode_action=$hardcode_action
16452
16453 # ### END LIBTOOL CONFIG
16454
16455 _LT_EOF
16456
16457 case $host_os in
16458 aix3*)
16459 cat <<\_LT_EOF >> "$cfgfile"
16460 # AIX sometimes has problems with the GCC collect2 program. For some
16461 # reason, if we set the COLLECT_NAMES environment variable, the problems
16462 # vanish in a puff of smoke.
16463 if test "X${COLLECT_NAMES+set}" != Xset; then
16464 COLLECT_NAMES=
16465 export COLLECT_NAMES
16466 fi
16467 _LT_EOF
16468 ;;
16469 esac
16470
16471
16472 ltmain="$ac_aux_dir/ltmain.sh"
16473
16474
16475 # We use sed instead of cat because bash on DJGPP gets confused if
16476 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16477 # text mode, it properly converts lines to CR/LF. This bash problem
16478 # is reportedly fixed, but why not run on old versions too?
16479 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16480 || (rm -f "$cfgfile"; exit 1)
16481
16482 case $xsi_shell in
16483 yes)
16484 cat << \_LT_EOF >> "$cfgfile"
16485
16486 # func_dirname file append nondir_replacement
16487 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16488 # otherwise set result to NONDIR_REPLACEMENT.
16489 func_dirname ()
16490 {
16491 case ${1} in
16492 */*) func_dirname_result="${1%/*}${2}" ;;
16493 * ) func_dirname_result="${3}" ;;
16494 esac
16495 }
16496
16497 # func_basename file
16498 func_basename ()
16499 {
16500 func_basename_result="${1##*/}"
16501 }
16502
16503 # func_dirname_and_basename file append nondir_replacement
16504 # perform func_basename and func_dirname in a single function
16505 # call:
16506 # dirname: Compute the dirname of FILE. If nonempty,
16507 # add APPEND to the result, otherwise set result
16508 # to NONDIR_REPLACEMENT.
16509 # value returned in "$func_dirname_result"
16510 # basename: Compute filename of FILE.
16511 # value retuned in "$func_basename_result"
16512 # Implementation must be kept synchronized with func_dirname
16513 # and func_basename. For efficiency, we do not delegate to
16514 # those functions but instead duplicate the functionality here.
16515 func_dirname_and_basename ()
16516 {
16517 case ${1} in
16518 */*) func_dirname_result="${1%/*}${2}" ;;
16519 * ) func_dirname_result="${3}" ;;
16520 esac
16521 func_basename_result="${1##*/}"
16522 }
16523
16524 # func_stripname prefix suffix name
16525 # strip PREFIX and SUFFIX off of NAME.
16526 # PREFIX and SUFFIX must not contain globbing or regex special
16527 # characters, hashes, percent signs, but SUFFIX may contain a leading
16528 # dot (in which case that matches only a dot).
16529 func_stripname ()
16530 {
16531 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16532 # positional parameters, so assign one to ordinary parameter first.
16533 func_stripname_result=${3}
16534 func_stripname_result=${func_stripname_result#"${1}"}
16535 func_stripname_result=${func_stripname_result%"${2}"}
16536 }
16537
16538 # func_opt_split
16539 func_opt_split ()
16540 {
16541 func_opt_split_opt=${1%%=*}
16542 func_opt_split_arg=${1#*=}
16543 }
16544
16545 # func_lo2o object
16546 func_lo2o ()
16547 {
16548 case ${1} in
16549 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16550 *) func_lo2o_result=${1} ;;
16551 esac
16552 }
16553
16554 # func_xform libobj-or-source
16555 func_xform ()
16556 {
16557 func_xform_result=${1%.*}.lo
16558 }
16559
16560 # func_arith arithmetic-term...
16561 func_arith ()
16562 {
16563 func_arith_result=$(( $* ))
16564 }
16565
16566 # func_len string
16567 # STRING may not start with a hyphen.
16568 func_len ()
16569 {
16570 func_len_result=${#1}
16571 }
16572
16573 _LT_EOF
16574 ;;
16575 *) # Bourne compatible functions.
16576 cat << \_LT_EOF >> "$cfgfile"
16577
16578 # func_dirname file append nondir_replacement
16579 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16580 # otherwise set result to NONDIR_REPLACEMENT.
16581 func_dirname ()
16582 {
16583 # Extract subdirectory from the argument.
16584 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16585 if test "X$func_dirname_result" = "X${1}"; then
16586 func_dirname_result="${3}"
16587 else
16588 func_dirname_result="$func_dirname_result${2}"
16589 fi
16590 }
16591
16592 # func_basename file
16593 func_basename ()
16594 {
16595 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16596 }
16597
16598
16599 # func_stripname prefix suffix name
16600 # strip PREFIX and SUFFIX off of NAME.
16601 # PREFIX and SUFFIX must not contain globbing or regex special
16602 # characters, hashes, percent signs, but SUFFIX may contain a leading
16603 # dot (in which case that matches only a dot).
16604 # func_strip_suffix prefix name
16605 func_stripname ()
16606 {
16607 case ${2} in
16608 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16609 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16610 esac
16611 }
16612
16613 # sed scripts:
16614 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16615 my_sed_long_arg='1s/^-[^=]*=//'
16616
16617 # func_opt_split
16618 func_opt_split ()
16619 {
16620 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16621 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16622 }
16623
16624 # func_lo2o object
16625 func_lo2o ()
16626 {
16627 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16628 }
16629
16630 # func_xform libobj-or-source
16631 func_xform ()
16632 {
16633 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16634 }
16635
16636 # func_arith arithmetic-term...
16637 func_arith ()
16638 {
16639 func_arith_result=`expr "$@"`
16640 }
16641
16642 # func_len string
16643 # STRING may not start with a hyphen.
16644 func_len ()
16645 {
16646 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16647 }
16648
16649 _LT_EOF
16650 esac
16651
16652 case $lt_shell_append in
16653 yes)
16654 cat << \_LT_EOF >> "$cfgfile"
16655
16656 # func_append var value
16657 # Append VALUE to the end of shell variable VAR.
16658 func_append ()
16659 {
16660 eval "$1+=\$2"
16661 }
16662 _LT_EOF
16663 ;;
16664 *)
16665 cat << \_LT_EOF >> "$cfgfile"
16666
16667 # func_append var value
16668 # Append VALUE to the end of shell variable VAR.
16669 func_append ()
16670 {
16671 eval "$1=\$$1\$2"
16672 }
16673
16674 _LT_EOF
16675 ;;
16676 esac
16677
16678
16679 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16680 || (rm -f "$cfgfile"; exit 1)
16681
16682 mv -f "$cfgfile" "$ofile" ||
16683 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16684 chmod +x "$ofile"
16685
16686 ;;
16687 "gstdint.h":C)
16688 if test "$GCC" = yes; then
16689 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
16690 else
16691 echo "/* generated for $CC */" > tmp-stdint.h
16692 fi
16693
16694 sed 's/^ *//' >> tmp-stdint.h <<EOF
16695
16696 #ifndef GCC_GENERATED_STDINT_H
16697 #define GCC_GENERATED_STDINT_H 1
16698
16699 #include <sys/types.h>
16700 EOF
16701
16702 if test "$acx_cv_header_stdint" != stdint.h; then
16703 echo "#include <stddef.h>" >> tmp-stdint.h
16704 fi
16705 if test "$acx_cv_header_stdint" != stddef.h; then
16706 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
16707 fi
16708
16709 sed 's/^ *//' >> tmp-stdint.h <<EOF
16710 /* glibc uses these symbols as guards to prevent redefinitions. */
16711 #ifdef __int8_t_defined
16712 #define _INT8_T
16713 #define _INT16_T
16714 #define _INT32_T
16715 #endif
16716 #ifdef __uint32_t_defined
16717 #define _UINT32_T
16718 #endif
16719
16720 EOF
16721
16722 # ----------------- done header, emit basic int types -------------
16723 if test "$acx_cv_header_stdint" = stddef.h; then
16724 sed 's/^ *//' >> tmp-stdint.h <<EOF
16725
16726 #ifndef _UINT8_T
16727 #define _UINT8_T
16728 #ifndef __uint8_t_defined
16729 #define __uint8_t_defined
16730 #ifndef uint8_t
16731 typedef unsigned $acx_cv_type_int8_t uint8_t;
16732 #endif
16733 #endif
16734 #endif
16735
16736 #ifndef _UINT16_T
16737 #define _UINT16_T
16738 #ifndef __uint16_t_defined
16739 #define __uint16_t_defined
16740 #ifndef uint16_t
16741 typedef unsigned $acx_cv_type_int16_t uint16_t;
16742 #endif
16743 #endif
16744 #endif
16745
16746 #ifndef _UINT32_T
16747 #define _UINT32_T
16748 #ifndef __uint32_t_defined
16749 #define __uint32_t_defined
16750 #ifndef uint32_t
16751 typedef unsigned $acx_cv_type_int32_t uint32_t;
16752 #endif
16753 #endif
16754 #endif
16755
16756 #ifndef _INT8_T
16757 #define _INT8_T
16758 #ifndef __int8_t_defined
16759 #define __int8_t_defined
16760 #ifndef int8_t
16761 typedef $acx_cv_type_int8_t int8_t;
16762 #endif
16763 #endif
16764 #endif
16765
16766 #ifndef _INT16_T
16767 #define _INT16_T
16768 #ifndef __int16_t_defined
16769 #define __int16_t_defined
16770 #ifndef int16_t
16771 typedef $acx_cv_type_int16_t int16_t;
16772 #endif
16773 #endif
16774 #endif
16775
16776 #ifndef _INT32_T
16777 #define _INT32_T
16778 #ifndef __int32_t_defined
16779 #define __int32_t_defined
16780 #ifndef int32_t
16781 typedef $acx_cv_type_int32_t int32_t;
16782 #endif
16783 #endif
16784 #endif
16785 EOF
16786 elif test "$ac_cv_type_u_int32_t" = yes; then
16787 sed 's/^ *//' >> tmp-stdint.h <<EOF
16788
16789 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
16790 #ifndef _INT8_T
16791 #define _INT8_T
16792 #endif
16793 #ifndef _INT16_T
16794 #define _INT16_T
16795 #endif
16796 #ifndef _INT32_T
16797 #define _INT32_T
16798 #endif
16799
16800 #ifndef _UINT8_T
16801 #define _UINT8_T
16802 #ifndef __uint8_t_defined
16803 #define __uint8_t_defined
16804 #ifndef uint8_t
16805 typedef u_int8_t uint8_t;
16806 #endif
16807 #endif
16808 #endif
16809
16810 #ifndef _UINT16_T
16811 #define _UINT16_T
16812 #ifndef __uint16_t_defined
16813 #define __uint16_t_defined
16814 #ifndef uint16_t
16815 typedef u_int16_t uint16_t;
16816 #endif
16817 #endif
16818 #endif
16819
16820 #ifndef _UINT32_T
16821 #define _UINT32_T
16822 #ifndef __uint32_t_defined
16823 #define __uint32_t_defined
16824 #ifndef uint32_t
16825 typedef u_int32_t uint32_t;
16826 #endif
16827 #endif
16828 #endif
16829 EOF
16830 else
16831 sed 's/^ *//' >> tmp-stdint.h <<EOF
16832
16833 /* Some systems have guard macros to prevent redefinitions, define them. */
16834 #ifndef _INT8_T
16835 #define _INT8_T
16836 #endif
16837 #ifndef _INT16_T
16838 #define _INT16_T
16839 #endif
16840 #ifndef _INT32_T
16841 #define _INT32_T
16842 #endif
16843 #ifndef _UINT8_T
16844 #define _UINT8_T
16845 #endif
16846 #ifndef _UINT16_T
16847 #define _UINT16_T
16848 #endif
16849 #ifndef _UINT32_T
16850 #define _UINT32_T
16851 #endif
16852 EOF
16853 fi
16854
16855 # ------------- done basic int types, emit int64_t types ------------
16856 if test "$ac_cv_type_uint64_t" = yes; then
16857 sed 's/^ *//' >> tmp-stdint.h <<EOF
16858
16859 /* system headers have good uint64_t and int64_t */
16860 #ifndef _INT64_T
16861 #define _INT64_T
16862 #endif
16863 #ifndef _UINT64_T
16864 #define _UINT64_T
16865 #endif
16866 EOF
16867 elif test "$ac_cv_type_u_int64_t" = yes; then
16868 sed 's/^ *//' >> tmp-stdint.h <<EOF
16869
16870 /* system headers have an u_int64_t (and int64_t) */
16871 #ifndef _INT64_T
16872 #define _INT64_T
16873 #endif
16874 #ifndef _UINT64_T
16875 #define _UINT64_T
16876 #ifndef __uint64_t_defined
16877 #define __uint64_t_defined
16878 #ifndef uint64_t
16879 typedef u_int64_t uint64_t;
16880 #endif
16881 #endif
16882 #endif
16883 EOF
16884 elif test -n "$acx_cv_type_int64_t"; then
16885 sed 's/^ *//' >> tmp-stdint.h <<EOF
16886
16887 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
16888 #ifndef _INT64_T
16889 #define _INT64_T
16890 #ifndef int64_t
16891 typedef $acx_cv_type_int64_t int64_t;
16892 #endif
16893 #endif
16894 #ifndef _UINT64_T
16895 #define _UINT64_T
16896 #ifndef __uint64_t_defined
16897 #define __uint64_t_defined
16898 #ifndef uint64_t
16899 typedef unsigned $acx_cv_type_int64_t uint64_t;
16900 #endif
16901 #endif
16902 #endif
16903 EOF
16904 else
16905 sed 's/^ *//' >> tmp-stdint.h <<EOF
16906
16907 /* some common heuristics for int64_t, using compiler-specific tests */
16908 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
16909 #ifndef _INT64_T
16910 #define _INT64_T
16911 #ifndef __int64_t_defined
16912 #ifndef int64_t
16913 typedef long long int64_t;
16914 #endif
16915 #endif
16916 #endif
16917 #ifndef _UINT64_T
16918 #define _UINT64_T
16919 #ifndef uint64_t
16920 typedef unsigned long long uint64_t;
16921 #endif
16922 #endif
16923
16924 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
16925 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
16926 does not implement __extension__. But that compiler doesn't define
16927 __GNUC_MINOR__. */
16928 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
16929 # define __extension__
16930 # endif
16931
16932 # ifndef _INT64_T
16933 # define _INT64_T
16934 # ifndef int64_t
16935 __extension__ typedef long long int64_t;
16936 # endif
16937 # endif
16938 # ifndef _UINT64_T
16939 # define _UINT64_T
16940 # ifndef uint64_t
16941 __extension__ typedef unsigned long long uint64_t;
16942 # endif
16943 # endif
16944
16945 #elif !defined __STRICT_ANSI__
16946 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
16947
16948 # ifndef _INT64_T
16949 # define _INT64_T
16950 # ifndef int64_t
16951 typedef __int64 int64_t;
16952 # endif
16953 # endif
16954 # ifndef _UINT64_T
16955 # define _UINT64_T
16956 # ifndef uint64_t
16957 typedef unsigned __int64 uint64_t;
16958 # endif
16959 # endif
16960 # endif /* compiler */
16961
16962 #endif /* ANSI version */
16963 EOF
16964 fi
16965
16966 # ------------- done int64_t types, emit intptr types ------------
16967 if test "$ac_cv_type_uintptr_t" != yes; then
16968 sed 's/^ *//' >> tmp-stdint.h <<EOF
16969
16970 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
16971 #ifndef __uintptr_t_defined
16972 #ifndef uintptr_t
16973 typedef u$acx_cv_type_intptr_t uintptr_t;
16974 #endif
16975 #endif
16976 #ifndef __intptr_t_defined
16977 #ifndef intptr_t
16978 typedef $acx_cv_type_intptr_t intptr_t;
16979 #endif
16980 #endif
16981 EOF
16982 fi
16983
16984 # ------------- done intptr types, emit int_least types ------------
16985 if test "$ac_cv_type_int_least32_t" != yes; then
16986 sed 's/^ *//' >> tmp-stdint.h <<EOF
16987
16988 /* Define int_least types */
16989 typedef int8_t int_least8_t;
16990 typedef int16_t int_least16_t;
16991 typedef int32_t int_least32_t;
16992 #ifdef _INT64_T
16993 typedef int64_t int_least64_t;
16994 #endif
16995
16996 typedef uint8_t uint_least8_t;
16997 typedef uint16_t uint_least16_t;
16998 typedef uint32_t uint_least32_t;
16999 #ifdef _UINT64_T
17000 typedef uint64_t uint_least64_t;
17001 #endif
17002 EOF
17003 fi
17004
17005 # ------------- done intptr types, emit int_fast types ------------
17006 if test "$ac_cv_type_int_fast32_t" != yes; then
17007 sed 's/^ *//' >> tmp-stdint.h <<EOF
17008
17009 /* Define int_fast types. short is often slow */
17010 typedef int8_t int_fast8_t;
17011 typedef int int_fast16_t;
17012 typedef int32_t int_fast32_t;
17013 #ifdef _INT64_T
17014 typedef int64_t int_fast64_t;
17015 #endif
17016
17017 typedef uint8_t uint_fast8_t;
17018 typedef unsigned int uint_fast16_t;
17019 typedef uint32_t uint_fast32_t;
17020 #ifdef _UINT64_T
17021 typedef uint64_t uint_fast64_t;
17022 #endif
17023 EOF
17024 fi
17025
17026 if test "$ac_cv_type_uintmax_t" != yes; then
17027 sed 's/^ *//' >> tmp-stdint.h <<EOF
17028
17029 /* Define intmax based on what we found */
17030 #ifndef intmax_t
17031 #ifdef _INT64_T
17032 typedef int64_t intmax_t;
17033 #else
17034 typedef long intmax_t;
17035 #endif
17036 #endif
17037 #ifndef uintmax_t
17038 #ifdef _UINT64_T
17039 typedef uint64_t uintmax_t;
17040 #else
17041 typedef unsigned long uintmax_t;
17042 #endif
17043 #endif
17044 EOF
17045 fi
17046
17047 sed 's/^ *//' >> tmp-stdint.h <<EOF
17048
17049 #endif /* GCC_GENERATED_STDINT_H */
17050 EOF
17051
17052 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
17053 rm -f tmp-stdint.h
17054 else
17055 mv -f tmp-stdint.h gstdint.h
17056 fi
17057
17058 ;;
17059 "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;;
17060 "default":C) if test -n "$CONFIG_FILES"; then
17061 if test -n "${with_target_subdir}"; then
17062 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17063 # that multilib installs will end up installed in the correct place.
17064 # The testsuite needs it for multilib-aware ABI baseline files.
17065 # To work around this not being passed down from config-ml.in ->
17066 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17067 # append it here. Only modify Makefiles that have just been created.
17068 #
17069 # Also, get rid of this simulated-VPATH thing that automake does.
17070 cat > vpsed << \_EOF
17071 s!`test -f '$<' || echo '$(srcdir)/'`!!
17072 _EOF
17073 for i in $SUBDIRS; do
17074 case $CONFIG_FILES in
17075 *${i}/Makefile*)
17076 #echo "Adding MULTISUBDIR to $i/Makefile"
17077 sed -f vpsed $i/Makefile > tmp
17078 grep '^MULTISUBDIR =' Makefile >> tmp
17079 mv tmp $i/Makefile
17080 ;;
17081 esac
17082 done
17083 rm vpsed
17084 fi
17085 fi
17086 ;;
17087
17088 esac
17089 done # for ac_tag
17090
17091
17092 as_fn_exit 0
17093 _ACEOF
17094 ac_clean_files=$ac_clean_files_save
17095
17096 test $ac_write_fail = 0 ||
17097 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17098
17099
17100 # configure is writing to config.log, and then calls config.status.
17101 # config.status does its own redirection, appending to config.log.
17102 # Unfortunately, on DOS this fails, as config.log is still kept open
17103 # by configure, so config.status won't be able to write to it; its
17104 # output is simply discarded. So we exec the FD to /dev/null,
17105 # effectively closing config.log, so it can be properly (re)opened and
17106 # appended to by config.status. When coming back to configure, we
17107 # need to make the FD available again.
17108 if test "$no_create" != yes; then
17109 ac_cs_success=:
17110 ac_config_status_args=
17111 test "$silent" = yes &&
17112 ac_config_status_args="$ac_config_status_args --quiet"
17113 exec 5>/dev/null
17114 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17115 exec 5>>config.log
17116 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17117 # would make configure fail if this is the last instruction.
17118 $ac_cs_success || as_fn_exit 1
17119 fi
17120 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17122 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17123 fi
17124