]> git.ipfire.org Git - thirdparty/gcc.git/blob - libbacktrace/configure
[Ada] Improve handling of SPARK_Mode in generic instances
[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_DSYMUTIL_FALSE
639 HAVE_DSYMUTIL_TRUE
640 HAVE_OBJCOPY_DEBUGLINK_FALSE
641 HAVE_OBJCOPY_DEBUGLINK_TRUE
642 READELF
643 OBJCOPY
644 HAVE_COMPRESSED_DEBUG_FALSE
645 HAVE_COMPRESSED_DEBUG_TRUE
646 HAVE_ZLIB_FALSE
647 HAVE_ZLIB_TRUE
648 HAVE_DWARF5_FALSE
649 HAVE_DWARF5_TRUE
650 HAVE_PTHREAD_FALSE
651 HAVE_PTHREAD_TRUE
652 PTHREAD_CFLAGS
653 CLOCK_GETTIME_LINK
654 BACKTRACE_USES_MALLOC
655 ALLOC_FILE
656 VIEW_FILE
657 BACKTRACE_SUPPORTS_DATA
658 BACKTRACE_SUPPORTED
659 HAVE_ELF_FALSE
660 HAVE_ELF_TRUE
661 FORMAT_FILE
662 BACKTRACE_SUPPORTS_THREADS
663 CET_HOST_FLAGS
664 PIC_FLAG
665 WARN_FLAGS
666 EXTRA_FLAGS
667 BACKTRACE_FILE
668 OTOOL64
669 OTOOL
670 LIPO
671 NMEDIT
672 DSYMUTIL
673 AR
674 OBJDUMP
675 LN_S
676 NM
677 ac_ct_DUMPBIN
678 DUMPBIN
679 LD
680 FGREP
681 SED
682 LIBTOOL
683 HAVE_DWZ_FALSE
684 HAVE_DWZ_TRUE
685 DWZ
686 RANLIB
687 MAINT
688 MAINTAINER_MODE_FALSE
689 MAINTAINER_MODE_TRUE
690 AM_BACKSLASH
691 AM_DEFAULT_VERBOSITY
692 AM_DEFAULT_V
693 AM_V
694 am__untar
695 am__tar
696 AMTAR
697 am__leading_dot
698 SET_MAKE
699 AWK
700 mkdir_p
701 MKDIR_P
702 INSTALL_STRIP_PROGRAM
703 STRIP
704 install_sh
705 MAKEINFO
706 AUTOHEADER
707 AUTOMAKE
708 AUTOCONF
709 ACLOCAL
710 VERSION
711 PACKAGE
712 CYGPATH_W
713 am__isrc
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 libtool_VERSION
718 EGREP
719 GREP
720 CPP
721 OBJEXT
722 EXEEXT
723 ac_ct_CC
724 CPPFLAGS
725 LDFLAGS
726 CFLAGS
727 CC
728 target_os
729 target_vendor
730 target_cpu
731 target
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 multi_basedir
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_multilib
783 enable_silent_rules
784 enable_maintainer_mode
785 with_target_subdir
786 enable_shared
787 enable_static
788 with_pic
789 enable_fast_install
790 with_gnu_ld
791 enable_libtool_lock
792 enable_largefile
793 enable_cet
794 with_system_libunwind
795 enable_host_shared
796 '
797 ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CC
801 CFLAGS
802 LDFLAGS
803 LIBS
804 CPPFLAGS
805 CPP
806 OBJCOPY
807 DSYMUTIL'
808
809
810 # Initialize some variables set by options.
811 ac_init_help=
812 ac_init_version=false
813 ac_unrecognized_opts=
814 ac_unrecognized_sep=
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
817 cache_file=/dev/null
818 exec_prefix=NONE
819 no_create=
820 no_recursion=
821 prefix=NONE
822 program_prefix=NONE
823 program_suffix=NONE
824 program_transform_name=s,x,x,
825 silent=
826 site=
827 srcdir=
828 verbose=
829 x_includes=NONE
830 x_libraries=NONE
831
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir='${exec_prefix}/bin'
839 sbindir='${exec_prefix}/sbin'
840 libexecdir='${exec_prefix}/libexec'
841 datarootdir='${prefix}/share'
842 datadir='${datarootdir}'
843 sysconfdir='${prefix}/etc'
844 sharedstatedir='${prefix}/com'
845 localstatedir='${prefix}/var'
846 includedir='${prefix}/include'
847 oldincludedir='/usr/include'
848 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849 infodir='${datarootdir}/info'
850 htmldir='${docdir}'
851 dvidir='${docdir}'
852 pdfdir='${docdir}'
853 psdir='${docdir}'
854 libdir='${exec_prefix}/lib'
855 localedir='${datarootdir}/locale'
856 mandir='${datarootdir}/man'
857
858 ac_prev=
859 ac_dashdash=
860 for ac_option
861 do
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
864 eval $ac_prev=\$ac_option
865 ac_prev=
866 continue
867 fi
868
869 case $ac_option in
870 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 *=) ac_optarg= ;;
872 *) ac_optarg=yes ;;
873 esac
874
875 # Accept the important Cygnus configure options, so we can diagnose typos.
876
877 case $ac_dashdash$ac_option in
878 --)
879 ac_dashdash=yes ;;
880
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 ac_prev=bindir ;;
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884 bindir=$ac_optarg ;;
885
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
890
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
897
898 --config-cache | -C)
899 cache_file=config.cache ;;
900
901 -datadir | --datadir | --datadi | --datad)
902 ac_prev=datadir ;;
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
905
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
912
913 -disable-* | --disable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error $? "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922 "enable_$ac_useropt"
923 "*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=no ;;
928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
938
939 -enable-* | --enable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=\$ac_optarg ;;
954
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
963
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
967
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
974
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
979
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
985
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
992
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
997
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1002
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1009
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1014
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1021
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1026
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1030
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1033 no_create=yes ;;
1034
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1038
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1047
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1052
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1059
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1066
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1083
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1088
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1093
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1097
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
1102 sbindir=$ac_optarg ;;
1103
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
1113 sharedstatedir=$ac_optarg ;;
1114
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
1118 site=$ac_optarg ;;
1119
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1124
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1131
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1136
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1139
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1142
1143 -with-* | --with-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=\$ac_optarg ;;
1158
1159 -without-* | --without-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error $? "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=no ;;
1174
1175 --x)
1176 # Obsolete; use --with-x.
1177 with_x=yes ;;
1178
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1185
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1192
1193 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information"
1195 ;;
1196
1197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203 esac
1204 eval $ac_envvar=\$ac_optarg
1205 export $ac_envvar ;;
1206
1207 *)
1208 # FIXME: should be removed in autoconf 3.0.
1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213 ;;
1214
1215 esac
1216 done
1217
1218 if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220 as_fn_error $? "missing argument to $ac_option"
1221 fi
1222
1223 if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1225 no) ;;
1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228 esac
1229 fi
1230
1231 # Check all directory arguments for consistency.
1232 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
1236 do
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1239 case $ac_val in
1240 */ )
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1243 esac
1244 # Be sure to have absolute directory names.
1245 case $ac_val in
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 esac
1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250 done
1251
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1258
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
1263 elif test "x$build_alias" != "x$host_alias"; then
1264 cross_compiling=yes
1265 fi
1266 fi
1267
1268 ac_tool_prefix=
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271 test "$silent" = yes && exec 6>/dev/null
1272
1273
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277 as_fn_error $? "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 as_fn_error $? "pwd does not report name of working directory"
1280
1281
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 $as_echo X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)[^/].*/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\).*/{
1305 s//\1/
1306 q
1307 }
1308 s/.*/./; q'`
1309 srcdir=$ac_confdir
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 srcdir=..
1312 fi
1313 else
1314 ac_srcdir_defaulted=no
1315 fi
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319 fi
1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 ac_abs_confdir=`(
1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323 pwd)`
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 srcdir=.
1327 fi
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1331 case $srcdir in
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 esac
1334 for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 done
1340
1341 #
1342 # Report the --help message.
1343 #
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1347 cat <<_ACEOF
1348 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1349
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1354
1355 Defaults for the options are specified in brackets.
1356
1357 Configuration:
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking ...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 [PREFIX]
1373
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1378
1379 For better control, use the options below.
1380
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1401 _ACEOF
1402
1403 cat <<\_ACEOF
1404
1405 Program names:
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409
1410 System types:
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 --target=TARGET configure for building compilers for TARGET [HOST]
1414 _ACEOF
1415 fi
1416
1417 if test -n "$ac_init_help"; then
1418 case $ac_init_help in
1419 short | recursive ) echo "Configuration of package-unused version-unused:";;
1420 esac
1421 cat <<\_ACEOF
1422
1423 Optional Features:
1424 --disable-option-checking ignore unrecognized --enable/--with options
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1427 --enable-multilib build many library versions (default)
1428 --enable-silent-rules less verbose build output (undo: "make V=1")
1429 --disable-silent-rules verbose build output (undo: "make V=0")
1430 --enable-maintainer-mode
1431 enable make rules and dependencies not useful (and
1432 sometimes confusing) to the casual installer
1433 --enable-shared[=PKGS] build shared libraries [default=yes]
1434 --enable-static[=PKGS] build static libraries [default=yes]
1435 --enable-fast-install[=PKGS]
1436 optimize for fast installation [default=yes]
1437 --disable-libtool-lock avoid locking (might break parallel builds)
1438 --disable-largefile omit support for large files
1439 --enable-cet enable Intel CET in target libraries [default=auto]
1440 --enable-host-shared build host code as shared libraries
1441 --enable-cet enable Intel CET in host libraries [default=auto]
1442
1443 Optional Packages:
1444 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1445 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1446 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1447 --with-pic try to use only PIC/non-PIC objects [default=use
1448 both]
1449 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1450 --with-system-libunwind use installed libunwind
1451
1452 Some influential environment variables:
1453 CC C compiler command
1454 CFLAGS C compiler flags
1455 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1456 nonstandard directory <lib dir>
1457 LIBS libraries to pass to the linker, e.g. -l<library>
1458 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1459 you have headers in a nonstandard directory <include dir>
1460 CPP C preprocessor
1461 OBJCOPY location of objcopy
1462 DSYMUTIL location of dsymutil
1463
1464 Use these variables to override the choices made by `configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1466
1467 Report bugs to the package provider.
1468 _ACEOF
1469 ac_status=$?
1470 fi
1471
1472 if test "$ac_init_help" = "recursive"; then
1473 # If there are subdirs, report their specific --help.
1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475 test -d "$ac_dir" ||
1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477 continue
1478 ac_builddir=.
1479
1480 case "$ac_dir" in
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *)
1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 esac ;;
1490 esac
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1495
1496 case $srcdir in
1497 .) # We are building in place.
1498 ac_srcdir=.
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
1502 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1505 *) # Relative name.
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 esac
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for guested configure.
1514 if test -f "$ac_srcdir/configure.gnu"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517 elif test -f "$ac_srcdir/configure"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure" --help=recursive
1520 else
1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522 fi || ac_status=$?
1523 cd "$ac_pwd" || { ac_status=$?; break; }
1524 done
1525 fi
1526
1527 test -n "$ac_init_help" && exit $ac_status
1528 if $ac_init_version; then
1529 cat <<\_ACEOF
1530 package-unused configure version-unused
1531 generated by GNU Autoconf 2.69
1532
1533 Copyright (C) 2012 Free Software Foundation, Inc.
1534 This configure script is free software; the Free Software Foundation
1535 gives unlimited permission to copy, distribute and modify it.
1536 _ACEOF
1537 exit
1538 fi
1539
1540 ## ------------------------ ##
1541 ## Autoconf initialization. ##
1542 ## ------------------------ ##
1543
1544 # ac_fn_c_try_compile LINENO
1545 # --------------------------
1546 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_compile ()
1548 {
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 rm -f conftest.$ac_objext
1551 if { { ac_try="$ac_compile"
1552 case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_compile") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1564 fi
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && {
1567 test -z "$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 } && test -s conftest.$ac_objext; then :
1570 ac_retval=0
1571 else
1572 $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1574
1575 ac_retval=1
1576 fi
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578 as_fn_set_status $ac_retval
1579
1580 } # ac_fn_c_try_compile
1581
1582 # ac_fn_c_try_cpp LINENO
1583 # ----------------------
1584 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_cpp ()
1586 {
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 if { { ac_try="$ac_cpp conftest.$ac_ext"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } > conftest.i && {
1604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 }; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613 fi
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_cpp
1618
1619 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1620 # -------------------------------------------------------
1621 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1622 # the include files in INCLUDES and setting the cache variable VAR
1623 # accordingly.
1624 ac_fn_c_check_header_mongrel ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if eval \${$3+:} false; then :
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629 $as_echo_n "checking for $2... " >&6; }
1630 if eval \${$3+:} false; then :
1631 $as_echo_n "(cached) " >&6
1632 fi
1633 eval ac_res=\$$3
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635 $as_echo "$ac_res" >&6; }
1636 else
1637 # Is the header compilable?
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1639 $as_echo_n "checking $2 usability... " >&6; }
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1642 $4
1643 #include <$2>
1644 _ACEOF
1645 if ac_fn_c_try_compile "$LINENO"; then :
1646 ac_header_compiler=yes
1647 else
1648 ac_header_compiler=no
1649 fi
1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1652 $as_echo "$ac_header_compiler" >&6; }
1653
1654 # Is the header present?
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1656 $as_echo_n "checking $2 presence... " >&6; }
1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658 /* end confdefs.h. */
1659 #include <$2>
1660 _ACEOF
1661 if ac_fn_c_try_cpp "$LINENO"; then :
1662 ac_header_preproc=yes
1663 else
1664 ac_header_preproc=no
1665 fi
1666 rm -f conftest.err conftest.i conftest.$ac_ext
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1668 $as_echo "$ac_header_preproc" >&6; }
1669
1670 # So? What about this header?
1671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1672 yes:no: )
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1674 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1676 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1677 ;;
1678 no:yes:* )
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1680 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1682 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1684 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1686 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1688 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1689 ;;
1690 esac
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if eval \${$3+:} false; then :
1694 $as_echo_n "(cached) " >&6
1695 else
1696 eval "$3=\$ac_header_compiler"
1697 fi
1698 eval ac_res=\$$3
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 $as_echo "$ac_res" >&6; }
1701 fi
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
1704 } # ac_fn_c_check_header_mongrel
1705
1706 # ac_fn_c_try_run LINENO
1707 # ----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1709 # that executables *can* be run.
1710 ac_fn_c_try_run ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_link"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1724 { { case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_try") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; }; }; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: program exited with status $ac_status" >&5
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=$ac_status
1741 fi
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1745
1746 } # ac_fn_c_try_run
1747
1748 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1749 # -------------------------------------------------------
1750 # Tests whether HEADER exists and can be compiled using the include files in
1751 # INCLUDES, setting the cache variable VAR accordingly.
1752 ac_fn_c_check_header_compile ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1759 else
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 $4
1763 #include <$2>
1764 _ACEOF
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766 eval "$3=yes"
1767 else
1768 eval "$3=no"
1769 fi
1770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 fi
1772 eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777 } # ac_fn_c_check_header_compile
1778
1779 # ac_fn_c_try_link LINENO
1780 # -----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_link ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext conftest$ac_exeext
1786 if { { ac_try="$ac_link"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1799 fi
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest$ac_exeext && {
1805 test "$cross_compiling" = yes ||
1806 test -x conftest$ac_exeext
1807 }; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1812
1813 ac_retval=1
1814 fi
1815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1817 # interfere with the next link command; also delete a directory that is
1818 # left behind by Apple's compiler. We do this before executing the actions.
1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status $ac_retval
1822
1823 } # ac_fn_c_try_link
1824
1825 # ac_fn_c_check_func LINENO FUNC VAR
1826 # ----------------------------------
1827 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1828 ac_fn_c_check_func ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval \${$3+:} false; then :
1834 $as_echo_n "(cached) " >&6
1835 else
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1840 #define $2 innocuous_$2
1841
1842 /* System header to define __stub macros and hopefully few prototypes,
1843 which can conflict with char $2 (); below.
1844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1845 <limits.h> exists even on freestanding compilers. */
1846
1847 #ifdef __STDC__
1848 # include <limits.h>
1849 #else
1850 # include <assert.h>
1851 #endif
1852
1853 #undef $2
1854
1855 /* Override any GCC internal prototype to avoid an error.
1856 Use char because int might match the return type of a GCC
1857 builtin and then its argument prototype would still apply. */
1858 #ifdef __cplusplus
1859 extern "C"
1860 #endif
1861 char $2 ();
1862 /* The GNU C library defines this for functions which it implements
1863 to always fail with ENOSYS. Some functions are actually named
1864 something starting with __ and the normal name is an alias. */
1865 #if defined __stub_$2 || defined __stub___$2
1866 choke me
1867 #endif
1868
1869 int
1870 main ()
1871 {
1872 return $2 ();
1873 ;
1874 return 0;
1875 }
1876 _ACEOF
1877 if ac_fn_c_try_link "$LINENO"; then :
1878 eval "$3=yes"
1879 else
1880 eval "$3=no"
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext \
1883 conftest$ac_exeext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_func
1891
1892 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1893 # -------------------------------------------
1894 # Tests whether TYPE exists after having included INCLUDES, setting cache
1895 # variable VAR accordingly.
1896 ac_fn_c_check_type ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1903 else
1904 eval "$3=no"
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 $4
1908 int
1909 main ()
1910 {
1911 if (sizeof ($2))
1912 return 0;
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 $4
1921 int
1922 main ()
1923 {
1924 if (sizeof (($2)))
1925 return 0;
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931
1932 else
1933 eval "$3=yes"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 fi
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944 } # ac_fn_c_check_type
1945
1946 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1947 # --------------------------------------------
1948 # Tries to find the compile-time value of EXPR in a program that includes
1949 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1950 # computed
1951 ac_fn_c_compute_int ()
1952 {
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if test "$cross_compiling" = yes; then
1955 # Depending upon the size, compute the lo and hi bounds.
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1958 $4
1959 int
1960 main ()
1961 {
1962 static int test_array [1 - 2 * !(($2) >= 0)];
1963 test_array [0] = 0;
1964 return test_array [0];
1965
1966 ;
1967 return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 ac_lo=0 ac_mid=0
1972 while :; do
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 $4
1976 int
1977 main ()
1978 {
1979 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1980 test_array [0] = 0;
1981 return test_array [0];
1982
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 ac_hi=$ac_mid; break
1989 else
1990 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1991 if test $ac_lo -le $ac_mid; then
1992 ac_lo= ac_hi=
1993 break
1994 fi
1995 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 done
1999 else
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2002 $4
2003 int
2004 main ()
2005 {
2006 static int test_array [1 - 2 * !(($2) < 0)];
2007 test_array [0] = 0;
2008 return test_array [0];
2009
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_hi=-1 ac_mid=-1
2016 while :; do
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 $4
2020 int
2021 main ()
2022 {
2023 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2024 test_array [0] = 0;
2025 return test_array [0];
2026
2027 ;
2028 return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_lo=$ac_mid; break
2033 else
2034 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2035 if test $ac_mid -le $ac_hi; then
2036 ac_lo= ac_hi=
2037 break
2038 fi
2039 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 done
2043 else
2044 ac_lo= ac_hi=
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 # Binary search between lo and hi bounds.
2050 while test "x$ac_lo" != "x$ac_hi"; do
2051 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2054 $4
2055 int
2056 main ()
2057 {
2058 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2059 test_array [0] = 0;
2060 return test_array [0];
2061
2062 ;
2063 return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067 ac_hi=$ac_mid
2068 else
2069 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 done
2073 case $ac_lo in #((
2074 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2075 '') ac_retval=1 ;;
2076 esac
2077 else
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2080 $4
2081 static long int longval () { return $2; }
2082 static unsigned long int ulongval () { return $2; }
2083 #include <stdio.h>
2084 #include <stdlib.h>
2085 int
2086 main ()
2087 {
2088
2089 FILE *f = fopen ("conftest.val", "w");
2090 if (! f)
2091 return 1;
2092 if (($2) < 0)
2093 {
2094 long int i = longval ();
2095 if (i != ($2))
2096 return 1;
2097 fprintf (f, "%ld", i);
2098 }
2099 else
2100 {
2101 unsigned long int i = ulongval ();
2102 if (i != ($2))
2103 return 1;
2104 fprintf (f, "%lu", i);
2105 }
2106 /* Do not output a trailing newline, as this causes \r\n confusion
2107 on some platforms. */
2108 return ferror (f) || fclose (f) != 0;
2109
2110 ;
2111 return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_run "$LINENO"; then :
2115 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2116 else
2117 ac_retval=1
2118 fi
2119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2120 conftest.$ac_objext conftest.beam conftest.$ac_ext
2121 rm -f conftest.val
2122
2123 fi
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 as_fn_set_status $ac_retval
2126
2127 } # ac_fn_c_compute_int
2128
2129 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2130 # ---------------------------------------------
2131 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2132 # accordingly.
2133 ac_fn_c_check_decl ()
2134 {
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 as_decl_name=`echo $2|sed 's/ *(.*//'`
2137 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2139 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2140 if eval \${$3+:} false; then :
2141 $as_echo_n "(cached) " >&6
2142 else
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2145 $4
2146 int
2147 main ()
2148 {
2149 #ifndef $as_decl_name
2150 #ifdef __cplusplus
2151 (void) $as_decl_use;
2152 #else
2153 (void) $as_decl_name;
2154 #endif
2155 #endif
2156
2157 ;
2158 return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 eval "$3=yes"
2163 else
2164 eval "$3=no"
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 fi
2168 eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172
2173 } # ac_fn_c_check_decl
2174 cat >config.log <<_ACEOF
2175 This file contains any messages produced by compilers while
2176 running configure, to aid debugging if configure makes a mistake.
2177
2178 It was created by package-unused $as_me version-unused, which was
2179 generated by GNU Autoconf 2.69. Invocation command line was
2180
2181 $ $0 $@
2182
2183 _ACEOF
2184 exec 5>>config.log
2185 {
2186 cat <<_ASUNAME
2187 ## --------- ##
2188 ## Platform. ##
2189 ## --------- ##
2190
2191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2196
2197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2198 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2199
2200 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2201 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2203 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2204 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2205 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2206 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2207
2208 _ASUNAME
2209
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2212 do
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 $as_echo "PATH: $as_dir"
2216 done
2217 IFS=$as_save_IFS
2218
2219 } >&5
2220
2221 cat >&5 <<_ACEOF
2222
2223
2224 ## ----------- ##
2225 ## Core tests. ##
2226 ## ----------- ##
2227
2228 _ACEOF
2229
2230
2231 # Keep a trace of the command line.
2232 # Strip out --no-create and --no-recursion so they do not pile up.
2233 # Strip out --silent because we don't want to record it for future runs.
2234 # Also quote any args containing shell meta-characters.
2235 # Make two passes to allow for proper duplicate-argument suppression.
2236 ac_configure_args=
2237 ac_configure_args0=
2238 ac_configure_args1=
2239 ac_must_keep_next=false
2240 for ac_pass in 1 2
2241 do
2242 for ac_arg
2243 do
2244 case $ac_arg in
2245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2247 | -silent | --silent | --silen | --sile | --sil)
2248 continue ;;
2249 *\'*)
2250 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2251 esac
2252 case $ac_pass in
2253 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2254 2)
2255 as_fn_append ac_configure_args1 " '$ac_arg'"
2256 if test $ac_must_keep_next = true; then
2257 ac_must_keep_next=false # Got value, back to normal.
2258 else
2259 case $ac_arg in
2260 *=* | --config-cache | -C | -disable-* | --disable-* \
2261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2263 | -with-* | --with-* | -without-* | --without-* | --x)
2264 case "$ac_configure_args0 " in
2265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2266 esac
2267 ;;
2268 -* ) ac_must_keep_next=true ;;
2269 esac
2270 fi
2271 as_fn_append ac_configure_args " '$ac_arg'"
2272 ;;
2273 esac
2274 done
2275 done
2276 { ac_configure_args0=; unset ac_configure_args0;}
2277 { ac_configure_args1=; unset ac_configure_args1;}
2278
2279 # When interrupted or exit'd, cleanup temporary files, and complete
2280 # config.log. We remove comments because anyway the quotes in there
2281 # would cause problems or look ugly.
2282 # WARNING: Use '\'' to represent an apostrophe within the trap.
2283 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2284 trap 'exit_status=$?
2285 # Save into config.log some information that might help in debugging.
2286 {
2287 echo
2288
2289 $as_echo "## ---------------- ##
2290 ## Cache variables. ##
2291 ## ---------------- ##"
2292 echo
2293 # The following way of writing the cache mishandles newlines in values,
2294 (
2295 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2296 eval ac_val=\$$ac_var
2297 case $ac_val in #(
2298 *${as_nl}*)
2299 case $ac_var in #(
2300 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2301 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2302 esac
2303 case $ac_var in #(
2304 _ | IFS | as_nl) ;; #(
2305 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2306 *) { eval $ac_var=; unset $ac_var;} ;;
2307 esac ;;
2308 esac
2309 done
2310 (set) 2>&1 |
2311 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2312 *${as_nl}ac_space=\ *)
2313 sed -n \
2314 "s/'\''/'\''\\\\'\'''\''/g;
2315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2316 ;; #(
2317 *)
2318 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2319 ;;
2320 esac |
2321 sort
2322 )
2323 echo
2324
2325 $as_echo "## ----------------- ##
2326 ## Output variables. ##
2327 ## ----------------- ##"
2328 echo
2329 for ac_var in $ac_subst_vars
2330 do
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 $as_echo "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2338
2339 if test -n "$ac_subst_files"; then
2340 $as_echo "## ------------------- ##
2341 ## File substitutions. ##
2342 ## ------------------- ##"
2343 echo
2344 for ac_var in $ac_subst_files
2345 do
2346 eval ac_val=\$$ac_var
2347 case $ac_val in
2348 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349 esac
2350 $as_echo "$ac_var='\''$ac_val'\''"
2351 done | sort
2352 echo
2353 fi
2354
2355 if test -s confdefs.h; then
2356 $as_echo "## ----------- ##
2357 ## confdefs.h. ##
2358 ## ----------- ##"
2359 echo
2360 cat confdefs.h
2361 echo
2362 fi
2363 test "$ac_signal" != 0 &&
2364 $as_echo "$as_me: caught signal $ac_signal"
2365 $as_echo "$as_me: exit $exit_status"
2366 } >&5
2367 rm -f core *.core core.conftest.* &&
2368 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2369 exit $exit_status
2370 ' 0
2371 for ac_signal in 1 2 13 15; do
2372 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2373 done
2374 ac_signal=0
2375
2376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2377 rm -f -r conftest* confdefs.h
2378
2379 $as_echo "/* confdefs.h */" > confdefs.h
2380
2381 # Predefined preprocessor variables.
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_NAME "$PACKAGE_NAME"
2385 _ACEOF
2386
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2389 _ACEOF
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2393 _ACEOF
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_STRING "$PACKAGE_STRING"
2397 _ACEOF
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2401 _ACEOF
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_URL "$PACKAGE_URL"
2405 _ACEOF
2406
2407
2408 # Let the site file select an alternate cache file if it wants to.
2409 # Prefer an explicitly selected file to automatically selected ones.
2410 ac_site_file1=NONE
2411 ac_site_file2=NONE
2412 if test -n "$CONFIG_SITE"; then
2413 # We do not want a PATH search for config.site.
2414 case $CONFIG_SITE in #((
2415 -*) ac_site_file1=./$CONFIG_SITE;;
2416 */*) ac_site_file1=$CONFIG_SITE;;
2417 *) ac_site_file1=./$CONFIG_SITE;;
2418 esac
2419 elif test "x$prefix" != xNONE; then
2420 ac_site_file1=$prefix/share/config.site
2421 ac_site_file2=$prefix/etc/config.site
2422 else
2423 ac_site_file1=$ac_default_prefix/share/config.site
2424 ac_site_file2=$ac_default_prefix/etc/config.site
2425 fi
2426 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2427 do
2428 test "x$ac_site_file" = xNONE && continue
2429 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2431 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2432 sed 's/^/| /' "$ac_site_file" >&5
2433 . "$ac_site_file" \
2434 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436 as_fn_error $? "failed to load site script $ac_site_file
2437 See \`config.log' for more details" "$LINENO" 5; }
2438 fi
2439 done
2440
2441 if test -r "$cache_file"; then
2442 # Some versions of bash will fail to source /dev/null (special files
2443 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2444 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2446 $as_echo "$as_me: loading cache $cache_file" >&6;}
2447 case $cache_file in
2448 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2449 *) . "./$cache_file";;
2450 esac
2451 fi
2452 else
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2454 $as_echo "$as_me: creating cache $cache_file" >&6;}
2455 >$cache_file
2456 fi
2457
2458 # Check that the precious variables saved in the cache have kept the same
2459 # value.
2460 ac_cache_corrupted=false
2461 for ac_var in $ac_precious_vars; do
2462 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2463 eval ac_new_set=\$ac_env_${ac_var}_set
2464 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2465 eval ac_new_val=\$ac_env_${ac_var}_value
2466 case $ac_old_set,$ac_new_set in
2467 set,)
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2469 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2470 ac_cache_corrupted=: ;;
2471 ,set)
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2473 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2474 ac_cache_corrupted=: ;;
2475 ,);;
2476 *)
2477 if test "x$ac_old_val" != "x$ac_new_val"; then
2478 # differences in whitespace do not lead to failure.
2479 ac_old_val_w=`echo x $ac_old_val`
2480 ac_new_val_w=`echo x $ac_new_val`
2481 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2483 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2484 ac_cache_corrupted=:
2485 else
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2487 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2488 eval $ac_var=\$ac_old_val
2489 fi
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2491 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2493 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2494 fi;;
2495 esac
2496 # Pass precious variables to config.status.
2497 if test "$ac_new_set" = set; then
2498 case $ac_new_val in
2499 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2500 *) ac_arg=$ac_var=$ac_new_val ;;
2501 esac
2502 case " $ac_configure_args " in
2503 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2504 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2505 esac
2506 fi
2507 done
2508 if $ac_cache_corrupted; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2512 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2513 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2514 fi
2515 ## -------------------- ##
2516 ## Main body of script. ##
2517 ## -------------------- ##
2518
2519 ac_ext=c
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524
2525
2526
2527
2528
2529
2530 ac_config_headers="$ac_config_headers config.h"
2531
2532
2533 if test -n "${with_target_subdir}"; then
2534 # Default to --enable-multilib
2535 # Check whether --enable-multilib was given.
2536 if test "${enable_multilib+set}" = set; then :
2537 enableval=$enable_multilib; case "$enableval" in
2538 yes) multilib=yes ;;
2539 no) multilib=no ;;
2540 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2541 esac
2542 else
2543 multilib=yes
2544 fi
2545
2546
2547 # We may get other options which we leave undocumented:
2548 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2549 # See config-ml.in if you want the gory details.
2550
2551 if test "$srcdir" = "."; then
2552 if test "$with_target_subdir" != "."; then
2553 multi_basedir="$srcdir/$with_multisrctop../.."
2554 else
2555 multi_basedir="$srcdir/$with_multisrctop.."
2556 fi
2557 else
2558 multi_basedir="$srcdir/.."
2559 fi
2560
2561
2562 # Even if the default multilib is not a cross compilation,
2563 # it may be that some of the other multilibs are.
2564 if test $cross_compiling = no && test $multilib = yes \
2565 && test "x${with_multisubdir}" != x ; then
2566 cross_compiling=maybe
2567 fi
2568
2569 ac_config_commands="$ac_config_commands default-1"
2570
2571 fi
2572
2573 ac_aux_dir=
2574 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2575 if test -f "$ac_dir/install-sh"; then
2576 ac_aux_dir=$ac_dir
2577 ac_install_sh="$ac_aux_dir/install-sh -c"
2578 break
2579 elif test -f "$ac_dir/install.sh"; then
2580 ac_aux_dir=$ac_dir
2581 ac_install_sh="$ac_aux_dir/install.sh -c"
2582 break
2583 elif test -f "$ac_dir/shtool"; then
2584 ac_aux_dir=$ac_dir
2585 ac_install_sh="$ac_aux_dir/shtool install -c"
2586 break
2587 fi
2588 done
2589 if test -z "$ac_aux_dir"; then
2590 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2591 fi
2592
2593 # These three variables are undocumented and unsupported,
2594 # and are intended to be withdrawn in a future Autoconf release.
2595 # They can cause serious problems if a builder's source tree is in a directory
2596 # whose full name contains unusual characters.
2597 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2598 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2599 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2600
2601
2602 # Make sure we can run config.sub.
2603 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2604 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2605
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2607 $as_echo_n "checking build system type... " >&6; }
2608 if ${ac_cv_build+:} false; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 ac_build_alias=$build_alias
2612 test "x$ac_build_alias" = x &&
2613 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2614 test "x$ac_build_alias" = x &&
2615 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2616 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2617 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2618
2619 fi
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2621 $as_echo "$ac_cv_build" >&6; }
2622 case $ac_cv_build in
2623 *-*-*) ;;
2624 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2625 esac
2626 build=$ac_cv_build
2627 ac_save_IFS=$IFS; IFS='-'
2628 set x $ac_cv_build
2629 shift
2630 build_cpu=$1
2631 build_vendor=$2
2632 shift; shift
2633 # Remember, the first character of IFS is used to create $*,
2634 # except with old shells:
2635 build_os=$*
2636 IFS=$ac_save_IFS
2637 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2638
2639
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2641 $as_echo_n "checking host system type... " >&6; }
2642 if ${ac_cv_host+:} false; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 if test "x$host_alias" = x; then
2646 ac_cv_host=$ac_cv_build
2647 else
2648 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2649 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2650 fi
2651
2652 fi
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2654 $as_echo "$ac_cv_host" >&6; }
2655 case $ac_cv_host in
2656 *-*-*) ;;
2657 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2658 esac
2659 host=$ac_cv_host
2660 ac_save_IFS=$IFS; IFS='-'
2661 set x $ac_cv_host
2662 shift
2663 host_cpu=$1
2664 host_vendor=$2
2665 shift; shift
2666 # Remember, the first character of IFS is used to create $*,
2667 # except with old shells:
2668 host_os=$*
2669 IFS=$ac_save_IFS
2670 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2671
2672
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2674 $as_echo_n "checking target system type... " >&6; }
2675 if ${ac_cv_target+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test "x$target_alias" = x; then
2679 ac_cv_target=$ac_cv_host
2680 else
2681 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2682 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2683 fi
2684
2685 fi
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2687 $as_echo "$ac_cv_target" >&6; }
2688 case $ac_cv_target in
2689 *-*-*) ;;
2690 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2691 esac
2692 target=$ac_cv_target
2693 ac_save_IFS=$IFS; IFS='-'
2694 set x $ac_cv_target
2695 shift
2696 target_cpu=$1
2697 target_vendor=$2
2698 shift; shift
2699 # Remember, the first character of IFS is used to create $*,
2700 # except with old shells:
2701 target_os=$*
2702 IFS=$ac_save_IFS
2703 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2704
2705
2706 # The aliases save the names the user supplied, while $host etc.
2707 # will get canonicalized.
2708 test -n "$target_alias" &&
2709 test "$program_prefix$program_suffix$program_transform_name" = \
2710 NONENONEs,x,x, &&
2711 program_prefix=${target_alias}-
2712
2713 target_alias=${target_alias-$host_alias}
2714
2715 # Expand $ac_aux_dir to an absolute path.
2716 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2717
2718 ac_ext=c
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if ${ac_cv_prog_CC+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2736 do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2744 fi
2745 done
2746 done
2747 IFS=$as_save_IFS
2748
2749 fi
2750 fi
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2754 $as_echo "$CC" >&6; }
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2758 fi
2759
2760
2761 fi
2762 if test -z "$ac_cv_prog_CC"; then
2763 ac_ct_CC=$CC
2764 # Extract the first word of "gcc", so it can be a program name with args.
2765 set dummy gcc; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test -n "$ac_ct_CC"; then
2772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_ac_ct_CC="gcc"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785 done
2786 done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2792 if test -n "$ac_ct_CC"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2794 $as_echo "$ac_ct_CC" >&6; }
2795 else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 fi
2799
2800 if test "x$ac_ct_CC" = x; then
2801 CC=""
2802 else
2803 case $cross_compiling:$ac_tool_warned in
2804 yes:)
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2807 ac_tool_warned=yes ;;
2808 esac
2809 CC=$ac_ct_CC
2810 fi
2811 else
2812 CC="$ac_cv_prog_CC"
2813 fi
2814
2815 if test -z "$CC"; then
2816 if test -n "$ac_tool_prefix"; then
2817 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2818 set dummy ${ac_tool_prefix}cc; ac_word=$2
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if ${ac_cv_prog_CC+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 if test -n "$CC"; then
2825 ac_cv_prog_CC="$CC" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2829 do
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834 ac_cv_prog_CC="${ac_tool_prefix}cc"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2837 fi
2838 done
2839 done
2840 IFS=$as_save_IFS
2841
2842 fi
2843 fi
2844 CC=$ac_cv_prog_CC
2845 if test -n "$CC"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2847 $as_echo "$CC" >&6; }
2848 else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2851 fi
2852
2853
2854 fi
2855 fi
2856 if test -z "$CC"; then
2857 # Extract the first word of "cc", so it can be a program name with args.
2858 set dummy cc; ac_word=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if ${ac_cv_prog_CC+:} false; then :
2862 $as_echo_n "(cached) " >&6
2863 else
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
2866 else
2867 ac_prog_rejected=no
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2876 ac_prog_rejected=yes
2877 continue
2878 fi
2879 ac_cv_prog_CC="cc"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2882 fi
2883 done
2884 done
2885 IFS=$as_save_IFS
2886
2887 if test $ac_prog_rejected = yes; then
2888 # We found a bogon in the path, so make sure we never use it.
2889 set dummy $ac_cv_prog_CC
2890 shift
2891 if test $# != 0; then
2892 # We chose a different compiler from the bogus one.
2893 # However, it has the same basename, so the bogon will be chosen
2894 # first if we set CC to just the basename; use the full file name.
2895 shift
2896 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2897 fi
2898 fi
2899 fi
2900 fi
2901 CC=$ac_cv_prog_CC
2902 if test -n "$CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904 $as_echo "$CC" >&6; }
2905 else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2908 fi
2909
2910
2911 fi
2912 if test -z "$CC"; then
2913 if test -n "$ac_tool_prefix"; then
2914 for ac_prog in cl.exe
2915 do
2916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 $as_echo_n "checking for $ac_word... " >&6; }
2920 if ${ac_cv_prog_CC+:} false; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC="$CC" # Let the user override the test.
2925 else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937 done
2938 done
2939 IFS=$as_save_IFS
2940
2941 fi
2942 fi
2943 CC=$ac_cv_prog_CC
2944 if test -n "$CC"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946 $as_echo "$CC" >&6; }
2947 else
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2950 fi
2951
2952
2953 test -n "$CC" && break
2954 done
2955 fi
2956 if test -z "$CC"; then
2957 ac_ct_CC=$CC
2958 for ac_prog in cl.exe
2959 do
2960 # Extract the first word of "$ac_prog", so it can be a program name with args.
2961 set dummy $ac_prog; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 if test -n "$ac_ct_CC"; then
2968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977 ac_cv_prog_ac_ct_CC="$ac_prog"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981 done
2982 done
2983 IFS=$as_save_IFS
2984
2985 fi
2986 fi
2987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2988 if test -n "$ac_ct_CC"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2990 $as_echo "$ac_ct_CC" >&6; }
2991 else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996
2997 test -n "$ac_ct_CC" && break
2998 done
2999
3000 if test "x$ac_ct_CC" = x; then
3001 CC=""
3002 else
3003 case $cross_compiling:$ac_tool_warned in
3004 yes:)
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3007 ac_tool_warned=yes ;;
3008 esac
3009 CC=$ac_ct_CC
3010 fi
3011 fi
3012
3013 fi
3014
3015
3016 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3018 as_fn_error $? "no acceptable C compiler found in \$PATH
3019 See \`config.log' for more details" "$LINENO" 5; }
3020
3021 # Provide some information about the compiler.
3022 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3023 set X $ac_compile
3024 ac_compiler=$2
3025 for ac_option in --version -v -V -qversion; do
3026 { { ac_try="$ac_compiler $ac_option >&5"
3027 case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030 esac
3031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032 $as_echo "$ac_try_echo"; } >&5
3033 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3034 ac_status=$?
3035 if test -s conftest.err; then
3036 sed '10a\
3037 ... rest of stderr output deleted ...
3038 10q' conftest.err >conftest.er1
3039 cat conftest.er1 >&5
3040 fi
3041 rm -f conftest.er1 conftest.err
3042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3043 test $ac_status = 0; }
3044 done
3045
3046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047 /* end confdefs.h. */
3048
3049 int
3050 main ()
3051 {
3052
3053 ;
3054 return 0;
3055 }
3056 _ACEOF
3057 ac_clean_files_save=$ac_clean_files
3058 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3059 # Try to create an executable without -o first, disregard a.out.
3060 # It will help us diagnose broken compilers, and finding out an intuition
3061 # of exeext.
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3063 $as_echo_n "checking whether the C compiler works... " >&6; }
3064 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3065
3066 # The possible output files:
3067 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3068
3069 ac_rmfiles=
3070 for ac_file in $ac_files
3071 do
3072 case $ac_file in
3073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3074 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3075 esac
3076 done
3077 rm -f $ac_rmfiles
3078
3079 if { { ac_try="$ac_link_default"
3080 case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083 esac
3084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085 $as_echo "$ac_try_echo"; } >&5
3086 (eval "$ac_link_default") 2>&5
3087 ac_status=$?
3088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3089 test $ac_status = 0; }; then :
3090 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3091 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3092 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3093 # so that the user can short-circuit this test for compilers unknown to
3094 # Autoconf.
3095 for ac_file in $ac_files ''
3096 do
3097 test -f "$ac_file" || continue
3098 case $ac_file in
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3100 ;;
3101 [ab].out )
3102 # We found the default executable, but exeext='' is most
3103 # certainly right.
3104 break;;
3105 *.* )
3106 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3107 then :; else
3108 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3109 fi
3110 # We set ac_cv_exeext here because the later test for it is not
3111 # safe: cross compilers may not add the suffix if given an `-o'
3112 # argument, so we may need to know it at that point already.
3113 # Even if this section looks crufty: it has the advantage of
3114 # actually working.
3115 break;;
3116 * )
3117 break;;
3118 esac
3119 done
3120 test "$ac_cv_exeext" = no && ac_cv_exeext=
3121
3122 else
3123 ac_file=''
3124 fi
3125 if test -z "$ac_file"; then :
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 $as_echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3130
3131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error 77 "C compiler cannot create executables
3134 See \`config.log' for more details" "$LINENO" 5; }
3135 else
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3137 $as_echo "yes" >&6; }
3138 fi
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3140 $as_echo_n "checking for C compiler default output file name... " >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3142 $as_echo "$ac_file" >&6; }
3143 ac_exeext=$ac_cv_exeext
3144
3145 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3146 ac_clean_files=$ac_clean_files_save
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3148 $as_echo_n "checking for suffix of executables... " >&6; }
3149 if { { ac_try="$ac_link"
3150 case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155 $as_echo "$ac_try_echo"; } >&5
3156 (eval "$ac_link") 2>&5
3157 ac_status=$?
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159 test $ac_status = 0; }; then :
3160 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3161 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3162 # work properly (i.e., refer to `conftest.exe'), while it won't with
3163 # `rm'.
3164 for ac_file in conftest.exe conftest conftest.*; do
3165 test -f "$ac_file" || continue
3166 case $ac_file in
3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3168 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169 break;;
3170 * ) break;;
3171 esac
3172 done
3173 else
3174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3177 See \`config.log' for more details" "$LINENO" 5; }
3178 fi
3179 rm -f conftest conftest$ac_cv_exeext
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3181 $as_echo "$ac_cv_exeext" >&6; }
3182
3183 rm -f conftest.$ac_ext
3184 EXEEXT=$ac_cv_exeext
3185 ac_exeext=$EXEEXT
3186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187 /* end confdefs.h. */
3188 #include <stdio.h>
3189 int
3190 main ()
3191 {
3192 FILE *f = fopen ("conftest.out", "w");
3193 return ferror (f) || fclose (f) != 0;
3194
3195 ;
3196 return 0;
3197 }
3198 _ACEOF
3199 ac_clean_files="$ac_clean_files conftest.out"
3200 # Check that the compiler produces executables we can run. If not, either
3201 # the compiler is broken, or we cross compile.
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3203 $as_echo_n "checking whether we are cross compiling... " >&6; }
3204 if test "$cross_compiling" != yes; then
3205 { { ac_try="$ac_link"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212 (eval "$ac_link") 2>&5
3213 ac_status=$?
3214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215 test $ac_status = 0; }
3216 if { ac_try='./conftest$ac_cv_exeext'
3217 { { case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220 esac
3221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222 $as_echo "$ac_try_echo"; } >&5
3223 (eval "$ac_try") 2>&5
3224 ac_status=$?
3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226 test $ac_status = 0; }; }; then
3227 cross_compiling=no
3228 else
3229 if test "$cross_compiling" = maybe; then
3230 cross_compiling=yes
3231 else
3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 as_fn_error $? "cannot run C compiled programs.
3235 If you meant to cross compile, use \`--host'.
3236 See \`config.log' for more details" "$LINENO" 5; }
3237 fi
3238 fi
3239 fi
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3241 $as_echo "$cross_compiling" >&6; }
3242
3243 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3244 ac_clean_files=$ac_clean_files_save
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3246 $as_echo_n "checking for suffix of object files... " >&6; }
3247 if ${ac_cv_objext+:} false; then :
3248 $as_echo_n "(cached) " >&6
3249 else
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3252
3253 int
3254 main ()
3255 {
3256
3257 ;
3258 return 0;
3259 }
3260 _ACEOF
3261 rm -f conftest.o conftest.obj
3262 if { { ac_try="$ac_compile"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_compile") 2>&5
3270 ac_status=$?
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }; then :
3273 for ac_file in conftest.o conftest.obj conftest.*; do
3274 test -f "$ac_file" || continue;
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3278 break;;
3279 esac
3280 done
3281 else
3282 $as_echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3284
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 as_fn_error $? "cannot compute suffix of object files: cannot compile
3288 See \`config.log' for more details" "$LINENO" 5; }
3289 fi
3290 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3291 fi
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3293 $as_echo "$ac_cv_objext" >&6; }
3294 OBJEXT=$ac_cv_objext
3295 ac_objext=$OBJEXT
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3297 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3298 if ${ac_cv_c_compiler_gnu+:} false; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3303
3304 int
3305 main ()
3306 {
3307 #ifndef __GNUC__
3308 choke me
3309 #endif
3310
3311 ;
3312 return 0;
3313 }
3314 _ACEOF
3315 if ac_fn_c_try_compile "$LINENO"; then :
3316 ac_compiler_gnu=yes
3317 else
3318 ac_compiler_gnu=no
3319 fi
3320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3321 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3322
3323 fi
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3325 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3326 if test $ac_compiler_gnu = yes; then
3327 GCC=yes
3328 else
3329 GCC=
3330 fi
3331 ac_test_CFLAGS=${CFLAGS+set}
3332 ac_save_CFLAGS=$CFLAGS
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3334 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3335 if ${ac_cv_prog_cc_g+:} false; then :
3336 $as_echo_n "(cached) " >&6
3337 else
3338 ac_save_c_werror_flag=$ac_c_werror_flag
3339 ac_c_werror_flag=yes
3340 ac_cv_prog_cc_g=no
3341 CFLAGS="-g"
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3344
3345 int
3346 main ()
3347 {
3348
3349 ;
3350 return 0;
3351 }
3352 _ACEOF
3353 if ac_fn_c_try_compile "$LINENO"; then :
3354 ac_cv_prog_cc_g=yes
3355 else
3356 CFLAGS=""
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3359
3360 int
3361 main ()
3362 {
3363
3364 ;
3365 return 0;
3366 }
3367 _ACEOF
3368 if ac_fn_c_try_compile "$LINENO"; then :
3369
3370 else
3371 ac_c_werror_flag=$ac_save_c_werror_flag
3372 CFLAGS="-g"
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375
3376 int
3377 main ()
3378 {
3379
3380 ;
3381 return 0;
3382 }
3383 _ACEOF
3384 if ac_fn_c_try_compile "$LINENO"; then :
3385 ac_cv_prog_cc_g=yes
3386 fi
3387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388 fi
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 fi
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 ac_c_werror_flag=$ac_save_c_werror_flag
3393 fi
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3395 $as_echo "$ac_cv_prog_cc_g" >&6; }
3396 if test "$ac_test_CFLAGS" = set; then
3397 CFLAGS=$ac_save_CFLAGS
3398 elif test $ac_cv_prog_cc_g = yes; then
3399 if test "$GCC" = yes; then
3400 CFLAGS="-g -O2"
3401 else
3402 CFLAGS="-g"
3403 fi
3404 else
3405 if test "$GCC" = yes; then
3406 CFLAGS="-O2"
3407 else
3408 CFLAGS=
3409 fi
3410 fi
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3412 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3413 if ${ac_cv_prog_cc_c89+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 ac_cv_prog_cc_c89=no
3417 ac_save_CC=$CC
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3420 #include <stdarg.h>
3421 #include <stdio.h>
3422 struct stat;
3423 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3424 struct buf { int x; };
3425 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3426 static char *e (p, i)
3427 char **p;
3428 int i;
3429 {
3430 return p[i];
3431 }
3432 static char *f (char * (*g) (char **, int), char **p, ...)
3433 {
3434 char *s;
3435 va_list v;
3436 va_start (v,p);
3437 s = g (p, va_arg (v,int));
3438 va_end (v);
3439 return s;
3440 }
3441
3442 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3443 function prototypes and stuff, but not '\xHH' hex character constants.
3444 These don't provoke an error unfortunately, instead are silently treated
3445 as 'x'. The following induces an error, until -std is added to get
3446 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3447 array size at least. It's necessary to write '\x00'==0 to get something
3448 that's true only with -std. */
3449 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3450
3451 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3452 inside strings and character constants. */
3453 #define FOO(x) 'x'
3454 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3455
3456 int test (int i, double x);
3457 struct s1 {int (*f) (int a);};
3458 struct s2 {int (*f) (double a);};
3459 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3460 int argc;
3461 char **argv;
3462 int
3463 main ()
3464 {
3465 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3466 ;
3467 return 0;
3468 }
3469 _ACEOF
3470 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3471 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3472 do
3473 CC="$ac_save_CC $ac_arg"
3474 if ac_fn_c_try_compile "$LINENO"; then :
3475 ac_cv_prog_cc_c89=$ac_arg
3476 fi
3477 rm -f core conftest.err conftest.$ac_objext
3478 test "x$ac_cv_prog_cc_c89" != "xno" && break
3479 done
3480 rm -f conftest.$ac_ext
3481 CC=$ac_save_CC
3482
3483 fi
3484 # AC_CACHE_VAL
3485 case "x$ac_cv_prog_cc_c89" in
3486 x)
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3488 $as_echo "none needed" >&6; } ;;
3489 xno)
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3491 $as_echo "unsupported" >&6; } ;;
3492 *)
3493 CC="$CC $ac_cv_prog_cc_c89"
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3495 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3496 esac
3497 if test "x$ac_cv_prog_cc_c89" != xno; then :
3498
3499 fi
3500
3501 ac_ext=c
3502 ac_cpp='$CPP $CPPFLAGS'
3503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506
3507 ac_ext=c
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3513 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3514 if ${am_cv_prog_cc_c_o+:} false; then :
3515 $as_echo_n "(cached) " >&6
3516 else
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3519
3520 int
3521 main ()
3522 {
3523
3524 ;
3525 return 0;
3526 }
3527 _ACEOF
3528 # Make sure it works both with $CC and with simple cc.
3529 # Following AC_PROG_CC_C_O, we do the test twice because some
3530 # compilers refuse to overwrite an existing .o file with -o,
3531 # though they will create one.
3532 am_cv_prog_cc_c_o=yes
3533 for am_i in 1 2; do
3534 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3535 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } \
3539 && test -f conftest2.$ac_objext; then
3540 : OK
3541 else
3542 am_cv_prog_cc_c_o=no
3543 break
3544 fi
3545 done
3546 rm -f core conftest*
3547 unset am_i
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3550 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3551 if test "$am_cv_prog_cc_c_o" != yes; then
3552 # Losing compiler, so override with the script.
3553 # FIXME: It is wrong to rewrite CC.
3554 # But if we don't then we get into trouble of one sort or another.
3555 # A longer-term fix would be to have automake use am__CC in this case,
3556 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3557 CC="$am_aux_dir/compile $CC"
3558 fi
3559 ac_ext=c
3560 ac_cpp='$CPP $CPPFLAGS'
3561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564
3565
3566
3567 ac_ext=c
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3573 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3574 # On Suns, sometimes $CPP names a directory.
3575 if test -n "$CPP" && test -d "$CPP"; then
3576 CPP=
3577 fi
3578 if test -z "$CPP"; then
3579 if ${ac_cv_prog_CPP+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 # Double quotes because CPP needs to be expanded
3583 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3584 do
3585 ac_preproc_ok=false
3586 for ac_c_preproc_warn_flag in '' yes
3587 do
3588 # Use a header file that comes with gcc, so configuring glibc
3589 # with a fresh cross-compiler works.
3590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3591 # <limits.h> exists even on freestanding compilers.
3592 # On the NeXT, cc -E runs the code through the compiler's parser,
3593 # not just through cpp. "Syntax error" is here to catch this case.
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3596 #ifdef __STDC__
3597 # include <limits.h>
3598 #else
3599 # include <assert.h>
3600 #endif
3601 Syntax error
3602 _ACEOF
3603 if ac_fn_c_try_cpp "$LINENO"; then :
3604
3605 else
3606 # Broken: fails on valid input.
3607 continue
3608 fi
3609 rm -f conftest.err conftest.i conftest.$ac_ext
3610
3611 # OK, works on sane cases. Now check whether nonexistent headers
3612 # can be detected and how.
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3615 #include <ac_nonexistent.h>
3616 _ACEOF
3617 if ac_fn_c_try_cpp "$LINENO"; then :
3618 # Broken: success on invalid input.
3619 continue
3620 else
3621 # Passes both tests.
3622 ac_preproc_ok=:
3623 break
3624 fi
3625 rm -f conftest.err conftest.i conftest.$ac_ext
3626
3627 done
3628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629 rm -f conftest.i conftest.err conftest.$ac_ext
3630 if $ac_preproc_ok; then :
3631 break
3632 fi
3633
3634 done
3635 ac_cv_prog_CPP=$CPP
3636
3637 fi
3638 CPP=$ac_cv_prog_CPP
3639 else
3640 ac_cv_prog_CPP=$CPP
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3643 $as_echo "$CPP" >&6; }
3644 ac_preproc_ok=false
3645 for ac_c_preproc_warn_flag in '' yes
3646 do
3647 # Use a header file that comes with gcc, so configuring glibc
3648 # with a fresh cross-compiler works.
3649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3650 # <limits.h> exists even on freestanding compilers.
3651 # On the NeXT, cc -E runs the code through the compiler's parser,
3652 # not just through cpp. "Syntax error" is here to catch this case.
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3655 #ifdef __STDC__
3656 # include <limits.h>
3657 #else
3658 # include <assert.h>
3659 #endif
3660 Syntax error
3661 _ACEOF
3662 if ac_fn_c_try_cpp "$LINENO"; then :
3663
3664 else
3665 # Broken: fails on valid input.
3666 continue
3667 fi
3668 rm -f conftest.err conftest.i conftest.$ac_ext
3669
3670 # OK, works on sane cases. Now check whether nonexistent headers
3671 # can be detected and how.
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3674 #include <ac_nonexistent.h>
3675 _ACEOF
3676 if ac_fn_c_try_cpp "$LINENO"; then :
3677 # Broken: success on invalid input.
3678 continue
3679 else
3680 # Passes both tests.
3681 ac_preproc_ok=:
3682 break
3683 fi
3684 rm -f conftest.err conftest.i conftest.$ac_ext
3685
3686 done
3687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3688 rm -f conftest.i conftest.err conftest.$ac_ext
3689 if $ac_preproc_ok; then :
3690
3691 else
3692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3695 See \`config.log' for more details" "$LINENO" 5; }
3696 fi
3697
3698 ac_ext=c
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703
3704
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3706 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3707 if ${ac_cv_path_GREP+:} false; then :
3708 $as_echo_n "(cached) " >&6
3709 else
3710 if test -z "$GREP"; then
3711 ac_path_GREP_found=false
3712 # Loop through the user's path and test for each of PROGNAME-LIST
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3715 do
3716 IFS=$as_save_IFS
3717 test -z "$as_dir" && as_dir=.
3718 for ac_prog in grep ggrep; do
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3721 as_fn_executable_p "$ac_path_GREP" || continue
3722 # Check for GNU ac_path_GREP and select it if it is found.
3723 # Check for GNU $ac_path_GREP
3724 case `"$ac_path_GREP" --version 2>&1` in
3725 *GNU*)
3726 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3727 *)
3728 ac_count=0
3729 $as_echo_n 0123456789 >"conftest.in"
3730 while :
3731 do
3732 cat "conftest.in" "conftest.in" >"conftest.tmp"
3733 mv "conftest.tmp" "conftest.in"
3734 cp "conftest.in" "conftest.nl"
3735 $as_echo 'GREP' >> "conftest.nl"
3736 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3737 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3738 as_fn_arith $ac_count + 1 && ac_count=$as_val
3739 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3740 # Best one so far, save it but keep looking for a better one
3741 ac_cv_path_GREP="$ac_path_GREP"
3742 ac_path_GREP_max=$ac_count
3743 fi
3744 # 10*(2^10) chars as input seems more than enough
3745 test $ac_count -gt 10 && break
3746 done
3747 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3748 esac
3749
3750 $ac_path_GREP_found && break 3
3751 done
3752 done
3753 done
3754 IFS=$as_save_IFS
3755 if test -z "$ac_cv_path_GREP"; then
3756 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3757 fi
3758 else
3759 ac_cv_path_GREP=$GREP
3760 fi
3761
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3764 $as_echo "$ac_cv_path_GREP" >&6; }
3765 GREP="$ac_cv_path_GREP"
3766
3767
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3769 $as_echo_n "checking for egrep... " >&6; }
3770 if ${ac_cv_path_EGREP+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3774 then ac_cv_path_EGREP="$GREP -E"
3775 else
3776 if test -z "$EGREP"; then
3777 ac_path_EGREP_found=false
3778 # Loop through the user's path and test for each of PROGNAME-LIST
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3781 do
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_prog in egrep; do
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3787 as_fn_executable_p "$ac_path_EGREP" || continue
3788 # Check for GNU ac_path_EGREP and select it if it is found.
3789 # Check for GNU $ac_path_EGREP
3790 case `"$ac_path_EGREP" --version 2>&1` in
3791 *GNU*)
3792 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3793 *)
3794 ac_count=0
3795 $as_echo_n 0123456789 >"conftest.in"
3796 while :
3797 do
3798 cat "conftest.in" "conftest.in" >"conftest.tmp"
3799 mv "conftest.tmp" "conftest.in"
3800 cp "conftest.in" "conftest.nl"
3801 $as_echo 'EGREP' >> "conftest.nl"
3802 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3804 as_fn_arith $ac_count + 1 && ac_count=$as_val
3805 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3806 # Best one so far, save it but keep looking for a better one
3807 ac_cv_path_EGREP="$ac_path_EGREP"
3808 ac_path_EGREP_max=$ac_count
3809 fi
3810 # 10*(2^10) chars as input seems more than enough
3811 test $ac_count -gt 10 && break
3812 done
3813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3814 esac
3815
3816 $ac_path_EGREP_found && break 3
3817 done
3818 done
3819 done
3820 IFS=$as_save_IFS
3821 if test -z "$ac_cv_path_EGREP"; then
3822 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3823 fi
3824 else
3825 ac_cv_path_EGREP=$EGREP
3826 fi
3827
3828 fi
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3831 $as_echo "$ac_cv_path_EGREP" >&6; }
3832 EGREP="$ac_cv_path_EGREP"
3833
3834
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3836 $as_echo_n "checking for ANSI C header files... " >&6; }
3837 if ${ac_cv_header_stdc+:} false; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #include <stdlib.h>
3843 #include <stdarg.h>
3844 #include <string.h>
3845 #include <float.h>
3846
3847 int
3848 main ()
3849 {
3850
3851 ;
3852 return 0;
3853 }
3854 _ACEOF
3855 if ac_fn_c_try_compile "$LINENO"; then :
3856 ac_cv_header_stdc=yes
3857 else
3858 ac_cv_header_stdc=no
3859 fi
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861
3862 if test $ac_cv_header_stdc = yes; then
3863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3866 #include <string.h>
3867
3868 _ACEOF
3869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3870 $EGREP "memchr" >/dev/null 2>&1; then :
3871
3872 else
3873 ac_cv_header_stdc=no
3874 fi
3875 rm -f conftest*
3876
3877 fi
3878
3879 if test $ac_cv_header_stdc = yes; then
3880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3883 #include <stdlib.h>
3884
3885 _ACEOF
3886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3887 $EGREP "free" >/dev/null 2>&1; then :
3888
3889 else
3890 ac_cv_header_stdc=no
3891 fi
3892 rm -f conftest*
3893
3894 fi
3895
3896 if test $ac_cv_header_stdc = yes; then
3897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3898 if test "$cross_compiling" = yes; then :
3899 :
3900 else
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3903 #include <ctype.h>
3904 #include <stdlib.h>
3905 #if ((' ' & 0x0FF) == 0x020)
3906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3908 #else
3909 # define ISLOWER(c) \
3910 (('a' <= (c) && (c) <= 'i') \
3911 || ('j' <= (c) && (c) <= 'r') \
3912 || ('s' <= (c) && (c) <= 'z'))
3913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3914 #endif
3915
3916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3917 int
3918 main ()
3919 {
3920 int i;
3921 for (i = 0; i < 256; i++)
3922 if (XOR (islower (i), ISLOWER (i))
3923 || toupper (i) != TOUPPER (i))
3924 return 2;
3925 return 0;
3926 }
3927 _ACEOF
3928 if ac_fn_c_try_run "$LINENO"; then :
3929
3930 else
3931 ac_cv_header_stdc=no
3932 fi
3933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3934 conftest.$ac_objext conftest.beam conftest.$ac_ext
3935 fi
3936
3937 fi
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3940 $as_echo "$ac_cv_header_stdc" >&6; }
3941 if test $ac_cv_header_stdc = yes; then
3942
3943 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3944
3945 fi
3946
3947 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3948 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3949 inttypes.h stdint.h unistd.h
3950 do :
3951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3952 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3953 "
3954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3955 cat >>confdefs.h <<_ACEOF
3956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3957 _ACEOF
3958
3959 fi
3960
3961 done
3962
3963
3964
3965 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3966 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3967 MINIX=yes
3968 else
3969 MINIX=
3970 fi
3971
3972
3973 if test "$MINIX" = yes; then
3974
3975 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3976
3977
3978 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3979
3980
3981 $as_echo "#define _MINIX 1" >>confdefs.h
3982
3983 fi
3984
3985
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3987 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3988 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3993
3994 # define __EXTENSIONS__ 1
3995 $ac_includes_default
3996 int
3997 main ()
3998 {
3999
4000 ;
4001 return 0;
4002 }
4003 _ACEOF
4004 if ac_fn_c_try_compile "$LINENO"; then :
4005 ac_cv_safe_to_define___extensions__=yes
4006 else
4007 ac_cv_safe_to_define___extensions__=no
4008 fi
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 fi
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4012 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4013 test $ac_cv_safe_to_define___extensions__ = yes &&
4014 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4015
4016 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4017
4018 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4019
4020 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4021
4022 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4023
4024
4025
4026 libtool_VERSION=1:0:0
4027
4028
4029 # 1.11.1: Require that version of automake.
4030 # foreign: Don't require README, INSTALL, NEWS, etc.
4031 # no-define: Don't define PACKAGE and VERSION.
4032 # no-dependencies: Don't generate automatic dependencies.
4033 # (because it breaks when using bootstrap-lean, since some of the
4034 # headers are gone at "make install" time).
4035 # -Wall: Issue all automake warnings.
4036 # -Wno-portability: Don't warn about constructs supported by GNU make.
4037 # (because GCC requires GNU make anyhow).
4038 am__api_version='1.15'
4039
4040 # Find a good install program. We prefer a C program (faster),
4041 # so one script is as good as another. But avoid the broken or
4042 # incompatible versions:
4043 # SysV /etc/install, /usr/sbin/install
4044 # SunOS /usr/etc/install
4045 # IRIX /sbin/install
4046 # AIX /bin/install
4047 # AmigaOS /C/install, which installs bootblocks on floppy discs
4048 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4049 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4050 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4051 # OS/2's system install, which has a completely different semantic
4052 # ./install, which can be erroneously created by make from ./install.sh.
4053 # Reject install programs that cannot install multiple files.
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4055 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4056 if test -z "$INSTALL"; then
4057 if ${ac_cv_path_install+:} false; then :
4058 $as_echo_n "(cached) " >&6
4059 else
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH
4062 do
4063 IFS=$as_save_IFS
4064 test -z "$as_dir" && as_dir=.
4065 # Account for people who put trailing slashes in PATH elements.
4066 case $as_dir/ in #((
4067 ./ | .// | /[cC]/* | \
4068 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4069 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4070 /usr/ucb/* ) ;;
4071 *)
4072 # OSF1 and SCO ODT 3.0 have their own names for install.
4073 # Don't use installbsd from OSF since it installs stuff as root
4074 # by default.
4075 for ac_prog in ginstall scoinst install; do
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4078 if test $ac_prog = install &&
4079 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4080 # AIX install. It has an incompatible calling convention.
4081 :
4082 elif test $ac_prog = install &&
4083 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4084 # program-specific install script used by HP pwplus--don't use.
4085 :
4086 else
4087 rm -rf conftest.one conftest.two conftest.dir
4088 echo one > conftest.one
4089 echo two > conftest.two
4090 mkdir conftest.dir
4091 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4092 test -s conftest.one && test -s conftest.two &&
4093 test -s conftest.dir/conftest.one &&
4094 test -s conftest.dir/conftest.two
4095 then
4096 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4097 break 3
4098 fi
4099 fi
4100 fi
4101 done
4102 done
4103 ;;
4104 esac
4105
4106 done
4107 IFS=$as_save_IFS
4108
4109 rm -rf conftest.one conftest.two conftest.dir
4110
4111 fi
4112 if test "${ac_cv_path_install+set}" = set; then
4113 INSTALL=$ac_cv_path_install
4114 else
4115 # As a last resort, use the slow shell script. Don't cache a
4116 # value for INSTALL within a source directory, because that will
4117 # break other packages using the cache if that directory is
4118 # removed, or if the value is a relative name.
4119 INSTALL=$ac_install_sh
4120 fi
4121 fi
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4123 $as_echo "$INSTALL" >&6; }
4124
4125 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4126 # It thinks the first close brace ends the variable substitution.
4127 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4128
4129 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4130
4131 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4132
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4134 $as_echo_n "checking whether build environment is sane... " >&6; }
4135 # Reject unsafe characters in $srcdir or the absolute working directory
4136 # name. Accept space and tab only in the latter.
4137 am_lf='
4138 '
4139 case `pwd` in
4140 *[\\\"\#\$\&\'\`$am_lf]*)
4141 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4142 esac
4143 case $srcdir in
4144 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4145 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4146 esac
4147
4148 # Do 'set' in a subshell so we don't clobber the current shell's
4149 # arguments. Must try -L first in case configure is actually a
4150 # symlink; some systems play weird games with the mod time of symlinks
4151 # (eg FreeBSD returns the mod time of the symlink's containing
4152 # directory).
4153 if (
4154 am_has_slept=no
4155 for am_try in 1 2; do
4156 echo "timestamp, slept: $am_has_slept" > conftest.file
4157 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4158 if test "$*" = "X"; then
4159 # -L didn't work.
4160 set X `ls -t "$srcdir/configure" conftest.file`
4161 fi
4162 if test "$*" != "X $srcdir/configure conftest.file" \
4163 && test "$*" != "X conftest.file $srcdir/configure"; then
4164
4165 # If neither matched, then we have a broken ls. This can happen
4166 # if, for instance, CONFIG_SHELL is bash and it inherits a
4167 # broken ls alias from the environment. This has actually
4168 # happened. Such a system could not be considered "sane".
4169 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4170 alias in your environment" "$LINENO" 5
4171 fi
4172 if test "$2" = conftest.file || test $am_try -eq 2; then
4173 break
4174 fi
4175 # Just in case.
4176 sleep 1
4177 am_has_slept=yes
4178 done
4179 test "$2" = conftest.file
4180 )
4181 then
4182 # Ok.
4183 :
4184 else
4185 as_fn_error $? "newly created file is older than distributed files!
4186 Check your system clock" "$LINENO" 5
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4189 $as_echo "yes" >&6; }
4190 # If we didn't sleep, we still need to ensure time stamps of config.status and
4191 # generated files are strictly newer.
4192 am_sleep_pid=
4193 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4194 ( sleep 1 ) &
4195 am_sleep_pid=$!
4196 fi
4197
4198 rm -f conftest.file
4199
4200 test "$program_prefix" != NONE &&
4201 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4202 # Use a double $ so make ignores it.
4203 test "$program_suffix" != NONE &&
4204 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4205 # Double any \ or $.
4206 # By default was `s,x,x', remove it if useless.
4207 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4208 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4209
4210 if test x"${MISSING+set}" != xset; then
4211 case $am_aux_dir in
4212 *\ * | *\ *)
4213 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4214 *)
4215 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4216 esac
4217 fi
4218 # Use eval to expand $SHELL
4219 if eval "$MISSING --is-lightweight"; then
4220 am_missing_run="$MISSING "
4221 else
4222 am_missing_run=
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4224 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4225 fi
4226
4227 if test x"${install_sh+set}" != xset; then
4228 case $am_aux_dir in
4229 *\ * | *\ *)
4230 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4231 *)
4232 install_sh="\${SHELL} $am_aux_dir/install-sh"
4233 esac
4234 fi
4235
4236 # Installed binaries are usually stripped using 'strip' when the user
4237 # run "make install-strip". However 'strip' might not be the right
4238 # tool to use in cross-compilation environments, therefore Automake
4239 # will honor the 'STRIP' environment variable to overrule this program.
4240 if test "$cross_compiling" != no; then
4241 if test -n "$ac_tool_prefix"; then
4242 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4243 set dummy ${ac_tool_prefix}strip; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_STRIP+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$STRIP"; then
4250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4262 fi
4263 done
4264 done
4265 IFS=$as_save_IFS
4266
4267 fi
4268 fi
4269 STRIP=$ac_cv_prog_STRIP
4270 if test -n "$STRIP"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4272 $as_echo "$STRIP" >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4276 fi
4277
4278
4279 fi
4280 if test -z "$ac_cv_prog_STRIP"; then
4281 ac_ct_STRIP=$STRIP
4282 # Extract the first word of "strip", so it can be a program name with args.
4283 set dummy strip; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 if test -n "$ac_ct_STRIP"; then
4290 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299 ac_cv_prog_ac_ct_STRIP="strip"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4302 fi
4303 done
4304 done
4305 IFS=$as_save_IFS
4306
4307 fi
4308 fi
4309 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4310 if test -n "$ac_ct_STRIP"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4312 $as_echo "$ac_ct_STRIP" >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316 fi
4317
4318 if test "x$ac_ct_STRIP" = x; then
4319 STRIP=":"
4320 else
4321 case $cross_compiling:$ac_tool_warned in
4322 yes:)
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4325 ac_tool_warned=yes ;;
4326 esac
4327 STRIP=$ac_ct_STRIP
4328 fi
4329 else
4330 STRIP="$ac_cv_prog_STRIP"
4331 fi
4332
4333 fi
4334 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4335
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4337 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4338 if test -z "$MKDIR_P"; then
4339 if ${ac_cv_path_mkdir+:} false; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4344 do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_prog in mkdir gmkdir; do
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4350 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4351 'mkdir (GNU coreutils) '* | \
4352 'mkdir (coreutils) '* | \
4353 'mkdir (fileutils) '4.1*)
4354 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4355 break 3;;
4356 esac
4357 done
4358 done
4359 done
4360 IFS=$as_save_IFS
4361
4362 fi
4363
4364 test -d ./--version && rmdir ./--version
4365 if test "${ac_cv_path_mkdir+set}" = set; then
4366 MKDIR_P="$ac_cv_path_mkdir -p"
4367 else
4368 # As a last resort, use the slow shell script. Don't cache a
4369 # value for MKDIR_P within a source directory, because that will
4370 # break other packages using the cache if that directory is
4371 # removed, or if the value is a relative name.
4372 MKDIR_P="$ac_install_sh -d"
4373 fi
4374 fi
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4376 $as_echo "$MKDIR_P" >&6; }
4377
4378 for ac_prog in gawk mawk nawk awk
4379 do
4380 # Extract the first word of "$ac_prog", so it can be a program name with args.
4381 set dummy $ac_prog; ac_word=$2
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383 $as_echo_n "checking for $ac_word... " >&6; }
4384 if ${ac_cv_prog_AWK+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 if test -n "$AWK"; then
4388 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4389 else
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4392 do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397 ac_cv_prog_AWK="$ac_prog"
4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 break 2
4400 fi
4401 done
4402 done
4403 IFS=$as_save_IFS
4404
4405 fi
4406 fi
4407 AWK=$ac_cv_prog_AWK
4408 if test -n "$AWK"; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4410 $as_echo "$AWK" >&6; }
4411 else
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413 $as_echo "no" >&6; }
4414 fi
4415
4416
4417 test -n "$AWK" && break
4418 done
4419
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4421 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4422 set x ${MAKE-make}
4423 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4424 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4425 $as_echo_n "(cached) " >&6
4426 else
4427 cat >conftest.make <<\_ACEOF
4428 SHELL = /bin/sh
4429 all:
4430 @echo '@@@%%%=$(MAKE)=@@@%%%'
4431 _ACEOF
4432 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4433 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4434 *@@@%%%=?*=@@@%%%*)
4435 eval ac_cv_prog_make_${ac_make}_set=yes;;
4436 *)
4437 eval ac_cv_prog_make_${ac_make}_set=no;;
4438 esac
4439 rm -f conftest.make
4440 fi
4441 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4443 $as_echo "yes" >&6; }
4444 SET_MAKE=
4445 else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4448 SET_MAKE="MAKE=${MAKE-make}"
4449 fi
4450
4451 rm -rf .tst 2>/dev/null
4452 mkdir .tst 2>/dev/null
4453 if test -d .tst; then
4454 am__leading_dot=.
4455 else
4456 am__leading_dot=_
4457 fi
4458 rmdir .tst 2>/dev/null
4459
4460 # Check whether --enable-silent-rules was given.
4461 if test "${enable_silent_rules+set}" = set; then :
4462 enableval=$enable_silent_rules;
4463 fi
4464
4465 case $enable_silent_rules in # (((
4466 yes) AM_DEFAULT_VERBOSITY=0;;
4467 no) AM_DEFAULT_VERBOSITY=1;;
4468 *) AM_DEFAULT_VERBOSITY=1;;
4469 esac
4470 am_make=${MAKE-make}
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4472 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4473 if ${am_cv_make_support_nested_variables+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 if $as_echo 'TRUE=$(BAR$(V))
4477 BAR0=false
4478 BAR1=true
4479 V=1
4480 am__doit:
4481 @$(TRUE)
4482 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4483 am_cv_make_support_nested_variables=yes
4484 else
4485 am_cv_make_support_nested_variables=no
4486 fi
4487 fi
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4489 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4490 if test $am_cv_make_support_nested_variables = yes; then
4491 AM_V='$(V)'
4492 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4493 else
4494 AM_V=$AM_DEFAULT_VERBOSITY
4495 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4496 fi
4497 AM_BACKSLASH='\'
4498
4499 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4500 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4501 # is not polluted with repeated "-I."
4502 am__isrc=' -I$(srcdir)'
4503 # test to see if srcdir already configured
4504 if test -f $srcdir/config.status; then
4505 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4506 fi
4507 fi
4508
4509 # test whether we have cygpath
4510 if test -z "$CYGPATH_W"; then
4511 if (cygpath --version) >/dev/null 2>/dev/null; then
4512 CYGPATH_W='cygpath -w'
4513 else
4514 CYGPATH_W=echo
4515 fi
4516 fi
4517
4518
4519 # Define the identity of the package.
4520 PACKAGE='libbacktrace'
4521 VERSION='version-unused'
4522
4523
4524 # Some tools Automake needs.
4525
4526 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4527
4528
4529 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4530
4531
4532 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4533
4534
4535 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4536
4537
4538 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4539
4540 # For better backward compatibility. To be removed once Automake 1.9.x
4541 # dies out for good. For more background, see:
4542 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4543 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4544 mkdir_p='$(MKDIR_P)'
4545
4546 # We need awk for the "check" target (and possibly the TAP driver). The
4547 # system "awk" is bad on some platforms.
4548 # Always define AMTAR for backward compatibility. Yes, it's still used
4549 # in the wild :-( We should find a proper way to deprecate it ...
4550 AMTAR='$${TAR-tar}'
4551
4552
4553 # We'll loop over all known methods to create a tar archive until one works.
4554 _am_tools='gnutar pax cpio none'
4555
4556 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4557
4558
4559
4560
4561
4562
4563 # POSIX will say in a future version that running "rm -f" with no argument
4564 # is OK; and we want to be able to make that assumption in our Makefile
4565 # recipes. So use an aggressive probe to check that the usage we want is
4566 # actually supported "in the wild" to an acceptable degree.
4567 # See automake bug#10828.
4568 # To make any issue more visible, cause the running configure to be aborted
4569 # by default if the 'rm' program in use doesn't match our expectations; the
4570 # user can still override this though.
4571 if rm -f && rm -fr && rm -rf; then : OK; else
4572 cat >&2 <<'END'
4573 Oops!
4574
4575 Your 'rm' program seems unable to run without file operands specified
4576 on the command line, even when the '-f' option is present. This is contrary
4577 to the behaviour of most rm programs out there, and not conforming with
4578 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4579
4580 Please tell bug-automake@gnu.org about your system, including the value
4581 of your $PATH and any error possibly output before this message. This
4582 can help us improve future automake versions.
4583
4584 END
4585 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4586 echo 'Configuration will proceed anyway, since you have set the' >&2
4587 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4588 echo >&2
4589 else
4590 cat >&2 <<'END'
4591 Aborting the configuration process, to ensure you take notice of the issue.
4592
4593 You can download and install GNU coreutils to get an 'rm' implementation
4594 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4595
4596 If you want to complete the configuration process using your problematic
4597 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4598 to "yes", and re-run configure.
4599
4600 END
4601 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4602 fi
4603 fi
4604
4605
4606
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4608 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4609 # Check whether --enable-maintainer-mode was given.
4610 if test "${enable_maintainer_mode+set}" = set; then :
4611 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4612 else
4613 USE_MAINTAINER_MODE=no
4614 fi
4615
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4617 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4618 if test $USE_MAINTAINER_MODE = yes; then
4619 MAINTAINER_MODE_TRUE=
4620 MAINTAINER_MODE_FALSE='#'
4621 else
4622 MAINTAINER_MODE_TRUE='#'
4623 MAINTAINER_MODE_FALSE=
4624 fi
4625
4626 MAINT=$MAINTAINER_MODE_TRUE
4627
4628
4629
4630
4631 # Check whether --with-target-subdir was given.
4632 if test "${with_target_subdir+set}" = set; then :
4633 withval=$with_target_subdir;
4634 fi
4635
4636
4637 # We must force CC to /not/ be precious variables; otherwise
4638 # the wrong, non-multilib-adjusted value will be used in multilibs.
4639 # As a side effect, we have to subst CFLAGS ourselves.
4640
4641
4642 ac_ext=c
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4647 if test -n "$ac_tool_prefix"; then
4648 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4649 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_prog_CC+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if test -n "$CC"; then
4656 ac_cv_prog_CC="$CC" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4668 fi
4669 done
4670 done
4671 IFS=$as_save_IFS
4672
4673 fi
4674 fi
4675 CC=$ac_cv_prog_CC
4676 if test -n "$CC"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4678 $as_echo "$CC" >&6; }
4679 else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4682 fi
4683
4684
4685 fi
4686 if test -z "$ac_cv_prog_CC"; then
4687 ac_ct_CC=$CC
4688 # Extract the first word of "gcc", so it can be a program name with args.
4689 set dummy gcc; ac_word=$2
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 if test -n "$ac_ct_CC"; then
4696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4705 ac_cv_prog_ac_ct_CC="gcc"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709 done
4710 done
4711 IFS=$as_save_IFS
4712
4713 fi
4714 fi
4715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4716 if test -n "$ac_ct_CC"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4718 $as_echo "$ac_ct_CC" >&6; }
4719 else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 $as_echo "no" >&6; }
4722 fi
4723
4724 if test "x$ac_ct_CC" = x; then
4725 CC=""
4726 else
4727 case $cross_compiling:$ac_tool_warned in
4728 yes:)
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731 ac_tool_warned=yes ;;
4732 esac
4733 CC=$ac_ct_CC
4734 fi
4735 else
4736 CC="$ac_cv_prog_CC"
4737 fi
4738
4739 if test -z "$CC"; then
4740 if test -n "$ac_tool_prefix"; then
4741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4742 set dummy ${ac_tool_prefix}cc; ac_word=$2
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744 $as_echo_n "checking for $ac_word... " >&6; }
4745 if ${ac_cv_prog_CC+:} false; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 if test -n "$CC"; then
4749 ac_cv_prog_CC="$CC" # Let the user override the test.
4750 else
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758 ac_cv_prog_CC="${ac_tool_prefix}cc"
4759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 break 2
4761 fi
4762 done
4763 done
4764 IFS=$as_save_IFS
4765
4766 fi
4767 fi
4768 CC=$ac_cv_prog_CC
4769 if test -n "$CC"; then
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4771 $as_echo "$CC" >&6; }
4772 else
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4775 fi
4776
4777
4778 fi
4779 fi
4780 if test -z "$CC"; then
4781 # Extract the first word of "cc", so it can be a program name with args.
4782 set dummy cc; ac_word=$2
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4784 $as_echo_n "checking for $ac_word... " >&6; }
4785 if ${ac_cv_prog_CC+:} false; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 if test -n "$CC"; then
4789 ac_cv_prog_CC="$CC" # Let the user override the test.
4790 else
4791 ac_prog_rejected=no
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4800 ac_prog_rejected=yes
4801 continue
4802 fi
4803 ac_cv_prog_CC="cc"
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4806 fi
4807 done
4808 done
4809 IFS=$as_save_IFS
4810
4811 if test $ac_prog_rejected = yes; then
4812 # We found a bogon in the path, so make sure we never use it.
4813 set dummy $ac_cv_prog_CC
4814 shift
4815 if test $# != 0; then
4816 # We chose a different compiler from the bogus one.
4817 # However, it has the same basename, so the bogon will be chosen
4818 # first if we set CC to just the basename; use the full file name.
4819 shift
4820 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4821 fi
4822 fi
4823 fi
4824 fi
4825 CC=$ac_cv_prog_CC
4826 if test -n "$CC"; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4828 $as_echo "$CC" >&6; }
4829 else
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4832 fi
4833
4834
4835 fi
4836 if test -z "$CC"; then
4837 if test -n "$ac_tool_prefix"; then
4838 for ac_prog in cl.exe
4839 do
4840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843 $as_echo_n "checking for $ac_word... " >&6; }
4844 if ${ac_cv_prog_CC+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 if test -n "$CC"; then
4848 ac_cv_prog_CC="$CC" # Let the user override the test.
4849 else
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853 IFS=$as_save_IFS
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4857 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 break 2
4860 fi
4861 done
4862 done
4863 IFS=$as_save_IFS
4864
4865 fi
4866 fi
4867 CC=$ac_cv_prog_CC
4868 if test -n "$CC"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4870 $as_echo "$CC" >&6; }
4871 else
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873 $as_echo "no" >&6; }
4874 fi
4875
4876
4877 test -n "$CC" && break
4878 done
4879 fi
4880 if test -z "$CC"; then
4881 ac_ct_CC=$CC
4882 for ac_prog in cl.exe
4883 do
4884 # Extract the first word of "$ac_prog", so it can be a program name with args.
4885 set dummy $ac_prog; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 if test -n "$ac_ct_CC"; then
4892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4896 do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901 ac_cv_prog_ac_ct_CC="$ac_prog"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4904 fi
4905 done
4906 done
4907 IFS=$as_save_IFS
4908
4909 fi
4910 fi
4911 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4912 if test -n "$ac_ct_CC"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4914 $as_echo "$ac_ct_CC" >&6; }
4915 else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4918 fi
4919
4920
4921 test -n "$ac_ct_CC" && break
4922 done
4923
4924 if test "x$ac_ct_CC" = x; then
4925 CC=""
4926 else
4927 case $cross_compiling:$ac_tool_warned in
4928 yes:)
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4931 ac_tool_warned=yes ;;
4932 esac
4933 CC=$ac_ct_CC
4934 fi
4935 fi
4936
4937 fi
4938
4939
4940 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4942 as_fn_error $? "no acceptable C compiler found in \$PATH
4943 See \`config.log' for more details" "$LINENO" 5; }
4944
4945 # Provide some information about the compiler.
4946 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4947 set X $ac_compile
4948 ac_compiler=$2
4949 for ac_option in --version -v -V -qversion; do
4950 { { ac_try="$ac_compiler $ac_option >&5"
4951 case "(($ac_try" in
4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4954 esac
4955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4956 $as_echo "$ac_try_echo"; } >&5
4957 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4958 ac_status=$?
4959 if test -s conftest.err; then
4960 sed '10a\
4961 ... rest of stderr output deleted ...
4962 10q' conftest.err >conftest.er1
4963 cat conftest.er1 >&5
4964 fi
4965 rm -f conftest.er1 conftest.err
4966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4967 test $ac_status = 0; }
4968 done
4969
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4971 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4972 if ${ac_cv_c_compiler_gnu+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977
4978 int
4979 main ()
4980 {
4981 #ifndef __GNUC__
4982 choke me
4983 #endif
4984
4985 ;
4986 return 0;
4987 }
4988 _ACEOF
4989 if ac_fn_c_try_compile "$LINENO"; then :
4990 ac_compiler_gnu=yes
4991 else
4992 ac_compiler_gnu=no
4993 fi
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4996
4997 fi
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4999 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5000 if test $ac_compiler_gnu = yes; then
5001 GCC=yes
5002 else
5003 GCC=
5004 fi
5005 ac_test_CFLAGS=${CFLAGS+set}
5006 ac_save_CFLAGS=$CFLAGS
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5008 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5009 if ${ac_cv_prog_cc_g+:} false; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 ac_save_c_werror_flag=$ac_c_werror_flag
5013 ac_c_werror_flag=yes
5014 ac_cv_prog_cc_g=no
5015 CFLAGS="-g"
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018
5019 int
5020 main ()
5021 {
5022
5023 ;
5024 return 0;
5025 }
5026 _ACEOF
5027 if ac_fn_c_try_compile "$LINENO"; then :
5028 ac_cv_prog_cc_g=yes
5029 else
5030 CFLAGS=""
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5033
5034 int
5035 main ()
5036 {
5037
5038 ;
5039 return 0;
5040 }
5041 _ACEOF
5042 if ac_fn_c_try_compile "$LINENO"; then :
5043
5044 else
5045 ac_c_werror_flag=$ac_save_c_werror_flag
5046 CFLAGS="-g"
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5049
5050 int
5051 main ()
5052 {
5053
5054 ;
5055 return 0;
5056 }
5057 _ACEOF
5058 if ac_fn_c_try_compile "$LINENO"; then :
5059 ac_cv_prog_cc_g=yes
5060 fi
5061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062 fi
5063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 fi
5065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066 ac_c_werror_flag=$ac_save_c_werror_flag
5067 fi
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5069 $as_echo "$ac_cv_prog_cc_g" >&6; }
5070 if test "$ac_test_CFLAGS" = set; then
5071 CFLAGS=$ac_save_CFLAGS
5072 elif test $ac_cv_prog_cc_g = yes; then
5073 if test "$GCC" = yes; then
5074 CFLAGS="-g -O2"
5075 else
5076 CFLAGS="-g"
5077 fi
5078 else
5079 if test "$GCC" = yes; then
5080 CFLAGS="-O2"
5081 else
5082 CFLAGS=
5083 fi
5084 fi
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5086 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5087 if ${ac_cv_prog_cc_c89+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 ac_cv_prog_cc_c89=no
5091 ac_save_CC=$CC
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #include <stdarg.h>
5095 #include <stdio.h>
5096 struct stat;
5097 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5098 struct buf { int x; };
5099 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5100 static char *e (p, i)
5101 char **p;
5102 int i;
5103 {
5104 return p[i];
5105 }
5106 static char *f (char * (*g) (char **, int), char **p, ...)
5107 {
5108 char *s;
5109 va_list v;
5110 va_start (v,p);
5111 s = g (p, va_arg (v,int));
5112 va_end (v);
5113 return s;
5114 }
5115
5116 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5117 function prototypes and stuff, but not '\xHH' hex character constants.
5118 These don't provoke an error unfortunately, instead are silently treated
5119 as 'x'. The following induces an error, until -std is added to get
5120 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5121 array size at least. It's necessary to write '\x00'==0 to get something
5122 that's true only with -std. */
5123 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5124
5125 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5126 inside strings and character constants. */
5127 #define FOO(x) 'x'
5128 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5129
5130 int test (int i, double x);
5131 struct s1 {int (*f) (int a);};
5132 struct s2 {int (*f) (double a);};
5133 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5134 int argc;
5135 char **argv;
5136 int
5137 main ()
5138 {
5139 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5140 ;
5141 return 0;
5142 }
5143 _ACEOF
5144 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5145 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5146 do
5147 CC="$ac_save_CC $ac_arg"
5148 if ac_fn_c_try_compile "$LINENO"; then :
5149 ac_cv_prog_cc_c89=$ac_arg
5150 fi
5151 rm -f core conftest.err conftest.$ac_objext
5152 test "x$ac_cv_prog_cc_c89" != "xno" && break
5153 done
5154 rm -f conftest.$ac_ext
5155 CC=$ac_save_CC
5156
5157 fi
5158 # AC_CACHE_VAL
5159 case "x$ac_cv_prog_cc_c89" in
5160 x)
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5162 $as_echo "none needed" >&6; } ;;
5163 xno)
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5165 $as_echo "unsupported" >&6; } ;;
5166 *)
5167 CC="$CC $ac_cv_prog_cc_c89"
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5169 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5170 esac
5171 if test "x$ac_cv_prog_cc_c89" != xno; then :
5172
5173 fi
5174
5175 ac_ext=c
5176 ac_cpp='$CPP $CPPFLAGS'
5177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5180
5181 ac_ext=c
5182 ac_cpp='$CPP $CPPFLAGS'
5183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5187 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5188 if ${am_cv_prog_cc_c_o+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193
5194 int
5195 main ()
5196 {
5197
5198 ;
5199 return 0;
5200 }
5201 _ACEOF
5202 # Make sure it works both with $CC and with simple cc.
5203 # Following AC_PROG_CC_C_O, we do the test twice because some
5204 # compilers refuse to overwrite an existing .o file with -o,
5205 # though they will create one.
5206 am_cv_prog_cc_c_o=yes
5207 for am_i in 1 2; do
5208 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5209 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5210 ac_status=$?
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } \
5213 && test -f conftest2.$ac_objext; then
5214 : OK
5215 else
5216 am_cv_prog_cc_c_o=no
5217 break
5218 fi
5219 done
5220 rm -f core conftest*
5221 unset am_i
5222 fi
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5224 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5225 if test "$am_cv_prog_cc_c_o" != yes; then
5226 # Losing compiler, so override with the script.
5227 # FIXME: It is wrong to rewrite CC.
5228 # But if we don't then we get into trouble of one sort or another.
5229 # A longer-term fix would be to have automake use am__CC in this case,
5230 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5231 CC="$am_aux_dir/compile $CC"
5232 fi
5233 ac_ext=c
5234 ac_cpp='$CPP $CPPFLAGS'
5235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5238
5239
5240
5241
5242
5243
5244 if test -n "$ac_tool_prefix"; then
5245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_prog_RANLIB+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test -n "$RANLIB"; then
5253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5257 do
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5265 fi
5266 done
5267 done
5268 IFS=$as_save_IFS
5269
5270 fi
5271 fi
5272 RANLIB=$ac_cv_prog_RANLIB
5273 if test -n "$RANLIB"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5275 $as_echo "$RANLIB" >&6; }
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5279 fi
5280
5281
5282 fi
5283 if test -z "$ac_cv_prog_RANLIB"; then
5284 ac_ct_RANLIB=$RANLIB
5285 # Extract the first word of "ranlib", so it can be a program name with args.
5286 set dummy ranlib; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 if test -n "$ac_ct_RANLIB"; then
5293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5297 do
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5302 ac_cv_prog_ac_ct_RANLIB="ranlib"
5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 break 2
5305 fi
5306 done
5307 done
5308 IFS=$as_save_IFS
5309
5310 fi
5311 fi
5312 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5313 if test -n "$ac_ct_RANLIB"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5315 $as_echo "$ac_ct_RANLIB" >&6; }
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5319 fi
5320
5321 if test "x$ac_ct_RANLIB" = x; then
5322 RANLIB=":"
5323 else
5324 case $cross_compiling:$ac_tool_warned in
5325 yes:)
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5328 ac_tool_warned=yes ;;
5329 esac
5330 RANLIB=$ac_ct_RANLIB
5331 fi
5332 else
5333 RANLIB="$ac_cv_prog_RANLIB"
5334 fi
5335
5336
5337 for ac_prog in gawk mawk nawk awk
5338 do
5339 # Extract the first word of "$ac_prog", so it can be a program name with args.
5340 set dummy $ac_prog; ac_word=$2
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342 $as_echo_n "checking for $ac_word... " >&6; }
5343 if ${ac_cv_prog_AWK+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 if test -n "$AWK"; then
5347 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356 ac_cv_prog_AWK="$ac_prog"
5357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5359 fi
5360 done
5361 done
5362 IFS=$as_save_IFS
5363
5364 fi
5365 fi
5366 AWK=$ac_cv_prog_AWK
5367 if test -n "$AWK"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5369 $as_echo "$AWK" >&6; }
5370 else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5373 fi
5374
5375
5376 test -n "$AWK" && break
5377 done
5378
5379 case "$AWK" in
5380 "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
5381 esac
5382
5383 # Extract the first word of "dwz", so it can be a program name with args.
5384 set dummy dwz; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_prog_DWZ+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 if test -n "$DWZ"; then
5391 ac_cv_prog_DWZ="$DWZ" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5395 do
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400 ac_cv_prog_DWZ="dwz"
5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 break 2
5403 fi
5404 done
5405 done
5406 IFS=$as_save_IFS
5407
5408 fi
5409 fi
5410 DWZ=$ac_cv_prog_DWZ
5411 if test -n "$DWZ"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DWZ" >&5
5413 $as_echo "$DWZ" >&6; }
5414 else
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417 fi
5418
5419
5420 if test "$DWZ" != ""; then
5421 HAVE_DWZ_TRUE=
5422 HAVE_DWZ_FALSE='#'
5423 else
5424 HAVE_DWZ_TRUE='#'
5425 HAVE_DWZ_FALSE=
5426 fi
5427
5428
5429 case `pwd` in
5430 *\ * | *\ *)
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5432 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5433 esac
5434
5435
5436
5437 macro_version='2.2.7a'
5438 macro_revision='1.3134'
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452 ltmain="$ac_aux_dir/ltmain.sh"
5453
5454 # Backslashify metacharacters that are still active within
5455 # double-quoted strings.
5456 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5457
5458 # Same as above, but do not quote variable references.
5459 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5460
5461 # Sed substitution to delay expansion of an escaped shell variable in a
5462 # double_quote_subst'ed string.
5463 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5464
5465 # Sed substitution to delay expansion of an escaped single quote.
5466 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5467
5468 # Sed substitution to avoid accidental globbing in evaled expressions
5469 no_glob_subst='s/\*/\\\*/g'
5470
5471 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5472 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5473 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5476 $as_echo_n "checking how to print strings... " >&6; }
5477 # Test print first, because it will be a builtin if present.
5478 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5479 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5480 ECHO='print -r --'
5481 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5482 ECHO='printf %s\n'
5483 else
5484 # Use this function as a fallback that always works.
5485 func_fallback_echo ()
5486 {
5487 eval 'cat <<_LTECHO_EOF
5488 $1
5489 _LTECHO_EOF'
5490 }
5491 ECHO='func_fallback_echo'
5492 fi
5493
5494 # func_echo_all arg...
5495 # Invoke $ECHO with all args, space-separated.
5496 func_echo_all ()
5497 {
5498 $ECHO ""
5499 }
5500
5501 case "$ECHO" in
5502 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5503 $as_echo "printf" >&6; } ;;
5504 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5505 $as_echo "print -r" >&6; } ;;
5506 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5507 $as_echo "cat" >&6; } ;;
5508 esac
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5524 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5525 if ${ac_cv_path_SED+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5529 for ac_i in 1 2 3 4 5 6 7; do
5530 ac_script="$ac_script$as_nl$ac_script"
5531 done
5532 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5533 { ac_script=; unset ac_script;}
5534 if test -z "$SED"; then
5535 ac_path_SED_found=false
5536 # Loop through the user's path and test for each of PROGNAME-LIST
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5539 do
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_prog in sed gsed; do
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5545 as_fn_executable_p "$ac_path_SED" || continue
5546 # Check for GNU ac_path_SED and select it if it is found.
5547 # Check for GNU $ac_path_SED
5548 case `"$ac_path_SED" --version 2>&1` in
5549 *GNU*)
5550 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5551 *)
5552 ac_count=0
5553 $as_echo_n 0123456789 >"conftest.in"
5554 while :
5555 do
5556 cat "conftest.in" "conftest.in" >"conftest.tmp"
5557 mv "conftest.tmp" "conftest.in"
5558 cp "conftest.in" "conftest.nl"
5559 $as_echo '' >> "conftest.nl"
5560 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5562 as_fn_arith $ac_count + 1 && ac_count=$as_val
5563 if test $ac_count -gt ${ac_path_SED_max-0}; then
5564 # Best one so far, save it but keep looking for a better one
5565 ac_cv_path_SED="$ac_path_SED"
5566 ac_path_SED_max=$ac_count
5567 fi
5568 # 10*(2^10) chars as input seems more than enough
5569 test $ac_count -gt 10 && break
5570 done
5571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5572 esac
5573
5574 $ac_path_SED_found && break 3
5575 done
5576 done
5577 done
5578 IFS=$as_save_IFS
5579 if test -z "$ac_cv_path_SED"; then
5580 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5581 fi
5582 else
5583 ac_cv_path_SED=$SED
5584 fi
5585
5586 fi
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5588 $as_echo "$ac_cv_path_SED" >&6; }
5589 SED="$ac_cv_path_SED"
5590 rm -f conftest.sed
5591
5592 test -z "$SED" && SED=sed
5593 Xsed="$SED -e 1s/^X//"
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5606 $as_echo_n "checking for fgrep... " >&6; }
5607 if ${ac_cv_path_FGREP+:} false; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5611 then ac_cv_path_FGREP="$GREP -F"
5612 else
5613 if test -z "$FGREP"; then
5614 ac_path_FGREP_found=false
5615 # Loop through the user's path and test for each of PROGNAME-LIST
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5618 do
5619 IFS=$as_save_IFS
5620 test -z "$as_dir" && as_dir=.
5621 for ac_prog in fgrep; do
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5624 as_fn_executable_p "$ac_path_FGREP" || continue
5625 # Check for GNU ac_path_FGREP and select it if it is found.
5626 # Check for GNU $ac_path_FGREP
5627 case `"$ac_path_FGREP" --version 2>&1` in
5628 *GNU*)
5629 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5630 *)
5631 ac_count=0
5632 $as_echo_n 0123456789 >"conftest.in"
5633 while :
5634 do
5635 cat "conftest.in" "conftest.in" >"conftest.tmp"
5636 mv "conftest.tmp" "conftest.in"
5637 cp "conftest.in" "conftest.nl"
5638 $as_echo 'FGREP' >> "conftest.nl"
5639 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5641 as_fn_arith $ac_count + 1 && ac_count=$as_val
5642 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5643 # Best one so far, save it but keep looking for a better one
5644 ac_cv_path_FGREP="$ac_path_FGREP"
5645 ac_path_FGREP_max=$ac_count
5646 fi
5647 # 10*(2^10) chars as input seems more than enough
5648 test $ac_count -gt 10 && break
5649 done
5650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5651 esac
5652
5653 $ac_path_FGREP_found && break 3
5654 done
5655 done
5656 done
5657 IFS=$as_save_IFS
5658 if test -z "$ac_cv_path_FGREP"; then
5659 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5660 fi
5661 else
5662 ac_cv_path_FGREP=$FGREP
5663 fi
5664
5665 fi
5666 fi
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5668 $as_echo "$ac_cv_path_FGREP" >&6; }
5669 FGREP="$ac_cv_path_FGREP"
5670
5671
5672 test -z "$GREP" && GREP=grep
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692 # Check whether --with-gnu-ld was given.
5693 if test "${with_gnu_ld+set}" = set; then :
5694 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5695 else
5696 with_gnu_ld=no
5697 fi
5698
5699 ac_prog=ld
5700 if test "$GCC" = yes; then
5701 # Check if gcc -print-prog-name=ld gives a path.
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5703 $as_echo_n "checking for ld used by $CC... " >&6; }
5704 case $host in
5705 *-*-mingw*)
5706 # gcc leaves a trailing carriage return which upsets mingw
5707 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5708 *)
5709 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5710 esac
5711 case $ac_prog in
5712 # Accept absolute paths.
5713 [\\/]* | ?:[\\/]*)
5714 re_direlt='/[^/][^/]*/\.\./'
5715 # Canonicalize the pathname of ld
5716 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5717 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5718 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5719 done
5720 test -z "$LD" && LD="$ac_prog"
5721 ;;
5722 "")
5723 # If it fails, then pretend we aren't using GCC.
5724 ac_prog=ld
5725 ;;
5726 *)
5727 # If it is relative, then search for the first ld in PATH.
5728 with_gnu_ld=unknown
5729 ;;
5730 esac
5731 elif test "$with_gnu_ld" = yes; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5733 $as_echo_n "checking for GNU ld... " >&6; }
5734 else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5736 $as_echo_n "checking for non-GNU ld... " >&6; }
5737 fi
5738 if ${lt_cv_path_LD+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 if test -z "$LD"; then
5742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5743 for ac_dir in $PATH; do
5744 IFS="$lt_save_ifs"
5745 test -z "$ac_dir" && ac_dir=.
5746 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5747 lt_cv_path_LD="$ac_dir/$ac_prog"
5748 # Check to see if the program is GNU ld. I'd rather use --version,
5749 # but apparently some variants of GNU ld only accept -v.
5750 # Break only if it was the GNU/non-GNU ld that we prefer.
5751 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5752 *GNU* | *'with BFD'*)
5753 test "$with_gnu_ld" != no && break
5754 ;;
5755 *)
5756 test "$with_gnu_ld" != yes && break
5757 ;;
5758 esac
5759 fi
5760 done
5761 IFS="$lt_save_ifs"
5762 else
5763 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5764 fi
5765 fi
5766
5767 LD="$lt_cv_path_LD"
5768 if test -n "$LD"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5770 $as_echo "$LD" >&6; }
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5774 fi
5775 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5777 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5778 if ${lt_cv_prog_gnu_ld+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5782 case `$LD -v 2>&1 </dev/null` in
5783 *GNU* | *'with BFD'*)
5784 lt_cv_prog_gnu_ld=yes
5785 ;;
5786 *)
5787 lt_cv_prog_gnu_ld=no
5788 ;;
5789 esac
5790 fi
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5792 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5793 with_gnu_ld=$lt_cv_prog_gnu_ld
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5804 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5805 if ${lt_cv_path_NM+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 if test -n "$NM"; then
5809 # Let the user override the test.
5810 lt_cv_path_NM="$NM"
5811 else
5812 lt_nm_to_check="${ac_tool_prefix}nm"
5813 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5814 lt_nm_to_check="$lt_nm_to_check nm"
5815 fi
5816 for lt_tmp_nm in $lt_nm_to_check; do
5817 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5818 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5819 IFS="$lt_save_ifs"
5820 test -z "$ac_dir" && ac_dir=.
5821 tmp_nm="$ac_dir/$lt_tmp_nm"
5822 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5823 # Check to see if the nm accepts a BSD-compat flag.
5824 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5825 # nm: unknown option "B" ignored
5826 # Tru64's nm complains that /dev/null is an invalid object file
5827 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5828 */dev/null* | *'Invalid file or object type'*)
5829 lt_cv_path_NM="$tmp_nm -B"
5830 break
5831 ;;
5832 *)
5833 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5834 */dev/null*)
5835 lt_cv_path_NM="$tmp_nm -p"
5836 break
5837 ;;
5838 *)
5839 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5840 continue # so that we can try to find one that supports BSD flags
5841 ;;
5842 esac
5843 ;;
5844 esac
5845 fi
5846 done
5847 IFS="$lt_save_ifs"
5848 done
5849 : ${lt_cv_path_NM=no}
5850 fi
5851 fi
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5853 $as_echo "$lt_cv_path_NM" >&6; }
5854 if test "$lt_cv_path_NM" != "no"; then
5855 NM="$lt_cv_path_NM"
5856 else
5857 # Didn't find any BSD compatible name lister, look for dumpbin.
5858 if test -n "$DUMPBIN"; then :
5859 # Let the user override the test.
5860 else
5861 if test -n "$ac_tool_prefix"; then
5862 for ac_prog in dumpbin "link -dump"
5863 do
5864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5865 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if ${ac_cv_prog_DUMPBIN+:} false; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5871 if test -n "$DUMPBIN"; then
5872 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5873 else
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5876 do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5881 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885 done
5886 done
5887 IFS=$as_save_IFS
5888
5889 fi
5890 fi
5891 DUMPBIN=$ac_cv_prog_DUMPBIN
5892 if test -n "$DUMPBIN"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5894 $as_echo "$DUMPBIN" >&6; }
5895 else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5898 fi
5899
5900
5901 test -n "$DUMPBIN" && break
5902 done
5903 fi
5904 if test -z "$DUMPBIN"; then
5905 ac_ct_DUMPBIN=$DUMPBIN
5906 for ac_prog in dumpbin "link -dump"
5907 do
5908 # Extract the first word of "$ac_prog", so it can be a program name with args.
5909 set dummy $ac_prog; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 if test -n "$ac_ct_DUMPBIN"; then
5916 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5928 fi
5929 done
5930 done
5931 IFS=$as_save_IFS
5932
5933 fi
5934 fi
5935 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5936 if test -n "$ac_ct_DUMPBIN"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5938 $as_echo "$ac_ct_DUMPBIN" >&6; }
5939 else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5942 fi
5943
5944
5945 test -n "$ac_ct_DUMPBIN" && break
5946 done
5947
5948 if test "x$ac_ct_DUMPBIN" = x; then
5949 DUMPBIN=":"
5950 else
5951 case $cross_compiling:$ac_tool_warned in
5952 yes:)
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5955 ac_tool_warned=yes ;;
5956 esac
5957 DUMPBIN=$ac_ct_DUMPBIN
5958 fi
5959 fi
5960
5961 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5962 *COFF*)
5963 DUMPBIN="$DUMPBIN -symbols"
5964 ;;
5965 *)
5966 DUMPBIN=:
5967 ;;
5968 esac
5969 fi
5970
5971 if test "$DUMPBIN" != ":"; then
5972 NM="$DUMPBIN"
5973 fi
5974 fi
5975 test -z "$NM" && NM=nm
5976
5977
5978
5979
5980
5981
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5983 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5984 if ${lt_cv_nm_interface+:} false; then :
5985 $as_echo_n "(cached) " >&6
5986 else
5987 lt_cv_nm_interface="BSD nm"
5988 echo "int some_variable = 0;" > conftest.$ac_ext
5989 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5990 (eval "$ac_compile" 2>conftest.err)
5991 cat conftest.err >&5
5992 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5993 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5994 cat conftest.err >&5
5995 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5996 cat conftest.out >&5
5997 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5998 lt_cv_nm_interface="MS dumpbin"
5999 fi
6000 rm -f conftest*
6001 fi
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6003 $as_echo "$lt_cv_nm_interface" >&6; }
6004
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6006 $as_echo_n "checking whether ln -s works... " >&6; }
6007 LN_S=$as_ln_s
6008 if test "$LN_S" = "ln -s"; then
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6010 $as_echo "yes" >&6; }
6011 else
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6013 $as_echo "no, using $LN_S" >&6; }
6014 fi
6015
6016 # find the maximum length of command line arguments
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6018 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6019 if ${lt_cv_sys_max_cmd_len+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 i=0
6023 teststring="ABCD"
6024
6025 case $build_os in
6026 msdosdjgpp*)
6027 # On DJGPP, this test can blow up pretty badly due to problems in libc
6028 # (any single argument exceeding 2000 bytes causes a buffer overrun
6029 # during glob expansion). Even if it were fixed, the result of this
6030 # check would be larger than it should be.
6031 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6032 ;;
6033
6034 gnu*)
6035 # Under GNU Hurd, this test is not required because there is
6036 # no limit to the length of command line arguments.
6037 # Libtool will interpret -1 as no limit whatsoever
6038 lt_cv_sys_max_cmd_len=-1;
6039 ;;
6040
6041 cygwin* | mingw* | cegcc*)
6042 # On Win9x/ME, this test blows up -- it succeeds, but takes
6043 # about 5 minutes as the teststring grows exponentially.
6044 # Worse, since 9x/ME are not pre-emptively multitasking,
6045 # you end up with a "frozen" computer, even though with patience
6046 # the test eventually succeeds (with a max line length of 256k).
6047 # Instead, let's just punt: use the minimum linelength reported by
6048 # all of the supported platforms: 8192 (on NT/2K/XP).
6049 lt_cv_sys_max_cmd_len=8192;
6050 ;;
6051
6052 mint*)
6053 # On MiNT this can take a long time and run out of memory.
6054 lt_cv_sys_max_cmd_len=8192;
6055 ;;
6056
6057 amigaos*)
6058 # On AmigaOS with pdksh, this test takes hours, literally.
6059 # So we just punt and use a minimum line length of 8192.
6060 lt_cv_sys_max_cmd_len=8192;
6061 ;;
6062
6063 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6064 # This has been around since 386BSD, at least. Likely further.
6065 if test -x /sbin/sysctl; then
6066 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6067 elif test -x /usr/sbin/sysctl; then
6068 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6069 else
6070 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6071 fi
6072 # And add a safety zone
6073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6075 ;;
6076
6077 interix*)
6078 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6079 lt_cv_sys_max_cmd_len=196608
6080 ;;
6081
6082 osf*)
6083 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6084 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6085 # nice to cause kernel panics so lets avoid the loop below.
6086 # First set a reasonable default.
6087 lt_cv_sys_max_cmd_len=16384
6088 #
6089 if test -x /sbin/sysconfig; then
6090 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6091 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6092 esac
6093 fi
6094 ;;
6095 sco3.2v5*)
6096 lt_cv_sys_max_cmd_len=102400
6097 ;;
6098 sysv5* | sco5v6* | sysv4.2uw2*)
6099 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6100 if test -n "$kargmax"; then
6101 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6102 else
6103 lt_cv_sys_max_cmd_len=32768
6104 fi
6105 ;;
6106 *)
6107 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6108 if test -n "$lt_cv_sys_max_cmd_len"; then
6109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6111 else
6112 # Make teststring a little bigger before we do anything with it.
6113 # a 1K string should be a reasonable start.
6114 for i in 1 2 3 4 5 6 7 8 ; do
6115 teststring=$teststring$teststring
6116 done
6117 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6118 # If test is not a shell built-in, we'll probably end up computing a
6119 # maximum length that is only half of the actual maximum length, but
6120 # we can't tell.
6121 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6122 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6123 test $i != 17 # 1/2 MB should be enough
6124 do
6125 i=`expr $i + 1`
6126 teststring=$teststring$teststring
6127 done
6128 # Only check the string length outside the loop.
6129 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6130 teststring=
6131 # Add a significant safety factor because C++ compilers can tack on
6132 # massive amounts of additional arguments before passing them to the
6133 # linker. It appears as though 1/2 is a usable value.
6134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6135 fi
6136 ;;
6137 esac
6138
6139 fi
6140
6141 if test -n $lt_cv_sys_max_cmd_len ; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6143 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6144 else
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6146 $as_echo "none" >&6; }
6147 fi
6148 max_cmd_len=$lt_cv_sys_max_cmd_len
6149
6150
6151
6152
6153
6154
6155 : ${CP="cp -f"}
6156 : ${MV="mv -f"}
6157 : ${RM="rm -f"}
6158
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6160 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6161 # Try some XSI features
6162 xsi_shell=no
6163 ( _lt_dummy="a/b/c"
6164 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6165 = c,a/b,, \
6166 && eval 'test $(( 1 + 1 )) -eq 2 \
6167 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6168 && xsi_shell=yes
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6170 $as_echo "$xsi_shell" >&6; }
6171
6172
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6174 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6175 lt_shell_append=no
6176 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6177 >/dev/null 2>&1 \
6178 && lt_shell_append=yes
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6180 $as_echo "$lt_shell_append" >&6; }
6181
6182
6183 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6184 lt_unset=unset
6185 else
6186 lt_unset=false
6187 fi
6188
6189
6190
6191
6192
6193 # test EBCDIC or ASCII
6194 case `echo X|tr X '\101'` in
6195 A) # ASCII based system
6196 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6197 lt_SP2NL='tr \040 \012'
6198 lt_NL2SP='tr \015\012 \040\040'
6199 ;;
6200 *) # EBCDIC based system
6201 lt_SP2NL='tr \100 \n'
6202 lt_NL2SP='tr \r\n \100\100'
6203 ;;
6204 esac
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6215 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6216 if ${lt_cv_ld_reload_flag+:} false; then :
6217 $as_echo_n "(cached) " >&6
6218 else
6219 lt_cv_ld_reload_flag='-r'
6220 fi
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6222 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6223 reload_flag=$lt_cv_ld_reload_flag
6224 case $reload_flag in
6225 "" | " "*) ;;
6226 *) reload_flag=" $reload_flag" ;;
6227 esac
6228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6229 case $host_os in
6230 darwin*)
6231 if test "$GCC" = yes; then
6232 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6233 else
6234 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6235 fi
6236 ;;
6237 esac
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247 if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if ${ac_cv_prog_OBJDUMP+:} false; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 if test -n "$OBJDUMP"; then
6256 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6260 do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 break 2
6268 fi
6269 done
6270 done
6271 IFS=$as_save_IFS
6272
6273 fi
6274 fi
6275 OBJDUMP=$ac_cv_prog_OBJDUMP
6276 if test -n "$OBJDUMP"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6278 $as_echo "$OBJDUMP" >&6; }
6279 else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6282 fi
6283
6284
6285 fi
6286 if test -z "$ac_cv_prog_OBJDUMP"; then
6287 ac_ct_OBJDUMP=$OBJDUMP
6288 # Extract the first word of "objdump", so it can be a program name with args.
6289 set dummy objdump; ac_word=$2
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6295 if test -n "$ac_ct_OBJDUMP"; then
6296 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6305 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2
6308 fi
6309 done
6310 done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6316 if test -n "$ac_ct_OBJDUMP"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6318 $as_echo "$ac_ct_OBJDUMP" >&6; }
6319 else
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6322 fi
6323
6324 if test "x$ac_ct_OBJDUMP" = x; then
6325 OBJDUMP="false"
6326 else
6327 case $cross_compiling:$ac_tool_warned in
6328 yes:)
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6331 ac_tool_warned=yes ;;
6332 esac
6333 OBJDUMP=$ac_ct_OBJDUMP
6334 fi
6335 else
6336 OBJDUMP="$ac_cv_prog_OBJDUMP"
6337 fi
6338
6339 test -z "$OBJDUMP" && OBJDUMP=objdump
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6350 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6351 if ${lt_cv_deplibs_check_method+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 lt_cv_file_magic_cmd='$MAGIC_CMD'
6355 lt_cv_file_magic_test_file=
6356 lt_cv_deplibs_check_method='unknown'
6357 # Need to set the preceding variable on all platforms that support
6358 # interlibrary dependencies.
6359 # 'none' -- dependencies not supported.
6360 # `unknown' -- same as none, but documents that we really don't know.
6361 # 'pass_all' -- all dependencies passed with no checks.
6362 # 'test_compile' -- check by making test program.
6363 # 'file_magic [[regex]]' -- check by looking for files in library path
6364 # which responds to the $file_magic_cmd with a given extended regex.
6365 # If you have `file' or equivalent on your system and you're not sure
6366 # whether `pass_all' will *always* work, you probably want this one.
6367
6368 case $host_os in
6369 aix[4-9]*)
6370 lt_cv_deplibs_check_method=pass_all
6371 ;;
6372
6373 beos*)
6374 lt_cv_deplibs_check_method=pass_all
6375 ;;
6376
6377 bsdi[45]*)
6378 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6379 lt_cv_file_magic_cmd='/usr/bin/file -L'
6380 lt_cv_file_magic_test_file=/shlib/libc.so
6381 ;;
6382
6383 cygwin*)
6384 # func_win32_libid is a shell function defined in ltmain.sh
6385 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6386 lt_cv_file_magic_cmd='func_win32_libid'
6387 ;;
6388
6389 mingw* | pw32*)
6390 # Base MSYS/MinGW do not provide the 'file' command needed by
6391 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6392 # unless we find 'file', for example because we are cross-compiling.
6393 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6394 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6395 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6396 lt_cv_file_magic_cmd='func_win32_libid'
6397 else
6398 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6399 lt_cv_file_magic_cmd='$OBJDUMP -f'
6400 fi
6401 ;;
6402
6403 cegcc*)
6404 # use the weaker test based on 'objdump'. See mingw*.
6405 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6406 lt_cv_file_magic_cmd='$OBJDUMP -f'
6407 ;;
6408
6409 darwin* | rhapsody*)
6410 lt_cv_deplibs_check_method=pass_all
6411 ;;
6412
6413 freebsd* | dragonfly*)
6414 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6415 case $host_cpu in
6416 i*86 )
6417 # Not sure whether the presence of OpenBSD here was a mistake.
6418 # Let's accept both of them until this is cleared up.
6419 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6420 lt_cv_file_magic_cmd=/usr/bin/file
6421 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6422 ;;
6423 esac
6424 else
6425 lt_cv_deplibs_check_method=pass_all
6426 fi
6427 ;;
6428
6429 gnu*)
6430 lt_cv_deplibs_check_method=pass_all
6431 ;;
6432
6433 haiku*)
6434 lt_cv_deplibs_check_method=pass_all
6435 ;;
6436
6437 hpux10.20* | hpux11*)
6438 lt_cv_file_magic_cmd=/usr/bin/file
6439 case $host_cpu in
6440 ia64*)
6441 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6442 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6443 ;;
6444 hppa*64*)
6445 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]'
6446 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6447 ;;
6448 *)
6449 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6450 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6451 ;;
6452 esac
6453 ;;
6454
6455 interix[3-9]*)
6456 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6458 ;;
6459
6460 irix5* | irix6* | nonstopux*)
6461 case $LD in
6462 *-32|*"-32 ") libmagic=32-bit;;
6463 *-n32|*"-n32 ") libmagic=N32;;
6464 *-64|*"-64 ") libmagic=64-bit;;
6465 *) libmagic=never-match;;
6466 esac
6467 lt_cv_deplibs_check_method=pass_all
6468 ;;
6469
6470 # This must be Linux ELF.
6471 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6472 lt_cv_deplibs_check_method=pass_all
6473 ;;
6474
6475 netbsd*)
6476 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6478 else
6479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6480 fi
6481 ;;
6482
6483 newos6*)
6484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6485 lt_cv_file_magic_cmd=/usr/bin/file
6486 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6487 ;;
6488
6489 *nto* | *qnx*)
6490 lt_cv_deplibs_check_method=pass_all
6491 ;;
6492
6493 openbsd*)
6494 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6496 else
6497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6498 fi
6499 ;;
6500
6501 osf3* | osf4* | osf5*)
6502 lt_cv_deplibs_check_method=pass_all
6503 ;;
6504
6505 rdos*)
6506 lt_cv_deplibs_check_method=pass_all
6507 ;;
6508
6509 solaris*)
6510 lt_cv_deplibs_check_method=pass_all
6511 ;;
6512
6513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6514 lt_cv_deplibs_check_method=pass_all
6515 ;;
6516
6517 sysv4 | sysv4.3*)
6518 case $host_vendor in
6519 motorola)
6520 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]'
6521 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6522 ;;
6523 ncr)
6524 lt_cv_deplibs_check_method=pass_all
6525 ;;
6526 sequent)
6527 lt_cv_file_magic_cmd='/bin/file'
6528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6529 ;;
6530 sni)
6531 lt_cv_file_magic_cmd='/bin/file'
6532 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6533 lt_cv_file_magic_test_file=/lib/libc.so
6534 ;;
6535 siemens)
6536 lt_cv_deplibs_check_method=pass_all
6537 ;;
6538 pc)
6539 lt_cv_deplibs_check_method=pass_all
6540 ;;
6541 esac
6542 ;;
6543
6544 tpf*)
6545 lt_cv_deplibs_check_method=pass_all
6546 ;;
6547 esac
6548
6549 fi
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6551 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6552 file_magic_cmd=$lt_cv_file_magic_cmd
6553 deplibs_check_method=$lt_cv_deplibs_check_method
6554 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567 if test -n "$ac_tool_prefix"; then
6568 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6569 set dummy ${ac_tool_prefix}ar; ac_word=$2
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571 $as_echo_n "checking for $ac_word... " >&6; }
6572 if ${ac_cv_prog_AR+:} false; then :
6573 $as_echo_n "(cached) " >&6
6574 else
6575 if test -n "$AR"; then
6576 ac_cv_prog_AR="$AR" # Let the user override the test.
6577 else
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6585 ac_cv_prog_AR="${ac_tool_prefix}ar"
6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 break 2
6588 fi
6589 done
6590 done
6591 IFS=$as_save_IFS
6592
6593 fi
6594 fi
6595 AR=$ac_cv_prog_AR
6596 if test -n "$AR"; then
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6598 $as_echo "$AR" >&6; }
6599 else
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 $as_echo "no" >&6; }
6602 fi
6603
6604
6605 fi
6606 if test -z "$ac_cv_prog_AR"; then
6607 ac_ct_AR=$AR
6608 # Extract the first word of "ar", so it can be a program name with args.
6609 set dummy ar; ac_word=$2
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615 if test -n "$ac_ct_AR"; then
6616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625 ac_cv_prog_ac_ct_AR="ar"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629 done
6630 done
6631 IFS=$as_save_IFS
6632
6633 fi
6634 fi
6635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6636 if test -n "$ac_ct_AR"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6638 $as_echo "$ac_ct_AR" >&6; }
6639 else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6642 fi
6643
6644 if test "x$ac_ct_AR" = x; then
6645 AR="false"
6646 else
6647 case $cross_compiling:$ac_tool_warned in
6648 yes:)
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6651 ac_tool_warned=yes ;;
6652 esac
6653 AR=$ac_ct_AR
6654 fi
6655 else
6656 AR="$ac_cv_prog_AR"
6657 fi
6658
6659 test -z "$AR" && AR=ar
6660 test -z "$AR_FLAGS" && AR_FLAGS=cru
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672 if test -n "$ac_tool_prefix"; then
6673 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6674 set dummy ${ac_tool_prefix}strip; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_prog_STRIP+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 if test -n "$STRIP"; then
6681 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6693 fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 STRIP=$ac_cv_prog_STRIP
6701 if test -n "$STRIP"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6703 $as_echo "$STRIP" >&6; }
6704 else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709
6710 fi
6711 if test -z "$ac_cv_prog_STRIP"; then
6712 ac_ct_STRIP=$STRIP
6713 # Extract the first word of "strip", so it can be a program name with args.
6714 set dummy strip; ac_word=$2
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 if test -n "$ac_ct_STRIP"; then
6721 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730 ac_cv_prog_ac_ct_STRIP="strip"
6731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6733 fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6741 if test -n "$ac_ct_STRIP"; then
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6743 $as_echo "$ac_ct_STRIP" >&6; }
6744 else
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 $as_echo "no" >&6; }
6747 fi
6748
6749 if test "x$ac_ct_STRIP" = x; then
6750 STRIP=":"
6751 else
6752 case $cross_compiling:$ac_tool_warned in
6753 yes:)
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6756 ac_tool_warned=yes ;;
6757 esac
6758 STRIP=$ac_ct_STRIP
6759 fi
6760 else
6761 STRIP="$ac_cv_prog_STRIP"
6762 fi
6763
6764 test -z "$STRIP" && STRIP=:
6765
6766
6767
6768
6769
6770
6771 if test -n "$ac_tool_prefix"; then
6772 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6773 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if ${ac_cv_prog_RANLIB+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 if test -n "$RANLIB"; then
6780 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6789 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793 done
6794 done
6795 IFS=$as_save_IFS
6796
6797 fi
6798 fi
6799 RANLIB=$ac_cv_prog_RANLIB
6800 if test -n "$RANLIB"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6802 $as_echo "$RANLIB" >&6; }
6803 else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6806 fi
6807
6808
6809 fi
6810 if test -z "$ac_cv_prog_RANLIB"; then
6811 ac_ct_RANLIB=$RANLIB
6812 # Extract the first word of "ranlib", so it can be a program name with args.
6813 set dummy ranlib; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6817 $as_echo_n "(cached) " >&6
6818 else
6819 if test -n "$ac_ct_RANLIB"; then
6820 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829 ac_cv_prog_ac_ct_RANLIB="ranlib"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837 fi
6838 fi
6839 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6840 if test -n "$ac_ct_RANLIB"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6842 $as_echo "$ac_ct_RANLIB" >&6; }
6843 else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6846 fi
6847
6848 if test "x$ac_ct_RANLIB" = x; then
6849 RANLIB=":"
6850 else
6851 case $cross_compiling:$ac_tool_warned in
6852 yes:)
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855 ac_tool_warned=yes ;;
6856 esac
6857 RANLIB=$ac_ct_RANLIB
6858 fi
6859 else
6860 RANLIB="$ac_cv_prog_RANLIB"
6861 fi
6862
6863 test -z "$RANLIB" && RANLIB=:
6864
6865
6866
6867
6868
6869
6870 # Determine commands to create old-style static archives.
6871 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6872 old_postinstall_cmds='chmod 644 $oldlib'
6873 old_postuninstall_cmds=
6874
6875 if test -n "$RANLIB"; then
6876 case $host_os in
6877 openbsd*)
6878 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6879 ;;
6880 *)
6881 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6882 ;;
6883 esac
6884 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6885 fi
6886
6887 case $host_os in
6888 darwin*)
6889 lock_old_archive_extraction=yes ;;
6890 *)
6891 lock_old_archive_extraction=no ;;
6892 esac
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932 # If no C compiler was specified, use CC.
6933 LTCC=${LTCC-"$CC"}
6934
6935 # If no C compiler flags were specified, use CFLAGS.
6936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6937
6938 # Allow CC to be a program name with arguments.
6939 compiler=$CC
6940
6941
6942 # Check for command to grab the raw symbol name followed by C symbol from nm.
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6944 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6945 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948
6949 # These are sane defaults that work on at least a few old systems.
6950 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6951
6952 # Character class describing NM global symbol codes.
6953 symcode='[BCDEGRST]'
6954
6955 # Regexp to match symbols that can be accessed directly from C.
6956 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6957
6958 # Define system-specific variables.
6959 case $host_os in
6960 aix*)
6961 symcode='[BCDT]'
6962 ;;
6963 cygwin* | mingw* | pw32* | cegcc*)
6964 symcode='[ABCDGISTW]'
6965 ;;
6966 hpux*)
6967 if test "$host_cpu" = ia64; then
6968 symcode='[ABCDEGRST]'
6969 fi
6970 ;;
6971 irix* | nonstopux*)
6972 symcode='[BCDEGRST]'
6973 ;;
6974 osf*)
6975 symcode='[BCDEGQRST]'
6976 ;;
6977 solaris*)
6978 symcode='[BDRT]'
6979 ;;
6980 sco3.2v5*)
6981 symcode='[DT]'
6982 ;;
6983 sysv4.2uw2*)
6984 symcode='[DT]'
6985 ;;
6986 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6987 symcode='[ABDT]'
6988 ;;
6989 sysv4)
6990 symcode='[DFNSTU]'
6991 ;;
6992 esac
6993
6994 # If we're using GNU nm, then use its standard symbol codes.
6995 case `$NM -V 2>&1` in
6996 *GNU* | *'with BFD'*)
6997 symcode='[ABCDGIRSTW]' ;;
6998 esac
6999
7000 # Transform an extracted symbol line into a proper C declaration.
7001 # Some systems (esp. on ia64) link data and code symbols differently,
7002 # so use this general approach.
7003 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7004
7005 # Transform an extracted symbol line into symbol name and symbol address
7006 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7007 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'"
7008
7009 # Handle CRLF in mingw tool chain
7010 opt_cr=
7011 case $build_os in
7012 mingw*)
7013 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7014 ;;
7015 esac
7016
7017 # Try without a prefix underscore, then with it.
7018 for ac_symprfx in "" "_"; do
7019
7020 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7021 symxfrm="\\1 $ac_symprfx\\2 \\2"
7022
7023 # Write the raw and C identifiers.
7024 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7025 # Fake it for dumpbin and say T for any non-static function
7026 # and D for any global variable.
7027 # Also find C++ and __fastcall symbols from MSVC++,
7028 # which start with @ or ?.
7029 lt_cv_sys_global_symbol_pipe="$AWK '"\
7030 " {last_section=section; section=\$ 3};"\
7031 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7032 " \$ 0!~/External *\|/{next};"\
7033 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7034 " {if(hide[section]) next};"\
7035 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7036 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7037 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7038 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7039 " ' prfx=^$ac_symprfx"
7040 else
7041 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7042 fi
7043
7044 # Check to see that the pipe works correctly.
7045 pipe_works=no
7046
7047 rm -f conftest*
7048 cat > conftest.$ac_ext <<_LT_EOF
7049 #ifdef __cplusplus
7050 extern "C" {
7051 #endif
7052 char nm_test_var;
7053 void nm_test_func(void);
7054 void nm_test_func(void){}
7055 #ifdef __cplusplus
7056 }
7057 #endif
7058 int main(){nm_test_var='a';nm_test_func();return(0);}
7059 _LT_EOF
7060
7061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7062 (eval $ac_compile) 2>&5
7063 ac_status=$?
7064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7065 test $ac_status = 0; }; then
7066 # Now try to grab the symbols.
7067 nlist=conftest.nm
7068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7069 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7070 ac_status=$?
7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072 test $ac_status = 0; } && test -s "$nlist"; then
7073 # Try sorting and uniquifying the output.
7074 if sort "$nlist" | uniq > "$nlist"T; then
7075 mv -f "$nlist"T "$nlist"
7076 else
7077 rm -f "$nlist"T
7078 fi
7079
7080 # Make sure that we snagged all the symbols we need.
7081 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7082 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7083 cat <<_LT_EOF > conftest.$ac_ext
7084 #ifdef __cplusplus
7085 extern "C" {
7086 #endif
7087
7088 _LT_EOF
7089 # Now generate the symbol file.
7090 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7091
7092 cat <<_LT_EOF >> conftest.$ac_ext
7093
7094 /* The mapping between symbol names and symbols. */
7095 const struct {
7096 const char *name;
7097 void *address;
7098 }
7099 lt__PROGRAM__LTX_preloaded_symbols[] =
7100 {
7101 { "@PROGRAM@", (void *) 0 },
7102 _LT_EOF
7103 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7104 cat <<\_LT_EOF >> conftest.$ac_ext
7105 {0, (void *) 0}
7106 };
7107
7108 /* This works around a problem in FreeBSD linker */
7109 #ifdef FREEBSD_WORKAROUND
7110 static const void *lt_preloaded_setup() {
7111 return lt__PROGRAM__LTX_preloaded_symbols;
7112 }
7113 #endif
7114
7115 #ifdef __cplusplus
7116 }
7117 #endif
7118 _LT_EOF
7119 # Now try linking the two files.
7120 mv conftest.$ac_objext conftstm.$ac_objext
7121 lt_save_LIBS="$LIBS"
7122 lt_save_CFLAGS="$CFLAGS"
7123 LIBS="conftstm.$ac_objext"
7124 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7126 (eval $ac_link) 2>&5
7127 ac_status=$?
7128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7129 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7130 pipe_works=yes
7131 fi
7132 LIBS="$lt_save_LIBS"
7133 CFLAGS="$lt_save_CFLAGS"
7134 else
7135 echo "cannot find nm_test_func in $nlist" >&5
7136 fi
7137 else
7138 echo "cannot find nm_test_var in $nlist" >&5
7139 fi
7140 else
7141 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7142 fi
7143 else
7144 echo "$progname: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7146 fi
7147 rm -rf conftest* conftst*
7148
7149 # Do not use the global_symbol_pipe unless it works.
7150 if test "$pipe_works" = yes; then
7151 break
7152 else
7153 lt_cv_sys_global_symbol_pipe=
7154 fi
7155 done
7156
7157 fi
7158
7159 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7160 lt_cv_sys_global_symbol_to_cdecl=
7161 fi
7162 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7164 $as_echo "failed" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7167 $as_echo "ok" >&6; }
7168 fi
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191 # Check whether --enable-libtool-lock was given.
7192 if test "${enable_libtool_lock+set}" = set; then :
7193 enableval=$enable_libtool_lock;
7194 fi
7195
7196 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7197
7198 # Some flags need to be propagated to the compiler or linker for good
7199 # libtool support.
7200 case $host in
7201 ia64-*-hpux*)
7202 # Find out which ABI we are using.
7203 echo 'int i;' > conftest.$ac_ext
7204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7205 (eval $ac_compile) 2>&5
7206 ac_status=$?
7207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7208 test $ac_status = 0; }; then
7209 case `/usr/bin/file conftest.$ac_objext` in
7210 *ELF-32*)
7211 HPUX_IA64_MODE="32"
7212 ;;
7213 *ELF-64*)
7214 HPUX_IA64_MODE="64"
7215 ;;
7216 esac
7217 fi
7218 rm -rf conftest*
7219 ;;
7220 *-*-irix6*)
7221 # Find out which ABI we are using.
7222 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7224 (eval $ac_compile) 2>&5
7225 ac_status=$?
7226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227 test $ac_status = 0; }; then
7228 if test "$lt_cv_prog_gnu_ld" = yes; then
7229 case `/usr/bin/file conftest.$ac_objext` in
7230 *32-bit*)
7231 LD="${LD-ld} -melf32bsmip"
7232 ;;
7233 *N32*)
7234 LD="${LD-ld} -melf32bmipn32"
7235 ;;
7236 *64-bit*)
7237 LD="${LD-ld} -melf64bmip"
7238 ;;
7239 esac
7240 else
7241 case `/usr/bin/file conftest.$ac_objext` in
7242 *32-bit*)
7243 LD="${LD-ld} -32"
7244 ;;
7245 *N32*)
7246 LD="${LD-ld} -n32"
7247 ;;
7248 *64-bit*)
7249 LD="${LD-ld} -64"
7250 ;;
7251 esac
7252 fi
7253 fi
7254 rm -rf conftest*
7255 ;;
7256
7257 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7258 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7259 # Find out which ABI we are using.
7260 echo 'int i;' > conftest.$ac_ext
7261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7262 (eval $ac_compile) 2>&5
7263 ac_status=$?
7264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7265 test $ac_status = 0; }; then
7266 case `/usr/bin/file conftest.o` in
7267 *32-bit*)
7268 case $host in
7269 x86_64-*kfreebsd*-gnu)
7270 LD="${LD-ld} -m elf_i386_fbsd"
7271 ;;
7272 x86_64-*linux*)
7273 case `/usr/bin/file conftest.o` in
7274 *x86-64*)
7275 LD="${LD-ld} -m elf32_x86_64"
7276 ;;
7277 *)
7278 LD="${LD-ld} -m elf_i386"
7279 ;;
7280 esac
7281 ;;
7282 powerpc64le-*linux*)
7283 LD="${LD-ld} -m elf32lppclinux"
7284 ;;
7285 powerpc64-*linux*)
7286 LD="${LD-ld} -m elf32ppclinux"
7287 ;;
7288 s390x-*linux*)
7289 LD="${LD-ld} -m elf_s390"
7290 ;;
7291 sparc64-*linux*)
7292 LD="${LD-ld} -m elf32_sparc"
7293 ;;
7294 esac
7295 ;;
7296 *64-bit*)
7297 case $host in
7298 x86_64-*kfreebsd*-gnu)
7299 LD="${LD-ld} -m elf_x86_64_fbsd"
7300 ;;
7301 x86_64-*linux*)
7302 LD="${LD-ld} -m elf_x86_64"
7303 ;;
7304 powerpcle-*linux*)
7305 LD="${LD-ld} -m elf64lppc"
7306 ;;
7307 powerpc-*linux*)
7308 LD="${LD-ld} -m elf64ppc"
7309 ;;
7310 s390*-*linux*|s390*-*tpf*)
7311 LD="${LD-ld} -m elf64_s390"
7312 ;;
7313 sparc*-*linux*)
7314 LD="${LD-ld} -m elf64_sparc"
7315 ;;
7316 esac
7317 ;;
7318 esac
7319 fi
7320 rm -rf conftest*
7321 ;;
7322
7323 *-*-sco3.2v5*)
7324 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7325 SAVE_CFLAGS="$CFLAGS"
7326 CFLAGS="$CFLAGS -belf"
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7328 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7329 if ${lt_cv_cc_needs_belf+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 ac_ext=c
7333 ac_cpp='$CPP $CPPFLAGS'
7334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7337
7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7340
7341 int
7342 main ()
7343 {
7344
7345 ;
7346 return 0;
7347 }
7348 _ACEOF
7349 if ac_fn_c_try_link "$LINENO"; then :
7350 lt_cv_cc_needs_belf=yes
7351 else
7352 lt_cv_cc_needs_belf=no
7353 fi
7354 rm -f core conftest.err conftest.$ac_objext \
7355 conftest$ac_exeext conftest.$ac_ext
7356 ac_ext=c
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7361
7362 fi
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7364 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7365 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7366 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7367 CFLAGS="$SAVE_CFLAGS"
7368 fi
7369 ;;
7370 sparc*-*solaris*)
7371 # Find out which ABI we are using.
7372 echo 'int i;' > conftest.$ac_ext
7373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7374 (eval $ac_compile) 2>&5
7375 ac_status=$?
7376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377 test $ac_status = 0; }; then
7378 case `/usr/bin/file conftest.o` in
7379 *64-bit*)
7380 case $lt_cv_prog_gnu_ld in
7381 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7382 *)
7383 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7384 LD="${LD-ld} -64"
7385 fi
7386 ;;
7387 esac
7388 ;;
7389 esac
7390 fi
7391 rm -rf conftest*
7392 ;;
7393 esac
7394
7395 need_locks="$enable_libtool_lock"
7396
7397
7398 case $host_os in
7399 rhapsody* | darwin*)
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 if test -n "$DSYMUTIL"; then
7409 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7421 fi
7422 done
7423 done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7429 if test -n "$DSYMUTIL"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7431 $as_echo "$DSYMUTIL" >&6; }
7432 else
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437
7438 fi
7439 if test -z "$ac_cv_prog_DSYMUTIL"; then
7440 ac_ct_DSYMUTIL=$DSYMUTIL
7441 # Extract the first word of "dsymutil", so it can be a program name with args.
7442 set dummy dsymutil; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 if test -n "$ac_ct_DSYMUTIL"; then
7449 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 break 2
7461 fi
7462 done
7463 done
7464 IFS=$as_save_IFS
7465
7466 fi
7467 fi
7468 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7469 if test -n "$ac_ct_DSYMUTIL"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7471 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7472 else
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7475 fi
7476
7477 if test "x$ac_ct_DSYMUTIL" = x; then
7478 DSYMUTIL=":"
7479 else
7480 case $cross_compiling:$ac_tool_warned in
7481 yes:)
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned=yes ;;
7485 esac
7486 DSYMUTIL=$ac_ct_DSYMUTIL
7487 fi
7488 else
7489 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7490 fi
7491
7492 if test -n "$ac_tool_prefix"; then
7493 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7494 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_NMEDIT+:} false; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 if test -n "$NMEDIT"; then
7501 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 break 2
7513 fi
7514 done
7515 done
7516 IFS=$as_save_IFS
7517
7518 fi
7519 fi
7520 NMEDIT=$ac_cv_prog_NMEDIT
7521 if test -n "$NMEDIT"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7523 $as_echo "$NMEDIT" >&6; }
7524 else
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529
7530 fi
7531 if test -z "$ac_cv_prog_NMEDIT"; then
7532 ac_ct_NMEDIT=$NMEDIT
7533 # Extract the first word of "nmedit", so it can be a program name with args.
7534 set dummy nmedit; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 if test -n "$ac_ct_NMEDIT"; then
7541 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7553 fi
7554 done
7555 done
7556 IFS=$as_save_IFS
7557
7558 fi
7559 fi
7560 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7561 if test -n "$ac_ct_NMEDIT"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7563 $as_echo "$ac_ct_NMEDIT" >&6; }
7564 else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7567 fi
7568
7569 if test "x$ac_ct_NMEDIT" = x; then
7570 NMEDIT=":"
7571 else
7572 case $cross_compiling:$ac_tool_warned in
7573 yes:)
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576 ac_tool_warned=yes ;;
7577 esac
7578 NMEDIT=$ac_ct_NMEDIT
7579 fi
7580 else
7581 NMEDIT="$ac_cv_prog_NMEDIT"
7582 fi
7583
7584 if test -n "$ac_tool_prefix"; then
7585 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7586 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_LIPO+:} false; then :
7590 $as_echo_n "(cached) " >&6
7591 else
7592 if test -n "$LIPO"; then
7593 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 break 2
7605 fi
7606 done
7607 done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 LIPO=$ac_cv_prog_LIPO
7613 if test -n "$LIPO"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7615 $as_echo "$LIPO" >&6; }
7616 else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621
7622 fi
7623 if test -z "$ac_cv_prog_LIPO"; then
7624 ac_ct_LIPO=$LIPO
7625 # Extract the first word of "lipo", so it can be a program name with args.
7626 set dummy lipo; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 if test -n "$ac_ct_LIPO"; then
7633 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642 ac_cv_prog_ac_ct_LIPO="lipo"
7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 break 2
7645 fi
7646 done
7647 done
7648 IFS=$as_save_IFS
7649
7650 fi
7651 fi
7652 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7653 if test -n "$ac_ct_LIPO"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7655 $as_echo "$ac_ct_LIPO" >&6; }
7656 else
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7659 fi
7660
7661 if test "x$ac_ct_LIPO" = x; then
7662 LIPO=":"
7663 else
7664 case $cross_compiling:$ac_tool_warned in
7665 yes:)
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668 ac_tool_warned=yes ;;
7669 esac
7670 LIPO=$ac_ct_LIPO
7671 fi
7672 else
7673 LIPO="$ac_cv_prog_LIPO"
7674 fi
7675
7676 if test -n "$ac_tool_prefix"; then
7677 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7678 set dummy ${ac_tool_prefix}otool; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if ${ac_cv_prog_OTOOL+:} false; then :
7682 $as_echo_n "(cached) " >&6
7683 else
7684 if test -n "$OTOOL"; then
7685 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690 IFS=$as_save_IFS
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 break 2
7697 fi
7698 done
7699 done
7700 IFS=$as_save_IFS
7701
7702 fi
7703 fi
7704 OTOOL=$ac_cv_prog_OTOOL
7705 if test -n "$OTOOL"; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7707 $as_echo "$OTOOL" >&6; }
7708 else
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7712
7713
7714 fi
7715 if test -z "$ac_cv_prog_OTOOL"; then
7716 ac_ct_OTOOL=$OTOOL
7717 # Extract the first word of "otool", so it can be a program name with args.
7718 set dummy otool; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 if test -n "$ac_ct_OTOOL"; then
7725 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734 ac_cv_prog_ac_ct_OTOOL="otool"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 break 2
7737 fi
7738 done
7739 done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7745 if test -n "$ac_ct_OTOOL"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7747 $as_echo "$ac_ct_OTOOL" >&6; }
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753 if test "x$ac_ct_OTOOL" = x; then
7754 OTOOL=":"
7755 else
7756 case $cross_compiling:$ac_tool_warned in
7757 yes:)
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7760 ac_tool_warned=yes ;;
7761 esac
7762 OTOOL=$ac_ct_OTOOL
7763 fi
7764 else
7765 OTOOL="$ac_cv_prog_OTOOL"
7766 fi
7767
7768 if test -n "$ac_tool_prefix"; then
7769 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7770 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if ${ac_cv_prog_OTOOL64+:} false; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 if test -n "$OTOOL64"; then
7777 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7778 else
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7781 do
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 break 2
7789 fi
7790 done
7791 done
7792 IFS=$as_save_IFS
7793
7794 fi
7795 fi
7796 OTOOL64=$ac_cv_prog_OTOOL64
7797 if test -n "$OTOOL64"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7799 $as_echo "$OTOOL64" >&6; }
7800 else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803 fi
7804
7805
7806 fi
7807 if test -z "$ac_cv_prog_OTOOL64"; then
7808 ac_ct_OTOOL64=$OTOOL64
7809 # Extract the first word of "otool64", so it can be a program name with args.
7810 set dummy otool64; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 if test -n "$ac_ct_OTOOL64"; then
7817 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7826 ac_cv_prog_ac_ct_OTOOL64="otool64"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7829 fi
7830 done
7831 done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7837 if test -n "$ac_ct_OTOOL64"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7839 $as_echo "$ac_ct_OTOOL64" >&6; }
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 fi
7844
7845 if test "x$ac_ct_OTOOL64" = x; then
7846 OTOOL64=":"
7847 else
7848 case $cross_compiling:$ac_tool_warned in
7849 yes:)
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7852 ac_tool_warned=yes ;;
7853 esac
7854 OTOOL64=$ac_ct_OTOOL64
7855 fi
7856 else
7857 OTOOL64="$ac_cv_prog_OTOOL64"
7858 fi
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7887 $as_echo_n "checking for -single_module linker flag... " >&6; }
7888 if ${lt_cv_apple_cc_single_mod+:} false; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 lt_cv_apple_cc_single_mod=no
7892 if test -z "${LT_MULTI_MODULE}"; then
7893 # By default we will add the -single_module flag. You can override
7894 # by either setting the environment variable LT_MULTI_MODULE
7895 # non-empty at configure time, or by adding -multi_module to the
7896 # link flags.
7897 rm -rf libconftest.dylib*
7898 echo "int foo(void){return 1;}" > conftest.c
7899 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7900 -dynamiclib -Wl,-single_module conftest.c" >&5
7901 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7902 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7903 _lt_result=$?
7904 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7905 lt_cv_apple_cc_single_mod=yes
7906 else
7907 cat conftest.err >&5
7908 fi
7909 rm -rf libconftest.dylib*
7910 rm -f conftest.*
7911 fi
7912 fi
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7914 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7916 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7917 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 lt_cv_ld_exported_symbols_list=no
7921 save_LDFLAGS=$LDFLAGS
7922 echo "_main" > conftest.sym
7923 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926
7927 int
7928 main ()
7929 {
7930
7931 ;
7932 return 0;
7933 }
7934 _ACEOF
7935 if ac_fn_c_try_link "$LINENO"; then :
7936 lt_cv_ld_exported_symbols_list=yes
7937 else
7938 lt_cv_ld_exported_symbols_list=no
7939 fi
7940 rm -f core conftest.err conftest.$ac_objext \
7941 conftest$ac_exeext conftest.$ac_ext
7942 LDFLAGS="$save_LDFLAGS"
7943
7944 fi
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7946 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7948 $as_echo_n "checking for -force_load linker flag... " >&6; }
7949 if ${lt_cv_ld_force_load+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 lt_cv_ld_force_load=no
7953 cat > conftest.c << _LT_EOF
7954 int forced_loaded() { return 2;}
7955 _LT_EOF
7956 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7957 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7958 echo "$AR cru libconftest.a conftest.o" >&5
7959 $AR cru libconftest.a conftest.o 2>&5
7960 cat > conftest.c << _LT_EOF
7961 int main() { return 0;}
7962 _LT_EOF
7963 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7964 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7965 _lt_result=$?
7966 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7967 lt_cv_ld_force_load=yes
7968 else
7969 cat conftest.err >&5
7970 fi
7971 rm -f conftest.err libconftest.a conftest conftest.c
7972 rm -rf conftest.dSYM
7973
7974 fi
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7976 $as_echo "$lt_cv_ld_force_load" >&6; }
7977 case $host_os in
7978 rhapsody* | darwin1.[012])
7979 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7980 darwin1.*)
7981 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7982 darwin*) # darwin 5.x on
7983 # if running on 10.5 or later, the deployment target defaults
7984 # to the OS version, if on x86, and 10.4, the deployment
7985 # target defaults to 10.4. Don't you love it?
7986 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7987 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7988 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7989 10.[012][,.]*)
7990 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7991 10.*)
7992 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7993 esac
7994 ;;
7995 esac
7996 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7997 _lt_dar_single_mod='$single_module'
7998 fi
7999 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8000 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8001 else
8002 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8003 fi
8004 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8005 _lt_dsymutil='~$DSYMUTIL $lib || :'
8006 else
8007 _lt_dsymutil=
8008 fi
8009 ;;
8010 esac
8011
8012 for ac_header in dlfcn.h
8013 do :
8014 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8015 "
8016 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8017 cat >>confdefs.h <<_ACEOF
8018 #define HAVE_DLFCN_H 1
8019 _ACEOF
8020
8021 fi
8022
8023 done
8024
8025
8026
8027
8028
8029 # Set options
8030
8031
8032
8033 enable_dlopen=no
8034
8035
8036 enable_win32_dll=no
8037
8038
8039 # Check whether --enable-shared was given.
8040 if test "${enable_shared+set}" = set; then :
8041 enableval=$enable_shared; p=${PACKAGE-default}
8042 case $enableval in
8043 yes) enable_shared=yes ;;
8044 no) enable_shared=no ;;
8045 *)
8046 enable_shared=no
8047 # Look at the argument we got. We use all the common list separators.
8048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8049 for pkg in $enableval; do
8050 IFS="$lt_save_ifs"
8051 if test "X$pkg" = "X$p"; then
8052 enable_shared=yes
8053 fi
8054 done
8055 IFS="$lt_save_ifs"
8056 ;;
8057 esac
8058 else
8059 enable_shared=yes
8060 fi
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070 # Check whether --enable-static was given.
8071 if test "${enable_static+set}" = set; then :
8072 enableval=$enable_static; p=${PACKAGE-default}
8073 case $enableval in
8074 yes) enable_static=yes ;;
8075 no) enable_static=no ;;
8076 *)
8077 enable_static=no
8078 # Look at the argument we got. We use all the common list separators.
8079 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8080 for pkg in $enableval; do
8081 IFS="$lt_save_ifs"
8082 if test "X$pkg" = "X$p"; then
8083 enable_static=yes
8084 fi
8085 done
8086 IFS="$lt_save_ifs"
8087 ;;
8088 esac
8089 else
8090 enable_static=yes
8091 fi
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102 # Check whether --with-pic was given.
8103 if test "${with_pic+set}" = set; then :
8104 withval=$with_pic; pic_mode="$withval"
8105 else
8106 pic_mode=default
8107 fi
8108
8109
8110 test -z "$pic_mode" && pic_mode=default
8111
8112
8113
8114
8115
8116
8117
8118 # Check whether --enable-fast-install was given.
8119 if test "${enable_fast_install+set}" = set; then :
8120 enableval=$enable_fast_install; p=${PACKAGE-default}
8121 case $enableval in
8122 yes) enable_fast_install=yes ;;
8123 no) enable_fast_install=no ;;
8124 *)
8125 enable_fast_install=no
8126 # Look at the argument we got. We use all the common list separators.
8127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8128 for pkg in $enableval; do
8129 IFS="$lt_save_ifs"
8130 if test "X$pkg" = "X$p"; then
8131 enable_fast_install=yes
8132 fi
8133 done
8134 IFS="$lt_save_ifs"
8135 ;;
8136 esac
8137 else
8138 enable_fast_install=yes
8139 fi
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151 # This can be used to rebuild libtool when needed
8152 LIBTOOL_DEPS="$ltmain"
8153
8154 # Always use our own libtool.
8155 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182 test -z "$LN_S" && LN_S="ln -s"
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197 if test -n "${ZSH_VERSION+set}" ; then
8198 setopt NO_GLOB_SUBST
8199 fi
8200
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8202 $as_echo_n "checking for objdir... " >&6; }
8203 if ${lt_cv_objdir+:} false; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 rm -f .libs 2>/dev/null
8207 mkdir .libs 2>/dev/null
8208 if test -d .libs; then
8209 lt_cv_objdir=.libs
8210 else
8211 # MS-DOS does not allow filenames that begin with a dot.
8212 lt_cv_objdir=_libs
8213 fi
8214 rmdir .libs 2>/dev/null
8215 fi
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8217 $as_echo "$lt_cv_objdir" >&6; }
8218 objdir=$lt_cv_objdir
8219
8220
8221
8222
8223
8224 cat >>confdefs.h <<_ACEOF
8225 #define LT_OBJDIR "$lt_cv_objdir/"
8226 _ACEOF
8227
8228
8229
8230
8231 case $host_os in
8232 aix3*)
8233 # AIX sometimes has problems with the GCC collect2 program. For some
8234 # reason, if we set the COLLECT_NAMES environment variable, the problems
8235 # vanish in a puff of smoke.
8236 if test "X${COLLECT_NAMES+set}" != Xset; then
8237 COLLECT_NAMES=
8238 export COLLECT_NAMES
8239 fi
8240 ;;
8241 esac
8242
8243 # Global variables:
8244 ofile=libtool
8245 can_build_shared=yes
8246
8247 # All known linkers require a `.a' archive for static linking (except MSVC,
8248 # which needs '.lib').
8249 libext=a
8250
8251 with_gnu_ld="$lt_cv_prog_gnu_ld"
8252
8253 old_CC="$CC"
8254 old_CFLAGS="$CFLAGS"
8255
8256 # Set sane defaults for various variables
8257 test -z "$CC" && CC=cc
8258 test -z "$LTCC" && LTCC=$CC
8259 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8260 test -z "$LD" && LD=ld
8261 test -z "$ac_objext" && ac_objext=o
8262
8263 for cc_temp in $compiler""; do
8264 case $cc_temp in
8265 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8266 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8267 \-*) ;;
8268 *) break;;
8269 esac
8270 done
8271 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8272
8273
8274 # Only perform the check for file, if the check method requires it
8275 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8276 case $deplibs_check_method in
8277 file_magic*)
8278 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8280 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8281 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 case $MAGIC_CMD in
8285 [\\/*] | ?:[\\/]*)
8286 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8287 ;;
8288 *)
8289 lt_save_MAGIC_CMD="$MAGIC_CMD"
8290 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8291 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8292 for ac_dir in $ac_dummy; do
8293 IFS="$lt_save_ifs"
8294 test -z "$ac_dir" && ac_dir=.
8295 if test -f $ac_dir/${ac_tool_prefix}file; then
8296 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8297 if test -n "$file_magic_test_file"; then
8298 case $deplibs_check_method in
8299 "file_magic "*)
8300 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8302 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8303 $EGREP "$file_magic_regex" > /dev/null; then
8304 :
8305 else
8306 cat <<_LT_EOF 1>&2
8307
8308 *** Warning: the command libtool uses to detect shared libraries,
8309 *** $file_magic_cmd, produces output that libtool cannot recognize.
8310 *** The result is that libtool may fail to recognize shared libraries
8311 *** as such. This will affect the creation of libtool libraries that
8312 *** depend on shared libraries, but programs linked with such libtool
8313 *** libraries will work regardless of this problem. Nevertheless, you
8314 *** may want to report the problem to your system manager and/or to
8315 *** bug-libtool@gnu.org
8316
8317 _LT_EOF
8318 fi ;;
8319 esac
8320 fi
8321 break
8322 fi
8323 done
8324 IFS="$lt_save_ifs"
8325 MAGIC_CMD="$lt_save_MAGIC_CMD"
8326 ;;
8327 esac
8328 fi
8329
8330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8331 if test -n "$MAGIC_CMD"; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8333 $as_echo "$MAGIC_CMD" >&6; }
8334 else
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8337 fi
8338
8339
8340
8341
8342
8343 if test -z "$lt_cv_path_MAGIC_CMD"; then
8344 if test -n "$ac_tool_prefix"; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8346 $as_echo_n "checking for file... " >&6; }
8347 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 case $MAGIC_CMD in
8351 [\\/*] | ?:[\\/]*)
8352 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8353 ;;
8354 *)
8355 lt_save_MAGIC_CMD="$MAGIC_CMD"
8356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8357 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8358 for ac_dir in $ac_dummy; do
8359 IFS="$lt_save_ifs"
8360 test -z "$ac_dir" && ac_dir=.
8361 if test -f $ac_dir/file; then
8362 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8363 if test -n "$file_magic_test_file"; then
8364 case $deplibs_check_method in
8365 "file_magic "*)
8366 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8367 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8368 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8369 $EGREP "$file_magic_regex" > /dev/null; then
8370 :
8371 else
8372 cat <<_LT_EOF 1>&2
8373
8374 *** Warning: the command libtool uses to detect shared libraries,
8375 *** $file_magic_cmd, produces output that libtool cannot recognize.
8376 *** The result is that libtool may fail to recognize shared libraries
8377 *** as such. This will affect the creation of libtool libraries that
8378 *** depend on shared libraries, but programs linked with such libtool
8379 *** libraries will work regardless of this problem. Nevertheless, you
8380 *** may want to report the problem to your system manager and/or to
8381 *** bug-libtool@gnu.org
8382
8383 _LT_EOF
8384 fi ;;
8385 esac
8386 fi
8387 break
8388 fi
8389 done
8390 IFS="$lt_save_ifs"
8391 MAGIC_CMD="$lt_save_MAGIC_CMD"
8392 ;;
8393 esac
8394 fi
8395
8396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8397 if test -n "$MAGIC_CMD"; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8399 $as_echo "$MAGIC_CMD" >&6; }
8400 else
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 $as_echo "no" >&6; }
8403 fi
8404
8405
8406 else
8407 MAGIC_CMD=:
8408 fi
8409 fi
8410
8411 fi
8412 ;;
8413 esac
8414
8415 # Use C for the default configuration in the libtool script
8416
8417 lt_save_CC="$CC"
8418 ac_ext=c
8419 ac_cpp='$CPP $CPPFLAGS'
8420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8423
8424
8425 # Source file extension for C test sources.
8426 ac_ext=c
8427
8428 # Object file extension for compiled C test sources.
8429 objext=o
8430 objext=$objext
8431
8432 # Code to be used in simple compile tests
8433 lt_simple_compile_test_code="int some_variable = 0;"
8434
8435 # Code to be used in simple link tests
8436 lt_simple_link_test_code='int main(){return(0);}'
8437
8438
8439
8440
8441
8442
8443
8444 # If no C compiler was specified, use CC.
8445 LTCC=${LTCC-"$CC"}
8446
8447 # If no C compiler flags were specified, use CFLAGS.
8448 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8449
8450 # Allow CC to be a program name with arguments.
8451 compiler=$CC
8452
8453 # Save the default compiler, since it gets overwritten when the other
8454 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8455 compiler_DEFAULT=$CC
8456
8457 # save warnings/boilerplate of simple test code
8458 ac_outfile=conftest.$ac_objext
8459 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8460 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8461 _lt_compiler_boilerplate=`cat conftest.err`
8462 $RM conftest*
8463
8464 ac_outfile=conftest.$ac_objext
8465 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8466 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8467 _lt_linker_boilerplate=`cat conftest.err`
8468 $RM -r conftest*
8469
8470
8471 ## CAVEAT EMPTOR:
8472 ## There is no encapsulation within the following macros, do not change
8473 ## the running order or otherwise move them around unless you know exactly
8474 ## what you are doing...
8475 if test -n "$compiler"; then
8476
8477 lt_prog_compiler_no_builtin_flag=
8478
8479 if test "$GCC" = yes; then
8480 case $cc_basename in
8481 nvcc*)
8482 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8483 *)
8484 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8485 esac
8486
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8488 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8489 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 lt_cv_prog_compiler_rtti_exceptions=no
8493 ac_outfile=conftest.$ac_objext
8494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8495 lt_compiler_flag="-fno-rtti -fno-exceptions"
8496 # Insert the option either (1) after the last *FLAGS variable, or
8497 # (2) before a word containing "conftest.", or (3) at the end.
8498 # Note that $ac_compile itself does not contain backslashes and begins
8499 # with a dollar sign (not a hyphen), so the echo should work correctly.
8500 # The option is referenced via a variable to avoid confusing sed.
8501 lt_compile=`echo "$ac_compile" | $SED \
8502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8504 -e 's:$: $lt_compiler_flag:'`
8505 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8506 (eval "$lt_compile" 2>conftest.err)
8507 ac_status=$?
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 if (exit $ac_status) && test -s "$ac_outfile"; then
8511 # The compiler can only warn and ignore the option if not recognized
8512 # So say no if there are warnings other than the usual output.
8513 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8515 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8516 lt_cv_prog_compiler_rtti_exceptions=yes
8517 fi
8518 fi
8519 $RM conftest*
8520
8521 fi
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8523 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8524
8525 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8526 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8527 else
8528 :
8529 fi
8530
8531 fi
8532
8533
8534
8535
8536
8537
8538 lt_prog_compiler_wl=
8539 lt_prog_compiler_pic=
8540 lt_prog_compiler_static=
8541
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8543 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8544
8545 if test "$GCC" = yes; then
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_static='-static'
8548
8549 case $host_os in
8550 aix*)
8551 # All AIX code is PIC.
8552 if test "$host_cpu" = ia64; then
8553 # AIX 5 now supports IA64 processor
8554 lt_prog_compiler_static='-Bstatic'
8555 fi
8556 lt_prog_compiler_pic='-fPIC'
8557 ;;
8558
8559 amigaos*)
8560 case $host_cpu in
8561 powerpc)
8562 # see comment about AmigaOS4 .so support
8563 lt_prog_compiler_pic='-fPIC'
8564 ;;
8565 m68k)
8566 # FIXME: we need at least 68020 code to build shared libraries, but
8567 # adding the `-m68020' flag to GCC prevents building anything better,
8568 # like `-m68040'.
8569 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8570 ;;
8571 esac
8572 ;;
8573
8574 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8575 # PIC is the default for these OSes.
8576 ;;
8577
8578 mingw* | cygwin* | pw32* | os2* | cegcc*)
8579 # This hack is so that the source file can tell whether it is being
8580 # built for inclusion in a dll (and should export symbols for example).
8581 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8582 # (--disable-auto-import) libraries
8583 lt_prog_compiler_pic='-DDLL_EXPORT'
8584 ;;
8585
8586 darwin* | rhapsody*)
8587 # PIC is the default on this platform
8588 # Common symbols not allowed in MH_DYLIB files
8589 lt_prog_compiler_pic='-fno-common'
8590 ;;
8591
8592 haiku*)
8593 # PIC is the default for Haiku.
8594 # The "-static" flag exists, but is broken.
8595 lt_prog_compiler_static=
8596 ;;
8597
8598 hpux*)
8599 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8600 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8601 # sets the default TLS model and affects inlining.
8602 case $host_cpu in
8603 hppa*64*)
8604 # +Z the default
8605 ;;
8606 *)
8607 lt_prog_compiler_pic='-fPIC'
8608 ;;
8609 esac
8610 ;;
8611
8612 interix[3-9]*)
8613 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8614 # Instead, we relocate shared libraries at runtime.
8615 ;;
8616
8617 msdosdjgpp*)
8618 # Just because we use GCC doesn't mean we suddenly get shared libraries
8619 # on systems that don't support them.
8620 lt_prog_compiler_can_build_shared=no
8621 enable_shared=no
8622 ;;
8623
8624 *nto* | *qnx*)
8625 # QNX uses GNU C++, but need to define -shared option too, otherwise
8626 # it will coredump.
8627 lt_prog_compiler_pic='-fPIC -shared'
8628 ;;
8629
8630 sysv4*MP*)
8631 if test -d /usr/nec; then
8632 lt_prog_compiler_pic=-Kconform_pic
8633 fi
8634 ;;
8635
8636 *)
8637 lt_prog_compiler_pic='-fPIC'
8638 ;;
8639 esac
8640
8641 case $cc_basename in
8642 nvcc*) # Cuda Compiler Driver 2.2
8643 lt_prog_compiler_wl='-Xlinker '
8644 lt_prog_compiler_pic='-Xcompiler -fPIC'
8645 ;;
8646 esac
8647 else
8648 # PORTME Check for flag to pass linker flags through the system compiler.
8649 case $host_os in
8650 aix*)
8651 lt_prog_compiler_wl='-Wl,'
8652 if test "$host_cpu" = ia64; then
8653 # AIX 5 now supports IA64 processor
8654 lt_prog_compiler_static='-Bstatic'
8655 else
8656 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8657 fi
8658 ;;
8659
8660 mingw* | cygwin* | pw32* | os2* | cegcc*)
8661 # This hack is so that the source file can tell whether it is being
8662 # built for inclusion in a dll (and should export symbols for example).
8663 lt_prog_compiler_pic='-DDLL_EXPORT'
8664 ;;
8665
8666 hpux9* | hpux10* | hpux11*)
8667 lt_prog_compiler_wl='-Wl,'
8668 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8669 # not for PA HP-UX.
8670 case $host_cpu in
8671 hppa*64*|ia64*)
8672 # +Z the default
8673 ;;
8674 *)
8675 lt_prog_compiler_pic='+Z'
8676 ;;
8677 esac
8678 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8679 lt_prog_compiler_static='${wl}-a ${wl}archive'
8680 ;;
8681
8682 irix5* | irix6* | nonstopux*)
8683 lt_prog_compiler_wl='-Wl,'
8684 # PIC (with -KPIC) is the default.
8685 lt_prog_compiler_static='-non_shared'
8686 ;;
8687
8688 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8689 case $cc_basename in
8690 # old Intel for x86_64 which still supported -KPIC.
8691 ecc*)
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_pic='-KPIC'
8694 lt_prog_compiler_static='-static'
8695 ;;
8696 # icc used to be incompatible with GCC.
8697 # ICC 10 doesn't accept -KPIC any more.
8698 icc* | ifort*)
8699 lt_prog_compiler_wl='-Wl,'
8700 lt_prog_compiler_pic='-fPIC'
8701 lt_prog_compiler_static='-static'
8702 ;;
8703 # Lahey Fortran 8.1.
8704 lf95*)
8705 lt_prog_compiler_wl='-Wl,'
8706 lt_prog_compiler_pic='--shared'
8707 lt_prog_compiler_static='--static'
8708 ;;
8709 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8710 # Portland Group compilers (*not* the Pentium gcc compiler,
8711 # which looks to be a dead project)
8712 lt_prog_compiler_wl='-Wl,'
8713 lt_prog_compiler_pic='-fpic'
8714 lt_prog_compiler_static='-Bstatic'
8715 ;;
8716 ccc*)
8717 lt_prog_compiler_wl='-Wl,'
8718 # All Alpha code is PIC.
8719 lt_prog_compiler_static='-non_shared'
8720 ;;
8721 xl* | bgxl* | bgf* | mpixl*)
8722 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8723 lt_prog_compiler_wl='-Wl,'
8724 lt_prog_compiler_pic='-qpic'
8725 lt_prog_compiler_static='-qstaticlink'
8726 ;;
8727 *)
8728 case `$CC -V 2>&1 | sed 5q` in
8729 *Sun\ F* | *Sun*Fortran*)
8730 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8731 lt_prog_compiler_pic='-KPIC'
8732 lt_prog_compiler_static='-Bstatic'
8733 lt_prog_compiler_wl=''
8734 ;;
8735 *Sun\ C*)
8736 # Sun C 5.9
8737 lt_prog_compiler_pic='-KPIC'
8738 lt_prog_compiler_static='-Bstatic'
8739 lt_prog_compiler_wl='-Wl,'
8740 ;;
8741 esac
8742 ;;
8743 esac
8744 ;;
8745
8746 newsos6)
8747 lt_prog_compiler_pic='-KPIC'
8748 lt_prog_compiler_static='-Bstatic'
8749 ;;
8750
8751 *nto* | *qnx*)
8752 # QNX uses GNU C++, but need to define -shared option too, otherwise
8753 # it will coredump.
8754 lt_prog_compiler_pic='-fPIC -shared'
8755 ;;
8756
8757 osf3* | osf4* | osf5*)
8758 lt_prog_compiler_wl='-Wl,'
8759 # All OSF/1 code is PIC.
8760 lt_prog_compiler_static='-non_shared'
8761 ;;
8762
8763 rdos*)
8764 lt_prog_compiler_static='-non_shared'
8765 ;;
8766
8767 solaris*)
8768 lt_prog_compiler_pic='-KPIC'
8769 lt_prog_compiler_static='-Bstatic'
8770 case $cc_basename in
8771 f77* | f90* | f95*)
8772 lt_prog_compiler_wl='-Qoption ld ';;
8773 *)
8774 lt_prog_compiler_wl='-Wl,';;
8775 esac
8776 ;;
8777
8778 sunos4*)
8779 lt_prog_compiler_wl='-Qoption ld '
8780 lt_prog_compiler_pic='-PIC'
8781 lt_prog_compiler_static='-Bstatic'
8782 ;;
8783
8784 sysv4 | sysv4.2uw2* | sysv4.3*)
8785 lt_prog_compiler_wl='-Wl,'
8786 lt_prog_compiler_pic='-KPIC'
8787 lt_prog_compiler_static='-Bstatic'
8788 ;;
8789
8790 sysv4*MP*)
8791 if test -d /usr/nec ;then
8792 lt_prog_compiler_pic='-Kconform_pic'
8793 lt_prog_compiler_static='-Bstatic'
8794 fi
8795 ;;
8796
8797 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8798 lt_prog_compiler_wl='-Wl,'
8799 lt_prog_compiler_pic='-KPIC'
8800 lt_prog_compiler_static='-Bstatic'
8801 ;;
8802
8803 unicos*)
8804 lt_prog_compiler_wl='-Wl,'
8805 lt_prog_compiler_can_build_shared=no
8806 ;;
8807
8808 uts4*)
8809 lt_prog_compiler_pic='-pic'
8810 lt_prog_compiler_static='-Bstatic'
8811 ;;
8812
8813 *)
8814 lt_prog_compiler_can_build_shared=no
8815 ;;
8816 esac
8817 fi
8818
8819 case $host_os in
8820 # For platforms which do not support PIC, -DPIC is meaningless:
8821 *djgpp*)
8822 lt_prog_compiler_pic=
8823 ;;
8824 *)
8825 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8826 ;;
8827 esac
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8829 $as_echo "$lt_prog_compiler_pic" >&6; }
8830
8831
8832
8833
8834
8835
8836 #
8837 # Check to make sure the PIC flag actually works.
8838 #
8839 if test -n "$lt_prog_compiler_pic"; then
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8841 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8842 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 lt_cv_prog_compiler_pic_works=no
8846 ac_outfile=conftest.$ac_objext
8847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8848 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8849 # Insert the option either (1) after the last *FLAGS variable, or
8850 # (2) before a word containing "conftest.", or (3) at the end.
8851 # Note that $ac_compile itself does not contain backslashes and begins
8852 # with a dollar sign (not a hyphen), so the echo should work correctly.
8853 # The option is referenced via a variable to avoid confusing sed.
8854 lt_compile=`echo "$ac_compile" | $SED \
8855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857 -e 's:$: $lt_compiler_flag:'`
8858 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8859 (eval "$lt_compile" 2>conftest.err)
8860 ac_status=$?
8861 cat conftest.err >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 if (exit $ac_status) && test -s "$ac_outfile"; then
8864 # The compiler can only warn and ignore the option if not recognized
8865 # So say no if there are warnings other than the usual output.
8866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8868 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8869 lt_cv_prog_compiler_pic_works=yes
8870 fi
8871 fi
8872 $RM conftest*
8873
8874 fi
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8876 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8877
8878 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8879 case $lt_prog_compiler_pic in
8880 "" | " "*) ;;
8881 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8882 esac
8883 else
8884 lt_prog_compiler_pic=
8885 lt_prog_compiler_can_build_shared=no
8886 fi
8887
8888 fi
8889
8890
8891
8892
8893
8894
8895 #
8896 # Check to make sure the static flag actually works.
8897 #
8898 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8900 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8901 if ${lt_cv_prog_compiler_static_works+:} false; then :
8902 $as_echo_n "(cached) " >&6
8903 else
8904 lt_cv_prog_compiler_static_works=no
8905 save_LDFLAGS="$LDFLAGS"
8906 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8907 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8908 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8909 # The linker can only warn and ignore the option if not recognized
8910 # So say no if there are warnings
8911 if test -s conftest.err; then
8912 # Append any errors to the config.log.
8913 cat conftest.err 1>&5
8914 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8916 if diff conftest.exp conftest.er2 >/dev/null; then
8917 lt_cv_prog_compiler_static_works=yes
8918 fi
8919 else
8920 lt_cv_prog_compiler_static_works=yes
8921 fi
8922 fi
8923 $RM -r conftest*
8924 LDFLAGS="$save_LDFLAGS"
8925
8926 fi
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8928 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8929
8930 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8931 :
8932 else
8933 lt_prog_compiler_static=
8934 fi
8935
8936
8937
8938
8939
8940
8941
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8943 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8944 if ${lt_cv_prog_compiler_c_o+:} false; then :
8945 $as_echo_n "(cached) " >&6
8946 else
8947 lt_cv_prog_compiler_c_o=no
8948 $RM -r conftest 2>/dev/null
8949 mkdir conftest
8950 cd conftest
8951 mkdir out
8952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8953
8954 lt_compiler_flag="-o out/conftest2.$ac_objext"
8955 # Insert the option either (1) after the last *FLAGS variable, or
8956 # (2) before a word containing "conftest.", or (3) at the end.
8957 # Note that $ac_compile itself does not contain backslashes and begins
8958 # with a dollar sign (not a hyphen), so the echo should work correctly.
8959 lt_compile=`echo "$ac_compile" | $SED \
8960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8962 -e 's:$: $lt_compiler_flag:'`
8963 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8964 (eval "$lt_compile" 2>out/conftest.err)
8965 ac_status=$?
8966 cat out/conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8969 then
8970 # The compiler can only warn and ignore the option if not recognized
8971 # So say no if there are warnings
8972 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8973 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8974 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8975 lt_cv_prog_compiler_c_o=yes
8976 fi
8977 fi
8978 chmod u+w . 2>&5
8979 $RM conftest*
8980 # SGI C++ compiler will create directory out/ii_files/ for
8981 # template instantiation
8982 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8983 $RM out/* && rmdir out
8984 cd ..
8985 $RM -r conftest
8986 $RM conftest*
8987
8988 fi
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8990 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8991
8992
8993
8994
8995
8996
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8998 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8999 if ${lt_cv_prog_compiler_c_o+:} false; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002 lt_cv_prog_compiler_c_o=no
9003 $RM -r conftest 2>/dev/null
9004 mkdir conftest
9005 cd conftest
9006 mkdir out
9007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9008
9009 lt_compiler_flag="-o out/conftest2.$ac_objext"
9010 # Insert the option either (1) after the last *FLAGS variable, or
9011 # (2) before a word containing "conftest.", or (3) at the end.
9012 # Note that $ac_compile itself does not contain backslashes and begins
9013 # with a dollar sign (not a hyphen), so the echo should work correctly.
9014 lt_compile=`echo "$ac_compile" | $SED \
9015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9017 -e 's:$: $lt_compiler_flag:'`
9018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9019 (eval "$lt_compile" 2>out/conftest.err)
9020 ac_status=$?
9021 cat out/conftest.err >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9024 then
9025 # The compiler can only warn and ignore the option if not recognized
9026 # So say no if there are warnings
9027 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9028 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9029 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9030 lt_cv_prog_compiler_c_o=yes
9031 fi
9032 fi
9033 chmod u+w . 2>&5
9034 $RM conftest*
9035 # SGI C++ compiler will create directory out/ii_files/ for
9036 # template instantiation
9037 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9038 $RM out/* && rmdir out
9039 cd ..
9040 $RM -r conftest
9041 $RM conftest*
9042
9043 fi
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9045 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9046
9047
9048
9049
9050 hard_links="nottested"
9051 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9052 # do not overwrite the value of need_locks provided by the user
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9054 $as_echo_n "checking if we can lock with hard links... " >&6; }
9055 hard_links=yes
9056 $RM conftest*
9057 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9058 touch conftest.a
9059 ln conftest.a conftest.b 2>&5 || hard_links=no
9060 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9062 $as_echo "$hard_links" >&6; }
9063 if test "$hard_links" = no; then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9065 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9066 need_locks=warn
9067 fi
9068 else
9069 need_locks=no
9070 fi
9071
9072
9073
9074
9075
9076
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9078 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9079
9080 runpath_var=
9081 allow_undefined_flag=
9082 always_export_symbols=no
9083 archive_cmds=
9084 archive_expsym_cmds=
9085 compiler_needs_object=no
9086 enable_shared_with_static_runtimes=no
9087 export_dynamic_flag_spec=
9088 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9089 hardcode_automatic=no
9090 hardcode_direct=no
9091 hardcode_direct_absolute=no
9092 hardcode_libdir_flag_spec=
9093 hardcode_libdir_flag_spec_ld=
9094 hardcode_libdir_separator=
9095 hardcode_minus_L=no
9096 hardcode_shlibpath_var=unsupported
9097 inherit_rpath=no
9098 link_all_deplibs=unknown
9099 module_cmds=
9100 module_expsym_cmds=
9101 old_archive_from_new_cmds=
9102 old_archive_from_expsyms_cmds=
9103 thread_safe_flag_spec=
9104 whole_archive_flag_spec=
9105 # include_expsyms should be a list of space-separated symbols to be *always*
9106 # included in the symbol list
9107 include_expsyms=
9108 # exclude_expsyms can be an extended regexp of symbols to exclude
9109 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9110 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9111 # as well as any symbol that contains `d'.
9112 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9113 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9114 # platforms (ab)use it in PIC code, but their linkers get confused if
9115 # the symbol is explicitly referenced. Since portable code cannot
9116 # rely on this symbol name, it's probably fine to never include it in
9117 # preloaded symbol tables.
9118 # Exclude shared library initialization/finalization symbols.
9119 extract_expsyms_cmds=
9120
9121 case $host_os in
9122 cygwin* | mingw* | pw32* | cegcc*)
9123 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9124 # When not using gcc, we currently assume that we are using
9125 # Microsoft Visual C++.
9126 if test "$GCC" != yes; then
9127 with_gnu_ld=no
9128 fi
9129 ;;
9130 interix*)
9131 # we just hope/assume this is gcc and not c89 (= MSVC++)
9132 with_gnu_ld=yes
9133 ;;
9134 openbsd*)
9135 with_gnu_ld=no
9136 ;;
9137 esac
9138
9139 ld_shlibs=yes
9140
9141 # On some targets, GNU ld is compatible enough with the native linker
9142 # that we're better off using the native interface for both.
9143 lt_use_gnu_ld_interface=no
9144 if test "$with_gnu_ld" = yes; then
9145 case $host_os in
9146 aix*)
9147 # The AIX port of GNU ld has always aspired to compatibility
9148 # with the native linker. However, as the warning in the GNU ld
9149 # block says, versions before 2.19.5* couldn't really create working
9150 # shared libraries, regardless of the interface used.
9151 case `$LD -v 2>&1` in
9152 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9153 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9154 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9155 *)
9156 lt_use_gnu_ld_interface=yes
9157 ;;
9158 esac
9159 ;;
9160 *)
9161 lt_use_gnu_ld_interface=yes
9162 ;;
9163 esac
9164 fi
9165
9166 if test "$lt_use_gnu_ld_interface" = yes; then
9167 # If archive_cmds runs LD, not CC, wlarc should be empty
9168 wlarc='${wl}'
9169
9170 # Set some defaults for GNU ld with shared library support. These
9171 # are reset later if shared libraries are not supported. Putting them
9172 # here allows them to be overridden if necessary.
9173 runpath_var=LD_RUN_PATH
9174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9175 export_dynamic_flag_spec='${wl}--export-dynamic'
9176 # ancient GNU ld didn't support --whole-archive et. al.
9177 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9178 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9179 else
9180 whole_archive_flag_spec=
9181 fi
9182 supports_anon_versioning=no
9183 case `$LD -v 2>&1` in
9184 *GNU\ gold*) supports_anon_versioning=yes ;;
9185 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9186 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9187 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9188 *\ 2.11.*) ;; # other 2.11 versions
9189 *) supports_anon_versioning=yes ;;
9190 esac
9191
9192 # See if GNU ld supports shared libraries.
9193 case $host_os in
9194 aix[3-9]*)
9195 # On AIX/PPC, the GNU linker is very broken
9196 if test "$host_cpu" != ia64; then
9197 ld_shlibs=no
9198 cat <<_LT_EOF 1>&2
9199
9200 *** Warning: the GNU linker, at least up to release 2.19, is reported
9201 *** to be unable to reliably create shared libraries on AIX.
9202 *** Therefore, libtool is disabling shared libraries support. If you
9203 *** really care for shared libraries, you may want to install binutils
9204 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9205 *** You will then need to restart the configuration process.
9206
9207 _LT_EOF
9208 fi
9209 ;;
9210
9211 amigaos*)
9212 case $host_cpu in
9213 powerpc)
9214 # see comment about AmigaOS4 .so support
9215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9216 archive_expsym_cmds=''
9217 ;;
9218 m68k)
9219 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)'
9220 hardcode_libdir_flag_spec='-L$libdir'
9221 hardcode_minus_L=yes
9222 ;;
9223 esac
9224 ;;
9225
9226 beos*)
9227 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9228 allow_undefined_flag=unsupported
9229 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9230 # support --undefined. This deserves some investigation. FIXME
9231 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9232 else
9233 ld_shlibs=no
9234 fi
9235 ;;
9236
9237 cygwin* | mingw* | pw32* | cegcc*)
9238 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9239 # as there is no search path for DLLs.
9240 hardcode_libdir_flag_spec='-L$libdir'
9241 export_dynamic_flag_spec='${wl}--export-all-symbols'
9242 allow_undefined_flag=unsupported
9243 always_export_symbols=no
9244 enable_shared_with_static_runtimes=yes
9245 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9246
9247 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9249 # If the export-symbols file already is a .def file (1st line
9250 # is EXPORTS), use it as is; otherwise, prepend...
9251 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9252 cp $export_symbols $output_objdir/$soname.def;
9253 else
9254 echo EXPORTS > $output_objdir/$soname.def;
9255 cat $export_symbols >> $output_objdir/$soname.def;
9256 fi~
9257 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9258 else
9259 ld_shlibs=no
9260 fi
9261 ;;
9262
9263 haiku*)
9264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9265 link_all_deplibs=yes
9266 ;;
9267
9268 interix[3-9]*)
9269 hardcode_direct=no
9270 hardcode_shlibpath_var=no
9271 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9272 export_dynamic_flag_spec='${wl}-E'
9273 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9274 # Instead, shared libraries are loaded at an image base (0x10000000 by
9275 # default) and relocated if they conflict, which is a slow very memory
9276 # consuming and fragmenting process. To avoid this, we pick a random,
9277 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9278 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9279 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9280 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'
9281 ;;
9282
9283 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9284 tmp_diet=no
9285 if test "$host_os" = linux-dietlibc; then
9286 case $cc_basename in
9287 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9288 esac
9289 fi
9290 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9291 && test "$tmp_diet" = no
9292 then
9293 tmp_addflag=' $pic_flag'
9294 tmp_sharedflag='-shared'
9295 case $cc_basename,$host_cpu in
9296 pgcc*) # Portland Group C compiler
9297 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'
9298 tmp_addflag=' $pic_flag'
9299 ;;
9300 pgf77* | pgf90* | pgf95* | pgfortran*)
9301 # Portland Group f77 and f90 compilers
9302 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'
9303 tmp_addflag=' $pic_flag -Mnomain' ;;
9304 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9305 tmp_addflag=' -i_dynamic' ;;
9306 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9307 tmp_addflag=' -i_dynamic -nofor_main' ;;
9308 ifc* | ifort*) # Intel Fortran compiler
9309 tmp_addflag=' -nofor_main' ;;
9310 lf95*) # Lahey Fortran 8.1
9311 whole_archive_flag_spec=
9312 tmp_sharedflag='--shared' ;;
9313 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9314 tmp_sharedflag='-qmkshrobj'
9315 tmp_addflag= ;;
9316 nvcc*) # Cuda Compiler Driver 2.2
9317 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'
9318 compiler_needs_object=yes
9319 ;;
9320 esac
9321 case `$CC -V 2>&1 | sed 5q` in
9322 *Sun\ C*) # Sun C 5.9
9323 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'
9324 compiler_needs_object=yes
9325 tmp_sharedflag='-G' ;;
9326 *Sun\ F*) # Sun Fortran 8.3
9327 tmp_sharedflag='-G' ;;
9328 esac
9329 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9330
9331 if test "x$supports_anon_versioning" = xyes; then
9332 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9334 echo "local: *; };" >> $output_objdir/$libname.ver~
9335 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9336 fi
9337
9338 case $cc_basename in
9339 xlf* | bgf* | bgxlf* | mpixlf*)
9340 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9341 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9342 hardcode_libdir_flag_spec=
9343 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9344 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9345 if test "x$supports_anon_versioning" = xyes; then
9346 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9347 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9348 echo "local: *; };" >> $output_objdir/$libname.ver~
9349 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9350 fi
9351 ;;
9352 esac
9353 else
9354 ld_shlibs=no
9355 fi
9356 ;;
9357
9358 netbsd*)
9359 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9360 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9361 wlarc=
9362 else
9363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9364 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9365 fi
9366 ;;
9367
9368 solaris*)
9369 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9370 ld_shlibs=no
9371 cat <<_LT_EOF 1>&2
9372
9373 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9374 *** create shared libraries on Solaris systems. Therefore, libtool
9375 *** is disabling shared libraries support. We urge you to upgrade GNU
9376 *** binutils to release 2.9.1 or newer. Another option is to modify
9377 *** your PATH or compiler configuration so that the native linker is
9378 *** used, and then restart.
9379
9380 _LT_EOF
9381 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9384 else
9385 ld_shlibs=no
9386 fi
9387 ;;
9388
9389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9390 case `$LD -v 2>&1` in
9391 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9392 ld_shlibs=no
9393 cat <<_LT_EOF 1>&2
9394
9395 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9396 *** reliably create shared libraries on SCO systems. Therefore, libtool
9397 *** is disabling shared libraries support. We urge you to upgrade GNU
9398 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9399 *** your PATH or compiler configuration so that the native linker is
9400 *** used, and then restart.
9401
9402 _LT_EOF
9403 ;;
9404 *)
9405 # For security reasons, it is highly recommended that you always
9406 # use absolute paths for naming shared libraries, and exclude the
9407 # DT_RUNPATH tag from executables and libraries. But doing so
9408 # requires that you compile everything twice, which is a pain.
9409 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9412 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9413 else
9414 ld_shlibs=no
9415 fi
9416 ;;
9417 esac
9418 ;;
9419
9420 sunos4*)
9421 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9422 wlarc=
9423 hardcode_direct=yes
9424 hardcode_shlibpath_var=no
9425 ;;
9426
9427 *)
9428 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9431 else
9432 ld_shlibs=no
9433 fi
9434 ;;
9435 esac
9436
9437 if test "$ld_shlibs" = no; then
9438 runpath_var=
9439 hardcode_libdir_flag_spec=
9440 export_dynamic_flag_spec=
9441 whole_archive_flag_spec=
9442 fi
9443 else
9444 # PORTME fill in a description of your system's linker (not GNU ld)
9445 case $host_os in
9446 aix3*)
9447 allow_undefined_flag=unsupported
9448 always_export_symbols=yes
9449 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'
9450 # Note: this linker hardcodes the directories in LIBPATH if there
9451 # are no directories specified by -L.
9452 hardcode_minus_L=yes
9453 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9454 # Neither direct hardcoding nor static linking is supported with a
9455 # broken collect2.
9456 hardcode_direct=unsupported
9457 fi
9458 ;;
9459
9460 aix[4-9]*)
9461 if test "$host_cpu" = ia64; then
9462 # On IA64, the linker does run time linking by default, so we don't
9463 # have to do anything special.
9464 aix_use_runtimelinking=no
9465 exp_sym_flag='-Bexport'
9466 no_entry_flag=""
9467 else
9468 # If we're using GNU nm, then we don't want the "-C" option.
9469 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9470 # Also, AIX nm treats weak defined symbols like other global
9471 # defined symbols, whereas GNU nm marks them as "W".
9472 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9473 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'
9474 else
9475 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'
9476 fi
9477 aix_use_runtimelinking=no
9478
9479 # Test if we are trying to use run time linking or normal
9480 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9481 # need to do runtime linking.
9482 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9483 for ld_flag in $LDFLAGS; do
9484 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9485 aix_use_runtimelinking=yes
9486 break
9487 fi
9488 done
9489 ;;
9490 esac
9491
9492 exp_sym_flag='-bexport'
9493 no_entry_flag='-bnoentry'
9494 fi
9495
9496 # When large executables or shared objects are built, AIX ld can
9497 # have problems creating the table of contents. If linking a library
9498 # or program results in "error TOC overflow" add -mminimal-toc to
9499 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9500 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9501
9502 archive_cmds=''
9503 hardcode_direct=yes
9504 hardcode_direct_absolute=yes
9505 hardcode_libdir_separator=':'
9506 link_all_deplibs=yes
9507 file_list_spec='${wl}-f,'
9508
9509 if test "$GCC" = yes; then
9510 case $host_os in aix4.[012]|aix4.[012].*)
9511 # We only want to do this on AIX 4.2 and lower, the check
9512 # below for broken collect2 doesn't work under 4.3+
9513 collect2name=`${CC} -print-prog-name=collect2`
9514 if test -f "$collect2name" &&
9515 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9516 then
9517 # We have reworked collect2
9518 :
9519 else
9520 # We have old collect2
9521 hardcode_direct=unsupported
9522 # It fails to find uninstalled libraries when the uninstalled
9523 # path is not listed in the libpath. Setting hardcode_minus_L
9524 # to unsupported forces relinking
9525 hardcode_minus_L=yes
9526 hardcode_libdir_flag_spec='-L$libdir'
9527 hardcode_libdir_separator=
9528 fi
9529 ;;
9530 esac
9531 shared_flag='-shared'
9532 if test "$aix_use_runtimelinking" = yes; then
9533 shared_flag="$shared_flag "'${wl}-G'
9534 fi
9535 else
9536 # not using gcc
9537 if test "$host_cpu" = ia64; then
9538 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9539 # chokes on -Wl,-G. The following line is correct:
9540 shared_flag='-G'
9541 else
9542 if test "$aix_use_runtimelinking" = yes; then
9543 shared_flag='${wl}-G'
9544 else
9545 shared_flag='${wl}-bM:SRE'
9546 fi
9547 fi
9548 fi
9549
9550 export_dynamic_flag_spec='${wl}-bexpall'
9551 # It seems that -bexpall does not export symbols beginning with
9552 # underscore (_), so it is better to generate a list of symbols to export.
9553 always_export_symbols=yes
9554 if test "$aix_use_runtimelinking" = yes; then
9555 # Warning - without using the other runtime loading flags (-brtl),
9556 # -berok will link without error, but may produce a broken library.
9557 allow_undefined_flag='-berok'
9558 # Determine the default libpath from the value encoded in an
9559 # empty executable.
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9562
9563 int
9564 main ()
9565 {
9566
9567 ;
9568 return 0;
9569 }
9570 _ACEOF
9571 if ac_fn_c_try_link "$LINENO"; then :
9572
9573 lt_aix_libpath_sed='
9574 /Import File Strings/,/^$/ {
9575 /^0/ {
9576 s/^0 *\(.*\)$/\1/
9577 p
9578 }
9579 }'
9580 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9581 # Check for a 64-bit object if we didn't find anything.
9582 if test -z "$aix_libpath"; then
9583 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9584 fi
9585 fi
9586 rm -f core conftest.err conftest.$ac_objext \
9587 conftest$ac_exeext conftest.$ac_ext
9588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9589
9590 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9591 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"
9592 else
9593 if test "$host_cpu" = ia64; then
9594 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9595 allow_undefined_flag="-z nodefs"
9596 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"
9597 else
9598 # Determine the default libpath from the value encoded in an
9599 # empty executable.
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9602
9603 int
9604 main ()
9605 {
9606
9607 ;
9608 return 0;
9609 }
9610 _ACEOF
9611 if ac_fn_c_try_link "$LINENO"; then :
9612
9613 lt_aix_libpath_sed='
9614 /Import File Strings/,/^$/ {
9615 /^0/ {
9616 s/^0 *\(.*\)$/\1/
9617 p
9618 }
9619 }'
9620 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9621 # Check for a 64-bit object if we didn't find anything.
9622 if test -z "$aix_libpath"; then
9623 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9624 fi
9625 fi
9626 rm -f core conftest.err conftest.$ac_objext \
9627 conftest$ac_exeext conftest.$ac_ext
9628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9629
9630 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9631 # Warning - without using the other run time loading flags,
9632 # -berok will link without error, but may produce a broken library.
9633 no_undefined_flag=' ${wl}-bernotok'
9634 allow_undefined_flag=' ${wl}-berok'
9635 if test "$with_gnu_ld" = yes; then
9636 # We only use this code for GNU lds that support --whole-archive.
9637 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9638 else
9639 # Exported symbols can be pulled into shared objects from archives
9640 whole_archive_flag_spec='$convenience'
9641 fi
9642 archive_cmds_need_lc=yes
9643 # This is similar to how AIX traditionally builds its shared libraries.
9644 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'
9645 fi
9646 fi
9647 ;;
9648
9649 amigaos*)
9650 case $host_cpu in
9651 powerpc)
9652 # see comment about AmigaOS4 .so support
9653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9654 archive_expsym_cmds=''
9655 ;;
9656 m68k)
9657 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)'
9658 hardcode_libdir_flag_spec='-L$libdir'
9659 hardcode_minus_L=yes
9660 ;;
9661 esac
9662 ;;
9663
9664 bsdi[45]*)
9665 export_dynamic_flag_spec=-rdynamic
9666 ;;
9667
9668 cygwin* | mingw* | pw32* | cegcc*)
9669 # When not using gcc, we currently assume that we are using
9670 # Microsoft Visual C++.
9671 # hardcode_libdir_flag_spec is actually meaningless, as there is
9672 # no search path for DLLs.
9673 hardcode_libdir_flag_spec=' '
9674 allow_undefined_flag=unsupported
9675 # Tell ltmain to make .lib files, not .a files.
9676 libext=lib
9677 # Tell ltmain to make .dll files, not .so files.
9678 shrext_cmds=".dll"
9679 # FIXME: Setting linknames here is a bad hack.
9680 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9681 # The linker will automatically build a .lib file if we build a DLL.
9682 old_archive_from_new_cmds='true'
9683 # FIXME: Should let the user specify the lib program.
9684 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9685 fix_srcfile_path='`cygpath -w "$srcfile"`'
9686 enable_shared_with_static_runtimes=yes
9687 ;;
9688
9689 darwin* | rhapsody*)
9690
9691
9692 archive_cmds_need_lc=no
9693 hardcode_direct=no
9694 hardcode_automatic=yes
9695 hardcode_shlibpath_var=unsupported
9696 if test "$lt_cv_ld_force_load" = "yes"; then
9697 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\"`'
9698 else
9699 whole_archive_flag_spec=''
9700 fi
9701 link_all_deplibs=yes
9702 allow_undefined_flag="$_lt_dar_allow_undefined"
9703 case $cc_basename in
9704 ifort*) _lt_dar_can_shared=yes ;;
9705 *) _lt_dar_can_shared=$GCC ;;
9706 esac
9707 if test "$_lt_dar_can_shared" = "yes"; then
9708 output_verbose_link_cmd=func_echo_all
9709 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9710 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9711 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}"
9712 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}"
9713
9714 else
9715 ld_shlibs=no
9716 fi
9717
9718 ;;
9719
9720 dgux*)
9721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722 hardcode_libdir_flag_spec='-L$libdir'
9723 hardcode_shlibpath_var=no
9724 ;;
9725
9726 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9727 # support. Future versions do this automatically, but an explicit c++rt0.o
9728 # does not break anything, and helps significantly (at the cost of a little
9729 # extra space).
9730 freebsd2.2*)
9731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9732 hardcode_libdir_flag_spec='-R$libdir'
9733 hardcode_direct=yes
9734 hardcode_shlibpath_var=no
9735 ;;
9736
9737 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9738 freebsd2.*)
9739 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9740 hardcode_direct=yes
9741 hardcode_minus_L=yes
9742 hardcode_shlibpath_var=no
9743 ;;
9744
9745 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9746 freebsd* | dragonfly*)
9747 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9748 hardcode_libdir_flag_spec='-R$libdir'
9749 hardcode_direct=yes
9750 hardcode_shlibpath_var=no
9751 ;;
9752
9753 hpux9*)
9754 if test "$GCC" = yes; then
9755 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'
9756 else
9757 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'
9758 fi
9759 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9760 hardcode_libdir_separator=:
9761 hardcode_direct=yes
9762
9763 # hardcode_minus_L: Not really in the search PATH,
9764 # but as the default location of the library.
9765 hardcode_minus_L=yes
9766 export_dynamic_flag_spec='${wl}-E'
9767 ;;
9768
9769 hpux10*)
9770 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9771 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9772 else
9773 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9774 fi
9775 if test "$with_gnu_ld" = no; then
9776 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9777 hardcode_libdir_flag_spec_ld='+b $libdir'
9778 hardcode_libdir_separator=:
9779 hardcode_direct=yes
9780 hardcode_direct_absolute=yes
9781 export_dynamic_flag_spec='${wl}-E'
9782 # hardcode_minus_L: Not really in the search PATH,
9783 # but as the default location of the library.
9784 hardcode_minus_L=yes
9785 fi
9786 ;;
9787
9788 hpux11*)
9789 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9790 case $host_cpu in
9791 hppa*64*)
9792 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9793 ;;
9794 ia64*)
9795 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9796 ;;
9797 *)
9798 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9799 ;;
9800 esac
9801 else
9802 case $host_cpu in
9803 hppa*64*)
9804 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9805 ;;
9806 ia64*)
9807 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9808 ;;
9809 *)
9810
9811 # Older versions of the 11.00 compiler do not understand -b yet
9812 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9814 $as_echo_n "checking if $CC understands -b... " >&6; }
9815 if ${lt_cv_prog_compiler__b+:} false; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 lt_cv_prog_compiler__b=no
9819 save_LDFLAGS="$LDFLAGS"
9820 LDFLAGS="$LDFLAGS -b"
9821 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9822 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9823 # The linker can only warn and ignore the option if not recognized
9824 # So say no if there are warnings
9825 if test -s conftest.err; then
9826 # Append any errors to the config.log.
9827 cat conftest.err 1>&5
9828 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9830 if diff conftest.exp conftest.er2 >/dev/null; then
9831 lt_cv_prog_compiler__b=yes
9832 fi
9833 else
9834 lt_cv_prog_compiler__b=yes
9835 fi
9836 fi
9837 $RM -r conftest*
9838 LDFLAGS="$save_LDFLAGS"
9839
9840 fi
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9842 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9843
9844 if test x"$lt_cv_prog_compiler__b" = xyes; then
9845 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9846 else
9847 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9848 fi
9849
9850 ;;
9851 esac
9852 fi
9853 if test "$with_gnu_ld" = no; then
9854 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9855 hardcode_libdir_separator=:
9856
9857 case $host_cpu in
9858 hppa*64*|ia64*)
9859 hardcode_direct=no
9860 hardcode_shlibpath_var=no
9861 ;;
9862 *)
9863 hardcode_direct=yes
9864 hardcode_direct_absolute=yes
9865 export_dynamic_flag_spec='${wl}-E'
9866
9867 # hardcode_minus_L: Not really in the search PATH,
9868 # but as the default location of the library.
9869 hardcode_minus_L=yes
9870 ;;
9871 esac
9872 fi
9873 ;;
9874
9875 irix5* | irix6* | nonstopux*)
9876 if test "$GCC" = yes; then
9877 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'
9878 # Try to use the -exported_symbol ld option, if it does not
9879 # work, assume that -exports_file does not work either and
9880 # implicitly export all symbols.
9881 save_LDFLAGS="$LDFLAGS"
9882 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9885 int foo(void) {}
9886 _ACEOF
9887 if ac_fn_c_try_link "$LINENO"; then :
9888 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'
9889
9890 fi
9891 rm -f core conftest.err conftest.$ac_objext \
9892 conftest$ac_exeext conftest.$ac_ext
9893 LDFLAGS="$save_LDFLAGS"
9894 else
9895 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'
9896 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'
9897 fi
9898 archive_cmds_need_lc='no'
9899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9900 hardcode_libdir_separator=:
9901 inherit_rpath=yes
9902 link_all_deplibs=yes
9903 ;;
9904
9905 netbsd*)
9906 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9907 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9908 else
9909 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9910 fi
9911 hardcode_libdir_flag_spec='-R$libdir'
9912 hardcode_direct=yes
9913 hardcode_shlibpath_var=no
9914 ;;
9915
9916 newsos6)
9917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9918 hardcode_direct=yes
9919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9920 hardcode_libdir_separator=:
9921 hardcode_shlibpath_var=no
9922 ;;
9923
9924 *nto* | *qnx*)
9925 ;;
9926
9927 openbsd*)
9928 if test -f /usr/libexec/ld.so; then
9929 hardcode_direct=yes
9930 hardcode_shlibpath_var=no
9931 hardcode_direct_absolute=yes
9932 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9933 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9934 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9935 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9936 export_dynamic_flag_spec='${wl}-E'
9937 else
9938 case $host_os in
9939 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9940 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9941 hardcode_libdir_flag_spec='-R$libdir'
9942 ;;
9943 *)
9944 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9945 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9946 ;;
9947 esac
9948 fi
9949 else
9950 ld_shlibs=no
9951 fi
9952 ;;
9953
9954 os2*)
9955 hardcode_libdir_flag_spec='-L$libdir'
9956 hardcode_minus_L=yes
9957 allow_undefined_flag=unsupported
9958 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'
9959 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9960 ;;
9961
9962 osf3*)
9963 if test "$GCC" = yes; then
9964 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9965 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'
9966 else
9967 allow_undefined_flag=' -expect_unresolved \*'
9968 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'
9969 fi
9970 archive_cmds_need_lc='no'
9971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9972 hardcode_libdir_separator=:
9973 ;;
9974
9975 osf4* | osf5*) # as osf3* with the addition of -msym flag
9976 if test "$GCC" = yes; then
9977 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9978 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'
9979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9980 else
9981 allow_undefined_flag=' -expect_unresolved \*'
9982 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'
9983 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~
9984 $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'
9985
9986 # Both c and cxx compiler support -rpath directly
9987 hardcode_libdir_flag_spec='-rpath $libdir'
9988 fi
9989 archive_cmds_need_lc='no'
9990 hardcode_libdir_separator=:
9991 ;;
9992
9993 solaris*)
9994 no_undefined_flag=' -z defs'
9995 if test "$GCC" = yes; then
9996 wlarc='${wl}'
9997 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9998 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9999 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10000 else
10001 case `$CC -V 2>&1` in
10002 *"Compilers 5.0"*)
10003 wlarc=''
10004 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10005 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10006 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10007 ;;
10008 *)
10009 wlarc='${wl}'
10010 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10011 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10012 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10013 ;;
10014 esac
10015 fi
10016 hardcode_libdir_flag_spec='-R$libdir'
10017 hardcode_shlibpath_var=no
10018 case $host_os in
10019 solaris2.[0-5] | solaris2.[0-5].*) ;;
10020 *)
10021 # The compiler driver will combine and reorder linker options,
10022 # but understands `-z linker_flag'. GCC discards it without `$wl',
10023 # but is careful enough not to reorder.
10024 # Supported since Solaris 2.6 (maybe 2.5.1?)
10025 if test "$GCC" = yes; then
10026 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10027 else
10028 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10029 fi
10030 ;;
10031 esac
10032 link_all_deplibs=yes
10033 ;;
10034
10035 sunos4*)
10036 if test "x$host_vendor" = xsequent; then
10037 # Use $CC to link under sequent, because it throws in some extra .o
10038 # files that make .init and .fini sections work.
10039 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10040 else
10041 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10042 fi
10043 hardcode_libdir_flag_spec='-L$libdir'
10044 hardcode_direct=yes
10045 hardcode_minus_L=yes
10046 hardcode_shlibpath_var=no
10047 ;;
10048
10049 sysv4)
10050 case $host_vendor in
10051 sni)
10052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10053 hardcode_direct=yes # is this really true???
10054 ;;
10055 siemens)
10056 ## LD is ld it makes a PLAMLIB
10057 ## CC just makes a GrossModule.
10058 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10059 reload_cmds='$CC -r -o $output$reload_objs'
10060 hardcode_direct=no
10061 ;;
10062 motorola)
10063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10065 ;;
10066 esac
10067 runpath_var='LD_RUN_PATH'
10068 hardcode_shlibpath_var=no
10069 ;;
10070
10071 sysv4.3*)
10072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10073 hardcode_shlibpath_var=no
10074 export_dynamic_flag_spec='-Bexport'
10075 ;;
10076
10077 sysv4*MP*)
10078 if test -d /usr/nec; then
10079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080 hardcode_shlibpath_var=no
10081 runpath_var=LD_RUN_PATH
10082 hardcode_runpath_var=yes
10083 ld_shlibs=yes
10084 fi
10085 ;;
10086
10087 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10088 no_undefined_flag='${wl}-z,text'
10089 archive_cmds_need_lc=no
10090 hardcode_shlibpath_var=no
10091 runpath_var='LD_RUN_PATH'
10092
10093 if test "$GCC" = yes; then
10094 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10096 else
10097 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10098 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10099 fi
10100 ;;
10101
10102 sysv5* | sco3.2v5* | sco5v6*)
10103 # Note: We can NOT use -z defs as we might desire, because we do not
10104 # link with -lc, and that would cause any symbols used from libc to
10105 # always be unresolved, which means just about no library would
10106 # ever link correctly. If we're not using GNU ld we use -z text
10107 # though, which does catch some bad symbols but isn't as heavy-handed
10108 # as -z defs.
10109 no_undefined_flag='${wl}-z,text'
10110 allow_undefined_flag='${wl}-z,nodefs'
10111 archive_cmds_need_lc=no
10112 hardcode_shlibpath_var=no
10113 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10114 hardcode_libdir_separator=':'
10115 link_all_deplibs=yes
10116 export_dynamic_flag_spec='${wl}-Bexport'
10117 runpath_var='LD_RUN_PATH'
10118
10119 if test "$GCC" = yes; then
10120 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10121 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 else
10123 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 fi
10126 ;;
10127
10128 uts4*)
10129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10130 hardcode_libdir_flag_spec='-L$libdir'
10131 hardcode_shlibpath_var=no
10132 ;;
10133
10134 *)
10135 ld_shlibs=no
10136 ;;
10137 esac
10138
10139 if test x$host_vendor = xsni; then
10140 case $host in
10141 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10142 export_dynamic_flag_spec='${wl}-Blargedynsym'
10143 ;;
10144 esac
10145 fi
10146 fi
10147
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10149 $as_echo "$ld_shlibs" >&6; }
10150 test "$ld_shlibs" = no && can_build_shared=no
10151
10152 with_gnu_ld=$with_gnu_ld
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168 #
10169 # Do we need to explicitly link libc?
10170 #
10171 case "x$archive_cmds_need_lc" in
10172 x|xyes)
10173 # Assume -lc should be added
10174 archive_cmds_need_lc=yes
10175
10176 if test "$enable_shared" = yes && test "$GCC" = yes; then
10177 case $archive_cmds in
10178 *'~'*)
10179 # FIXME: we may have to deal with multi-command sequences.
10180 ;;
10181 '$CC '*)
10182 # Test whether the compiler implicitly links with -lc since on some
10183 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10184 # to ld, don't add -lc before -lgcc.
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10186 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10187 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 $RM conftest*
10191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10192
10193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10194 (eval $ac_compile) 2>&5
10195 ac_status=$?
10196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10197 test $ac_status = 0; } 2>conftest.err; then
10198 soname=conftest
10199 lib=conftest
10200 libobjs=conftest.$ac_objext
10201 deplibs=
10202 wl=$lt_prog_compiler_wl
10203 pic_flag=$lt_prog_compiler_pic
10204 compiler_flags=-v
10205 linker_flags=-v
10206 verstring=
10207 output_objdir=.
10208 libname=conftest
10209 lt_save_allow_undefined_flag=$allow_undefined_flag
10210 allow_undefined_flag=
10211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10212 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10213 ac_status=$?
10214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10215 test $ac_status = 0; }
10216 then
10217 lt_cv_archive_cmds_need_lc=no
10218 else
10219 lt_cv_archive_cmds_need_lc=yes
10220 fi
10221 allow_undefined_flag=$lt_save_allow_undefined_flag
10222 else
10223 cat conftest.err 1>&5
10224 fi
10225 $RM conftest*
10226
10227 fi
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10229 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10230 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10231 ;;
10232 esac
10233 fi
10234 ;;
10235 esac
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10394 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10395
10396 if test "$GCC" = yes; then
10397 case $host_os in
10398 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10399 *) lt_awk_arg="/^libraries:/" ;;
10400 esac
10401 case $host_os in
10402 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10403 *) lt_sed_strip_eq="s,=/,/,g" ;;
10404 esac
10405 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10406 case $lt_search_path_spec in
10407 *\;*)
10408 # if the path contains ";" then we assume it to be the separator
10409 # otherwise default to the standard path separator (i.e. ":") - it is
10410 # assumed that no part of a normal pathname contains ";" but that should
10411 # okay in the real world where ";" in dirpaths is itself problematic.
10412 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10413 ;;
10414 *)
10415 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10416 ;;
10417 esac
10418 # Ok, now we have the path, separated by spaces, we can step through it
10419 # and add multilib dir if necessary.
10420 lt_tmp_lt_search_path_spec=
10421 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10422 for lt_sys_path in $lt_search_path_spec; do
10423 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10424 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10425 else
10426 test -d "$lt_sys_path" && \
10427 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10428 fi
10429 done
10430 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10431 BEGIN {RS=" "; FS="/|\n";} {
10432 lt_foo="";
10433 lt_count=0;
10434 for (lt_i = NF; lt_i > 0; lt_i--) {
10435 if ($lt_i != "" && $lt_i != ".") {
10436 if ($lt_i == "..") {
10437 lt_count++;
10438 } else {
10439 if (lt_count == 0) {
10440 lt_foo="/" $lt_i lt_foo;
10441 } else {
10442 lt_count--;
10443 }
10444 }
10445 }
10446 }
10447 if (lt_foo != "") { lt_freq[lt_foo]++; }
10448 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10449 }'`
10450 # AWK program above erroneously prepends '/' to C:/dos/paths
10451 # for these hosts.
10452 case $host_os in
10453 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10454 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10455 esac
10456 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10457 else
10458 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10459 fi
10460 library_names_spec=
10461 libname_spec='lib$name'
10462 soname_spec=
10463 shrext_cmds=".so"
10464 postinstall_cmds=
10465 postuninstall_cmds=
10466 finish_cmds=
10467 finish_eval=
10468 shlibpath_var=
10469 shlibpath_overrides_runpath=unknown
10470 version_type=none
10471 dynamic_linker="$host_os ld.so"
10472 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10473 need_lib_prefix=unknown
10474 hardcode_into_libs=no
10475
10476 # when you set need_version to no, make sure it does not cause -set_version
10477 # flags to be left without arguments
10478 need_version=unknown
10479
10480 case $host_os in
10481 aix3*)
10482 version_type=linux
10483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10484 shlibpath_var=LIBPATH
10485
10486 # AIX 3 has no versioning support, so we append a major version to the name.
10487 soname_spec='${libname}${release}${shared_ext}$major'
10488 ;;
10489
10490 aix[4-9]*)
10491 version_type=linux
10492 need_lib_prefix=no
10493 need_version=no
10494 hardcode_into_libs=yes
10495 if test "$host_cpu" = ia64; then
10496 # AIX 5 supports IA64
10497 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10498 shlibpath_var=LD_LIBRARY_PATH
10499 else
10500 # With GCC up to 2.95.x, collect2 would create an import file
10501 # for dependence libraries. The import file would start with
10502 # the line `#! .'. This would cause the generated library to
10503 # depend on `.', always an invalid library. This was fixed in
10504 # development snapshots of GCC prior to 3.0.
10505 case $host_os in
10506 aix4 | aix4.[01] | aix4.[01].*)
10507 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10508 echo ' yes '
10509 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10510 :
10511 else
10512 can_build_shared=no
10513 fi
10514 ;;
10515 esac
10516 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10517 # soname into executable. Probably we can add versioning support to
10518 # collect2, so additional links can be useful in future.
10519 if test "$aix_use_runtimelinking" = yes; then
10520 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10521 # instead of lib<name>.a to let people know that these are not
10522 # typical AIX shared libraries.
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524 else
10525 # We preserve .a as extension for shared libraries through AIX4.2
10526 # and later when we are not doing run time linking.
10527 library_names_spec='${libname}${release}.a $libname.a'
10528 soname_spec='${libname}${release}${shared_ext}$major'
10529 fi
10530 shlibpath_var=LIBPATH
10531 fi
10532 ;;
10533
10534 amigaos*)
10535 case $host_cpu in
10536 powerpc)
10537 # Since July 2007 AmigaOS4 officially supports .so libraries.
10538 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540 ;;
10541 m68k)
10542 library_names_spec='$libname.ixlibrary $libname.a'
10543 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10544 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'
10545 ;;
10546 esac
10547 ;;
10548
10549 beos*)
10550 library_names_spec='${libname}${shared_ext}'
10551 dynamic_linker="$host_os ld.so"
10552 shlibpath_var=LIBRARY_PATH
10553 ;;
10554
10555 bsdi[45]*)
10556 version_type=linux
10557 need_version=no
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559 soname_spec='${libname}${release}${shared_ext}$major'
10560 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10561 shlibpath_var=LD_LIBRARY_PATH
10562 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10563 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10564 # the default ld.so.conf also contains /usr/contrib/lib and
10565 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10566 # libtool to hard-code these into programs
10567 ;;
10568
10569 cygwin* | mingw* | pw32* | cegcc*)
10570 version_type=windows
10571 shrext_cmds=".dll"
10572 need_version=no
10573 need_lib_prefix=no
10574
10575 case $GCC,$host_os in
10576 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10577 library_names_spec='$libname.dll.a'
10578 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10579 postinstall_cmds='base_file=`basename \${file}`~
10580 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10581 dldir=$destdir/`dirname \$dlpath`~
10582 test -d \$dldir || mkdir -p \$dldir~
10583 $install_prog $dir/$dlname \$dldir/$dlname~
10584 chmod a+x \$dldir/$dlname~
10585 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10586 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10587 fi'
10588 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10589 dlpath=$dir/\$dldll~
10590 $RM \$dlpath'
10591 shlibpath_overrides_runpath=yes
10592
10593 case $host_os in
10594 cygwin*)
10595 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10596 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10597
10598 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10599 ;;
10600 mingw* | cegcc*)
10601 # MinGW DLLs use traditional 'lib' prefix
10602 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10603 ;;
10604 pw32*)
10605 # pw32 DLLs use 'pw' prefix rather than 'lib'
10606 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10607 ;;
10608 esac
10609 ;;
10610
10611 *)
10612 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10613 ;;
10614 esac
10615 dynamic_linker='Win32 ld.exe'
10616 # FIXME: first we should search . and the directory the executable is in
10617 shlibpath_var=PATH
10618 ;;
10619
10620 darwin* | rhapsody*)
10621 dynamic_linker="$host_os dyld"
10622 version_type=darwin
10623 need_lib_prefix=no
10624 need_version=no
10625 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10626 soname_spec='${libname}${release}${major}$shared_ext'
10627 shlibpath_overrides_runpath=yes
10628 shlibpath_var=DYLD_LIBRARY_PATH
10629 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10630
10631 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10632 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10633 ;;
10634
10635 dgux*)
10636 version_type=linux
10637 need_lib_prefix=no
10638 need_version=no
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 ;;
10643
10644 freebsd* | dragonfly*)
10645 # DragonFly does not have aout. When/if they implement a new
10646 # versioning mechanism, adjust this.
10647 if test -x /usr/bin/objformat; then
10648 objformat=`/usr/bin/objformat`
10649 else
10650 case $host_os in
10651 freebsd[23].*) objformat=aout ;;
10652 *) objformat=elf ;;
10653 esac
10654 fi
10655 version_type=freebsd-$objformat
10656 case $version_type in
10657 freebsd-elf*)
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10659 need_version=no
10660 need_lib_prefix=no
10661 ;;
10662 freebsd-*)
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10664 need_version=yes
10665 ;;
10666 esac
10667 shlibpath_var=LD_LIBRARY_PATH
10668 case $host_os in
10669 freebsd2.*)
10670 shlibpath_overrides_runpath=yes
10671 ;;
10672 freebsd3.[01]* | freebsdelf3.[01]*)
10673 shlibpath_overrides_runpath=yes
10674 hardcode_into_libs=yes
10675 ;;
10676 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10677 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10678 shlibpath_overrides_runpath=no
10679 hardcode_into_libs=yes
10680 ;;
10681 *) # from 4.6 on, and DragonFly
10682 shlibpath_overrides_runpath=yes
10683 hardcode_into_libs=yes
10684 ;;
10685 esac
10686 ;;
10687
10688 gnu*)
10689 version_type=linux
10690 need_lib_prefix=no
10691 need_version=no
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10693 soname_spec='${libname}${release}${shared_ext}$major'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 hardcode_into_libs=yes
10696 ;;
10697
10698 haiku*)
10699 version_type=linux
10700 need_lib_prefix=no
10701 need_version=no
10702 dynamic_linker="$host_os runtime_loader"
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10704 soname_spec='${libname}${release}${shared_ext}$major'
10705 shlibpath_var=LIBRARY_PATH
10706 shlibpath_overrides_runpath=yes
10707 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10708 hardcode_into_libs=yes
10709 ;;
10710
10711 hpux9* | hpux10* | hpux11*)
10712 # Give a soname corresponding to the major version so that dld.sl refuses to
10713 # link against other versions.
10714 version_type=sunos
10715 need_lib_prefix=no
10716 need_version=no
10717 case $host_cpu in
10718 ia64*)
10719 shrext_cmds='.so'
10720 hardcode_into_libs=yes
10721 dynamic_linker="$host_os dld.so"
10722 shlibpath_var=LD_LIBRARY_PATH
10723 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10725 soname_spec='${libname}${release}${shared_ext}$major'
10726 if test "X$HPUX_IA64_MODE" = X32; then
10727 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10728 else
10729 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10730 fi
10731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10732 ;;
10733 hppa*64*)
10734 shrext_cmds='.sl'
10735 hardcode_into_libs=yes
10736 dynamic_linker="$host_os dld.sl"
10737 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10738 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740 soname_spec='${libname}${release}${shared_ext}$major'
10741 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10742 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10743 ;;
10744 *)
10745 shrext_cmds='.sl'
10746 dynamic_linker="$host_os dld.sl"
10747 shlibpath_var=SHLIB_PATH
10748 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750 soname_spec='${libname}${release}${shared_ext}$major'
10751 ;;
10752 esac
10753 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10754 postinstall_cmds='chmod 555 $lib'
10755 # or fails outright, so override atomically:
10756 install_override_mode=555
10757 ;;
10758
10759 interix[3-9]*)
10760 version_type=linux
10761 need_lib_prefix=no
10762 need_version=no
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10764 soname_spec='${libname}${release}${shared_ext}$major'
10765 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10766 shlibpath_var=LD_LIBRARY_PATH
10767 shlibpath_overrides_runpath=no
10768 hardcode_into_libs=yes
10769 ;;
10770
10771 irix5* | irix6* | nonstopux*)
10772 case $host_os in
10773 nonstopux*) version_type=nonstopux ;;
10774 *)
10775 if test "$lt_cv_prog_gnu_ld" = yes; then
10776 version_type=linux
10777 else
10778 version_type=irix
10779 fi ;;
10780 esac
10781 need_lib_prefix=no
10782 need_version=no
10783 soname_spec='${libname}${release}${shared_ext}$major'
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10785 case $host_os in
10786 irix5* | nonstopux*)
10787 libsuff= shlibsuff=
10788 ;;
10789 *)
10790 case $LD in # libtool.m4 will add one of these switches to LD
10791 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10792 libsuff= shlibsuff= libmagic=32-bit;;
10793 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10794 libsuff=32 shlibsuff=N32 libmagic=N32;;
10795 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10796 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10797 *) libsuff= shlibsuff= libmagic=never-match;;
10798 esac
10799 ;;
10800 esac
10801 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10802 shlibpath_overrides_runpath=no
10803 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10804 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10805 hardcode_into_libs=yes
10806 ;;
10807
10808 # No shared lib support for Linux oldld, aout, or coff.
10809 linux*oldld* | linux*aout* | linux*coff*)
10810 dynamic_linker=no
10811 ;;
10812
10813 # This must be Linux ELF.
10814
10815 # uclinux* changes (here and below) have been submitted to the libtool
10816 # project, but have not yet been accepted: they are GCC-local changes
10817 # for the time being. (See
10818 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10819 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10820 version_type=linux
10821 need_lib_prefix=no
10822 need_version=no
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824 soname_spec='${libname}${release}${shared_ext}$major'
10825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10826 shlibpath_var=LD_LIBRARY_PATH
10827 shlibpath_overrides_runpath=no
10828
10829 # Some binutils ld are patched to set DT_RUNPATH
10830 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10831 $as_echo_n "(cached) " >&6
10832 else
10833 lt_cv_shlibpath_overrides_runpath=no
10834 save_LDFLAGS=$LDFLAGS
10835 save_libdir=$libdir
10836 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10837 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h. */
10840
10841 int
10842 main ()
10843 {
10844
10845 ;
10846 return 0;
10847 }
10848 _ACEOF
10849 if ac_fn_c_try_link "$LINENO"; then :
10850 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10851 lt_cv_shlibpath_overrides_runpath=yes
10852 fi
10853 fi
10854 rm -f core conftest.err conftest.$ac_objext \
10855 conftest$ac_exeext conftest.$ac_ext
10856 LDFLAGS=$save_LDFLAGS
10857 libdir=$save_libdir
10858
10859 fi
10860
10861 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10862
10863 # This implies no fast_install, which is unacceptable.
10864 # Some rework will be needed to allow for fast_install
10865 # before this can be enabled.
10866 hardcode_into_libs=yes
10867
10868 # Append ld.so.conf contents to the search path
10869 if test -f /etc/ld.so.conf; then
10870 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' ' '`
10871 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10872 fi
10873
10874 # We used to test for /lib/ld.so.1 and disable shared libraries on
10875 # powerpc, because MkLinux only supported shared libraries with the
10876 # GNU dynamic linker. Since this was broken with cross compilers,
10877 # most powerpc-linux boxes support dynamic linking these days and
10878 # people can always --disable-shared, the test was removed, and we
10879 # assume the GNU/Linux dynamic linker is in use.
10880 dynamic_linker='GNU/Linux ld.so'
10881 ;;
10882
10883 netbsd*)
10884 version_type=sunos
10885 need_lib_prefix=no
10886 need_version=no
10887 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10890 dynamic_linker='NetBSD (a.out) ld.so'
10891 else
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10893 soname_spec='${libname}${release}${shared_ext}$major'
10894 dynamic_linker='NetBSD ld.elf_so'
10895 fi
10896 shlibpath_var=LD_LIBRARY_PATH
10897 shlibpath_overrides_runpath=yes
10898 hardcode_into_libs=yes
10899 ;;
10900
10901 newsos6)
10902 version_type=linux
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904 shlibpath_var=LD_LIBRARY_PATH
10905 shlibpath_overrides_runpath=yes
10906 ;;
10907
10908 *nto* | *qnx*)
10909 version_type=qnx
10910 need_lib_prefix=no
10911 need_version=no
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10913 soname_spec='${libname}${release}${shared_ext}$major'
10914 shlibpath_var=LD_LIBRARY_PATH
10915 shlibpath_overrides_runpath=no
10916 hardcode_into_libs=yes
10917 dynamic_linker='ldqnx.so'
10918 ;;
10919
10920 openbsd*)
10921 version_type=sunos
10922 sys_lib_dlsearch_path_spec="/usr/lib"
10923 need_lib_prefix=no
10924 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10925 case $host_os in
10926 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10927 *) need_version=no ;;
10928 esac
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10931 shlibpath_var=LD_LIBRARY_PATH
10932 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10933 case $host_os in
10934 openbsd2.[89] | openbsd2.[89].*)
10935 shlibpath_overrides_runpath=no
10936 ;;
10937 *)
10938 shlibpath_overrides_runpath=yes
10939 ;;
10940 esac
10941 else
10942 shlibpath_overrides_runpath=yes
10943 fi
10944 ;;
10945
10946 os2*)
10947 libname_spec='$name'
10948 shrext_cmds=".dll"
10949 need_lib_prefix=no
10950 library_names_spec='$libname${shared_ext} $libname.a'
10951 dynamic_linker='OS/2 ld.exe'
10952 shlibpath_var=LIBPATH
10953 ;;
10954
10955 osf3* | osf4* | osf5*)
10956 version_type=osf
10957 need_lib_prefix=no
10958 need_version=no
10959 soname_spec='${libname}${release}${shared_ext}$major'
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10963 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10964 ;;
10965
10966 rdos*)
10967 dynamic_linker=no
10968 ;;
10969
10970 solaris*)
10971 version_type=linux
10972 need_lib_prefix=no
10973 need_version=no
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 soname_spec='${libname}${release}${shared_ext}$major'
10976 shlibpath_var=LD_LIBRARY_PATH
10977 shlibpath_overrides_runpath=yes
10978 hardcode_into_libs=yes
10979 # ldd complains unless libraries are executable
10980 postinstall_cmds='chmod +x $lib'
10981 ;;
10982
10983 sunos4*)
10984 version_type=sunos
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10986 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10987 shlibpath_var=LD_LIBRARY_PATH
10988 shlibpath_overrides_runpath=yes
10989 if test "$with_gnu_ld" = yes; then
10990 need_lib_prefix=no
10991 fi
10992 need_version=yes
10993 ;;
10994
10995 sysv4 | sysv4.3*)
10996 version_type=linux
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 shlibpath_var=LD_LIBRARY_PATH
11000 case $host_vendor in
11001 sni)
11002 shlibpath_overrides_runpath=no
11003 need_lib_prefix=no
11004 runpath_var=LD_RUN_PATH
11005 ;;
11006 siemens)
11007 need_lib_prefix=no
11008 ;;
11009 motorola)
11010 need_lib_prefix=no
11011 need_version=no
11012 shlibpath_overrides_runpath=no
11013 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11014 ;;
11015 esac
11016 ;;
11017
11018 sysv4*MP*)
11019 if test -d /usr/nec ;then
11020 version_type=linux
11021 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11022 soname_spec='$libname${shared_ext}.$major'
11023 shlibpath_var=LD_LIBRARY_PATH
11024 fi
11025 ;;
11026
11027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11028 version_type=freebsd-elf
11029 need_lib_prefix=no
11030 need_version=no
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11032 soname_spec='${libname}${release}${shared_ext}$major'
11033 shlibpath_var=LD_LIBRARY_PATH
11034 shlibpath_overrides_runpath=yes
11035 hardcode_into_libs=yes
11036 if test "$with_gnu_ld" = yes; then
11037 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11038 else
11039 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11040 case $host_os in
11041 sco3.2v5*)
11042 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11043 ;;
11044 esac
11045 fi
11046 sys_lib_dlsearch_path_spec='/usr/lib'
11047 ;;
11048
11049 tpf*)
11050 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11051 version_type=linux
11052 need_lib_prefix=no
11053 need_version=no
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055 shlibpath_var=LD_LIBRARY_PATH
11056 shlibpath_overrides_runpath=no
11057 hardcode_into_libs=yes
11058 ;;
11059
11060 uts4*)
11061 version_type=linux
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 shlibpath_var=LD_LIBRARY_PATH
11065 ;;
11066
11067 *)
11068 dynamic_linker=no
11069 ;;
11070 esac
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11072 $as_echo "$dynamic_linker" >&6; }
11073 test "$dynamic_linker" = no && can_build_shared=no
11074
11075 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11076 if test "$GCC" = yes; then
11077 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11078 fi
11079
11080 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11081 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11082 fi
11083 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11084 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11085 fi
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11179 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11180 hardcode_action=
11181 if test -n "$hardcode_libdir_flag_spec" ||
11182 test -n "$runpath_var" ||
11183 test "X$hardcode_automatic" = "Xyes" ; then
11184
11185 # We can hardcode non-existent directories.
11186 if test "$hardcode_direct" != no &&
11187 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11188 # have to relink, otherwise we might link with an installed library
11189 # when we should be linking with a yet-to-be-installed one
11190 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11191 test "$hardcode_minus_L" != no; then
11192 # Linking always hardcodes the temporary library directory.
11193 hardcode_action=relink
11194 else
11195 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11196 hardcode_action=immediate
11197 fi
11198 else
11199 # We cannot hardcode anything, or else we can only hardcode existing
11200 # directories.
11201 hardcode_action=unsupported
11202 fi
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11204 $as_echo "$hardcode_action" >&6; }
11205
11206 if test "$hardcode_action" = relink ||
11207 test "$inherit_rpath" = yes; then
11208 # Fast installation is not supported
11209 enable_fast_install=no
11210 elif test "$shlibpath_overrides_runpath" = yes ||
11211 test "$enable_shared" = no; then
11212 # Fast installation is not necessary
11213 enable_fast_install=needless
11214 fi
11215
11216
11217
11218
11219
11220
11221 if test "x$enable_dlopen" != xyes; then
11222 enable_dlopen=unknown
11223 enable_dlopen_self=unknown
11224 enable_dlopen_self_static=unknown
11225 else
11226 lt_cv_dlopen=no
11227 lt_cv_dlopen_libs=
11228
11229 case $host_os in
11230 beos*)
11231 lt_cv_dlopen="load_add_on"
11232 lt_cv_dlopen_libs=
11233 lt_cv_dlopen_self=yes
11234 ;;
11235
11236 mingw* | pw32* | cegcc*)
11237 lt_cv_dlopen="LoadLibrary"
11238 lt_cv_dlopen_libs=
11239 ;;
11240
11241 cygwin*)
11242 lt_cv_dlopen="dlopen"
11243 lt_cv_dlopen_libs=
11244 ;;
11245
11246 darwin*)
11247 # if libdl is installed we need to link against it
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11249 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11250 if ${ac_cv_lib_dl_dlopen+:} false; then :
11251 $as_echo_n "(cached) " >&6
11252 else
11253 ac_check_lib_save_LIBS=$LIBS
11254 LIBS="-ldl $LIBS"
11255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256 /* end confdefs.h. */
11257
11258 /* Override any GCC internal prototype to avoid an error.
11259 Use char because int might match the return type of a GCC
11260 builtin and then its argument prototype would still apply. */
11261 #ifdef __cplusplus
11262 extern "C"
11263 #endif
11264 char dlopen ();
11265 int
11266 main ()
11267 {
11268 return dlopen ();
11269 ;
11270 return 0;
11271 }
11272 _ACEOF
11273 if ac_fn_c_try_link "$LINENO"; then :
11274 ac_cv_lib_dl_dlopen=yes
11275 else
11276 ac_cv_lib_dl_dlopen=no
11277 fi
11278 rm -f core conftest.err conftest.$ac_objext \
11279 conftest$ac_exeext conftest.$ac_ext
11280 LIBS=$ac_check_lib_save_LIBS
11281 fi
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11283 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11284 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11286 else
11287
11288 lt_cv_dlopen="dyld"
11289 lt_cv_dlopen_libs=
11290 lt_cv_dlopen_self=yes
11291
11292 fi
11293
11294 ;;
11295
11296 *)
11297 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11298 if test "x$ac_cv_func_shl_load" = xyes; then :
11299 lt_cv_dlopen="shl_load"
11300 else
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11302 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11303 if ${ac_cv_lib_dld_shl_load+:} false; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 ac_check_lib_save_LIBS=$LIBS
11307 LIBS="-ldld $LIBS"
11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 /* end confdefs.h. */
11310
11311 /* Override any GCC internal prototype to avoid an error.
11312 Use char because int might match the return type of a GCC
11313 builtin and then its argument prototype would still apply. */
11314 #ifdef __cplusplus
11315 extern "C"
11316 #endif
11317 char shl_load ();
11318 int
11319 main ()
11320 {
11321 return shl_load ();
11322 ;
11323 return 0;
11324 }
11325 _ACEOF
11326 if ac_fn_c_try_link "$LINENO"; then :
11327 ac_cv_lib_dld_shl_load=yes
11328 else
11329 ac_cv_lib_dld_shl_load=no
11330 fi
11331 rm -f core conftest.err conftest.$ac_objext \
11332 conftest$ac_exeext conftest.$ac_ext
11333 LIBS=$ac_check_lib_save_LIBS
11334 fi
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11336 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11337 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11338 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11339 else
11340 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11341 if test "x$ac_cv_func_dlopen" = xyes; then :
11342 lt_cv_dlopen="dlopen"
11343 else
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11345 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11346 if ${ac_cv_lib_dl_dlopen+:} false; then :
11347 $as_echo_n "(cached) " >&6
11348 else
11349 ac_check_lib_save_LIBS=$LIBS
11350 LIBS="-ldl $LIBS"
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11353
11354 /* Override any GCC internal prototype to avoid an error.
11355 Use char because int might match the return type of a GCC
11356 builtin and then its argument prototype would still apply. */
11357 #ifdef __cplusplus
11358 extern "C"
11359 #endif
11360 char dlopen ();
11361 int
11362 main ()
11363 {
11364 return dlopen ();
11365 ;
11366 return 0;
11367 }
11368 _ACEOF
11369 if ac_fn_c_try_link "$LINENO"; then :
11370 ac_cv_lib_dl_dlopen=yes
11371 else
11372 ac_cv_lib_dl_dlopen=no
11373 fi
11374 rm -f core conftest.err conftest.$ac_objext \
11375 conftest$ac_exeext conftest.$ac_ext
11376 LIBS=$ac_check_lib_save_LIBS
11377 fi
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11379 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11380 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11382 else
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11384 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11385 if ${ac_cv_lib_svld_dlopen+:} false; then :
11386 $as_echo_n "(cached) " >&6
11387 else
11388 ac_check_lib_save_LIBS=$LIBS
11389 LIBS="-lsvld $LIBS"
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11392
11393 /* Override any GCC internal prototype to avoid an error.
11394 Use char because int might match the return type of a GCC
11395 builtin and then its argument prototype would still apply. */
11396 #ifdef __cplusplus
11397 extern "C"
11398 #endif
11399 char dlopen ();
11400 int
11401 main ()
11402 {
11403 return dlopen ();
11404 ;
11405 return 0;
11406 }
11407 _ACEOF
11408 if ac_fn_c_try_link "$LINENO"; then :
11409 ac_cv_lib_svld_dlopen=yes
11410 else
11411 ac_cv_lib_svld_dlopen=no
11412 fi
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11415 LIBS=$ac_check_lib_save_LIBS
11416 fi
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11418 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11419 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11420 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11421 else
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11423 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11424 if ${ac_cv_lib_dld_dld_link+:} false; then :
11425 $as_echo_n "(cached) " >&6
11426 else
11427 ac_check_lib_save_LIBS=$LIBS
11428 LIBS="-ldld $LIBS"
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11431
11432 /* Override any GCC internal prototype to avoid an error.
11433 Use char because int might match the return type of a GCC
11434 builtin and then its argument prototype would still apply. */
11435 #ifdef __cplusplus
11436 extern "C"
11437 #endif
11438 char dld_link ();
11439 int
11440 main ()
11441 {
11442 return dld_link ();
11443 ;
11444 return 0;
11445 }
11446 _ACEOF
11447 if ac_fn_c_try_link "$LINENO"; then :
11448 ac_cv_lib_dld_dld_link=yes
11449 else
11450 ac_cv_lib_dld_dld_link=no
11451 fi
11452 rm -f core conftest.err conftest.$ac_objext \
11453 conftest$ac_exeext conftest.$ac_ext
11454 LIBS=$ac_check_lib_save_LIBS
11455 fi
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11457 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11458 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11459 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11460 fi
11461
11462
11463 fi
11464
11465
11466 fi
11467
11468
11469 fi
11470
11471
11472 fi
11473
11474
11475 fi
11476
11477 ;;
11478 esac
11479
11480 if test "x$lt_cv_dlopen" != xno; then
11481 enable_dlopen=yes
11482 else
11483 enable_dlopen=no
11484 fi
11485
11486 case $lt_cv_dlopen in
11487 dlopen)
11488 save_CPPFLAGS="$CPPFLAGS"
11489 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11490
11491 save_LDFLAGS="$LDFLAGS"
11492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11493
11494 save_LIBS="$LIBS"
11495 LIBS="$lt_cv_dlopen_libs $LIBS"
11496
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11498 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11499 if ${lt_cv_dlopen_self+:} false; then :
11500 $as_echo_n "(cached) " >&6
11501 else
11502 if test "$cross_compiling" = yes; then :
11503 lt_cv_dlopen_self=cross
11504 else
11505 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11506 lt_status=$lt_dlunknown
11507 cat > conftest.$ac_ext <<_LT_EOF
11508 #line 11508 "configure"
11509 #include "confdefs.h"
11510
11511 #if HAVE_DLFCN_H
11512 #include <dlfcn.h>
11513 #endif
11514
11515 #include <stdio.h>
11516
11517 #ifdef RTLD_GLOBAL
11518 # define LT_DLGLOBAL RTLD_GLOBAL
11519 #else
11520 # ifdef DL_GLOBAL
11521 # define LT_DLGLOBAL DL_GLOBAL
11522 # else
11523 # define LT_DLGLOBAL 0
11524 # endif
11525 #endif
11526
11527 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11528 find out it does not work in some platform. */
11529 #ifndef LT_DLLAZY_OR_NOW
11530 # ifdef RTLD_LAZY
11531 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11532 # else
11533 # ifdef DL_LAZY
11534 # define LT_DLLAZY_OR_NOW DL_LAZY
11535 # else
11536 # ifdef RTLD_NOW
11537 # define LT_DLLAZY_OR_NOW RTLD_NOW
11538 # else
11539 # ifdef DL_NOW
11540 # define LT_DLLAZY_OR_NOW DL_NOW
11541 # else
11542 # define LT_DLLAZY_OR_NOW 0
11543 # endif
11544 # endif
11545 # endif
11546 # endif
11547 #endif
11548
11549 /* When -fvisbility=hidden is used, assume the code has been annotated
11550 correspondingly for the symbols needed. */
11551 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11552 void fnord () __attribute__((visibility("default")));
11553 #endif
11554
11555 void fnord () { int i=42; }
11556 int main ()
11557 {
11558 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11559 int status = $lt_dlunknown;
11560
11561 if (self)
11562 {
11563 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11564 else
11565 {
11566 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11567 else puts (dlerror ());
11568 }
11569 /* dlclose (self); */
11570 }
11571 else
11572 puts (dlerror ());
11573
11574 return status;
11575 }
11576 _LT_EOF
11577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11578 (eval $ac_link) 2>&5
11579 ac_status=$?
11580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11581 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11582 (./conftest; exit; ) >&5 2>/dev/null
11583 lt_status=$?
11584 case x$lt_status in
11585 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11586 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11587 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11588 esac
11589 else :
11590 # compilation failed
11591 lt_cv_dlopen_self=no
11592 fi
11593 fi
11594 rm -fr conftest*
11595
11596
11597 fi
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11599 $as_echo "$lt_cv_dlopen_self" >&6; }
11600
11601 if test "x$lt_cv_dlopen_self" = xyes; then
11602 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11604 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11605 if ${lt_cv_dlopen_self_static+:} false; then :
11606 $as_echo_n "(cached) " >&6
11607 else
11608 if test "$cross_compiling" = yes; then :
11609 lt_cv_dlopen_self_static=cross
11610 else
11611 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11612 lt_status=$lt_dlunknown
11613 cat > conftest.$ac_ext <<_LT_EOF
11614 #line 11614 "configure"
11615 #include "confdefs.h"
11616
11617 #if HAVE_DLFCN_H
11618 #include <dlfcn.h>
11619 #endif
11620
11621 #include <stdio.h>
11622
11623 #ifdef RTLD_GLOBAL
11624 # define LT_DLGLOBAL RTLD_GLOBAL
11625 #else
11626 # ifdef DL_GLOBAL
11627 # define LT_DLGLOBAL DL_GLOBAL
11628 # else
11629 # define LT_DLGLOBAL 0
11630 # endif
11631 #endif
11632
11633 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11634 find out it does not work in some platform. */
11635 #ifndef LT_DLLAZY_OR_NOW
11636 # ifdef RTLD_LAZY
11637 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11638 # else
11639 # ifdef DL_LAZY
11640 # define LT_DLLAZY_OR_NOW DL_LAZY
11641 # else
11642 # ifdef RTLD_NOW
11643 # define LT_DLLAZY_OR_NOW RTLD_NOW
11644 # else
11645 # ifdef DL_NOW
11646 # define LT_DLLAZY_OR_NOW DL_NOW
11647 # else
11648 # define LT_DLLAZY_OR_NOW 0
11649 # endif
11650 # endif
11651 # endif
11652 # endif
11653 #endif
11654
11655 /* When -fvisbility=hidden is used, assume the code has been annotated
11656 correspondingly for the symbols needed. */
11657 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11658 void fnord () __attribute__((visibility("default")));
11659 #endif
11660
11661 void fnord () { int i=42; }
11662 int main ()
11663 {
11664 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11665 int status = $lt_dlunknown;
11666
11667 if (self)
11668 {
11669 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11670 else
11671 {
11672 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11673 else puts (dlerror ());
11674 }
11675 /* dlclose (self); */
11676 }
11677 else
11678 puts (dlerror ());
11679
11680 return status;
11681 }
11682 _LT_EOF
11683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11684 (eval $ac_link) 2>&5
11685 ac_status=$?
11686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11687 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11688 (./conftest; exit; ) >&5 2>/dev/null
11689 lt_status=$?
11690 case x$lt_status in
11691 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11692 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11693 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11694 esac
11695 else :
11696 # compilation failed
11697 lt_cv_dlopen_self_static=no
11698 fi
11699 fi
11700 rm -fr conftest*
11701
11702
11703 fi
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11705 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11706 fi
11707
11708 CPPFLAGS="$save_CPPFLAGS"
11709 LDFLAGS="$save_LDFLAGS"
11710 LIBS="$save_LIBS"
11711 ;;
11712 esac
11713
11714 case $lt_cv_dlopen_self in
11715 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11716 *) enable_dlopen_self=unknown ;;
11717 esac
11718
11719 case $lt_cv_dlopen_self_static in
11720 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11721 *) enable_dlopen_self_static=unknown ;;
11722 esac
11723 fi
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741 striplib=
11742 old_striplib=
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11744 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11745 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11746 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11747 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11749 $as_echo "yes" >&6; }
11750 else
11751 # FIXME - insert some real tests, host_os isn't really good enough
11752 case $host_os in
11753 darwin*)
11754 if test -n "$STRIP" ; then
11755 striplib="$STRIP -x"
11756 old_striplib="$STRIP -S"
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11758 $as_echo "yes" >&6; }
11759 else
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761 $as_echo "no" >&6; }
11762 fi
11763 ;;
11764 *)
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11767 ;;
11768 esac
11769 fi
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782 # Report which library types will actually be built
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11784 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11786 $as_echo "$can_build_shared" >&6; }
11787
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11789 $as_echo_n "checking whether to build shared libraries... " >&6; }
11790 test "$can_build_shared" = "no" && enable_shared=no
11791
11792 # On AIX, shared libraries and static libraries use the same namespace, and
11793 # are all built from PIC.
11794 case $host_os in
11795 aix3*)
11796 test "$enable_shared" = yes && enable_static=no
11797 if test -n "$RANLIB"; then
11798 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11799 postinstall_cmds='$RANLIB $lib'
11800 fi
11801 ;;
11802
11803 aix[4-9]*)
11804 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11805 test "$enable_shared" = yes && enable_static=no
11806 fi
11807 ;;
11808 esac
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11810 $as_echo "$enable_shared" >&6; }
11811
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11813 $as_echo_n "checking whether to build static libraries... " >&6; }
11814 # Make sure either enable_shared or enable_static is yes.
11815 test "$enable_shared" = yes || enable_static=yes
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11817 $as_echo "$enable_static" >&6; }
11818
11819
11820
11821
11822 fi
11823 ac_ext=c
11824 ac_cpp='$CPP $CPPFLAGS'
11825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11828
11829 CC="$lt_save_CC"
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843 ac_config_commands="$ac_config_commands libtool"
11844
11845
11846
11847
11848 # Only expand once:
11849
11850
11851
11852
11853 # Check whether --enable-largefile was given.
11854 if test "${enable_largefile+set}" = set; then :
11855 enableval=$enable_largefile;
11856 fi
11857
11858 if test "$enable_largefile" != no; then
11859
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11861 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11862 if ${ac_cv_sys_largefile_CC+:} false; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865 ac_cv_sys_largefile_CC=no
11866 if test "$GCC" != yes; then
11867 ac_save_CC=$CC
11868 while :; do
11869 # IRIX 6.2 and later do not support large files by default,
11870 # so use the C compiler's -n32 option if that helps.
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11873 #include <sys/types.h>
11874 /* Check that off_t can represent 2**63 - 1 correctly.
11875 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11876 since some C++ compilers masquerading as C compilers
11877 incorrectly reject 9223372036854775807. */
11878 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11879 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11880 && LARGE_OFF_T % 2147483647 == 1)
11881 ? 1 : -1];
11882 int
11883 main ()
11884 {
11885
11886 ;
11887 return 0;
11888 }
11889 _ACEOF
11890 if ac_fn_c_try_compile "$LINENO"; then :
11891 break
11892 fi
11893 rm -f core conftest.err conftest.$ac_objext
11894 CC="$CC -n32"
11895 if ac_fn_c_try_compile "$LINENO"; then :
11896 ac_cv_sys_largefile_CC=' -n32'; break
11897 fi
11898 rm -f core conftest.err conftest.$ac_objext
11899 break
11900 done
11901 CC=$ac_save_CC
11902 rm -f conftest.$ac_ext
11903 fi
11904 fi
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11906 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11907 if test "$ac_cv_sys_largefile_CC" != no; then
11908 CC=$CC$ac_cv_sys_largefile_CC
11909 fi
11910
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11912 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11913 if ${ac_cv_sys_file_offset_bits+:} false; then :
11914 $as_echo_n "(cached) " >&6
11915 else
11916 while :; do
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11919 #include <sys/types.h>
11920 /* Check that off_t can represent 2**63 - 1 correctly.
11921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11922 since some C++ compilers masquerading as C compilers
11923 incorrectly reject 9223372036854775807. */
11924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11926 && LARGE_OFF_T % 2147483647 == 1)
11927 ? 1 : -1];
11928 int
11929 main ()
11930 {
11931
11932 ;
11933 return 0;
11934 }
11935 _ACEOF
11936 if ac_fn_c_try_compile "$LINENO"; then :
11937 ac_cv_sys_file_offset_bits=no; break
11938 fi
11939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h. */
11942 #define _FILE_OFFSET_BITS 64
11943 #include <sys/types.h>
11944 /* Check that off_t can represent 2**63 - 1 correctly.
11945 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11946 since some C++ compilers masquerading as C compilers
11947 incorrectly reject 9223372036854775807. */
11948 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11949 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11950 && LARGE_OFF_T % 2147483647 == 1)
11951 ? 1 : -1];
11952 int
11953 main ()
11954 {
11955
11956 ;
11957 return 0;
11958 }
11959 _ACEOF
11960 if ac_fn_c_try_compile "$LINENO"; then :
11961 ac_cv_sys_file_offset_bits=64; break
11962 fi
11963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11964 ac_cv_sys_file_offset_bits=unknown
11965 break
11966 done
11967 fi
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11969 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11970 case $ac_cv_sys_file_offset_bits in #(
11971 no | unknown) ;;
11972 *)
11973 cat >>confdefs.h <<_ACEOF
11974 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11975 _ACEOF
11976 ;;
11977 esac
11978 rm -rf conftest*
11979 if test $ac_cv_sys_file_offset_bits = unknown; then
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11981 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11982 if ${ac_cv_sys_large_files+:} false; then :
11983 $as_echo_n "(cached) " >&6
11984 else
11985 while :; do
11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987 /* end confdefs.h. */
11988 #include <sys/types.h>
11989 /* Check that off_t can represent 2**63 - 1 correctly.
11990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11991 since some C++ compilers masquerading as C compilers
11992 incorrectly reject 9223372036854775807. */
11993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11995 && LARGE_OFF_T % 2147483647 == 1)
11996 ? 1 : -1];
11997 int
11998 main ()
11999 {
12000
12001 ;
12002 return 0;
12003 }
12004 _ACEOF
12005 if ac_fn_c_try_compile "$LINENO"; then :
12006 ac_cv_sys_large_files=no; break
12007 fi
12008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12011 #define _LARGE_FILES 1
12012 #include <sys/types.h>
12013 /* Check that off_t can represent 2**63 - 1 correctly.
12014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12015 since some C++ compilers masquerading as C compilers
12016 incorrectly reject 9223372036854775807. */
12017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12019 && LARGE_OFF_T % 2147483647 == 1)
12020 ? 1 : -1];
12021 int
12022 main ()
12023 {
12024
12025 ;
12026 return 0;
12027 }
12028 _ACEOF
12029 if ac_fn_c_try_compile "$LINENO"; then :
12030 ac_cv_sys_large_files=1; break
12031 fi
12032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12033 ac_cv_sys_large_files=unknown
12034 break
12035 done
12036 fi
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12038 $as_echo "$ac_cv_sys_large_files" >&6; }
12039 case $ac_cv_sys_large_files in #(
12040 no | unknown) ;;
12041 *)
12042 cat >>confdefs.h <<_ACEOF
12043 #define _LARGE_FILES $ac_cv_sys_large_files
12044 _ACEOF
12045 ;;
12046 esac
12047 rm -rf conftest*
12048 fi
12049
12050
12051 fi
12052
12053
12054 backtrace_supported=yes
12055
12056 if test -n "${with_target_subdir}"; then
12057 # We are compiling a GCC library. We can assume that the unwind
12058 # library exists.
12059 BACKTRACE_FILE="backtrace.lo simple.lo"
12060 else
12061 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
12062 if test "x$ac_cv_header_unwind_h" = xyes; then :
12063 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
12064 if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then :
12065 BACKTRACE_FILE="backtrace.lo simple.lo"
12066 else
12067 BACKTRACE_FILE="nounwind.lo"
12068 backtrace_supported=no
12069 fi
12070
12071 else
12072 BACKTRACE_FILE="nounwind.lo"
12073 backtrace_supported=no
12074 fi
12075
12076
12077 fi
12078
12079
12080 EXTRA_FLAGS=
12081 if test -n "${with_target_subdir}"; then
12082 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
12085 $as_echo_n "checking for -funwind-tables option... " >&6; }
12086 if ${libbacktrace_cv_c_unwind_tables+:} false; then :
12087 $as_echo_n "(cached) " >&6
12088 else
12089 CFLAGS_hold="$CFLAGS"
12090 CFLAGS="$CFLAGS -funwind-tables"
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12093 static int f() { return 0; }
12094 int
12095 main ()
12096 {
12097 return f();
12098 ;
12099 return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_c_try_compile "$LINENO"; then :
12103 libbacktrace_cv_c_unwind_tables=yes
12104 else
12105 libbacktrace_cv_c_unwind_tables=no
12106 fi
12107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108 CFLAGS="$CFLAGS_hold"
12109 fi
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
12111 $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
12112 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
12113 EXTRA_FLAGS=-funwind-tables
12114 fi
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
12116 $as_echo_n "checking for -frandom-seed=string option... " >&6; }
12117 if ${libbacktrace_cv_c_random_seed_string+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 CFLAGS_hold="$CFLAGS"
12121 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12124
12125 int
12126 main ()
12127 {
12128 return 0;
12129 ;
12130 return 0;
12131 }
12132 _ACEOF
12133 if ac_fn_c_try_compile "$LINENO"; then :
12134 libbacktrace_cv_c_random_seed_string=yes
12135 else
12136 libbacktrace_cv_c_random_seed_string=no
12137 fi
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12139 CFLAGS="$CFLAGS_hold"
12140 fi
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
12142 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
12143 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
12144 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
12145 fi
12146 fi
12147
12148 if test -n "${with_target_subdir}"; then
12149 # Add CET specific flags is Intel CET is enabled.
12150 # Check whether --enable-cet was given.
12151 if test "${enable_cet+set}" = set; then :
12152 enableval=$enable_cet;
12153 case "$enableval" in
12154 yes|no|auto) ;;
12155 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12156 esac
12157
12158 else
12159 enable_cet=auto
12160 fi
12161
12162
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12164 $as_echo_n "checking for CET support... " >&6; }
12165
12166 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
12167 case "$host" in
12168 i[34567]86-*-linux* | x86_64-*-linux*)
12169 case "$enable_cet" in
12170 auto)
12171 # Check if target supports multi-byte NOPs
12172 # and if assembler supports CET insn.
12173 cet_save_CFLAGS="$CFLAGS"
12174 CFLAGS="$CFLAGS -fcf-protection"
12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h. */
12177
12178 int
12179 main ()
12180 {
12181
12182 #if !defined(__SSE2__)
12183 #error target does not support multi-byte NOPs
12184 #else
12185 asm ("setssbsy");
12186 #endif
12187
12188 ;
12189 return 0;
12190 }
12191 _ACEOF
12192 if ac_fn_c_try_compile "$LINENO"; then :
12193 enable_cet=yes
12194 else
12195 enable_cet=no
12196 fi
12197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12198 CFLAGS="$cet_save_CFLAGS"
12199 ;;
12200 yes)
12201 # Check if assembler supports CET.
12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12204
12205 int
12206 main ()
12207 {
12208 asm ("setssbsy");
12209 ;
12210 return 0;
12211 }
12212 _ACEOF
12213 if ac_fn_c_try_compile "$LINENO"; then :
12214
12215 else
12216 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
12217 fi
12218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219 ;;
12220 esac
12221 ;;
12222 *)
12223 enable_cet=no
12224 ;;
12225 esac
12226 if test x$enable_cet = xyes; then
12227 CET_FLAGS="-fcf-protection -mshstk"
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12229 $as_echo "yes" >&6; }
12230 else
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12233 fi
12234
12235 EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS"
12236 fi
12237
12238
12239 ac_ext=c
12240 ac_cpp='$CPP $CPPFLAGS'
12241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12244
12245 WARN_FLAGS=
12246 save_CFLAGS="$CFLAGS"
12247 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
12248 -Wmissing-prototypes -Wold-style-definition \
12249 -Wmissing-format-attribute -Wcast-qual; do
12250 # Do the check with the no- prefix removed since gcc silently
12251 # accepts any -Wno-* option on purpose
12252 case $real_option in
12253 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12254 *) option=$real_option ;;
12255 esac
12256 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12257
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12259 $as_echo_n "checking whether $CC supports $option... " >&6; }
12260 if eval \${$as_acx_Woption+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 CFLAGS="$option"
12264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h. */
12266
12267 int
12268 main ()
12269 {
12270
12271 ;
12272 return 0;
12273 }
12274 _ACEOF
12275 if ac_fn_c_try_compile "$LINENO"; then :
12276 eval "$as_acx_Woption=yes"
12277 else
12278 eval "$as_acx_Woption=no"
12279 fi
12280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12281
12282 fi
12283 eval ac_res=\$$as_acx_Woption
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12285 $as_echo "$ac_res" >&6; }
12286 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12287 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
12288 fi
12289 done
12290 CFLAGS="$save_CFLAGS"
12291 ac_ext=c
12292 ac_cpp='$CPP $CPPFLAGS'
12293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12296
12297
12298
12299 if test -n "${with_target_subdir}"; then
12300 WARN_FLAGS="$WARN_FLAGS -Werror"
12301 fi
12302
12303
12304
12305 if test -n "${with_target_subdir}"; then
12306
12307
12308 # Check whether --with-system-libunwind was given.
12309 if test "${with_system_libunwind+set}" = set; then :
12310 withval=$with_system_libunwind;
12311 fi
12312
12313 # If system-libunwind was not specifically set, pick a default setting.
12314 if test x$with_system_libunwind = x; then
12315 case ${target} in
12316 ia64-*-hpux*) with_system_libunwind=yes ;;
12317 *) with_system_libunwind=no ;;
12318 esac
12319 fi
12320 # Based on system-libunwind and target, do we have ipinfo?
12321 if test x$with_system_libunwind = xyes; then
12322 case ${target} in
12323 ia64-*-*) have_unwind_getipinfo=no ;;
12324 *) have_unwind_getipinfo=yes ;;
12325 esac
12326 else
12327 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12328
12329 case ${target} in
12330 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12331 *) have_unwind_getipinfo=yes ;;
12332 esac
12333
12334 fi
12335
12336 if test x$have_unwind_getipinfo = xyes; then
12337
12338 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12339
12340 fi
12341
12342 else
12343 ac_save_CFFLAGS="$CFLAGS"
12344 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
12346 $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12349 #include "unwind.h"
12350 struct _Unwind_Context *context;
12351 int ip_before_insn = 0;
12352 int
12353 main ()
12354 {
12355 return _Unwind_GetIPInfo (context, &ip_before_insn);
12356 ;
12357 return 0;
12358 }
12359 _ACEOF
12360 if ac_fn_c_try_link "$LINENO"; then :
12361 have_unwind_getipinfo=yes
12362 else
12363 have_unwind_getipinfo=no
12364 fi
12365 rm -f core conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
12367 CFLAGS="$ac_save_CFLAGS"
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
12369 $as_echo "$have_unwind_getipinfo" >&6; }
12370 if test "$have_unwind_getipinfo" = "yes"; then
12371
12372 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12373
12374 fi
12375 fi
12376
12377 # Enable --enable-host-shared.
12378 # Check whether --enable-host-shared was given.
12379 if test "${enable_host_shared+set}" = set; then :
12380 enableval=$enable_host_shared; PIC_FLAG=-fPIC
12381 else
12382 PIC_FLAG=
12383 fi
12384
12385
12386
12387 # Enable Intel CET on Intel CET enabled host if jit is enabled.
12388 # Check whether --enable-cet was given.
12389 if test "${enable_cet+set}" = set; then :
12390 enableval=$enable_cet;
12391 case "$enableval" in
12392 yes|no|auto) ;;
12393 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12394 esac
12395
12396 else
12397 enable_cet=auto
12398 fi
12399
12400
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12402 $as_echo_n "checking for CET support... " >&6; }
12403
12404 case "$host" in
12405 i[34567]86-*-linux* | x86_64-*-linux*)
12406 may_have_cet=yes
12407 cet_save_CFLAGS="$CFLAGS"
12408 CFLAGS="$CFLAGS -fcf-protection"
12409 case "$enable_cet" in
12410 auto)
12411 # Check if target supports multi-byte NOPs
12412 # and if assembler supports CET insn.
12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h. */
12415
12416 int
12417 main ()
12418 {
12419
12420 #if !defined(__SSE2__)
12421 #error target does not support multi-byte NOPs
12422 #else
12423 asm ("setssbsy");
12424 #endif
12425
12426 ;
12427 return 0;
12428 }
12429 _ACEOF
12430 if ac_fn_c_try_compile "$LINENO"; then :
12431 enable_cet=yes
12432 else
12433 enable_cet=no
12434 fi
12435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12436 ;;
12437 yes)
12438 # Check if assembler supports CET.
12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h. */
12441
12442 int
12443 main ()
12444 {
12445 asm ("setssbsy");
12446 ;
12447 return 0;
12448 }
12449 _ACEOF
12450 if ac_fn_c_try_compile "$LINENO"; then :
12451
12452 else
12453 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
12454 fi
12455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12456 ;;
12457 esac
12458 CFLAGS="$cet_save_CFLAGS"
12459 ;;
12460 *)
12461 may_have_cet=no
12462 enable_cet=no
12463 ;;
12464 esac
12465
12466 cet_save_CFLAGS="$CFLAGS"
12467 CFLAGS="$CFLAGS -fcf-protection=none"
12468 cet_save_LDFLAGS="$LDFLAGS"
12469 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
12470 if test x$may_have_cet = xyes; then
12471 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12474
12475 int
12476 main ()
12477 {
12478 return 0;
12479 ;
12480 return 0;
12481 }
12482 _ACEOF
12483 if ac_fn_c_try_link "$LINENO"; then :
12484 may_have_cet=yes
12485 else
12486 may_have_cet=no
12487 fi
12488 rm -f core conftest.err conftest.$ac_objext \
12489 conftest$ac_exeext conftest.$ac_ext
12490 fi
12491
12492 if test x$may_have_cet = xyes; then
12493 if test x$cross_compiling = xno; then
12494 if test "$cross_compiling" = yes; then :
12495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12497 as_fn_error $? "cannot run test program while cross compiling
12498 See \`config.log' for more details" "$LINENO" 5; }
12499 else
12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501 /* end confdefs.h. */
12502
12503 static void
12504 foo (void)
12505 {
12506 }
12507
12508 static void
12509 __attribute__ ((noinline, noclone))
12510 xxx (void (*f) (void))
12511 {
12512 f ();
12513 }
12514
12515 static void
12516 __attribute__ ((noinline, noclone))
12517 bar (void)
12518 {
12519 xxx (foo);
12520 }
12521
12522 int
12523 main ()
12524 {
12525 bar ();
12526 return 0;
12527 }
12528
12529 _ACEOF
12530 if ac_fn_c_try_run "$LINENO"; then :
12531 have_cet=no
12532 else
12533 have_cet=yes
12534 fi
12535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12536 conftest.$ac_objext conftest.beam conftest.$ac_ext
12537 fi
12538
12539 if test x$enable_cet = xno -a x$have_cet = xyes; then
12540 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
12541 fi
12542 fi
12543 else
12544 # Enable CET in cross compiler if possible so that it will run on both
12545 # CET and non-CET hosts.
12546 have_cet=yes
12547 fi
12548 if test x$enable_cet = xyes; then
12549 CET_HOST_FLAGS="-fcf-protection"
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12551 $as_echo "yes" >&6; }
12552 else
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 $as_echo "no" >&6; }
12555 fi
12556 CFLAGS="$cet_save_CFLAGS"
12557 LDFLAGS="$cet_save_LDFLAGS"
12558
12559 case x$enable_languages in
12560 *jit*)
12561 ;;
12562 *)
12563 CET_HOST_FLAGS=
12564 ;;
12565 esac
12566
12567
12568 # Test for __sync support.
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
12570 $as_echo_n "checking __sync extensions... " >&6; }
12571 if ${libbacktrace_cv_sys_sync+:} false; then :
12572 $as_echo_n "(cached) " >&6
12573 else
12574 if test -n "${with_target_subdir}"; then
12575 case "${host}" in
12576 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
12577 *) libbacktrace_cv_sys_sync=yes ;;
12578 esac
12579 else
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12582 int i;
12583 int
12584 main ()
12585 {
12586 __sync_bool_compare_and_swap (&i, i, i);
12587 __sync_lock_test_and_set (&i, 1);
12588 __sync_lock_release (&i);
12589 ;
12590 return 0;
12591 }
12592 _ACEOF
12593 if ac_fn_c_try_link "$LINENO"; then :
12594 libbacktrace_cv_sys_sync=yes
12595 else
12596 libbacktrace_cv_sys_sync=no
12597 fi
12598 rm -f core conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext conftest.$ac_ext
12600 fi
12601 fi
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
12603 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
12604 BACKTRACE_SUPPORTS_THREADS=0
12605 if test "$libbacktrace_cv_sys_sync" = "yes"; then
12606 BACKTRACE_SUPPORTS_THREADS=1
12607
12608 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
12609
12610 fi
12611
12612
12613 # Test for __atomic support.
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
12615 $as_echo_n "checking __atomic extensions... " >&6; }
12616 if ${libbacktrace_cv_sys_atomic+:} false; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12619 if test -n "${with_target_subdir}"; then
12620 libbacktrace_cv_sys_atomic=yes
12621 else
12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h. */
12624 int i;
12625 int
12626 main ()
12627 {
12628 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
12629 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
12630 ;
12631 return 0;
12632 }
12633 _ACEOF
12634 if ac_fn_c_try_link "$LINENO"; then :
12635 libbacktrace_cv_sys_atomic=yes
12636 else
12637 libbacktrace_cv_sys_atomic=no
12638 fi
12639 rm -f core conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
12641 fi
12642 fi
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12644 $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12645 if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12646
12647 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12648
12649 fi
12650
12651 # The library needs to be able to read the executable itself. Compile
12652 # a file to determine the executable format. The awk script
12653 # filetype.awk prints out the file type.
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12655 $as_echo_n "checking output filetype... " >&6; }
12656 if ${libbacktrace_cv_sys_filetype+:} false; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12659 filetype=
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12662 int i;
12663 int
12664 main ()
12665 {
12666 int j;
12667 ;
12668 return 0;
12669 }
12670 _ACEOF
12671 if ac_fn_c_try_compile "$LINENO"; then :
12672 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12673 else
12674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12676 as_fn_error $? "compiler failed
12677 See \`config.log' for more details" "$LINENO" 5; }
12678 fi
12679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12680 libbacktrace_cv_sys_filetype=$filetype
12681 fi
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12683 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12684
12685 # Match the file type to decide what files to compile.
12686 FORMAT_FILE=
12687 backtrace_supports_data=yes
12688 case "$libbacktrace_cv_sys_filetype" in
12689 elf*) FORMAT_FILE="elf.lo" ;;
12690 macho) FORMAT_FILE="macho.lo" ;;
12691 pecoff) FORMAT_FILE="pecoff.lo"
12692 backtrace_supports_data=no
12693 ;;
12694 xcoff*) FORMAT_FILE="xcoff.lo"
12695 backtrace_supports_data=no
12696 ;;
12697 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12698 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12699 FORMAT_FILE="unknown.lo"
12700 backtrace_supported=no
12701 ;;
12702 esac
12703
12704
12705 # ELF defines.
12706 elfsize=
12707 case "$libbacktrace_cv_sys_filetype" in
12708 elf32) elfsize=32 ;;
12709 elf64) elfsize=64 ;;
12710 *) elfsize=unused
12711 esac
12712
12713 cat >>confdefs.h <<_ACEOF
12714 #define BACKTRACE_ELF_SIZE $elfsize
12715 _ACEOF
12716
12717 if test "$FORMAT_FILE" = "elf.lo"; then
12718 HAVE_ELF_TRUE=
12719 HAVE_ELF_FALSE='#'
12720 else
12721 HAVE_ELF_TRUE='#'
12722 HAVE_ELF_FALSE=
12723 fi
12724
12725
12726 # XCOFF defines.
12727 xcoffsize=
12728 case "$libbacktrace_cv_sys_filetype" in
12729 xcoff32) xcoffsize=32 ;;
12730 xcoff64) xcoffsize=64 ;;
12731 *) xcoffsize=unused
12732 esac
12733
12734 cat >>confdefs.h <<_ACEOF
12735 #define BACKTRACE_XCOFF_SIZE $xcoffsize
12736 _ACEOF
12737
12738
12739 BACKTRACE_SUPPORTED=0
12740 if test "$backtrace_supported" = "yes"; then
12741 BACKTRACE_SUPPORTED=1
12742 fi
12743
12744
12745 BACKTRACE_SUPPORTS_DATA=0
12746 if test "$backtrace_supports_data" = "yes"; then
12747 BACKTRACE_SUPPORTS_DATA=1
12748 fi
12749
12750
12751
12752
12753 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12754
12755 acx_cv_header_stdint=stddef.h
12756 acx_cv_header_stdint_kind="(already complete)"
12757 for i in stdint.h $inttype_headers; do
12758 unset ac_cv_type_uintptr_t
12759 unset ac_cv_type_uintmax_t
12760 unset ac_cv_type_int_least32_t
12761 unset ac_cv_type_int_fast32_t
12762 unset ac_cv_type_uint64_t
12763 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12764 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12765 #include <$i>
12766 "
12767 if test "x$ac_cv_type_uintmax_t" = xyes; then :
12768 acx_cv_header_stdint=$i
12769 else
12770 continue
12771 fi
12772
12773 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12774 #include <$i>
12775 "
12776 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12777
12778 else
12779 acx_cv_header_stdint_kind="(mostly complete)"
12780 fi
12781
12782 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12783 #include <$i>
12784 "
12785 if test "x$ac_cv_type_int_least32_t" = xyes; then :
12786
12787 else
12788 acx_cv_header_stdint_kind="(mostly complete)"
12789 fi
12790
12791 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12792 #include <$i>
12793 "
12794 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
12795
12796 else
12797 acx_cv_header_stdint_kind="(mostly complete)"
12798 fi
12799
12800 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12801 #include <$i>
12802 "
12803 if test "x$ac_cv_type_uint64_t" = xyes; then :
12804
12805 else
12806 acx_cv_header_stdint_kind="(lacks uint64_t)"
12807 fi
12808
12809 break
12810 done
12811 if test "$acx_cv_header_stdint" = stddef.h; then
12812 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12813 for i in stdint.h $inttype_headers; do
12814 unset ac_cv_type_uintptr_t
12815 unset ac_cv_type_uint32_t
12816 unset ac_cv_type_uint64_t
12817 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12818 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12819 #include <$i>
12820 "
12821 if test "x$ac_cv_type_uint32_t" = xyes; then :
12822 acx_cv_header_stdint=$i
12823 else
12824 continue
12825 fi
12826
12827 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12828 #include <$i>
12829 "
12830 if test "x$ac_cv_type_uint64_t" = xyes; then :
12831
12832 fi
12833
12834 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12835 #include <$i>
12836 "
12837 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12838
12839 fi
12840
12841 break
12842 done
12843 fi
12844 if test "$acx_cv_header_stdint" = stddef.h; then
12845 acx_cv_header_stdint_kind="(u_intXX_t style)"
12846 for i in sys/types.h $inttype_headers; do
12847 unset ac_cv_type_u_int32_t
12848 unset ac_cv_type_u_int64_t
12849 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12850 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12851 #include <$i>
12852 "
12853 if test "x$ac_cv_type_u_int32_t" = xyes; then :
12854 acx_cv_header_stdint=$i
12855 else
12856 continue
12857 fi
12858
12859 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12860 #include <$i>
12861 "
12862 if test "x$ac_cv_type_u_int64_t" = xyes; then :
12863
12864 fi
12865
12866 break
12867 done
12868 fi
12869 if test "$acx_cv_header_stdint" = stddef.h; then
12870 acx_cv_header_stdint_kind="(using manual detection)"
12871 fi
12872
12873 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12874 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12875 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12876 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12877 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12878
12879 # ----------------- Summarize what we found so far
12880
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12882 $as_echo_n "checking what to include in gstdint.h... " >&6; }
12883
12884 case `$as_basename -- gstdint.h ||
12885 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12886 Xgstdint.h : 'X\(//\)$' \| \
12887 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12888 $as_echo X/gstdint.h |
12889 sed '/^.*\/\([^/][^/]*\)\/*$/{
12890 s//\1/
12891 q
12892 }
12893 /^X\/\(\/\/\)$/{
12894 s//\1/
12895 q
12896 }
12897 /^X\/\(\/\).*/{
12898 s//\1/
12899 q
12900 }
12901 s/.*/./; q'` in
12902 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12903 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12904 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12905 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12906 *) ;;
12907 esac
12908
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12910 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12911
12912 # ----------------- done included file, check C basic types --------
12913
12914 # Lacking an uintptr_t? Test size of void *
12915 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12916 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12917 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12918 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12919 # This bug is HP SR number 8606223364.
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12921 $as_echo_n "checking size of void *... " >&6; }
12922 if ${ac_cv_sizeof_void_p+:} false; then :
12923 $as_echo_n "(cached) " >&6
12924 else
12925 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12926
12927 else
12928 if test "$ac_cv_type_void_p" = yes; then
12929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12931 as_fn_error 77 "cannot compute sizeof (void *)
12932 See \`config.log' for more details" "$LINENO" 5; }
12933 else
12934 ac_cv_sizeof_void_p=0
12935 fi
12936 fi
12937
12938 fi
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12940 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12941
12942
12943
12944 cat >>confdefs.h <<_ACEOF
12945 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12946 _ACEOF
12947
12948 ;;
12949 esac
12950
12951 # Lacking an uint64_t? Test size of long
12952 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12953 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12956 # This bug is HP SR number 8606223364.
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12958 $as_echo_n "checking size of long... " >&6; }
12959 if ${ac_cv_sizeof_long+:} false; then :
12960 $as_echo_n "(cached) " >&6
12961 else
12962 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12963
12964 else
12965 if test "$ac_cv_type_long" = yes; then
12966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12968 as_fn_error 77 "cannot compute sizeof (long)
12969 See \`config.log' for more details" "$LINENO" 5; }
12970 else
12971 ac_cv_sizeof_long=0
12972 fi
12973 fi
12974
12975 fi
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12977 $as_echo "$ac_cv_sizeof_long" >&6; }
12978
12979
12980
12981 cat >>confdefs.h <<_ACEOF
12982 #define SIZEOF_LONG $ac_cv_sizeof_long
12983 _ACEOF
12984
12985 ;;
12986 esac
12987
12988 if test $acx_cv_header_stdint = stddef.h; then
12989 # Lacking a good header? Test size of everything and deduce all types.
12990 # The cast to long int works around a bug in the HP C Compiler
12991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12993 # This bug is HP SR number 8606223364.
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12995 $as_echo_n "checking size of int... " >&6; }
12996 if ${ac_cv_sizeof_int+:} false; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13000
13001 else
13002 if test "$ac_cv_type_int" = yes; then
13003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13005 as_fn_error 77 "cannot compute sizeof (int)
13006 See \`config.log' for more details" "$LINENO" 5; }
13007 else
13008 ac_cv_sizeof_int=0
13009 fi
13010 fi
13011
13012 fi
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13014 $as_echo "$ac_cv_sizeof_int" >&6; }
13015
13016
13017
13018 cat >>confdefs.h <<_ACEOF
13019 #define SIZEOF_INT $ac_cv_sizeof_int
13020 _ACEOF
13021
13022
13023 # The cast to long int works around a bug in the HP C Compiler
13024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13026 # This bug is HP SR number 8606223364.
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13028 $as_echo_n "checking size of short... " >&6; }
13029 if ${ac_cv_sizeof_short+:} false; then :
13030 $as_echo_n "(cached) " >&6
13031 else
13032 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13033
13034 else
13035 if test "$ac_cv_type_short" = yes; then
13036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13038 as_fn_error 77 "cannot compute sizeof (short)
13039 See \`config.log' for more details" "$LINENO" 5; }
13040 else
13041 ac_cv_sizeof_short=0
13042 fi
13043 fi
13044
13045 fi
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13047 $as_echo "$ac_cv_sizeof_short" >&6; }
13048
13049
13050
13051 cat >>confdefs.h <<_ACEOF
13052 #define SIZEOF_SHORT $ac_cv_sizeof_short
13053 _ACEOF
13054
13055
13056 # The cast to long int works around a bug in the HP C Compiler
13057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13059 # This bug is HP SR number 8606223364.
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13061 $as_echo_n "checking size of char... " >&6; }
13062 if ${ac_cv_sizeof_char+:} false; then :
13063 $as_echo_n "(cached) " >&6
13064 else
13065 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13066
13067 else
13068 if test "$ac_cv_type_char" = yes; then
13069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13071 as_fn_error 77 "cannot compute sizeof (char)
13072 See \`config.log' for more details" "$LINENO" 5; }
13073 else
13074 ac_cv_sizeof_char=0
13075 fi
13076 fi
13077
13078 fi
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13080 $as_echo "$ac_cv_sizeof_char" >&6; }
13081
13082
13083
13084 cat >>confdefs.h <<_ACEOF
13085 #define SIZEOF_CHAR $ac_cv_sizeof_char
13086 _ACEOF
13087
13088
13089
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13091 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
13092 case "$ac_cv_sizeof_char" in
13093 1) acx_cv_type_int8_t=char ;;
13094 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
13095 esac
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13097 $as_echo "$acx_cv_type_int8_t" >&6; }
13098
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13100 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
13101 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13102 2:*) acx_cv_type_int16_t=int ;;
13103 *:2) acx_cv_type_int16_t=short ;;
13104 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
13105 esac
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13107 $as_echo "$acx_cv_type_int16_t" >&6; }
13108
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13110 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
13111 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13112 4:*) acx_cv_type_int32_t=int ;;
13113 *:4) acx_cv_type_int32_t=long ;;
13114 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
13115 esac
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13117 $as_echo "$acx_cv_type_int32_t" >&6; }
13118 fi
13119
13120 # These tests are here to make the output prettier
13121
13122 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13123 case "$ac_cv_sizeof_long" in
13124 8) acx_cv_type_int64_t=long ;;
13125 esac
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13127 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13129 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13130 fi
13131
13132 # Now we can use the above types
13133
13134 if test "$ac_cv_type_uintptr_t" != yes; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13136 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13137 case $ac_cv_sizeof_void_p in
13138 2) acx_cv_type_intptr_t=int16_t ;;
13139 4) acx_cv_type_intptr_t=int32_t ;;
13140 8) acx_cv_type_intptr_t=int64_t ;;
13141 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
13142 esac
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13144 $as_echo "$acx_cv_type_intptr_t" >&6; }
13145 fi
13146
13147 # ----------------- done all checks, emit header -------------
13148 ac_config_commands="$ac_config_commands gstdint.h"
13149
13150
13151
13152
13153 for ac_header in sys/mman.h
13154 do :
13155 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13156 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13157 cat >>confdefs.h <<_ACEOF
13158 #define HAVE_SYS_MMAN_H 1
13159 _ACEOF
13160
13161 fi
13162
13163 done
13164
13165 if test "$ac_cv_header_sys_mman_h" = "no"; then
13166 have_mmap=no
13167 else
13168 if test -n "${with_target_subdir}"; then
13169 # When built as a GCC target library, we can't do a link test. We
13170 # simply assume that if we have mman.h, we have mmap.
13171 have_mmap=yes
13172 case "${host}" in
13173 *-*-msdosdjgpp)
13174 # DJGPP has sys/man.h, but no mmap
13175 have_mmap=no ;;
13176 esac
13177 else
13178 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13179 if test "x$ac_cv_func_mmap" = xyes; then :
13180 have_mmap=yes
13181 else
13182 have_mmap=no
13183 fi
13184
13185 fi
13186 fi
13187 if test "$have_mmap" = "no"; then
13188 VIEW_FILE=read.lo
13189 ALLOC_FILE=alloc.lo
13190 else
13191 VIEW_FILE=mmapio.lo
13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h. */
13194
13195 #include <sys/mman.h>
13196 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
13197 #error no MAP_ANONYMOUS
13198 #endif
13199
13200 _ACEOF
13201 if ac_fn_c_try_cpp "$LINENO"; then :
13202 ALLOC_FILE=mmap.lo
13203 else
13204 ALLOC_FILE=alloc.lo
13205 fi
13206 rm -f conftest.err conftest.i conftest.$ac_ext
13207 fi
13208
13209
13210
13211 BACKTRACE_USES_MALLOC=0
13212 if test "$ALLOC_FILE" = "alloc.lo"; then
13213 BACKTRACE_USES_MALLOC=1
13214 fi
13215
13216
13217 # Check for dl_iterate_phdr.
13218 for ac_header in link.h
13219 do :
13220 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
13221 if test "x$ac_cv_header_link_h" = xyes; then :
13222 cat >>confdefs.h <<_ACEOF
13223 #define HAVE_LINK_H 1
13224 _ACEOF
13225
13226 fi
13227
13228 done
13229
13230 if test "$ac_cv_header_link_h" = "no"; then
13231 have_dl_iterate_phdr=no
13232 else
13233 if test -n "${with_target_subdir}"; then
13234 # When built as a GCC target library, we can't do a link test.
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13237 #include <link.h>
13238
13239 _ACEOF
13240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13241 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
13242 have_dl_iterate_phdr=yes
13243 else
13244 have_dl_iterate_phdr=no
13245 fi
13246 rm -f conftest*
13247
13248 else
13249 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
13250 if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then :
13251 have_dl_iterate_phdr=yes
13252 else
13253 have_dl_iterate_phdr=no
13254 fi
13255
13256 fi
13257 fi
13258 if test "$have_dl_iterate_phdr" = "yes"; then
13259
13260 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
13261
13262 fi
13263
13264 # Check for header file for Mach-O image functions.
13265 for ac_header in mach-o/dyld.h
13266 do :
13267 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
13268 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
13269 cat >>confdefs.h <<_ACEOF
13270 #define HAVE_MACH_O_DYLD_H 1
13271 _ACEOF
13272
13273 fi
13274
13275 done
13276
13277
13278 # Check for loadquery.
13279 for ac_header in sys/ldr.h
13280 do :
13281 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
13282 if test "x$ac_cv_header_sys_ldr_h" = xyes; then :
13283 cat >>confdefs.h <<_ACEOF
13284 #define HAVE_SYS_LDR_H 1
13285 _ACEOF
13286
13287 fi
13288
13289 done
13290
13291 if test "$ac_cv_header_sys_ldr_h" = "no"; then
13292 have_loadquery=no
13293 else
13294 if test -n "${with_target_subdir}"; then
13295 # When built as a GCC target library, we can't do a link test.
13296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13297 /* end confdefs.h. */
13298 #include <sys/ldr.h>
13299
13300 _ACEOF
13301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13302 $EGREP "loadquery" >/dev/null 2>&1; then :
13303 have_loadquery=yes
13304 else
13305 have_loadquery=no
13306 fi
13307 rm -f conftest*
13308
13309 else
13310 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
13311 if test "x$ac_cv_func_loadquery" = xyes; then :
13312 have_loadquery=yes
13313 else
13314 have_loadquery=no
13315 fi
13316
13317 fi
13318 fi
13319 if test "$have_loadquery" = "yes"; then
13320
13321 $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
13322
13323 fi
13324
13325 # Check for the fcntl function.
13326 if test -n "${with_target_subdir}"; then
13327 case "${host}" in
13328 *-*-mingw*) have_fcntl=no ;;
13329 *) have_fcntl=yes ;;
13330 esac
13331 else
13332 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13333 if test "x$ac_cv_func_fcntl" = xyes; then :
13334 have_fcntl=yes
13335 else
13336 have_fcntl=no
13337 fi
13338
13339 fi
13340 if test "$have_fcntl" = "yes"; then
13341
13342 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
13343
13344 fi
13345
13346 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13347 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13348 ac_have_decl=1
13349 else
13350 ac_have_decl=0
13351 fi
13352
13353 cat >>confdefs.h <<_ACEOF
13354 #define HAVE_DECL_STRNLEN $ac_have_decl
13355 _ACEOF
13356 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
13357 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
13358 ac_have_decl=1
13359 else
13360 ac_have_decl=0
13361 fi
13362
13363 cat >>confdefs.h <<_ACEOF
13364 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
13365 _ACEOF
13366
13367 for ac_func in lstat readlink
13368 do :
13369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13370 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13371 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13372 cat >>confdefs.h <<_ACEOF
13373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13374 _ACEOF
13375
13376 fi
13377 done
13378
13379
13380 # Check for getexecname function.
13381 if test -n "${with_target_subdir}"; then
13382 case "${host}" in
13383 *-*-solaris2*) have_getexecname=yes ;;
13384 *) have_getexecname=no ;;
13385 esac
13386 else
13387 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
13388 if test "x$ac_cv_func_getexecname" = xyes; then :
13389 have_getexecname=yes
13390 else
13391 have_getexecname=no
13392 fi
13393
13394 fi
13395 if test "$have_getexecname" = "yes"; then
13396
13397 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
13398
13399 fi
13400
13401 # Check for sysctl definitions.
13402
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROC" >&5
13404 $as_echo_n "checking for KERN_PROC... " >&6; }
13405 if ${libbacktrace_cv_proc+:} false; then :
13406 $as_echo_n "(cached) " >&6
13407 else
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410
13411 #include <sys/types.h>
13412 #include <sys/sysctl.h>
13413
13414 int
13415 main ()
13416 {
13417 int mib0 = CTL_KERN; int mib1 = KERN_PROC; int mib2 = KERN_PROC_PATHNAME;
13418 ;
13419 return 0;
13420 }
13421 _ACEOF
13422 if ac_fn_c_try_compile "$LINENO"; then :
13423 libbacktrace_cv_proc=yes
13424 else
13425 libbacktrace_cv_proc=no
13426 fi
13427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13428 fi
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_proc" >&5
13430 $as_echo "$libbacktrace_cv_proc" >&6; }
13431 if test "$libbacktrace_cv_proc" = "yes"; then
13432
13433 $as_echo "#define HAVE_KERN_PROC 1" >>confdefs.h
13434
13435 fi
13436
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROG_ARGS" >&5
13438 $as_echo_n "checking for KERN_PROG_ARGS... " >&6; }
13439 if ${libbacktrace_cv_procargs+:} false; then :
13440 $as_echo_n "(cached) " >&6
13441 else
13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443 /* end confdefs.h. */
13444
13445 #include <sys/types.h>
13446 #include <sys/sysctl.h>
13447
13448 int
13449 main ()
13450 {
13451 int mib0 = CTL_KERN; int mib1 = KERN_PROC_ARGS; int mib2 = KERN_PROC_PATHNAME;
13452 ;
13453 return 0;
13454 }
13455 _ACEOF
13456 if ac_fn_c_try_compile "$LINENO"; then :
13457 libbacktrace_cv_procargs=yes
13458 else
13459 libbacktrace_cv_procargs=no
13460 fi
13461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13462 fi
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_procargs" >&5
13464 $as_echo "$libbacktrace_cv_procargs" >&6; }
13465 if test "$libbacktrace_cv_procargs" = "yes"; then
13466
13467 $as_echo "#define HAVE_KERN_PROC_ARGS 1" >>confdefs.h
13468
13469 fi
13470
13471 # Check for the clock_gettime function.
13472 for ac_func in clock_gettime
13473 do :
13474 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13475 if test "x$ac_cv_func_clock_gettime" = xyes; then :
13476 cat >>confdefs.h <<_ACEOF
13477 #define HAVE_CLOCK_GETTIME 1
13478 _ACEOF
13479
13480 fi
13481 done
13482
13483 clock_gettime_link=
13484 # At least for glibc, clock_gettime is in librt. But don't
13485 # pull that in if it still doesn't give us the function we want. This
13486 # test is copied from libgomp, and modified to not link in -lrt as
13487 # we're using this for test timing only.
13488 if test "$ac_cv_func_clock_gettime" = no; then
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13490 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13491 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 ac_check_lib_save_LIBS=$LIBS
13495 LIBS="-lrt $LIBS"
13496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13498
13499 /* Override any GCC internal prototype to avoid an error.
13500 Use char because int might match the return type of a GCC
13501 builtin and then its argument prototype would still apply. */
13502 #ifdef __cplusplus
13503 extern "C"
13504 #endif
13505 char clock_gettime ();
13506 int
13507 main ()
13508 {
13509 return clock_gettime ();
13510 ;
13511 return 0;
13512 }
13513 _ACEOF
13514 if ac_fn_c_try_link "$LINENO"; then :
13515 ac_cv_lib_rt_clock_gettime=yes
13516 else
13517 ac_cv_lib_rt_clock_gettime=no
13518 fi
13519 rm -f core conftest.err conftest.$ac_objext \
13520 conftest$ac_exeext conftest.$ac_ext
13521 LIBS=$ac_check_lib_save_LIBS
13522 fi
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13524 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13525 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13526 CLOCK_GETTIME_LINK=-lrt
13527
13528 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13529
13530 fi
13531
13532 fi
13533
13534
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13536 $as_echo_n "checking whether -pthread is supported... " >&6; }
13537 if ${libgo_cv_lib_pthread+:} false; then :
13538 $as_echo_n "(cached) " >&6
13539 else
13540 CFLAGS_hold=$CFLAGS
13541 CFLAGS="$CFLAGS -pthread"
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13544 int i;
13545 _ACEOF
13546 if ac_fn_c_try_compile "$LINENO"; then :
13547 libgo_cv_lib_pthread=yes
13548 else
13549 libgo_cv_lib_pthread=no
13550 fi
13551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13552 CFLAGS=$CFLAGS_hold
13553 fi
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13555 $as_echo "$libgo_cv_lib_pthread" >&6; }
13556 PTHREAD_CFLAGS=
13557 if test "$libgo_cv_lib_pthread" = yes; then
13558 PTHREAD_CFLAGS=-pthread
13559 fi
13560
13561
13562 if test "$libgo_cv_lib_pthread" = yes; then
13563 HAVE_PTHREAD_TRUE=
13564 HAVE_PTHREAD_FALSE='#'
13565 else
13566 HAVE_PTHREAD_TRUE='#'
13567 HAVE_PTHREAD_FALSE=
13568 fi
13569
13570
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -gdwarf-5 is supported" >&5
13572 $as_echo_n "checking whether -gdwarf-5 is supported... " >&6; }
13573 if ${libbacktrace_cv_lib_dwarf5+:} false; then :
13574 $as_echo_n "(cached) " >&6
13575 else
13576 CFLAGS_hold=$CFLAGS
13577 CFLAGS="$CFLAGS -gdwarf-5"
13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h. */
13580 int i;
13581 _ACEOF
13582 if ac_fn_c_try_compile "$LINENO"; then :
13583 libbacktrace_cv_lib_dwarf5=yes
13584 else
13585 libbacktrace_cv_lib_dwarf5=no
13586 fi
13587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13588 CFLAGS=$CFLAGS_hold
13589 fi
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_lib_dwarf5" >&5
13591 $as_echo "$libbacktrace_cv_lib_dwarf5" >&6; }
13592 if test "$libbacktrace_cv_lib_dwarf5" = yes; then
13593 HAVE_DWARF5_TRUE=
13594 HAVE_DWARF5_FALSE='#'
13595 else
13596 HAVE_DWARF5_TRUE='#'
13597 HAVE_DWARF5_FALSE=
13598 fi
13599
13600
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
13602 $as_echo_n "checking for compress in -lz... " >&6; }
13603 if ${ac_cv_lib_z_compress+:} false; then :
13604 $as_echo_n "(cached) " >&6
13605 else
13606 ac_check_lib_save_LIBS=$LIBS
13607 LIBS="-lz $LIBS"
13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13610
13611 /* Override any GCC internal prototype to avoid an error.
13612 Use char because int might match the return type of a GCC
13613 builtin and then its argument prototype would still apply. */
13614 #ifdef __cplusplus
13615 extern "C"
13616 #endif
13617 char compress ();
13618 int
13619 main ()
13620 {
13621 return compress ();
13622 ;
13623 return 0;
13624 }
13625 _ACEOF
13626 if ac_fn_c_try_link "$LINENO"; then :
13627 ac_cv_lib_z_compress=yes
13628 else
13629 ac_cv_lib_z_compress=no
13630 fi
13631 rm -f core conftest.err conftest.$ac_objext \
13632 conftest$ac_exeext conftest.$ac_ext
13633 LIBS=$ac_check_lib_save_LIBS
13634 fi
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
13636 $as_echo "$ac_cv_lib_z_compress" >&6; }
13637 if test "x$ac_cv_lib_z_compress" = xyes; then :
13638
13639 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13640
13641 fi
13642
13643 if test "$ac_cv_lib_z_compress" = yes; then
13644 HAVE_ZLIB_TRUE=
13645 HAVE_ZLIB_FALSE='#'
13646 else
13647 HAVE_ZLIB_TRUE='#'
13648 HAVE_ZLIB_FALSE=
13649 fi
13650
13651
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
13653 $as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
13654 if ${libgo_cv_ld_compress+:} false; then :
13655 $as_echo_n "(cached) " >&6
13656 else
13657 LDFLAGS_hold=$LDFLAGS
13658 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13661
13662 int
13663 main ()
13664 {
13665
13666 ;
13667 return 0;
13668 }
13669 _ACEOF
13670 if ac_fn_c_try_link "$LINENO"; then :
13671 libgo_cv_ld_compress=yes
13672 else
13673 libgo_cv_ld_compress=no
13674 fi
13675 rm -f core conftest.err conftest.$ac_objext \
13676 conftest$ac_exeext conftest.$ac_ext
13677 LDFLAGS=$LDFLAGS_hold
13678 fi
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
13680 $as_echo "$libgo_cv_ld_compress" >&6; }
13681 if test "$libgo_cv_ld_compress" = yes; then
13682 HAVE_COMPRESSED_DEBUG_TRUE=
13683 HAVE_COMPRESSED_DEBUG_FALSE='#'
13684 else
13685 HAVE_COMPRESSED_DEBUG_TRUE='#'
13686 HAVE_COMPRESSED_DEBUG_FALSE=
13687 fi
13688
13689
13690
13691 # Extract the first word of "objcopy", so it can be a program name with args.
13692 set dummy objcopy; ac_word=$2
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13694 $as_echo_n "checking for $ac_word... " >&6; }
13695 if ${ac_cv_prog_OBJCOPY+:} false; then :
13696 $as_echo_n "(cached) " >&6
13697 else
13698 if test -n "$OBJCOPY"; then
13699 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13700 else
13701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13702 for as_dir in $PATH
13703 do
13704 IFS=$as_save_IFS
13705 test -z "$as_dir" && as_dir=.
13706 for ac_exec_ext in '' $ac_executable_extensions; do
13707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13708 ac_cv_prog_OBJCOPY="objcopy"
13709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13710 break 2
13711 fi
13712 done
13713 done
13714 IFS=$as_save_IFS
13715
13716 fi
13717 fi
13718 OBJCOPY=$ac_cv_prog_OBJCOPY
13719 if test -n "$OBJCOPY"; then
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13721 $as_echo "$OBJCOPY" >&6; }
13722 else
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13724 $as_echo "no" >&6; }
13725 fi
13726
13727
13728 # Extract the first word of "readelf", so it can be a program name with args.
13729 set dummy readelf; ac_word=$2
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13731 $as_echo_n "checking for $ac_word... " >&6; }
13732 if ${ac_cv_prog_READELF+:} false; then :
13733 $as_echo_n "(cached) " >&6
13734 else
13735 if test -n "$READELF"; then
13736 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13737 else
13738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13739 for as_dir in $PATH
13740 do
13741 IFS=$as_save_IFS
13742 test -z "$as_dir" && as_dir=.
13743 for ac_exec_ext in '' $ac_executable_extensions; do
13744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13745 ac_cv_prog_READELF="readelf"
13746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13747 break 2
13748 fi
13749 done
13750 done
13751 IFS=$as_save_IFS
13752
13753 fi
13754 fi
13755 READELF=$ac_cv_prog_READELF
13756 if test -n "$READELF"; then
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13758 $as_echo "$READELF" >&6; }
13759 else
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13761 $as_echo "no" >&6; }
13762 fi
13763
13764
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
13766 $as_echo_n "checking whether objcopy supports debuglink... " >&6; }
13767 if ${libbacktrace_cv_objcopy_debuglink+:} false; then :
13768 $as_echo_n "(cached) " >&6
13769 else
13770 if test -n "${with_target_subdir}"; then
13771 libbacktrace_cv_objcopy_debuglink=no
13772 elif ! test -n "${OBJCOPY}"; then
13773 libbacktrace_cv_objcopy_debuglink=no
13774 elif ${OBJCOPY} --add-gnu-debuglink=x /bin/ls /tmp/ls$$; then
13775 rm -f /tmp/ls$$
13776 libbacktrace_cv_objcopy_debuglink=yes
13777 else
13778 libbacktrace_cv_objcopy_debuglink=no
13779 fi
13780 fi
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
13782 $as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
13783 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
13784 HAVE_OBJCOPY_DEBUGLINK_TRUE=
13785 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
13786 else
13787 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
13788 HAVE_OBJCOPY_DEBUGLINK_FALSE=
13789 fi
13790
13791
13792
13793 # Extract the first word of "dsymutil", so it can be a program name with args.
13794 set dummy dsymutil; ac_word=$2
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13796 $as_echo_n "checking for $ac_word... " >&6; }
13797 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13798 $as_echo_n "(cached) " >&6
13799 else
13800 if test -n "$DSYMUTIL"; then
13801 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13802 else
13803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804 for as_dir in $PATH
13805 do
13806 IFS=$as_save_IFS
13807 test -z "$as_dir" && as_dir=.
13808 for ac_exec_ext in '' $ac_executable_extensions; do
13809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13810 ac_cv_prog_DSYMUTIL="dsymutil"
13811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13812 break 2
13813 fi
13814 done
13815 done
13816 IFS=$as_save_IFS
13817
13818 fi
13819 fi
13820 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13821 if test -n "$DSYMUTIL"; then
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13823 $as_echo "$DSYMUTIL" >&6; }
13824 else
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826 $as_echo "no" >&6; }
13827 fi
13828
13829
13830 if test -n "${DSYMUTIL}"; then
13831 HAVE_DSYMUTIL_TRUE=
13832 HAVE_DSYMUTIL_FALSE='#'
13833 else
13834 HAVE_DSYMUTIL_TRUE='#'
13835 HAVE_DSYMUTIL_FALSE=
13836 fi
13837
13838
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
13840 $as_echo_n "checking whether tests can run... " >&6; }
13841 if ${libbacktrace_cv_sys_native+:} false; then :
13842 $as_echo_n "(cached) " >&6
13843 else
13844 if test "$cross_compiling" = yes; then :
13845 libbacktrace_cv_sys_native=no
13846 else
13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h. */
13849
13850 int
13851 main ()
13852 {
13853 return 0;
13854 ;
13855 return 0;
13856 }
13857 _ACEOF
13858 if ac_fn_c_try_run "$LINENO"; then :
13859 libbacktrace_cv_sys_native=yes
13860 else
13861 libbacktrace_cv_sys_native=no
13862 fi
13863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13864 conftest.$ac_objext conftest.beam conftest.$ac_ext
13865 fi
13866
13867 fi
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
13869 $as_echo "$libbacktrace_cv_sys_native" >&6; }
13870 if test "$libbacktrace_cv_sys_native" = "yes"; then
13871 NATIVE_TRUE=
13872 NATIVE_FALSE='#'
13873 else
13874 NATIVE_TRUE='#'
13875 NATIVE_FALSE=
13876 fi
13877
13878
13879 if test "${multilib}" = "yes"; then
13880 multilib_arg="--enable-multilib"
13881 else
13882 multilib_arg=
13883 fi
13884
13885 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
13886
13887 ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh"
13888
13889
13890 # We need multilib support, but only if configuring for the target.
13891 ac_config_commands="$ac_config_commands default"
13892
13893
13894 cat >confcache <<\_ACEOF
13895 # This file is a shell script that caches the results of configure
13896 # tests run on this system so they can be shared between configure
13897 # scripts and configure runs, see configure's option --config-cache.
13898 # It is not useful on other systems. If it contains results you don't
13899 # want to keep, you may remove or edit it.
13900 #
13901 # config.status only pays attention to the cache file if you give it
13902 # the --recheck option to rerun configure.
13903 #
13904 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13905 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13906 # following values.
13907
13908 _ACEOF
13909
13910 # The following way of writing the cache mishandles newlines in values,
13911 # but we know of no workaround that is simple, portable, and efficient.
13912 # So, we kill variables containing newlines.
13913 # Ultrix sh set writes to stderr and can't be redirected directly,
13914 # and sets the high bit in the cache file unless we assign to the vars.
13915 (
13916 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13917 eval ac_val=\$$ac_var
13918 case $ac_val in #(
13919 *${as_nl}*)
13920 case $ac_var in #(
13921 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13922 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13923 esac
13924 case $ac_var in #(
13925 _ | IFS | as_nl) ;; #(
13926 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13927 *) { eval $ac_var=; unset $ac_var;} ;;
13928 esac ;;
13929 esac
13930 done
13931
13932 (set) 2>&1 |
13933 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13934 *${as_nl}ac_space=\ *)
13935 # `set' does not quote correctly, so add quotes: double-quote
13936 # substitution turns \\\\ into \\, and sed turns \\ into \.
13937 sed -n \
13938 "s/'/'\\\\''/g;
13939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13940 ;; #(
13941 *)
13942 # `set' quotes correctly as required by POSIX, so do not add quotes.
13943 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13944 ;;
13945 esac |
13946 sort
13947 ) |
13948 sed '
13949 /^ac_cv_env_/b end
13950 t clear
13951 :clear
13952 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13953 t end
13954 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13955 :end' >>confcache
13956 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13957 if test -w "$cache_file"; then
13958 if test "x$cache_file" != "x/dev/null"; then
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13960 $as_echo "$as_me: updating cache $cache_file" >&6;}
13961 if test ! -f "$cache_file" || test -h "$cache_file"; then
13962 cat confcache >"$cache_file"
13963 else
13964 case $cache_file in #(
13965 */* | ?:*)
13966 mv -f confcache "$cache_file"$$ &&
13967 mv -f "$cache_file"$$ "$cache_file" ;; #(
13968 *)
13969 mv -f confcache "$cache_file" ;;
13970 esac
13971 fi
13972 fi
13973 else
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13975 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13976 fi
13977 fi
13978 rm -f confcache
13979
13980 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13981 # Let make expand exec_prefix.
13982 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13983
13984 DEFS=-DHAVE_CONFIG_H
13985
13986 ac_libobjs=
13987 ac_ltlibobjs=
13988 U=
13989 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13990 # 1. Remove the extension, and $U if already installed.
13991 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13992 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13993 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13994 # will be set to the directory where LIBOBJS objects are built.
13995 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13996 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13997 done
13998 LIBOBJS=$ac_libobjs
13999
14000 LTLIBOBJS=$ac_ltlibobjs
14001
14002
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14004 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14005 if test -n "$am_sleep_pid"; then
14006 # Hide warnings about reused PIDs.
14007 wait $am_sleep_pid 2>/dev/null
14008 fi
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14010 $as_echo "done" >&6; }
14011 if test -n "$EXEEXT"; then
14012 am__EXEEXT_TRUE=
14013 am__EXEEXT_FALSE='#'
14014 else
14015 am__EXEEXT_TRUE='#'
14016 am__EXEEXT_FALSE=
14017 fi
14018
14019 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14020 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14022 fi
14023 if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then
14024 as_fn_error $? "conditional \"HAVE_DWZ\" was never defined.
14025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14026 fi
14027 if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then
14028 as_fn_error $? "conditional \"HAVE_ELF\" was never defined.
14029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14030 fi
14031 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
14032 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
14033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14034 fi
14035 if test -z "${HAVE_DWARF5_TRUE}" && test -z "${HAVE_DWARF5_FALSE}"; then
14036 as_fn_error $? "conditional \"HAVE_DWARF5\" was never defined.
14037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14038 fi
14039 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
14040 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
14041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14042 fi
14043 if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
14044 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
14045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14046 fi
14047 if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
14048 as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
14049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14050 fi
14051 if test -z "${HAVE_DSYMUTIL_TRUE}" && test -z "${HAVE_DSYMUTIL_FALSE}"; then
14052 as_fn_error $? "conditional \"HAVE_DSYMUTIL\" was never defined.
14053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14054 fi
14055 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
14056 as_fn_error $? "conditional \"NATIVE\" was never defined.
14057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14058 fi
14059
14060 : "${CONFIG_STATUS=./config.status}"
14061 ac_write_fail=0
14062 ac_clean_files_save=$ac_clean_files
14063 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14065 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14066 as_write_fail=0
14067 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14068 #! $SHELL
14069 # Generated by $as_me.
14070 # Run this file to recreate the current configuration.
14071 # Compiler output produced by configure, useful for debugging
14072 # configure, is in config.log if it exists.
14073
14074 debug=false
14075 ac_cs_recheck=false
14076 ac_cs_silent=false
14077
14078 SHELL=\${CONFIG_SHELL-$SHELL}
14079 export SHELL
14080 _ASEOF
14081 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14082 ## -------------------- ##
14083 ## M4sh Initialization. ##
14084 ## -------------------- ##
14085
14086 # Be more Bourne compatible
14087 DUALCASE=1; export DUALCASE # for MKS sh
14088 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14089 emulate sh
14090 NULLCMD=:
14091 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14092 # is contrary to our usage. Disable this feature.
14093 alias -g '${1+"$@"}'='"$@"'
14094 setopt NO_GLOB_SUBST
14095 else
14096 case `(set -o) 2>/dev/null` in #(
14097 *posix*) :
14098 set -o posix ;; #(
14099 *) :
14100 ;;
14101 esac
14102 fi
14103
14104
14105 as_nl='
14106 '
14107 export as_nl
14108 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14109 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14110 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14111 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14112 # Prefer a ksh shell builtin over an external printf program on Solaris,
14113 # but without wasting forks for bash or zsh.
14114 if test -z "$BASH_VERSION$ZSH_VERSION" \
14115 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14116 as_echo='print -r --'
14117 as_echo_n='print -rn --'
14118 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14119 as_echo='printf %s\n'
14120 as_echo_n='printf %s'
14121 else
14122 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14123 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14124 as_echo_n='/usr/ucb/echo -n'
14125 else
14126 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14127 as_echo_n_body='eval
14128 arg=$1;
14129 case $arg in #(
14130 *"$as_nl"*)
14131 expr "X$arg" : "X\\(.*\\)$as_nl";
14132 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14133 esac;
14134 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14135 '
14136 export as_echo_n_body
14137 as_echo_n='sh -c $as_echo_n_body as_echo'
14138 fi
14139 export as_echo_body
14140 as_echo='sh -c $as_echo_body as_echo'
14141 fi
14142
14143 # The user is always right.
14144 if test "${PATH_SEPARATOR+set}" != set; then
14145 PATH_SEPARATOR=:
14146 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14147 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14148 PATH_SEPARATOR=';'
14149 }
14150 fi
14151
14152
14153 # IFS
14154 # We need space, tab and new line, in precisely that order. Quoting is
14155 # there to prevent editors from complaining about space-tab.
14156 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14157 # splitting by setting IFS to empty value.)
14158 IFS=" "" $as_nl"
14159
14160 # Find who we are. Look in the path if we contain no directory separator.
14161 as_myself=
14162 case $0 in #((
14163 *[\\/]* ) as_myself=$0 ;;
14164 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14165 for as_dir in $PATH
14166 do
14167 IFS=$as_save_IFS
14168 test -z "$as_dir" && as_dir=.
14169 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14170 done
14171 IFS=$as_save_IFS
14172
14173 ;;
14174 esac
14175 # We did not find ourselves, most probably we were run as `sh COMMAND'
14176 # in which case we are not to be found in the path.
14177 if test "x$as_myself" = x; then
14178 as_myself=$0
14179 fi
14180 if test ! -f "$as_myself"; then
14181 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14182 exit 1
14183 fi
14184
14185 # Unset variables that we do not need and which cause bugs (e.g. in
14186 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14187 # suppresses any "Segmentation fault" message there. '((' could
14188 # trigger a bug in pdksh 5.2.14.
14189 for as_var in BASH_ENV ENV MAIL MAILPATH
14190 do eval test x\${$as_var+set} = xset \
14191 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14192 done
14193 PS1='$ '
14194 PS2='> '
14195 PS4='+ '
14196
14197 # NLS nuisances.
14198 LC_ALL=C
14199 export LC_ALL
14200 LANGUAGE=C
14201 export LANGUAGE
14202
14203 # CDPATH.
14204 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14205
14206
14207 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14208 # ----------------------------------------
14209 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14210 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14211 # script with STATUS, using 1 if that was 0.
14212 as_fn_error ()
14213 {
14214 as_status=$1; test $as_status -eq 0 && as_status=1
14215 if test "$4"; then
14216 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14217 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14218 fi
14219 $as_echo "$as_me: error: $2" >&2
14220 as_fn_exit $as_status
14221 } # as_fn_error
14222
14223
14224 # as_fn_set_status STATUS
14225 # -----------------------
14226 # Set $? to STATUS, without forking.
14227 as_fn_set_status ()
14228 {
14229 return $1
14230 } # as_fn_set_status
14231
14232 # as_fn_exit STATUS
14233 # -----------------
14234 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14235 as_fn_exit ()
14236 {
14237 set +e
14238 as_fn_set_status $1
14239 exit $1
14240 } # as_fn_exit
14241
14242 # as_fn_unset VAR
14243 # ---------------
14244 # Portably unset VAR.
14245 as_fn_unset ()
14246 {
14247 { eval $1=; unset $1;}
14248 }
14249 as_unset=as_fn_unset
14250 # as_fn_append VAR VALUE
14251 # ----------------------
14252 # Append the text in VALUE to the end of the definition contained in VAR. Take
14253 # advantage of any shell optimizations that allow amortized linear growth over
14254 # repeated appends, instead of the typical quadratic growth present in naive
14255 # implementations.
14256 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14257 eval 'as_fn_append ()
14258 {
14259 eval $1+=\$2
14260 }'
14261 else
14262 as_fn_append ()
14263 {
14264 eval $1=\$$1\$2
14265 }
14266 fi # as_fn_append
14267
14268 # as_fn_arith ARG...
14269 # ------------------
14270 # Perform arithmetic evaluation on the ARGs, and store the result in the
14271 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14272 # must be portable across $(()) and expr.
14273 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14274 eval 'as_fn_arith ()
14275 {
14276 as_val=$(( $* ))
14277 }'
14278 else
14279 as_fn_arith ()
14280 {
14281 as_val=`expr "$@" || test $? -eq 1`
14282 }
14283 fi # as_fn_arith
14284
14285
14286 if expr a : '\(a\)' >/dev/null 2>&1 &&
14287 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14288 as_expr=expr
14289 else
14290 as_expr=false
14291 fi
14292
14293 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14294 as_basename=basename
14295 else
14296 as_basename=false
14297 fi
14298
14299 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14300 as_dirname=dirname
14301 else
14302 as_dirname=false
14303 fi
14304
14305 as_me=`$as_basename -- "$0" ||
14306 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14307 X"$0" : 'X\(//\)$' \| \
14308 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14309 $as_echo X/"$0" |
14310 sed '/^.*\/\([^/][^/]*\)\/*$/{
14311 s//\1/
14312 q
14313 }
14314 /^X\/\(\/\/\)$/{
14315 s//\1/
14316 q
14317 }
14318 /^X\/\(\/\).*/{
14319 s//\1/
14320 q
14321 }
14322 s/.*/./; q'`
14323
14324 # Avoid depending upon Character Ranges.
14325 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14326 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14327 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14328 as_cr_digits='0123456789'
14329 as_cr_alnum=$as_cr_Letters$as_cr_digits
14330
14331 ECHO_C= ECHO_N= ECHO_T=
14332 case `echo -n x` in #(((((
14333 -n*)
14334 case `echo 'xy\c'` in
14335 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14336 xy) ECHO_C='\c';;
14337 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14338 ECHO_T=' ';;
14339 esac;;
14340 *)
14341 ECHO_N='-n';;
14342 esac
14343
14344 rm -f conf$$ conf$$.exe conf$$.file
14345 if test -d conf$$.dir; then
14346 rm -f conf$$.dir/conf$$.file
14347 else
14348 rm -f conf$$.dir
14349 mkdir conf$$.dir 2>/dev/null
14350 fi
14351 if (echo >conf$$.file) 2>/dev/null; then
14352 if ln -s conf$$.file conf$$ 2>/dev/null; then
14353 as_ln_s='ln -s'
14354 # ... but there are two gotchas:
14355 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14356 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14357 # In both cases, we have to default to `cp -pR'.
14358 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14359 as_ln_s='cp -pR'
14360 elif ln conf$$.file conf$$ 2>/dev/null; then
14361 as_ln_s=ln
14362 else
14363 as_ln_s='cp -pR'
14364 fi
14365 else
14366 as_ln_s='cp -pR'
14367 fi
14368 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14369 rmdir conf$$.dir 2>/dev/null
14370
14371
14372 # as_fn_mkdir_p
14373 # -------------
14374 # Create "$as_dir" as a directory, including parents if necessary.
14375 as_fn_mkdir_p ()
14376 {
14377
14378 case $as_dir in #(
14379 -*) as_dir=./$as_dir;;
14380 esac
14381 test -d "$as_dir" || eval $as_mkdir_p || {
14382 as_dirs=
14383 while :; do
14384 case $as_dir in #(
14385 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14386 *) as_qdir=$as_dir;;
14387 esac
14388 as_dirs="'$as_qdir' $as_dirs"
14389 as_dir=`$as_dirname -- "$as_dir" ||
14390 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14391 X"$as_dir" : 'X\(//\)[^/]' \| \
14392 X"$as_dir" : 'X\(//\)$' \| \
14393 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14394 $as_echo X"$as_dir" |
14395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14396 s//\1/
14397 q
14398 }
14399 /^X\(\/\/\)[^/].*/{
14400 s//\1/
14401 q
14402 }
14403 /^X\(\/\/\)$/{
14404 s//\1/
14405 q
14406 }
14407 /^X\(\/\).*/{
14408 s//\1/
14409 q
14410 }
14411 s/.*/./; q'`
14412 test -d "$as_dir" && break
14413 done
14414 test -z "$as_dirs" || eval "mkdir $as_dirs"
14415 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14416
14417
14418 } # as_fn_mkdir_p
14419 if mkdir -p . 2>/dev/null; then
14420 as_mkdir_p='mkdir -p "$as_dir"'
14421 else
14422 test -d ./-p && rmdir ./-p
14423 as_mkdir_p=false
14424 fi
14425
14426
14427 # as_fn_executable_p FILE
14428 # -----------------------
14429 # Test if FILE is an executable regular file.
14430 as_fn_executable_p ()
14431 {
14432 test -f "$1" && test -x "$1"
14433 } # as_fn_executable_p
14434 as_test_x='test -x'
14435 as_executable_p=as_fn_executable_p
14436
14437 # Sed expression to map a string onto a valid CPP name.
14438 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14439
14440 # Sed expression to map a string onto a valid variable name.
14441 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14442
14443
14444 exec 6>&1
14445 ## ----------------------------------- ##
14446 ## Main body of $CONFIG_STATUS script. ##
14447 ## ----------------------------------- ##
14448 _ASEOF
14449 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14450
14451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14452 # Save the log message, to keep $0 and so on meaningful, and to
14453 # report actual input values of CONFIG_FILES etc. instead of their
14454 # values after options handling.
14455 ac_log="
14456 This file was extended by package-unused $as_me version-unused, which was
14457 generated by GNU Autoconf 2.69. Invocation command line was
14458
14459 CONFIG_FILES = $CONFIG_FILES
14460 CONFIG_HEADERS = $CONFIG_HEADERS
14461 CONFIG_LINKS = $CONFIG_LINKS
14462 CONFIG_COMMANDS = $CONFIG_COMMANDS
14463 $ $0 $@
14464
14465 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14466 "
14467
14468 _ACEOF
14469
14470 case $ac_config_files in *"
14471 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14472 esac
14473
14474 case $ac_config_headers in *"
14475 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14476 esac
14477
14478
14479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14480 # Files that config.status was made for.
14481 config_files="$ac_config_files"
14482 config_headers="$ac_config_headers"
14483 config_commands="$ac_config_commands"
14484
14485 _ACEOF
14486
14487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14488 ac_cs_usage="\
14489 \`$as_me' instantiates files and other configuration actions
14490 from templates according to the current configuration. Unless the files
14491 and actions are specified as TAGs, all are instantiated by default.
14492
14493 Usage: $0 [OPTION]... [TAG]...
14494
14495 -h, --help print this help, then exit
14496 -V, --version print version number and configuration settings, then exit
14497 --config print configuration, then exit
14498 -q, --quiet, --silent
14499 do not print progress messages
14500 -d, --debug don't remove temporary files
14501 --recheck update $as_me by reconfiguring in the same conditions
14502 --file=FILE[:TEMPLATE]
14503 instantiate the configuration file FILE
14504 --header=FILE[:TEMPLATE]
14505 instantiate the configuration header FILE
14506
14507 Configuration files:
14508 $config_files
14509
14510 Configuration headers:
14511 $config_headers
14512
14513 Configuration commands:
14514 $config_commands
14515
14516 Report bugs to the package provider."
14517
14518 _ACEOF
14519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14520 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14521 ac_cs_version="\\
14522 package-unused config.status version-unused
14523 configured by $0, generated by GNU Autoconf 2.69,
14524 with options \\"\$ac_cs_config\\"
14525
14526 Copyright (C) 2012 Free Software Foundation, Inc.
14527 This config.status script is free software; the Free Software Foundation
14528 gives unlimited permission to copy, distribute and modify it."
14529
14530 ac_pwd='$ac_pwd'
14531 srcdir='$srcdir'
14532 INSTALL='$INSTALL'
14533 MKDIR_P='$MKDIR_P'
14534 AWK='$AWK'
14535 test -n "\$AWK" || AWK=awk
14536 _ACEOF
14537
14538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14539 # The default lists apply if the user does not specify any file.
14540 ac_need_defaults=:
14541 while test $# != 0
14542 do
14543 case $1 in
14544 --*=?*)
14545 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14546 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14547 ac_shift=:
14548 ;;
14549 --*=)
14550 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14551 ac_optarg=
14552 ac_shift=:
14553 ;;
14554 *)
14555 ac_option=$1
14556 ac_optarg=$2
14557 ac_shift=shift
14558 ;;
14559 esac
14560
14561 case $ac_option in
14562 # Handling of the options.
14563 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14564 ac_cs_recheck=: ;;
14565 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14566 $as_echo "$ac_cs_version"; exit ;;
14567 --config | --confi | --conf | --con | --co | --c )
14568 $as_echo "$ac_cs_config"; exit ;;
14569 --debug | --debu | --deb | --de | --d | -d )
14570 debug=: ;;
14571 --file | --fil | --fi | --f )
14572 $ac_shift
14573 case $ac_optarg in
14574 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14575 '') as_fn_error $? "missing file argument" ;;
14576 esac
14577 as_fn_append CONFIG_FILES " '$ac_optarg'"
14578 ac_need_defaults=false;;
14579 --header | --heade | --head | --hea )
14580 $ac_shift
14581 case $ac_optarg in
14582 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14583 esac
14584 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14585 ac_need_defaults=false;;
14586 --he | --h)
14587 # Conflict between --help and --header
14588 as_fn_error $? "ambiguous option: \`$1'
14589 Try \`$0 --help' for more information.";;
14590 --help | --hel | -h )
14591 $as_echo "$ac_cs_usage"; exit ;;
14592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14593 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14594 ac_cs_silent=: ;;
14595
14596 # This is an error.
14597 -*) as_fn_error $? "unrecognized option: \`$1'
14598 Try \`$0 --help' for more information." ;;
14599
14600 *) as_fn_append ac_config_targets " $1"
14601 ac_need_defaults=false ;;
14602
14603 esac
14604 shift
14605 done
14606
14607 ac_configure_extra_args=
14608
14609 if $ac_cs_silent; then
14610 exec 6>/dev/null
14611 ac_configure_extra_args="$ac_configure_extra_args --silent"
14612 fi
14613
14614 _ACEOF
14615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14616 if \$ac_cs_recheck; then
14617 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14618 shift
14619 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14620 CONFIG_SHELL='$SHELL'
14621 export CONFIG_SHELL
14622 exec "\$@"
14623 fi
14624
14625 _ACEOF
14626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14627 exec 5>>config.log
14628 {
14629 echo
14630 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14631 ## Running $as_me. ##
14632 _ASBOX
14633 $as_echo "$ac_log"
14634 } >&5
14635
14636 _ACEOF
14637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14638 #
14639 # INIT-COMMANDS
14640 #
14641
14642 srcdir="$srcdir"
14643 host="$host"
14644 target="$target"
14645 with_multisubdir="$with_multisubdir"
14646 with_multisrctop="$with_multisrctop"
14647 with_target_subdir="$with_target_subdir"
14648 ac_configure_args="${multilib_arg} ${ac_configure_args}"
14649 multi_basedir="$multi_basedir"
14650 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14651 CC="$CC"
14652 CXX="$CXX"
14653 GFORTRAN="$GFORTRAN"
14654 GDC="$GDC"
14655
14656
14657 # The HP-UX ksh and POSIX shell print the target directory to stdout
14658 # if CDPATH is set.
14659 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14660
14661 sed_quote_subst='$sed_quote_subst'
14662 double_quote_subst='$double_quote_subst'
14663 delay_variable_subst='$delay_variable_subst'
14664 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14665 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14666 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14667 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14668 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14669 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14670 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14671 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14672 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14673 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14674 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14675 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14676 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14677 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14678 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14679 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14680 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14681 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14682 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14683 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14684 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14685 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14686 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14687 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14688 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14689 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14690 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14691 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14692 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14693 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14694 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14695 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14696 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14697 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14698 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14699 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14700 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14701 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14702 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14703 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14704 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14705 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14706 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14707 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14708 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14709 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14710 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14711 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14712 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"`'
14713 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14714 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14715 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14716 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14717 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14718 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14719 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14720 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14721 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14722 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14723 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14724 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14725 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14726 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14727 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14728 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14729 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14730 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14731 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14732 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14733 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14734 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14735 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14736 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14737 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14738 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14739 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14740 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14741 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14742 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14743 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14744 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14745 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14746 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14747 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14748 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14749 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14750 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14751 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14752 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14753 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14754 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14755 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14756 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14757 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14758 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14759 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14760 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14761 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14762 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14763 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14764 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14765 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14766 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14767 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14768 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14769 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14770 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14771 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14772 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14773 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14774 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14775 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14776 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14777 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14778 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14779 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14780 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14781 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14782 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14783 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14784
14785 LTCC='$LTCC'
14786 LTCFLAGS='$LTCFLAGS'
14787 compiler='$compiler_DEFAULT'
14788
14789 # A function that is used when there is no print builtin or printf.
14790 func_fallback_echo ()
14791 {
14792 eval 'cat <<_LTECHO_EOF
14793 \$1
14794 _LTECHO_EOF'
14795 }
14796
14797 # Quote evaled strings.
14798 for var in SHELL \
14799 ECHO \
14800 SED \
14801 GREP \
14802 EGREP \
14803 FGREP \
14804 LD \
14805 NM \
14806 LN_S \
14807 lt_SP2NL \
14808 lt_NL2SP \
14809 reload_flag \
14810 OBJDUMP \
14811 deplibs_check_method \
14812 file_magic_cmd \
14813 AR \
14814 AR_FLAGS \
14815 STRIP \
14816 RANLIB \
14817 CC \
14818 CFLAGS \
14819 compiler \
14820 lt_cv_sys_global_symbol_pipe \
14821 lt_cv_sys_global_symbol_to_cdecl \
14822 lt_cv_sys_global_symbol_to_c_name_address \
14823 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14824 lt_prog_compiler_no_builtin_flag \
14825 lt_prog_compiler_wl \
14826 lt_prog_compiler_pic \
14827 lt_prog_compiler_static \
14828 lt_cv_prog_compiler_c_o \
14829 need_locks \
14830 DSYMUTIL \
14831 NMEDIT \
14832 LIPO \
14833 OTOOL \
14834 OTOOL64 \
14835 shrext_cmds \
14836 export_dynamic_flag_spec \
14837 whole_archive_flag_spec \
14838 compiler_needs_object \
14839 with_gnu_ld \
14840 allow_undefined_flag \
14841 no_undefined_flag \
14842 hardcode_libdir_flag_spec \
14843 hardcode_libdir_flag_spec_ld \
14844 hardcode_libdir_separator \
14845 fix_srcfile_path \
14846 exclude_expsyms \
14847 include_expsyms \
14848 file_list_spec \
14849 variables_saved_for_relink \
14850 libname_spec \
14851 library_names_spec \
14852 soname_spec \
14853 install_override_mode \
14854 finish_eval \
14855 old_striplib \
14856 striplib; do
14857 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14858 *[\\\\\\\`\\"\\\$]*)
14859 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14860 ;;
14861 *)
14862 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14863 ;;
14864 esac
14865 done
14866
14867 # Double-quote double-evaled strings.
14868 for var in reload_cmds \
14869 old_postinstall_cmds \
14870 old_postuninstall_cmds \
14871 old_archive_cmds \
14872 extract_expsyms_cmds \
14873 old_archive_from_new_cmds \
14874 old_archive_from_expsyms_cmds \
14875 archive_cmds \
14876 archive_expsym_cmds \
14877 module_cmds \
14878 module_expsym_cmds \
14879 export_symbols_cmds \
14880 prelink_cmds \
14881 postinstall_cmds \
14882 postuninstall_cmds \
14883 finish_cmds \
14884 sys_lib_search_path_spec \
14885 sys_lib_dlsearch_path_spec; do
14886 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14887 *[\\\\\\\`\\"\\\$]*)
14888 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14889 ;;
14890 *)
14891 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14892 ;;
14893 esac
14894 done
14895
14896 ac_aux_dir='$ac_aux_dir'
14897 xsi_shell='$xsi_shell'
14898 lt_shell_append='$lt_shell_append'
14899
14900 # See if we are running on zsh, and set the options which allow our
14901 # commands through without removal of \ escapes INIT.
14902 if test -n "\${ZSH_VERSION+set}" ; then
14903 setopt NO_GLOB_SUBST
14904 fi
14905
14906
14907 PACKAGE='$PACKAGE'
14908 VERSION='$VERSION'
14909 TIMESTAMP='$TIMESTAMP'
14910 RM='$RM'
14911 ofile='$ofile'
14912
14913
14914
14915
14916 GCC="$GCC"
14917 CC="$CC"
14918 acx_cv_header_stdint="$acx_cv_header_stdint"
14919 acx_cv_type_int8_t="$acx_cv_type_int8_t"
14920 acx_cv_type_int16_t="$acx_cv_type_int16_t"
14921 acx_cv_type_int32_t="$acx_cv_type_int32_t"
14922 acx_cv_type_int64_t="$acx_cv_type_int64_t"
14923 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
14924 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
14925 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
14926 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
14927 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
14928 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
14929 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
14930 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
14931 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
14932
14933
14934 # Variables needed in config.status (file generation) which aren't already
14935 # passed by autoconf.
14936 SUBDIRS="$SUBDIRS"
14937
14938
14939 _ACEOF
14940
14941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14942
14943 # Handling of arguments.
14944 for ac_config_target in $ac_config_targets
14945 do
14946 case $ac_config_target in
14947 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14948 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14949 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14950 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
14951 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14952 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
14953 "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;;
14954 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14955
14956 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14957 esac
14958 done
14959
14960
14961 # If the user did not use the arguments to specify the items to instantiate,
14962 # then the envvar interface is used. Set only those that are not.
14963 # We use the long form for the default assignment because of an extremely
14964 # bizarre bug on SunOS 4.1.3.
14965 if $ac_need_defaults; then
14966 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14967 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14968 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14969 fi
14970
14971 # Have a temporary directory for convenience. Make it in the build tree
14972 # simply because there is no reason against having it here, and in addition,
14973 # creating and moving files from /tmp can sometimes cause problems.
14974 # Hook for its removal unless debugging.
14975 # Note that there is a small window in which the directory will not be cleaned:
14976 # after its creation but before its name has been assigned to `$tmp'.
14977 $debug ||
14978 {
14979 tmp= ac_tmp=
14980 trap 'exit_status=$?
14981 : "${ac_tmp:=$tmp}"
14982 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14983 ' 0
14984 trap 'as_fn_exit 1' 1 2 13 15
14985 }
14986 # Create a (secure) tmp directory for tmp files.
14987
14988 {
14989 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14990 test -d "$tmp"
14991 } ||
14992 {
14993 tmp=./conf$$-$RANDOM
14994 (umask 077 && mkdir "$tmp")
14995 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14996 ac_tmp=$tmp
14997
14998 # Set up the scripts for CONFIG_FILES section.
14999 # No need to generate them if there are no CONFIG_FILES.
15000 # This happens for instance with `./config.status config.h'.
15001 if test -n "$CONFIG_FILES"; then
15002
15003
15004 ac_cr=`echo X | tr X '\015'`
15005 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15006 # But we know of no other shell where ac_cr would be empty at this
15007 # point, so we can use a bashism as a fallback.
15008 if test "x$ac_cr" = x; then
15009 eval ac_cr=\$\'\\r\'
15010 fi
15011 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15012 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15013 ac_cs_awk_cr='\\r'
15014 else
15015 ac_cs_awk_cr=$ac_cr
15016 fi
15017
15018 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15019 _ACEOF
15020
15021
15022 {
15023 echo "cat >conf$$subs.awk <<_ACEOF" &&
15024 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15025 echo "_ACEOF"
15026 } >conf$$subs.sh ||
15027 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15028 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15029 ac_delim='%!_!# '
15030 for ac_last_try in false false false false false :; do
15031 . ./conf$$subs.sh ||
15032 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15033
15034 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15035 if test $ac_delim_n = $ac_delim_num; then
15036 break
15037 elif $ac_last_try; then
15038 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15039 else
15040 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15041 fi
15042 done
15043 rm -f conf$$subs.sh
15044
15045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15046 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15047 _ACEOF
15048 sed -n '
15049 h
15050 s/^/S["/; s/!.*/"]=/
15051 p
15052 g
15053 s/^[^!]*!//
15054 :repl
15055 t repl
15056 s/'"$ac_delim"'$//
15057 t delim
15058 :nl
15059 h
15060 s/\(.\{148\}\)..*/\1/
15061 t more1
15062 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15063 p
15064 n
15065 b repl
15066 :more1
15067 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15068 p
15069 g
15070 s/.\{148\}//
15071 t nl
15072 :delim
15073 h
15074 s/\(.\{148\}\)..*/\1/
15075 t more2
15076 s/["\\]/\\&/g; s/^/"/; s/$/"/
15077 p
15078 b
15079 :more2
15080 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15081 p
15082 g
15083 s/.\{148\}//
15084 t delim
15085 ' <conf$$subs.awk | sed '
15086 /^[^""]/{
15087 N
15088 s/\n//
15089 }
15090 ' >>$CONFIG_STATUS || ac_write_fail=1
15091 rm -f conf$$subs.awk
15092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15093 _ACAWK
15094 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15095 for (key in S) S_is_set[key] = 1
15096 FS = "\a"
15097
15098 }
15099 {
15100 line = $ 0
15101 nfields = split(line, field, "@")
15102 substed = 0
15103 len = length(field[1])
15104 for (i = 2; i < nfields; i++) {
15105 key = field[i]
15106 keylen = length(key)
15107 if (S_is_set[key]) {
15108 value = S[key]
15109 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15110 len += length(value) + length(field[++i])
15111 substed = 1
15112 } else
15113 len += 1 + keylen
15114 }
15115
15116 print line
15117 }
15118
15119 _ACAWK
15120 _ACEOF
15121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15122 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15123 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15124 else
15125 cat
15126 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15127 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15128 _ACEOF
15129
15130 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15131 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15132 # trailing colons and then remove the whole line if VPATH becomes empty
15133 # (actually we leave an empty line to preserve line numbers).
15134 if test "x$srcdir" = x.; then
15135 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15136 h
15137 s///
15138 s/^/:/
15139 s/[ ]*$/:/
15140 s/:\$(srcdir):/:/g
15141 s/:\${srcdir}:/:/g
15142 s/:@srcdir@:/:/g
15143 s/^:*//
15144 s/:*$//
15145 x
15146 s/\(=[ ]*\).*/\1/
15147 G
15148 s/\n//
15149 s/^[^=]*=[ ]*$//
15150 }'
15151 fi
15152
15153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15154 fi # test -n "$CONFIG_FILES"
15155
15156 # Set up the scripts for CONFIG_HEADERS section.
15157 # No need to generate them if there are no CONFIG_HEADERS.
15158 # This happens for instance with `./config.status Makefile'.
15159 if test -n "$CONFIG_HEADERS"; then
15160 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15161 BEGIN {
15162 _ACEOF
15163
15164 # Transform confdefs.h into an awk script `defines.awk', embedded as
15165 # here-document in config.status, that substitutes the proper values into
15166 # config.h.in to produce config.h.
15167
15168 # Create a delimiter string that does not exist in confdefs.h, to ease
15169 # handling of long lines.
15170 ac_delim='%!_!# '
15171 for ac_last_try in false false :; do
15172 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15173 if test -z "$ac_tt"; then
15174 break
15175 elif $ac_last_try; then
15176 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15177 else
15178 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15179 fi
15180 done
15181
15182 # For the awk script, D is an array of macro values keyed by name,
15183 # likewise P contains macro parameters if any. Preserve backslash
15184 # newline sequences.
15185
15186 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15187 sed -n '
15188 s/.\{148\}/&'"$ac_delim"'/g
15189 t rset
15190 :rset
15191 s/^[ ]*#[ ]*define[ ][ ]*/ /
15192 t def
15193 d
15194 :def
15195 s/\\$//
15196 t bsnl
15197 s/["\\]/\\&/g
15198 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15199 D["\1"]=" \3"/p
15200 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15201 d
15202 :bsnl
15203 s/["\\]/\\&/g
15204 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15205 D["\1"]=" \3\\\\\\n"\\/p
15206 t cont
15207 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15208 t cont
15209 d
15210 :cont
15211 n
15212 s/.\{148\}/&'"$ac_delim"'/g
15213 t clear
15214 :clear
15215 s/\\$//
15216 t bsnlc
15217 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15218 d
15219 :bsnlc
15220 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15221 b cont
15222 ' <confdefs.h | sed '
15223 s/'"$ac_delim"'/"\\\
15224 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15225
15226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15227 for (key in D) D_is_set[key] = 1
15228 FS = "\a"
15229 }
15230 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15231 line = \$ 0
15232 split(line, arg, " ")
15233 if (arg[1] == "#") {
15234 defundef = arg[2]
15235 mac1 = arg[3]
15236 } else {
15237 defundef = substr(arg[1], 2)
15238 mac1 = arg[2]
15239 }
15240 split(mac1, mac2, "(") #)
15241 macro = mac2[1]
15242 prefix = substr(line, 1, index(line, defundef) - 1)
15243 if (D_is_set[macro]) {
15244 # Preserve the white space surrounding the "#".
15245 print prefix "define", macro P[macro] D[macro]
15246 next
15247 } else {
15248 # Replace #undef with comments. This is necessary, for example,
15249 # in the case of _POSIX_SOURCE, which is predefined and required
15250 # on some systems where configure will not decide to define it.
15251 if (defundef == "undef") {
15252 print "/*", prefix defundef, macro, "*/"
15253 next
15254 }
15255 }
15256 }
15257 { print }
15258 _ACAWK
15259 _ACEOF
15260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15261 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15262 fi # test -n "$CONFIG_HEADERS"
15263
15264
15265 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15266 shift
15267 for ac_tag
15268 do
15269 case $ac_tag in
15270 :[FHLC]) ac_mode=$ac_tag; continue;;
15271 esac
15272 case $ac_mode$ac_tag in
15273 :[FHL]*:*);;
15274 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15275 :[FH]-) ac_tag=-:-;;
15276 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15277 esac
15278 ac_save_IFS=$IFS
15279 IFS=:
15280 set x $ac_tag
15281 IFS=$ac_save_IFS
15282 shift
15283 ac_file=$1
15284 shift
15285
15286 case $ac_mode in
15287 :L) ac_source=$1;;
15288 :[FH])
15289 ac_file_inputs=
15290 for ac_f
15291 do
15292 case $ac_f in
15293 -) ac_f="$ac_tmp/stdin";;
15294 *) # Look for the file first in the build tree, then in the source tree
15295 # (if the path is not absolute). The absolute path cannot be DOS-style,
15296 # because $ac_f cannot contain `:'.
15297 test -f "$ac_f" ||
15298 case $ac_f in
15299 [\\/$]*) false;;
15300 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15301 esac ||
15302 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15303 esac
15304 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15305 as_fn_append ac_file_inputs " '$ac_f'"
15306 done
15307
15308 # Let's still pretend it is `configure' which instantiates (i.e., don't
15309 # use $as_me), people would be surprised to read:
15310 # /* config.h. Generated by config.status. */
15311 configure_input='Generated from '`
15312 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15313 `' by configure.'
15314 if test x"$ac_file" != x-; then
15315 configure_input="$ac_file. $configure_input"
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15317 $as_echo "$as_me: creating $ac_file" >&6;}
15318 fi
15319 # Neutralize special characters interpreted by sed in replacement strings.
15320 case $configure_input in #(
15321 *\&* | *\|* | *\\* )
15322 ac_sed_conf_input=`$as_echo "$configure_input" |
15323 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15324 *) ac_sed_conf_input=$configure_input;;
15325 esac
15326
15327 case $ac_tag in
15328 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15329 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15330 esac
15331 ;;
15332 esac
15333
15334 ac_dir=`$as_dirname -- "$ac_file" ||
15335 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15336 X"$ac_file" : 'X\(//\)[^/]' \| \
15337 X"$ac_file" : 'X\(//\)$' \| \
15338 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15339 $as_echo X"$ac_file" |
15340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15341 s//\1/
15342 q
15343 }
15344 /^X\(\/\/\)[^/].*/{
15345 s//\1/
15346 q
15347 }
15348 /^X\(\/\/\)$/{
15349 s//\1/
15350 q
15351 }
15352 /^X\(\/\).*/{
15353 s//\1/
15354 q
15355 }
15356 s/.*/./; q'`
15357 as_dir="$ac_dir"; as_fn_mkdir_p
15358 ac_builddir=.
15359
15360 case "$ac_dir" in
15361 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15362 *)
15363 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15364 # A ".." for each directory in $ac_dir_suffix.
15365 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15366 case $ac_top_builddir_sub in
15367 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15368 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15369 esac ;;
15370 esac
15371 ac_abs_top_builddir=$ac_pwd
15372 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15373 # for backward compatibility:
15374 ac_top_builddir=$ac_top_build_prefix
15375
15376 case $srcdir in
15377 .) # We are building in place.
15378 ac_srcdir=.
15379 ac_top_srcdir=$ac_top_builddir_sub
15380 ac_abs_top_srcdir=$ac_pwd ;;
15381 [\\/]* | ?:[\\/]* ) # Absolute name.
15382 ac_srcdir=$srcdir$ac_dir_suffix;
15383 ac_top_srcdir=$srcdir
15384 ac_abs_top_srcdir=$srcdir ;;
15385 *) # Relative name.
15386 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15387 ac_top_srcdir=$ac_top_build_prefix$srcdir
15388 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15389 esac
15390 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15391
15392
15393 case $ac_mode in
15394 :F)
15395 #
15396 # CONFIG_FILE
15397 #
15398
15399 case $INSTALL in
15400 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15401 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15402 esac
15403 ac_MKDIR_P=$MKDIR_P
15404 case $MKDIR_P in
15405 [\\/$]* | ?:[\\/]* ) ;;
15406 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15407 esac
15408 _ACEOF
15409
15410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15411 # If the template does not know about datarootdir, expand it.
15412 # FIXME: This hack should be removed a few years after 2.60.
15413 ac_datarootdir_hack=; ac_datarootdir_seen=
15414 ac_sed_dataroot='
15415 /datarootdir/ {
15416 p
15417 q
15418 }
15419 /@datadir@/p
15420 /@docdir@/p
15421 /@infodir@/p
15422 /@localedir@/p
15423 /@mandir@/p'
15424 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15425 *datarootdir*) ac_datarootdir_seen=yes;;
15426 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15428 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15429 _ACEOF
15430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15431 ac_datarootdir_hack='
15432 s&@datadir@&$datadir&g
15433 s&@docdir@&$docdir&g
15434 s&@infodir@&$infodir&g
15435 s&@localedir@&$localedir&g
15436 s&@mandir@&$mandir&g
15437 s&\\\${datarootdir}&$datarootdir&g' ;;
15438 esac
15439 _ACEOF
15440
15441 # Neutralize VPATH when `$srcdir' = `.'.
15442 # Shell code in configure.ac might set extrasub.
15443 # FIXME: do we really want to maintain this feature?
15444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15445 ac_sed_extra="$ac_vpsub
15446 $extrasub
15447 _ACEOF
15448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15449 :t
15450 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15451 s|@configure_input@|$ac_sed_conf_input|;t t
15452 s&@top_builddir@&$ac_top_builddir_sub&;t t
15453 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15454 s&@srcdir@&$ac_srcdir&;t t
15455 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15456 s&@top_srcdir@&$ac_top_srcdir&;t t
15457 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15458 s&@builddir@&$ac_builddir&;t t
15459 s&@abs_builddir@&$ac_abs_builddir&;t t
15460 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15461 s&@INSTALL@&$ac_INSTALL&;t t
15462 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15463 $ac_datarootdir_hack
15464 "
15465 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15466 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15467
15468 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15469 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15470 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15471 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15473 which seems to be undefined. Please make sure it is defined" >&5
15474 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15475 which seems to be undefined. Please make sure it is defined" >&2;}
15476
15477 rm -f "$ac_tmp/stdin"
15478 case $ac_file in
15479 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15480 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15481 esac \
15482 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15483 ;;
15484 :H)
15485 #
15486 # CONFIG_HEADER
15487 #
15488 if test x"$ac_file" != x-; then
15489 {
15490 $as_echo "/* $configure_input */" \
15491 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15492 } >"$ac_tmp/config.h" \
15493 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15494 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15496 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15497 else
15498 rm -f "$ac_file"
15499 mv "$ac_tmp/config.h" "$ac_file" \
15500 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15501 fi
15502 else
15503 $as_echo "/* $configure_input */" \
15504 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15505 || as_fn_error $? "could not create -" "$LINENO" 5
15506 fi
15507 # Compute "$ac_file"'s index in $config_headers.
15508 _am_arg="$ac_file"
15509 _am_stamp_count=1
15510 for _am_header in $config_headers :; do
15511 case $_am_header in
15512 $_am_arg | $_am_arg:* )
15513 break ;;
15514 * )
15515 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15516 esac
15517 done
15518 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15519 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15520 X"$_am_arg" : 'X\(//\)[^/]' \| \
15521 X"$_am_arg" : 'X\(//\)$' \| \
15522 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15523 $as_echo X"$_am_arg" |
15524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15525 s//\1/
15526 q
15527 }
15528 /^X\(\/\/\)[^/].*/{
15529 s//\1/
15530 q
15531 }
15532 /^X\(\/\/\)$/{
15533 s//\1/
15534 q
15535 }
15536 /^X\(\/\).*/{
15537 s//\1/
15538 q
15539 }
15540 s/.*/./; q'`/stamp-h$_am_stamp_count
15541 ;;
15542
15543 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15544 $as_echo "$as_me: executing $ac_file commands" >&6;}
15545 ;;
15546 esac
15547
15548
15549 case $ac_file$ac_mode in
15550 "default-1":C)
15551 # Only add multilib support code if we just rebuilt the top-level
15552 # Makefile.
15553 case " $CONFIG_FILES " in
15554 *" Makefile "*)
15555 ac_file=Makefile . ${multi_basedir}/config-ml.in
15556 ;;
15557 esac ;;
15558 "libtool":C)
15559
15560 # See if we are running on zsh, and set the options which allow our
15561 # commands through without removal of \ escapes.
15562 if test -n "${ZSH_VERSION+set}" ; then
15563 setopt NO_GLOB_SUBST
15564 fi
15565
15566 cfgfile="${ofile}T"
15567 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15568 $RM "$cfgfile"
15569
15570 cat <<_LT_EOF >> "$cfgfile"
15571 #! $SHELL
15572
15573 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15574 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15575 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15576 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15577 #
15578 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15579 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15580 # Written by Gordon Matzigkeit, 1996
15581 #
15582 # This file is part of GNU Libtool.
15583 #
15584 # GNU Libtool is free software; you can redistribute it and/or
15585 # modify it under the terms of the GNU General Public License as
15586 # published by the Free Software Foundation; either version 2 of
15587 # the License, or (at your option) any later version.
15588 #
15589 # As a special exception to the GNU General Public License,
15590 # if you distribute this file as part of a program or library that
15591 # is built using GNU Libtool, you may include this file under the
15592 # same distribution terms that you use for the rest of that program.
15593 #
15594 # GNU Libtool is distributed in the hope that it will be useful,
15595 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15596 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15597 # GNU General Public License for more details.
15598 #
15599 # You should have received a copy of the GNU General Public License
15600 # along with GNU Libtool; see the file COPYING. If not, a copy
15601 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15602 # obtained by writing to the Free Software Foundation, Inc.,
15603 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15604
15605
15606 # The names of the tagged configurations supported by this script.
15607 available_tags=""
15608
15609 # ### BEGIN LIBTOOL CONFIG
15610
15611 # Which release of libtool.m4 was used?
15612 macro_version=$macro_version
15613 macro_revision=$macro_revision
15614
15615 # Whether or not to build shared libraries.
15616 build_libtool_libs=$enable_shared
15617
15618 # Whether or not to build static libraries.
15619 build_old_libs=$enable_static
15620
15621 # What type of objects to build.
15622 pic_mode=$pic_mode
15623
15624 # Whether or not to optimize for fast installation.
15625 fast_install=$enable_fast_install
15626
15627 # Shell to use when invoking shell scripts.
15628 SHELL=$lt_SHELL
15629
15630 # An echo program that protects backslashes.
15631 ECHO=$lt_ECHO
15632
15633 # The host system.
15634 host_alias=$host_alias
15635 host=$host
15636 host_os=$host_os
15637
15638 # The build system.
15639 build_alias=$build_alias
15640 build=$build
15641 build_os=$build_os
15642
15643 # A sed program that does not truncate output.
15644 SED=$lt_SED
15645
15646 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15647 Xsed="\$SED -e 1s/^X//"
15648
15649 # A grep program that handles long lines.
15650 GREP=$lt_GREP
15651
15652 # An ERE matcher.
15653 EGREP=$lt_EGREP
15654
15655 # A literal string matcher.
15656 FGREP=$lt_FGREP
15657
15658 # A BSD- or MS-compatible name lister.
15659 NM=$lt_NM
15660
15661 # Whether we need soft or hard links.
15662 LN_S=$lt_LN_S
15663
15664 # What is the maximum length of a command?
15665 max_cmd_len=$max_cmd_len
15666
15667 # Object file suffix (normally "o").
15668 objext=$ac_objext
15669
15670 # Executable file suffix (normally "").
15671 exeext=$exeext
15672
15673 # whether the shell understands "unset".
15674 lt_unset=$lt_unset
15675
15676 # turn spaces into newlines.
15677 SP2NL=$lt_lt_SP2NL
15678
15679 # turn newlines into spaces.
15680 NL2SP=$lt_lt_NL2SP
15681
15682 # An object symbol dumper.
15683 OBJDUMP=$lt_OBJDUMP
15684
15685 # Method to check whether dependent libraries are shared objects.
15686 deplibs_check_method=$lt_deplibs_check_method
15687
15688 # Command to use when deplibs_check_method == "file_magic".
15689 file_magic_cmd=$lt_file_magic_cmd
15690
15691 # The archiver.
15692 AR=$lt_AR
15693 AR_FLAGS=$lt_AR_FLAGS
15694
15695 # A symbol stripping program.
15696 STRIP=$lt_STRIP
15697
15698 # Commands used to install an old-style archive.
15699 RANLIB=$lt_RANLIB
15700 old_postinstall_cmds=$lt_old_postinstall_cmds
15701 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15702
15703 # Whether to use a lock for old archive extraction.
15704 lock_old_archive_extraction=$lock_old_archive_extraction
15705
15706 # A C compiler.
15707 LTCC=$lt_CC
15708
15709 # LTCC compiler flags.
15710 LTCFLAGS=$lt_CFLAGS
15711
15712 # Take the output of nm and produce a listing of raw symbols and C names.
15713 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15714
15715 # Transform the output of nm in a proper C declaration.
15716 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15717
15718 # Transform the output of nm in a C name address pair.
15719 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15720
15721 # Transform the output of nm in a C name address pair when lib prefix is needed.
15722 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15723
15724 # The name of the directory that contains temporary libtool files.
15725 objdir=$objdir
15726
15727 # Used to examine libraries when file_magic_cmd begins with "file".
15728 MAGIC_CMD=$MAGIC_CMD
15729
15730 # Must we lock files when doing compilation?
15731 need_locks=$lt_need_locks
15732
15733 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15734 DSYMUTIL=$lt_DSYMUTIL
15735
15736 # Tool to change global to local symbols on Mac OS X.
15737 NMEDIT=$lt_NMEDIT
15738
15739 # Tool to manipulate fat objects and archives on Mac OS X.
15740 LIPO=$lt_LIPO
15741
15742 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15743 OTOOL=$lt_OTOOL
15744
15745 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15746 OTOOL64=$lt_OTOOL64
15747
15748 # Old archive suffix (normally "a").
15749 libext=$libext
15750
15751 # Shared library suffix (normally ".so").
15752 shrext_cmds=$lt_shrext_cmds
15753
15754 # The commands to extract the exported symbol list from a shared archive.
15755 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15756
15757 # Variables whose values should be saved in libtool wrapper scripts and
15758 # restored at link time.
15759 variables_saved_for_relink=$lt_variables_saved_for_relink
15760
15761 # Do we need the "lib" prefix for modules?
15762 need_lib_prefix=$need_lib_prefix
15763
15764 # Do we need a version for libraries?
15765 need_version=$need_version
15766
15767 # Library versioning type.
15768 version_type=$version_type
15769
15770 # Shared library runtime path variable.
15771 runpath_var=$runpath_var
15772
15773 # Shared library path variable.
15774 shlibpath_var=$shlibpath_var
15775
15776 # Is shlibpath searched before the hard-coded library search path?
15777 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15778
15779 # Format of library name prefix.
15780 libname_spec=$lt_libname_spec
15781
15782 # List of archive names. First name is the real one, the rest are links.
15783 # The last name is the one that the linker finds with -lNAME
15784 library_names_spec=$lt_library_names_spec
15785
15786 # The coded name of the library, if different from the real name.
15787 soname_spec=$lt_soname_spec
15788
15789 # Permission mode override for installation of shared libraries.
15790 install_override_mode=$lt_install_override_mode
15791
15792 # Command to use after installation of a shared archive.
15793 postinstall_cmds=$lt_postinstall_cmds
15794
15795 # Command to use after uninstallation of a shared archive.
15796 postuninstall_cmds=$lt_postuninstall_cmds
15797
15798 # Commands used to finish a libtool library installation in a directory.
15799 finish_cmds=$lt_finish_cmds
15800
15801 # As "finish_cmds", except a single script fragment to be evaled but
15802 # not shown.
15803 finish_eval=$lt_finish_eval
15804
15805 # Whether we should hardcode library paths into libraries.
15806 hardcode_into_libs=$hardcode_into_libs
15807
15808 # Compile-time system search path for libraries.
15809 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15810
15811 # Run-time system search path for libraries.
15812 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15813
15814 # Whether dlopen is supported.
15815 dlopen_support=$enable_dlopen
15816
15817 # Whether dlopen of programs is supported.
15818 dlopen_self=$enable_dlopen_self
15819
15820 # Whether dlopen of statically linked programs is supported.
15821 dlopen_self_static=$enable_dlopen_self_static
15822
15823 # Commands to strip libraries.
15824 old_striplib=$lt_old_striplib
15825 striplib=$lt_striplib
15826
15827
15828 # The linker used to build libraries.
15829 LD=$lt_LD
15830
15831 # How to create reloadable object files.
15832 reload_flag=$lt_reload_flag
15833 reload_cmds=$lt_reload_cmds
15834
15835 # Commands used to build an old-style archive.
15836 old_archive_cmds=$lt_old_archive_cmds
15837
15838 # A language specific compiler.
15839 CC=$lt_compiler
15840
15841 # Is the compiler the GNU compiler?
15842 with_gcc=$GCC
15843
15844 # Compiler flag to turn off builtin functions.
15845 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15846
15847 # How to pass a linker flag through the compiler.
15848 wl=$lt_lt_prog_compiler_wl
15849
15850 # Additional compiler flags for building library objects.
15851 pic_flag=$lt_lt_prog_compiler_pic
15852
15853 # Compiler flag to prevent dynamic linking.
15854 link_static_flag=$lt_lt_prog_compiler_static
15855
15856 # Does compiler simultaneously support -c and -o options?
15857 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15858
15859 # Whether or not to add -lc for building shared libraries.
15860 build_libtool_need_lc=$archive_cmds_need_lc
15861
15862 # Whether or not to disallow shared libs when runtime libs are static.
15863 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15864
15865 # Compiler flag to allow reflexive dlopens.
15866 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15867
15868 # Compiler flag to generate shared objects directly from archives.
15869 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15870
15871 # Whether the compiler copes with passing no objects directly.
15872 compiler_needs_object=$lt_compiler_needs_object
15873
15874 # Create an old-style archive from a shared archive.
15875 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15876
15877 # Create a temporary old-style archive to link instead of a shared archive.
15878 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15879
15880 # Commands used to build a shared archive.
15881 archive_cmds=$lt_archive_cmds
15882 archive_expsym_cmds=$lt_archive_expsym_cmds
15883
15884 # Commands used to build a loadable module if different from building
15885 # a shared archive.
15886 module_cmds=$lt_module_cmds
15887 module_expsym_cmds=$lt_module_expsym_cmds
15888
15889 # Whether we are building with GNU ld or not.
15890 with_gnu_ld=$lt_with_gnu_ld
15891
15892 # Flag that allows shared libraries with undefined symbols to be built.
15893 allow_undefined_flag=$lt_allow_undefined_flag
15894
15895 # Flag that enforces no undefined symbols.
15896 no_undefined_flag=$lt_no_undefined_flag
15897
15898 # Flag to hardcode \$libdir into a binary during linking.
15899 # This must work even if \$libdir does not exist
15900 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15901
15902 # If ld is used when linking, flag to hardcode \$libdir into a binary
15903 # during linking. This must work even if \$libdir does not exist.
15904 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15905
15906 # Whether we need a single "-rpath" flag with a separated argument.
15907 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15908
15909 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15910 # DIR into the resulting binary.
15911 hardcode_direct=$hardcode_direct
15912
15913 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15914 # DIR into the resulting binary and the resulting library dependency is
15915 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15916 # library is relocated.
15917 hardcode_direct_absolute=$hardcode_direct_absolute
15918
15919 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15920 # into the resulting binary.
15921 hardcode_minus_L=$hardcode_minus_L
15922
15923 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15924 # into the resulting binary.
15925 hardcode_shlibpath_var=$hardcode_shlibpath_var
15926
15927 # Set to "yes" if building a shared library automatically hardcodes DIR
15928 # into the library and all subsequent libraries and executables linked
15929 # against it.
15930 hardcode_automatic=$hardcode_automatic
15931
15932 # Set to yes if linker adds runtime paths of dependent libraries
15933 # to runtime path list.
15934 inherit_rpath=$inherit_rpath
15935
15936 # Whether libtool must link a program against all its dependency libraries.
15937 link_all_deplibs=$link_all_deplibs
15938
15939 # Fix the shell variable \$srcfile for the compiler.
15940 fix_srcfile_path=$lt_fix_srcfile_path
15941
15942 # Set to "yes" if exported symbols are required.
15943 always_export_symbols=$always_export_symbols
15944
15945 # The commands to list exported symbols.
15946 export_symbols_cmds=$lt_export_symbols_cmds
15947
15948 # Symbols that should not be listed in the preloaded symbols.
15949 exclude_expsyms=$lt_exclude_expsyms
15950
15951 # Symbols that must always be exported.
15952 include_expsyms=$lt_include_expsyms
15953
15954 # Commands necessary for linking programs (against libraries) with templates.
15955 prelink_cmds=$lt_prelink_cmds
15956
15957 # Specify filename containing input files.
15958 file_list_spec=$lt_file_list_spec
15959
15960 # How to hardcode a shared library path into an executable.
15961 hardcode_action=$hardcode_action
15962
15963 # ### END LIBTOOL CONFIG
15964
15965 _LT_EOF
15966
15967 case $host_os in
15968 aix3*)
15969 cat <<\_LT_EOF >> "$cfgfile"
15970 # AIX sometimes has problems with the GCC collect2 program. For some
15971 # reason, if we set the COLLECT_NAMES environment variable, the problems
15972 # vanish in a puff of smoke.
15973 if test "X${COLLECT_NAMES+set}" != Xset; then
15974 COLLECT_NAMES=
15975 export COLLECT_NAMES
15976 fi
15977 _LT_EOF
15978 ;;
15979 esac
15980
15981
15982 ltmain="$ac_aux_dir/ltmain.sh"
15983
15984
15985 # We use sed instead of cat because bash on DJGPP gets confused if
15986 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15987 # text mode, it properly converts lines to CR/LF. This bash problem
15988 # is reportedly fixed, but why not run on old versions too?
15989 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15990 || (rm -f "$cfgfile"; exit 1)
15991
15992 case $xsi_shell in
15993 yes)
15994 cat << \_LT_EOF >> "$cfgfile"
15995
15996 # func_dirname file append nondir_replacement
15997 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15998 # otherwise set result to NONDIR_REPLACEMENT.
15999 func_dirname ()
16000 {
16001 case ${1} in
16002 */*) func_dirname_result="${1%/*}${2}" ;;
16003 * ) func_dirname_result="${3}" ;;
16004 esac
16005 }
16006
16007 # func_basename file
16008 func_basename ()
16009 {
16010 func_basename_result="${1##*/}"
16011 }
16012
16013 # func_dirname_and_basename file append nondir_replacement
16014 # perform func_basename and func_dirname in a single function
16015 # call:
16016 # dirname: Compute the dirname of FILE. If nonempty,
16017 # add APPEND to the result, otherwise set result
16018 # to NONDIR_REPLACEMENT.
16019 # value returned in "$func_dirname_result"
16020 # basename: Compute filename of FILE.
16021 # value retuned in "$func_basename_result"
16022 # Implementation must be kept synchronized with func_dirname
16023 # and func_basename. For efficiency, we do not delegate to
16024 # those functions but instead duplicate the functionality here.
16025 func_dirname_and_basename ()
16026 {
16027 case ${1} in
16028 */*) func_dirname_result="${1%/*}${2}" ;;
16029 * ) func_dirname_result="${3}" ;;
16030 esac
16031 func_basename_result="${1##*/}"
16032 }
16033
16034 # func_stripname prefix suffix name
16035 # strip PREFIX and SUFFIX off of NAME.
16036 # PREFIX and SUFFIX must not contain globbing or regex special
16037 # characters, hashes, percent signs, but SUFFIX may contain a leading
16038 # dot (in which case that matches only a dot).
16039 func_stripname ()
16040 {
16041 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16042 # positional parameters, so assign one to ordinary parameter first.
16043 func_stripname_result=${3}
16044 func_stripname_result=${func_stripname_result#"${1}"}
16045 func_stripname_result=${func_stripname_result%"${2}"}
16046 }
16047
16048 # func_opt_split
16049 func_opt_split ()
16050 {
16051 func_opt_split_opt=${1%%=*}
16052 func_opt_split_arg=${1#*=}
16053 }
16054
16055 # func_lo2o object
16056 func_lo2o ()
16057 {
16058 case ${1} in
16059 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16060 *) func_lo2o_result=${1} ;;
16061 esac
16062 }
16063
16064 # func_xform libobj-or-source
16065 func_xform ()
16066 {
16067 func_xform_result=${1%.*}.lo
16068 }
16069
16070 # func_arith arithmetic-term...
16071 func_arith ()
16072 {
16073 func_arith_result=$(( $* ))
16074 }
16075
16076 # func_len string
16077 # STRING may not start with a hyphen.
16078 func_len ()
16079 {
16080 func_len_result=${#1}
16081 }
16082
16083 _LT_EOF
16084 ;;
16085 *) # Bourne compatible functions.
16086 cat << \_LT_EOF >> "$cfgfile"
16087
16088 # func_dirname file append nondir_replacement
16089 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16090 # otherwise set result to NONDIR_REPLACEMENT.
16091 func_dirname ()
16092 {
16093 # Extract subdirectory from the argument.
16094 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16095 if test "X$func_dirname_result" = "X${1}"; then
16096 func_dirname_result="${3}"
16097 else
16098 func_dirname_result="$func_dirname_result${2}"
16099 fi
16100 }
16101
16102 # func_basename file
16103 func_basename ()
16104 {
16105 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16106 }
16107
16108
16109 # func_stripname prefix suffix name
16110 # strip PREFIX and SUFFIX off of NAME.
16111 # PREFIX and SUFFIX must not contain globbing or regex special
16112 # characters, hashes, percent signs, but SUFFIX may contain a leading
16113 # dot (in which case that matches only a dot).
16114 # func_strip_suffix prefix name
16115 func_stripname ()
16116 {
16117 case ${2} in
16118 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16119 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16120 esac
16121 }
16122
16123 # sed scripts:
16124 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16125 my_sed_long_arg='1s/^-[^=]*=//'
16126
16127 # func_opt_split
16128 func_opt_split ()
16129 {
16130 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16131 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16132 }
16133
16134 # func_lo2o object
16135 func_lo2o ()
16136 {
16137 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16138 }
16139
16140 # func_xform libobj-or-source
16141 func_xform ()
16142 {
16143 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16144 }
16145
16146 # func_arith arithmetic-term...
16147 func_arith ()
16148 {
16149 func_arith_result=`expr "$@"`
16150 }
16151
16152 # func_len string
16153 # STRING may not start with a hyphen.
16154 func_len ()
16155 {
16156 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16157 }
16158
16159 _LT_EOF
16160 esac
16161
16162 case $lt_shell_append in
16163 yes)
16164 cat << \_LT_EOF >> "$cfgfile"
16165
16166 # func_append var value
16167 # Append VALUE to the end of shell variable VAR.
16168 func_append ()
16169 {
16170 eval "$1+=\$2"
16171 }
16172 _LT_EOF
16173 ;;
16174 *)
16175 cat << \_LT_EOF >> "$cfgfile"
16176
16177 # func_append var value
16178 # Append VALUE to the end of shell variable VAR.
16179 func_append ()
16180 {
16181 eval "$1=\$$1\$2"
16182 }
16183
16184 _LT_EOF
16185 ;;
16186 esac
16187
16188
16189 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16190 || (rm -f "$cfgfile"; exit 1)
16191
16192 mv -f "$cfgfile" "$ofile" ||
16193 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16194 chmod +x "$ofile"
16195
16196 ;;
16197 "gstdint.h":C)
16198 if test "$GCC" = yes; then
16199 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
16200 else
16201 echo "/* generated for $CC */" > tmp-stdint.h
16202 fi
16203
16204 sed 's/^ *//' >> tmp-stdint.h <<EOF
16205
16206 #ifndef GCC_GENERATED_STDINT_H
16207 #define GCC_GENERATED_STDINT_H 1
16208
16209 #include <sys/types.h>
16210 EOF
16211
16212 if test "$acx_cv_header_stdint" != stdint.h; then
16213 echo "#include <stddef.h>" >> tmp-stdint.h
16214 fi
16215 if test "$acx_cv_header_stdint" != stddef.h; then
16216 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
16217 fi
16218
16219 sed 's/^ *//' >> tmp-stdint.h <<EOF
16220 /* glibc uses these symbols as guards to prevent redefinitions. */
16221 #ifdef __int8_t_defined
16222 #define _INT8_T
16223 #define _INT16_T
16224 #define _INT32_T
16225 #endif
16226 #ifdef __uint32_t_defined
16227 #define _UINT32_T
16228 #endif
16229
16230 EOF
16231
16232 # ----------------- done header, emit basic int types -------------
16233 if test "$acx_cv_header_stdint" = stddef.h; then
16234 sed 's/^ *//' >> tmp-stdint.h <<EOF
16235
16236 #ifndef _UINT8_T
16237 #define _UINT8_T
16238 #ifndef __uint8_t_defined
16239 #define __uint8_t_defined
16240 #ifndef uint8_t
16241 typedef unsigned $acx_cv_type_int8_t uint8_t;
16242 #endif
16243 #endif
16244 #endif
16245
16246 #ifndef _UINT16_T
16247 #define _UINT16_T
16248 #ifndef __uint16_t_defined
16249 #define __uint16_t_defined
16250 #ifndef uint16_t
16251 typedef unsigned $acx_cv_type_int16_t uint16_t;
16252 #endif
16253 #endif
16254 #endif
16255
16256 #ifndef _UINT32_T
16257 #define _UINT32_T
16258 #ifndef __uint32_t_defined
16259 #define __uint32_t_defined
16260 #ifndef uint32_t
16261 typedef unsigned $acx_cv_type_int32_t uint32_t;
16262 #endif
16263 #endif
16264 #endif
16265
16266 #ifndef _INT8_T
16267 #define _INT8_T
16268 #ifndef __int8_t_defined
16269 #define __int8_t_defined
16270 #ifndef int8_t
16271 typedef $acx_cv_type_int8_t int8_t;
16272 #endif
16273 #endif
16274 #endif
16275
16276 #ifndef _INT16_T
16277 #define _INT16_T
16278 #ifndef __int16_t_defined
16279 #define __int16_t_defined
16280 #ifndef int16_t
16281 typedef $acx_cv_type_int16_t int16_t;
16282 #endif
16283 #endif
16284 #endif
16285
16286 #ifndef _INT32_T
16287 #define _INT32_T
16288 #ifndef __int32_t_defined
16289 #define __int32_t_defined
16290 #ifndef int32_t
16291 typedef $acx_cv_type_int32_t int32_t;
16292 #endif
16293 #endif
16294 #endif
16295 EOF
16296 elif test "$ac_cv_type_u_int32_t" = yes; then
16297 sed 's/^ *//' >> tmp-stdint.h <<EOF
16298
16299 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
16300 #ifndef _INT8_T
16301 #define _INT8_T
16302 #endif
16303 #ifndef _INT16_T
16304 #define _INT16_T
16305 #endif
16306 #ifndef _INT32_T
16307 #define _INT32_T
16308 #endif
16309
16310 #ifndef _UINT8_T
16311 #define _UINT8_T
16312 #ifndef __uint8_t_defined
16313 #define __uint8_t_defined
16314 #ifndef uint8_t
16315 typedef u_int8_t uint8_t;
16316 #endif
16317 #endif
16318 #endif
16319
16320 #ifndef _UINT16_T
16321 #define _UINT16_T
16322 #ifndef __uint16_t_defined
16323 #define __uint16_t_defined
16324 #ifndef uint16_t
16325 typedef u_int16_t uint16_t;
16326 #endif
16327 #endif
16328 #endif
16329
16330 #ifndef _UINT32_T
16331 #define _UINT32_T
16332 #ifndef __uint32_t_defined
16333 #define __uint32_t_defined
16334 #ifndef uint32_t
16335 typedef u_int32_t uint32_t;
16336 #endif
16337 #endif
16338 #endif
16339 EOF
16340 else
16341 sed 's/^ *//' >> tmp-stdint.h <<EOF
16342
16343 /* Some systems have guard macros to prevent redefinitions, define them. */
16344 #ifndef _INT8_T
16345 #define _INT8_T
16346 #endif
16347 #ifndef _INT16_T
16348 #define _INT16_T
16349 #endif
16350 #ifndef _INT32_T
16351 #define _INT32_T
16352 #endif
16353 #ifndef _UINT8_T
16354 #define _UINT8_T
16355 #endif
16356 #ifndef _UINT16_T
16357 #define _UINT16_T
16358 #endif
16359 #ifndef _UINT32_T
16360 #define _UINT32_T
16361 #endif
16362 EOF
16363 fi
16364
16365 # ------------- done basic int types, emit int64_t types ------------
16366 if test "$ac_cv_type_uint64_t" = yes; then
16367 sed 's/^ *//' >> tmp-stdint.h <<EOF
16368
16369 /* system headers have good uint64_t and int64_t */
16370 #ifndef _INT64_T
16371 #define _INT64_T
16372 #endif
16373 #ifndef _UINT64_T
16374 #define _UINT64_T
16375 #endif
16376 EOF
16377 elif test "$ac_cv_type_u_int64_t" = yes; then
16378 sed 's/^ *//' >> tmp-stdint.h <<EOF
16379
16380 /* system headers have an u_int64_t (and int64_t) */
16381 #ifndef _INT64_T
16382 #define _INT64_T
16383 #endif
16384 #ifndef _UINT64_T
16385 #define _UINT64_T
16386 #ifndef __uint64_t_defined
16387 #define __uint64_t_defined
16388 #ifndef uint64_t
16389 typedef u_int64_t uint64_t;
16390 #endif
16391 #endif
16392 #endif
16393 EOF
16394 elif test -n "$acx_cv_type_int64_t"; then
16395 sed 's/^ *//' >> tmp-stdint.h <<EOF
16396
16397 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
16398 #ifndef _INT64_T
16399 #define _INT64_T
16400 #ifndef int64_t
16401 typedef $acx_cv_type_int64_t int64_t;
16402 #endif
16403 #endif
16404 #ifndef _UINT64_T
16405 #define _UINT64_T
16406 #ifndef __uint64_t_defined
16407 #define __uint64_t_defined
16408 #ifndef uint64_t
16409 typedef unsigned $acx_cv_type_int64_t uint64_t;
16410 #endif
16411 #endif
16412 #endif
16413 EOF
16414 else
16415 sed 's/^ *//' >> tmp-stdint.h <<EOF
16416
16417 /* some common heuristics for int64_t, using compiler-specific tests */
16418 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
16419 #ifndef _INT64_T
16420 #define _INT64_T
16421 #ifndef __int64_t_defined
16422 #ifndef int64_t
16423 typedef long long int64_t;
16424 #endif
16425 #endif
16426 #endif
16427 #ifndef _UINT64_T
16428 #define _UINT64_T
16429 #ifndef uint64_t
16430 typedef unsigned long long uint64_t;
16431 #endif
16432 #endif
16433
16434 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
16435 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
16436 does not implement __extension__. But that compiler doesn't define
16437 __GNUC_MINOR__. */
16438 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
16439 # define __extension__
16440 # endif
16441
16442 # ifndef _INT64_T
16443 # define _INT64_T
16444 # ifndef int64_t
16445 __extension__ typedef long long int64_t;
16446 # endif
16447 # endif
16448 # ifndef _UINT64_T
16449 # define _UINT64_T
16450 # ifndef uint64_t
16451 __extension__ typedef unsigned long long uint64_t;
16452 # endif
16453 # endif
16454
16455 #elif !defined __STRICT_ANSI__
16456 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
16457
16458 # ifndef _INT64_T
16459 # define _INT64_T
16460 # ifndef int64_t
16461 typedef __int64 int64_t;
16462 # endif
16463 # endif
16464 # ifndef _UINT64_T
16465 # define _UINT64_T
16466 # ifndef uint64_t
16467 typedef unsigned __int64 uint64_t;
16468 # endif
16469 # endif
16470 # endif /* compiler */
16471
16472 #endif /* ANSI version */
16473 EOF
16474 fi
16475
16476 # ------------- done int64_t types, emit intptr types ------------
16477 if test "$ac_cv_type_uintptr_t" != yes; then
16478 sed 's/^ *//' >> tmp-stdint.h <<EOF
16479
16480 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
16481 #ifndef __uintptr_t_defined
16482 #ifndef uintptr_t
16483 typedef u$acx_cv_type_intptr_t uintptr_t;
16484 #endif
16485 #endif
16486 #ifndef __intptr_t_defined
16487 #ifndef intptr_t
16488 typedef $acx_cv_type_intptr_t intptr_t;
16489 #endif
16490 #endif
16491 EOF
16492 fi
16493
16494 # ------------- done intptr types, emit int_least types ------------
16495 if test "$ac_cv_type_int_least32_t" != yes; then
16496 sed 's/^ *//' >> tmp-stdint.h <<EOF
16497
16498 /* Define int_least types */
16499 typedef int8_t int_least8_t;
16500 typedef int16_t int_least16_t;
16501 typedef int32_t int_least32_t;
16502 #ifdef _INT64_T
16503 typedef int64_t int_least64_t;
16504 #endif
16505
16506 typedef uint8_t uint_least8_t;
16507 typedef uint16_t uint_least16_t;
16508 typedef uint32_t uint_least32_t;
16509 #ifdef _UINT64_T
16510 typedef uint64_t uint_least64_t;
16511 #endif
16512 EOF
16513 fi
16514
16515 # ------------- done intptr types, emit int_fast types ------------
16516 if test "$ac_cv_type_int_fast32_t" != yes; then
16517 sed 's/^ *//' >> tmp-stdint.h <<EOF
16518
16519 /* Define int_fast types. short is often slow */
16520 typedef int8_t int_fast8_t;
16521 typedef int int_fast16_t;
16522 typedef int32_t int_fast32_t;
16523 #ifdef _INT64_T
16524 typedef int64_t int_fast64_t;
16525 #endif
16526
16527 typedef uint8_t uint_fast8_t;
16528 typedef unsigned int uint_fast16_t;
16529 typedef uint32_t uint_fast32_t;
16530 #ifdef _UINT64_T
16531 typedef uint64_t uint_fast64_t;
16532 #endif
16533 EOF
16534 fi
16535
16536 if test "$ac_cv_type_uintmax_t" != yes; then
16537 sed 's/^ *//' >> tmp-stdint.h <<EOF
16538
16539 /* Define intmax based on what we found */
16540 #ifndef intmax_t
16541 #ifdef _INT64_T
16542 typedef int64_t intmax_t;
16543 #else
16544 typedef long intmax_t;
16545 #endif
16546 #endif
16547 #ifndef uintmax_t
16548 #ifdef _UINT64_T
16549 typedef uint64_t uintmax_t;
16550 #else
16551 typedef unsigned long uintmax_t;
16552 #endif
16553 #endif
16554 EOF
16555 fi
16556
16557 sed 's/^ *//' >> tmp-stdint.h <<EOF
16558
16559 #endif /* GCC_GENERATED_STDINT_H */
16560 EOF
16561
16562 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
16563 rm -f tmp-stdint.h
16564 else
16565 mv -f tmp-stdint.h gstdint.h
16566 fi
16567
16568 ;;
16569 "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;;
16570 "default":C) if test -n "$CONFIG_FILES"; then
16571 if test -n "${with_target_subdir}"; then
16572 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16573 # that multilib installs will end up installed in the correct place.
16574 # The testsuite needs it for multilib-aware ABI baseline files.
16575 # To work around this not being passed down from config-ml.in ->
16576 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16577 # append it here. Only modify Makefiles that have just been created.
16578 #
16579 # Also, get rid of this simulated-VPATH thing that automake does.
16580 cat > vpsed << \_EOF
16581 s!`test -f '$<' || echo '$(srcdir)/'`!!
16582 _EOF
16583 for i in $SUBDIRS; do
16584 case $CONFIG_FILES in
16585 *${i}/Makefile*)
16586 #echo "Adding MULTISUBDIR to $i/Makefile"
16587 sed -f vpsed $i/Makefile > tmp
16588 grep '^MULTISUBDIR =' Makefile >> tmp
16589 mv tmp $i/Makefile
16590 ;;
16591 esac
16592 done
16593 rm vpsed
16594 fi
16595 fi
16596 ;;
16597
16598 esac
16599 done # for ac_tag
16600
16601
16602 as_fn_exit 0
16603 _ACEOF
16604 ac_clean_files=$ac_clean_files_save
16605
16606 test $ac_write_fail = 0 ||
16607 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16608
16609
16610 # configure is writing to config.log, and then calls config.status.
16611 # config.status does its own redirection, appending to config.log.
16612 # Unfortunately, on DOS this fails, as config.log is still kept open
16613 # by configure, so config.status won't be able to write to it; its
16614 # output is simply discarded. So we exec the FD to /dev/null,
16615 # effectively closing config.log, so it can be properly (re)opened and
16616 # appended to by config.status. When coming back to configure, we
16617 # need to make the FD available again.
16618 if test "$no_create" != yes; then
16619 ac_cs_success=:
16620 ac_config_status_args=
16621 test "$silent" = yes &&
16622 ac_config_status_args="$ac_config_status_args --quiet"
16623 exec 5>/dev/null
16624 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16625 exec 5>>config.log
16626 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16627 # would make configure fail if this is the last instruction.
16628 $ac_cs_success || as_fn_exit 1
16629 fi
16630 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16632 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16633 fi
16634