Move -lsocket check to common.m4
[binutils-gdb.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
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=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="main.c"
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 enable_option_checking=no
633 ac_header_list=
634 ac_subst_vars='LTLIBOBJS
635 LIBOBJS
636 GCORE_TRANSFORM_NAME
637 GDB_TRANSFORM_NAME
638 XSLTPROC
639 NM_H
640 GDB_NM_FILE
641 CTF_DEPS
642 LIBCTF
643 LTLIBBABELTRACE
644 LIBBABELTRACE
645 HAVE_LIBBABELTRACE
646 LIBBACKTRACE_LIB
647 LIBBACKTRACE_INC
648 HAVE_NATIVE_GCORE_HOST
649 NAT_GENERATED_FILES
650 XM_CLIBS
651 MH_CFLAGS
652 LOADLIBES
653 NAT_CDEPS
654 NATDEPFILES
655 NAT_FILE
656 target_subdir
657 CONFIG_UNINSTALL
658 CONFIG_INSTALL
659 CONFIG_CLEAN
660 CONFIG_ALL
661 CONFIG_SRCS
662 CONFIG_DEPS
663 CONFIG_OBS
664 PROFILE_CFLAGS
665 ENABLE_CFLAGS
666 SIM_OBS
667 SIM
668 XMKMF
669 GDBTK_SRC_DIR
670 GDBTK_CFLAGS
671 GDBTKLIBS
672 X_LIBS
673 X_LDFLAGS
674 X_CFLAGS
675 TK_XINCLUDES
676 TK_DEPS
677 TK_LIBRARY
678 TK_INCLUDE
679 TK_STUB_LIB_SPEC
680 TK_STUB_LIB_FLAG
681 TK_STUB_LIB_FILE
682 TK_LIB_SPEC
683 TK_LIB_FLAG
684 TK_LIB_FILE
685 TK_SRC_DIR
686 TK_BIN_DIR
687 TK_VERSION
688 TCL_DEPS
689 TCL_LIBRARY
690 TCL_INCLUDE
691 TCL_STUB_LIB_SPEC
692 TCL_STUB_LIB_FLAG
693 TCL_STUB_LIB_FILE
694 TCL_LIB_SPEC
695 TCL_LIB_FLAG
696 TCL_LIB_FILE
697 TCL_SRC_DIR
698 TCL_BIN_DIR
699 TCL_PATCH_LEVEL
700 TCL_VERSION
701 WIN32LDAPP
702 WIN32LIBS
703 GUI_CFLAGS_X
704 LIBGUI
705 LTLIBLZMA
706 LIBLZMA
707 HAVE_LIBLZMA
708 SER_HARDWIRE
709 WERROR_CFLAGS
710 WARN_CFLAGS
711 SYSTEM_GDBINIT_DIR
712 SYSTEM_GDBINIT
713 TARGET_SYSTEM_ROOT
714 CONFIG_LDFLAGS
715 RDYNAMIC
716 LTLIBXXHASH
717 LIBXXHASH
718 HAVE_LIBXXHASH
719 LTLIBIPT
720 LIBIPT
721 HAVE_LIBIPT
722 PTHREAD_CFLAGS
723 PTHREAD_LIBS
724 PTHREAD_CC
725 ax_pthread_config
726 ALLOCA
727 SRCHIGH_CFLAGS
728 SRCHIGH_LIBS
729 HAVE_GUILE_FALSE
730 HAVE_GUILE_TRUE
731 GUILE_LIBS
732 GUILE_CPPFLAGS
733 GUILD_TARGET_FLAG
734 GUILD
735 pkg_config_prog_path
736 HAVE_PYTHON_FALSE
737 HAVE_PYTHON_TRUE
738 PYTHON_LIBS
739 PYTHON_CPPFLAGS
740 PYTHON_CFLAGS
741 python_prog_path
742 GMPINC
743 GMPLIBS
744 LTLIBEXPAT
745 LIBEXPAT
746 HAVE_LIBEXPAT
747 JIT_READER_DIR
748 TARGET_PTR
749 READLINE_DOC_SOURCE_INCLUDES
750 READLINE_TEXI_INCFLAG
751 READLINE_CFLAGS
752 READLINE_DEPS
753 READLINE
754 LTLIBICONV
755 LIBICONV
756 ZSTD_LIBS
757 ZSTD_CFLAGS
758 zlibinc
759 zlibdir
760 MIG
761 WINDRES
762 DLLTOOL
763 YFLAGS
764 YACC
765 INSTALL_DATA
766 INSTALL_SCRIPT
767 INSTALL_PROGRAM
768 REPORT_BUGS_TEXI
769 REPORT_BUGS_TO
770 PKGVERSION
771 CODESIGN_CERT
772 DEBUGINFOD_LIBS
773 DEBUGINFOD_CFLAGS
774 HAVE_NATIVE_GCORE_TARGET
775 TARGET_OBS
776 AMD_DBGAPI_LIBS
777 AMD_DBGAPI_CFLAGS
778 ENABLE_BFD_64_BIT_FALSE
779 ENABLE_BFD_64_BIT_TRUE
780 subdirs
781 GDB_DATADIR
782 DEBUGDIR
783 MAKEINFO_EXTRA_FLAGS
784 MAKEINFOFLAGS
785 MAKEINFO
786 PACKAGE
787 CATOBJEXT
788 GENCAT
789 INSTOBJEXT
790 DATADIRNAME
791 CATALOGS
792 POSUB
793 GMSGFMT
794 XGETTEXT
795 INCINTL
796 LIBINTL_DEP
797 LIBINTL
798 USE_NLS
799 PKG_CONFIG_LIBDIR
800 PKG_CONFIG_PATH
801 PKG_CONFIG
802 CCDEPMODE
803 DEPDIR
804 am__leading_dot
805 CXX_DIALECT
806 HAVE_CXX11
807 CXXCPP
808 OTOOL64
809 OTOOL
810 LIPO
811 NMEDIT
812 DSYMUTIL
813 AWK
814 RANLIB
815 AR
816 OBJDUMP
817 LN_S
818 NM
819 ac_ct_DUMPBIN
820 DUMPBIN
821 LD
822 FGREP
823 SED
824 LIBTOOL
825 target_noncanonical
826 INSTALL_STRIP_PROGRAM
827 STRIP
828 install_sh
829 LARGEFILE_CPPFLAGS
830 target_os
831 target_vendor
832 target_cpu
833 target
834 host_os
835 host_vendor
836 host_cpu
837 host
838 build_os
839 build_vendor
840 build_cpu
841 build
842 EGREP
843 GREP
844 CPP
845 ac_ct_CXX
846 CXXFLAGS
847 CXX
848 OBJEXT
849 EXEEXT
850 ac_ct_CC
851 CPPFLAGS
852 LDFLAGS
853 CFLAGS
854 CC
855 MAINT
856 MAINTAINER_MODE_FALSE
857 MAINTAINER_MODE_TRUE
858 target_alias
859 host_alias
860 build_alias
861 LIBS
862 ECHO_T
863 ECHO_N
864 ECHO_C
865 DEFS
866 mandir
867 localedir
868 libdir
869 psdir
870 pdfdir
871 dvidir
872 htmldir
873 infodir
874 docdir
875 oldincludedir
876 includedir
877 localstatedir
878 sharedstatedir
879 sysconfdir
880 datadir
881 datarootdir
882 libexecdir
883 sbindir
884 bindir
885 program_transform_name
886 prefix
887 exec_prefix
888 PACKAGE_URL
889 PACKAGE_BUGREPORT
890 PACKAGE_STRING
891 PACKAGE_VERSION
892 PACKAGE_TARNAME
893 PACKAGE_NAME
894 PATH_SEPARATOR
895 SHELL'
896 ac_subst_files='nat_makefile_frag'
897 ac_user_opts='
898 enable_option_checking
899 enable_maintainer_mode
900 enable_plugins
901 enable_largefile
902 enable_shared
903 enable_static
904 with_pic
905 enable_fast_install
906 with_gnu_ld
907 enable_libtool_lock
908 with_separate_debug_dir
909 with_additional_debug_dirs
910 with_gdb_datadir
911 with_relocated_sources
912 with_auto_load_dir
913 with_auto_load_safe_path
914 enable_targets
915 enable_64_bit_bfd
916 with_amd_dbgapi
917 enable_tui
918 enable_gdbtk
919 with_debuginfod
920 with_libunwind_ia64
921 with_curses
922 enable_profiling
923 enable_codesign
924 with_pkgversion
925 with_bugurl
926 with_system_zlib
927 with_zstd
928 enable_rpath
929 with_libiconv_prefix
930 with_libiconv_type
931 with_iconv_bin
932 with_system_readline
933 with_jit_reader_dir
934 with_expat
935 with_libexpat_prefix
936 with_libexpat_type
937 with_python
938 with_python_libdir
939 with_guile
940 enable_source_highlight
941 enable_threading
942 with_intel_pt
943 with_libipt_prefix
944 with_libipt_type
945 with_xxhash
946 with_libxxhash_prefix
947 with_libxxhash_type
948 with_sysroot
949 with_system_gdbinit
950 with_system_gdbinit_dir
951 enable_werror
952 enable_build_warnings
953 enable_gdb_build_warnings
954 enable_ubsan
955 with_lzma
956 with_liblzma_prefix
957 with_liblzma_type
958 with_tcl
959 with_tk
960 with_x
961 enable_sim
962 enable_libbacktrace
963 with_babeltrace
964 with_libbabeltrace_prefix
965 with_libbabeltrace_type
966 enable_libctf
967 enable_unit_tests
968 '
969 ac_precious_vars='build_alias
970 host_alias
971 target_alias
972 CC
973 CFLAGS
974 LDFLAGS
975 LIBS
976 CPPFLAGS
977 CXX
978 CXXFLAGS
979 CCC
980 CPP
981 CXXCPP
982 PKG_CONFIG
983 PKG_CONFIG_PATH
984 PKG_CONFIG_LIBDIR
985 MAKEINFO
986 MAKEINFOFLAGS
987 AMD_DBGAPI_CFLAGS
988 AMD_DBGAPI_LIBS
989 DEBUGINFOD_CFLAGS
990 DEBUGINFOD_LIBS
991 YACC
992 YFLAGS
993 ZSTD_CFLAGS
994 ZSTD_LIBS
995 GMPLIBS
996 GMPINC
997 XMKMF'
998 ac_subdirs_all='testsuite
999 gdbtk'
1000
1001 # Initialize some variables set by options.
1002 ac_init_help=
1003 ac_init_version=false
1004 ac_unrecognized_opts=
1005 ac_unrecognized_sep=
1006 # The variables have the same names as the options, with
1007 # dashes changed to underlines.
1008 cache_file=/dev/null
1009 exec_prefix=NONE
1010 no_create=
1011 no_recursion=
1012 prefix=NONE
1013 program_prefix=NONE
1014 program_suffix=NONE
1015 program_transform_name=s,x,x,
1016 silent=
1017 site=
1018 srcdir=
1019 verbose=
1020 x_includes=NONE
1021 x_libraries=NONE
1022
1023 # Installation directory options.
1024 # These are left unexpanded so users can "make install exec_prefix=/foo"
1025 # and all the variables that are supposed to be based on exec_prefix
1026 # by default will actually change.
1027 # Use braces instead of parens because sh, perl, etc. also accept them.
1028 # (The list follows the same order as the GNU Coding Standards.)
1029 bindir='${exec_prefix}/bin'
1030 sbindir='${exec_prefix}/sbin'
1031 libexecdir='${exec_prefix}/libexec'
1032 datarootdir='${prefix}/share'
1033 datadir='${datarootdir}'
1034 sysconfdir='${prefix}/etc'
1035 sharedstatedir='${prefix}/com'
1036 localstatedir='${prefix}/var'
1037 includedir='${prefix}/include'
1038 oldincludedir='/usr/include'
1039 docdir='${datarootdir}/doc/${PACKAGE}'
1040 infodir='${datarootdir}/info'
1041 htmldir='${docdir}'
1042 dvidir='${docdir}'
1043 pdfdir='${docdir}'
1044 psdir='${docdir}'
1045 libdir='${exec_prefix}/lib'
1046 localedir='${datarootdir}/locale'
1047 mandir='${datarootdir}/man'
1048
1049 ac_prev=
1050 ac_dashdash=
1051 for ac_option
1052 do
1053 # If the previous option needs an argument, assign it.
1054 if test -n "$ac_prev"; then
1055 eval $ac_prev=\$ac_option
1056 ac_prev=
1057 continue
1058 fi
1059
1060 case $ac_option in
1061 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1062 *=) ac_optarg= ;;
1063 *) ac_optarg=yes ;;
1064 esac
1065
1066 # Accept the important Cygnus configure options, so we can diagnose typos.
1067
1068 case $ac_dashdash$ac_option in
1069 --)
1070 ac_dashdash=yes ;;
1071
1072 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1073 ac_prev=bindir ;;
1074 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1075 bindir=$ac_optarg ;;
1076
1077 -build | --build | --buil | --bui | --bu)
1078 ac_prev=build_alias ;;
1079 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1080 build_alias=$ac_optarg ;;
1081
1082 -cache-file | --cache-file | --cache-fil | --cache-fi \
1083 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1084 ac_prev=cache_file ;;
1085 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1086 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1087 cache_file=$ac_optarg ;;
1088
1089 --config-cache | -C)
1090 cache_file=config.cache ;;
1091
1092 -datadir | --datadir | --datadi | --datad)
1093 ac_prev=datadir ;;
1094 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1095 datadir=$ac_optarg ;;
1096
1097 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1098 | --dataroo | --dataro | --datar)
1099 ac_prev=datarootdir ;;
1100 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1101 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1102 datarootdir=$ac_optarg ;;
1103
1104 -disable-* | --disable-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid feature name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1112 *"
1113 "enable_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval enable_$ac_useropt=no ;;
1119
1120 -docdir | --docdir | --docdi | --doc | --do)
1121 ac_prev=docdir ;;
1122 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1123 docdir=$ac_optarg ;;
1124
1125 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1126 ac_prev=dvidir ;;
1127 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1128 dvidir=$ac_optarg ;;
1129
1130 -enable-* | --enable-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error $? "invalid feature name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1138 *"
1139 "enable_$ac_useropt"
1140 "*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval enable_$ac_useropt=\$ac_optarg ;;
1145
1146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1148 | --exec | --exe | --ex)
1149 ac_prev=exec_prefix ;;
1150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1152 | --exec=* | --exe=* | --ex=*)
1153 exec_prefix=$ac_optarg ;;
1154
1155 -gas | --gas | --ga | --g)
1156 # Obsolete; use --with-gas.
1157 with_gas=yes ;;
1158
1159 -help | --help | --hel | --he | -h)
1160 ac_init_help=long ;;
1161 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1162 ac_init_help=recursive ;;
1163 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1164 ac_init_help=short ;;
1165
1166 -host | --host | --hos | --ho)
1167 ac_prev=host_alias ;;
1168 -host=* | --host=* | --hos=* | --ho=*)
1169 host_alias=$ac_optarg ;;
1170
1171 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1172 ac_prev=htmldir ;;
1173 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1174 | --ht=*)
1175 htmldir=$ac_optarg ;;
1176
1177 -includedir | --includedir | --includedi | --included | --include \
1178 | --includ | --inclu | --incl | --inc)
1179 ac_prev=includedir ;;
1180 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1181 | --includ=* | --inclu=* | --incl=* | --inc=*)
1182 includedir=$ac_optarg ;;
1183
1184 -infodir | --infodir | --infodi | --infod | --info | --inf)
1185 ac_prev=infodir ;;
1186 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1187 infodir=$ac_optarg ;;
1188
1189 -libdir | --libdir | --libdi | --libd)
1190 ac_prev=libdir ;;
1191 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1192 libdir=$ac_optarg ;;
1193
1194 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1195 | --libexe | --libex | --libe)
1196 ac_prev=libexecdir ;;
1197 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1198 | --libexe=* | --libex=* | --libe=*)
1199 libexecdir=$ac_optarg ;;
1200
1201 -localedir | --localedir | --localedi | --localed | --locale)
1202 ac_prev=localedir ;;
1203 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1204 localedir=$ac_optarg ;;
1205
1206 -localstatedir | --localstatedir | --localstatedi | --localstated \
1207 | --localstate | --localstat | --localsta | --localst | --locals)
1208 ac_prev=localstatedir ;;
1209 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1210 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1211 localstatedir=$ac_optarg ;;
1212
1213 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1214 ac_prev=mandir ;;
1215 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1216 mandir=$ac_optarg ;;
1217
1218 -nfp | --nfp | --nf)
1219 # Obsolete; use --without-fp.
1220 with_fp=no ;;
1221
1222 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1223 | --no-cr | --no-c | -n)
1224 no_create=yes ;;
1225
1226 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1227 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1228 no_recursion=yes ;;
1229
1230 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1231 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1232 | --oldin | --oldi | --old | --ol | --o)
1233 ac_prev=oldincludedir ;;
1234 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1235 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1236 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1237 oldincludedir=$ac_optarg ;;
1238
1239 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1240 ac_prev=prefix ;;
1241 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1242 prefix=$ac_optarg ;;
1243
1244 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1245 | --program-pre | --program-pr | --program-p)
1246 ac_prev=program_prefix ;;
1247 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1248 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1249 program_prefix=$ac_optarg ;;
1250
1251 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1252 | --program-suf | --program-su | --program-s)
1253 ac_prev=program_suffix ;;
1254 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1255 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1256 program_suffix=$ac_optarg ;;
1257
1258 -program-transform-name | --program-transform-name \
1259 | --program-transform-nam | --program-transform-na \
1260 | --program-transform-n | --program-transform- \
1261 | --program-transform | --program-transfor \
1262 | --program-transfo | --program-transf \
1263 | --program-trans | --program-tran \
1264 | --progr-tra | --program-tr | --program-t)
1265 ac_prev=program_transform_name ;;
1266 -program-transform-name=* | --program-transform-name=* \
1267 | --program-transform-nam=* | --program-transform-na=* \
1268 | --program-transform-n=* | --program-transform-=* \
1269 | --program-transform=* | --program-transfor=* \
1270 | --program-transfo=* | --program-transf=* \
1271 | --program-trans=* | --program-tran=* \
1272 | --progr-tra=* | --program-tr=* | --program-t=*)
1273 program_transform_name=$ac_optarg ;;
1274
1275 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1276 ac_prev=pdfdir ;;
1277 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1278 pdfdir=$ac_optarg ;;
1279
1280 -psdir | --psdir | --psdi | --psd | --ps)
1281 ac_prev=psdir ;;
1282 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1283 psdir=$ac_optarg ;;
1284
1285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1286 | -silent | --silent | --silen | --sile | --sil)
1287 silent=yes ;;
1288
1289 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1290 ac_prev=sbindir ;;
1291 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1292 | --sbi=* | --sb=*)
1293 sbindir=$ac_optarg ;;
1294
1295 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1296 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1297 | --sharedst | --shareds | --shared | --share | --shar \
1298 | --sha | --sh)
1299 ac_prev=sharedstatedir ;;
1300 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1301 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1302 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1303 | --sha=* | --sh=*)
1304 sharedstatedir=$ac_optarg ;;
1305
1306 -site | --site | --sit)
1307 ac_prev=site ;;
1308 -site=* | --site=* | --sit=*)
1309 site=$ac_optarg ;;
1310
1311 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1312 ac_prev=srcdir ;;
1313 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1314 srcdir=$ac_optarg ;;
1315
1316 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1317 | --syscon | --sysco | --sysc | --sys | --sy)
1318 ac_prev=sysconfdir ;;
1319 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1320 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1321 sysconfdir=$ac_optarg ;;
1322
1323 -target | --target | --targe | --targ | --tar | --ta | --t)
1324 ac_prev=target_alias ;;
1325 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1326 target_alias=$ac_optarg ;;
1327
1328 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1329 verbose=yes ;;
1330
1331 -version | --version | --versio | --versi | --vers | -V)
1332 ac_init_version=: ;;
1333
1334 -with-* | --with-*)
1335 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338 as_fn_error $? "invalid package name: $ac_useropt"
1339 ac_useropt_orig=$ac_useropt
1340 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1342 *"
1343 "with_$ac_useropt"
1344 "*) ;;
1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346 ac_unrecognized_sep=', ';;
1347 esac
1348 eval with_$ac_useropt=\$ac_optarg ;;
1349
1350 -without-* | --without-*)
1351 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354 as_fn_error $? "invalid package name: $ac_useropt"
1355 ac_useropt_orig=$ac_useropt
1356 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357 case $ac_user_opts in
1358 *"
1359 "with_$ac_useropt"
1360 "*) ;;
1361 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1362 ac_unrecognized_sep=', ';;
1363 esac
1364 eval with_$ac_useropt=no ;;
1365
1366 --x)
1367 # Obsolete; use --with-x.
1368 with_x=yes ;;
1369
1370 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1371 | --x-incl | --x-inc | --x-in | --x-i)
1372 ac_prev=x_includes ;;
1373 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1374 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1375 x_includes=$ac_optarg ;;
1376
1377 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1378 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1379 ac_prev=x_libraries ;;
1380 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1381 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1382 x_libraries=$ac_optarg ;;
1383
1384 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1385 Try \`$0 --help' for more information"
1386 ;;
1387
1388 *=*)
1389 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1390 # Reject names that are not valid shell variable names.
1391 case $ac_envvar in #(
1392 '' | [0-9]* | *[!_$as_cr_alnum]* )
1393 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1394 esac
1395 eval $ac_envvar=\$ac_optarg
1396 export $ac_envvar ;;
1397
1398 *)
1399 # FIXME: should be removed in autoconf 3.0.
1400 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1401 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1402 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1403 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1404 ;;
1405
1406 esac
1407 done
1408
1409 if test -n "$ac_prev"; then
1410 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1411 as_fn_error $? "missing argument to $ac_option"
1412 fi
1413
1414 if test -n "$ac_unrecognized_opts"; then
1415 case $enable_option_checking in
1416 no) ;;
1417 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1418 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1419 esac
1420 fi
1421
1422 # Check all directory arguments for consistency.
1423 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1424 datadir sysconfdir sharedstatedir localstatedir includedir \
1425 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1426 libdir localedir mandir
1427 do
1428 eval ac_val=\$$ac_var
1429 # Remove trailing slashes.
1430 case $ac_val in
1431 */ )
1432 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1433 eval $ac_var=\$ac_val;;
1434 esac
1435 # Be sure to have absolute directory names.
1436 case $ac_val in
1437 [\\/$]* | ?:[\\/]* ) continue;;
1438 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1439 esac
1440 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1441 done
1442
1443 # There might be people who depend on the old broken behavior: `$host'
1444 # used to hold the argument of --host etc.
1445 # FIXME: To remove some day.
1446 build=$build_alias
1447 host=$host_alias
1448 target=$target_alias
1449
1450 # FIXME: To remove some day.
1451 if test "x$host_alias" != x; then
1452 if test "x$build_alias" = x; then
1453 cross_compiling=maybe
1454 elif test "x$build_alias" != "x$host_alias"; then
1455 cross_compiling=yes
1456 fi
1457 fi
1458
1459 ac_tool_prefix=
1460 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1461
1462 test "$silent" = yes && exec 6>/dev/null
1463
1464
1465 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1466 ac_ls_di=`ls -di .` &&
1467 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1468 as_fn_error $? "working directory cannot be determined"
1469 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1470 as_fn_error $? "pwd does not report name of working directory"
1471
1472
1473 # Find the source files, if location was not specified.
1474 if test -z "$srcdir"; then
1475 ac_srcdir_defaulted=yes
1476 # Try the directory containing this script, then the parent directory.
1477 ac_confdir=`$as_dirname -- "$as_myself" ||
1478 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1479 X"$as_myself" : 'X\(//\)[^/]' \| \
1480 X"$as_myself" : 'X\(//\)$' \| \
1481 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1482 $as_echo X"$as_myself" |
1483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1484 s//\1/
1485 q
1486 }
1487 /^X\(\/\/\)[^/].*/{
1488 s//\1/
1489 q
1490 }
1491 /^X\(\/\/\)$/{
1492 s//\1/
1493 q
1494 }
1495 /^X\(\/\).*/{
1496 s//\1/
1497 q
1498 }
1499 s/.*/./; q'`
1500 srcdir=$ac_confdir
1501 if test ! -r "$srcdir/$ac_unique_file"; then
1502 srcdir=..
1503 fi
1504 else
1505 ac_srcdir_defaulted=no
1506 fi
1507 if test ! -r "$srcdir/$ac_unique_file"; then
1508 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1509 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1510 fi
1511 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1512 ac_abs_confdir=`(
1513 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1514 pwd)`
1515 # When building in place, set srcdir=.
1516 if test "$ac_abs_confdir" = "$ac_pwd"; then
1517 srcdir=.
1518 fi
1519 # Remove unnecessary trailing slashes from srcdir.
1520 # Double slashes in file names in object file debugging info
1521 # mess up M-x gdb in Emacs.
1522 case $srcdir in
1523 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1524 esac
1525 for ac_var in $ac_precious_vars; do
1526 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1527 eval ac_env_${ac_var}_value=\$${ac_var}
1528 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1529 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1530 done
1531
1532 #
1533 # Report the --help message.
1534 #
1535 if test "$ac_init_help" = "long"; then
1536 # Omit some internal or obsolete options to make the list less imposing.
1537 # This message is too long to be a string in the A/UX 3.1 sh.
1538 cat <<_ACEOF
1539 \`configure' configures this package to adapt to many kinds of systems.
1540
1541 Usage: $0 [OPTION]... [VAR=VALUE]...
1542
1543 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1544 VAR=VALUE. See below for descriptions of some of the useful variables.
1545
1546 Defaults for the options are specified in brackets.
1547
1548 Configuration:
1549 -h, --help display this help and exit
1550 --help=short display options specific to this package
1551 --help=recursive display the short help of all the included packages
1552 -V, --version display version information and exit
1553 -q, --quiet, --silent do not print \`checking ...' messages
1554 --cache-file=FILE cache test results in FILE [disabled]
1555 -C, --config-cache alias for \`--cache-file=config.cache'
1556 -n, --no-create do not create output files
1557 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1558
1559 Installation directories:
1560 --prefix=PREFIX install architecture-independent files in PREFIX
1561 [$ac_default_prefix]
1562 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1563 [PREFIX]
1564
1565 By default, \`make install' will install all the files in
1566 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1567 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1568 for instance \`--prefix=\$HOME'.
1569
1570 For better control, use the options below.
1571
1572 Fine tuning of the installation directories:
1573 --bindir=DIR user executables [EPREFIX/bin]
1574 --sbindir=DIR system admin executables [EPREFIX/sbin]
1575 --libexecdir=DIR program executables [EPREFIX/libexec]
1576 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1577 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1578 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1579 --libdir=DIR object code libraries [EPREFIX/lib]
1580 --includedir=DIR C header files [PREFIX/include]
1581 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1582 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1583 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1584 --infodir=DIR info documentation [DATAROOTDIR/info]
1585 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1586 --mandir=DIR man documentation [DATAROOTDIR/man]
1587 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1588 --htmldir=DIR html documentation [DOCDIR]
1589 --dvidir=DIR dvi documentation [DOCDIR]
1590 --pdfdir=DIR pdf documentation [DOCDIR]
1591 --psdir=DIR ps documentation [DOCDIR]
1592 _ACEOF
1593
1594 cat <<\_ACEOF
1595
1596 Program names:
1597 --program-prefix=PREFIX prepend PREFIX to installed program names
1598 --program-suffix=SUFFIX append SUFFIX to installed program names
1599 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1600
1601 X features:
1602 --x-includes=DIR X include files are in DIR
1603 --x-libraries=DIR X library files are in DIR
1604
1605 System types:
1606 --build=BUILD configure for building on BUILD [guessed]
1607 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1608 --target=TARGET configure for building compilers for TARGET [HOST]
1609 _ACEOF
1610 fi
1611
1612 if test -n "$ac_init_help"; then
1613
1614 cat <<\_ACEOF
1615
1616 Optional Features:
1617 --disable-option-checking ignore unrecognized --enable/--with options
1618 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1619 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1620 --enable-maintainer-mode
1621 enable make rules and dependencies not useful (and
1622 sometimes confusing) to the casual installer
1623 --enable-plugins Enable support for plugins
1624 --disable-largefile omit support for large files
1625 --enable-shared[=PKGS] build shared libraries [default=yes]
1626 --enable-static[=PKGS] build static libraries [default=yes]
1627 --enable-fast-install[=PKGS]
1628 optimize for fast installation [default=yes]
1629 --disable-libtool-lock avoid locking (might break parallel builds)
1630 --enable-targets=TARGETS
1631 alternative target configurations
1632 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1633 --enable-tui enable full-screen terminal user interface (TUI)
1634 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1635 --enable-profiling enable profiling of GDB
1636 --enable-codesign=CERT sign gdb with 'codesign -s CERT'
1637 --disable-rpath do not hardcode runtime library paths
1638 --enable-source-highlight
1639 enable source-highlight for source listings
1640 --enable-threading include support for parallel processing of data
1641 (yes/no)
1642 --enable-werror treat compile warnings as errors
1643 --enable-build-warnings enable build-time compiler warnings if gcc is used
1644 --enable-gdb-build-warnings
1645 enable GDB specific build-time compiler warnings if
1646 gcc is used
1647 --enable-ubsan enable undefined behavior sanitizer (auto/yes/no)
1648 --enable-sim link gdb with simulator
1649 --enable-libbacktrace use libbacktrace to write a backtrace after a fatal
1650 signal.
1651 --enable-libctf Handle .ctf type-info sections [default=yes]
1652 --enable-unit-tests Enable the inclusion of unit tests when compiling
1653 GDB
1654
1655 Optional Packages:
1656 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1657 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1658 --with-pic try to use only PIC/non-PIC objects [default=use
1659 both]
1660 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1661 --with-separate-debug-dir=PATH
1662 look for global separate debug info in this path
1663 [LIBDIR/debug]
1664 --with-additional-debug-dirs=PATHs
1665 colon-separated list of additional directories to
1666 search for separate debug info
1667 --with-gdb-datadir=PATH look for global separate data files in this path
1668 [DATADIR/gdb]
1669 --with-relocated-sources=PATH
1670 automatically relocate this path for source files
1671 --with-auto-load-dir=PATH
1672 directories from which to load auto-loaded scripts
1673 [$debugdir:$datadir/auto-load]
1674 --with-auto-load-safe-path=PATH
1675 directories safe to hold auto-loaded files
1676 [--with-auto-load-dir]
1677 --without-auto-load-safe-path
1678 do not restrict auto-loaded files locations
1679 --with-amd-dbgapi support for the amd-dbgapi target (yes / no / auto)
1680 --with-debuginfod Enable debuginfo lookups with debuginfod
1681 (auto/yes/no)
1682 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1683 --with-curses use the curses library instead of the termcap
1684 library
1685 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1686 --with-bugurl=URL Direct users to URL to report a bug
1687 --with-system-zlib use installed libz
1688 --with-zstd support zstd compressed debug sections
1689 (default=auto)
1690 --with-gnu-ld assume the C compiler uses GNU ld default=no
1691 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1692 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1693 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1694 --with-iconv-bin=PATH specify where to find the iconv program
1695 --with-system-readline use installed readline library
1696 --with-jit-reader-dir=PATH
1697 directory to load the JIT readers from
1698 --with-expat include expat support (auto/yes/no)
1699 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1700 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1701 --with-libexpat-type=TYPE type of library to search for (auto/static/shared)
1702 --with-python[=PYTHON] include python support
1703 (auto/yes/no/<python-program>)
1704 --with-python-libdir[=DIR]
1705 search for python's libraries in DIR
1706 --with-guile[=GUILE] include guile support
1707 (auto/yes/no/<guile-version>/<pkg-config-program>)
1708 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1709 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1710 --without-libipt-prefix don't search for libipt in includedir and libdir
1711 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1712 --with-xxhash use libxxhash for hashing (faster) (auto/yes/no)
1713 --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib
1714 --without-libxxhash-prefix don't search for libxxhash in includedir and libdir
1715 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1716 --with-sysroot[=DIR] search for usr/lib et al within DIR
1717 --with-system-gdbinit=PATH
1718 automatically load a system-wide gdbinit file
1719 --with-system-gdbinit-dir=PATH
1720 automatically load system-wide gdbinit files from
1721 this directory
1722 --with-lzma support lzma compression (auto/yes/no)
1723 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1724 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1725 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1726 --with-tcl directory containing tcl configuration (tclConfig.sh)
1727 --with-tk directory containing tk configuration (tkConfig.sh)
1728 --with-x use the X Window System
1729 --with-babeltrace include babeltrace support (auto/yes/no)
1730 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1731 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1732 --with-libbabeltrace-type=TYPE type of library to search for (auto/static/shared)
1733
1734 Some influential environment variables:
1735 CC C compiler command
1736 CFLAGS C compiler flags
1737 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1738 nonstandard directory <lib dir>
1739 LIBS libraries to pass to the linker, e.g. -l<library>
1740 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1741 you have headers in a nonstandard directory <include dir>
1742 CXX C++ compiler command
1743 CXXFLAGS C++ compiler flags
1744 CPP C preprocessor
1745 CXXCPP C++ preprocessor
1746 PKG_CONFIG path to pkg-config utility
1747 PKG_CONFIG_PATH
1748 directories to add to pkg-config's search path
1749 PKG_CONFIG_LIBDIR
1750 path overriding pkg-config's built-in search path
1751 MAKEINFO Parent configure detects if it is of sufficient version.
1752 MAKEINFOFLAGS
1753 Parameters for MAKEINFO.
1754 AMD_DBGAPI_CFLAGS
1755 C compiler flags for AMD_DBGAPI, overriding pkg-config
1756 AMD_DBGAPI_LIBS
1757 linker flags for AMD_DBGAPI, overriding pkg-config
1758 DEBUGINFOD_CFLAGS
1759 C compiler flags for DEBUGINFOD, overriding pkg-config
1760 DEBUGINFOD_LIBS
1761 linker flags for DEBUGINFOD, overriding pkg-config
1762 YACC The `Yet Another Compiler Compiler' implementation to use.
1763 Defaults to the first program found out of: `bison -y', `byacc',
1764 `yacc'.
1765 YFLAGS The list of arguments that will be passed by default to $YACC.
1766 This script will default YFLAGS to the empty string to avoid a
1767 default value of `-d' given by some make applications.
1768 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1769 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1770 GMPLIBS How to link GMP
1771 GMPINC How to find GMP include files
1772 XMKMF Path to xmkmf, Makefile generator for X Window System
1773
1774 Use these variables to override the choices made by `configure' or to help
1775 it to find libraries and programs with nonstandard names/locations.
1776
1777 Report bugs to the package provider.
1778 _ACEOF
1779 ac_status=$?
1780 fi
1781
1782 if test "$ac_init_help" = "recursive"; then
1783 # If there are subdirs, report their specific --help.
1784 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1785 test -d "$ac_dir" ||
1786 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1787 continue
1788 ac_builddir=.
1789
1790 case "$ac_dir" in
1791 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792 *)
1793 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1794 # A ".." for each directory in $ac_dir_suffix.
1795 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1796 case $ac_top_builddir_sub in
1797 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1798 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1799 esac ;;
1800 esac
1801 ac_abs_top_builddir=$ac_pwd
1802 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1803 # for backward compatibility:
1804 ac_top_builddir=$ac_top_build_prefix
1805
1806 case $srcdir in
1807 .) # We are building in place.
1808 ac_srcdir=.
1809 ac_top_srcdir=$ac_top_builddir_sub
1810 ac_abs_top_srcdir=$ac_pwd ;;
1811 [\\/]* | ?:[\\/]* ) # Absolute name.
1812 ac_srcdir=$srcdir$ac_dir_suffix;
1813 ac_top_srcdir=$srcdir
1814 ac_abs_top_srcdir=$srcdir ;;
1815 *) # Relative name.
1816 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1817 ac_top_srcdir=$ac_top_build_prefix$srcdir
1818 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1819 esac
1820 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1821
1822 cd "$ac_dir" || { ac_status=$?; continue; }
1823 # Check for guested configure.
1824 if test -f "$ac_srcdir/configure.gnu"; then
1825 echo &&
1826 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1827 elif test -f "$ac_srcdir/configure"; then
1828 echo &&
1829 $SHELL "$ac_srcdir/configure" --help=recursive
1830 else
1831 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1832 fi || ac_status=$?
1833 cd "$ac_pwd" || { ac_status=$?; break; }
1834 done
1835 fi
1836
1837 test -n "$ac_init_help" && exit $ac_status
1838 if $ac_init_version; then
1839 cat <<\_ACEOF
1840 configure
1841 generated by GNU Autoconf 2.69
1842
1843 Copyright (C) 2012 Free Software Foundation, Inc.
1844 This configure script is free software; the Free Software Foundation
1845 gives unlimited permission to copy, distribute and modify it.
1846 _ACEOF
1847 exit
1848 fi
1849
1850 ## ------------------------ ##
1851 ## Autoconf initialization. ##
1852 ## ------------------------ ##
1853
1854 # ac_fn_c_try_compile LINENO
1855 # --------------------------
1856 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_c_try_compile ()
1858 {
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 rm -f conftest.$ac_objext
1861 if { { ac_try="$ac_compile"
1862 case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_compile") 2>conftest.err
1869 ac_status=$?
1870 if test -s conftest.err; then
1871 grep -v '^ *+' conftest.err >conftest.er1
1872 cat conftest.er1 >&5
1873 mv -f conftest.er1 conftest.err
1874 fi
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } && {
1877 test -z "$ac_c_werror_flag" ||
1878 test ! -s conftest.err
1879 } && test -s conftest.$ac_objext; then :
1880 ac_retval=0
1881 else
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1884
1885 ac_retval=1
1886 fi
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1889
1890 } # ac_fn_c_try_compile
1891
1892 # ac_fn_cxx_try_compile LINENO
1893 # ----------------------------
1894 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_cxx_try_compile ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext
1899 if { { ac_try="$ac_compile"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_compile") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1912 fi
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_cxx_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest.$ac_objext; then :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1922
1923 ac_retval=1
1924 fi
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1927
1928 } # ac_fn_cxx_try_compile
1929
1930 # ac_fn_c_try_cpp LINENO
1931 # ----------------------
1932 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1933 ac_fn_c_try_cpp ()
1934 {
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if { { ac_try="$ac_cpp conftest.$ac_ext"
1937 case "(($ac_try" in
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1944 ac_status=$?
1945 if test -s conftest.err; then
1946 grep -v '^ *+' conftest.err >conftest.er1
1947 cat conftest.er1 >&5
1948 mv -f conftest.er1 conftest.err
1949 fi
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; } > conftest.i && {
1952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1953 test ! -s conftest.err
1954 }; then :
1955 ac_retval=0
1956 else
1957 $as_echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1959
1960 ac_retval=1
1961 fi
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status $ac_retval
1964
1965 } # ac_fn_c_try_cpp
1966
1967 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1968 # -------------------------------------------------------
1969 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1970 # the include files in INCLUDES and setting the cache variable VAR
1971 # accordingly.
1972 ac_fn_c_check_header_mongrel ()
1973 {
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if eval \${$3+:} false; then :
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \${$3+:} false; then :
1979 $as_echo_n "(cached) " >&6
1980 fi
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 else
1985 # Is the header compilable?
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1987 $as_echo_n "checking $2 usability... " >&6; }
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1990 $4
1991 #include <$2>
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 ac_header_compiler=yes
1995 else
1996 ac_header_compiler=no
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2000 $as_echo "$ac_header_compiler" >&6; }
2001
2002 # Is the header present?
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2004 $as_echo_n "checking $2 presence... " >&6; }
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2007 #include <$2>
2008 _ACEOF
2009 if ac_fn_c_try_cpp "$LINENO"; then :
2010 ac_header_preproc=yes
2011 else
2012 ac_header_preproc=no
2013 fi
2014 rm -f conftest.err conftest.i conftest.$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2016 $as_echo "$ac_header_preproc" >&6; }
2017
2018 # So? What about this header?
2019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2020 yes:no: )
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2022 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 ;;
2026 no:yes:* )
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2028 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2030 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2032 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2034 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2037 ;;
2038 esac
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042 $as_echo_n "(cached) " >&6
2043 else
2044 eval "$3=\$ac_header_compiler"
2045 fi
2046 eval ac_res=\$$3
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 fi
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051
2052 } # ac_fn_c_check_header_mongrel
2053
2054 # ac_fn_c_try_run LINENO
2055 # ----------------------
2056 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2057 # that executables *can* be run.
2058 ac_fn_c_try_run ()
2059 {
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if { { ac_try="$ac_link"
2062 case "(($ac_try" in
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2065 esac
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_link") 2>&5
2069 ac_status=$?
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2072 { { case "(($ac_try" in
2073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074 *) ac_try_echo=$ac_try;;
2075 esac
2076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077 $as_echo "$ac_try_echo"; } >&5
2078 (eval "$ac_try") 2>&5
2079 ac_status=$?
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; }; }; then :
2082 ac_retval=0
2083 else
2084 $as_echo "$as_me: program exited with status $ac_status" >&5
2085 $as_echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2087
2088 ac_retval=$ac_status
2089 fi
2090 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 as_fn_set_status $ac_retval
2093
2094 } # ac_fn_c_try_run
2095
2096 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2097 # -------------------------------------------------------
2098 # Tests whether HEADER exists and can be compiled using the include files in
2099 # INCLUDES, setting the cache variable VAR accordingly.
2100 ac_fn_c_check_header_compile ()
2101 {
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if eval \${$3+:} false; then :
2106 $as_echo_n "(cached) " >&6
2107 else
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2110 $4
2111 #include <$2>
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 eval "$3=yes"
2115 else
2116 eval "$3=no"
2117 fi
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 fi
2120 eval ac_res=\$$3
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124
2125 } # ac_fn_c_check_header_compile
2126
2127 # ac_fn_c_try_link LINENO
2128 # -----------------------
2129 # Try to link conftest.$ac_ext, and return whether this succeeded.
2130 ac_fn_c_try_link ()
2131 {
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 rm -f conftest.$ac_objext conftest$ac_exeext
2134 if { { ac_try="$ac_link"
2135 case "(($ac_try" in
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2138 esac
2139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140 $as_echo "$ac_try_echo"; } >&5
2141 (eval "$ac_link") 2>conftest.err
2142 ac_status=$?
2143 if test -s conftest.err; then
2144 grep -v '^ *+' conftest.err >conftest.er1
2145 cat conftest.er1 >&5
2146 mv -f conftest.er1 conftest.err
2147 fi
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; } && {
2150 test -z "$ac_c_werror_flag" ||
2151 test ! -s conftest.err
2152 } && test -s conftest$ac_exeext && {
2153 test "$cross_compiling" = yes ||
2154 test -x conftest$ac_exeext
2155 }; then :
2156 ac_retval=0
2157 else
2158 $as_echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2160
2161 ac_retval=1
2162 fi
2163 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2164 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2165 # interfere with the next link command; also delete a directory that is
2166 # left behind by Apple's compiler. We do this before executing the actions.
2167 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 as_fn_set_status $ac_retval
2170
2171 } # ac_fn_c_try_link
2172
2173 # ac_fn_c_check_func LINENO FUNC VAR
2174 # ----------------------------------
2175 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2176 ac_fn_c_check_func ()
2177 {
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180 $as_echo_n "checking for $2... " >&6; }
2181 if eval \${$3+:} false; then :
2182 $as_echo_n "(cached) " >&6
2183 else
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2188 #define $2 innocuous_$2
2189
2190 /* System header to define __stub macros and hopefully few prototypes,
2191 which can conflict with char $2 (); below.
2192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2193 <limits.h> exists even on freestanding compilers. */
2194
2195 #ifdef __STDC__
2196 # include <limits.h>
2197 #else
2198 # include <assert.h>
2199 #endif
2200
2201 #undef $2
2202
2203 /* Override any GCC internal prototype to avoid an error.
2204 Use char because int might match the return type of a GCC
2205 builtin and then its argument prototype would still apply. */
2206 #ifdef __cplusplus
2207 extern "C"
2208 #endif
2209 char $2 ();
2210 /* The GNU C library defines this for functions which it implements
2211 to always fail with ENOSYS. Some functions are actually named
2212 something starting with __ and the normal name is an alias. */
2213 #if defined __stub_$2 || defined __stub___$2
2214 choke me
2215 #endif
2216
2217 int
2218 main ()
2219 {
2220 return $2 ();
2221 ;
2222 return 0;
2223 }
2224 _ACEOF
2225 if ac_fn_c_try_link "$LINENO"; then :
2226 eval "$3=yes"
2227 else
2228 eval "$3=no"
2229 fi
2230 rm -f core conftest.err conftest.$ac_objext \
2231 conftest$ac_exeext conftest.$ac_ext
2232 fi
2233 eval ac_res=\$$3
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237
2238 } # ac_fn_c_check_func
2239
2240 # ac_fn_cxx_try_cpp LINENO
2241 # ------------------------
2242 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2243 ac_fn_cxx_try_cpp ()
2244 {
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 if { { ac_try="$ac_cpp conftest.$ac_ext"
2247 case "(($ac_try" in
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2250 esac
2251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2252 $as_echo "$ac_try_echo"; } >&5
2253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2254 ac_status=$?
2255 if test -s conftest.err; then
2256 grep -v '^ *+' conftest.err >conftest.er1
2257 cat conftest.er1 >&5
2258 mv -f conftest.er1 conftest.err
2259 fi
2260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2261 test $ac_status = 0; } > conftest.i && {
2262 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2263 test ! -s conftest.err
2264 }; then :
2265 ac_retval=0
2266 else
2267 $as_echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2269
2270 ac_retval=1
2271 fi
2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273 as_fn_set_status $ac_retval
2274
2275 } # ac_fn_cxx_try_cpp
2276
2277 # ac_fn_cxx_try_link LINENO
2278 # -------------------------
2279 # Try to link conftest.$ac_ext, and return whether this succeeded.
2280 ac_fn_cxx_try_link ()
2281 {
2282 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283 rm -f conftest.$ac_objext conftest$ac_exeext
2284 if { { ac_try="$ac_link"
2285 case "(($ac_try" in
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2288 esac
2289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290 $as_echo "$ac_try_echo"; } >&5
2291 (eval "$ac_link") 2>conftest.err
2292 ac_status=$?
2293 if test -s conftest.err; then
2294 grep -v '^ *+' conftest.err >conftest.er1
2295 cat conftest.er1 >&5
2296 mv -f conftest.er1 conftest.err
2297 fi
2298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2299 test $ac_status = 0; } && {
2300 test -z "$ac_cxx_werror_flag" ||
2301 test ! -s conftest.err
2302 } && test -s conftest$ac_exeext && {
2303 test "$cross_compiling" = yes ||
2304 test -x conftest$ac_exeext
2305 }; then :
2306 ac_retval=0
2307 else
2308 $as_echo "$as_me: failed program was:" >&5
2309 sed 's/^/| /' conftest.$ac_ext >&5
2310
2311 ac_retval=1
2312 fi
2313 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2314 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2315 # interfere with the next link command; also delete a directory that is
2316 # left behind by Apple's compiler. We do this before executing the actions.
2317 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2318 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319 as_fn_set_status $ac_retval
2320
2321 } # ac_fn_cxx_try_link
2322
2323 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2324 # --------------------------------------------
2325 # Tries to find the compile-time value of EXPR in a program that includes
2326 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2327 # computed
2328 ac_fn_c_compute_int ()
2329 {
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 if test "$cross_compiling" = yes; then
2332 # Depending upon the size, compute the lo and hi bounds.
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2335 $4
2336 int
2337 main ()
2338 {
2339 static int test_array [1 - 2 * !(($2) >= 0)];
2340 test_array [0] = 0;
2341 return test_array [0];
2342
2343 ;
2344 return 0;
2345 }
2346 _ACEOF
2347 if ac_fn_c_try_compile "$LINENO"; then :
2348 ac_lo=0 ac_mid=0
2349 while :; do
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2352 $4
2353 int
2354 main ()
2355 {
2356 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2357 test_array [0] = 0;
2358 return test_array [0];
2359
2360 ;
2361 return 0;
2362 }
2363 _ACEOF
2364 if ac_fn_c_try_compile "$LINENO"; then :
2365 ac_hi=$ac_mid; break
2366 else
2367 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2368 if test $ac_lo -le $ac_mid; then
2369 ac_lo= ac_hi=
2370 break
2371 fi
2372 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2373 fi
2374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375 done
2376 else
2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2379 $4
2380 int
2381 main ()
2382 {
2383 static int test_array [1 - 2 * !(($2) < 0)];
2384 test_array [0] = 0;
2385 return test_array [0];
2386
2387 ;
2388 return 0;
2389 }
2390 _ACEOF
2391 if ac_fn_c_try_compile "$LINENO"; then :
2392 ac_hi=-1 ac_mid=-1
2393 while :; do
2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h. */
2396 $4
2397 int
2398 main ()
2399 {
2400 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2401 test_array [0] = 0;
2402 return test_array [0];
2403
2404 ;
2405 return 0;
2406 }
2407 _ACEOF
2408 if ac_fn_c_try_compile "$LINENO"; then :
2409 ac_lo=$ac_mid; break
2410 else
2411 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2412 if test $ac_mid -le $ac_hi; then
2413 ac_lo= ac_hi=
2414 break
2415 fi
2416 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2417 fi
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 done
2420 else
2421 ac_lo= ac_hi=
2422 fi
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 fi
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 # Binary search between lo and hi bounds.
2427 while test "x$ac_lo" != "x$ac_hi"; do
2428 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2431 $4
2432 int
2433 main ()
2434 {
2435 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2436 test_array [0] = 0;
2437 return test_array [0];
2438
2439 ;
2440 return 0;
2441 }
2442 _ACEOF
2443 if ac_fn_c_try_compile "$LINENO"; then :
2444 ac_hi=$ac_mid
2445 else
2446 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2447 fi
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 done
2450 case $ac_lo in #((
2451 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2452 '') ac_retval=1 ;;
2453 esac
2454 else
2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456 /* end confdefs.h. */
2457 $4
2458 static long int longval () { return $2; }
2459 static unsigned long int ulongval () { return $2; }
2460 #include <stdio.h>
2461 #include <stdlib.h>
2462 int
2463 main ()
2464 {
2465
2466 FILE *f = fopen ("conftest.val", "w");
2467 if (! f)
2468 return 1;
2469 if (($2) < 0)
2470 {
2471 long int i = longval ();
2472 if (i != ($2))
2473 return 1;
2474 fprintf (f, "%ld", i);
2475 }
2476 else
2477 {
2478 unsigned long int i = ulongval ();
2479 if (i != ($2))
2480 return 1;
2481 fprintf (f, "%lu", i);
2482 }
2483 /* Do not output a trailing newline, as this causes \r\n confusion
2484 on some platforms. */
2485 return ferror (f) || fclose (f) != 0;
2486
2487 ;
2488 return 0;
2489 }
2490 _ACEOF
2491 if ac_fn_c_try_run "$LINENO"; then :
2492 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2493 else
2494 ac_retval=1
2495 fi
2496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2497 conftest.$ac_objext conftest.beam conftest.$ac_ext
2498 rm -f conftest.val
2499
2500 fi
2501 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2502 as_fn_set_status $ac_retval
2503
2504 } # ac_fn_c_compute_int
2505
2506 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2507 # -------------------------------------------
2508 # Tests whether TYPE exists after having included INCLUDES, setting cache
2509 # variable VAR accordingly.
2510 ac_fn_c_check_type ()
2511 {
2512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2514 $as_echo_n "checking for $2... " >&6; }
2515 if eval \${$3+:} false; then :
2516 $as_echo_n "(cached) " >&6
2517 else
2518 eval "$3=no"
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h. */
2521 $4
2522 int
2523 main ()
2524 {
2525 if (sizeof ($2))
2526 return 0;
2527 ;
2528 return 0;
2529 }
2530 _ACEOF
2531 if ac_fn_c_try_compile "$LINENO"; then :
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h. */
2534 $4
2535 int
2536 main ()
2537 {
2538 if (sizeof (($2)))
2539 return 0;
2540 ;
2541 return 0;
2542 }
2543 _ACEOF
2544 if ac_fn_c_try_compile "$LINENO"; then :
2545
2546 else
2547 eval "$3=yes"
2548 fi
2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550 fi
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552 fi
2553 eval ac_res=\$$3
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555 $as_echo "$ac_res" >&6; }
2556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2557
2558 } # ac_fn_c_check_type
2559
2560 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2561 # ---------------------------------------------
2562 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2563 # accordingly.
2564 ac_fn_c_check_decl ()
2565 {
2566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567 as_decl_name=`echo $2|sed 's/ *(.*//'`
2568 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2570 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2571 if eval \${$3+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575 /* end confdefs.h. */
2576 $4
2577 int
2578 main ()
2579 {
2580 #ifndef $as_decl_name
2581 #ifdef __cplusplus
2582 (void) $as_decl_use;
2583 #else
2584 (void) $as_decl_name;
2585 #endif
2586 #endif
2587
2588 ;
2589 return 0;
2590 }
2591 _ACEOF
2592 if ac_fn_c_try_compile "$LINENO"; then :
2593 eval "$3=yes"
2594 else
2595 eval "$3=no"
2596 fi
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 fi
2599 eval ac_res=\$$3
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2601 $as_echo "$ac_res" >&6; }
2602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2603
2604 } # ac_fn_c_check_decl
2605
2606 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2607 # ----------------------------------------------------
2608 # Tries to find if the field MEMBER exists in type AGGR, after including
2609 # INCLUDES, setting cache variable VAR accordingly.
2610 ac_fn_c_check_member ()
2611 {
2612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2614 $as_echo_n "checking for $2.$3... " >&6; }
2615 if eval \${$4+:} false; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619 /* end confdefs.h. */
2620 $5
2621 int
2622 main ()
2623 {
2624 static $2 ac_aggr;
2625 if (ac_aggr.$3)
2626 return 0;
2627 ;
2628 return 0;
2629 }
2630 _ACEOF
2631 if ac_fn_c_try_compile "$LINENO"; then :
2632 eval "$4=yes"
2633 else
2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635 /* end confdefs.h. */
2636 $5
2637 int
2638 main ()
2639 {
2640 static $2 ac_aggr;
2641 if (sizeof ac_aggr.$3)
2642 return 0;
2643 ;
2644 return 0;
2645 }
2646 _ACEOF
2647 if ac_fn_c_try_compile "$LINENO"; then :
2648 eval "$4=yes"
2649 else
2650 eval "$4=no"
2651 fi
2652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653 fi
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 fi
2656 eval ac_res=\$$4
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2658 $as_echo "$ac_res" >&6; }
2659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2660
2661 } # ac_fn_c_check_member
2662
2663 # ac_fn_cxx_check_func LINENO FUNC VAR
2664 # ------------------------------------
2665 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2666 ac_fn_cxx_check_func ()
2667 {
2668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2670 $as_echo_n "checking for $2... " >&6; }
2671 if eval \${$3+:} false; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2676 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2678 #define $2 innocuous_$2
2679
2680 /* System header to define __stub macros and hopefully few prototypes,
2681 which can conflict with char $2 (); below.
2682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2683 <limits.h> exists even on freestanding compilers. */
2684
2685 #ifdef __STDC__
2686 # include <limits.h>
2687 #else
2688 # include <assert.h>
2689 #endif
2690
2691 #undef $2
2692
2693 /* Override any GCC internal prototype to avoid an error.
2694 Use char because int might match the return type of a GCC
2695 builtin and then its argument prototype would still apply. */
2696 #ifdef __cplusplus
2697 extern "C"
2698 #endif
2699 char $2 ();
2700 /* The GNU C library defines this for functions which it implements
2701 to always fail with ENOSYS. Some functions are actually named
2702 something starting with __ and the normal name is an alias. */
2703 #if defined __stub_$2 || defined __stub___$2
2704 choke me
2705 #endif
2706
2707 int
2708 main ()
2709 {
2710 return $2 ();
2711 ;
2712 return 0;
2713 }
2714 _ACEOF
2715 if ac_fn_cxx_try_link "$LINENO"; then :
2716 eval "$3=yes"
2717 else
2718 eval "$3=no"
2719 fi
2720 rm -f core conftest.err conftest.$ac_objext \
2721 conftest$ac_exeext conftest.$ac_ext
2722 fi
2723 eval ac_res=\$$3
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2725 $as_echo "$ac_res" >&6; }
2726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2727
2728 } # ac_fn_cxx_check_func
2729 cat >config.log <<_ACEOF
2730 This file contains any messages produced by compilers while
2731 running configure, to aid debugging if configure makes a mistake.
2732
2733 It was created by $as_me, which was
2734 generated by GNU Autoconf 2.69. Invocation command line was
2735
2736 $ $0 $@
2737
2738 _ACEOF
2739 exec 5>>config.log
2740 {
2741 cat <<_ASUNAME
2742 ## --------- ##
2743 ## Platform. ##
2744 ## --------- ##
2745
2746 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2747 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2748 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2749 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2750 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2751
2752 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2753 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2754
2755 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2756 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2757 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2758 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2759 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2760 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2761 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2762
2763 _ASUNAME
2764
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 $as_echo "PATH: $as_dir"
2771 done
2772 IFS=$as_save_IFS
2773
2774 } >&5
2775
2776 cat >&5 <<_ACEOF
2777
2778
2779 ## ----------- ##
2780 ## Core tests. ##
2781 ## ----------- ##
2782
2783 _ACEOF
2784
2785
2786 # Keep a trace of the command line.
2787 # Strip out --no-create and --no-recursion so they do not pile up.
2788 # Strip out --silent because we don't want to record it for future runs.
2789 # Also quote any args containing shell meta-characters.
2790 # Make two passes to allow for proper duplicate-argument suppression.
2791 ac_configure_args=
2792 ac_configure_args0=
2793 ac_configure_args1=
2794 ac_must_keep_next=false
2795 for ac_pass in 1 2
2796 do
2797 for ac_arg
2798 do
2799 case $ac_arg in
2800 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2802 | -silent | --silent | --silen | --sile | --sil)
2803 continue ;;
2804 *\'*)
2805 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2806 esac
2807 case $ac_pass in
2808 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2809 2)
2810 as_fn_append ac_configure_args1 " '$ac_arg'"
2811 if test $ac_must_keep_next = true; then
2812 ac_must_keep_next=false # Got value, back to normal.
2813 else
2814 case $ac_arg in
2815 *=* | --config-cache | -C | -disable-* | --disable-* \
2816 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2817 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2818 | -with-* | --with-* | -without-* | --without-* | --x)
2819 case "$ac_configure_args0 " in
2820 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2821 esac
2822 ;;
2823 -* ) ac_must_keep_next=true ;;
2824 esac
2825 fi
2826 as_fn_append ac_configure_args " '$ac_arg'"
2827 ;;
2828 esac
2829 done
2830 done
2831 { ac_configure_args0=; unset ac_configure_args0;}
2832 { ac_configure_args1=; unset ac_configure_args1;}
2833
2834 # When interrupted or exit'd, cleanup temporary files, and complete
2835 # config.log. We remove comments because anyway the quotes in there
2836 # would cause problems or look ugly.
2837 # WARNING: Use '\'' to represent an apostrophe within the trap.
2838 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2839 trap 'exit_status=$?
2840 # Save into config.log some information that might help in debugging.
2841 {
2842 echo
2843
2844 $as_echo "## ---------------- ##
2845 ## Cache variables. ##
2846 ## ---------------- ##"
2847 echo
2848 # The following way of writing the cache mishandles newlines in values,
2849 (
2850 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2851 eval ac_val=\$$ac_var
2852 case $ac_val in #(
2853 *${as_nl}*)
2854 case $ac_var in #(
2855 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2856 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2857 esac
2858 case $ac_var in #(
2859 _ | IFS | as_nl) ;; #(
2860 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2861 *) { eval $ac_var=; unset $ac_var;} ;;
2862 esac ;;
2863 esac
2864 done
2865 (set) 2>&1 |
2866 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2867 *${as_nl}ac_space=\ *)
2868 sed -n \
2869 "s/'\''/'\''\\\\'\'''\''/g;
2870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2871 ;; #(
2872 *)
2873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2874 ;;
2875 esac |
2876 sort
2877 )
2878 echo
2879
2880 $as_echo "## ----------------- ##
2881 ## Output variables. ##
2882 ## ----------------- ##"
2883 echo
2884 for ac_var in $ac_subst_vars
2885 do
2886 eval ac_val=\$$ac_var
2887 case $ac_val in
2888 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2889 esac
2890 $as_echo "$ac_var='\''$ac_val'\''"
2891 done | sort
2892 echo
2893
2894 if test -n "$ac_subst_files"; then
2895 $as_echo "## ------------------- ##
2896 ## File substitutions. ##
2897 ## ------------------- ##"
2898 echo
2899 for ac_var in $ac_subst_files
2900 do
2901 eval ac_val=\$$ac_var
2902 case $ac_val in
2903 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2904 esac
2905 $as_echo "$ac_var='\''$ac_val'\''"
2906 done | sort
2907 echo
2908 fi
2909
2910 if test -s confdefs.h; then
2911 $as_echo "## ----------- ##
2912 ## confdefs.h. ##
2913 ## ----------- ##"
2914 echo
2915 cat confdefs.h
2916 echo
2917 fi
2918 test "$ac_signal" != 0 &&
2919 $as_echo "$as_me: caught signal $ac_signal"
2920 $as_echo "$as_me: exit $exit_status"
2921 } >&5
2922 rm -f core *.core core.conftest.* &&
2923 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2924 exit $exit_status
2925 ' 0
2926 for ac_signal in 1 2 13 15; do
2927 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2928 done
2929 ac_signal=0
2930
2931 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2932 rm -f -r conftest* confdefs.h
2933
2934 $as_echo "/* confdefs.h */" > confdefs.h
2935
2936 # Predefined preprocessor variables.
2937
2938 cat >>confdefs.h <<_ACEOF
2939 #define PACKAGE_NAME "$PACKAGE_NAME"
2940 _ACEOF
2941
2942 cat >>confdefs.h <<_ACEOF
2943 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2944 _ACEOF
2945
2946 cat >>confdefs.h <<_ACEOF
2947 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2948 _ACEOF
2949
2950 cat >>confdefs.h <<_ACEOF
2951 #define PACKAGE_STRING "$PACKAGE_STRING"
2952 _ACEOF
2953
2954 cat >>confdefs.h <<_ACEOF
2955 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2956 _ACEOF
2957
2958 cat >>confdefs.h <<_ACEOF
2959 #define PACKAGE_URL "$PACKAGE_URL"
2960 _ACEOF
2961
2962
2963 # Let the site file select an alternate cache file if it wants to.
2964 # Prefer an explicitly selected file to automatically selected ones.
2965 ac_site_file1=NONE
2966 ac_site_file2=NONE
2967 if test -n "$CONFIG_SITE"; then
2968 # We do not want a PATH search for config.site.
2969 case $CONFIG_SITE in #((
2970 -*) ac_site_file1=./$CONFIG_SITE;;
2971 */*) ac_site_file1=$CONFIG_SITE;;
2972 *) ac_site_file1=./$CONFIG_SITE;;
2973 esac
2974 elif test "x$prefix" != xNONE; then
2975 ac_site_file1=$prefix/share/config.site
2976 ac_site_file2=$prefix/etc/config.site
2977 else
2978 ac_site_file1=$ac_default_prefix/share/config.site
2979 ac_site_file2=$ac_default_prefix/etc/config.site
2980 fi
2981 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2982 do
2983 test "x$ac_site_file" = xNONE && continue
2984 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2986 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2987 sed 's/^/| /' "$ac_site_file" >&5
2988 . "$ac_site_file" \
2989 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 as_fn_error $? "failed to load site script $ac_site_file
2992 See \`config.log' for more details" "$LINENO" 5; }
2993 fi
2994 done
2995
2996 if test -r "$cache_file"; then
2997 # Some versions of bash will fail to source /dev/null (special files
2998 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2999 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3001 $as_echo "$as_me: loading cache $cache_file" >&6;}
3002 case $cache_file in
3003 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3004 *) . "./$cache_file";;
3005 esac
3006 fi
3007 else
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3009 $as_echo "$as_me: creating cache $cache_file" >&6;}
3010 >$cache_file
3011 fi
3012
3013 as_fn_append ac_header_list " stdlib.h"
3014 as_fn_append ac_header_list " unistd.h"
3015 as_fn_append ac_header_list " sys/param.h"
3016 # Check that the precious variables saved in the cache have kept the same
3017 # value.
3018 ac_cache_corrupted=false
3019 for ac_var in $ac_precious_vars; do
3020 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3021 eval ac_new_set=\$ac_env_${ac_var}_set
3022 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3023 eval ac_new_val=\$ac_env_${ac_var}_value
3024 case $ac_old_set,$ac_new_set in
3025 set,)
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3027 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3028 ac_cache_corrupted=: ;;
3029 ,set)
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3031 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3032 ac_cache_corrupted=: ;;
3033 ,);;
3034 *)
3035 if test "x$ac_old_val" != "x$ac_new_val"; then
3036 # differences in whitespace do not lead to failure.
3037 ac_old_val_w=`echo x $ac_old_val`
3038 ac_new_val_w=`echo x $ac_new_val`
3039 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3041 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3042 ac_cache_corrupted=:
3043 else
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3045 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3046 eval $ac_var=\$ac_old_val
3047 fi
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3049 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3051 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3052 fi;;
3053 esac
3054 # Pass precious variables to config.status.
3055 if test "$ac_new_set" = set; then
3056 case $ac_new_val in
3057 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3058 *) ac_arg=$ac_var=$ac_new_val ;;
3059 esac
3060 case " $ac_configure_args " in
3061 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3062 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3063 esac
3064 fi
3065 done
3066 if $ac_cache_corrupted; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3070 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3071 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3072 fi
3073 ## -------------------- ##
3074 ## Main body of script. ##
3075 ## -------------------- ##
3076
3077 ac_ext=c
3078 ac_cpp='$CPP $CPPFLAGS'
3079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3082
3083
3084
3085
3086
3087
3088
3089 ac_config_headers="$ac_config_headers config.h:config.in"
3090
3091
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3093 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3094 # Check whether --enable-maintainer-mode was given.
3095 if test "${enable_maintainer_mode+set}" = set; then :
3096 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3097 else
3098 USE_MAINTAINER_MODE=no
3099 fi
3100
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3102 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3103 if test $USE_MAINTAINER_MODE = yes; then
3104 MAINTAINER_MODE_TRUE=
3105 MAINTAINER_MODE_FALSE='#'
3106 else
3107 MAINTAINER_MODE_TRUE='#'
3108 MAINTAINER_MODE_FALSE=
3109 fi
3110
3111 MAINT=$MAINTAINER_MODE_TRUE
3112
3113
3114
3115 ac_ext=c
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120 if test -n "$ac_tool_prefix"; then
3121 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3122 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if ${ac_cv_prog_CC+:} false; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142 done
3143 done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 CC=$ac_cv_prog_CC
3149 if test -n "$CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3152 else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157
3158 fi
3159 if test -z "$ac_cv_prog_CC"; then
3160 ac_ct_CC=$CC
3161 # Extract the first word of "gcc", so it can be a program name with args.
3162 set dummy gcc; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3166 $as_echo_n "(cached) " >&6
3167 else
3168 if test -n "$ac_ct_CC"; then
3169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_ac_ct_CC="gcc"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182 done
3183 done
3184 IFS=$as_save_IFS
3185
3186 fi
3187 fi
3188 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3189 if test -n "$ac_ct_CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3191 $as_echo "$ac_ct_CC" >&6; }
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 fi
3196
3197 if test "x$ac_ct_CC" = x; then
3198 CC=""
3199 else
3200 case $cross_compiling:$ac_tool_warned in
3201 yes:)
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3204 ac_tool_warned=yes ;;
3205 esac
3206 CC=$ac_ct_CC
3207 fi
3208 else
3209 CC="$ac_cv_prog_CC"
3210 fi
3211
3212 if test -z "$CC"; then
3213 if test -n "$ac_tool_prefix"; then
3214 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3215 set dummy ${ac_tool_prefix}cc; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_prog_CC+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231 ac_cv_prog_CC="${ac_tool_prefix}cc"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3234 fi
3235 done
3236 done
3237 IFS=$as_save_IFS
3238
3239 fi
3240 fi
3241 CC=$ac_cv_prog_CC
3242 if test -n "$CC"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3244 $as_echo "$CC" >&6; }
3245 else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3248 fi
3249
3250
3251 fi
3252 fi
3253 if test -z "$CC"; then
3254 # Extract the first word of "cc", so it can be a program name with args.
3255 set dummy cc; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if ${ac_cv_prog_CC+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 if test -n "$CC"; then
3262 ac_cv_prog_CC="$CC" # Let the user override the test.
3263 else
3264 ac_prog_rejected=no
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3273 ac_prog_rejected=yes
3274 continue
3275 fi
3276 ac_cv_prog_CC="cc"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280 done
3281 done
3282 IFS=$as_save_IFS
3283
3284 if test $ac_prog_rejected = yes; then
3285 # We found a bogon in the path, so make sure we never use it.
3286 set dummy $ac_cv_prog_CC
3287 shift
3288 if test $# != 0; then
3289 # We chose a different compiler from the bogus one.
3290 # However, it has the same basename, so the bogon will be chosen
3291 # first if we set CC to just the basename; use the full file name.
3292 shift
3293 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3294 fi
3295 fi
3296 fi
3297 fi
3298 CC=$ac_cv_prog_CC
3299 if test -n "$CC"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301 $as_echo "$CC" >&6; }
3302 else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305 fi
3306
3307
3308 fi
3309 if test -z "$CC"; then
3310 if test -n "$ac_tool_prefix"; then
3311 for ac_prog in cl.exe
3312 do
3313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if ${ac_cv_prog_CC+:} false; then :
3318 $as_echo_n "(cached) " >&6
3319 else
3320 if test -n "$CC"; then
3321 ac_cv_prog_CC="$CC" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334 done
3335 done
3336 IFS=$as_save_IFS
3337
3338 fi
3339 fi
3340 CC=$ac_cv_prog_CC
3341 if test -n "$CC"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3343 $as_echo "$CC" >&6; }
3344 else
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3347 fi
3348
3349
3350 test -n "$CC" && break
3351 done
3352 fi
3353 if test -z "$CC"; then
3354 ac_ct_CC=$CC
3355 for ac_prog in cl.exe
3356 do
3357 # Extract the first word of "$ac_prog", so it can be a program name with args.
3358 set dummy $ac_prog; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 if test -n "$ac_ct_CC"; then
3365 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3366 else
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374 ac_cv_prog_ac_ct_CC="$ac_prog"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 break 2
3377 fi
3378 done
3379 done
3380 IFS=$as_save_IFS
3381
3382 fi
3383 fi
3384 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3385 if test -n "$ac_ct_CC"; then
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3387 $as_echo "$ac_ct_CC" >&6; }
3388 else
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3391 fi
3392
3393
3394 test -n "$ac_ct_CC" && break
3395 done
3396
3397 if test "x$ac_ct_CC" = x; then
3398 CC=""
3399 else
3400 case $cross_compiling:$ac_tool_warned in
3401 yes:)
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3404 ac_tool_warned=yes ;;
3405 esac
3406 CC=$ac_ct_CC
3407 fi
3408 fi
3409
3410 fi
3411
3412
3413 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415 as_fn_error $? "no acceptable C compiler found in \$PATH
3416 See \`config.log' for more details" "$LINENO" 5; }
3417
3418 # Provide some information about the compiler.
3419 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3420 set X $ac_compile
3421 ac_compiler=$2
3422 for ac_option in --version -v -V -qversion; do
3423 { { ac_try="$ac_compiler $ac_option >&5"
3424 case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427 esac
3428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429 $as_echo "$ac_try_echo"; } >&5
3430 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3431 ac_status=$?
3432 if test -s conftest.err; then
3433 sed '10a\
3434 ... rest of stderr output deleted ...
3435 10q' conftest.err >conftest.er1
3436 cat conftest.er1 >&5
3437 fi
3438 rm -f conftest.er1 conftest.err
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }
3441 done
3442
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3445
3446 int
3447 main ()
3448 {
3449
3450 ;
3451 return 0;
3452 }
3453 _ACEOF
3454 ac_clean_files_save=$ac_clean_files
3455 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3456 # Try to create an executable without -o first, disregard a.out.
3457 # It will help us diagnose broken compilers, and finding out an intuition
3458 # of exeext.
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3460 $as_echo_n "checking whether the C compiler works... " >&6; }
3461 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3462
3463 # The possible output files:
3464 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3465
3466 ac_rmfiles=
3467 for ac_file in $ac_files
3468 do
3469 case $ac_file in
3470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3471 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3472 esac
3473 done
3474 rm -f $ac_rmfiles
3475
3476 if { { ac_try="$ac_link_default"
3477 case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482 $as_echo "$ac_try_echo"; } >&5
3483 (eval "$ac_link_default") 2>&5
3484 ac_status=$?
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }; then :
3487 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3488 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3489 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3490 # so that the user can short-circuit this test for compilers unknown to
3491 # Autoconf.
3492 for ac_file in $ac_files ''
3493 do
3494 test -f "$ac_file" || continue
3495 case $ac_file in
3496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3497 ;;
3498 [ab].out )
3499 # We found the default executable, but exeext='' is most
3500 # certainly right.
3501 break;;
3502 *.* )
3503 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3504 then :; else
3505 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3506 fi
3507 # We set ac_cv_exeext here because the later test for it is not
3508 # safe: cross compilers may not add the suffix if given an `-o'
3509 # argument, so we may need to know it at that point already.
3510 # Even if this section looks crufty: it has the advantage of
3511 # actually working.
3512 break;;
3513 * )
3514 break;;
3515 esac
3516 done
3517 test "$ac_cv_exeext" = no && ac_cv_exeext=
3518
3519 else
3520 ac_file=''
3521 fi
3522 if test -z "$ac_file"; then :
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3525 $as_echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3527
3528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error 77 "C compiler cannot create executables
3531 See \`config.log' for more details" "$LINENO" 5; }
3532 else
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3534 $as_echo "yes" >&6; }
3535 fi
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3537 $as_echo_n "checking for C compiler default output file name... " >&6; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3539 $as_echo "$ac_file" >&6; }
3540 ac_exeext=$ac_cv_exeext
3541
3542 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3543 ac_clean_files=$ac_clean_files_save
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3545 $as_echo_n "checking for suffix of executables... " >&6; }
3546 if { { ac_try="$ac_link"
3547 case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552 $as_echo "$ac_try_echo"; } >&5
3553 (eval "$ac_link") 2>&5
3554 ac_status=$?
3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556 test $ac_status = 0; }; then :
3557 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3558 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3559 # work properly (i.e., refer to `conftest.exe'), while it won't with
3560 # `rm'.
3561 for ac_file in conftest.exe conftest conftest.*; do
3562 test -f "$ac_file" || continue
3563 case $ac_file in
3564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3565 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3566 break;;
3567 * ) break;;
3568 esac
3569 done
3570 else
3571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3573 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3574 See \`config.log' for more details" "$LINENO" 5; }
3575 fi
3576 rm -f conftest conftest$ac_cv_exeext
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3578 $as_echo "$ac_cv_exeext" >&6; }
3579
3580 rm -f conftest.$ac_ext
3581 EXEEXT=$ac_cv_exeext
3582 ac_exeext=$EXEEXT
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3585 #include <stdio.h>
3586 int
3587 main ()
3588 {
3589 FILE *f = fopen ("conftest.out", "w");
3590 return ferror (f) || fclose (f) != 0;
3591
3592 ;
3593 return 0;
3594 }
3595 _ACEOF
3596 ac_clean_files="$ac_clean_files conftest.out"
3597 # Check that the compiler produces executables we can run. If not, either
3598 # the compiler is broken, or we cross compile.
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3600 $as_echo_n "checking whether we are cross compiling... " >&6; }
3601 if test "$cross_compiling" != yes; then
3602 { { ac_try="$ac_link"
3603 case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
3607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608 $as_echo "$ac_try_echo"; } >&5
3609 (eval "$ac_link") 2>&5
3610 ac_status=$?
3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612 test $ac_status = 0; }
3613 if { ac_try='./conftest$ac_cv_exeext'
3614 { { case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_try") 2>&5
3621 ac_status=$?
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; }; then
3624 cross_compiling=no
3625 else
3626 if test "$cross_compiling" = maybe; then
3627 cross_compiling=yes
3628 else
3629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3631 as_fn_error $? "cannot run C compiled programs.
3632 If you meant to cross compile, use \`--host'.
3633 See \`config.log' for more details" "$LINENO" 5; }
3634 fi
3635 fi
3636 fi
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3638 $as_echo "$cross_compiling" >&6; }
3639
3640 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3641 ac_clean_files=$ac_clean_files_save
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3643 $as_echo_n "checking for suffix of object files... " >&6; }
3644 if ${ac_cv_objext+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649
3650 int
3651 main ()
3652 {
3653
3654 ;
3655 return 0;
3656 }
3657 _ACEOF
3658 rm -f conftest.o conftest.obj
3659 if { { ac_try="$ac_compile"
3660 case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3663 esac
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666 (eval "$ac_compile") 2>&5
3667 ac_status=$?
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }; then :
3670 for ac_file in conftest.o conftest.obj conftest.*; do
3671 test -f "$ac_file" || continue;
3672 case $ac_file in
3673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3674 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3675 break;;
3676 esac
3677 done
3678 else
3679 $as_echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3681
3682 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3684 as_fn_error $? "cannot compute suffix of object files: cannot compile
3685 See \`config.log' for more details" "$LINENO" 5; }
3686 fi
3687 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3688 fi
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3690 $as_echo "$ac_cv_objext" >&6; }
3691 OBJEXT=$ac_cv_objext
3692 ac_objext=$OBJEXT
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3694 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3695 if ${ac_cv_c_compiler_gnu+:} false; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3700
3701 int
3702 main ()
3703 {
3704 #ifndef __GNUC__
3705 choke me
3706 #endif
3707
3708 ;
3709 return 0;
3710 }
3711 _ACEOF
3712 if ac_fn_c_try_compile "$LINENO"; then :
3713 ac_compiler_gnu=yes
3714 else
3715 ac_compiler_gnu=no
3716 fi
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3719
3720 fi
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3722 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3723 if test $ac_compiler_gnu = yes; then
3724 GCC=yes
3725 else
3726 GCC=
3727 fi
3728 ac_test_CFLAGS=${CFLAGS+set}
3729 ac_save_CFLAGS=$CFLAGS
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3731 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3732 if ${ac_cv_prog_cc_g+:} false; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 ac_save_c_werror_flag=$ac_c_werror_flag
3736 ac_c_werror_flag=yes
3737 ac_cv_prog_cc_g=no
3738 CFLAGS="-g"
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3741
3742 int
3743 main ()
3744 {
3745
3746 ;
3747 return 0;
3748 }
3749 _ACEOF
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_cv_prog_cc_g=yes
3752 else
3753 CFLAGS=""
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3756
3757 int
3758 main ()
3759 {
3760
3761 ;
3762 return 0;
3763 }
3764 _ACEOF
3765 if ac_fn_c_try_compile "$LINENO"; then :
3766
3767 else
3768 ac_c_werror_flag=$ac_save_c_werror_flag
3769 CFLAGS="-g"
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3772
3773 int
3774 main ()
3775 {
3776
3777 ;
3778 return 0;
3779 }
3780 _ACEOF
3781 if ac_fn_c_try_compile "$LINENO"; then :
3782 ac_cv_prog_cc_g=yes
3783 fi
3784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 fi
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 fi
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 ac_c_werror_flag=$ac_save_c_werror_flag
3790 fi
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3792 $as_echo "$ac_cv_prog_cc_g" >&6; }
3793 if test "$ac_test_CFLAGS" = set; then
3794 CFLAGS=$ac_save_CFLAGS
3795 elif test $ac_cv_prog_cc_g = yes; then
3796 if test "$GCC" = yes; then
3797 CFLAGS="-g -O2"
3798 else
3799 CFLAGS="-g"
3800 fi
3801 else
3802 if test "$GCC" = yes; then
3803 CFLAGS="-O2"
3804 else
3805 CFLAGS=
3806 fi
3807 fi
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3809 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3810 if ${ac_cv_prog_cc_c89+:} false; then :
3811 $as_echo_n "(cached) " >&6
3812 else
3813 ac_cv_prog_cc_c89=no
3814 ac_save_CC=$CC
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3817 #include <stdarg.h>
3818 #include <stdio.h>
3819 struct stat;
3820 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3821 struct buf { int x; };
3822 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3823 static char *e (p, i)
3824 char **p;
3825 int i;
3826 {
3827 return p[i];
3828 }
3829 static char *f (char * (*g) (char **, int), char **p, ...)
3830 {
3831 char *s;
3832 va_list v;
3833 va_start (v,p);
3834 s = g (p, va_arg (v,int));
3835 va_end (v);
3836 return s;
3837 }
3838
3839 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3840 function prototypes and stuff, but not '\xHH' hex character constants.
3841 These don't provoke an error unfortunately, instead are silently treated
3842 as 'x'. The following induces an error, until -std is added to get
3843 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3844 array size at least. It's necessary to write '\x00'==0 to get something
3845 that's true only with -std. */
3846 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3847
3848 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3849 inside strings and character constants. */
3850 #define FOO(x) 'x'
3851 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3852
3853 int test (int i, double x);
3854 struct s1 {int (*f) (int a);};
3855 struct s2 {int (*f) (double a);};
3856 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3857 int argc;
3858 char **argv;
3859 int
3860 main ()
3861 {
3862 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3863 ;
3864 return 0;
3865 }
3866 _ACEOF
3867 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3868 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3869 do
3870 CC="$ac_save_CC $ac_arg"
3871 if ac_fn_c_try_compile "$LINENO"; then :
3872 ac_cv_prog_cc_c89=$ac_arg
3873 fi
3874 rm -f core conftest.err conftest.$ac_objext
3875 test "x$ac_cv_prog_cc_c89" != "xno" && break
3876 done
3877 rm -f conftest.$ac_ext
3878 CC=$ac_save_CC
3879
3880 fi
3881 # AC_CACHE_VAL
3882 case "x$ac_cv_prog_cc_c89" in
3883 x)
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3885 $as_echo "none needed" >&6; } ;;
3886 xno)
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3888 $as_echo "unsupported" >&6; } ;;
3889 *)
3890 CC="$CC $ac_cv_prog_cc_c89"
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3892 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3893 esac
3894 if test "x$ac_cv_prog_cc_c89" != xno; then :
3895
3896 fi
3897
3898 ac_ext=c
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903
3904 ac_ext=cpp
3905 ac_cpp='$CXXCPP $CPPFLAGS'
3906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3909 if test -z "$CXX"; then
3910 if test -n "$CCC"; then
3911 CXX=$CCC
3912 else
3913 if test -n "$ac_tool_prefix"; then
3914 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3915 do
3916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if ${ac_cv_prog_CXX+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 if test -n "$CXX"; then
3924 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3925 else
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 break 2
3936 fi
3937 done
3938 done
3939 IFS=$as_save_IFS
3940
3941 fi
3942 fi
3943 CXX=$ac_cv_prog_CXX
3944 if test -n "$CXX"; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3946 $as_echo "$CXX" >&6; }
3947 else
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3950 fi
3951
3952
3953 test -n "$CXX" && break
3954 done
3955 fi
3956 if test -z "$CXX"; then
3957 ac_ct_CXX=$CXX
3958 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3959 do
3960 # Extract the first word of "$ac_prog", so it can be a program name with args.
3961 set dummy $ac_prog; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3965 $as_echo_n "(cached) " >&6
3966 else
3967 if test -n "$ac_ct_CXX"; then
3968 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3972 do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_CXX="$ac_prog"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3980 fi
3981 done
3982 done
3983 IFS=$as_save_IFS
3984
3985 fi
3986 fi
3987 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3988 if test -n "$ac_ct_CXX"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3990 $as_echo "$ac_ct_CXX" >&6; }
3991 else
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3994 fi
3995
3996
3997 test -n "$ac_ct_CXX" && break
3998 done
3999
4000 if test "x$ac_ct_CXX" = x; then
4001 CXX="g++"
4002 else
4003 case $cross_compiling:$ac_tool_warned in
4004 yes:)
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4007 ac_tool_warned=yes ;;
4008 esac
4009 CXX=$ac_ct_CXX
4010 fi
4011 fi
4012
4013 fi
4014 fi
4015 # Provide some information about the compiler.
4016 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4017 set X $ac_compile
4018 ac_compiler=$2
4019 for ac_option in --version -v -V -qversion; do
4020 { { ac_try="$ac_compiler $ac_option >&5"
4021 case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4024 esac
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 $as_echo "$ac_try_echo"; } >&5
4027 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4028 ac_status=$?
4029 if test -s conftest.err; then
4030 sed '10a\
4031 ... rest of stderr output deleted ...
4032 10q' conftest.err >conftest.er1
4033 cat conftest.er1 >&5
4034 fi
4035 rm -f conftest.er1 conftest.err
4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }
4038 done
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4041 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4042 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047
4048 int
4049 main ()
4050 {
4051 #ifndef __GNUC__
4052 choke me
4053 #endif
4054
4055 ;
4056 return 0;
4057 }
4058 _ACEOF
4059 if ac_fn_cxx_try_compile "$LINENO"; then :
4060 ac_compiler_gnu=yes
4061 else
4062 ac_compiler_gnu=no
4063 fi
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4066
4067 fi
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4069 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4070 if test $ac_compiler_gnu = yes; then
4071 GXX=yes
4072 else
4073 GXX=
4074 fi
4075 ac_test_CXXFLAGS=${CXXFLAGS+set}
4076 ac_save_CXXFLAGS=$CXXFLAGS
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4078 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4079 if ${ac_cv_prog_cxx_g+:} false; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4083 ac_cxx_werror_flag=yes
4084 ac_cv_prog_cxx_g=no
4085 CXXFLAGS="-g"
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088
4089 int
4090 main ()
4091 {
4092
4093 ;
4094 return 0;
4095 }
4096 _ACEOF
4097 if ac_fn_cxx_try_compile "$LINENO"; then :
4098 ac_cv_prog_cxx_g=yes
4099 else
4100 CXXFLAGS=""
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103
4104 int
4105 main ()
4106 {
4107
4108 ;
4109 return 0;
4110 }
4111 _ACEOF
4112 if ac_fn_cxx_try_compile "$LINENO"; then :
4113
4114 else
4115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4116 CXXFLAGS="-g"
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119
4120 int
4121 main ()
4122 {
4123
4124 ;
4125 return 0;
4126 }
4127 _ACEOF
4128 if ac_fn_cxx_try_compile "$LINENO"; then :
4129 ac_cv_prog_cxx_g=yes
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4139 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4140 if test "$ac_test_CXXFLAGS" = set; then
4141 CXXFLAGS=$ac_save_CXXFLAGS
4142 elif test $ac_cv_prog_cxx_g = yes; then
4143 if test "$GXX" = yes; then
4144 CXXFLAGS="-g -O2"
4145 else
4146 CXXFLAGS="-g"
4147 fi
4148 else
4149 if test "$GXX" = yes; then
4150 CXXFLAGS="-O2"
4151 else
4152 CXXFLAGS=
4153 fi
4154 fi
4155 ac_ext=c
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160
4161
4162
4163 ac_ext=c
4164 ac_cpp='$CPP $CPPFLAGS'
4165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4169 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4170 # On Suns, sometimes $CPP names a directory.
4171 if test -n "$CPP" && test -d "$CPP"; then
4172 CPP=
4173 fi
4174 if test -z "$CPP"; then
4175 if ${ac_cv_prog_CPP+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 # Double quotes because CPP needs to be expanded
4179 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4180 do
4181 ac_preproc_ok=false
4182 for ac_c_preproc_warn_flag in '' yes
4183 do
4184 # Use a header file that comes with gcc, so configuring glibc
4185 # with a fresh cross-compiler works.
4186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4187 # <limits.h> exists even on freestanding compilers.
4188 # On the NeXT, cc -E runs the code through the compiler's parser,
4189 # not just through cpp. "Syntax error" is here to catch this case.
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192 #ifdef __STDC__
4193 # include <limits.h>
4194 #else
4195 # include <assert.h>
4196 #endif
4197 Syntax error
4198 _ACEOF
4199 if ac_fn_c_try_cpp "$LINENO"; then :
4200
4201 else
4202 # Broken: fails on valid input.
4203 continue
4204 fi
4205 rm -f conftest.err conftest.i conftest.$ac_ext
4206
4207 # OK, works on sane cases. Now check whether nonexistent headers
4208 # can be detected and how.
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4211 #include <ac_nonexistent.h>
4212 _ACEOF
4213 if ac_fn_c_try_cpp "$LINENO"; then :
4214 # Broken: success on invalid input.
4215 continue
4216 else
4217 # Passes both tests.
4218 ac_preproc_ok=:
4219 break
4220 fi
4221 rm -f conftest.err conftest.i conftest.$ac_ext
4222
4223 done
4224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4225 rm -f conftest.i conftest.err conftest.$ac_ext
4226 if $ac_preproc_ok; then :
4227 break
4228 fi
4229
4230 done
4231 ac_cv_prog_CPP=$CPP
4232
4233 fi
4234 CPP=$ac_cv_prog_CPP
4235 else
4236 ac_cv_prog_CPP=$CPP
4237 fi
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4239 $as_echo "$CPP" >&6; }
4240 ac_preproc_ok=false
4241 for ac_c_preproc_warn_flag in '' yes
4242 do
4243 # Use a header file that comes with gcc, so configuring glibc
4244 # with a fresh cross-compiler works.
4245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4246 # <limits.h> exists even on freestanding compilers.
4247 # On the NeXT, cc -E runs the code through the compiler's parser,
4248 # not just through cpp. "Syntax error" is here to catch this case.
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251 #ifdef __STDC__
4252 # include <limits.h>
4253 #else
4254 # include <assert.h>
4255 #endif
4256 Syntax error
4257 _ACEOF
4258 if ac_fn_c_try_cpp "$LINENO"; then :
4259
4260 else
4261 # Broken: fails on valid input.
4262 continue
4263 fi
4264 rm -f conftest.err conftest.i conftest.$ac_ext
4265
4266 # OK, works on sane cases. Now check whether nonexistent headers
4267 # can be detected and how.
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270 #include <ac_nonexistent.h>
4271 _ACEOF
4272 if ac_fn_c_try_cpp "$LINENO"; then :
4273 # Broken: success on invalid input.
4274 continue
4275 else
4276 # Passes both tests.
4277 ac_preproc_ok=:
4278 break
4279 fi
4280 rm -f conftest.err conftest.i conftest.$ac_ext
4281
4282 done
4283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4284 rm -f conftest.i conftest.err conftest.$ac_ext
4285 if $ac_preproc_ok; then :
4286
4287 else
4288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4290 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4291 See \`config.log' for more details" "$LINENO" 5; }
4292 fi
4293
4294 ac_ext=c
4295 ac_cpp='$CPP $CPPFLAGS'
4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299
4300
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4302 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4303 if ${ac_cv_path_GREP+:} false; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 if test -z "$GREP"; then
4307 ac_path_GREP_found=false
4308 # Loop through the user's path and test for each of PROGNAME-LIST
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4311 do
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_prog in grep ggrep; do
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4317 as_fn_executable_p "$ac_path_GREP" || continue
4318 # Check for GNU ac_path_GREP and select it if it is found.
4319 # Check for GNU $ac_path_GREP
4320 case `"$ac_path_GREP" --version 2>&1` in
4321 *GNU*)
4322 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4323 *)
4324 ac_count=0
4325 $as_echo_n 0123456789 >"conftest.in"
4326 while :
4327 do
4328 cat "conftest.in" "conftest.in" >"conftest.tmp"
4329 mv "conftest.tmp" "conftest.in"
4330 cp "conftest.in" "conftest.nl"
4331 $as_echo 'GREP' >> "conftest.nl"
4332 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4334 as_fn_arith $ac_count + 1 && ac_count=$as_val
4335 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4336 # Best one so far, save it but keep looking for a better one
4337 ac_cv_path_GREP="$ac_path_GREP"
4338 ac_path_GREP_max=$ac_count
4339 fi
4340 # 10*(2^10) chars as input seems more than enough
4341 test $ac_count -gt 10 && break
4342 done
4343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4344 esac
4345
4346 $ac_path_GREP_found && break 3
4347 done
4348 done
4349 done
4350 IFS=$as_save_IFS
4351 if test -z "$ac_cv_path_GREP"; then
4352 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4353 fi
4354 else
4355 ac_cv_path_GREP=$GREP
4356 fi
4357
4358 fi
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4360 $as_echo "$ac_cv_path_GREP" >&6; }
4361 GREP="$ac_cv_path_GREP"
4362
4363
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4365 $as_echo_n "checking for egrep... " >&6; }
4366 if ${ac_cv_path_EGREP+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4370 then ac_cv_path_EGREP="$GREP -E"
4371 else
4372 if test -z "$EGREP"; then
4373 ac_path_EGREP_found=false
4374 # Loop through the user's path and test for each of PROGNAME-LIST
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4377 do
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_prog in egrep; do
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4383 as_fn_executable_p "$ac_path_EGREP" || continue
4384 # Check for GNU ac_path_EGREP and select it if it is found.
4385 # Check for GNU $ac_path_EGREP
4386 case `"$ac_path_EGREP" --version 2>&1` in
4387 *GNU*)
4388 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4389 *)
4390 ac_count=0
4391 $as_echo_n 0123456789 >"conftest.in"
4392 while :
4393 do
4394 cat "conftest.in" "conftest.in" >"conftest.tmp"
4395 mv "conftest.tmp" "conftest.in"
4396 cp "conftest.in" "conftest.nl"
4397 $as_echo 'EGREP' >> "conftest.nl"
4398 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4400 as_fn_arith $ac_count + 1 && ac_count=$as_val
4401 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4402 # Best one so far, save it but keep looking for a better one
4403 ac_cv_path_EGREP="$ac_path_EGREP"
4404 ac_path_EGREP_max=$ac_count
4405 fi
4406 # 10*(2^10) chars as input seems more than enough
4407 test $ac_count -gt 10 && break
4408 done
4409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4410 esac
4411
4412 $ac_path_EGREP_found && break 3
4413 done
4414 done
4415 done
4416 IFS=$as_save_IFS
4417 if test -z "$ac_cv_path_EGREP"; then
4418 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4419 fi
4420 else
4421 ac_cv_path_EGREP=$EGREP
4422 fi
4423
4424 fi
4425 fi
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4427 $as_echo "$ac_cv_path_EGREP" >&6; }
4428 EGREP="$ac_cv_path_EGREP"
4429
4430
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4432 $as_echo_n "checking for ANSI C header files... " >&6; }
4433 if ${ac_cv_header_stdc+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4438 #include <stdlib.h>
4439 #include <stdarg.h>
4440 #include <string.h>
4441 #include <float.h>
4442
4443 int
4444 main ()
4445 {
4446
4447 ;
4448 return 0;
4449 }
4450 _ACEOF
4451 if ac_fn_c_try_compile "$LINENO"; then :
4452 ac_cv_header_stdc=yes
4453 else
4454 ac_cv_header_stdc=no
4455 fi
4456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457
4458 if test $ac_cv_header_stdc = yes; then
4459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462 #include <string.h>
4463
4464 _ACEOF
4465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4466 $EGREP "memchr" >/dev/null 2>&1; then :
4467
4468 else
4469 ac_cv_header_stdc=no
4470 fi
4471 rm -f conftest*
4472
4473 fi
4474
4475 if test $ac_cv_header_stdc = yes; then
4476 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4479 #include <stdlib.h>
4480
4481 _ACEOF
4482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4483 $EGREP "free" >/dev/null 2>&1; then :
4484
4485 else
4486 ac_cv_header_stdc=no
4487 fi
4488 rm -f conftest*
4489
4490 fi
4491
4492 if test $ac_cv_header_stdc = yes; then
4493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4494 if test "$cross_compiling" = yes; then :
4495 :
4496 else
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499 #include <ctype.h>
4500 #include <stdlib.h>
4501 #if ((' ' & 0x0FF) == 0x020)
4502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4504 #else
4505 # define ISLOWER(c) \
4506 (('a' <= (c) && (c) <= 'i') \
4507 || ('j' <= (c) && (c) <= 'r') \
4508 || ('s' <= (c) && (c) <= 'z'))
4509 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4510 #endif
4511
4512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4513 int
4514 main ()
4515 {
4516 int i;
4517 for (i = 0; i < 256; i++)
4518 if (XOR (islower (i), ISLOWER (i))
4519 || toupper (i) != TOUPPER (i))
4520 return 2;
4521 return 0;
4522 }
4523 _ACEOF
4524 if ac_fn_c_try_run "$LINENO"; then :
4525
4526 else
4527 ac_cv_header_stdc=no
4528 fi
4529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4530 conftest.$ac_objext conftest.beam conftest.$ac_ext
4531 fi
4532
4533 fi
4534 fi
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4536 $as_echo "$ac_cv_header_stdc" >&6; }
4537 if test $ac_cv_header_stdc = yes; then
4538
4539 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4540
4541 fi
4542
4543 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4544 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4545 inttypes.h stdint.h unistd.h
4546 do :
4547 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4548 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4549 "
4550 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4551 cat >>confdefs.h <<_ACEOF
4552 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4553 _ACEOF
4554
4555 fi
4556
4557 done
4558
4559
4560
4561 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4562 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4563 MINIX=yes
4564 else
4565 MINIX=
4566 fi
4567
4568
4569 if test "$MINIX" = yes; then
4570
4571 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4572
4573
4574 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4575
4576
4577 $as_echo "#define _MINIX 1" >>confdefs.h
4578
4579 fi
4580
4581
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4583 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4584 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4589
4590 # define __EXTENSIONS__ 1
4591 $ac_includes_default
4592 int
4593 main ()
4594 {
4595
4596 ;
4597 return 0;
4598 }
4599 _ACEOF
4600 if ac_fn_c_try_compile "$LINENO"; then :
4601 ac_cv_safe_to_define___extensions__=yes
4602 else
4603 ac_cv_safe_to_define___extensions__=no
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 fi
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4608 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4609 test $ac_cv_safe_to_define___extensions__ = yes &&
4610 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4611
4612 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4613
4614 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4615
4616 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4617
4618 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4619
4620
4621 ac_aux_dir=
4622 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4623 if test -f "$ac_dir/install-sh"; then
4624 ac_aux_dir=$ac_dir
4625 ac_install_sh="$ac_aux_dir/install-sh -c"
4626 break
4627 elif test -f "$ac_dir/install.sh"; then
4628 ac_aux_dir=$ac_dir
4629 ac_install_sh="$ac_aux_dir/install.sh -c"
4630 break
4631 elif test -f "$ac_dir/shtool"; then
4632 ac_aux_dir=$ac_dir
4633 ac_install_sh="$ac_aux_dir/shtool install -c"
4634 break
4635 fi
4636 done
4637 if test -z "$ac_aux_dir"; then
4638 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4639 fi
4640
4641 # These three variables are undocumented and unsupported,
4642 # and are intended to be withdrawn in a future Autoconf release.
4643 # They can cause serious problems if a builder's source tree is in a directory
4644 # whose full name contains unusual characters.
4645 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4646 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4647 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4648
4649
4650 # Make sure we can run config.sub.
4651 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4652 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4655 $as_echo_n "checking build system type... " >&6; }
4656 if ${ac_cv_build+:} false; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 ac_build_alias=$build_alias
4660 test "x$ac_build_alias" = x &&
4661 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4662 test "x$ac_build_alias" = x &&
4663 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4664 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4665 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4666
4667 fi
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4669 $as_echo "$ac_cv_build" >&6; }
4670 case $ac_cv_build in
4671 *-*-*) ;;
4672 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4673 esac
4674 build=$ac_cv_build
4675 ac_save_IFS=$IFS; IFS='-'
4676 set x $ac_cv_build
4677 shift
4678 build_cpu=$1
4679 build_vendor=$2
4680 shift; shift
4681 # Remember, the first character of IFS is used to create $*,
4682 # except with old shells:
4683 build_os=$*
4684 IFS=$ac_save_IFS
4685 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4686
4687
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4689 $as_echo_n "checking host system type... " >&6; }
4690 if ${ac_cv_host+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if test "x$host_alias" = x; then
4694 ac_cv_host=$ac_cv_build
4695 else
4696 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4697 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4698 fi
4699
4700 fi
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4702 $as_echo "$ac_cv_host" >&6; }
4703 case $ac_cv_host in
4704 *-*-*) ;;
4705 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4706 esac
4707 host=$ac_cv_host
4708 ac_save_IFS=$IFS; IFS='-'
4709 set x $ac_cv_host
4710 shift
4711 host_cpu=$1
4712 host_vendor=$2
4713 shift; shift
4714 # Remember, the first character of IFS is used to create $*,
4715 # except with old shells:
4716 host_os=$*
4717 IFS=$ac_save_IFS
4718 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4719
4720
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4722 $as_echo_n "checking target system type... " >&6; }
4723 if ${ac_cv_target+:} false; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 if test "x$target_alias" = x; then
4727 ac_cv_target=$ac_cv_host
4728 else
4729 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4730 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4731 fi
4732
4733 fi
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4735 $as_echo "$ac_cv_target" >&6; }
4736 case $ac_cv_target in
4737 *-*-*) ;;
4738 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4739 esac
4740 target=$ac_cv_target
4741 ac_save_IFS=$IFS; IFS='-'
4742 set x $ac_cv_target
4743 shift
4744 target_cpu=$1
4745 target_vendor=$2
4746 shift; shift
4747 # Remember, the first character of IFS is used to create $*,
4748 # except with old shells:
4749 target_os=$*
4750 IFS=$ac_save_IFS
4751 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4752
4753
4754 # The aliases save the names the user supplied, while $host etc.
4755 # will get canonicalized.
4756 test -n "$target_alias" &&
4757 test "$program_prefix$program_suffix$program_transform_name" = \
4758 NONENONEs,x,x, &&
4759 program_prefix=${target_alias}-
4760
4761 # The tests for host and target for $enable_largefile require
4762 # canonical names.
4763
4764
4765
4766 # As the $enable_largefile decision depends on --enable-plugins we must set it
4767 # even in directories otherwise not depending on the $plugins option.
4768
4769
4770 maybe_plugins=no
4771 for ac_header in dlfcn.h
4772 do :
4773 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4774 "
4775 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4776 cat >>confdefs.h <<_ACEOF
4777 #define HAVE_DLFCN_H 1
4778 _ACEOF
4779 maybe_plugins=yes
4780 fi
4781
4782 done
4783
4784 for ac_header in windows.h
4785 do :
4786 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4787 "
4788 if test "x$ac_cv_header_windows_h" = xyes; then :
4789 cat >>confdefs.h <<_ACEOF
4790 #define HAVE_WINDOWS_H 1
4791 _ACEOF
4792 maybe_plugins=yes
4793 fi
4794
4795 done
4796
4797
4798 # Check whether --enable-plugins was given.
4799 if test "${enable_plugins+set}" = set; then :
4800 enableval=$enable_plugins; case "${enableval}" in
4801 no) plugins=no ;;
4802 *) plugins=yes
4803 if test "$maybe_plugins" != "yes" ; then
4804 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4805 fi ;;
4806 esac
4807 else
4808 plugins=$maybe_plugins
4809
4810 fi
4811
4812 if test "$plugins" = "yes"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4814 $as_echo_n "checking for library containing dlsym... " >&6; }
4815 if ${ac_cv_search_dlsym+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 ac_func_search_save_LIBS=$LIBS
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821
4822 /* Override any GCC internal prototype to avoid an error.
4823 Use char because int might match the return type of a GCC
4824 builtin and then its argument prototype would still apply. */
4825 #ifdef __cplusplus
4826 extern "C"
4827 #endif
4828 char dlsym ();
4829 int
4830 main ()
4831 {
4832 return dlsym ();
4833 ;
4834 return 0;
4835 }
4836 _ACEOF
4837 for ac_lib in '' dl; do
4838 if test -z "$ac_lib"; then
4839 ac_res="none required"
4840 else
4841 ac_res=-l$ac_lib
4842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4843 fi
4844 if ac_fn_c_try_link "$LINENO"; then :
4845 ac_cv_search_dlsym=$ac_res
4846 fi
4847 rm -f core conftest.err conftest.$ac_objext \
4848 conftest$ac_exeext
4849 if ${ac_cv_search_dlsym+:} false; then :
4850 break
4851 fi
4852 done
4853 if ${ac_cv_search_dlsym+:} false; then :
4854
4855 else
4856 ac_cv_search_dlsym=no
4857 fi
4858 rm conftest.$ac_ext
4859 LIBS=$ac_func_search_save_LIBS
4860 fi
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4862 $as_echo "$ac_cv_search_dlsym" >&6; }
4863 ac_res=$ac_cv_search_dlsym
4864 if test "$ac_res" != no; then :
4865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4866
4867 fi
4868
4869 fi
4870
4871
4872 case "${host}" in
4873 sparc-*-solaris*|i?86-*-solaris*)
4874 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4875 # were mutually exclusive until Solaris 11.3. Without procfs support,
4876 # the bfd/ elf module cannot provide certain routines such as
4877 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4878 # explicitly requested large-file support through the
4879 # --enable-largefile switch, disable large-file support in favor of
4880 # procfs support.
4881 #
4882 # Check if <sys/procfs.h> is incompatible with large-file support.
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 #define _FILE_OFFSET_BITS 64
4886 #define _STRUCTURED_PROC 1
4887 #include <sys/procfs.h>
4888 int
4889 main ()
4890 {
4891
4892 ;
4893 return 0;
4894 }
4895 _ACEOF
4896 if ac_fn_c_try_compile "$LINENO"; then :
4897 acx_cv_procfs_lfs=yes
4898 else
4899 acx_cv_procfs_lfs=no
4900 fi
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 #
4903 # Forcefully disable large-file support only if necessary, gdb is in
4904 # tree and enabled.
4905 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4906 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
4907 : ${enable_largefile="no"}
4908 if test "$plugins" = yes; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4910 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4911 $as_echo "$as_me: WARNING:
4912 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4913 plugins=no
4914 fi
4915 fi
4916 #
4917 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4918 # benefit of g++ 9+ which predefines it on Solaris.
4919 if test "$enable_largefile" = no; then
4920 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
4921
4922 fi
4923 ;;
4924 esac
4925
4926 # Check whether --enable-largefile was given.
4927 if test "${enable_largefile+set}" = set; then :
4928 enableval=$enable_largefile;
4929 fi
4930
4931 if test "$enable_largefile" != no; then
4932
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4934 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4935 if ${ac_cv_sys_largefile_CC+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 ac_cv_sys_largefile_CC=no
4939 if test "$GCC" != yes; then
4940 ac_save_CC=$CC
4941 while :; do
4942 # IRIX 6.2 and later do not support large files by default,
4943 # so use the C compiler's -n32 option if that helps.
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946 #include <sys/types.h>
4947 /* Check that off_t can represent 2**63 - 1 correctly.
4948 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4949 since some C++ compilers masquerading as C compilers
4950 incorrectly reject 9223372036854775807. */
4951 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4953 && LARGE_OFF_T % 2147483647 == 1)
4954 ? 1 : -1];
4955 int
4956 main ()
4957 {
4958
4959 ;
4960 return 0;
4961 }
4962 _ACEOF
4963 if ac_fn_c_try_compile "$LINENO"; then :
4964 break
4965 fi
4966 rm -f core conftest.err conftest.$ac_objext
4967 CC="$CC -n32"
4968 if ac_fn_c_try_compile "$LINENO"; then :
4969 ac_cv_sys_largefile_CC=' -n32'; break
4970 fi
4971 rm -f core conftest.err conftest.$ac_objext
4972 break
4973 done
4974 CC=$ac_save_CC
4975 rm -f conftest.$ac_ext
4976 fi
4977 fi
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4979 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4980 if test "$ac_cv_sys_largefile_CC" != no; then
4981 CC=$CC$ac_cv_sys_largefile_CC
4982 fi
4983
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4985 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4986 if ${ac_cv_sys_file_offset_bits+:} false; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 while :; do
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 #include <sys/types.h>
4993 /* Check that off_t can represent 2**63 - 1 correctly.
4994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4995 since some C++ compilers masquerading as C compilers
4996 incorrectly reject 9223372036854775807. */
4997 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4999 && LARGE_OFF_T % 2147483647 == 1)
5000 ? 1 : -1];
5001 int
5002 main ()
5003 {
5004
5005 ;
5006 return 0;
5007 }
5008 _ACEOF
5009 if ac_fn_c_try_compile "$LINENO"; then :
5010 ac_cv_sys_file_offset_bits=no; break
5011 fi
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5015 #define _FILE_OFFSET_BITS 64
5016 #include <sys/types.h>
5017 /* Check that off_t can represent 2**63 - 1 correctly.
5018 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5019 since some C++ compilers masquerading as C compilers
5020 incorrectly reject 9223372036854775807. */
5021 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5022 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5023 && LARGE_OFF_T % 2147483647 == 1)
5024 ? 1 : -1];
5025 int
5026 main ()
5027 {
5028
5029 ;
5030 return 0;
5031 }
5032 _ACEOF
5033 if ac_fn_c_try_compile "$LINENO"; then :
5034 ac_cv_sys_file_offset_bits=64; break
5035 fi
5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037 ac_cv_sys_file_offset_bits=unknown
5038 break
5039 done
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5042 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5043 case $ac_cv_sys_file_offset_bits in #(
5044 no | unknown) ;;
5045 *)
5046 cat >>confdefs.h <<_ACEOF
5047 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5048 _ACEOF
5049 ;;
5050 esac
5051 rm -rf conftest*
5052 if test $ac_cv_sys_file_offset_bits = unknown; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5054 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5055 if ${ac_cv_sys_large_files+:} false; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 while :; do
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5061 #include <sys/types.h>
5062 /* Check that off_t can represent 2**63 - 1 correctly.
5063 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5064 since some C++ compilers masquerading as C compilers
5065 incorrectly reject 9223372036854775807. */
5066 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5067 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5068 && LARGE_OFF_T % 2147483647 == 1)
5069 ? 1 : -1];
5070 int
5071 main ()
5072 {
5073
5074 ;
5075 return 0;
5076 }
5077 _ACEOF
5078 if ac_fn_c_try_compile "$LINENO"; then :
5079 ac_cv_sys_large_files=no; break
5080 fi
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5084 #define _LARGE_FILES 1
5085 #include <sys/types.h>
5086 /* Check that off_t can represent 2**63 - 1 correctly.
5087 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5088 since some C++ compilers masquerading as C compilers
5089 incorrectly reject 9223372036854775807. */
5090 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5091 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5092 && LARGE_OFF_T % 2147483647 == 1)
5093 ? 1 : -1];
5094 int
5095 main ()
5096 {
5097
5098 ;
5099 return 0;
5100 }
5101 _ACEOF
5102 if ac_fn_c_try_compile "$LINENO"; then :
5103 ac_cv_sys_large_files=1; break
5104 fi
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 ac_cv_sys_large_files=unknown
5107 break
5108 done
5109 fi
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5111 $as_echo "$ac_cv_sys_large_files" >&6; }
5112 case $ac_cv_sys_large_files in #(
5113 no | unknown) ;;
5114 *)
5115 cat >>confdefs.h <<_ACEOF
5116 #define _LARGE_FILES $ac_cv_sys_large_files
5117 _ACEOF
5118 ;;
5119 esac
5120 rm -rf conftest*
5121 fi
5122
5123
5124 fi
5125
5126
5127 # Expand $ac_aux_dir to an absolute path.
5128 am_aux_dir=`cd "$ac_aux_dir" && pwd`
5129
5130 if test x"${install_sh+set}" != xset; then
5131 case $am_aux_dir in
5132 *\ * | *\ *)
5133 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5134 *)
5135 install_sh="\${SHELL} $am_aux_dir/install-sh"
5136 esac
5137 fi
5138
5139 # Installed binaries are usually stripped using 'strip' when the user
5140 # run "make install-strip". However 'strip' might not be the right
5141 # tool to use in cross-compilation environments, therefore Automake
5142 # will honor the 'STRIP' environment variable to overrule this program.
5143 if test "$cross_compiling" != no; then
5144 if test -n "$ac_tool_prefix"; then
5145 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5146 set dummy ${ac_tool_prefix}strip; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if ${ac_cv_prog_STRIP+:} false; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152 if test -n "$STRIP"; then
5153 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5165 fi
5166 done
5167 done
5168 IFS=$as_save_IFS
5169
5170 fi
5171 fi
5172 STRIP=$ac_cv_prog_STRIP
5173 if test -n "$STRIP"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5175 $as_echo "$STRIP" >&6; }
5176 else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5179 fi
5180
5181
5182 fi
5183 if test -z "$ac_cv_prog_STRIP"; then
5184 ac_ct_STRIP=$STRIP
5185 # Extract the first word of "strip", so it can be a program name with args.
5186 set dummy strip; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 if test -n "$ac_ct_STRIP"; then
5193 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5197 do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_ac_ct_STRIP="strip"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5205 fi
5206 done
5207 done
5208 IFS=$as_save_IFS
5209
5210 fi
5211 fi
5212 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5213 if test -n "$ac_ct_STRIP"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5215 $as_echo "$ac_ct_STRIP" >&6; }
5216 else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5219 fi
5220
5221 if test "x$ac_ct_STRIP" = x; then
5222 STRIP=":"
5223 else
5224 case $cross_compiling:$ac_tool_warned in
5225 yes:)
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228 ac_tool_warned=yes ;;
5229 esac
5230 STRIP=$ac_ct_STRIP
5231 fi
5232 else
5233 STRIP="$ac_cv_prog_STRIP"
5234 fi
5235
5236 fi
5237 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5238
5239
5240 ac_aux_dir=
5241 for ac_dir in .. "$srcdir"/..; do
5242 if test -f "$ac_dir/install-sh"; then
5243 ac_aux_dir=$ac_dir
5244 ac_install_sh="$ac_aux_dir/install-sh -c"
5245 break
5246 elif test -f "$ac_dir/install.sh"; then
5247 ac_aux_dir=$ac_dir
5248 ac_install_sh="$ac_aux_dir/install.sh -c"
5249 break
5250 elif test -f "$ac_dir/shtool"; then
5251 ac_aux_dir=$ac_dir
5252 ac_install_sh="$ac_aux_dir/shtool install -c"
5253 break
5254 fi
5255 done
5256 if test -z "$ac_aux_dir"; then
5257 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5258 fi
5259
5260 # These three variables are undocumented and unsupported,
5261 # and are intended to be withdrawn in a future Autoconf release.
5262 # They can cause serious problems if a builder's source tree is in a directory
5263 # whose full name contains unusual characters.
5264 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5265 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5266 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5267
5268
5269
5270 # Set build, build_cpu, build_vendor and build_os.
5271
5272
5273 # Set host, host_cpu, host_vendor, and host_os.
5274
5275
5276 # Set target, target_cpu, target_vendor, and target_os.
5277
5278
5279 case ${build_alias} in
5280 "") build_noncanonical=${build} ;;
5281 *) build_noncanonical=${build_alias} ;;
5282 esac
5283
5284 case ${host_alias} in
5285 "") host_noncanonical=${build_noncanonical} ;;
5286 *) host_noncanonical=${host_alias} ;;
5287 esac
5288
5289 case ${target_alias} in
5290 "") target_noncanonical=${host_noncanonical} ;;
5291 *) target_noncanonical=${target_alias} ;;
5292 esac
5293
5294
5295
5296
5297 test "$program_prefix" != NONE &&
5298 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5299 # Use a double $ so make ignores it.
5300 test "$program_suffix" != NONE &&
5301 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5302 # Double any \ or $.
5303 # By default was `s,x,x', remove it if useless.
5304 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5305 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5306
5307
5308 # We require libtool to link with the in-tree libtool libraries
5309 # the proper way.
5310 case `pwd` in
5311 *\ * | *\ *)
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5313 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5314 esac
5315
5316
5317
5318 macro_version='2.2.7a'
5319 macro_revision='1.3134'
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333 ltmain="$ac_aux_dir/ltmain.sh"
5334
5335 # Backslashify metacharacters that are still active within
5336 # double-quoted strings.
5337 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5338
5339 # Same as above, but do not quote variable references.
5340 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5341
5342 # Sed substitution to delay expansion of an escaped shell variable in a
5343 # double_quote_subst'ed string.
5344 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5345
5346 # Sed substitution to delay expansion of an escaped single quote.
5347 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5348
5349 # Sed substitution to avoid accidental globbing in evaled expressions
5350 no_glob_subst='s/\*/\\\*/g'
5351
5352 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5353 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5354 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5355
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5357 $as_echo_n "checking how to print strings... " >&6; }
5358 # Test print first, because it will be a builtin if present.
5359 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5360 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5361 ECHO='print -r --'
5362 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5363 ECHO='printf %s\n'
5364 else
5365 # Use this function as a fallback that always works.
5366 func_fallback_echo ()
5367 {
5368 eval 'cat <<_LTECHO_EOF
5369 $1
5370 _LTECHO_EOF'
5371 }
5372 ECHO='func_fallback_echo'
5373 fi
5374
5375 # func_echo_all arg...
5376 # Invoke $ECHO with all args, space-separated.
5377 func_echo_all ()
5378 {
5379 $ECHO ""
5380 }
5381
5382 case "$ECHO" in
5383 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5384 $as_echo "printf" >&6; } ;;
5385 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5386 $as_echo "print -r" >&6; } ;;
5387 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5388 $as_echo "cat" >&6; } ;;
5389 esac
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5405 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5406 if ${ac_cv_path_SED+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5410 for ac_i in 1 2 3 4 5 6 7; do
5411 ac_script="$ac_script$as_nl$ac_script"
5412 done
5413 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5414 { ac_script=; unset ac_script;}
5415 if test -z "$SED"; then
5416 ac_path_SED_found=false
5417 # Loop through the user's path and test for each of PROGNAME-LIST
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5420 do
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_prog in sed gsed; do
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5426 as_fn_executable_p "$ac_path_SED" || continue
5427 # Check for GNU ac_path_SED and select it if it is found.
5428 # Check for GNU $ac_path_SED
5429 case `"$ac_path_SED" --version 2>&1` in
5430 *GNU*)
5431 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5432 *)
5433 ac_count=0
5434 $as_echo_n 0123456789 >"conftest.in"
5435 while :
5436 do
5437 cat "conftest.in" "conftest.in" >"conftest.tmp"
5438 mv "conftest.tmp" "conftest.in"
5439 cp "conftest.in" "conftest.nl"
5440 $as_echo '' >> "conftest.nl"
5441 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5443 as_fn_arith $ac_count + 1 && ac_count=$as_val
5444 if test $ac_count -gt ${ac_path_SED_max-0}; then
5445 # Best one so far, save it but keep looking for a better one
5446 ac_cv_path_SED="$ac_path_SED"
5447 ac_path_SED_max=$ac_count
5448 fi
5449 # 10*(2^10) chars as input seems more than enough
5450 test $ac_count -gt 10 && break
5451 done
5452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5453 esac
5454
5455 $ac_path_SED_found && break 3
5456 done
5457 done
5458 done
5459 IFS=$as_save_IFS
5460 if test -z "$ac_cv_path_SED"; then
5461 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5462 fi
5463 else
5464 ac_cv_path_SED=$SED
5465 fi
5466
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5469 $as_echo "$ac_cv_path_SED" >&6; }
5470 SED="$ac_cv_path_SED"
5471 rm -f conftest.sed
5472
5473 test -z "$SED" && SED=sed
5474 Xsed="$SED -e 1s/^X//"
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5487 $as_echo_n "checking for fgrep... " >&6; }
5488 if ${ac_cv_path_FGREP+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5492 then ac_cv_path_FGREP="$GREP -F"
5493 else
5494 if test -z "$FGREP"; then
5495 ac_path_FGREP_found=false
5496 # Loop through the user's path and test for each of PROGNAME-LIST
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5499 do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_prog in fgrep; do
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5505 as_fn_executable_p "$ac_path_FGREP" || continue
5506 # Check for GNU ac_path_FGREP and select it if it is found.
5507 # Check for GNU $ac_path_FGREP
5508 case `"$ac_path_FGREP" --version 2>&1` in
5509 *GNU*)
5510 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5511 *)
5512 ac_count=0
5513 $as_echo_n 0123456789 >"conftest.in"
5514 while :
5515 do
5516 cat "conftest.in" "conftest.in" >"conftest.tmp"
5517 mv "conftest.tmp" "conftest.in"
5518 cp "conftest.in" "conftest.nl"
5519 $as_echo 'FGREP' >> "conftest.nl"
5520 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5522 as_fn_arith $ac_count + 1 && ac_count=$as_val
5523 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5524 # Best one so far, save it but keep looking for a better one
5525 ac_cv_path_FGREP="$ac_path_FGREP"
5526 ac_path_FGREP_max=$ac_count
5527 fi
5528 # 10*(2^10) chars as input seems more than enough
5529 test $ac_count -gt 10 && break
5530 done
5531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5532 esac
5533
5534 $ac_path_FGREP_found && break 3
5535 done
5536 done
5537 done
5538 IFS=$as_save_IFS
5539 if test -z "$ac_cv_path_FGREP"; then
5540 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5541 fi
5542 else
5543 ac_cv_path_FGREP=$FGREP
5544 fi
5545
5546 fi
5547 fi
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5549 $as_echo "$ac_cv_path_FGREP" >&6; }
5550 FGREP="$ac_cv_path_FGREP"
5551
5552
5553 test -z "$GREP" && GREP=grep
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573 # Check whether --with-gnu-ld was given.
5574 if test "${with_gnu_ld+set}" = set; then :
5575 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5576 else
5577 with_gnu_ld=no
5578 fi
5579
5580 ac_prog=ld
5581 if test "$GCC" = yes; then
5582 # Check if gcc -print-prog-name=ld gives a path.
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5584 $as_echo_n "checking for ld used by $CC... " >&6; }
5585 case $host in
5586 *-*-mingw*)
5587 # gcc leaves a trailing carriage return which upsets mingw
5588 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5589 *)
5590 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5591 esac
5592 case $ac_prog in
5593 # Accept absolute paths.
5594 [\\/]* | ?:[\\/]*)
5595 re_direlt='/[^/][^/]*/\.\./'
5596 # Canonicalize the pathname of ld
5597 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5598 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5599 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5600 done
5601 test -z "$LD" && LD="$ac_prog"
5602 ;;
5603 "")
5604 # If it fails, then pretend we aren't using GCC.
5605 ac_prog=ld
5606 ;;
5607 *)
5608 # If it is relative, then search for the first ld in PATH.
5609 with_gnu_ld=unknown
5610 ;;
5611 esac
5612 elif test "$with_gnu_ld" = yes; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5614 $as_echo_n "checking for GNU ld... " >&6; }
5615 else
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5617 $as_echo_n "checking for non-GNU ld... " >&6; }
5618 fi
5619 if ${lt_cv_path_LD+:} false; then :
5620 $as_echo_n "(cached) " >&6
5621 else
5622 if test -z "$LD"; then
5623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5624 for ac_dir in $PATH; do
5625 IFS="$lt_save_ifs"
5626 test -z "$ac_dir" && ac_dir=.
5627 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5628 lt_cv_path_LD="$ac_dir/$ac_prog"
5629 # Check to see if the program is GNU ld. I'd rather use --version,
5630 # but apparently some variants of GNU ld only accept -v.
5631 # Break only if it was the GNU/non-GNU ld that we prefer.
5632 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5633 *GNU* | *'with BFD'*)
5634 test "$with_gnu_ld" != no && break
5635 ;;
5636 *)
5637 test "$with_gnu_ld" != yes && break
5638 ;;
5639 esac
5640 fi
5641 done
5642 IFS="$lt_save_ifs"
5643 else
5644 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5645 fi
5646 fi
5647
5648 LD="$lt_cv_path_LD"
5649 if test -n "$LD"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5651 $as_echo "$LD" >&6; }
5652 else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5655 fi
5656 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5658 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5659 if ${lt_cv_prog_gnu_ld+:} false; then :
5660 $as_echo_n "(cached) " >&6
5661 else
5662 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5663 case `$LD -v 2>&1 </dev/null` in
5664 *GNU* | *'with BFD'*)
5665 lt_cv_prog_gnu_ld=yes
5666 ;;
5667 *)
5668 lt_cv_prog_gnu_ld=no
5669 ;;
5670 esac
5671 fi
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5673 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5674 with_gnu_ld=$lt_cv_prog_gnu_ld
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5685 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5686 if ${lt_cv_path_NM+:} false; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 if test -n "$NM"; then
5690 # Let the user override the nm to test.
5691 lt_nm_to_check="$NM"
5692 else
5693 lt_nm_to_check="${ac_tool_prefix}nm"
5694 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5695 lt_nm_to_check="$lt_nm_to_check nm"
5696 fi
5697 fi
5698 for lt_tmp_nm in "$lt_nm_to_check"; do
5699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5700 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5701 IFS="$lt_save_ifs"
5702 test -z "$ac_dir" && ac_dir=.
5703 # Strip out any user-provided options from the nm to test twice,
5704 # the first time to test to see if nm (rather than its options) has
5705 # an explicit path, the second time to yield a file which can be
5706 # nm'ed itself.
5707 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5708 case "$tmp_nm_path" in
5709 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5710 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5711 esac
5712 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5713 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5714 # Check to see if the nm accepts a BSD-compat flag.
5715 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5716 # nm: unknown option "B" ignored
5717 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5718 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5719 break
5720 ;;
5721 *)
5722 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5723 *$tmp_nm*)
5724 lt_cv_path_NM="$tmp_nm -p"
5725 break
5726 ;;
5727 *)
5728 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5729 continue # so that we can try to find one that supports BSD flags
5730 ;;
5731 esac
5732 ;;
5733 esac
5734 fi
5735 done
5736 IFS="$lt_save_ifs"
5737 done
5738 : ${lt_cv_path_NM=no}
5739 fi
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5741 $as_echo "$lt_cv_path_NM" >&6; }
5742 if test "$lt_cv_path_NM" != "no"; then
5743 NM="$lt_cv_path_NM"
5744 else
5745 # Didn't find any BSD compatible name lister, look for dumpbin.
5746 if test -n "$DUMPBIN"; then :
5747 # Let the user override the test.
5748 else
5749 if test -n "$ac_tool_prefix"; then
5750 for ac_prog in dumpbin "link -dump"
5751 do
5752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5753 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if ${ac_cv_prog_DUMPBIN+:} false; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 if test -n "$DUMPBIN"; then
5760 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773 done
5774 done
5775 IFS=$as_save_IFS
5776
5777 fi
5778 fi
5779 DUMPBIN=$ac_cv_prog_DUMPBIN
5780 if test -n "$DUMPBIN"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5782 $as_echo "$DUMPBIN" >&6; }
5783 else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5786 fi
5787
5788
5789 test -n "$DUMPBIN" && break
5790 done
5791 fi
5792 if test -z "$DUMPBIN"; then
5793 ac_ct_DUMPBIN=$DUMPBIN
5794 for ac_prog in dumpbin "link -dump"
5795 do
5796 # Extract the first word of "$ac_prog", so it can be a program name with args.
5797 set dummy $ac_prog; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 if test -n "$ac_ct_DUMPBIN"; then
5804 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 break 2
5816 fi
5817 done
5818 done
5819 IFS=$as_save_IFS
5820
5821 fi
5822 fi
5823 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5824 if test -n "$ac_ct_DUMPBIN"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5826 $as_echo "$ac_ct_DUMPBIN" >&6; }
5827 else
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5830 fi
5831
5832
5833 test -n "$ac_ct_DUMPBIN" && break
5834 done
5835
5836 if test "x$ac_ct_DUMPBIN" = x; then
5837 DUMPBIN=":"
5838 else
5839 case $cross_compiling:$ac_tool_warned in
5840 yes:)
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5843 ac_tool_warned=yes ;;
5844 esac
5845 DUMPBIN=$ac_ct_DUMPBIN
5846 fi
5847 fi
5848
5849 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5850 *COFF*)
5851 DUMPBIN="$DUMPBIN -symbols"
5852 ;;
5853 *)
5854 DUMPBIN=:
5855 ;;
5856 esac
5857 fi
5858
5859 if test "$DUMPBIN" != ":"; then
5860 NM="$DUMPBIN"
5861 fi
5862 fi
5863 test -z "$NM" && NM=nm
5864
5865
5866
5867
5868
5869
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5871 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5872 if ${lt_cv_nm_interface+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 lt_cv_nm_interface="BSD nm"
5876 echo "int some_variable = 0;" > conftest.$ac_ext
5877 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5878 (eval "$ac_compile" 2>conftest.err)
5879 cat conftest.err >&5
5880 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5881 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5882 cat conftest.err >&5
5883 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5884 cat conftest.out >&5
5885 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5886 lt_cv_nm_interface="MS dumpbin"
5887 fi
5888 rm -f conftest*
5889 fi
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5891 $as_echo "$lt_cv_nm_interface" >&6; }
5892
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5894 $as_echo_n "checking whether ln -s works... " >&6; }
5895 LN_S=$as_ln_s
5896 if test "$LN_S" = "ln -s"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5898 $as_echo "yes" >&6; }
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5901 $as_echo "no, using $LN_S" >&6; }
5902 fi
5903
5904 # find the maximum length of command line arguments
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5906 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5907 if ${lt_cv_sys_max_cmd_len+:} false; then :
5908 $as_echo_n "(cached) " >&6
5909 else
5910 i=0
5911 teststring="ABCD"
5912
5913 case $build_os in
5914 msdosdjgpp*)
5915 # On DJGPP, this test can blow up pretty badly due to problems in libc
5916 # (any single argument exceeding 2000 bytes causes a buffer overrun
5917 # during glob expansion). Even if it were fixed, the result of this
5918 # check would be larger than it should be.
5919 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5920 ;;
5921
5922 gnu*)
5923 # Under GNU Hurd, this test is not required because there is
5924 # no limit to the length of command line arguments.
5925 # Libtool will interpret -1 as no limit whatsoever
5926 lt_cv_sys_max_cmd_len=-1;
5927 ;;
5928
5929 cygwin* | mingw* | cegcc*)
5930 # On Win9x/ME, this test blows up -- it succeeds, but takes
5931 # about 5 minutes as the teststring grows exponentially.
5932 # Worse, since 9x/ME are not pre-emptively multitasking,
5933 # you end up with a "frozen" computer, even though with patience
5934 # the test eventually succeeds (with a max line length of 256k).
5935 # Instead, let's just punt: use the minimum linelength reported by
5936 # all of the supported platforms: 8192 (on NT/2K/XP).
5937 lt_cv_sys_max_cmd_len=8192;
5938 ;;
5939
5940 mint*)
5941 # On MiNT this can take a long time and run out of memory.
5942 lt_cv_sys_max_cmd_len=8192;
5943 ;;
5944
5945 amigaos*)
5946 # On AmigaOS with pdksh, this test takes hours, literally.
5947 # So we just punt and use a minimum line length of 8192.
5948 lt_cv_sys_max_cmd_len=8192;
5949 ;;
5950
5951 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5952 # This has been around since 386BSD, at least. Likely further.
5953 if test -x /sbin/sysctl; then
5954 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5955 elif test -x /usr/sbin/sysctl; then
5956 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5957 else
5958 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5959 fi
5960 # And add a safety zone
5961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5963 ;;
5964
5965 interix*)
5966 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5967 lt_cv_sys_max_cmd_len=196608
5968 ;;
5969
5970 osf*)
5971 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5972 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5973 # nice to cause kernel panics so lets avoid the loop below.
5974 # First set a reasonable default.
5975 lt_cv_sys_max_cmd_len=16384
5976 #
5977 if test -x /sbin/sysconfig; then
5978 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5979 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5980 esac
5981 fi
5982 ;;
5983 sco3.2v5*)
5984 lt_cv_sys_max_cmd_len=102400
5985 ;;
5986 sysv5* | sco5v6* | sysv4.2uw2*)
5987 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5988 if test -n "$kargmax"; then
5989 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5990 else
5991 lt_cv_sys_max_cmd_len=32768
5992 fi
5993 ;;
5994 *)
5995 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5996 if test -n "$lt_cv_sys_max_cmd_len"; then
5997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5998 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5999 else
6000 # Make teststring a little bigger before we do anything with it.
6001 # a 1K string should be a reasonable start.
6002 for i in 1 2 3 4 5 6 7 8 ; do
6003 teststring=$teststring$teststring
6004 done
6005 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6006 # If test is not a shell built-in, we'll probably end up computing a
6007 # maximum length that is only half of the actual maximum length, but
6008 # we can't tell.
6009 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6010 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6011 test $i != 17 # 1/2 MB should be enough
6012 do
6013 i=`expr $i + 1`
6014 teststring=$teststring$teststring
6015 done
6016 # Only check the string length outside the loop.
6017 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6018 teststring=
6019 # Add a significant safety factor because C++ compilers can tack on
6020 # massive amounts of additional arguments before passing them to the
6021 # linker. It appears as though 1/2 is a usable value.
6022 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6023 fi
6024 ;;
6025 esac
6026
6027 fi
6028
6029 if test -n $lt_cv_sys_max_cmd_len ; then
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6031 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6032 else
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6034 $as_echo "none" >&6; }
6035 fi
6036 max_cmd_len=$lt_cv_sys_max_cmd_len
6037
6038
6039
6040
6041
6042
6043 : ${CP="cp -f"}
6044 : ${MV="mv -f"}
6045 : ${RM="rm -f"}
6046
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6048 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6049 # Try some XSI features
6050 xsi_shell=no
6051 ( _lt_dummy="a/b/c"
6052 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6053 = c,a/b,, \
6054 && eval 'test $(( 1 + 1 )) -eq 2 \
6055 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6056 && xsi_shell=yes
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6058 $as_echo "$xsi_shell" >&6; }
6059
6060
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6062 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6063 lt_shell_append=no
6064 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6065 >/dev/null 2>&1 \
6066 && lt_shell_append=yes
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6068 $as_echo "$lt_shell_append" >&6; }
6069
6070
6071 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6072 lt_unset=unset
6073 else
6074 lt_unset=false
6075 fi
6076
6077
6078
6079
6080
6081 # test EBCDIC or ASCII
6082 case `echo X|tr X '\101'` in
6083 A) # ASCII based system
6084 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6085 lt_SP2NL='tr \040 \012'
6086 lt_NL2SP='tr \015\012 \040\040'
6087 ;;
6088 *) # EBCDIC based system
6089 lt_SP2NL='tr \100 \n'
6090 lt_NL2SP='tr \r\n \100\100'
6091 ;;
6092 esac
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6103 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6104 if ${lt_cv_ld_reload_flag+:} false; then :
6105 $as_echo_n "(cached) " >&6
6106 else
6107 lt_cv_ld_reload_flag='-r'
6108 fi
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6110 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6111 reload_flag=$lt_cv_ld_reload_flag
6112 case $reload_flag in
6113 "" | " "*) ;;
6114 *) reload_flag=" $reload_flag" ;;
6115 esac
6116 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6117 case $host_os in
6118 darwin*)
6119 if test "$GCC" = yes; then
6120 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6121 else
6122 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6123 fi
6124 ;;
6125 esac
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135 if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if ${ac_cv_prog_OBJDUMP+:} false; then :
6141 $as_echo_n "(cached) " >&6
6142 else
6143 if test -n "$OBJDUMP"; then
6144 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 break 2
6156 fi
6157 done
6158 done
6159 IFS=$as_save_IFS
6160
6161 fi
6162 fi
6163 OBJDUMP=$ac_cv_prog_OBJDUMP
6164 if test -n "$OBJDUMP"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6166 $as_echo "$OBJDUMP" >&6; }
6167 else
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6170 fi
6171
6172
6173 fi
6174 if test -z "$ac_cv_prog_OBJDUMP"; then
6175 ac_ct_OBJDUMP=$OBJDUMP
6176 # Extract the first word of "objdump", so it can be a program name with args.
6177 set dummy objdump; ac_word=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179 $as_echo_n "checking for $ac_word... " >&6; }
6180 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 if test -n "$ac_ct_OBJDUMP"; then
6184 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6193 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 break 2
6196 fi
6197 done
6198 done
6199 IFS=$as_save_IFS
6200
6201 fi
6202 fi
6203 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6204 if test -n "$ac_ct_OBJDUMP"; then
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6206 $as_echo "$ac_ct_OBJDUMP" >&6; }
6207 else
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209 $as_echo "no" >&6; }
6210 fi
6211
6212 if test "x$ac_ct_OBJDUMP" = x; then
6213 OBJDUMP="false"
6214 else
6215 case $cross_compiling:$ac_tool_warned in
6216 yes:)
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6219 ac_tool_warned=yes ;;
6220 esac
6221 OBJDUMP=$ac_ct_OBJDUMP
6222 fi
6223 else
6224 OBJDUMP="$ac_cv_prog_OBJDUMP"
6225 fi
6226
6227 test -z "$OBJDUMP" && OBJDUMP=objdump
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6238 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6239 if ${lt_cv_deplibs_check_method+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 lt_cv_file_magic_cmd='$MAGIC_CMD'
6243 lt_cv_file_magic_test_file=
6244 lt_cv_deplibs_check_method='unknown'
6245 # Need to set the preceding variable on all platforms that support
6246 # interlibrary dependencies.
6247 # 'none' -- dependencies not supported.
6248 # `unknown' -- same as none, but documents that we really don't know.
6249 # 'pass_all' -- all dependencies passed with no checks.
6250 # 'test_compile' -- check by making test program.
6251 # 'file_magic [[regex]]' -- check by looking for files in library path
6252 # which responds to the $file_magic_cmd with a given extended regex.
6253 # If you have `file' or equivalent on your system and you're not sure
6254 # whether `pass_all' will *always* work, you probably want this one.
6255
6256 case $host_os in
6257 aix[4-9]*)
6258 lt_cv_deplibs_check_method=pass_all
6259 ;;
6260
6261 beos*)
6262 lt_cv_deplibs_check_method=pass_all
6263 ;;
6264
6265 bsdi[45]*)
6266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6267 lt_cv_file_magic_cmd='/usr/bin/file -L'
6268 lt_cv_file_magic_test_file=/shlib/libc.so
6269 ;;
6270
6271 cygwin*)
6272 # func_win32_libid is a shell function defined in ltmain.sh
6273 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6274 lt_cv_file_magic_cmd='func_win32_libid'
6275 ;;
6276
6277 mingw* | pw32*)
6278 # Base MSYS/MinGW do not provide the 'file' command needed by
6279 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6280 # unless we find 'file', for example because we are cross-compiling.
6281 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6282 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6283 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6284 lt_cv_file_magic_cmd='func_win32_libid'
6285 else
6286 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6287 lt_cv_file_magic_cmd='$OBJDUMP -f'
6288 fi
6289 ;;
6290
6291 cegcc*)
6292 # use the weaker test based on 'objdump'. See mingw*.
6293 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6294 lt_cv_file_magic_cmd='$OBJDUMP -f'
6295 ;;
6296
6297 darwin* | rhapsody*)
6298 lt_cv_deplibs_check_method=pass_all
6299 ;;
6300
6301 freebsd* | dragonfly*)
6302 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6303 case $host_cpu in
6304 i*86 )
6305 # Not sure whether the presence of OpenBSD here was a mistake.
6306 # Let's accept both of them until this is cleared up.
6307 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6308 lt_cv_file_magic_cmd=/usr/bin/file
6309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6310 ;;
6311 esac
6312 else
6313 lt_cv_deplibs_check_method=pass_all
6314 fi
6315 ;;
6316
6317 gnu*)
6318 lt_cv_deplibs_check_method=pass_all
6319 ;;
6320
6321 haiku*)
6322 lt_cv_deplibs_check_method=pass_all
6323 ;;
6324
6325 hpux10.20* | hpux11*)
6326 lt_cv_file_magic_cmd=/usr/bin/file
6327 case $host_cpu in
6328 ia64*)
6329 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6330 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6331 ;;
6332 hppa*64*)
6333 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]'
6334 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6335 ;;
6336 *)
6337 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6338 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6339 ;;
6340 esac
6341 ;;
6342
6343 interix[3-9]*)
6344 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6346 ;;
6347
6348 irix5* | irix6* | nonstopux*)
6349 case $LD in
6350 *-32|*"-32 ") libmagic=32-bit;;
6351 *-n32|*"-n32 ") libmagic=N32;;
6352 *-64|*"-64 ") libmagic=64-bit;;
6353 *) libmagic=never-match;;
6354 esac
6355 lt_cv_deplibs_check_method=pass_all
6356 ;;
6357
6358 # This must be Linux ELF.
6359 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6360 lt_cv_deplibs_check_method=pass_all
6361 ;;
6362
6363 netbsd*)
6364 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6366 else
6367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6368 fi
6369 ;;
6370
6371 newos6*)
6372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6373 lt_cv_file_magic_cmd=/usr/bin/file
6374 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6375 ;;
6376
6377 *nto* | *qnx*)
6378 lt_cv_deplibs_check_method=pass_all
6379 ;;
6380
6381 openbsd*)
6382 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6384 else
6385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6386 fi
6387 ;;
6388
6389 osf3* | osf4* | osf5*)
6390 lt_cv_deplibs_check_method=pass_all
6391 ;;
6392
6393 rdos*)
6394 lt_cv_deplibs_check_method=pass_all
6395 ;;
6396
6397 solaris*)
6398 lt_cv_deplibs_check_method=pass_all
6399 ;;
6400
6401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6402 lt_cv_deplibs_check_method=pass_all
6403 ;;
6404
6405 sysv4 | sysv4.3*)
6406 case $host_vendor in
6407 motorola)
6408 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]'
6409 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6410 ;;
6411 ncr)
6412 lt_cv_deplibs_check_method=pass_all
6413 ;;
6414 sequent)
6415 lt_cv_file_magic_cmd='/bin/file'
6416 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6417 ;;
6418 sni)
6419 lt_cv_file_magic_cmd='/bin/file'
6420 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6421 lt_cv_file_magic_test_file=/lib/libc.so
6422 ;;
6423 siemens)
6424 lt_cv_deplibs_check_method=pass_all
6425 ;;
6426 pc)
6427 lt_cv_deplibs_check_method=pass_all
6428 ;;
6429 esac
6430 ;;
6431
6432 tpf*)
6433 lt_cv_deplibs_check_method=pass_all
6434 ;;
6435 vxworks*)
6436 # Assume VxWorks cross toolchains are built on Linux, possibly
6437 # as canadian for Windows hosts.
6438 lt_cv_deplibs_check_method=pass_all
6439 ;;
6440 esac
6441
6442 fi
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6444 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6445 file_magic_cmd=$lt_cv_file_magic_cmd
6446 deplibs_check_method=$lt_cv_deplibs_check_method
6447 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460 plugin_option=
6461 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6462 for plugin in $plugin_names; do
6463 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6464 if test x$plugin_so = x$plugin; then
6465 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6466 fi
6467 if test x$plugin_so != x$plugin; then
6468 plugin_option="--plugin $plugin_so"
6469 break
6470 fi
6471 done
6472
6473 if test -n "$ac_tool_prefix"; then
6474 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6475 set dummy ${ac_tool_prefix}ar; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_prog_AR+:} false; then :
6479 $as_echo_n "(cached) " >&6
6480 else
6481 if test -n "$AR"; then
6482 ac_cv_prog_AR="$AR" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487 IFS=$as_save_IFS
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6491 ac_cv_prog_AR="${ac_tool_prefix}ar"
6492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 break 2
6494 fi
6495 done
6496 done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 AR=$ac_cv_prog_AR
6502 if test -n "$AR"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6504 $as_echo "$AR" >&6; }
6505 else
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6508 fi
6509
6510
6511 fi
6512 if test -z "$ac_cv_prog_AR"; then
6513 ac_ct_AR=$AR
6514 # Extract the first word of "ar", so it can be a program name with args.
6515 set dummy ar; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 if test -n "$ac_ct_AR"; then
6522 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_ac_ct_AR="ar"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535 done
6536 done
6537 IFS=$as_save_IFS
6538
6539 fi
6540 fi
6541 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6542 if test -n "$ac_ct_AR"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6544 $as_echo "$ac_ct_AR" >&6; }
6545 else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6548 fi
6549
6550 if test "x$ac_ct_AR" = x; then
6551 AR="false"
6552 else
6553 case $cross_compiling:$ac_tool_warned in
6554 yes:)
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6557 ac_tool_warned=yes ;;
6558 esac
6559 AR=$ac_ct_AR
6560 fi
6561 else
6562 AR="$ac_cv_prog_AR"
6563 fi
6564
6565 test -z "$AR" && AR=ar
6566 if test -n "$plugin_option"; then
6567 if $AR --help 2>&1 | grep -q "\--plugin"; then
6568 touch conftest.c
6569 $AR $plugin_option rc conftest.a conftest.c
6570 if test "$?" != 0; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6572 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6573 else
6574 AR="$AR $plugin_option"
6575 fi
6576 rm -f conftest.*
6577 fi
6578 fi
6579 test -z "$AR_FLAGS" && AR_FLAGS=cru
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591 if test -n "$ac_tool_prefix"; then
6592 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6593 set dummy ${ac_tool_prefix}strip; ac_word=$2
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6595 $as_echo_n "checking for $ac_word... " >&6; }
6596 if ${ac_cv_prog_STRIP+:} false; then :
6597 $as_echo_n "(cached) " >&6
6598 else
6599 if test -n "$STRIP"; then
6600 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6601 else
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 for as_dir in $PATH
6604 do
6605 IFS=$as_save_IFS
6606 test -z "$as_dir" && as_dir=.
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6609 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 break 2
6612 fi
6613 done
6614 done
6615 IFS=$as_save_IFS
6616
6617 fi
6618 fi
6619 STRIP=$ac_cv_prog_STRIP
6620 if test -n "$STRIP"; then
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6622 $as_echo "$STRIP" >&6; }
6623 else
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625 $as_echo "no" >&6; }
6626 fi
6627
6628
6629 fi
6630 if test -z "$ac_cv_prog_STRIP"; then
6631 ac_ct_STRIP=$STRIP
6632 # Extract the first word of "strip", so it can be a program name with args.
6633 set dummy strip; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 $as_echo_n "checking for $ac_word... " >&6; }
6636 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 if test -n "$ac_ct_STRIP"; then
6640 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6644 do
6645 IFS=$as_save_IFS
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649 ac_cv_prog_ac_ct_STRIP="strip"
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 break 2
6652 fi
6653 done
6654 done
6655 IFS=$as_save_IFS
6656
6657 fi
6658 fi
6659 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6660 if test -n "$ac_ct_STRIP"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6662 $as_echo "$ac_ct_STRIP" >&6; }
6663 else
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6666 fi
6667
6668 if test "x$ac_ct_STRIP" = x; then
6669 STRIP=":"
6670 else
6671 case $cross_compiling:$ac_tool_warned in
6672 yes:)
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6675 ac_tool_warned=yes ;;
6676 esac
6677 STRIP=$ac_ct_STRIP
6678 fi
6679 else
6680 STRIP="$ac_cv_prog_STRIP"
6681 fi
6682
6683 test -z "$STRIP" && STRIP=:
6684
6685
6686
6687
6688
6689
6690 if test -n "$ac_tool_prefix"; then
6691 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6692 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694 $as_echo_n "checking for $ac_word... " >&6; }
6695 if ${ac_cv_prog_RANLIB+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 if test -n "$RANLIB"; then
6699 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 break 2
6711 fi
6712 done
6713 done
6714 IFS=$as_save_IFS
6715
6716 fi
6717 fi
6718 RANLIB=$ac_cv_prog_RANLIB
6719 if test -n "$RANLIB"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6721 $as_echo "$RANLIB" >&6; }
6722 else
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6725 fi
6726
6727
6728 fi
6729 if test -z "$ac_cv_prog_RANLIB"; then
6730 ac_ct_RANLIB=$RANLIB
6731 # Extract the first word of "ranlib", so it can be a program name with args.
6732 set dummy ranlib; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 if test -n "$ac_ct_RANLIB"; then
6739 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744 IFS=$as_save_IFS
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6748 ac_cv_prog_ac_ct_RANLIB="ranlib"
6749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 break 2
6751 fi
6752 done
6753 done
6754 IFS=$as_save_IFS
6755
6756 fi
6757 fi
6758 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6759 if test -n "$ac_ct_RANLIB"; then
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6761 $as_echo "$ac_ct_RANLIB" >&6; }
6762 else
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 $as_echo "no" >&6; }
6765 fi
6766
6767 if test "x$ac_ct_RANLIB" = x; then
6768 RANLIB=":"
6769 else
6770 case $cross_compiling:$ac_tool_warned in
6771 yes:)
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6774 ac_tool_warned=yes ;;
6775 esac
6776 RANLIB=$ac_ct_RANLIB
6777 fi
6778 else
6779 RANLIB="$ac_cv_prog_RANLIB"
6780 fi
6781
6782 test -z "$RANLIB" && RANLIB=:
6783 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6784 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6785 RANLIB="$RANLIB $plugin_option"
6786 fi
6787 fi
6788
6789
6790
6791
6792
6793
6794 # Determine commands to create old-style static archives.
6795 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6796 old_postinstall_cmds='chmod 644 $oldlib'
6797 old_postuninstall_cmds=
6798
6799 if test -n "$RANLIB"; then
6800 case $host_os in
6801 openbsd*)
6802 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6803 ;;
6804 *)
6805 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6806 ;;
6807 esac
6808 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6809 fi
6810
6811 case $host_os in
6812 darwin*)
6813 lock_old_archive_extraction=yes ;;
6814 *)
6815 lock_old_archive_extraction=no ;;
6816 esac
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838 for ac_prog in gawk mawk nawk awk
6839 do
6840 # Extract the first word of "$ac_prog", so it can be a program name with args.
6841 set dummy $ac_prog; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if ${ac_cv_prog_AWK+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test -n "$AWK"; then
6848 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857 ac_cv_prog_AWK="$ac_prog"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861 done
6862 done
6863 IFS=$as_save_IFS
6864
6865 fi
6866 fi
6867 AWK=$ac_cv_prog_AWK
6868 if test -n "$AWK"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6870 $as_echo "$AWK" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6874 fi
6875
6876
6877 test -n "$AWK" && break
6878 done
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898 # If no C compiler was specified, use CC.
6899 LTCC=${LTCC-"$CC"}
6900
6901 # If no C compiler flags were specified, use CFLAGS.
6902 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6903
6904 # Allow CC to be a program name with arguments.
6905 compiler=$CC
6906
6907
6908 # Check for command to grab the raw symbol name followed by C symbol from nm.
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6910 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6911 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6914
6915 # These are sane defaults that work on at least a few old systems.
6916 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6917
6918 # Character class describing NM global symbol codes.
6919 symcode='[BCDEGRST]'
6920
6921 # Regexp to match symbols that can be accessed directly from C.
6922 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6923
6924 # Define system-specific variables.
6925 case $host_os in
6926 aix*)
6927 symcode='[BCDT]'
6928 ;;
6929 cygwin* | mingw* | pw32* | cegcc*)
6930 symcode='[ABCDGISTW]'
6931 ;;
6932 hpux*)
6933 if test "$host_cpu" = ia64; then
6934 symcode='[ABCDEGRST]'
6935 fi
6936 ;;
6937 irix* | nonstopux*)
6938 symcode='[BCDEGRST]'
6939 ;;
6940 osf*)
6941 symcode='[BCDEGQRST]'
6942 ;;
6943 solaris*)
6944 symcode='[BCDRT]'
6945 ;;
6946 sco3.2v5*)
6947 symcode='[DT]'
6948 ;;
6949 sysv4.2uw2*)
6950 symcode='[DT]'
6951 ;;
6952 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6953 symcode='[ABDT]'
6954 ;;
6955 sysv4)
6956 symcode='[DFNSTU]'
6957 ;;
6958 esac
6959
6960 # If we're using GNU nm, then use its standard symbol codes.
6961 case `$NM -V 2>&1` in
6962 *GNU* | *'with BFD'*)
6963 symcode='[ABCDGIRSTW]' ;;
6964 esac
6965
6966 # Transform an extracted symbol line into a proper C declaration.
6967 # Some systems (esp. on ia64) link data and code symbols differently,
6968 # so use this general approach.
6969 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6970
6971 # Transform an extracted symbol line into symbol name and symbol address
6972 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6973 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'"
6974
6975 # Handle CRLF in mingw tool chain
6976 opt_cr=
6977 case $build_os in
6978 mingw*)
6979 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6980 ;;
6981 esac
6982
6983 # Try without a prefix underscore, then with it.
6984 for ac_symprfx in "" "_"; do
6985
6986 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6987 symxfrm="\\1 $ac_symprfx\\2 \\2"
6988
6989 # Write the raw and C identifiers.
6990 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6991 # Fake it for dumpbin and say T for any non-static function
6992 # and D for any global variable.
6993 # Also find C++ and __fastcall symbols from MSVC++,
6994 # which start with @ or ?.
6995 lt_cv_sys_global_symbol_pipe="$AWK '"\
6996 " {last_section=section; section=\$ 3};"\
6997 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6998 " \$ 0!~/External *\|/{next};"\
6999 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7000 " {if(hide[section]) next};"\
7001 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7002 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7003 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7004 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7005 " ' prfx=^$ac_symprfx"
7006 else
7007 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7008 fi
7009
7010 # Check to see that the pipe works correctly.
7011 pipe_works=no
7012
7013 rm -f conftest*
7014 cat > conftest.$ac_ext <<_LT_EOF
7015 #ifdef __cplusplus
7016 extern "C" {
7017 #endif
7018 char nm_test_var;
7019 void nm_test_func(void);
7020 void nm_test_func(void){}
7021 #ifdef __cplusplus
7022 }
7023 #endif
7024 int main(){nm_test_var='a';nm_test_func();return(0);}
7025 _LT_EOF
7026
7027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7028 (eval $ac_compile) 2>&5
7029 ac_status=$?
7030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7031 test $ac_status = 0; }; then
7032 # Now try to grab the symbols.
7033 nlist=conftest.nm
7034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7035 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7036 ac_status=$?
7037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7038 test $ac_status = 0; } && test -s "$nlist"; then
7039 # Try sorting and uniquifying the output.
7040 if sort "$nlist" | uniq > "$nlist"T; then
7041 mv -f "$nlist"T "$nlist"
7042 else
7043 rm -f "$nlist"T
7044 fi
7045
7046 # Make sure that we snagged all the symbols we need.
7047 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7048 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7049 cat <<_LT_EOF > conftest.$ac_ext
7050 #ifdef __cplusplus
7051 extern "C" {
7052 #endif
7053
7054 _LT_EOF
7055 # Now generate the symbol file.
7056 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7057
7058 cat <<_LT_EOF >> conftest.$ac_ext
7059
7060 /* The mapping between symbol names and symbols. */
7061 const struct {
7062 const char *name;
7063 void *address;
7064 }
7065 lt__PROGRAM__LTX_preloaded_symbols[] =
7066 {
7067 { "@PROGRAM@", (void *) 0 },
7068 _LT_EOF
7069 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7070 cat <<\_LT_EOF >> conftest.$ac_ext
7071 {0, (void *) 0}
7072 };
7073
7074 /* This works around a problem in FreeBSD linker */
7075 #ifdef FREEBSD_WORKAROUND
7076 static const void *lt_preloaded_setup() {
7077 return lt__PROGRAM__LTX_preloaded_symbols;
7078 }
7079 #endif
7080
7081 #ifdef __cplusplus
7082 }
7083 #endif
7084 _LT_EOF
7085 # Now try linking the two files.
7086 mv conftest.$ac_objext conftstm.$ac_objext
7087 lt_save_LIBS="$LIBS"
7088 lt_save_CFLAGS="$CFLAGS"
7089 LIBS="conftstm.$ac_objext"
7090 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7092 (eval $ac_link) 2>&5
7093 ac_status=$?
7094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7095 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7096 pipe_works=yes
7097 fi
7098 LIBS="$lt_save_LIBS"
7099 CFLAGS="$lt_save_CFLAGS"
7100 else
7101 echo "cannot find nm_test_func in $nlist" >&5
7102 fi
7103 else
7104 echo "cannot find nm_test_var in $nlist" >&5
7105 fi
7106 else
7107 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7108 fi
7109 else
7110 echo "$progname: failed program was:" >&5
7111 cat conftest.$ac_ext >&5
7112 fi
7113 rm -rf conftest* conftst*
7114
7115 # Do not use the global_symbol_pipe unless it works.
7116 if test "$pipe_works" = yes; then
7117 break
7118 else
7119 lt_cv_sys_global_symbol_pipe=
7120 fi
7121 done
7122
7123 fi
7124
7125 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7126 lt_cv_sys_global_symbol_to_cdecl=
7127 fi
7128 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7130 $as_echo "failed" >&6; }
7131 else
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7133 $as_echo "ok" >&6; }
7134 fi
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157 # Check whether --enable-libtool-lock was given.
7158 if test "${enable_libtool_lock+set}" = set; then :
7159 enableval=$enable_libtool_lock;
7160 fi
7161
7162 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7163
7164 # Some flags need to be propagated to the compiler or linker for good
7165 # libtool support.
7166 case $host in
7167 ia64-*-hpux*)
7168 # Find out which ABI we are using.
7169 echo 'int i;' > conftest.$ac_ext
7170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7171 (eval $ac_compile) 2>&5
7172 ac_status=$?
7173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7174 test $ac_status = 0; }; then
7175 case `/usr/bin/file conftest.$ac_objext` in
7176 *ELF-32*)
7177 HPUX_IA64_MODE="32"
7178 ;;
7179 *ELF-64*)
7180 HPUX_IA64_MODE="64"
7181 ;;
7182 esac
7183 fi
7184 rm -rf conftest*
7185 ;;
7186 *-*-irix6*)
7187 # Find out which ABI we are using.
7188 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7190 (eval $ac_compile) 2>&5
7191 ac_status=$?
7192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7193 test $ac_status = 0; }; then
7194 if test "$lt_cv_prog_gnu_ld" = yes; then
7195 case `/usr/bin/file conftest.$ac_objext` in
7196 *32-bit*)
7197 LD="${LD-ld} -melf32bsmip"
7198 ;;
7199 *N32*)
7200 LD="${LD-ld} -melf32bmipn32"
7201 ;;
7202 *64-bit*)
7203 LD="${LD-ld} -melf64bmip"
7204 ;;
7205 esac
7206 else
7207 case `/usr/bin/file conftest.$ac_objext` in
7208 *32-bit*)
7209 LD="${LD-ld} -32"
7210 ;;
7211 *N32*)
7212 LD="${LD-ld} -n32"
7213 ;;
7214 *64-bit*)
7215 LD="${LD-ld} -64"
7216 ;;
7217 esac
7218 fi
7219 fi
7220 rm -rf conftest*
7221 ;;
7222
7223 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7224 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7225 # Find out which ABI we are using.
7226 echo 'int i;' > conftest.$ac_ext
7227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7228 (eval $ac_compile) 2>&5
7229 ac_status=$?
7230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7231 test $ac_status = 0; }; then
7232 case `/usr/bin/file conftest.o` in
7233 *32-bit*)
7234 case $host in
7235 x86_64-*kfreebsd*-gnu)
7236 LD="${LD-ld} -m elf_i386_fbsd"
7237 ;;
7238 x86_64-*linux*)
7239 case `/usr/bin/file conftest.o` in
7240 *x86-64*)
7241 LD="${LD-ld} -m elf32_x86_64"
7242 ;;
7243 *)
7244 LD="${LD-ld} -m elf_i386"
7245 ;;
7246 esac
7247 ;;
7248 powerpc64le-*linux*)
7249 LD="${LD-ld} -m elf32lppclinux"
7250 ;;
7251 powerpc64-*linux*)
7252 LD="${LD-ld} -m elf32ppclinux"
7253 ;;
7254 s390x-*linux*)
7255 LD="${LD-ld} -m elf_s390"
7256 ;;
7257 sparc64-*linux*)
7258 LD="${LD-ld} -m elf32_sparc"
7259 ;;
7260 esac
7261 ;;
7262 *64-bit*)
7263 case $host in
7264 x86_64-*kfreebsd*-gnu)
7265 LD="${LD-ld} -m elf_x86_64_fbsd"
7266 ;;
7267 x86_64-*linux*)
7268 LD="${LD-ld} -m elf_x86_64"
7269 ;;
7270 powerpcle-*linux*)
7271 LD="${LD-ld} -m elf64lppc"
7272 ;;
7273 powerpc-*linux*)
7274 LD="${LD-ld} -m elf64ppc"
7275 ;;
7276 s390*-*linux*|s390*-*tpf*)
7277 LD="${LD-ld} -m elf64_s390"
7278 ;;
7279 sparc*-*linux*)
7280 LD="${LD-ld} -m elf64_sparc"
7281 ;;
7282 esac
7283 ;;
7284 esac
7285 fi
7286 rm -rf conftest*
7287 ;;
7288
7289 *-*-sco3.2v5*)
7290 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7291 SAVE_CFLAGS="$CFLAGS"
7292 CFLAGS="$CFLAGS -belf"
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7294 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7295 if ${lt_cv_cc_needs_belf+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 ac_ext=c
7299 ac_cpp='$CPP $CPPFLAGS'
7300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7303
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7306
7307 int
7308 main ()
7309 {
7310
7311 ;
7312 return 0;
7313 }
7314 _ACEOF
7315 if ac_fn_c_try_link "$LINENO"; then :
7316 lt_cv_cc_needs_belf=yes
7317 else
7318 lt_cv_cc_needs_belf=no
7319 fi
7320 rm -f core conftest.err conftest.$ac_objext \
7321 conftest$ac_exeext conftest.$ac_ext
7322 ac_ext=c
7323 ac_cpp='$CPP $CPPFLAGS'
7324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7327
7328 fi
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7330 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7331 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7332 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7333 CFLAGS="$SAVE_CFLAGS"
7334 fi
7335 ;;
7336 sparc*-*solaris*)
7337 # Find out which ABI we are using.
7338 echo 'int i;' > conftest.$ac_ext
7339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7340 (eval $ac_compile) 2>&5
7341 ac_status=$?
7342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7343 test $ac_status = 0; }; then
7344 case `/usr/bin/file conftest.o` in
7345 *64-bit*)
7346 case $lt_cv_prog_gnu_ld in
7347 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7348 *)
7349 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7350 LD="${LD-ld} -64"
7351 fi
7352 ;;
7353 esac
7354 ;;
7355 esac
7356 fi
7357 rm -rf conftest*
7358 ;;
7359 esac
7360
7361 need_locks="$enable_libtool_lock"
7362
7363
7364 case $host_os in
7365 rhapsody* | darwin*)
7366 if test -n "$ac_tool_prefix"; then
7367 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7368 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7372 $as_echo_n "(cached) " >&6
7373 else
7374 if test -n "$DSYMUTIL"; then
7375 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7376 else
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7379 do
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7384 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 break 2
7387 fi
7388 done
7389 done
7390 IFS=$as_save_IFS
7391
7392 fi
7393 fi
7394 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7395 if test -n "$DSYMUTIL"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7397 $as_echo "$DSYMUTIL" >&6; }
7398 else
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7401 fi
7402
7403
7404 fi
7405 if test -z "$ac_cv_prog_DSYMUTIL"; then
7406 ac_ct_DSYMUTIL=$DSYMUTIL
7407 # Extract the first word of "dsymutil", so it can be a program name with args.
7408 set dummy dsymutil; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 if test -n "$ac_ct_DSYMUTIL"; then
7415 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7427 fi
7428 done
7429 done
7430 IFS=$as_save_IFS
7431
7432 fi
7433 fi
7434 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7435 if test -n "$ac_ct_DSYMUTIL"; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7437 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7438 else
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7441 fi
7442
7443 if test "x$ac_ct_DSYMUTIL" = x; then
7444 DSYMUTIL=":"
7445 else
7446 case $cross_compiling:$ac_tool_warned in
7447 yes:)
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7450 ac_tool_warned=yes ;;
7451 esac
7452 DSYMUTIL=$ac_ct_DSYMUTIL
7453 fi
7454 else
7455 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7456 fi
7457
7458 if test -n "$ac_tool_prefix"; then
7459 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7460 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if ${ac_cv_prog_NMEDIT+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 if test -n "$NMEDIT"; then
7467 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480 done
7481 done
7482 IFS=$as_save_IFS
7483
7484 fi
7485 fi
7486 NMEDIT=$ac_cv_prog_NMEDIT
7487 if test -n "$NMEDIT"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7489 $as_echo "$NMEDIT" >&6; }
7490 else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7493 fi
7494
7495
7496 fi
7497 if test -z "$ac_cv_prog_NMEDIT"; then
7498 ac_ct_NMEDIT=$NMEDIT
7499 # Extract the first word of "nmedit", so it can be a program name with args.
7500 set dummy nmedit; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7504 $as_echo_n "(cached) " >&6
7505 else
7506 if test -n "$ac_ct_NMEDIT"; then
7507 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7508 else
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 break 2
7519 fi
7520 done
7521 done
7522 IFS=$as_save_IFS
7523
7524 fi
7525 fi
7526 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7527 if test -n "$ac_ct_NMEDIT"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7529 $as_echo "$ac_ct_NMEDIT" >&6; }
7530 else
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7533 fi
7534
7535 if test "x$ac_ct_NMEDIT" = x; then
7536 NMEDIT=":"
7537 else
7538 case $cross_compiling:$ac_tool_warned in
7539 yes:)
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7542 ac_tool_warned=yes ;;
7543 esac
7544 NMEDIT=$ac_ct_NMEDIT
7545 fi
7546 else
7547 NMEDIT="$ac_cv_prog_NMEDIT"
7548 fi
7549
7550 if test -n "$ac_tool_prefix"; then
7551 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7552 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554 $as_echo_n "checking for $ac_word... " >&6; }
7555 if ${ac_cv_prog_LIPO+:} false; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 if test -n "$LIPO"; then
7559 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7560 else
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7563 do
7564 IFS=$as_save_IFS
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7568 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 break 2
7571 fi
7572 done
7573 done
7574 IFS=$as_save_IFS
7575
7576 fi
7577 fi
7578 LIPO=$ac_cv_prog_LIPO
7579 if test -n "$LIPO"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7581 $as_echo "$LIPO" >&6; }
7582 else
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7585 fi
7586
7587
7588 fi
7589 if test -z "$ac_cv_prog_LIPO"; then
7590 ac_ct_LIPO=$LIPO
7591 # Extract the first word of "lipo", so it can be a program name with args.
7592 set dummy lipo; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 $as_echo_n "checking for $ac_word... " >&6; }
7595 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 if test -n "$ac_ct_LIPO"; then
7599 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7600 else
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7603 do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7608 ac_cv_prog_ac_ct_LIPO="lipo"
7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612 done
7613 done
7614 IFS=$as_save_IFS
7615
7616 fi
7617 fi
7618 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7619 if test -n "$ac_ct_LIPO"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7621 $as_echo "$ac_ct_LIPO" >&6; }
7622 else
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7625 fi
7626
7627 if test "x$ac_ct_LIPO" = x; then
7628 LIPO=":"
7629 else
7630 case $cross_compiling:$ac_tool_warned in
7631 yes:)
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7634 ac_tool_warned=yes ;;
7635 esac
7636 LIPO=$ac_ct_LIPO
7637 fi
7638 else
7639 LIPO="$ac_cv_prog_LIPO"
7640 fi
7641
7642 if test -n "$ac_tool_prefix"; then
7643 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7644 set dummy ${ac_tool_prefix}otool; ac_word=$2
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646 $as_echo_n "checking for $ac_word... " >&6; }
7647 if ${ac_cv_prog_OTOOL+:} false; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 if test -n "$OTOOL"; then
7651 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7652 else
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656 IFS=$as_save_IFS
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 break 2
7663 fi
7664 done
7665 done
7666 IFS=$as_save_IFS
7667
7668 fi
7669 fi
7670 OTOOL=$ac_cv_prog_OTOOL
7671 if test -n "$OTOOL"; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7673 $as_echo "$OTOOL" >&6; }
7674 else
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7677 fi
7678
7679
7680 fi
7681 if test -z "$ac_cv_prog_OTOOL"; then
7682 ac_ct_OTOOL=$OTOOL
7683 # Extract the first word of "otool", so it can be a program name with args.
7684 set dummy otool; ac_word=$2
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686 $as_echo_n "checking for $ac_word... " >&6; }
7687 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7688 $as_echo_n "(cached) " >&6
7689 else
7690 if test -n "$ac_ct_OTOOL"; then
7691 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7692 else
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7695 do
7696 IFS=$as_save_IFS
7697 test -z "$as_dir" && as_dir=.
7698 for ac_exec_ext in '' $ac_executable_extensions; do
7699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7700 ac_cv_prog_ac_ct_OTOOL="otool"
7701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702 break 2
7703 fi
7704 done
7705 done
7706 IFS=$as_save_IFS
7707
7708 fi
7709 fi
7710 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7711 if test -n "$ac_ct_OTOOL"; then
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7713 $as_echo "$ac_ct_OTOOL" >&6; }
7714 else
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7717 fi
7718
7719 if test "x$ac_ct_OTOOL" = x; then
7720 OTOOL=":"
7721 else
7722 case $cross_compiling:$ac_tool_warned in
7723 yes:)
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7726 ac_tool_warned=yes ;;
7727 esac
7728 OTOOL=$ac_ct_OTOOL
7729 fi
7730 else
7731 OTOOL="$ac_cv_prog_OTOOL"
7732 fi
7733
7734 if test -n "$ac_tool_prefix"; then
7735 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7736 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if ${ac_cv_prog_OTOOL64+:} false; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742 if test -n "$OTOOL64"; then
7743 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7747 do
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7752 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 break 2
7755 fi
7756 done
7757 done
7758 IFS=$as_save_IFS
7759
7760 fi
7761 fi
7762 OTOOL64=$ac_cv_prog_OTOOL64
7763 if test -n "$OTOOL64"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7765 $as_echo "$OTOOL64" >&6; }
7766 else
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7769 fi
7770
7771
7772 fi
7773 if test -z "$ac_cv_prog_OTOOL64"; then
7774 ac_ct_OTOOL64=$OTOOL64
7775 # Extract the first word of "otool64", so it can be a program name with args.
7776 set dummy otool64; ac_word=$2
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7778 $as_echo_n "checking for $ac_word... " >&6; }
7779 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7780 $as_echo_n "(cached) " >&6
7781 else
7782 if test -n "$ac_ct_OTOOL64"; then
7783 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7784 else
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7787 do
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7792 ac_cv_prog_ac_ct_OTOOL64="otool64"
7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 break 2
7795 fi
7796 done
7797 done
7798 IFS=$as_save_IFS
7799
7800 fi
7801 fi
7802 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7803 if test -n "$ac_ct_OTOOL64"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7805 $as_echo "$ac_ct_OTOOL64" >&6; }
7806 else
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 $as_echo "no" >&6; }
7809 fi
7810
7811 if test "x$ac_ct_OTOOL64" = x; then
7812 OTOOL64=":"
7813 else
7814 case $cross_compiling:$ac_tool_warned in
7815 yes:)
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7818 ac_tool_warned=yes ;;
7819 esac
7820 OTOOL64=$ac_ct_OTOOL64
7821 fi
7822 else
7823 OTOOL64="$ac_cv_prog_OTOOL64"
7824 fi
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7853 $as_echo_n "checking for -single_module linker flag... " >&6; }
7854 if ${lt_cv_apple_cc_single_mod+:} false; then :
7855 $as_echo_n "(cached) " >&6
7856 else
7857 lt_cv_apple_cc_single_mod=no
7858 if test -z "${LT_MULTI_MODULE}"; then
7859 # By default we will add the -single_module flag. You can override
7860 # by either setting the environment variable LT_MULTI_MODULE
7861 # non-empty at configure time, or by adding -multi_module to the
7862 # link flags.
7863 rm -rf libconftest.dylib*
7864 echo "int foo(void){return 1;}" > conftest.c
7865 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7866 -dynamiclib -Wl,-single_module conftest.c" >&5
7867 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7868 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7869 _lt_result=$?
7870 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7871 lt_cv_apple_cc_single_mod=yes
7872 else
7873 cat conftest.err >&5
7874 fi
7875 rm -rf libconftest.dylib*
7876 rm -f conftest.*
7877 fi
7878 fi
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7880 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7882 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7883 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 lt_cv_ld_exported_symbols_list=no
7887 save_LDFLAGS=$LDFLAGS
7888 echo "_main" > conftest.sym
7889 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h. */
7892
7893 int
7894 main ()
7895 {
7896
7897 ;
7898 return 0;
7899 }
7900 _ACEOF
7901 if ac_fn_c_try_link "$LINENO"; then :
7902 lt_cv_ld_exported_symbols_list=yes
7903 else
7904 lt_cv_ld_exported_symbols_list=no
7905 fi
7906 rm -f core conftest.err conftest.$ac_objext \
7907 conftest$ac_exeext conftest.$ac_ext
7908 LDFLAGS="$save_LDFLAGS"
7909
7910 fi
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7912 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7914 $as_echo_n "checking for -force_load linker flag... " >&6; }
7915 if ${lt_cv_ld_force_load+:} false; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 lt_cv_ld_force_load=no
7919 cat > conftest.c << _LT_EOF
7920 int forced_loaded() { return 2;}
7921 _LT_EOF
7922 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7923 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7924 echo "$AR cru libconftest.a conftest.o" >&5
7925 $AR cru libconftest.a conftest.o 2>&5
7926 cat > conftest.c << _LT_EOF
7927 int main() { return 0;}
7928 _LT_EOF
7929 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7930 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7931 _lt_result=$?
7932 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7933 lt_cv_ld_force_load=yes
7934 else
7935 cat conftest.err >&5
7936 fi
7937 rm -f conftest.err libconftest.a conftest conftest.c
7938 rm -rf conftest.dSYM
7939
7940 fi
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7942 $as_echo "$lt_cv_ld_force_load" >&6; }
7943 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7944 # build without first building modern cctools / linker.
7945 case $host_cpu-$host_os in
7946 *-rhapsody* | *-darwin1.[012])
7947 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7948 *-darwin1.*)
7949 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7950 *-darwin*)
7951 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7952 # deployment target is forced to an earlier version.
7953 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7954 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7955 ;;
7956 10.[012][,.]*)
7957 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7958 ;;
7959 *)
7960 ;;
7961 esac
7962 ;;
7963 esac
7964 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7965 _lt_dar_single_mod='$single_module'
7966 fi
7967 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7968 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7969 else
7970 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7971 fi
7972 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7973 _lt_dsymutil='~$DSYMUTIL $lib || :'
7974 else
7975 _lt_dsymutil=
7976 fi
7977 ;;
7978 esac
7979
7980 for ac_header in dlfcn.h
7981 do :
7982 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7983 "
7984 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7985 cat >>confdefs.h <<_ACEOF
7986 #define HAVE_DLFCN_H 1
7987 _ACEOF
7988
7989 fi
7990
7991 done
7992
7993
7994
7995
7996
7997
7998 # Set options
7999
8000
8001
8002 enable_dlopen=no
8003
8004
8005 enable_win32_dll=no
8006
8007
8008 # Check whether --enable-shared was given.
8009 if test "${enable_shared+set}" = set; then :
8010 enableval=$enable_shared; p=${PACKAGE-default}
8011 case $enableval in
8012 yes) enable_shared=yes ;;
8013 no) enable_shared=no ;;
8014 *)
8015 enable_shared=no
8016 # Look at the argument we got. We use all the common list separators.
8017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8018 for pkg in $enableval; do
8019 IFS="$lt_save_ifs"
8020 if test "X$pkg" = "X$p"; then
8021 enable_shared=yes
8022 fi
8023 done
8024 IFS="$lt_save_ifs"
8025 ;;
8026 esac
8027 else
8028 enable_shared=yes
8029 fi
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039 # Check whether --enable-static was given.
8040 if test "${enable_static+set}" = set; then :
8041 enableval=$enable_static; p=${PACKAGE-default}
8042 case $enableval in
8043 yes) enable_static=yes ;;
8044 no) enable_static=no ;;
8045 *)
8046 enable_static=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_static=yes
8053 fi
8054 done
8055 IFS="$lt_save_ifs"
8056 ;;
8057 esac
8058 else
8059 enable_static=yes
8060 fi
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071 # Check whether --with-pic was given.
8072 if test "${with_pic+set}" = set; then :
8073 withval=$with_pic; pic_mode="$withval"
8074 else
8075 pic_mode=default
8076 fi
8077
8078
8079 test -z "$pic_mode" && pic_mode=default
8080
8081
8082
8083
8084
8085
8086
8087 # Check whether --enable-fast-install was given.
8088 if test "${enable_fast_install+set}" = set; then :
8089 enableval=$enable_fast_install; p=${PACKAGE-default}
8090 case $enableval in
8091 yes) enable_fast_install=yes ;;
8092 no) enable_fast_install=no ;;
8093 *)
8094 enable_fast_install=no
8095 # Look at the argument we got. We use all the common list separators.
8096 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8097 for pkg in $enableval; do
8098 IFS="$lt_save_ifs"
8099 if test "X$pkg" = "X$p"; then
8100 enable_fast_install=yes
8101 fi
8102 done
8103 IFS="$lt_save_ifs"
8104 ;;
8105 esac
8106 else
8107 enable_fast_install=yes
8108 fi
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120 # This can be used to rebuild libtool when needed
8121 LIBTOOL_DEPS="$ltmain"
8122
8123 # Always use our own libtool.
8124 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151 test -z "$LN_S" && LN_S="ln -s"
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166 if test -n "${ZSH_VERSION+set}" ; then
8167 setopt NO_GLOB_SUBST
8168 fi
8169
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8171 $as_echo_n "checking for objdir... " >&6; }
8172 if ${lt_cv_objdir+:} false; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 rm -f .libs 2>/dev/null
8176 mkdir .libs 2>/dev/null
8177 if test -d .libs; then
8178 lt_cv_objdir=.libs
8179 else
8180 # MS-DOS does not allow filenames that begin with a dot.
8181 lt_cv_objdir=_libs
8182 fi
8183 rmdir .libs 2>/dev/null
8184 fi
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8186 $as_echo "$lt_cv_objdir" >&6; }
8187 objdir=$lt_cv_objdir
8188
8189
8190
8191
8192
8193 cat >>confdefs.h <<_ACEOF
8194 #define LT_OBJDIR "$lt_cv_objdir/"
8195 _ACEOF
8196
8197
8198
8199
8200 case $host_os in
8201 aix3*)
8202 # AIX sometimes has problems with the GCC collect2 program. For some
8203 # reason, if we set the COLLECT_NAMES environment variable, the problems
8204 # vanish in a puff of smoke.
8205 if test "X${COLLECT_NAMES+set}" != Xset; then
8206 COLLECT_NAMES=
8207 export COLLECT_NAMES
8208 fi
8209 ;;
8210 esac
8211
8212 # Global variables:
8213 ofile=libtool
8214 can_build_shared=yes
8215
8216 # All known linkers require a `.a' archive for static linking (except MSVC,
8217 # which needs '.lib').
8218 libext=a
8219
8220 with_gnu_ld="$lt_cv_prog_gnu_ld"
8221
8222 old_CC="$CC"
8223 old_CFLAGS="$CFLAGS"
8224
8225 # Set sane defaults for various variables
8226 test -z "$CC" && CC=cc
8227 test -z "$LTCC" && LTCC=$CC
8228 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8229 test -z "$LD" && LD=ld
8230 test -z "$ac_objext" && ac_objext=o
8231
8232 for cc_temp in $compiler""; do
8233 case $cc_temp in
8234 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8235 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8236 \-*) ;;
8237 *) break;;
8238 esac
8239 done
8240 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8241
8242
8243 # Only perform the check for file, if the check method requires it
8244 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8245 case $deplibs_check_method in
8246 file_magic*)
8247 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8249 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8250 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 case $MAGIC_CMD in
8254 [\\/*] | ?:[\\/]*)
8255 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8256 ;;
8257 *)
8258 lt_save_MAGIC_CMD="$MAGIC_CMD"
8259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8260 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8261 for ac_dir in $ac_dummy; do
8262 IFS="$lt_save_ifs"
8263 test -z "$ac_dir" && ac_dir=.
8264 if test -f $ac_dir/${ac_tool_prefix}file; then
8265 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8266 if test -n "$file_magic_test_file"; then
8267 case $deplibs_check_method in
8268 "file_magic "*)
8269 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8272 $EGREP "$file_magic_regex" > /dev/null; then
8273 :
8274 else
8275 cat <<_LT_EOF 1>&2
8276
8277 *** Warning: the command libtool uses to detect shared libraries,
8278 *** $file_magic_cmd, produces output that libtool cannot recognize.
8279 *** The result is that libtool may fail to recognize shared libraries
8280 *** as such. This will affect the creation of libtool libraries that
8281 *** depend on shared libraries, but programs linked with such libtool
8282 *** libraries will work regardless of this problem. Nevertheless, you
8283 *** may want to report the problem to your system manager and/or to
8284 *** bug-libtool@gnu.org
8285
8286 _LT_EOF
8287 fi ;;
8288 esac
8289 fi
8290 break
8291 fi
8292 done
8293 IFS="$lt_save_ifs"
8294 MAGIC_CMD="$lt_save_MAGIC_CMD"
8295 ;;
8296 esac
8297 fi
8298
8299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8300 if test -n "$MAGIC_CMD"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8302 $as_echo "$MAGIC_CMD" >&6; }
8303 else
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8306 fi
8307
8308
8309
8310
8311
8312 if test -z "$lt_cv_path_MAGIC_CMD"; then
8313 if test -n "$ac_tool_prefix"; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8315 $as_echo_n "checking for file... " >&6; }
8316 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 case $MAGIC_CMD in
8320 [\\/*] | ?:[\\/]*)
8321 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8322 ;;
8323 *)
8324 lt_save_MAGIC_CMD="$MAGIC_CMD"
8325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8326 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8327 for ac_dir in $ac_dummy; do
8328 IFS="$lt_save_ifs"
8329 test -z "$ac_dir" && ac_dir=.
8330 if test -f $ac_dir/file; then
8331 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8332 if test -n "$file_magic_test_file"; then
8333 case $deplibs_check_method in
8334 "file_magic "*)
8335 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8337 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8338 $EGREP "$file_magic_regex" > /dev/null; then
8339 :
8340 else
8341 cat <<_LT_EOF 1>&2
8342
8343 *** Warning: the command libtool uses to detect shared libraries,
8344 *** $file_magic_cmd, produces output that libtool cannot recognize.
8345 *** The result is that libtool may fail to recognize shared libraries
8346 *** as such. This will affect the creation of libtool libraries that
8347 *** depend on shared libraries, but programs linked with such libtool
8348 *** libraries will work regardless of this problem. Nevertheless, you
8349 *** may want to report the problem to your system manager and/or to
8350 *** bug-libtool@gnu.org
8351
8352 _LT_EOF
8353 fi ;;
8354 esac
8355 fi
8356 break
8357 fi
8358 done
8359 IFS="$lt_save_ifs"
8360 MAGIC_CMD="$lt_save_MAGIC_CMD"
8361 ;;
8362 esac
8363 fi
8364
8365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8366 if test -n "$MAGIC_CMD"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8368 $as_echo "$MAGIC_CMD" >&6; }
8369 else
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8372 fi
8373
8374
8375 else
8376 MAGIC_CMD=:
8377 fi
8378 fi
8379
8380 fi
8381 ;;
8382 esac
8383
8384 # Use C for the default configuration in the libtool script
8385
8386 lt_save_CC="$CC"
8387 ac_ext=c
8388 ac_cpp='$CPP $CPPFLAGS'
8389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8392
8393
8394 # Source file extension for C test sources.
8395 ac_ext=c
8396
8397 # Object file extension for compiled C test sources.
8398 objext=o
8399 objext=$objext
8400
8401 # Code to be used in simple compile tests
8402 lt_simple_compile_test_code="int some_variable = 0;"
8403
8404 # Code to be used in simple link tests
8405 lt_simple_link_test_code='int main(){return(0);}'
8406
8407
8408
8409
8410
8411
8412
8413 # If no C compiler was specified, use CC.
8414 LTCC=${LTCC-"$CC"}
8415
8416 # If no C compiler flags were specified, use CFLAGS.
8417 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8418
8419 # Allow CC to be a program name with arguments.
8420 compiler=$CC
8421
8422 # Save the default compiler, since it gets overwritten when the other
8423 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8424 compiler_DEFAULT=$CC
8425
8426 # save warnings/boilerplate of simple test code
8427 ac_outfile=conftest.$ac_objext
8428 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8429 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8430 _lt_compiler_boilerplate=`cat conftest.err`
8431 $RM conftest*
8432
8433 ac_outfile=conftest.$ac_objext
8434 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8435 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8436 _lt_linker_boilerplate=`cat conftest.err`
8437 $RM -r conftest*
8438
8439
8440 ## CAVEAT EMPTOR:
8441 ## There is no encapsulation within the following macros, do not change
8442 ## the running order or otherwise move them around unless you know exactly
8443 ## what you are doing...
8444 if test -n "$compiler"; then
8445
8446 lt_prog_compiler_no_builtin_flag=
8447
8448 if test "$GCC" = yes; then
8449 case $cc_basename in
8450 nvcc*)
8451 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8452 *)
8453 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8454 esac
8455
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8457 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8458 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8459 $as_echo_n "(cached) " >&6
8460 else
8461 lt_cv_prog_compiler_rtti_exceptions=no
8462 ac_outfile=conftest.$ac_objext
8463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8464 lt_compiler_flag="-fno-rtti -fno-exceptions"
8465 # Insert the option either (1) after the last *FLAGS variable, or
8466 # (2) before a word containing "conftest.", or (3) at the end.
8467 # Note that $ac_compile itself does not contain backslashes and begins
8468 # with a dollar sign (not a hyphen), so the echo should work correctly.
8469 # The option is referenced via a variable to avoid confusing sed.
8470 lt_compile=`echo "$ac_compile" | $SED \
8471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8473 -e 's:$: $lt_compiler_flag:'`
8474 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8475 (eval "$lt_compile" 2>conftest.err)
8476 ac_status=$?
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 if (exit $ac_status) && test -s "$ac_outfile"; then
8480 # The compiler can only warn and ignore the option if not recognized
8481 # So say no if there are warnings other than the usual output.
8482 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8484 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8485 lt_cv_prog_compiler_rtti_exceptions=yes
8486 fi
8487 fi
8488 $RM conftest*
8489
8490 fi
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8492 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8493
8494 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8495 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8496 else
8497 :
8498 fi
8499
8500 fi
8501
8502
8503
8504
8505
8506
8507 lt_prog_compiler_wl=
8508 lt_prog_compiler_pic=
8509 lt_prog_compiler_static=
8510
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8512 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8513
8514 if test "$GCC" = yes; then
8515 lt_prog_compiler_wl='-Wl,'
8516 lt_prog_compiler_static='-static'
8517
8518 case $host_os in
8519 aix*)
8520 # All AIX code is PIC.
8521 if test "$host_cpu" = ia64; then
8522 # AIX 5 now supports IA64 processor
8523 lt_prog_compiler_static='-Bstatic'
8524 fi
8525 lt_prog_compiler_pic='-fPIC'
8526 ;;
8527
8528 amigaos*)
8529 case $host_cpu in
8530 powerpc)
8531 # see comment about AmigaOS4 .so support
8532 lt_prog_compiler_pic='-fPIC'
8533 ;;
8534 m68k)
8535 # FIXME: we need at least 68020 code to build shared libraries, but
8536 # adding the `-m68020' flag to GCC prevents building anything better,
8537 # like `-m68040'.
8538 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8539 ;;
8540 esac
8541 ;;
8542
8543 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8544 # PIC is the default for these OSes.
8545 ;;
8546
8547 mingw* | cygwin* | pw32* | os2* | cegcc*)
8548 # This hack is so that the source file can tell whether it is being
8549 # built for inclusion in a dll (and should export symbols for example).
8550 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8551 # (--disable-auto-import) libraries
8552 lt_prog_compiler_pic='-DDLL_EXPORT'
8553 ;;
8554
8555 darwin* | rhapsody*)
8556 # PIC is the default on this platform
8557 # Common symbols not allowed in MH_DYLIB files
8558 lt_prog_compiler_pic='-fno-common'
8559 ;;
8560
8561 haiku*)
8562 # PIC is the default for Haiku.
8563 # The "-static" flag exists, but is broken.
8564 lt_prog_compiler_static=
8565 ;;
8566
8567 hpux*)
8568 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8569 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8570 # sets the default TLS model and affects inlining.
8571 case $host_cpu in
8572 hppa*64*)
8573 # +Z the default
8574 ;;
8575 *)
8576 lt_prog_compiler_pic='-fPIC'
8577 ;;
8578 esac
8579 ;;
8580
8581 interix[3-9]*)
8582 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8583 # Instead, we relocate shared libraries at runtime.
8584 ;;
8585
8586 msdosdjgpp*)
8587 # Just because we use GCC doesn't mean we suddenly get shared libraries
8588 # on systems that don't support them.
8589 lt_prog_compiler_can_build_shared=no
8590 enable_shared=no
8591 ;;
8592
8593 *nto* | *qnx*)
8594 # QNX uses GNU C++, but need to define -shared option too, otherwise
8595 # it will coredump.
8596 lt_prog_compiler_pic='-fPIC -shared'
8597 ;;
8598
8599 sysv4*MP*)
8600 if test -d /usr/nec; then
8601 lt_prog_compiler_pic=-Kconform_pic
8602 fi
8603 ;;
8604
8605 *)
8606 lt_prog_compiler_pic='-fPIC'
8607 ;;
8608 esac
8609
8610 case $cc_basename in
8611 nvcc*) # Cuda Compiler Driver 2.2
8612 lt_prog_compiler_wl='-Xlinker '
8613 lt_prog_compiler_pic='-Xcompiler -fPIC'
8614 ;;
8615 esac
8616 else
8617 # PORTME Check for flag to pass linker flags through the system compiler.
8618 case $host_os in
8619 aix*)
8620 lt_prog_compiler_wl='-Wl,'
8621 if test "$host_cpu" = ia64; then
8622 # AIX 5 now supports IA64 processor
8623 lt_prog_compiler_static='-Bstatic'
8624 else
8625 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8626 fi
8627 ;;
8628
8629 mingw* | cygwin* | pw32* | os2* | cegcc*)
8630 # This hack is so that the source file can tell whether it is being
8631 # built for inclusion in a dll (and should export symbols for example).
8632 lt_prog_compiler_pic='-DDLL_EXPORT'
8633 ;;
8634
8635 hpux9* | hpux10* | hpux11*)
8636 lt_prog_compiler_wl='-Wl,'
8637 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8638 # not for PA HP-UX.
8639 case $host_cpu in
8640 hppa*64*|ia64*)
8641 # +Z the default
8642 ;;
8643 *)
8644 lt_prog_compiler_pic='+Z'
8645 ;;
8646 esac
8647 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8648 lt_prog_compiler_static='${wl}-a ${wl}archive'
8649 ;;
8650
8651 irix5* | irix6* | nonstopux*)
8652 lt_prog_compiler_wl='-Wl,'
8653 # PIC (with -KPIC) is the default.
8654 lt_prog_compiler_static='-non_shared'
8655 ;;
8656
8657 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8658 case $cc_basename in
8659 # old Intel for x86_64 which still supported -KPIC.
8660 ecc*)
8661 lt_prog_compiler_wl='-Wl,'
8662 lt_prog_compiler_pic='-KPIC'
8663 lt_prog_compiler_static='-static'
8664 ;;
8665 # icc used to be incompatible with GCC.
8666 # ICC 10 doesn't accept -KPIC any more.
8667 icc* | ifort*)
8668 lt_prog_compiler_wl='-Wl,'
8669 lt_prog_compiler_pic='-fPIC'
8670 lt_prog_compiler_static='-static'
8671 ;;
8672 # Lahey Fortran 8.1.
8673 lf95*)
8674 lt_prog_compiler_wl='-Wl,'
8675 lt_prog_compiler_pic='--shared'
8676 lt_prog_compiler_static='--static'
8677 ;;
8678 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8679 # Portland Group compilers (*not* the Pentium gcc compiler,
8680 # which looks to be a dead project)
8681 lt_prog_compiler_wl='-Wl,'
8682 lt_prog_compiler_pic='-fpic'
8683 lt_prog_compiler_static='-Bstatic'
8684 ;;
8685 ccc*)
8686 lt_prog_compiler_wl='-Wl,'
8687 # All Alpha code is PIC.
8688 lt_prog_compiler_static='-non_shared'
8689 ;;
8690 xl* | bgxl* | bgf* | mpixl*)
8691 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_pic='-qpic'
8694 lt_prog_compiler_static='-qstaticlink'
8695 ;;
8696 *)
8697 case `$CC -V 2>&1 | sed 5q` in
8698 *Sun\ F* | *Sun*Fortran*)
8699 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8700 lt_prog_compiler_pic='-KPIC'
8701 lt_prog_compiler_static='-Bstatic'
8702 lt_prog_compiler_wl=''
8703 ;;
8704 *Sun\ C*)
8705 # Sun C 5.9
8706 lt_prog_compiler_pic='-KPIC'
8707 lt_prog_compiler_static='-Bstatic'
8708 lt_prog_compiler_wl='-Wl,'
8709 ;;
8710 esac
8711 ;;
8712 esac
8713 ;;
8714
8715 newsos6)
8716 lt_prog_compiler_pic='-KPIC'
8717 lt_prog_compiler_static='-Bstatic'
8718 ;;
8719
8720 *nto* | *qnx*)
8721 # QNX uses GNU C++, but need to define -shared option too, otherwise
8722 # it will coredump.
8723 lt_prog_compiler_pic='-fPIC -shared'
8724 ;;
8725
8726 osf3* | osf4* | osf5*)
8727 lt_prog_compiler_wl='-Wl,'
8728 # All OSF/1 code is PIC.
8729 lt_prog_compiler_static='-non_shared'
8730 ;;
8731
8732 rdos*)
8733 lt_prog_compiler_static='-non_shared'
8734 ;;
8735
8736 solaris*)
8737 lt_prog_compiler_pic='-KPIC'
8738 lt_prog_compiler_static='-Bstatic'
8739 case $cc_basename in
8740 f77* | f90* | f95*)
8741 lt_prog_compiler_wl='-Qoption ld ';;
8742 *)
8743 lt_prog_compiler_wl='-Wl,';;
8744 esac
8745 ;;
8746
8747 sunos4*)
8748 lt_prog_compiler_wl='-Qoption ld '
8749 lt_prog_compiler_pic='-PIC'
8750 lt_prog_compiler_static='-Bstatic'
8751 ;;
8752
8753 sysv4 | sysv4.2uw2* | sysv4.3*)
8754 lt_prog_compiler_wl='-Wl,'
8755 lt_prog_compiler_pic='-KPIC'
8756 lt_prog_compiler_static='-Bstatic'
8757 ;;
8758
8759 sysv4*MP*)
8760 if test -d /usr/nec ;then
8761 lt_prog_compiler_pic='-Kconform_pic'
8762 lt_prog_compiler_static='-Bstatic'
8763 fi
8764 ;;
8765
8766 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8767 lt_prog_compiler_wl='-Wl,'
8768 lt_prog_compiler_pic='-KPIC'
8769 lt_prog_compiler_static='-Bstatic'
8770 ;;
8771
8772 unicos*)
8773 lt_prog_compiler_wl='-Wl,'
8774 lt_prog_compiler_can_build_shared=no
8775 ;;
8776
8777 uts4*)
8778 lt_prog_compiler_pic='-pic'
8779 lt_prog_compiler_static='-Bstatic'
8780 ;;
8781
8782 *)
8783 lt_prog_compiler_can_build_shared=no
8784 ;;
8785 esac
8786 fi
8787
8788 case $host_os in
8789 # For platforms which do not support PIC, -DPIC is meaningless:
8790 *djgpp*)
8791 lt_prog_compiler_pic=
8792 ;;
8793 *)
8794 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8795 ;;
8796 esac
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8798 $as_echo "$lt_prog_compiler_pic" >&6; }
8799
8800
8801
8802
8803
8804
8805 #
8806 # Check to make sure the PIC flag actually works.
8807 #
8808 if test -n "$lt_prog_compiler_pic"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8810 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8811 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 lt_cv_prog_compiler_pic_works=no
8815 ac_outfile=conftest.$ac_objext
8816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8817 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8818 # Insert the option either (1) after the last *FLAGS variable, or
8819 # (2) before a word containing "conftest.", or (3) at the end.
8820 # Note that $ac_compile itself does not contain backslashes and begins
8821 # with a dollar sign (not a hyphen), so the echo should work correctly.
8822 # The option is referenced via a variable to avoid confusing sed.
8823 lt_compile=`echo "$ac_compile" | $SED \
8824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8826 -e 's:$: $lt_compiler_flag:'`
8827 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8828 (eval "$lt_compile" 2>conftest.err)
8829 ac_status=$?
8830 cat conftest.err >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 if (exit $ac_status) && test -s "$ac_outfile"; then
8833 # The compiler can only warn and ignore the option if not recognized
8834 # So say no if there are warnings other than the usual output.
8835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8837 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8838 lt_cv_prog_compiler_pic_works=yes
8839 fi
8840 fi
8841 $RM conftest*
8842
8843 fi
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8845 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8846
8847 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8848 case $lt_prog_compiler_pic in
8849 "" | " "*) ;;
8850 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8851 esac
8852 else
8853 lt_prog_compiler_pic=
8854 lt_prog_compiler_can_build_shared=no
8855 fi
8856
8857 fi
8858
8859
8860
8861
8862
8863
8864 #
8865 # Check to make sure the static flag actually works.
8866 #
8867 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8869 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8870 if ${lt_cv_prog_compiler_static_works+:} false; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 lt_cv_prog_compiler_static_works=no
8874 save_LDFLAGS="$LDFLAGS"
8875 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8876 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8877 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8878 # The linker can only warn and ignore the option if not recognized
8879 # So say no if there are warnings
8880 if test -s conftest.err; then
8881 # Append any errors to the config.log.
8882 cat conftest.err 1>&5
8883 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8885 if diff conftest.exp conftest.er2 >/dev/null; then
8886 lt_cv_prog_compiler_static_works=yes
8887 fi
8888 else
8889 lt_cv_prog_compiler_static_works=yes
8890 fi
8891 fi
8892 $RM -r conftest*
8893 LDFLAGS="$save_LDFLAGS"
8894
8895 fi
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8897 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8898
8899 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8900 :
8901 else
8902 lt_prog_compiler_static=
8903 fi
8904
8905
8906
8907
8908
8909
8910
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8912 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8913 if ${lt_cv_prog_compiler_c_o+:} false; then :
8914 $as_echo_n "(cached) " >&6
8915 else
8916 lt_cv_prog_compiler_c_o=no
8917 $RM -r conftest 2>/dev/null
8918 mkdir conftest
8919 cd conftest
8920 mkdir out
8921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8922
8923 lt_compiler_flag="-o out/conftest2.$ac_objext"
8924 # Insert the option either (1) after the last *FLAGS variable, or
8925 # (2) before a word containing "conftest.", or (3) at the end.
8926 # Note that $ac_compile itself does not contain backslashes and begins
8927 # with a dollar sign (not a hyphen), so the echo should work correctly.
8928 lt_compile=`echo "$ac_compile" | $SED \
8929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8931 -e 's:$: $lt_compiler_flag:'`
8932 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8933 (eval "$lt_compile" 2>out/conftest.err)
8934 ac_status=$?
8935 cat out/conftest.err >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8938 then
8939 # The compiler can only warn and ignore the option if not recognized
8940 # So say no if there are warnings
8941 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8942 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8943 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8944 lt_cv_prog_compiler_c_o=yes
8945 fi
8946 fi
8947 chmod u+w . 2>&5
8948 $RM conftest*
8949 # SGI C++ compiler will create directory out/ii_files/ for
8950 # template instantiation
8951 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8952 $RM out/* && rmdir out
8953 cd ..
8954 $RM -r conftest
8955 $RM conftest*
8956
8957 fi
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8959 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8960
8961
8962
8963
8964
8965
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8967 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8968 if ${lt_cv_prog_compiler_c_o+:} false; then :
8969 $as_echo_n "(cached) " >&6
8970 else
8971 lt_cv_prog_compiler_c_o=no
8972 $RM -r conftest 2>/dev/null
8973 mkdir conftest
8974 cd conftest
8975 mkdir out
8976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8977
8978 lt_compiler_flag="-o out/conftest2.$ac_objext"
8979 # Insert the option either (1) after the last *FLAGS variable, or
8980 # (2) before a word containing "conftest.", or (3) at the end.
8981 # Note that $ac_compile itself does not contain backslashes and begins
8982 # with a dollar sign (not a hyphen), so the echo should work correctly.
8983 lt_compile=`echo "$ac_compile" | $SED \
8984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8986 -e 's:$: $lt_compiler_flag:'`
8987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8988 (eval "$lt_compile" 2>out/conftest.err)
8989 ac_status=$?
8990 cat out/conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8993 then
8994 # The compiler can only warn and ignore the option if not recognized
8995 # So say no if there are warnings
8996 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8999 lt_cv_prog_compiler_c_o=yes
9000 fi
9001 fi
9002 chmod u+w . 2>&5
9003 $RM conftest*
9004 # SGI C++ compiler will create directory out/ii_files/ for
9005 # template instantiation
9006 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9007 $RM out/* && rmdir out
9008 cd ..
9009 $RM -r conftest
9010 $RM conftest*
9011
9012 fi
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9014 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9015
9016
9017
9018
9019 hard_links="nottested"
9020 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9021 # do not overwrite the value of need_locks provided by the user
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9023 $as_echo_n "checking if we can lock with hard links... " >&6; }
9024 hard_links=yes
9025 $RM conftest*
9026 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9027 touch conftest.a
9028 ln conftest.a conftest.b 2>&5 || hard_links=no
9029 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9031 $as_echo "$hard_links" >&6; }
9032 if test "$hard_links" = no; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9034 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9035 need_locks=warn
9036 fi
9037 else
9038 need_locks=no
9039 fi
9040
9041
9042
9043
9044
9045
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9047 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9048
9049 runpath_var=
9050 allow_undefined_flag=
9051 always_export_symbols=no
9052 archive_cmds=
9053 archive_expsym_cmds=
9054 compiler_needs_object=no
9055 enable_shared_with_static_runtimes=no
9056 export_dynamic_flag_spec=
9057 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9058 hardcode_automatic=no
9059 hardcode_direct=no
9060 hardcode_direct_absolute=no
9061 hardcode_libdir_flag_spec=
9062 hardcode_libdir_flag_spec_ld=
9063 hardcode_libdir_separator=
9064 hardcode_minus_L=no
9065 hardcode_shlibpath_var=unsupported
9066 inherit_rpath=no
9067 link_all_deplibs=unknown
9068 module_cmds=
9069 module_expsym_cmds=
9070 old_archive_from_new_cmds=
9071 old_archive_from_expsyms_cmds=
9072 thread_safe_flag_spec=
9073 whole_archive_flag_spec=
9074 # include_expsyms should be a list of space-separated symbols to be *always*
9075 # included in the symbol list
9076 include_expsyms=
9077 # exclude_expsyms can be an extended regexp of symbols to exclude
9078 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9079 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9080 # as well as any symbol that contains `d'.
9081 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9082 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9083 # platforms (ab)use it in PIC code, but their linkers get confused if
9084 # the symbol is explicitly referenced. Since portable code cannot
9085 # rely on this symbol name, it's probably fine to never include it in
9086 # preloaded symbol tables.
9087 # Exclude shared library initialization/finalization symbols.
9088 extract_expsyms_cmds=
9089
9090 case $host_os in
9091 cygwin* | mingw* | pw32* | cegcc*)
9092 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9093 # When not using gcc, we currently assume that we are using
9094 # Microsoft Visual C++.
9095 if test "$GCC" != yes; then
9096 with_gnu_ld=no
9097 fi
9098 ;;
9099 interix*)
9100 # we just hope/assume this is gcc and not c89 (= MSVC++)
9101 with_gnu_ld=yes
9102 ;;
9103 openbsd*)
9104 with_gnu_ld=no
9105 ;;
9106 esac
9107
9108 ld_shlibs=yes
9109
9110 # On some targets, GNU ld is compatible enough with the native linker
9111 # that we're better off using the native interface for both.
9112 lt_use_gnu_ld_interface=no
9113 if test "$with_gnu_ld" = yes; then
9114 case $host_os in
9115 aix*)
9116 # The AIX port of GNU ld has always aspired to compatibility
9117 # with the native linker. However, as the warning in the GNU ld
9118 # block says, versions before 2.19.5* couldn't really create working
9119 # shared libraries, regardless of the interface used.
9120 case `$LD -v 2>&1` in
9121 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9122 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9123 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9124 *)
9125 lt_use_gnu_ld_interface=yes
9126 ;;
9127 esac
9128 ;;
9129 *)
9130 lt_use_gnu_ld_interface=yes
9131 ;;
9132 esac
9133 fi
9134
9135 if test "$lt_use_gnu_ld_interface" = yes; then
9136 # If archive_cmds runs LD, not CC, wlarc should be empty
9137 wlarc='${wl}'
9138
9139 # Set some defaults for GNU ld with shared library support. These
9140 # are reset later if shared libraries are not supported. Putting them
9141 # here allows them to be overridden if necessary.
9142 runpath_var=LD_RUN_PATH
9143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9144 export_dynamic_flag_spec='${wl}--export-dynamic'
9145 # ancient GNU ld didn't support --whole-archive et. al.
9146 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9147 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9148 else
9149 whole_archive_flag_spec=
9150 fi
9151 supports_anon_versioning=no
9152 case `$LD -v 2>&1` in
9153 *GNU\ gold*) supports_anon_versioning=yes ;;
9154 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9155 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9156 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9157 *\ 2.11.*) ;; # other 2.11 versions
9158 *) supports_anon_versioning=yes ;;
9159 esac
9160
9161 # See if GNU ld supports shared libraries.
9162 case $host_os in
9163 aix[3-9]*)
9164 # On AIX/PPC, the GNU linker is very broken
9165 if test "$host_cpu" != ia64; then
9166 ld_shlibs=no
9167 cat <<_LT_EOF 1>&2
9168
9169 *** Warning: the GNU linker, at least up to release 2.19, is reported
9170 *** to be unable to reliably create shared libraries on AIX.
9171 *** Therefore, libtool is disabling shared libraries support. If you
9172 *** really care for shared libraries, you may want to install binutils
9173 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9174 *** You will then need to restart the configuration process.
9175
9176 _LT_EOF
9177 fi
9178 ;;
9179
9180 amigaos*)
9181 case $host_cpu in
9182 powerpc)
9183 # see comment about AmigaOS4 .so support
9184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9185 archive_expsym_cmds=''
9186 ;;
9187 m68k)
9188 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)'
9189 hardcode_libdir_flag_spec='-L$libdir'
9190 hardcode_minus_L=yes
9191 ;;
9192 esac
9193 ;;
9194
9195 beos*)
9196 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9197 allow_undefined_flag=unsupported
9198 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9199 # support --undefined. This deserves some investigation. FIXME
9200 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201 else
9202 ld_shlibs=no
9203 fi
9204 ;;
9205
9206 cygwin* | mingw* | pw32* | cegcc*)
9207 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9208 # as there is no search path for DLLs.
9209 hardcode_libdir_flag_spec='-L$libdir'
9210 export_dynamic_flag_spec='${wl}--export-all-symbols'
9211 allow_undefined_flag=unsupported
9212 always_export_symbols=no
9213 enable_shared_with_static_runtimes=yes
9214 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9215
9216 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9218 # If the export-symbols file already is a .def file (1st line
9219 # is EXPORTS), use it as is; otherwise, prepend...
9220 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9221 cp $export_symbols $output_objdir/$soname.def;
9222 else
9223 echo EXPORTS > $output_objdir/$soname.def;
9224 cat $export_symbols >> $output_objdir/$soname.def;
9225 fi~
9226 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9227 else
9228 ld_shlibs=no
9229 fi
9230 ;;
9231
9232 haiku*)
9233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9234 link_all_deplibs=yes
9235 ;;
9236
9237 interix[3-9]*)
9238 hardcode_direct=no
9239 hardcode_shlibpath_var=no
9240 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9241 export_dynamic_flag_spec='${wl}-E'
9242 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9243 # Instead, shared libraries are loaded at an image base (0x10000000 by
9244 # default) and relocated if they conflict, which is a slow very memory
9245 # consuming and fragmenting process. To avoid this, we pick a random,
9246 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9247 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9248 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9249 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'
9250 ;;
9251
9252 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9253 tmp_diet=no
9254 if test "$host_os" = linux-dietlibc; then
9255 case $cc_basename in
9256 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9257 esac
9258 fi
9259 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9260 && test "$tmp_diet" = no
9261 then
9262 tmp_addflag=' $pic_flag'
9263 tmp_sharedflag='-shared'
9264 case $cc_basename,$host_cpu in
9265 pgcc*) # Portland Group C compiler
9266 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'
9267 tmp_addflag=' $pic_flag'
9268 ;;
9269 pgf77* | pgf90* | pgf95* | pgfortran*)
9270 # Portland Group f77 and f90 compilers
9271 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'
9272 tmp_addflag=' $pic_flag -Mnomain' ;;
9273 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9274 tmp_addflag=' -i_dynamic' ;;
9275 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9276 tmp_addflag=' -i_dynamic -nofor_main' ;;
9277 ifc* | ifort*) # Intel Fortran compiler
9278 tmp_addflag=' -nofor_main' ;;
9279 lf95*) # Lahey Fortran 8.1
9280 whole_archive_flag_spec=
9281 tmp_sharedflag='--shared' ;;
9282 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9283 tmp_sharedflag='-qmkshrobj'
9284 tmp_addflag= ;;
9285 nvcc*) # Cuda Compiler Driver 2.2
9286 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'
9287 compiler_needs_object=yes
9288 ;;
9289 esac
9290 case `$CC -V 2>&1 | sed 5q` in
9291 *Sun\ C*) # Sun C 5.9
9292 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'
9293 compiler_needs_object=yes
9294 tmp_sharedflag='-G' ;;
9295 *Sun\ F*) # Sun Fortran 8.3
9296 tmp_sharedflag='-G' ;;
9297 esac
9298 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299
9300 if test "x$supports_anon_versioning" = xyes; then
9301 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9302 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9303 echo "local: *; };" >> $output_objdir/$libname.ver~
9304 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9305 fi
9306
9307 case $cc_basename in
9308 xlf* | bgf* | bgxlf* | mpixlf*)
9309 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9310 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9311 hardcode_libdir_flag_spec=
9312 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9313 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9314 if test "x$supports_anon_versioning" = xyes; then
9315 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9316 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9317 echo "local: *; };" >> $output_objdir/$libname.ver~
9318 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9319 fi
9320 ;;
9321 esac
9322 else
9323 ld_shlibs=no
9324 fi
9325 ;;
9326
9327 netbsd*)
9328 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9329 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9330 wlarc=
9331 else
9332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9334 fi
9335 ;;
9336
9337 solaris*)
9338 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9339 ld_shlibs=no
9340 cat <<_LT_EOF 1>&2
9341
9342 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9343 *** create shared libraries on Solaris systems. Therefore, libtool
9344 *** is disabling shared libraries support. We urge you to upgrade GNU
9345 *** binutils to release 2.9.1 or newer. Another option is to modify
9346 *** your PATH or compiler configuration so that the native linker is
9347 *** used, and then restart.
9348
9349 _LT_EOF
9350 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9353 else
9354 ld_shlibs=no
9355 fi
9356 ;;
9357
9358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9359 case `$LD -v 2>&1` in
9360 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9361 ld_shlibs=no
9362 cat <<_LT_EOF 1>&2
9363
9364 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9365 *** reliably create shared libraries on SCO systems. Therefore, libtool
9366 *** is disabling shared libraries support. We urge you to upgrade GNU
9367 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9368 *** your PATH or compiler configuration so that the native linker is
9369 *** used, and then restart.
9370
9371 _LT_EOF
9372 ;;
9373 *)
9374 # For security reasons, it is highly recommended that you always
9375 # use absolute paths for naming shared libraries, and exclude the
9376 # DT_RUNPATH tag from executables and libraries. But doing so
9377 # requires that you compile everything twice, which is a pain.
9378 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9379 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9381 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9382 else
9383 ld_shlibs=no
9384 fi
9385 ;;
9386 esac
9387 ;;
9388
9389 sunos4*)
9390 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9391 wlarc=
9392 hardcode_direct=yes
9393 hardcode_shlibpath_var=no
9394 ;;
9395
9396 *)
9397 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9400 else
9401 ld_shlibs=no
9402 fi
9403 ;;
9404 esac
9405
9406 if test "$ld_shlibs" = no; then
9407 runpath_var=
9408 hardcode_libdir_flag_spec=
9409 export_dynamic_flag_spec=
9410 whole_archive_flag_spec=
9411 fi
9412 else
9413 # PORTME fill in a description of your system's linker (not GNU ld)
9414 case $host_os in
9415 aix3*)
9416 allow_undefined_flag=unsupported
9417 always_export_symbols=yes
9418 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'
9419 # Note: this linker hardcodes the directories in LIBPATH if there
9420 # are no directories specified by -L.
9421 hardcode_minus_L=yes
9422 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9423 # Neither direct hardcoding nor static linking is supported with a
9424 # broken collect2.
9425 hardcode_direct=unsupported
9426 fi
9427 ;;
9428
9429 aix[4-9]*)
9430 if test "$host_cpu" = ia64; then
9431 # On IA64, the linker does run time linking by default, so we don't
9432 # have to do anything special.
9433 aix_use_runtimelinking=no
9434 exp_sym_flag='-Bexport'
9435 no_entry_flag=""
9436 else
9437 # If we're using GNU nm, then we don't want the "-C" option.
9438 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9439 # Also, AIX nm treats weak defined symbols like other global
9440 # defined symbols, whereas GNU nm marks them as "W".
9441 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9442 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'
9443 else
9444 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'
9445 fi
9446 aix_use_runtimelinking=no
9447
9448 # Test if we are trying to use run time linking or normal
9449 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9450 # need to do runtime linking.
9451 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9452 for ld_flag in $LDFLAGS; do
9453 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9454 aix_use_runtimelinking=yes
9455 break
9456 fi
9457 done
9458 ;;
9459 esac
9460
9461 exp_sym_flag='-bexport'
9462 no_entry_flag='-bnoentry'
9463 fi
9464
9465 # When large executables or shared objects are built, AIX ld can
9466 # have problems creating the table of contents. If linking a library
9467 # or program results in "error TOC overflow" add -mminimal-toc to
9468 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9469 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9470
9471 archive_cmds=''
9472 hardcode_direct=yes
9473 hardcode_direct_absolute=yes
9474 hardcode_libdir_separator=':'
9475 link_all_deplibs=yes
9476 file_list_spec='${wl}-f,'
9477
9478 if test "$GCC" = yes; then
9479 case $host_os in aix4.[012]|aix4.[012].*)
9480 # We only want to do this on AIX 4.2 and lower, the check
9481 # below for broken collect2 doesn't work under 4.3+
9482 collect2name=`${CC} -print-prog-name=collect2`
9483 if test -f "$collect2name" &&
9484 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9485 then
9486 # We have reworked collect2
9487 :
9488 else
9489 # We have old collect2
9490 hardcode_direct=unsupported
9491 # It fails to find uninstalled libraries when the uninstalled
9492 # path is not listed in the libpath. Setting hardcode_minus_L
9493 # to unsupported forces relinking
9494 hardcode_minus_L=yes
9495 hardcode_libdir_flag_spec='-L$libdir'
9496 hardcode_libdir_separator=
9497 fi
9498 ;;
9499 esac
9500 shared_flag='-shared'
9501 if test "$aix_use_runtimelinking" = yes; then
9502 shared_flag="$shared_flag "'${wl}-G'
9503 fi
9504 else
9505 # not using gcc
9506 if test "$host_cpu" = ia64; then
9507 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9508 # chokes on -Wl,-G. The following line is correct:
9509 shared_flag='-G'
9510 else
9511 if test "$aix_use_runtimelinking" = yes; then
9512 shared_flag='${wl}-G'
9513 else
9514 shared_flag='${wl}-bM:SRE'
9515 fi
9516 fi
9517 fi
9518
9519 export_dynamic_flag_spec='${wl}-bexpall'
9520 # It seems that -bexpall does not export symbols beginning with
9521 # underscore (_), so it is better to generate a list of symbols to export.
9522 always_export_symbols=yes
9523 if test "$aix_use_runtimelinking" = yes; then
9524 # Warning - without using the other runtime loading flags (-brtl),
9525 # -berok will link without error, but may produce a broken library.
9526 allow_undefined_flag='-berok'
9527 # Determine the default libpath from the value encoded in an
9528 # empty executable.
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9531
9532 int
9533 main ()
9534 {
9535
9536 ;
9537 return 0;
9538 }
9539 _ACEOF
9540 if ac_fn_c_try_link "$LINENO"; then :
9541
9542 lt_aix_libpath_sed='
9543 /Import File Strings/,/^$/ {
9544 /^0/ {
9545 s/^0 *\(.*\)$/\1/
9546 p
9547 }
9548 }'
9549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9550 # Check for a 64-bit object if we didn't find anything.
9551 if test -z "$aix_libpath"; then
9552 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9553 fi
9554 fi
9555 rm -f core conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
9557 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9558
9559 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9560 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"
9561 else
9562 if test "$host_cpu" = ia64; then
9563 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9564 allow_undefined_flag="-z nodefs"
9565 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"
9566 else
9567 # Determine the default libpath from the value encoded in an
9568 # empty executable.
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9571
9572 int
9573 main ()
9574 {
9575
9576 ;
9577 return 0;
9578 }
9579 _ACEOF
9580 if ac_fn_c_try_link "$LINENO"; then :
9581
9582 lt_aix_libpath_sed='
9583 /Import File Strings/,/^$/ {
9584 /^0/ {
9585 s/^0 *\(.*\)$/\1/
9586 p
9587 }
9588 }'
9589 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9590 # Check for a 64-bit object if we didn't find anything.
9591 if test -z "$aix_libpath"; then
9592 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9593 fi
9594 fi
9595 rm -f core conftest.err conftest.$ac_objext \
9596 conftest$ac_exeext conftest.$ac_ext
9597 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9598
9599 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9600 # Warning - without using the other run time loading flags,
9601 # -berok will link without error, but may produce a broken library.
9602 no_undefined_flag=' ${wl}-bernotok'
9603 allow_undefined_flag=' ${wl}-berok'
9604 if test "$with_gnu_ld" = yes; then
9605 # We only use this code for GNU lds that support --whole-archive.
9606 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9607 else
9608 # Exported symbols can be pulled into shared objects from archives
9609 whole_archive_flag_spec='$convenience'
9610 fi
9611 archive_cmds_need_lc=yes
9612 # This is similar to how AIX traditionally builds its shared libraries.
9613 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'
9614 fi
9615 fi
9616 ;;
9617
9618 amigaos*)
9619 case $host_cpu in
9620 powerpc)
9621 # see comment about AmigaOS4 .so support
9622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9623 archive_expsym_cmds=''
9624 ;;
9625 m68k)
9626 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)'
9627 hardcode_libdir_flag_spec='-L$libdir'
9628 hardcode_minus_L=yes
9629 ;;
9630 esac
9631 ;;
9632
9633 bsdi[45]*)
9634 export_dynamic_flag_spec=-rdynamic
9635 ;;
9636
9637 cygwin* | mingw* | pw32* | cegcc*)
9638 # When not using gcc, we currently assume that we are using
9639 # Microsoft Visual C++.
9640 # hardcode_libdir_flag_spec is actually meaningless, as there is
9641 # no search path for DLLs.
9642 hardcode_libdir_flag_spec=' '
9643 allow_undefined_flag=unsupported
9644 # Tell ltmain to make .lib files, not .a files.
9645 libext=lib
9646 # Tell ltmain to make .dll files, not .so files.
9647 shrext_cmds=".dll"
9648 # FIXME: Setting linknames here is a bad hack.
9649 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9650 # The linker will automatically build a .lib file if we build a DLL.
9651 old_archive_from_new_cmds='true'
9652 # FIXME: Should let the user specify the lib program.
9653 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9654 fix_srcfile_path='`cygpath -w "$srcfile"`'
9655 enable_shared_with_static_runtimes=yes
9656 ;;
9657
9658 darwin* | rhapsody*)
9659
9660
9661 archive_cmds_need_lc=no
9662 hardcode_direct=no
9663 hardcode_automatic=yes
9664 hardcode_shlibpath_var=unsupported
9665 if test "$lt_cv_ld_force_load" = "yes"; then
9666 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\"`'
9667 else
9668 whole_archive_flag_spec=''
9669 fi
9670 link_all_deplibs=yes
9671 allow_undefined_flag="$_lt_dar_allow_undefined"
9672 case $cc_basename in
9673 ifort*) _lt_dar_can_shared=yes ;;
9674 *) _lt_dar_can_shared=$GCC ;;
9675 esac
9676 if test "$_lt_dar_can_shared" = "yes"; then
9677 output_verbose_link_cmd=func_echo_all
9678 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9679 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9680 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}"
9681 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}"
9682
9683 else
9684 ld_shlibs=no
9685 fi
9686
9687 ;;
9688
9689 dgux*)
9690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691 hardcode_libdir_flag_spec='-L$libdir'
9692 hardcode_shlibpath_var=no
9693 ;;
9694
9695 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9696 # support. Future versions do this automatically, but an explicit c++rt0.o
9697 # does not break anything, and helps significantly (at the cost of a little
9698 # extra space).
9699 freebsd2.2*)
9700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9701 hardcode_libdir_flag_spec='-R$libdir'
9702 hardcode_direct=yes
9703 hardcode_shlibpath_var=no
9704 ;;
9705
9706 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9707 freebsd2.*)
9708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9709 hardcode_direct=yes
9710 hardcode_minus_L=yes
9711 hardcode_shlibpath_var=no
9712 ;;
9713
9714 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9715 freebsd* | dragonfly*)
9716 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9717 hardcode_libdir_flag_spec='-R$libdir'
9718 hardcode_direct=yes
9719 hardcode_shlibpath_var=no
9720 ;;
9721
9722 hpux9*)
9723 if test "$GCC" = yes; then
9724 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'
9725 else
9726 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'
9727 fi
9728 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9729 hardcode_libdir_separator=:
9730 hardcode_direct=yes
9731
9732 # hardcode_minus_L: Not really in the search PATH,
9733 # but as the default location of the library.
9734 hardcode_minus_L=yes
9735 export_dynamic_flag_spec='${wl}-E'
9736 ;;
9737
9738 hpux10*)
9739 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9740 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9741 else
9742 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9743 fi
9744 if test "$with_gnu_ld" = no; then
9745 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9746 hardcode_libdir_flag_spec_ld='+b $libdir'
9747 hardcode_libdir_separator=:
9748 hardcode_direct=yes
9749 hardcode_direct_absolute=yes
9750 export_dynamic_flag_spec='${wl}-E'
9751 # hardcode_minus_L: Not really in the search PATH,
9752 # but as the default location of the library.
9753 hardcode_minus_L=yes
9754 fi
9755 ;;
9756
9757 hpux11*)
9758 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9759 case $host_cpu in
9760 hppa*64*)
9761 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9762 ;;
9763 ia64*)
9764 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9765 ;;
9766 *)
9767 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9768 ;;
9769 esac
9770 else
9771 case $host_cpu in
9772 hppa*64*)
9773 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9774 ;;
9775 ia64*)
9776 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9777 ;;
9778 *)
9779
9780 # Older versions of the 11.00 compiler do not understand -b yet
9781 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9783 $as_echo_n "checking if $CC understands -b... " >&6; }
9784 if ${lt_cv_prog_compiler__b+:} false; then :
9785 $as_echo_n "(cached) " >&6
9786 else
9787 lt_cv_prog_compiler__b=no
9788 save_LDFLAGS="$LDFLAGS"
9789 LDFLAGS="$LDFLAGS -b"
9790 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9792 # The linker can only warn and ignore the option if not recognized
9793 # So say no if there are warnings
9794 if test -s conftest.err; then
9795 # Append any errors to the config.log.
9796 cat conftest.err 1>&5
9797 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9799 if diff conftest.exp conftest.er2 >/dev/null; then
9800 lt_cv_prog_compiler__b=yes
9801 fi
9802 else
9803 lt_cv_prog_compiler__b=yes
9804 fi
9805 fi
9806 $RM -r conftest*
9807 LDFLAGS="$save_LDFLAGS"
9808
9809 fi
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9811 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9812
9813 if test x"$lt_cv_prog_compiler__b" = xyes; then
9814 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9815 else
9816 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9817 fi
9818
9819 ;;
9820 esac
9821 fi
9822 if test "$with_gnu_ld" = no; then
9823 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9824 hardcode_libdir_separator=:
9825
9826 case $host_cpu in
9827 hppa*64*|ia64*)
9828 hardcode_direct=no
9829 hardcode_shlibpath_var=no
9830 ;;
9831 *)
9832 hardcode_direct=yes
9833 hardcode_direct_absolute=yes
9834 export_dynamic_flag_spec='${wl}-E'
9835
9836 # hardcode_minus_L: Not really in the search PATH,
9837 # but as the default location of the library.
9838 hardcode_minus_L=yes
9839 ;;
9840 esac
9841 fi
9842 ;;
9843
9844 irix5* | irix6* | nonstopux*)
9845 if test "$GCC" = yes; then
9846 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'
9847 # Try to use the -exported_symbol ld option, if it does not
9848 # work, assume that -exports_file does not work either and
9849 # implicitly export all symbols.
9850 save_LDFLAGS="$LDFLAGS"
9851 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9854 int foo(void) {}
9855 _ACEOF
9856 if ac_fn_c_try_link "$LINENO"; then :
9857 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'
9858
9859 fi
9860 rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 LDFLAGS="$save_LDFLAGS"
9863 else
9864 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'
9865 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'
9866 fi
9867 archive_cmds_need_lc='no'
9868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9869 hardcode_libdir_separator=:
9870 inherit_rpath=yes
9871 link_all_deplibs=yes
9872 ;;
9873
9874 netbsd*)
9875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9876 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9877 else
9878 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9879 fi
9880 hardcode_libdir_flag_spec='-R$libdir'
9881 hardcode_direct=yes
9882 hardcode_shlibpath_var=no
9883 ;;
9884
9885 newsos6)
9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887 hardcode_direct=yes
9888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9889 hardcode_libdir_separator=:
9890 hardcode_shlibpath_var=no
9891 ;;
9892
9893 *nto* | *qnx*)
9894 ;;
9895
9896 openbsd*)
9897 if test -f /usr/libexec/ld.so; then
9898 hardcode_direct=yes
9899 hardcode_shlibpath_var=no
9900 hardcode_direct_absolute=yes
9901 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9903 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9905 export_dynamic_flag_spec='${wl}-E'
9906 else
9907 case $host_os in
9908 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9910 hardcode_libdir_flag_spec='-R$libdir'
9911 ;;
9912 *)
9913 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9914 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9915 ;;
9916 esac
9917 fi
9918 else
9919 ld_shlibs=no
9920 fi
9921 ;;
9922
9923 os2*)
9924 hardcode_libdir_flag_spec='-L$libdir'
9925 hardcode_minus_L=yes
9926 allow_undefined_flag=unsupported
9927 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'
9928 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9929 ;;
9930
9931 osf3*)
9932 if test "$GCC" = yes; then
9933 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9934 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'
9935 else
9936 allow_undefined_flag=' -expect_unresolved \*'
9937 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'
9938 fi
9939 archive_cmds_need_lc='no'
9940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9941 hardcode_libdir_separator=:
9942 ;;
9943
9944 osf4* | osf5*) # as osf3* with the addition of -msym flag
9945 if test "$GCC" = yes; then
9946 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9947 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'
9948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9949 else
9950 allow_undefined_flag=' -expect_unresolved \*'
9951 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'
9952 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~
9953 $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'
9954
9955 # Both c and cxx compiler support -rpath directly
9956 hardcode_libdir_flag_spec='-rpath $libdir'
9957 fi
9958 archive_cmds_need_lc='no'
9959 hardcode_libdir_separator=:
9960 ;;
9961
9962 solaris*)
9963 no_undefined_flag=' -z defs'
9964 if test "$GCC" = yes; then
9965 wlarc='${wl}'
9966 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9967 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9968 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9969 else
9970 case `$CC -V 2>&1` in
9971 *"Compilers 5.0"*)
9972 wlarc=''
9973 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9975 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9976 ;;
9977 *)
9978 wlarc='${wl}'
9979 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9980 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9981 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9982 ;;
9983 esac
9984 fi
9985 hardcode_libdir_flag_spec='-R$libdir'
9986 hardcode_shlibpath_var=no
9987 case $host_os in
9988 solaris2.[0-5] | solaris2.[0-5].*) ;;
9989 *)
9990 # The compiler driver will combine and reorder linker options,
9991 # but understands `-z linker_flag'. GCC discards it without `$wl',
9992 # but is careful enough not to reorder.
9993 # Supported since Solaris 2.6 (maybe 2.5.1?)
9994 if test "$GCC" = yes; then
9995 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9996 else
9997 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9998 fi
9999 ;;
10000 esac
10001 link_all_deplibs=yes
10002 ;;
10003
10004 sunos4*)
10005 if test "x$host_vendor" = xsequent; then
10006 # Use $CC to link under sequent, because it throws in some extra .o
10007 # files that make .init and .fini sections work.
10008 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10009 else
10010 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10011 fi
10012 hardcode_libdir_flag_spec='-L$libdir'
10013 hardcode_direct=yes
10014 hardcode_minus_L=yes
10015 hardcode_shlibpath_var=no
10016 ;;
10017
10018 sysv4)
10019 case $host_vendor in
10020 sni)
10021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022 hardcode_direct=yes # is this really true???
10023 ;;
10024 siemens)
10025 ## LD is ld it makes a PLAMLIB
10026 ## CC just makes a GrossModule.
10027 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10028 reload_cmds='$CC -r -o $output$reload_objs'
10029 hardcode_direct=no
10030 ;;
10031 motorola)
10032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10033 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10034 ;;
10035 esac
10036 runpath_var='LD_RUN_PATH'
10037 hardcode_shlibpath_var=no
10038 ;;
10039
10040 sysv4.3*)
10041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10042 hardcode_shlibpath_var=no
10043 export_dynamic_flag_spec='-Bexport'
10044 ;;
10045
10046 sysv4*MP*)
10047 if test -d /usr/nec; then
10048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049 hardcode_shlibpath_var=no
10050 runpath_var=LD_RUN_PATH
10051 hardcode_runpath_var=yes
10052 ld_shlibs=yes
10053 fi
10054 ;;
10055
10056 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10057 no_undefined_flag='${wl}-z,text'
10058 archive_cmds_need_lc=no
10059 hardcode_shlibpath_var=no
10060 runpath_var='LD_RUN_PATH'
10061
10062 if test "$GCC" = yes; then
10063 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10065 else
10066 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10067 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10068 fi
10069 ;;
10070
10071 sysv5* | sco3.2v5* | sco5v6*)
10072 # Note: We can NOT use -z defs as we might desire, because we do not
10073 # link with -lc, and that would cause any symbols used from libc to
10074 # always be unresolved, which means just about no library would
10075 # ever link correctly. If we're not using GNU ld we use -z text
10076 # though, which does catch some bad symbols but isn't as heavy-handed
10077 # as -z defs.
10078 no_undefined_flag='${wl}-z,text'
10079 allow_undefined_flag='${wl}-z,nodefs'
10080 archive_cmds_need_lc=no
10081 hardcode_shlibpath_var=no
10082 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10083 hardcode_libdir_separator=':'
10084 link_all_deplibs=yes
10085 export_dynamic_flag_spec='${wl}-Bexport'
10086 runpath_var='LD_RUN_PATH'
10087
10088 if test "$GCC" = yes; then
10089 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 else
10092 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094 fi
10095 ;;
10096
10097 uts4*)
10098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099 hardcode_libdir_flag_spec='-L$libdir'
10100 hardcode_shlibpath_var=no
10101 ;;
10102
10103 *)
10104 ld_shlibs=no
10105 ;;
10106 esac
10107
10108 if test x$host_vendor = xsni; then
10109 case $host in
10110 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10111 export_dynamic_flag_spec='${wl}-Blargedynsym'
10112 ;;
10113 esac
10114 fi
10115 fi
10116
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10118 $as_echo "$ld_shlibs" >&6; }
10119 test "$ld_shlibs" = no && can_build_shared=no
10120
10121 with_gnu_ld=$with_gnu_ld
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137 #
10138 # Do we need to explicitly link libc?
10139 #
10140 case "x$archive_cmds_need_lc" in
10141 x|xyes)
10142 # Assume -lc should be added
10143 archive_cmds_need_lc=yes
10144
10145 if test "$enable_shared" = yes && test "$GCC" = yes; then
10146 case $archive_cmds in
10147 *'~'*)
10148 # FIXME: we may have to deal with multi-command sequences.
10149 ;;
10150 '$CC '*)
10151 # Test whether the compiler implicitly links with -lc since on some
10152 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10153 # to ld, don't add -lc before -lgcc.
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10155 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10156 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10157 $as_echo_n "(cached) " >&6
10158 else
10159 $RM conftest*
10160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10161
10162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10163 (eval $ac_compile) 2>&5
10164 ac_status=$?
10165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10166 test $ac_status = 0; } 2>conftest.err; then
10167 soname=conftest
10168 lib=conftest
10169 libobjs=conftest.$ac_objext
10170 deplibs=
10171 wl=$lt_prog_compiler_wl
10172 pic_flag=$lt_prog_compiler_pic
10173 compiler_flags=-v
10174 linker_flags=-v
10175 verstring=
10176 output_objdir=.
10177 libname=conftest
10178 lt_save_allow_undefined_flag=$allow_undefined_flag
10179 allow_undefined_flag=
10180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10181 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10182 ac_status=$?
10183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10184 test $ac_status = 0; }
10185 then
10186 lt_cv_archive_cmds_need_lc=no
10187 else
10188 lt_cv_archive_cmds_need_lc=yes
10189 fi
10190 allow_undefined_flag=$lt_save_allow_undefined_flag
10191 else
10192 cat conftest.err 1>&5
10193 fi
10194 $RM conftest*
10195
10196 fi
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10198 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10199 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10200 ;;
10201 esac
10202 fi
10203 ;;
10204 esac
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10363 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10364
10365 if test "$GCC" = yes; then
10366 case $host_os in
10367 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10368 *) lt_awk_arg="/^libraries:/" ;;
10369 esac
10370 case $host_os in
10371 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10372 *) lt_sed_strip_eq="s,=/,/,g" ;;
10373 esac
10374 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10375 case $lt_search_path_spec in
10376 *\;*)
10377 # if the path contains ";" then we assume it to be the separator
10378 # otherwise default to the standard path separator (i.e. ":") - it is
10379 # assumed that no part of a normal pathname contains ";" but that should
10380 # okay in the real world where ";" in dirpaths is itself problematic.
10381 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10382 ;;
10383 *)
10384 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10385 ;;
10386 esac
10387 # Ok, now we have the path, separated by spaces, we can step through it
10388 # and add multilib dir if necessary.
10389 lt_tmp_lt_search_path_spec=
10390 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10391 for lt_sys_path in $lt_search_path_spec; do
10392 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10393 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10394 else
10395 test -d "$lt_sys_path" && \
10396 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10397 fi
10398 done
10399 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10400 BEGIN {RS=" "; FS="/|\n";} {
10401 lt_foo="";
10402 lt_count=0;
10403 for (lt_i = NF; lt_i > 0; lt_i--) {
10404 if ($lt_i != "" && $lt_i != ".") {
10405 if ($lt_i == "..") {
10406 lt_count++;
10407 } else {
10408 if (lt_count == 0) {
10409 lt_foo="/" $lt_i lt_foo;
10410 } else {
10411 lt_count--;
10412 }
10413 }
10414 }
10415 }
10416 if (lt_foo != "") { lt_freq[lt_foo]++; }
10417 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10418 }'`
10419 # AWK program above erroneously prepends '/' to C:/dos/paths
10420 # for these hosts.
10421 case $host_os in
10422 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10423 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10424 esac
10425 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10426 else
10427 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10428 fi
10429 library_names_spec=
10430 libname_spec='lib$name'
10431 soname_spec=
10432 shrext_cmds=".so"
10433 postinstall_cmds=
10434 postuninstall_cmds=
10435 finish_cmds=
10436 finish_eval=
10437 shlibpath_var=
10438 shlibpath_overrides_runpath=unknown
10439 version_type=none
10440 dynamic_linker="$host_os ld.so"
10441 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10442 need_lib_prefix=unknown
10443 hardcode_into_libs=no
10444
10445 # when you set need_version to no, make sure it does not cause -set_version
10446 # flags to be left without arguments
10447 need_version=unknown
10448
10449 case $host_os in
10450 aix3*)
10451 version_type=linux
10452 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10453 shlibpath_var=LIBPATH
10454
10455 # AIX 3 has no versioning support, so we append a major version to the name.
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 ;;
10458
10459 aix[4-9]*)
10460 version_type=linux
10461 need_lib_prefix=no
10462 need_version=no
10463 hardcode_into_libs=yes
10464 if test "$host_cpu" = ia64; then
10465 # AIX 5 supports IA64
10466 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10467 shlibpath_var=LD_LIBRARY_PATH
10468 else
10469 # With GCC up to 2.95.x, collect2 would create an import file
10470 # for dependence libraries. The import file would start with
10471 # the line `#! .'. This would cause the generated library to
10472 # depend on `.', always an invalid library. This was fixed in
10473 # development snapshots of GCC prior to 3.0.
10474 case $host_os in
10475 aix4 | aix4.[01] | aix4.[01].*)
10476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10477 echo ' yes '
10478 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10479 :
10480 else
10481 can_build_shared=no
10482 fi
10483 ;;
10484 esac
10485 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10486 # soname into executable. Probably we can add versioning support to
10487 # collect2, so additional links can be useful in future.
10488 if test "$aix_use_runtimelinking" = yes; then
10489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10490 # instead of lib<name>.a to let people know that these are not
10491 # typical AIX shared libraries.
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493 else
10494 # We preserve .a as extension for shared libraries through AIX4.2
10495 # and later when we are not doing run time linking.
10496 library_names_spec='${libname}${release}.a $libname.a'
10497 soname_spec='${libname}${release}${shared_ext}$major'
10498 fi
10499 shlibpath_var=LIBPATH
10500 fi
10501 ;;
10502
10503 amigaos*)
10504 case $host_cpu in
10505 powerpc)
10506 # Since July 2007 AmigaOS4 officially supports .so libraries.
10507 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509 ;;
10510 m68k)
10511 library_names_spec='$libname.ixlibrary $libname.a'
10512 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10513 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'
10514 ;;
10515 esac
10516 ;;
10517
10518 beos*)
10519 library_names_spec='${libname}${shared_ext}'
10520 dynamic_linker="$host_os ld.so"
10521 shlibpath_var=LIBRARY_PATH
10522 ;;
10523
10524 bsdi[45]*)
10525 version_type=linux
10526 need_version=no
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528 soname_spec='${libname}${release}${shared_ext}$major'
10529 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10532 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10533 # the default ld.so.conf also contains /usr/contrib/lib and
10534 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10535 # libtool to hard-code these into programs
10536 ;;
10537
10538 cygwin* | mingw* | pw32* | cegcc*)
10539 version_type=windows
10540 shrext_cmds=".dll"
10541 need_version=no
10542 need_lib_prefix=no
10543
10544 case $GCC,$host_os in
10545 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10546 library_names_spec='$libname.dll.a'
10547 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10548 postinstall_cmds='base_file=`basename \${file}`~
10549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10550 dldir=$destdir/`dirname \$dlpath`~
10551 test -d \$dldir || mkdir -p \$dldir~
10552 $install_prog $dir/$dlname \$dldir/$dlname~
10553 chmod a+x \$dldir/$dlname~
10554 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10555 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10556 fi'
10557 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10558 dlpath=$dir/\$dldll~
10559 $RM \$dlpath'
10560 shlibpath_overrides_runpath=yes
10561
10562 case $host_os in
10563 cygwin*)
10564 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10565 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10566
10567 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10568 ;;
10569 mingw* | cegcc*)
10570 # MinGW DLLs use traditional 'lib' prefix
10571 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10572 ;;
10573 pw32*)
10574 # pw32 DLLs use 'pw' prefix rather than 'lib'
10575 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10576 ;;
10577 esac
10578 ;;
10579
10580 *)
10581 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10582 ;;
10583 esac
10584 dynamic_linker='Win32 ld.exe'
10585 # FIXME: first we should search . and the directory the executable is in
10586 shlibpath_var=PATH
10587 ;;
10588
10589 darwin* | rhapsody*)
10590 dynamic_linker="$host_os dyld"
10591 version_type=darwin
10592 need_lib_prefix=no
10593 need_version=no
10594 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10595 soname_spec='${libname}${release}${major}$shared_ext'
10596 shlibpath_overrides_runpath=yes
10597 shlibpath_var=DYLD_LIBRARY_PATH
10598 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10599
10600 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10601 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10602 ;;
10603
10604 dgux*)
10605 version_type=linux
10606 need_lib_prefix=no
10607 need_version=no
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 ;;
10612
10613 freebsd* | dragonfly*)
10614 # DragonFly does not have aout. When/if they implement a new
10615 # versioning mechanism, adjust this.
10616 if test -x /usr/bin/objformat; then
10617 objformat=`/usr/bin/objformat`
10618 else
10619 case $host_os in
10620 freebsd[23].*) objformat=aout ;;
10621 *) objformat=elf ;;
10622 esac
10623 fi
10624 version_type=freebsd-$objformat
10625 case $version_type in
10626 freebsd-elf*)
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10628 need_version=no
10629 need_lib_prefix=no
10630 ;;
10631 freebsd-*)
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10633 need_version=yes
10634 ;;
10635 esac
10636 shlibpath_var=LD_LIBRARY_PATH
10637 case $host_os in
10638 freebsd2.*)
10639 shlibpath_overrides_runpath=yes
10640 ;;
10641 freebsd3.[01]* | freebsdelf3.[01]*)
10642 shlibpath_overrides_runpath=yes
10643 hardcode_into_libs=yes
10644 ;;
10645 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10646 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10647 shlibpath_overrides_runpath=no
10648 hardcode_into_libs=yes
10649 ;;
10650 *) # from 4.6 on, and DragonFly
10651 shlibpath_overrides_runpath=yes
10652 hardcode_into_libs=yes
10653 ;;
10654 esac
10655 ;;
10656
10657 haiku*)
10658 version_type=linux
10659 need_lib_prefix=no
10660 need_version=no
10661 dynamic_linker="$host_os runtime_loader"
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 shlibpath_var=LIBRARY_PATH
10665 shlibpath_overrides_runpath=yes
10666 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10667 hardcode_into_libs=yes
10668 ;;
10669
10670 hpux9* | hpux10* | hpux11*)
10671 # Give a soname corresponding to the major version so that dld.sl refuses to
10672 # link against other versions.
10673 version_type=sunos
10674 need_lib_prefix=no
10675 need_version=no
10676 case $host_cpu in
10677 ia64*)
10678 shrext_cmds='.so'
10679 hardcode_into_libs=yes
10680 dynamic_linker="$host_os dld.so"
10681 shlibpath_var=LD_LIBRARY_PATH
10682 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684 soname_spec='${libname}${release}${shared_ext}$major'
10685 if test "X$HPUX_IA64_MODE" = X32; then
10686 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10687 else
10688 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10689 fi
10690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10691 ;;
10692 hppa*64*)
10693 shrext_cmds='.sl'
10694 hardcode_into_libs=yes
10695 dynamic_linker="$host_os dld.sl"
10696 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10697 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10699 soname_spec='${libname}${release}${shared_ext}$major'
10700 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10702 ;;
10703 *)
10704 shrext_cmds='.sl'
10705 dynamic_linker="$host_os dld.sl"
10706 shlibpath_var=SHLIB_PATH
10707 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709 soname_spec='${libname}${release}${shared_ext}$major'
10710 ;;
10711 esac
10712 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10713 postinstall_cmds='chmod 555 $lib'
10714 # or fails outright, so override atomically:
10715 install_override_mode=555
10716 ;;
10717
10718 interix[3-9]*)
10719 version_type=linux
10720 need_lib_prefix=no
10721 need_version=no
10722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10723 soname_spec='${libname}${release}${shared_ext}$major'
10724 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10725 shlibpath_var=LD_LIBRARY_PATH
10726 shlibpath_overrides_runpath=no
10727 hardcode_into_libs=yes
10728 ;;
10729
10730 irix5* | irix6* | nonstopux*)
10731 case $host_os in
10732 nonstopux*) version_type=nonstopux ;;
10733 *)
10734 if test "$lt_cv_prog_gnu_ld" = yes; then
10735 version_type=linux
10736 else
10737 version_type=irix
10738 fi ;;
10739 esac
10740 need_lib_prefix=no
10741 need_version=no
10742 soname_spec='${libname}${release}${shared_ext}$major'
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10744 case $host_os in
10745 irix5* | nonstopux*)
10746 libsuff= shlibsuff=
10747 ;;
10748 *)
10749 case $LD in # libtool.m4 will add one of these switches to LD
10750 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10751 libsuff= shlibsuff= libmagic=32-bit;;
10752 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10753 libsuff=32 shlibsuff=N32 libmagic=N32;;
10754 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10755 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10756 *) libsuff= shlibsuff= libmagic=never-match;;
10757 esac
10758 ;;
10759 esac
10760 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10761 shlibpath_overrides_runpath=no
10762 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10763 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10764 hardcode_into_libs=yes
10765 ;;
10766
10767 # No shared lib support for Linux oldld, aout, or coff.
10768 linux*oldld* | linux*aout* | linux*coff*)
10769 dynamic_linker=no
10770 ;;
10771
10772 # This must be Linux ELF.
10773
10774 # uclinux* changes (here and below) have been submitted to the libtool
10775 # project, but have not yet been accepted: they are GCC-local changes
10776 # for the time being. (See
10777 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10778 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10779 version_type=linux
10780 need_lib_prefix=no
10781 need_version=no
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783 soname_spec='${libname}${release}${shared_ext}$major'
10784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10785 shlibpath_var=LD_LIBRARY_PATH
10786 shlibpath_overrides_runpath=no
10787
10788 # Some binutils ld are patched to set DT_RUNPATH
10789 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10790 $as_echo_n "(cached) " >&6
10791 else
10792 lt_cv_shlibpath_overrides_runpath=no
10793 save_LDFLAGS=$LDFLAGS
10794 save_libdir=$libdir
10795 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10796 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h. */
10799
10800 int
10801 main ()
10802 {
10803
10804 ;
10805 return 0;
10806 }
10807 _ACEOF
10808 if ac_fn_c_try_link "$LINENO"; then :
10809 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10810 lt_cv_shlibpath_overrides_runpath=yes
10811 fi
10812 fi
10813 rm -f core conftest.err conftest.$ac_objext \
10814 conftest$ac_exeext conftest.$ac_ext
10815 LDFLAGS=$save_LDFLAGS
10816 libdir=$save_libdir
10817
10818 fi
10819
10820 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10821
10822 # This implies no fast_install, which is unacceptable.
10823 # Some rework will be needed to allow for fast_install
10824 # before this can be enabled.
10825 hardcode_into_libs=yes
10826
10827 # Append ld.so.conf contents to the search path
10828 if test -f /etc/ld.so.conf; then
10829 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' ' '`
10830 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10831 fi
10832
10833 # We used to test for /lib/ld.so.1 and disable shared libraries on
10834 # powerpc, because MkLinux only supported shared libraries with the
10835 # GNU dynamic linker. Since this was broken with cross compilers,
10836 # most powerpc-linux boxes support dynamic linking these days and
10837 # people can always --disable-shared, the test was removed, and we
10838 # assume the GNU/Linux dynamic linker is in use.
10839 dynamic_linker='GNU/Linux ld.so'
10840 ;;
10841
10842 netbsd*)
10843 version_type=sunos
10844 need_lib_prefix=no
10845 need_version=no
10846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10849 dynamic_linker='NetBSD (a.out) ld.so'
10850 else
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 dynamic_linker='NetBSD ld.elf_so'
10854 fi
10855 shlibpath_var=LD_LIBRARY_PATH
10856 shlibpath_overrides_runpath=yes
10857 hardcode_into_libs=yes
10858 ;;
10859
10860 newsos6)
10861 version_type=linux
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10863 shlibpath_var=LD_LIBRARY_PATH
10864 shlibpath_overrides_runpath=yes
10865 ;;
10866
10867 *nto* | *qnx*)
10868 version_type=qnx
10869 need_lib_prefix=no
10870 need_version=no
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 shlibpath_var=LD_LIBRARY_PATH
10874 shlibpath_overrides_runpath=no
10875 hardcode_into_libs=yes
10876 dynamic_linker='ldqnx.so'
10877 ;;
10878
10879 openbsd*)
10880 version_type=sunos
10881 sys_lib_dlsearch_path_spec="/usr/lib"
10882 need_lib_prefix=no
10883 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10884 case $host_os in
10885 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10886 *) need_version=no ;;
10887 esac
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10890 shlibpath_var=LD_LIBRARY_PATH
10891 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10892 case $host_os in
10893 openbsd2.[89] | openbsd2.[89].*)
10894 shlibpath_overrides_runpath=no
10895 ;;
10896 *)
10897 shlibpath_overrides_runpath=yes
10898 ;;
10899 esac
10900 else
10901 shlibpath_overrides_runpath=yes
10902 fi
10903 ;;
10904
10905 os2*)
10906 libname_spec='$name'
10907 shrext_cmds=".dll"
10908 need_lib_prefix=no
10909 library_names_spec='$libname${shared_ext} $libname.a'
10910 dynamic_linker='OS/2 ld.exe'
10911 shlibpath_var=LIBPATH
10912 ;;
10913
10914 osf3* | osf4* | osf5*)
10915 version_type=osf
10916 need_lib_prefix=no
10917 need_version=no
10918 soname_spec='${libname}${release}${shared_ext}$major'
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10920 shlibpath_var=LD_LIBRARY_PATH
10921 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10922 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10923 ;;
10924
10925 rdos*)
10926 dynamic_linker=no
10927 ;;
10928
10929 solaris*)
10930 version_type=linux
10931 need_lib_prefix=no
10932 need_version=no
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10934 soname_spec='${libname}${release}${shared_ext}$major'
10935 shlibpath_var=LD_LIBRARY_PATH
10936 shlibpath_overrides_runpath=yes
10937 hardcode_into_libs=yes
10938 # ldd complains unless libraries are executable
10939 postinstall_cmds='chmod +x $lib'
10940 ;;
10941
10942 sunos4*)
10943 version_type=sunos
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10945 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10946 shlibpath_var=LD_LIBRARY_PATH
10947 shlibpath_overrides_runpath=yes
10948 if test "$with_gnu_ld" = yes; then
10949 need_lib_prefix=no
10950 fi
10951 need_version=yes
10952 ;;
10953
10954 sysv4 | sysv4.3*)
10955 version_type=linux
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 shlibpath_var=LD_LIBRARY_PATH
10959 case $host_vendor in
10960 sni)
10961 shlibpath_overrides_runpath=no
10962 need_lib_prefix=no
10963 runpath_var=LD_RUN_PATH
10964 ;;
10965 siemens)
10966 need_lib_prefix=no
10967 ;;
10968 motorola)
10969 need_lib_prefix=no
10970 need_version=no
10971 shlibpath_overrides_runpath=no
10972 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10973 ;;
10974 esac
10975 ;;
10976
10977 sysv4*MP*)
10978 if test -d /usr/nec ;then
10979 version_type=linux
10980 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10981 soname_spec='$libname${shared_ext}.$major'
10982 shlibpath_var=LD_LIBRARY_PATH
10983 fi
10984 ;;
10985
10986 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10987 version_type=freebsd-elf
10988 need_lib_prefix=no
10989 need_version=no
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 shlibpath_var=LD_LIBRARY_PATH
10993 shlibpath_overrides_runpath=yes
10994 hardcode_into_libs=yes
10995 if test "$with_gnu_ld" = yes; then
10996 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10997 else
10998 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10999 case $host_os in
11000 sco3.2v5*)
11001 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11002 ;;
11003 esac
11004 fi
11005 sys_lib_dlsearch_path_spec='/usr/lib'
11006 ;;
11007
11008 tpf*)
11009 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11010 version_type=linux
11011 need_lib_prefix=no
11012 need_version=no
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11014 shlibpath_var=LD_LIBRARY_PATH
11015 shlibpath_overrides_runpath=no
11016 hardcode_into_libs=yes
11017 ;;
11018
11019 uts4*)
11020 version_type=linux
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022 soname_spec='${libname}${release}${shared_ext}$major'
11023 shlibpath_var=LD_LIBRARY_PATH
11024 ;;
11025
11026 # Shared libraries for VwWorks, >= 7 only at this stage
11027 # and (fpic) still incompatible with "large" code models
11028 # in a few configurations. Only for RTP mode in any case,
11029 # and upon explicit request at configure time.
11030 vxworks7*)
11031 dynamic_linker=no
11032 case ${with_multisubdir}-${enable_shared} in
11033 *large*)
11034 ;;
11035 *mrtp*-yes)
11036 version_type=linux
11037 need_lib_prefix=no
11038 need_version=no
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 dynamic_linker="$host_os module_loader"
11042 ;;
11043 esac
11044 ;;
11045 *)
11046 dynamic_linker=no
11047 ;;
11048 esac
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11050 $as_echo "$dynamic_linker" >&6; }
11051 test "$dynamic_linker" = no && can_build_shared=no
11052
11053 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11054 if test "$GCC" = yes; then
11055 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11056 fi
11057
11058 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11059 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11060 fi
11061 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11062 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11063 fi
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11157 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11158 hardcode_action=
11159 if test -n "$hardcode_libdir_flag_spec" ||
11160 test -n "$runpath_var" ||
11161 test "X$hardcode_automatic" = "Xyes" ; then
11162
11163 # We can hardcode non-existent directories.
11164 if test "$hardcode_direct" != no &&
11165 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11166 # have to relink, otherwise we might link with an installed library
11167 # when we should be linking with a yet-to-be-installed one
11168 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11169 test "$hardcode_minus_L" != no; then
11170 # Linking always hardcodes the temporary library directory.
11171 hardcode_action=relink
11172 else
11173 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11174 hardcode_action=immediate
11175 fi
11176 else
11177 # We cannot hardcode anything, or else we can only hardcode existing
11178 # directories.
11179 hardcode_action=unsupported
11180 fi
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11182 $as_echo "$hardcode_action" >&6; }
11183
11184 if test "$hardcode_action" = relink ||
11185 test "$inherit_rpath" = yes; then
11186 # Fast installation is not supported
11187 enable_fast_install=no
11188 elif test "$shlibpath_overrides_runpath" = yes ||
11189 test "$enable_shared" = no; then
11190 # Fast installation is not necessary
11191 enable_fast_install=needless
11192 fi
11193
11194
11195
11196
11197
11198
11199 if test "x$enable_dlopen" != xyes; then
11200 enable_dlopen=unknown
11201 enable_dlopen_self=unknown
11202 enable_dlopen_self_static=unknown
11203 else
11204 lt_cv_dlopen=no
11205 lt_cv_dlopen_libs=
11206
11207 case $host_os in
11208 beos*)
11209 lt_cv_dlopen="load_add_on"
11210 lt_cv_dlopen_libs=
11211 lt_cv_dlopen_self=yes
11212 ;;
11213
11214 mingw* | pw32* | cegcc*)
11215 lt_cv_dlopen="LoadLibrary"
11216 lt_cv_dlopen_libs=
11217 ;;
11218
11219 cygwin*)
11220 lt_cv_dlopen="dlopen"
11221 lt_cv_dlopen_libs=
11222 ;;
11223
11224 darwin*)
11225 # if libdl is installed we need to link against it
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11227 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11228 if ${ac_cv_lib_dl_dlopen+:} false; then :
11229 $as_echo_n "(cached) " >&6
11230 else
11231 ac_check_lib_save_LIBS=$LIBS
11232 LIBS="-ldl $LIBS"
11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11235
11236 /* Override any GCC internal prototype to avoid an error.
11237 Use char because int might match the return type of a GCC
11238 builtin and then its argument prototype would still apply. */
11239 #ifdef __cplusplus
11240 extern "C"
11241 #endif
11242 char dlopen ();
11243 int
11244 main ()
11245 {
11246 return dlopen ();
11247 ;
11248 return 0;
11249 }
11250 _ACEOF
11251 if ac_fn_c_try_link "$LINENO"; then :
11252 ac_cv_lib_dl_dlopen=yes
11253 else
11254 ac_cv_lib_dl_dlopen=no
11255 fi
11256 rm -f core conftest.err conftest.$ac_objext \
11257 conftest$ac_exeext conftest.$ac_ext
11258 LIBS=$ac_check_lib_save_LIBS
11259 fi
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11261 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11262 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11263 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11264 else
11265
11266 lt_cv_dlopen="dyld"
11267 lt_cv_dlopen_libs=
11268 lt_cv_dlopen_self=yes
11269
11270 fi
11271
11272 ;;
11273
11274 *)
11275 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11276 if test "x$ac_cv_func_shl_load" = xyes; then :
11277 lt_cv_dlopen="shl_load"
11278 else
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11280 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11281 if ${ac_cv_lib_dld_shl_load+:} false; then :
11282 $as_echo_n "(cached) " >&6
11283 else
11284 ac_check_lib_save_LIBS=$LIBS
11285 LIBS="-ldld $LIBS"
11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h. */
11288
11289 /* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 char shl_load ();
11296 int
11297 main ()
11298 {
11299 return shl_load ();
11300 ;
11301 return 0;
11302 }
11303 _ACEOF
11304 if ac_fn_c_try_link "$LINENO"; then :
11305 ac_cv_lib_dld_shl_load=yes
11306 else
11307 ac_cv_lib_dld_shl_load=no
11308 fi
11309 rm -f core conftest.err conftest.$ac_objext \
11310 conftest$ac_exeext conftest.$ac_ext
11311 LIBS=$ac_check_lib_save_LIBS
11312 fi
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11314 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11315 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11316 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11317 else
11318 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11319 if test "x$ac_cv_func_dlopen" = xyes; then :
11320 lt_cv_dlopen="dlopen"
11321 else
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11323 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11324 if ${ac_cv_lib_dl_dlopen+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 ac_check_lib_save_LIBS=$LIBS
11328 LIBS="-ldl $LIBS"
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11331
11332 /* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
11335 #ifdef __cplusplus
11336 extern "C"
11337 #endif
11338 char dlopen ();
11339 int
11340 main ()
11341 {
11342 return dlopen ();
11343 ;
11344 return 0;
11345 }
11346 _ACEOF
11347 if ac_fn_c_try_link "$LINENO"; then :
11348 ac_cv_lib_dl_dlopen=yes
11349 else
11350 ac_cv_lib_dl_dlopen=no
11351 fi
11352 rm -f core conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11354 LIBS=$ac_check_lib_save_LIBS
11355 fi
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11357 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11358 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11359 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11360 else
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11362 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11363 if ${ac_cv_lib_svld_dlopen+:} false; then :
11364 $as_echo_n "(cached) " >&6
11365 else
11366 ac_check_lib_save_LIBS=$LIBS
11367 LIBS="-lsvld $LIBS"
11368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h. */
11370
11371 /* Override any GCC internal prototype to avoid an error.
11372 Use char because int might match the return type of a GCC
11373 builtin and then its argument prototype would still apply. */
11374 #ifdef __cplusplus
11375 extern "C"
11376 #endif
11377 char dlopen ();
11378 int
11379 main ()
11380 {
11381 return dlopen ();
11382 ;
11383 return 0;
11384 }
11385 _ACEOF
11386 if ac_fn_c_try_link "$LINENO"; then :
11387 ac_cv_lib_svld_dlopen=yes
11388 else
11389 ac_cv_lib_svld_dlopen=no
11390 fi
11391 rm -f core conftest.err conftest.$ac_objext \
11392 conftest$ac_exeext conftest.$ac_ext
11393 LIBS=$ac_check_lib_save_LIBS
11394 fi
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11396 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11397 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11398 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11399 else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11401 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11402 if ${ac_cv_lib_dld_dld_link+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 ac_check_lib_save_LIBS=$LIBS
11406 LIBS="-ldld $LIBS"
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11409
11410 /* Override any GCC internal prototype to avoid an error.
11411 Use char because int might match the return type of a GCC
11412 builtin and then its argument prototype would still apply. */
11413 #ifdef __cplusplus
11414 extern "C"
11415 #endif
11416 char dld_link ();
11417 int
11418 main ()
11419 {
11420 return dld_link ();
11421 ;
11422 return 0;
11423 }
11424 _ACEOF
11425 if ac_fn_c_try_link "$LINENO"; then :
11426 ac_cv_lib_dld_dld_link=yes
11427 else
11428 ac_cv_lib_dld_dld_link=no
11429 fi
11430 rm -f core conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432 LIBS=$ac_check_lib_save_LIBS
11433 fi
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11435 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11436 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11437 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11438 fi
11439
11440
11441 fi
11442
11443
11444 fi
11445
11446
11447 fi
11448
11449
11450 fi
11451
11452
11453 fi
11454
11455 ;;
11456 esac
11457
11458 if test "x$lt_cv_dlopen" != xno; then
11459 enable_dlopen=yes
11460 else
11461 enable_dlopen=no
11462 fi
11463
11464 case $lt_cv_dlopen in
11465 dlopen)
11466 save_CPPFLAGS="$CPPFLAGS"
11467 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11468
11469 save_LDFLAGS="$LDFLAGS"
11470 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11471
11472 save_LIBS="$LIBS"
11473 LIBS="$lt_cv_dlopen_libs $LIBS"
11474
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11476 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11477 if ${lt_cv_dlopen_self+:} false; then :
11478 $as_echo_n "(cached) " >&6
11479 else
11480 if test "$cross_compiling" = yes; then :
11481 lt_cv_dlopen_self=cross
11482 else
11483 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11484 lt_status=$lt_dlunknown
11485 cat > conftest.$ac_ext <<_LT_EOF
11486 #line 11486 "configure"
11487 #include "confdefs.h"
11488
11489 #if HAVE_DLFCN_H
11490 #include <dlfcn.h>
11491 #endif
11492
11493 #include <stdio.h>
11494
11495 #ifdef RTLD_GLOBAL
11496 # define LT_DLGLOBAL RTLD_GLOBAL
11497 #else
11498 # ifdef DL_GLOBAL
11499 # define LT_DLGLOBAL DL_GLOBAL
11500 # else
11501 # define LT_DLGLOBAL 0
11502 # endif
11503 #endif
11504
11505 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11506 find out it does not work in some platform. */
11507 #ifndef LT_DLLAZY_OR_NOW
11508 # ifdef RTLD_LAZY
11509 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11510 # else
11511 # ifdef DL_LAZY
11512 # define LT_DLLAZY_OR_NOW DL_LAZY
11513 # else
11514 # ifdef RTLD_NOW
11515 # define LT_DLLAZY_OR_NOW RTLD_NOW
11516 # else
11517 # ifdef DL_NOW
11518 # define LT_DLLAZY_OR_NOW DL_NOW
11519 # else
11520 # define LT_DLLAZY_OR_NOW 0
11521 # endif
11522 # endif
11523 # endif
11524 # endif
11525 #endif
11526
11527 /* When -fvisbility=hidden is used, assume the code has been annotated
11528 correspondingly for the symbols needed. */
11529 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11530 void fnord () __attribute__((visibility("default")));
11531 #endif
11532
11533 void fnord () { int i=42; }
11534 int main ()
11535 {
11536 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11537 int status = $lt_dlunknown;
11538
11539 if (self)
11540 {
11541 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11542 else
11543 {
11544 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11545 else puts (dlerror ());
11546 }
11547 /* dlclose (self); */
11548 }
11549 else
11550 puts (dlerror ());
11551
11552 return status;
11553 }
11554 _LT_EOF
11555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11556 (eval $ac_link) 2>&5
11557 ac_status=$?
11558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11559 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11560 (./conftest; exit; ) >&5 2>/dev/null
11561 lt_status=$?
11562 case x$lt_status in
11563 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11564 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11565 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11566 esac
11567 else :
11568 # compilation failed
11569 lt_cv_dlopen_self=no
11570 fi
11571 fi
11572 rm -fr conftest*
11573
11574
11575 fi
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11577 $as_echo "$lt_cv_dlopen_self" >&6; }
11578
11579 if test "x$lt_cv_dlopen_self" = xyes; then
11580 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11582 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11583 if ${lt_cv_dlopen_self_static+:} false; then :
11584 $as_echo_n "(cached) " >&6
11585 else
11586 if test "$cross_compiling" = yes; then :
11587 lt_cv_dlopen_self_static=cross
11588 else
11589 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11590 lt_status=$lt_dlunknown
11591 cat > conftest.$ac_ext <<_LT_EOF
11592 #line 11592 "configure"
11593 #include "confdefs.h"
11594
11595 #if HAVE_DLFCN_H
11596 #include <dlfcn.h>
11597 #endif
11598
11599 #include <stdio.h>
11600
11601 #ifdef RTLD_GLOBAL
11602 # define LT_DLGLOBAL RTLD_GLOBAL
11603 #else
11604 # ifdef DL_GLOBAL
11605 # define LT_DLGLOBAL DL_GLOBAL
11606 # else
11607 # define LT_DLGLOBAL 0
11608 # endif
11609 #endif
11610
11611 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11612 find out it does not work in some platform. */
11613 #ifndef LT_DLLAZY_OR_NOW
11614 # ifdef RTLD_LAZY
11615 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11616 # else
11617 # ifdef DL_LAZY
11618 # define LT_DLLAZY_OR_NOW DL_LAZY
11619 # else
11620 # ifdef RTLD_NOW
11621 # define LT_DLLAZY_OR_NOW RTLD_NOW
11622 # else
11623 # ifdef DL_NOW
11624 # define LT_DLLAZY_OR_NOW DL_NOW
11625 # else
11626 # define LT_DLLAZY_OR_NOW 0
11627 # endif
11628 # endif
11629 # endif
11630 # endif
11631 #endif
11632
11633 /* When -fvisbility=hidden is used, assume the code has been annotated
11634 correspondingly for the symbols needed. */
11635 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11636 void fnord () __attribute__((visibility("default")));
11637 #endif
11638
11639 void fnord () { int i=42; }
11640 int main ()
11641 {
11642 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11643 int status = $lt_dlunknown;
11644
11645 if (self)
11646 {
11647 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11648 else
11649 {
11650 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11651 else puts (dlerror ());
11652 }
11653 /* dlclose (self); */
11654 }
11655 else
11656 puts (dlerror ());
11657
11658 return status;
11659 }
11660 _LT_EOF
11661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11662 (eval $ac_link) 2>&5
11663 ac_status=$?
11664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11665 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11666 (./conftest; exit; ) >&5 2>/dev/null
11667 lt_status=$?
11668 case x$lt_status in
11669 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11670 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11671 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11672 esac
11673 else :
11674 # compilation failed
11675 lt_cv_dlopen_self_static=no
11676 fi
11677 fi
11678 rm -fr conftest*
11679
11680
11681 fi
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11683 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11684 fi
11685
11686 CPPFLAGS="$save_CPPFLAGS"
11687 LDFLAGS="$save_LDFLAGS"
11688 LIBS="$save_LIBS"
11689 ;;
11690 esac
11691
11692 case $lt_cv_dlopen_self in
11693 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11694 *) enable_dlopen_self=unknown ;;
11695 esac
11696
11697 case $lt_cv_dlopen_self_static in
11698 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11699 *) enable_dlopen_self_static=unknown ;;
11700 esac
11701 fi
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719 striplib=
11720 old_striplib=
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11722 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11723 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11724 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11725 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11727 $as_echo "yes" >&6; }
11728 else
11729 # FIXME - insert some real tests, host_os isn't really good enough
11730 case $host_os in
11731 darwin*)
11732 if test -n "$STRIP" ; then
11733 striplib="$STRIP -x"
11734 old_striplib="$STRIP -S"
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11736 $as_echo "yes" >&6; }
11737 else
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11740 fi
11741 ;;
11742 *)
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744 $as_echo "no" >&6; }
11745 ;;
11746 esac
11747 fi
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760 # Report which library types will actually be built
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11762 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11764 $as_echo "$can_build_shared" >&6; }
11765
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11767 $as_echo_n "checking whether to build shared libraries... " >&6; }
11768 test "$can_build_shared" = "no" && enable_shared=no
11769
11770 # On AIX, shared libraries and static libraries use the same namespace, and
11771 # are all built from PIC.
11772 case $host_os in
11773 aix3*)
11774 test "$enable_shared" = yes && enable_static=no
11775 if test -n "$RANLIB"; then
11776 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11777 postinstall_cmds='$RANLIB $lib'
11778 fi
11779 ;;
11780
11781 aix[4-9]*)
11782 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11783 test "$enable_shared" = yes && enable_static=no
11784 fi
11785 ;;
11786 esac
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11788 $as_echo "$enable_shared" >&6; }
11789
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11791 $as_echo_n "checking whether to build static libraries... " >&6; }
11792 # Make sure either enable_shared or enable_static is yes.
11793 test "$enable_shared" = yes || enable_static=yes
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11795 $as_echo "$enable_static" >&6; }
11796
11797
11798
11799
11800 fi
11801 ac_ext=c
11802 ac_cpp='$CPP $CPPFLAGS'
11803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11806
11807 CC="$lt_save_CC"
11808
11809 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11810 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11811 (test "X$CXX" != "Xg++"))) ; then
11812 ac_ext=cpp
11813 ac_cpp='$CXXCPP $CPPFLAGS'
11814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11818 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11819 if test -z "$CXXCPP"; then
11820 if ${ac_cv_prog_CXXCPP+:} false; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823 # Double quotes because CXXCPP needs to be expanded
11824 for CXXCPP in "$CXX -E" "/lib/cpp"
11825 do
11826 ac_preproc_ok=false
11827 for ac_cxx_preproc_warn_flag in '' yes
11828 do
11829 # Use a header file that comes with gcc, so configuring glibc
11830 # with a fresh cross-compiler works.
11831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11832 # <limits.h> exists even on freestanding compilers.
11833 # On the NeXT, cc -E runs the code through the compiler's parser,
11834 # not just through cpp. "Syntax error" is here to catch this case.
11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11837 #ifdef __STDC__
11838 # include <limits.h>
11839 #else
11840 # include <assert.h>
11841 #endif
11842 Syntax error
11843 _ACEOF
11844 if ac_fn_cxx_try_cpp "$LINENO"; then :
11845
11846 else
11847 # Broken: fails on valid input.
11848 continue
11849 fi
11850 rm -f conftest.err conftest.i conftest.$ac_ext
11851
11852 # OK, works on sane cases. Now check whether nonexistent headers
11853 # can be detected and how.
11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11856 #include <ac_nonexistent.h>
11857 _ACEOF
11858 if ac_fn_cxx_try_cpp "$LINENO"; then :
11859 # Broken: success on invalid input.
11860 continue
11861 else
11862 # Passes both tests.
11863 ac_preproc_ok=:
11864 break
11865 fi
11866 rm -f conftest.err conftest.i conftest.$ac_ext
11867
11868 done
11869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11870 rm -f conftest.i conftest.err conftest.$ac_ext
11871 if $ac_preproc_ok; then :
11872 break
11873 fi
11874
11875 done
11876 ac_cv_prog_CXXCPP=$CXXCPP
11877
11878 fi
11879 CXXCPP=$ac_cv_prog_CXXCPP
11880 else
11881 ac_cv_prog_CXXCPP=$CXXCPP
11882 fi
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11884 $as_echo "$CXXCPP" >&6; }
11885 ac_preproc_ok=false
11886 for ac_cxx_preproc_warn_flag in '' yes
11887 do
11888 # Use a header file that comes with gcc, so configuring glibc
11889 # with a fresh cross-compiler works.
11890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11891 # <limits.h> exists even on freestanding compilers.
11892 # On the NeXT, cc -E runs the code through the compiler's parser,
11893 # not just through cpp. "Syntax error" is here to catch this case.
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896 #ifdef __STDC__
11897 # include <limits.h>
11898 #else
11899 # include <assert.h>
11900 #endif
11901 Syntax error
11902 _ACEOF
11903 if ac_fn_cxx_try_cpp "$LINENO"; then :
11904
11905 else
11906 # Broken: fails on valid input.
11907 continue
11908 fi
11909 rm -f conftest.err conftest.i conftest.$ac_ext
11910
11911 # OK, works on sane cases. Now check whether nonexistent headers
11912 # can be detected and how.
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11915 #include <ac_nonexistent.h>
11916 _ACEOF
11917 if ac_fn_cxx_try_cpp "$LINENO"; then :
11918 # Broken: success on invalid input.
11919 continue
11920 else
11921 # Passes both tests.
11922 ac_preproc_ok=:
11923 break
11924 fi
11925 rm -f conftest.err conftest.i conftest.$ac_ext
11926
11927 done
11928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11929 rm -f conftest.i conftest.err conftest.$ac_ext
11930 if $ac_preproc_ok; then :
11931
11932 else
11933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11935 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11936 See \`config.log' for more details" "$LINENO" 5; }
11937 fi
11938
11939 ac_ext=c
11940 ac_cpp='$CPP $CPPFLAGS'
11941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11944
11945 else
11946 _lt_caught_CXX_error=yes
11947 fi
11948
11949 ac_ext=cpp
11950 ac_cpp='$CXXCPP $CPPFLAGS'
11951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11954
11955 archive_cmds_need_lc_CXX=no
11956 allow_undefined_flag_CXX=
11957 always_export_symbols_CXX=no
11958 archive_expsym_cmds_CXX=
11959 compiler_needs_object_CXX=no
11960 export_dynamic_flag_spec_CXX=
11961 hardcode_direct_CXX=no
11962 hardcode_direct_absolute_CXX=no
11963 hardcode_libdir_flag_spec_CXX=
11964 hardcode_libdir_flag_spec_ld_CXX=
11965 hardcode_libdir_separator_CXX=
11966 hardcode_minus_L_CXX=no
11967 hardcode_shlibpath_var_CXX=unsupported
11968 hardcode_automatic_CXX=no
11969 inherit_rpath_CXX=no
11970 module_cmds_CXX=
11971 module_expsym_cmds_CXX=
11972 link_all_deplibs_CXX=unknown
11973 old_archive_cmds_CXX=$old_archive_cmds
11974 reload_flag_CXX=$reload_flag
11975 reload_cmds_CXX=$reload_cmds
11976 no_undefined_flag_CXX=
11977 whole_archive_flag_spec_CXX=
11978 enable_shared_with_static_runtimes_CXX=no
11979
11980 # Source file extension for C++ test sources.
11981 ac_ext=cpp
11982
11983 # Object file extension for compiled C++ test sources.
11984 objext=o
11985 objext_CXX=$objext
11986
11987 # No sense in running all these tests if we already determined that
11988 # the CXX compiler isn't working. Some variables (like enable_shared)
11989 # are currently assumed to apply to all compilers on this platform,
11990 # and will be corrupted by setting them based on a non-working compiler.
11991 if test "$_lt_caught_CXX_error" != yes; then
11992 # Code to be used in simple compile tests
11993 lt_simple_compile_test_code="int some_variable = 0;"
11994
11995 # Code to be used in simple link tests
11996 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11997
11998 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11999
12000
12001
12002
12003
12004
12005 # If no C compiler was specified, use CC.
12006 LTCC=${LTCC-"$CC"}
12007
12008 # If no C compiler flags were specified, use CFLAGS.
12009 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12010
12011 # Allow CC to be a program name with arguments.
12012 compiler=$CC
12013
12014
12015 # save warnings/boilerplate of simple test code
12016 ac_outfile=conftest.$ac_objext
12017 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12018 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12019 _lt_compiler_boilerplate=`cat conftest.err`
12020 $RM conftest*
12021
12022 ac_outfile=conftest.$ac_objext
12023 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12024 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12025 _lt_linker_boilerplate=`cat conftest.err`
12026 $RM -r conftest*
12027
12028
12029 # Allow CC to be a program name with arguments.
12030 lt_save_CC=$CC
12031 lt_save_LD=$LD
12032 lt_save_GCC=$GCC
12033 GCC=$GXX
12034 lt_save_with_gnu_ld=$with_gnu_ld
12035 lt_save_path_LD=$lt_cv_path_LD
12036 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12037 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12038 else
12039 $as_unset lt_cv_prog_gnu_ld
12040 fi
12041 if test -n "${lt_cv_path_LDCXX+set}"; then
12042 lt_cv_path_LD=$lt_cv_path_LDCXX
12043 else
12044 $as_unset lt_cv_path_LD
12045 fi
12046 test -z "${LDCXX+set}" || LD=$LDCXX
12047 CC=${CXX-"c++"}
12048 compiler=$CC
12049 compiler_CXX=$CC
12050 for cc_temp in $compiler""; do
12051 case $cc_temp in
12052 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12053 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12054 \-*) ;;
12055 *) break;;
12056 esac
12057 done
12058 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12059
12060
12061 if test -n "$compiler"; then
12062 # We don't want -fno-exception when compiling C++ code, so set the
12063 # no_builtin_flag separately
12064 if test "$GXX" = yes; then
12065 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12066 else
12067 lt_prog_compiler_no_builtin_flag_CXX=
12068 fi
12069
12070 if test "$GXX" = yes; then
12071 # Set up default GNU C++ configuration
12072
12073
12074
12075 # Check whether --with-gnu-ld was given.
12076 if test "${with_gnu_ld+set}" = set; then :
12077 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12078 else
12079 with_gnu_ld=no
12080 fi
12081
12082 ac_prog=ld
12083 if test "$GCC" = yes; then
12084 # Check if gcc -print-prog-name=ld gives a path.
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12086 $as_echo_n "checking for ld used by $CC... " >&6; }
12087 case $host in
12088 *-*-mingw*)
12089 # gcc leaves a trailing carriage return which upsets mingw
12090 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12091 *)
12092 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12093 esac
12094 case $ac_prog in
12095 # Accept absolute paths.
12096 [\\/]* | ?:[\\/]*)
12097 re_direlt='/[^/][^/]*/\.\./'
12098 # Canonicalize the pathname of ld
12099 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12100 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12101 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12102 done
12103 test -z "$LD" && LD="$ac_prog"
12104 ;;
12105 "")
12106 # If it fails, then pretend we aren't using GCC.
12107 ac_prog=ld
12108 ;;
12109 *)
12110 # If it is relative, then search for the first ld in PATH.
12111 with_gnu_ld=unknown
12112 ;;
12113 esac
12114 elif test "$with_gnu_ld" = yes; then
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12116 $as_echo_n "checking for GNU ld... " >&6; }
12117 else
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12119 $as_echo_n "checking for non-GNU ld... " >&6; }
12120 fi
12121 if ${lt_cv_path_LD+:} false; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 if test -z "$LD"; then
12125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12126 for ac_dir in $PATH; do
12127 IFS="$lt_save_ifs"
12128 test -z "$ac_dir" && ac_dir=.
12129 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12130 lt_cv_path_LD="$ac_dir/$ac_prog"
12131 # Check to see if the program is GNU ld. I'd rather use --version,
12132 # but apparently some variants of GNU ld only accept -v.
12133 # Break only if it was the GNU/non-GNU ld that we prefer.
12134 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12135 *GNU* | *'with BFD'*)
12136 test "$with_gnu_ld" != no && break
12137 ;;
12138 *)
12139 test "$with_gnu_ld" != yes && break
12140 ;;
12141 esac
12142 fi
12143 done
12144 IFS="$lt_save_ifs"
12145 else
12146 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12147 fi
12148 fi
12149
12150 LD="$lt_cv_path_LD"
12151 if test -n "$LD"; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12153 $as_echo "$LD" >&6; }
12154 else
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156 $as_echo "no" >&6; }
12157 fi
12158 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12160 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12161 if ${lt_cv_prog_gnu_ld+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12165 case `$LD -v 2>&1 </dev/null` in
12166 *GNU* | *'with BFD'*)
12167 lt_cv_prog_gnu_ld=yes
12168 ;;
12169 *)
12170 lt_cv_prog_gnu_ld=no
12171 ;;
12172 esac
12173 fi
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12175 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12176 with_gnu_ld=$lt_cv_prog_gnu_ld
12177
12178
12179
12180
12181
12182
12183
12184 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12185 # archiving commands below assume that GNU ld is being used.
12186 if test "$with_gnu_ld" = yes; then
12187 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12188 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12189
12190 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12191 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12192
12193 # If archive_cmds runs LD, not CC, wlarc should be empty
12194 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12195 # investigate it a little bit more. (MM)
12196 wlarc='${wl}'
12197
12198 # ancient GNU ld didn't support --whole-archive et. al.
12199 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12200 $GREP 'no-whole-archive' > /dev/null; then
12201 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12202 else
12203 whole_archive_flag_spec_CXX=
12204 fi
12205 else
12206 with_gnu_ld=no
12207 wlarc=
12208
12209 # A generic and very simple default shared library creation
12210 # command for GNU C++ for the case where it uses the native
12211 # linker, instead of GNU ld. If possible, this setting should
12212 # overridden to take advantage of the native linker features on
12213 # the platform it is being used on.
12214 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12215 fi
12216
12217 # Commands to make compiler produce verbose output that lists
12218 # what "hidden" libraries, object files and flags are used when
12219 # linking a shared library.
12220 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12221
12222 else
12223 GXX=no
12224 with_gnu_ld=no
12225 wlarc=
12226 fi
12227
12228 # PORTME: fill in a description of your system's C++ link characteristics
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12230 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12231 ld_shlibs_CXX=yes
12232 case $host_os in
12233 aix3*)
12234 # FIXME: insert proper C++ library support
12235 ld_shlibs_CXX=no
12236 ;;
12237 aix[4-9]*)
12238 if test "$host_cpu" = ia64; then
12239 # On IA64, the linker does run time linking by default, so we don't
12240 # have to do anything special.
12241 aix_use_runtimelinking=no
12242 exp_sym_flag='-Bexport'
12243 no_entry_flag=""
12244 else
12245 aix_use_runtimelinking=no
12246
12247 # Test if we are trying to use run time linking or normal
12248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12249 # need to do runtime linking.
12250 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12251 for ld_flag in $LDFLAGS; do
12252 case $ld_flag in
12253 *-brtl*)
12254 aix_use_runtimelinking=yes
12255 break
12256 ;;
12257 esac
12258 done
12259 ;;
12260 esac
12261
12262 exp_sym_flag='-bexport'
12263 no_entry_flag='-bnoentry'
12264 fi
12265
12266 # When large executables or shared objects are built, AIX ld can
12267 # have problems creating the table of contents. If linking a library
12268 # or program results in "error TOC overflow" add -mminimal-toc to
12269 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12270 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12271
12272 archive_cmds_CXX=''
12273 hardcode_direct_CXX=yes
12274 hardcode_direct_absolute_CXX=yes
12275 hardcode_libdir_separator_CXX=':'
12276 link_all_deplibs_CXX=yes
12277 file_list_spec_CXX='${wl}-f,'
12278
12279 if test "$GXX" = yes; then
12280 case $host_os in aix4.[012]|aix4.[012].*)
12281 # We only want to do this on AIX 4.2 and lower, the check
12282 # below for broken collect2 doesn't work under 4.3+
12283 collect2name=`${CC} -print-prog-name=collect2`
12284 if test -f "$collect2name" &&
12285 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12286 then
12287 # We have reworked collect2
12288 :
12289 else
12290 # We have old collect2
12291 hardcode_direct_CXX=unsupported
12292 # It fails to find uninstalled libraries when the uninstalled
12293 # path is not listed in the libpath. Setting hardcode_minus_L
12294 # to unsupported forces relinking
12295 hardcode_minus_L_CXX=yes
12296 hardcode_libdir_flag_spec_CXX='-L$libdir'
12297 hardcode_libdir_separator_CXX=
12298 fi
12299 esac
12300 shared_flag='-shared'
12301 if test "$aix_use_runtimelinking" = yes; then
12302 shared_flag="$shared_flag "'${wl}-G'
12303 fi
12304 else
12305 # not using gcc
12306 if test "$host_cpu" = ia64; then
12307 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12308 # chokes on -Wl,-G. The following line is correct:
12309 shared_flag='-G'
12310 else
12311 if test "$aix_use_runtimelinking" = yes; then
12312 shared_flag='${wl}-G'
12313 else
12314 shared_flag='${wl}-bM:SRE'
12315 fi
12316 fi
12317 fi
12318
12319 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12320 # It seems that -bexpall does not export symbols beginning with
12321 # underscore (_), so it is better to generate a list of symbols to
12322 # export.
12323 always_export_symbols_CXX=yes
12324 if test "$aix_use_runtimelinking" = yes; then
12325 # Warning - without using the other runtime loading flags (-brtl),
12326 # -berok will link without error, but may produce a broken library.
12327 allow_undefined_flag_CXX='-berok'
12328 # Determine the default libpath from the value encoded in an empty
12329 # executable.
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12332
12333 int
12334 main ()
12335 {
12336
12337 ;
12338 return 0;
12339 }
12340 _ACEOF
12341 if ac_fn_cxx_try_link "$LINENO"; then :
12342
12343 lt_aix_libpath_sed='
12344 /Import File Strings/,/^$/ {
12345 /^0/ {
12346 s/^0 *\(.*\)$/\1/
12347 p
12348 }
12349 }'
12350 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12351 # Check for a 64-bit object if we didn't find anything.
12352 if test -z "$aix_libpath"; then
12353 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12354 fi
12355 fi
12356 rm -f core conftest.err conftest.$ac_objext \
12357 conftest$ac_exeext conftest.$ac_ext
12358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12359
12360 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12361
12362 archive_expsym_cmds_CXX='$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"
12363 else
12364 if test "$host_cpu" = ia64; then
12365 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12366 allow_undefined_flag_CXX="-z nodefs"
12367 archive_expsym_cmds_CXX="\$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"
12368 else
12369 # Determine the default libpath from the value encoded in an
12370 # empty executable.
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12373
12374 int
12375 main ()
12376 {
12377
12378 ;
12379 return 0;
12380 }
12381 _ACEOF
12382 if ac_fn_cxx_try_link "$LINENO"; then :
12383
12384 lt_aix_libpath_sed='
12385 /Import File Strings/,/^$/ {
12386 /^0/ {
12387 s/^0 *\(.*\)$/\1/
12388 p
12389 }
12390 }'
12391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12392 # Check for a 64-bit object if we didn't find anything.
12393 if test -z "$aix_libpath"; then
12394 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12395 fi
12396 fi
12397 rm -f core conftest.err conftest.$ac_objext \
12398 conftest$ac_exeext conftest.$ac_ext
12399 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12400
12401 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12402 # Warning - without using the other run time loading flags,
12403 # -berok will link without error, but may produce a broken library.
12404 no_undefined_flag_CXX=' ${wl}-bernotok'
12405 allow_undefined_flag_CXX=' ${wl}-berok'
12406 if test "$with_gnu_ld" = yes; then
12407 # We only use this code for GNU lds that support --whole-archive.
12408 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12409 else
12410 # Exported symbols can be pulled into shared objects from archives
12411 whole_archive_flag_spec_CXX='$convenience'
12412 fi
12413 archive_cmds_need_lc_CXX=yes
12414 # This is similar to how AIX traditionally builds its shared
12415 # libraries.
12416 archive_expsym_cmds_CXX="\$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'
12417 fi
12418 fi
12419 ;;
12420
12421 beos*)
12422 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12423 allow_undefined_flag_CXX=unsupported
12424 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12425 # support --undefined. This deserves some investigation. FIXME
12426 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12427 else
12428 ld_shlibs_CXX=no
12429 fi
12430 ;;
12431
12432 chorus*)
12433 case $cc_basename in
12434 *)
12435 # FIXME: insert proper C++ library support
12436 ld_shlibs_CXX=no
12437 ;;
12438 esac
12439 ;;
12440
12441 cygwin* | mingw* | pw32* | cegcc*)
12442 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12443 # as there is no search path for DLLs.
12444 hardcode_libdir_flag_spec_CXX='-L$libdir'
12445 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12446 allow_undefined_flag_CXX=unsupported
12447 always_export_symbols_CXX=no
12448 enable_shared_with_static_runtimes_CXX=yes
12449
12450 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12451 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12452 # If the export-symbols file already is a .def file (1st line
12453 # is EXPORTS), use it as is; otherwise, prepend...
12454 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12455 cp $export_symbols $output_objdir/$soname.def;
12456 else
12457 echo EXPORTS > $output_objdir/$soname.def;
12458 cat $export_symbols >> $output_objdir/$soname.def;
12459 fi~
12460 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12461 else
12462 ld_shlibs_CXX=no
12463 fi
12464 ;;
12465 darwin* | rhapsody*)
12466
12467
12468 archive_cmds_need_lc_CXX=no
12469 hardcode_direct_CXX=no
12470 hardcode_automatic_CXX=yes
12471 hardcode_shlibpath_var_CXX=unsupported
12472 if test "$lt_cv_ld_force_load" = "yes"; then
12473 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12474 else
12475 whole_archive_flag_spec_CXX=''
12476 fi
12477 link_all_deplibs_CXX=yes
12478 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12479 case $cc_basename in
12480 ifort*) _lt_dar_can_shared=yes ;;
12481 *) _lt_dar_can_shared=$GCC ;;
12482 esac
12483 if test "$_lt_dar_can_shared" = "yes"; then
12484 output_verbose_link_cmd=func_echo_all
12485 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12486 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12487 archive_expsym_cmds_CXX="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}"
12488 module_expsym_cmds_CXX="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}"
12489 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12490 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12491 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12492 fi
12493
12494 else
12495 ld_shlibs_CXX=no
12496 fi
12497
12498 ;;
12499
12500 dgux*)
12501 case $cc_basename in
12502 ec++*)
12503 # FIXME: insert proper C++ library support
12504 ld_shlibs_CXX=no
12505 ;;
12506 ghcx*)
12507 # Green Hills C++ Compiler
12508 # FIXME: insert proper C++ library support
12509 ld_shlibs_CXX=no
12510 ;;
12511 *)
12512 # FIXME: insert proper C++ library support
12513 ld_shlibs_CXX=no
12514 ;;
12515 esac
12516 ;;
12517
12518 freebsd2.*)
12519 # C++ shared libraries reported to be fairly broken before
12520 # switch to ELF
12521 ld_shlibs_CXX=no
12522 ;;
12523
12524 freebsd-elf*)
12525 archive_cmds_need_lc_CXX=no
12526 ;;
12527
12528 freebsd* | dragonfly*)
12529 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12530 # conventions
12531 ld_shlibs_CXX=yes
12532 ;;
12533
12534 gnu*)
12535 ;;
12536
12537 haiku*)
12538 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12539 link_all_deplibs_CXX=yes
12540 ;;
12541
12542 hpux9*)
12543 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12544 hardcode_libdir_separator_CXX=:
12545 export_dynamic_flag_spec_CXX='${wl}-E'
12546 hardcode_direct_CXX=yes
12547 hardcode_minus_L_CXX=yes # Not in the search PATH,
12548 # but as the default
12549 # location of the library.
12550
12551 case $cc_basename in
12552 CC*)
12553 # FIXME: insert proper C++ library support
12554 ld_shlibs_CXX=no
12555 ;;
12556 aCC*)
12557 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12558 # Commands to make compiler produce verbose output that lists
12559 # what "hidden" libraries, object files and flags are used when
12560 # linking a shared library.
12561 #
12562 # There doesn't appear to be a way to prevent this compiler from
12563 # explicitly linking system object files so we need to strip them
12564 # from the output so that they don't get included in the library
12565 # dependencies.
12566 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12567 ;;
12568 *)
12569 if test "$GXX" = yes; then
12570 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12571 else
12572 # FIXME: insert proper C++ library support
12573 ld_shlibs_CXX=no
12574 fi
12575 ;;
12576 esac
12577 ;;
12578
12579 hpux10*|hpux11*)
12580 if test $with_gnu_ld = no; then
12581 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12582 hardcode_libdir_separator_CXX=:
12583
12584 case $host_cpu in
12585 hppa*64*|ia64*)
12586 ;;
12587 *)
12588 export_dynamic_flag_spec_CXX='${wl}-E'
12589 ;;
12590 esac
12591 fi
12592 case $host_cpu in
12593 hppa*64*|ia64*)
12594 hardcode_direct_CXX=no
12595 hardcode_shlibpath_var_CXX=no
12596 ;;
12597 *)
12598 hardcode_direct_CXX=yes
12599 hardcode_direct_absolute_CXX=yes
12600 hardcode_minus_L_CXX=yes # Not in the search PATH,
12601 # but as the default
12602 # location of the library.
12603 ;;
12604 esac
12605
12606 case $cc_basename in
12607 CC*)
12608 # FIXME: insert proper C++ library support
12609 ld_shlibs_CXX=no
12610 ;;
12611 aCC*)
12612 case $host_cpu in
12613 hppa*64*)
12614 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12615 ;;
12616 ia64*)
12617 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12618 ;;
12619 *)
12620 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12621 ;;
12622 esac
12623 # Commands to make compiler produce verbose output that lists
12624 # what "hidden" libraries, object files and flags are used when
12625 # linking a shared library.
12626 #
12627 # There doesn't appear to be a way to prevent this compiler from
12628 # explicitly linking system object files so we need to strip them
12629 # from the output so that they don't get included in the library
12630 # dependencies.
12631 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12632 ;;
12633 *)
12634 if test "$GXX" = yes; then
12635 if test $with_gnu_ld = no; then
12636 case $host_cpu in
12637 hppa*64*)
12638 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12639 ;;
12640 ia64*)
12641 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12642 ;;
12643 *)
12644 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12645 ;;
12646 esac
12647 fi
12648 else
12649 # FIXME: insert proper C++ library support
12650 ld_shlibs_CXX=no
12651 fi
12652 ;;
12653 esac
12654 ;;
12655
12656 interix[3-9]*)
12657 hardcode_direct_CXX=no
12658 hardcode_shlibpath_var_CXX=no
12659 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12660 export_dynamic_flag_spec_CXX='${wl}-E'
12661 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12662 # Instead, shared libraries are loaded at an image base (0x10000000 by
12663 # default) and relocated if they conflict, which is a slow very memory
12664 # consuming and fragmenting process. To avoid this, we pick a random,
12665 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12666 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12667 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12668 archive_expsym_cmds_CXX='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'
12669 ;;
12670 irix5* | irix6*)
12671 case $cc_basename in
12672 CC*)
12673 # SGI C++
12674 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12675
12676 # Archives containing C++ object files must be created using
12677 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12678 # necessary to make sure instantiated templates are included
12679 # in the archive.
12680 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12681 ;;
12682 *)
12683 if test "$GXX" = yes; then
12684 if test "$with_gnu_ld" = no; then
12685 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12686 else
12687 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12688 fi
12689 fi
12690 link_all_deplibs_CXX=yes
12691 ;;
12692 esac
12693 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12694 hardcode_libdir_separator_CXX=:
12695 inherit_rpath_CXX=yes
12696 ;;
12697
12698 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12699 case $cc_basename in
12700 KCC*)
12701 # Kuck and Associates, Inc. (KAI) C++ Compiler
12702
12703 # KCC will only create a shared library if the output file
12704 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12705 # to its proper name (with version) after linking.
12706 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12707 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12708 # Commands to make compiler produce verbose output that lists
12709 # what "hidden" libraries, object files and flags are used when
12710 # linking a shared library.
12711 #
12712 # There doesn't appear to be a way to prevent this compiler from
12713 # explicitly linking system object files so we need to strip them
12714 # from the output so that they don't get included in the library
12715 # dependencies.
12716 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12717
12718 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12719 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12720
12721 # Archives containing C++ object files must be created using
12722 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12723 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12724 ;;
12725 icpc* | ecpc* )
12726 # Intel C++
12727 with_gnu_ld=yes
12728 # version 8.0 and above of icpc choke on multiply defined symbols
12729 # if we add $predep_objects and $postdep_objects, however 7.1 and
12730 # earlier do not add the objects themselves.
12731 case `$CC -V 2>&1` in
12732 *"Version 7."*)
12733 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12734 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12735 ;;
12736 *) # Version 8.0 or newer
12737 tmp_idyn=
12738 case $host_cpu in
12739 ia64*) tmp_idyn=' -i_dynamic';;
12740 esac
12741 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12742 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12743 ;;
12744 esac
12745 archive_cmds_need_lc_CXX=no
12746 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12747 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12748 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12749 ;;
12750 pgCC* | pgcpp*)
12751 # Portland Group C++ compiler
12752 case `$CC -V` in
12753 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12754 prelink_cmds_CXX='tpldir=Template.dir~
12755 rm -rf $tpldir~
12756 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12757 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12758 old_archive_cmds_CXX='tpldir=Template.dir~
12759 rm -rf $tpldir~
12760 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12761 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12762 $RANLIB $oldlib'
12763 archive_cmds_CXX='tpldir=Template.dir~
12764 rm -rf $tpldir~
12765 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12766 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12767 archive_expsym_cmds_CXX='tpldir=Template.dir~
12768 rm -rf $tpldir~
12769 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12770 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12771 ;;
12772 *) # Version 6 and above use weak symbols
12773 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12774 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12775 ;;
12776 esac
12777
12778 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12779 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12780 whole_archive_flag_spec_CXX='${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'
12781 ;;
12782 cxx*)
12783 # Compaq C++
12784 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12785 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12786
12787 runpath_var=LD_RUN_PATH
12788 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12789 hardcode_libdir_separator_CXX=:
12790
12791 # Commands to make compiler produce verbose output that lists
12792 # what "hidden" libraries, object files and flags are used when
12793 # linking a shared library.
12794 #
12795 # There doesn't appear to be a way to prevent this compiler from
12796 # explicitly linking system object files so we need to strip them
12797 # from the output so that they don't get included in the library
12798 # dependencies.
12799 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12800 ;;
12801 xl* | mpixl* | bgxl*)
12802 # IBM XL 8.0 on PPC, with GNU ld
12803 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12804 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12805 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12806 if test "x$supports_anon_versioning" = xyes; then
12807 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12808 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12809 echo "local: *; };" >> $output_objdir/$libname.ver~
12810 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12811 fi
12812 ;;
12813 *)
12814 case `$CC -V 2>&1 | sed 5q` in
12815 *Sun\ C*)
12816 # Sun C++ 5.9
12817 no_undefined_flag_CXX=' -zdefs'
12818 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12819 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12820 hardcode_libdir_flag_spec_CXX='-R$libdir'
12821 whole_archive_flag_spec_CXX='${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'
12822 compiler_needs_object_CXX=yes
12823
12824 # Not sure whether something based on
12825 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12826 # would be better.
12827 output_verbose_link_cmd='func_echo_all'
12828
12829 # Archives containing C++ object files must be created using
12830 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12831 # necessary to make sure instantiated templates are included
12832 # in the archive.
12833 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12834 ;;
12835 esac
12836 ;;
12837 esac
12838 ;;
12839
12840 lynxos*)
12841 # FIXME: insert proper C++ library support
12842 ld_shlibs_CXX=no
12843 ;;
12844
12845 m88k*)
12846 # FIXME: insert proper C++ library support
12847 ld_shlibs_CXX=no
12848 ;;
12849
12850 mvs*)
12851 case $cc_basename in
12852 cxx*)
12853 # FIXME: insert proper C++ library support
12854 ld_shlibs_CXX=no
12855 ;;
12856 *)
12857 # FIXME: insert proper C++ library support
12858 ld_shlibs_CXX=no
12859 ;;
12860 esac
12861 ;;
12862
12863 netbsd*)
12864 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12865 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12866 wlarc=
12867 hardcode_libdir_flag_spec_CXX='-R$libdir'
12868 hardcode_direct_CXX=yes
12869 hardcode_shlibpath_var_CXX=no
12870 fi
12871 # Workaround some broken pre-1.5 toolchains
12872 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12873 ;;
12874
12875 *nto* | *qnx*)
12876 ld_shlibs_CXX=yes
12877 ;;
12878
12879 openbsd2*)
12880 # C++ shared libraries are fairly broken
12881 ld_shlibs_CXX=no
12882 ;;
12883
12884 openbsd*)
12885 if test -f /usr/libexec/ld.so; then
12886 hardcode_direct_CXX=yes
12887 hardcode_shlibpath_var_CXX=no
12888 hardcode_direct_absolute_CXX=yes
12889 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12890 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12892 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12893 export_dynamic_flag_spec_CXX='${wl}-E'
12894 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12895 fi
12896 output_verbose_link_cmd=func_echo_all
12897 else
12898 ld_shlibs_CXX=no
12899 fi
12900 ;;
12901
12902 osf3* | osf4* | osf5*)
12903 case $cc_basename in
12904 KCC*)
12905 # Kuck and Associates, Inc. (KAI) C++ Compiler
12906
12907 # KCC will only create a shared library if the output file
12908 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12909 # to its proper name (with version) after linking.
12910 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12911
12912 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12913 hardcode_libdir_separator_CXX=:
12914
12915 # Archives containing C++ object files must be created using
12916 # the KAI C++ compiler.
12917 case $host in
12918 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12919 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12920 esac
12921 ;;
12922 RCC*)
12923 # Rational C++ 2.4.1
12924 # FIXME: insert proper C++ library support
12925 ld_shlibs_CXX=no
12926 ;;
12927 cxx*)
12928 case $host in
12929 osf3*)
12930 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12931 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12932 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12933 ;;
12934 *)
12935 allow_undefined_flag_CXX=' -expect_unresolved \*'
12936 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12937 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12938 echo "-hidden">> $lib.exp~
12939 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12940 $RM $lib.exp'
12941 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12942 ;;
12943 esac
12944
12945 hardcode_libdir_separator_CXX=:
12946
12947 # Commands to make compiler produce verbose output that lists
12948 # what "hidden" libraries, object files and flags are used when
12949 # linking a shared library.
12950 #
12951 # There doesn't appear to be a way to prevent this compiler from
12952 # explicitly linking system object files so we need to strip them
12953 # from the output so that they don't get included in the library
12954 # dependencies.
12955 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12956 ;;
12957 *)
12958 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12959 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12960 case $host in
12961 osf3*)
12962 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12963 ;;
12964 *)
12965 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12966 ;;
12967 esac
12968
12969 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12970 hardcode_libdir_separator_CXX=:
12971
12972 # Commands to make compiler produce verbose output that lists
12973 # what "hidden" libraries, object files and flags are used when
12974 # linking a shared library.
12975 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12976
12977 else
12978 # FIXME: insert proper C++ library support
12979 ld_shlibs_CXX=no
12980 fi
12981 ;;
12982 esac
12983 ;;
12984
12985 psos*)
12986 # FIXME: insert proper C++ library support
12987 ld_shlibs_CXX=no
12988 ;;
12989
12990 sunos4*)
12991 case $cc_basename in
12992 CC*)
12993 # Sun C++ 4.x
12994 # FIXME: insert proper C++ library support
12995 ld_shlibs_CXX=no
12996 ;;
12997 lcc*)
12998 # Lucid
12999 # FIXME: insert proper C++ library support
13000 ld_shlibs_CXX=no
13001 ;;
13002 *)
13003 # FIXME: insert proper C++ library support
13004 ld_shlibs_CXX=no
13005 ;;
13006 esac
13007 ;;
13008
13009 solaris*)
13010 case $cc_basename in
13011 CC*)
13012 # Sun C++ 4.2, 5.x and Centerline C++
13013 archive_cmds_need_lc_CXX=yes
13014 no_undefined_flag_CXX=' -zdefs'
13015 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13016 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13017 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13018
13019 hardcode_libdir_flag_spec_CXX='-R$libdir'
13020 hardcode_shlibpath_var_CXX=no
13021 case $host_os in
13022 solaris2.[0-5] | solaris2.[0-5].*) ;;
13023 *)
13024 # The compiler driver will combine and reorder linker options,
13025 # but understands `-z linker_flag'.
13026 # Supported since Solaris 2.6 (maybe 2.5.1?)
13027 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13028 ;;
13029 esac
13030 link_all_deplibs_CXX=yes
13031
13032 output_verbose_link_cmd='func_echo_all'
13033
13034 # Archives containing C++ object files must be created using
13035 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13036 # necessary to make sure instantiated templates are included
13037 # in the archive.
13038 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13039 ;;
13040 gcx*)
13041 # Green Hills C++ Compiler
13042 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13043
13044 # The C++ compiler must be used to create the archive.
13045 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13046 ;;
13047 *)
13048 # GNU C++ compiler with Solaris linker
13049 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13050 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13051 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13052 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13053 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13054 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13055
13056 # Commands to make compiler produce verbose output that lists
13057 # what "hidden" libraries, object files and flags are used when
13058 # linking a shared library.
13059 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13060 else
13061 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13062 # platform.
13063 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13064 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13065 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13066
13067 # Commands to make compiler produce verbose output that lists
13068 # what "hidden" libraries, object files and flags are used when
13069 # linking a shared library.
13070 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13071 fi
13072
13073 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13074 case $host_os in
13075 solaris2.[0-5] | solaris2.[0-5].*) ;;
13076 *)
13077 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13078 ;;
13079 esac
13080 fi
13081 ;;
13082 esac
13083 ;;
13084
13085 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13086 no_undefined_flag_CXX='${wl}-z,text'
13087 archive_cmds_need_lc_CXX=no
13088 hardcode_shlibpath_var_CXX=no
13089 runpath_var='LD_RUN_PATH'
13090
13091 case $cc_basename in
13092 CC*)
13093 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13094 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13095 ;;
13096 *)
13097 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13098 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13099 ;;
13100 esac
13101 ;;
13102
13103 sysv5* | sco3.2v5* | sco5v6*)
13104 # Note: We can NOT use -z defs as we might desire, because we do not
13105 # link with -lc, and that would cause any symbols used from libc to
13106 # always be unresolved, which means just about no library would
13107 # ever link correctly. If we're not using GNU ld we use -z text
13108 # though, which does catch some bad symbols but isn't as heavy-handed
13109 # as -z defs.
13110 no_undefined_flag_CXX='${wl}-z,text'
13111 allow_undefined_flag_CXX='${wl}-z,nodefs'
13112 archive_cmds_need_lc_CXX=no
13113 hardcode_shlibpath_var_CXX=no
13114 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13115 hardcode_libdir_separator_CXX=':'
13116 link_all_deplibs_CXX=yes
13117 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13118 runpath_var='LD_RUN_PATH'
13119
13120 case $cc_basename in
13121 CC*)
13122 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13123 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13124 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13125 '"$old_archive_cmds_CXX"
13126 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13127 '"$reload_cmds_CXX"
13128 ;;
13129 *)
13130 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13131 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13132 ;;
13133 esac
13134 ;;
13135
13136 tandem*)
13137 case $cc_basename in
13138 NCC*)
13139 # NonStop-UX NCC 3.20
13140 # FIXME: insert proper C++ library support
13141 ld_shlibs_CXX=no
13142 ;;
13143 *)
13144 # FIXME: insert proper C++ library support
13145 ld_shlibs_CXX=no
13146 ;;
13147 esac
13148 ;;
13149
13150 vxworks*)
13151 # For VxWorks ports, we assume the use of a GNU linker with
13152 # standard elf conventions.
13153 ld_shlibs_CXX=yes
13154 ;;
13155
13156 *)
13157 # FIXME: insert proper C++ library support
13158 ld_shlibs_CXX=no
13159 ;;
13160 esac
13161
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13163 $as_echo "$ld_shlibs_CXX" >&6; }
13164 test "$ld_shlibs_CXX" = no && can_build_shared=no
13165
13166 GCC_CXX="$GXX"
13167 LD_CXX="$LD"
13168
13169 ## CAVEAT EMPTOR:
13170 ## There is no encapsulation within the following macros, do not change
13171 ## the running order or otherwise move them around unless you know exactly
13172 ## what you are doing...
13173 # Dependencies to place before and after the object being linked:
13174 predep_objects_CXX=
13175 postdep_objects_CXX=
13176 predeps_CXX=
13177 postdeps_CXX=
13178 compiler_lib_search_path_CXX=
13179
13180 cat > conftest.$ac_ext <<_LT_EOF
13181 class Foo
13182 {
13183 public:
13184 Foo (void) { a = 0; }
13185 private:
13186 int a;
13187 };
13188 _LT_EOF
13189
13190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13191 (eval $ac_compile) 2>&5
13192 ac_status=$?
13193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13194 test $ac_status = 0; }; then
13195 # Parse the compiler output and extract the necessary
13196 # objects, libraries and library flags.
13197
13198 # Sentinel used to keep track of whether or not we are before
13199 # the conftest object file.
13200 pre_test_object_deps_done=no
13201
13202 for p in `eval "$output_verbose_link_cmd"`; do
13203 case $p in
13204
13205 -L* | -R* | -l*)
13206 # Some compilers place space between "-{L,R}" and the path.
13207 # Remove the space.
13208 if test $p = "-L" ||
13209 test $p = "-R"; then
13210 prev=$p
13211 continue
13212 else
13213 prev=
13214 fi
13215
13216 if test "$pre_test_object_deps_done" = no; then
13217 case $p in
13218 -L* | -R*)
13219 # Internal compiler library paths should come after those
13220 # provided the user. The postdeps already come after the
13221 # user supplied libs so there is no need to process them.
13222 if test -z "$compiler_lib_search_path_CXX"; then
13223 compiler_lib_search_path_CXX="${prev}${p}"
13224 else
13225 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13226 fi
13227 ;;
13228 # The "-l" case would never come before the object being
13229 # linked, so don't bother handling this case.
13230 esac
13231 else
13232 if test -z "$postdeps_CXX"; then
13233 postdeps_CXX="${prev}${p}"
13234 else
13235 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13236 fi
13237 fi
13238 ;;
13239
13240 *.$objext)
13241 # This assumes that the test object file only shows up
13242 # once in the compiler output.
13243 if test "$p" = "conftest.$objext"; then
13244 pre_test_object_deps_done=yes
13245 continue
13246 fi
13247
13248 if test "$pre_test_object_deps_done" = no; then
13249 if test -z "$predep_objects_CXX"; then
13250 predep_objects_CXX="$p"
13251 else
13252 predep_objects_CXX="$predep_objects_CXX $p"
13253 fi
13254 else
13255 if test -z "$postdep_objects_CXX"; then
13256 postdep_objects_CXX="$p"
13257 else
13258 postdep_objects_CXX="$postdep_objects_CXX $p"
13259 fi
13260 fi
13261 ;;
13262
13263 *) ;; # Ignore the rest.
13264
13265 esac
13266 done
13267
13268 # Clean up.
13269 rm -f a.out a.exe
13270 else
13271 echo "libtool.m4: error: problem compiling CXX test program"
13272 fi
13273
13274 $RM -f confest.$objext
13275
13276 # PORTME: override above test on systems where it is broken
13277 case $host_os in
13278 interix[3-9]*)
13279 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13280 # hack all around it, let's just trust "g++" to DTRT.
13281 predep_objects_CXX=
13282 postdep_objects_CXX=
13283 postdeps_CXX=
13284 ;;
13285
13286 linux*)
13287 case `$CC -V 2>&1 | sed 5q` in
13288 *Sun\ C*)
13289 # Sun C++ 5.9
13290
13291 # The more standards-conforming stlport4 library is
13292 # incompatible with the Cstd library. Avoid specifying
13293 # it if it's in CXXFLAGS. Ignore libCrun as
13294 # -library=stlport4 depends on it.
13295 case " $CXX $CXXFLAGS " in
13296 *" -library=stlport4 "*)
13297 solaris_use_stlport4=yes
13298 ;;
13299 esac
13300
13301 if test "$solaris_use_stlport4" != yes; then
13302 postdeps_CXX='-library=Cstd -library=Crun'
13303 fi
13304 ;;
13305 esac
13306 ;;
13307
13308 solaris*)
13309 case $cc_basename in
13310 CC*)
13311 # The more standards-conforming stlport4 library is
13312 # incompatible with the Cstd library. Avoid specifying
13313 # it if it's in CXXFLAGS. Ignore libCrun as
13314 # -library=stlport4 depends on it.
13315 case " $CXX $CXXFLAGS " in
13316 *" -library=stlport4 "*)
13317 solaris_use_stlport4=yes
13318 ;;
13319 esac
13320
13321 # Adding this requires a known-good setup of shared libraries for
13322 # Sun compiler versions before 5.6, else PIC objects from an old
13323 # archive will be linked into the output, leading to subtle bugs.
13324 if test "$solaris_use_stlport4" != yes; then
13325 postdeps_CXX='-library=Cstd -library=Crun'
13326 fi
13327 ;;
13328 esac
13329 ;;
13330 esac
13331
13332
13333 case " $postdeps_CXX " in
13334 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13335 esac
13336 compiler_lib_search_dirs_CXX=
13337 if test -n "${compiler_lib_search_path_CXX}"; then
13338 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13339 fi
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371 lt_prog_compiler_wl_CXX=
13372 lt_prog_compiler_pic_CXX=
13373 lt_prog_compiler_static_CXX=
13374
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13376 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13377
13378 # C++ specific cases for pic, static, wl, etc.
13379 if test "$GXX" = yes; then
13380 lt_prog_compiler_wl_CXX='-Wl,'
13381 lt_prog_compiler_static_CXX='-static'
13382
13383 case $host_os in
13384 aix*)
13385 # All AIX code is PIC.
13386 if test "$host_cpu" = ia64; then
13387 # AIX 5 now supports IA64 processor
13388 lt_prog_compiler_static_CXX='-Bstatic'
13389 fi
13390 lt_prog_compiler_pic_CXX='-fPIC'
13391 ;;
13392
13393 amigaos*)
13394 case $host_cpu in
13395 powerpc)
13396 # see comment about AmigaOS4 .so support
13397 lt_prog_compiler_pic_CXX='-fPIC'
13398 ;;
13399 m68k)
13400 # FIXME: we need at least 68020 code to build shared libraries, but
13401 # adding the `-m68020' flag to GCC prevents building anything better,
13402 # like `-m68040'.
13403 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13404 ;;
13405 esac
13406 ;;
13407
13408 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13409 # PIC is the default for these OSes.
13410 ;;
13411 mingw* | cygwin* | os2* | pw32* | cegcc*)
13412 # This hack is so that the source file can tell whether it is being
13413 # built for inclusion in a dll (and should export symbols for example).
13414 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13415 # (--disable-auto-import) libraries
13416 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13417 ;;
13418 darwin* | rhapsody*)
13419 # PIC is the default on this platform
13420 # Common symbols not allowed in MH_DYLIB files
13421 lt_prog_compiler_pic_CXX='-fno-common'
13422 ;;
13423 *djgpp*)
13424 # DJGPP does not support shared libraries at all
13425 lt_prog_compiler_pic_CXX=
13426 ;;
13427 haiku*)
13428 # PIC is the default for Haiku.
13429 # The "-static" flag exists, but is broken.
13430 lt_prog_compiler_static_CXX=
13431 ;;
13432 interix[3-9]*)
13433 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13434 # Instead, we relocate shared libraries at runtime.
13435 ;;
13436 sysv4*MP*)
13437 if test -d /usr/nec; then
13438 lt_prog_compiler_pic_CXX=-Kconform_pic
13439 fi
13440 ;;
13441 hpux*)
13442 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13443 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13444 # sets the default TLS model and affects inlining.
13445 case $host_cpu in
13446 hppa*64*)
13447 ;;
13448 *)
13449 lt_prog_compiler_pic_CXX='-fPIC'
13450 ;;
13451 esac
13452 ;;
13453 *qnx* | *nto*)
13454 # QNX uses GNU C++, but need to define -shared option too, otherwise
13455 # it will coredump.
13456 lt_prog_compiler_pic_CXX='-fPIC -shared'
13457 ;;
13458 *)
13459 lt_prog_compiler_pic_CXX='-fPIC'
13460 ;;
13461 esac
13462 else
13463 case $host_os in
13464 aix[4-9]*)
13465 # All AIX code is PIC.
13466 if test "$host_cpu" = ia64; then
13467 # AIX 5 now supports IA64 processor
13468 lt_prog_compiler_static_CXX='-Bstatic'
13469 else
13470 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13471 fi
13472 ;;
13473 chorus*)
13474 case $cc_basename in
13475 cxch68*)
13476 # Green Hills C++ Compiler
13477 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13478 ;;
13479 esac
13480 ;;
13481 dgux*)
13482 case $cc_basename in
13483 ec++*)
13484 lt_prog_compiler_pic_CXX='-KPIC'
13485 ;;
13486 ghcx*)
13487 # Green Hills C++ Compiler
13488 lt_prog_compiler_pic_CXX='-pic'
13489 ;;
13490 *)
13491 ;;
13492 esac
13493 ;;
13494 freebsd* | dragonfly*)
13495 # FreeBSD uses GNU C++
13496 ;;
13497 hpux9* | hpux10* | hpux11*)
13498 case $cc_basename in
13499 CC*)
13500 lt_prog_compiler_wl_CXX='-Wl,'
13501 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13502 if test "$host_cpu" != ia64; then
13503 lt_prog_compiler_pic_CXX='+Z'
13504 fi
13505 ;;
13506 aCC*)
13507 lt_prog_compiler_wl_CXX='-Wl,'
13508 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13509 case $host_cpu in
13510 hppa*64*|ia64*)
13511 # +Z the default
13512 ;;
13513 *)
13514 lt_prog_compiler_pic_CXX='+Z'
13515 ;;
13516 esac
13517 ;;
13518 *)
13519 ;;
13520 esac
13521 ;;
13522 interix*)
13523 # This is c89, which is MS Visual C++ (no shared libs)
13524 # Anyone wants to do a port?
13525 ;;
13526 irix5* | irix6* | nonstopux*)
13527 case $cc_basename in
13528 CC*)
13529 lt_prog_compiler_wl_CXX='-Wl,'
13530 lt_prog_compiler_static_CXX='-non_shared'
13531 # CC pic flag -KPIC is the default.
13532 ;;
13533 *)
13534 ;;
13535 esac
13536 ;;
13537 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13538 case $cc_basename in
13539 KCC*)
13540 # KAI C++ Compiler
13541 lt_prog_compiler_wl_CXX='--backend -Wl,'
13542 lt_prog_compiler_pic_CXX='-fPIC'
13543 ;;
13544 ecpc* )
13545 # old Intel C++ for x86_64 which still supported -KPIC.
13546 lt_prog_compiler_wl_CXX='-Wl,'
13547 lt_prog_compiler_pic_CXX='-KPIC'
13548 lt_prog_compiler_static_CXX='-static'
13549 ;;
13550 icpc* )
13551 # Intel C++, used to be incompatible with GCC.
13552 # ICC 10 doesn't accept -KPIC any more.
13553 lt_prog_compiler_wl_CXX='-Wl,'
13554 lt_prog_compiler_pic_CXX='-fPIC'
13555 lt_prog_compiler_static_CXX='-static'
13556 ;;
13557 pgCC* | pgcpp*)
13558 # Portland Group C++ compiler
13559 lt_prog_compiler_wl_CXX='-Wl,'
13560 lt_prog_compiler_pic_CXX='-fpic'
13561 lt_prog_compiler_static_CXX='-Bstatic'
13562 ;;
13563 cxx*)
13564 # Compaq C++
13565 # Make sure the PIC flag is empty. It appears that all Alpha
13566 # Linux and Compaq Tru64 Unix objects are PIC.
13567 lt_prog_compiler_pic_CXX=
13568 lt_prog_compiler_static_CXX='-non_shared'
13569 ;;
13570 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13571 # IBM XL 8.0, 9.0 on PPC and BlueGene
13572 lt_prog_compiler_wl_CXX='-Wl,'
13573 lt_prog_compiler_pic_CXX='-qpic'
13574 lt_prog_compiler_static_CXX='-qstaticlink'
13575 ;;
13576 *)
13577 case `$CC -V 2>&1 | sed 5q` in
13578 *Sun\ C*)
13579 # Sun C++ 5.9
13580 lt_prog_compiler_pic_CXX='-KPIC'
13581 lt_prog_compiler_static_CXX='-Bstatic'
13582 lt_prog_compiler_wl_CXX='-Qoption ld '
13583 ;;
13584 esac
13585 ;;
13586 esac
13587 ;;
13588 lynxos*)
13589 ;;
13590 m88k*)
13591 ;;
13592 mvs*)
13593 case $cc_basename in
13594 cxx*)
13595 lt_prog_compiler_pic_CXX='-W c,exportall'
13596 ;;
13597 *)
13598 ;;
13599 esac
13600 ;;
13601 netbsd*)
13602 ;;
13603 *qnx* | *nto*)
13604 # QNX uses GNU C++, but need to define -shared option too, otherwise
13605 # it will coredump.
13606 lt_prog_compiler_pic_CXX='-fPIC -shared'
13607 ;;
13608 osf3* | osf4* | osf5*)
13609 case $cc_basename in
13610 KCC*)
13611 lt_prog_compiler_wl_CXX='--backend -Wl,'
13612 ;;
13613 RCC*)
13614 # Rational C++ 2.4.1
13615 lt_prog_compiler_pic_CXX='-pic'
13616 ;;
13617 cxx*)
13618 # Digital/Compaq C++
13619 lt_prog_compiler_wl_CXX='-Wl,'
13620 # Make sure the PIC flag is empty. It appears that all Alpha
13621 # Linux and Compaq Tru64 Unix objects are PIC.
13622 lt_prog_compiler_pic_CXX=
13623 lt_prog_compiler_static_CXX='-non_shared'
13624 ;;
13625 *)
13626 ;;
13627 esac
13628 ;;
13629 psos*)
13630 ;;
13631 solaris*)
13632 case $cc_basename in
13633 CC*)
13634 # Sun C++ 4.2, 5.x and Centerline C++
13635 lt_prog_compiler_pic_CXX='-KPIC'
13636 lt_prog_compiler_static_CXX='-Bstatic'
13637 lt_prog_compiler_wl_CXX='-Qoption ld '
13638 ;;
13639 gcx*)
13640 # Green Hills C++ Compiler
13641 lt_prog_compiler_pic_CXX='-PIC'
13642 ;;
13643 *)
13644 ;;
13645 esac
13646 ;;
13647 sunos4*)
13648 case $cc_basename in
13649 CC*)
13650 # Sun C++ 4.x
13651 lt_prog_compiler_pic_CXX='-pic'
13652 lt_prog_compiler_static_CXX='-Bstatic'
13653 ;;
13654 lcc*)
13655 # Lucid
13656 lt_prog_compiler_pic_CXX='-pic'
13657 ;;
13658 *)
13659 ;;
13660 esac
13661 ;;
13662 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13663 case $cc_basename in
13664 CC*)
13665 lt_prog_compiler_wl_CXX='-Wl,'
13666 lt_prog_compiler_pic_CXX='-KPIC'
13667 lt_prog_compiler_static_CXX='-Bstatic'
13668 ;;
13669 esac
13670 ;;
13671 tandem*)
13672 case $cc_basename in
13673 NCC*)
13674 # NonStop-UX NCC 3.20
13675 lt_prog_compiler_pic_CXX='-KPIC'
13676 ;;
13677 *)
13678 ;;
13679 esac
13680 ;;
13681 vxworks*)
13682 ;;
13683 *)
13684 lt_prog_compiler_can_build_shared_CXX=no
13685 ;;
13686 esac
13687 fi
13688
13689 case $host_os in
13690 # For platforms which do not support PIC, -DPIC is meaningless:
13691 *djgpp*)
13692 lt_prog_compiler_pic_CXX=
13693 ;;
13694 *)
13695 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13696 ;;
13697 esac
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13699 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13700
13701
13702
13703 #
13704 # Check to make sure the PIC flag actually works.
13705 #
13706 if test -n "$lt_prog_compiler_pic_CXX"; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13708 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13709 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13710 $as_echo_n "(cached) " >&6
13711 else
13712 lt_cv_prog_compiler_pic_works_CXX=no
13713 ac_outfile=conftest.$ac_objext
13714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13715 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13716 # Insert the option either (1) after the last *FLAGS variable, or
13717 # (2) before a word containing "conftest.", or (3) at the end.
13718 # Note that $ac_compile itself does not contain backslashes and begins
13719 # with a dollar sign (not a hyphen), so the echo should work correctly.
13720 # The option is referenced via a variable to avoid confusing sed.
13721 lt_compile=`echo "$ac_compile" | $SED \
13722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13724 -e 's:$: $lt_compiler_flag:'`
13725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13726 (eval "$lt_compile" 2>conftest.err)
13727 ac_status=$?
13728 cat conftest.err >&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 if (exit $ac_status) && test -s "$ac_outfile"; then
13731 # The compiler can only warn and ignore the option if not recognized
13732 # So say no if there are warnings other than the usual output.
13733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13735 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13736 lt_cv_prog_compiler_pic_works_CXX=yes
13737 fi
13738 fi
13739 $RM conftest*
13740
13741 fi
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13743 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13744
13745 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13746 case $lt_prog_compiler_pic_CXX in
13747 "" | " "*) ;;
13748 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13749 esac
13750 else
13751 lt_prog_compiler_pic_CXX=
13752 lt_prog_compiler_can_build_shared_CXX=no
13753 fi
13754
13755 fi
13756
13757
13758
13759 #
13760 # Check to make sure the static flag actually works.
13761 #
13762 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13764 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13765 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13766 $as_echo_n "(cached) " >&6
13767 else
13768 lt_cv_prog_compiler_static_works_CXX=no
13769 save_LDFLAGS="$LDFLAGS"
13770 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13771 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13772 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13773 # The linker can only warn and ignore the option if not recognized
13774 # So say no if there are warnings
13775 if test -s conftest.err; then
13776 # Append any errors to the config.log.
13777 cat conftest.err 1>&5
13778 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13779 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13780 if diff conftest.exp conftest.er2 >/dev/null; then
13781 lt_cv_prog_compiler_static_works_CXX=yes
13782 fi
13783 else
13784 lt_cv_prog_compiler_static_works_CXX=yes
13785 fi
13786 fi
13787 $RM -r conftest*
13788 LDFLAGS="$save_LDFLAGS"
13789
13790 fi
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13792 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13793
13794 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13795 :
13796 else
13797 lt_prog_compiler_static_CXX=
13798 fi
13799
13800
13801
13802
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13804 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13805 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13806 $as_echo_n "(cached) " >&6
13807 else
13808 lt_cv_prog_compiler_c_o_CXX=no
13809 $RM -r conftest 2>/dev/null
13810 mkdir conftest
13811 cd conftest
13812 mkdir out
13813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13814
13815 lt_compiler_flag="-o out/conftest2.$ac_objext"
13816 # Insert the option either (1) after the last *FLAGS variable, or
13817 # (2) before a word containing "conftest.", or (3) at the end.
13818 # Note that $ac_compile itself does not contain backslashes and begins
13819 # with a dollar sign (not a hyphen), so the echo should work correctly.
13820 lt_compile=`echo "$ac_compile" | $SED \
13821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13823 -e 's:$: $lt_compiler_flag:'`
13824 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13825 (eval "$lt_compile" 2>out/conftest.err)
13826 ac_status=$?
13827 cat out/conftest.err >&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13830 then
13831 # The compiler can only warn and ignore the option if not recognized
13832 # So say no if there are warnings
13833 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13834 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13835 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13836 lt_cv_prog_compiler_c_o_CXX=yes
13837 fi
13838 fi
13839 chmod u+w . 2>&5
13840 $RM conftest*
13841 # SGI C++ compiler will create directory out/ii_files/ for
13842 # template instantiation
13843 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13844 $RM out/* && rmdir out
13845 cd ..
13846 $RM -r conftest
13847 $RM conftest*
13848
13849 fi
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13851 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13852
13853
13854
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13856 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13857 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13858 $as_echo_n "(cached) " >&6
13859 else
13860 lt_cv_prog_compiler_c_o_CXX=no
13861 $RM -r conftest 2>/dev/null
13862 mkdir conftest
13863 cd conftest
13864 mkdir out
13865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13866
13867 lt_compiler_flag="-o out/conftest2.$ac_objext"
13868 # Insert the option either (1) after the last *FLAGS variable, or
13869 # (2) before a word containing "conftest.", or (3) at the end.
13870 # Note that $ac_compile itself does not contain backslashes and begins
13871 # with a dollar sign (not a hyphen), so the echo should work correctly.
13872 lt_compile=`echo "$ac_compile" | $SED \
13873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13875 -e 's:$: $lt_compiler_flag:'`
13876 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13877 (eval "$lt_compile" 2>out/conftest.err)
13878 ac_status=$?
13879 cat out/conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13882 then
13883 # The compiler can only warn and ignore the option if not recognized
13884 # So say no if there are warnings
13885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13886 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13887 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13888 lt_cv_prog_compiler_c_o_CXX=yes
13889 fi
13890 fi
13891 chmod u+w . 2>&5
13892 $RM conftest*
13893 # SGI C++ compiler will create directory out/ii_files/ for
13894 # template instantiation
13895 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13896 $RM out/* && rmdir out
13897 cd ..
13898 $RM -r conftest
13899 $RM conftest*
13900
13901 fi
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13903 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13904
13905
13906
13907
13908 hard_links="nottested"
13909 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13910 # do not overwrite the value of need_locks provided by the user
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13912 $as_echo_n "checking if we can lock with hard links... " >&6; }
13913 hard_links=yes
13914 $RM conftest*
13915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13916 touch conftest.a
13917 ln conftest.a conftest.b 2>&5 || hard_links=no
13918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13920 $as_echo "$hard_links" >&6; }
13921 if test "$hard_links" = no; then
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13923 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13924 need_locks=warn
13925 fi
13926 else
13927 need_locks=no
13928 fi
13929
13930
13931
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13933 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13934
13935 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13936 case $host_os in
13937 aix[4-9]*)
13938 # If we're using GNU nm, then we don't want the "-C" option.
13939 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13940 # Also, AIX nm treats weak defined symbols like other global defined
13941 # symbols, whereas GNU nm marks them as "W".
13942 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13943 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13944 else
13945 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13946 fi
13947 ;;
13948 pw32*)
13949 export_symbols_cmds_CXX="$ltdll_cmds"
13950 ;;
13951 cygwin* | mingw* | cegcc*)
13952 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13953 ;;
13954 *)
13955 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13956 ;;
13957 esac
13958 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13959
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13961 $as_echo "$ld_shlibs_CXX" >&6; }
13962 test "$ld_shlibs_CXX" = no && can_build_shared=no
13963
13964 with_gnu_ld_CXX=$with_gnu_ld
13965
13966
13967
13968
13969
13970
13971 #
13972 # Do we need to explicitly link libc?
13973 #
13974 case "x$archive_cmds_need_lc_CXX" in
13975 x|xyes)
13976 # Assume -lc should be added
13977 archive_cmds_need_lc_CXX=yes
13978
13979 if test "$enable_shared" = yes && test "$GCC" = yes; then
13980 case $archive_cmds_CXX in
13981 *'~'*)
13982 # FIXME: we may have to deal with multi-command sequences.
13983 ;;
13984 '$CC '*)
13985 # Test whether the compiler implicitly links with -lc since on some
13986 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13987 # to ld, don't add -lc before -lgcc.
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13989 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13990 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13991 $as_echo_n "(cached) " >&6
13992 else
13993 $RM conftest*
13994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13995
13996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13997 (eval $ac_compile) 2>&5
13998 ac_status=$?
13999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14000 test $ac_status = 0; } 2>conftest.err; then
14001 soname=conftest
14002 lib=conftest
14003 libobjs=conftest.$ac_objext
14004 deplibs=
14005 wl=$lt_prog_compiler_wl_CXX
14006 pic_flag=$lt_prog_compiler_pic_CXX
14007 compiler_flags=-v
14008 linker_flags=-v
14009 verstring=
14010 output_objdir=.
14011 libname=conftest
14012 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14013 allow_undefined_flag_CXX=
14014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14015 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14016 ac_status=$?
14017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14018 test $ac_status = 0; }
14019 then
14020 lt_cv_archive_cmds_need_lc_CXX=no
14021 else
14022 lt_cv_archive_cmds_need_lc_CXX=yes
14023 fi
14024 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14025 else
14026 cat conftest.err 1>&5
14027 fi
14028 $RM conftest*
14029
14030 fi
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14032 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14033 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14034 ;;
14035 esac
14036 fi
14037 ;;
14038 esac
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14104 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14105
14106 library_names_spec=
14107 libname_spec='lib$name'
14108 soname_spec=
14109 shrext_cmds=".so"
14110 postinstall_cmds=
14111 postuninstall_cmds=
14112 finish_cmds=
14113 finish_eval=
14114 shlibpath_var=
14115 shlibpath_overrides_runpath=unknown
14116 version_type=none
14117 dynamic_linker="$host_os ld.so"
14118 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14119 need_lib_prefix=unknown
14120 hardcode_into_libs=no
14121
14122 # when you set need_version to no, make sure it does not cause -set_version
14123 # flags to be left without arguments
14124 need_version=unknown
14125
14126 case $host_os in
14127 aix3*)
14128 version_type=linux
14129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14130 shlibpath_var=LIBPATH
14131
14132 # AIX 3 has no versioning support, so we append a major version to the name.
14133 soname_spec='${libname}${release}${shared_ext}$major'
14134 ;;
14135
14136 aix[4-9]*)
14137 version_type=linux
14138 need_lib_prefix=no
14139 need_version=no
14140 hardcode_into_libs=yes
14141 if test "$host_cpu" = ia64; then
14142 # AIX 5 supports IA64
14143 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14144 shlibpath_var=LD_LIBRARY_PATH
14145 else
14146 # With GCC up to 2.95.x, collect2 would create an import file
14147 # for dependence libraries. The import file would start with
14148 # the line `#! .'. This would cause the generated library to
14149 # depend on `.', always an invalid library. This was fixed in
14150 # development snapshots of GCC prior to 3.0.
14151 case $host_os in
14152 aix4 | aix4.[01] | aix4.[01].*)
14153 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14154 echo ' yes '
14155 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14156 :
14157 else
14158 can_build_shared=no
14159 fi
14160 ;;
14161 esac
14162 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14163 # soname into executable. Probably we can add versioning support to
14164 # collect2, so additional links can be useful in future.
14165 if test "$aix_use_runtimelinking" = yes; then
14166 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14167 # instead of lib<name>.a to let people know that these are not
14168 # typical AIX shared libraries.
14169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14170 else
14171 # We preserve .a as extension for shared libraries through AIX4.2
14172 # and later when we are not doing run time linking.
14173 library_names_spec='${libname}${release}.a $libname.a'
14174 soname_spec='${libname}${release}${shared_ext}$major'
14175 fi
14176 shlibpath_var=LIBPATH
14177 fi
14178 ;;
14179
14180 amigaos*)
14181 case $host_cpu in
14182 powerpc)
14183 # Since July 2007 AmigaOS4 officially supports .so libraries.
14184 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186 ;;
14187 m68k)
14188 library_names_spec='$libname.ixlibrary $libname.a'
14189 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14190 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'
14191 ;;
14192 esac
14193 ;;
14194
14195 beos*)
14196 library_names_spec='${libname}${shared_ext}'
14197 dynamic_linker="$host_os ld.so"
14198 shlibpath_var=LIBRARY_PATH
14199 ;;
14200
14201 bsdi[45]*)
14202 version_type=linux
14203 need_version=no
14204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14205 soname_spec='${libname}${release}${shared_ext}$major'
14206 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14207 shlibpath_var=LD_LIBRARY_PATH
14208 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14209 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14210 # the default ld.so.conf also contains /usr/contrib/lib and
14211 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14212 # libtool to hard-code these into programs
14213 ;;
14214
14215 cygwin* | mingw* | pw32* | cegcc*)
14216 version_type=windows
14217 shrext_cmds=".dll"
14218 need_version=no
14219 need_lib_prefix=no
14220
14221 case $GCC,$host_os in
14222 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14223 library_names_spec='$libname.dll.a'
14224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14225 postinstall_cmds='base_file=`basename \${file}`~
14226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14227 dldir=$destdir/`dirname \$dlpath`~
14228 test -d \$dldir || mkdir -p \$dldir~
14229 $install_prog $dir/$dlname \$dldir/$dlname~
14230 chmod a+x \$dldir/$dlname~
14231 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14232 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14233 fi'
14234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14235 dlpath=$dir/\$dldll~
14236 $RM \$dlpath'
14237 shlibpath_overrides_runpath=yes
14238
14239 case $host_os in
14240 cygwin*)
14241 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14242 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14243
14244 ;;
14245 mingw* | cegcc*)
14246 # MinGW DLLs use traditional 'lib' prefix
14247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14248 ;;
14249 pw32*)
14250 # pw32 DLLs use 'pw' prefix rather than 'lib'
14251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14252 ;;
14253 esac
14254 ;;
14255
14256 *)
14257 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14258 ;;
14259 esac
14260 dynamic_linker='Win32 ld.exe'
14261 # FIXME: first we should search . and the directory the executable is in
14262 shlibpath_var=PATH
14263 ;;
14264
14265 darwin* | rhapsody*)
14266 dynamic_linker="$host_os dyld"
14267 version_type=darwin
14268 need_lib_prefix=no
14269 need_version=no
14270 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14271 soname_spec='${libname}${release}${major}$shared_ext'
14272 shlibpath_overrides_runpath=yes
14273 shlibpath_var=DYLD_LIBRARY_PATH
14274 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14275
14276 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14277 ;;
14278
14279 dgux*)
14280 version_type=linux
14281 need_lib_prefix=no
14282 need_version=no
14283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14284 soname_spec='${libname}${release}${shared_ext}$major'
14285 shlibpath_var=LD_LIBRARY_PATH
14286 ;;
14287
14288 freebsd* | dragonfly*)
14289 # DragonFly does not have aout. When/if they implement a new
14290 # versioning mechanism, adjust this.
14291 if test -x /usr/bin/objformat; then
14292 objformat=`/usr/bin/objformat`
14293 else
14294 case $host_os in
14295 freebsd[23].*) objformat=aout ;;
14296 *) objformat=elf ;;
14297 esac
14298 fi
14299 version_type=freebsd-$objformat
14300 case $version_type in
14301 freebsd-elf*)
14302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14303 need_version=no
14304 need_lib_prefix=no
14305 ;;
14306 freebsd-*)
14307 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14308 need_version=yes
14309 ;;
14310 esac
14311 shlibpath_var=LD_LIBRARY_PATH
14312 case $host_os in
14313 freebsd2.*)
14314 shlibpath_overrides_runpath=yes
14315 ;;
14316 freebsd3.[01]* | freebsdelf3.[01]*)
14317 shlibpath_overrides_runpath=yes
14318 hardcode_into_libs=yes
14319 ;;
14320 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14321 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14322 shlibpath_overrides_runpath=no
14323 hardcode_into_libs=yes
14324 ;;
14325 *) # from 4.6 on, and DragonFly
14326 shlibpath_overrides_runpath=yes
14327 hardcode_into_libs=yes
14328 ;;
14329 esac
14330 ;;
14331
14332 haiku*)
14333 version_type=linux
14334 need_lib_prefix=no
14335 need_version=no
14336 dynamic_linker="$host_os runtime_loader"
14337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14338 soname_spec='${libname}${release}${shared_ext}$major'
14339 shlibpath_var=LIBRARY_PATH
14340 shlibpath_overrides_runpath=yes
14341 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14342 hardcode_into_libs=yes
14343 ;;
14344
14345 hpux9* | hpux10* | hpux11*)
14346 # Give a soname corresponding to the major version so that dld.sl refuses to
14347 # link against other versions.
14348 version_type=sunos
14349 need_lib_prefix=no
14350 need_version=no
14351 case $host_cpu in
14352 ia64*)
14353 shrext_cmds='.so'
14354 hardcode_into_libs=yes
14355 dynamic_linker="$host_os dld.so"
14356 shlibpath_var=LD_LIBRARY_PATH
14357 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14359 soname_spec='${libname}${release}${shared_ext}$major'
14360 if test "X$HPUX_IA64_MODE" = X32; then
14361 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14362 else
14363 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14364 fi
14365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14366 ;;
14367 hppa*64*)
14368 shrext_cmds='.sl'
14369 hardcode_into_libs=yes
14370 dynamic_linker="$host_os dld.sl"
14371 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14374 soname_spec='${libname}${release}${shared_ext}$major'
14375 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14377 ;;
14378 *)
14379 shrext_cmds='.sl'
14380 dynamic_linker="$host_os dld.sl"
14381 shlibpath_var=SHLIB_PATH
14382 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14384 soname_spec='${libname}${release}${shared_ext}$major'
14385 ;;
14386 esac
14387 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14388 postinstall_cmds='chmod 555 $lib'
14389 # or fails outright, so override atomically:
14390 install_override_mode=555
14391 ;;
14392
14393 interix[3-9]*)
14394 version_type=linux
14395 need_lib_prefix=no
14396 need_version=no
14397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14398 soname_spec='${libname}${release}${shared_ext}$major'
14399 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14400 shlibpath_var=LD_LIBRARY_PATH
14401 shlibpath_overrides_runpath=no
14402 hardcode_into_libs=yes
14403 ;;
14404
14405 irix5* | irix6* | nonstopux*)
14406 case $host_os in
14407 nonstopux*) version_type=nonstopux ;;
14408 *)
14409 if test "$lt_cv_prog_gnu_ld" = yes; then
14410 version_type=linux
14411 else
14412 version_type=irix
14413 fi ;;
14414 esac
14415 need_lib_prefix=no
14416 need_version=no
14417 soname_spec='${libname}${release}${shared_ext}$major'
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14419 case $host_os in
14420 irix5* | nonstopux*)
14421 libsuff= shlibsuff=
14422 ;;
14423 *)
14424 case $LD in # libtool.m4 will add one of these switches to LD
14425 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14426 libsuff= shlibsuff= libmagic=32-bit;;
14427 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14428 libsuff=32 shlibsuff=N32 libmagic=N32;;
14429 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14430 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14431 *) libsuff= shlibsuff= libmagic=never-match;;
14432 esac
14433 ;;
14434 esac
14435 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14436 shlibpath_overrides_runpath=no
14437 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14438 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14439 hardcode_into_libs=yes
14440 ;;
14441
14442 # No shared lib support for Linux oldld, aout, or coff.
14443 linux*oldld* | linux*aout* | linux*coff*)
14444 dynamic_linker=no
14445 ;;
14446
14447 # This must be Linux ELF.
14448
14449 # uclinux* changes (here and below) have been submitted to the libtool
14450 # project, but have not yet been accepted: they are GCC-local changes
14451 # for the time being. (See
14452 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14453 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14454 version_type=linux
14455 need_lib_prefix=no
14456 need_version=no
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458 soname_spec='${libname}${release}${shared_ext}$major'
14459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14460 shlibpath_var=LD_LIBRARY_PATH
14461 shlibpath_overrides_runpath=no
14462
14463 # Some binutils ld are patched to set DT_RUNPATH
14464 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14465 $as_echo_n "(cached) " >&6
14466 else
14467 lt_cv_shlibpath_overrides_runpath=no
14468 save_LDFLAGS=$LDFLAGS
14469 save_libdir=$libdir
14470 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14471 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473 /* end confdefs.h. */
14474
14475 int
14476 main ()
14477 {
14478
14479 ;
14480 return 0;
14481 }
14482 _ACEOF
14483 if ac_fn_cxx_try_link "$LINENO"; then :
14484 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14485 lt_cv_shlibpath_overrides_runpath=yes
14486 fi
14487 fi
14488 rm -f core conftest.err conftest.$ac_objext \
14489 conftest$ac_exeext conftest.$ac_ext
14490 LDFLAGS=$save_LDFLAGS
14491 libdir=$save_libdir
14492
14493 fi
14494
14495 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14496
14497 # This implies no fast_install, which is unacceptable.
14498 # Some rework will be needed to allow for fast_install
14499 # before this can be enabled.
14500 hardcode_into_libs=yes
14501
14502 # Append ld.so.conf contents to the search path
14503 if test -f /etc/ld.so.conf; then
14504 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' ' '`
14505 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14506 fi
14507
14508 # We used to test for /lib/ld.so.1 and disable shared libraries on
14509 # powerpc, because MkLinux only supported shared libraries with the
14510 # GNU dynamic linker. Since this was broken with cross compilers,
14511 # most powerpc-linux boxes support dynamic linking these days and
14512 # people can always --disable-shared, the test was removed, and we
14513 # assume the GNU/Linux dynamic linker is in use.
14514 dynamic_linker='GNU/Linux ld.so'
14515 ;;
14516
14517 netbsd*)
14518 version_type=sunos
14519 need_lib_prefix=no
14520 need_version=no
14521 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14524 dynamic_linker='NetBSD (a.out) ld.so'
14525 else
14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14527 soname_spec='${libname}${release}${shared_ext}$major'
14528 dynamic_linker='NetBSD ld.elf_so'
14529 fi
14530 shlibpath_var=LD_LIBRARY_PATH
14531 shlibpath_overrides_runpath=yes
14532 hardcode_into_libs=yes
14533 ;;
14534
14535 newsos6)
14536 version_type=linux
14537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14538 shlibpath_var=LD_LIBRARY_PATH
14539 shlibpath_overrides_runpath=yes
14540 ;;
14541
14542 *nto* | *qnx*)
14543 version_type=qnx
14544 need_lib_prefix=no
14545 need_version=no
14546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547 soname_spec='${libname}${release}${shared_ext}$major'
14548 shlibpath_var=LD_LIBRARY_PATH
14549 shlibpath_overrides_runpath=no
14550 hardcode_into_libs=yes
14551 dynamic_linker='ldqnx.so'
14552 ;;
14553
14554 openbsd*)
14555 version_type=sunos
14556 sys_lib_dlsearch_path_spec="/usr/lib"
14557 need_lib_prefix=no
14558 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14559 case $host_os in
14560 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14561 *) need_version=no ;;
14562 esac
14563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14565 shlibpath_var=LD_LIBRARY_PATH
14566 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14567 case $host_os in
14568 openbsd2.[89] | openbsd2.[89].*)
14569 shlibpath_overrides_runpath=no
14570 ;;
14571 *)
14572 shlibpath_overrides_runpath=yes
14573 ;;
14574 esac
14575 else
14576 shlibpath_overrides_runpath=yes
14577 fi
14578 ;;
14579
14580 os2*)
14581 libname_spec='$name'
14582 shrext_cmds=".dll"
14583 need_lib_prefix=no
14584 library_names_spec='$libname${shared_ext} $libname.a'
14585 dynamic_linker='OS/2 ld.exe'
14586 shlibpath_var=LIBPATH
14587 ;;
14588
14589 osf3* | osf4* | osf5*)
14590 version_type=osf
14591 need_lib_prefix=no
14592 need_version=no
14593 soname_spec='${libname}${release}${shared_ext}$major'
14594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14595 shlibpath_var=LD_LIBRARY_PATH
14596 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14597 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14598 ;;
14599
14600 rdos*)
14601 dynamic_linker=no
14602 ;;
14603
14604 solaris*)
14605 version_type=linux
14606 need_lib_prefix=no
14607 need_version=no
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609 soname_spec='${libname}${release}${shared_ext}$major'
14610 shlibpath_var=LD_LIBRARY_PATH
14611 shlibpath_overrides_runpath=yes
14612 hardcode_into_libs=yes
14613 # ldd complains unless libraries are executable
14614 postinstall_cmds='chmod +x $lib'
14615 ;;
14616
14617 sunos4*)
14618 version_type=sunos
14619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14620 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14621 shlibpath_var=LD_LIBRARY_PATH
14622 shlibpath_overrides_runpath=yes
14623 if test "$with_gnu_ld" = yes; then
14624 need_lib_prefix=no
14625 fi
14626 need_version=yes
14627 ;;
14628
14629 sysv4 | sysv4.3*)
14630 version_type=linux
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14632 soname_spec='${libname}${release}${shared_ext}$major'
14633 shlibpath_var=LD_LIBRARY_PATH
14634 case $host_vendor in
14635 sni)
14636 shlibpath_overrides_runpath=no
14637 need_lib_prefix=no
14638 runpath_var=LD_RUN_PATH
14639 ;;
14640 siemens)
14641 need_lib_prefix=no
14642 ;;
14643 motorola)
14644 need_lib_prefix=no
14645 need_version=no
14646 shlibpath_overrides_runpath=no
14647 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14648 ;;
14649 esac
14650 ;;
14651
14652 sysv4*MP*)
14653 if test -d /usr/nec ;then
14654 version_type=linux
14655 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14656 soname_spec='$libname${shared_ext}.$major'
14657 shlibpath_var=LD_LIBRARY_PATH
14658 fi
14659 ;;
14660
14661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14662 version_type=freebsd-elf
14663 need_lib_prefix=no
14664 need_version=no
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14666 soname_spec='${libname}${release}${shared_ext}$major'
14667 shlibpath_var=LD_LIBRARY_PATH
14668 shlibpath_overrides_runpath=yes
14669 hardcode_into_libs=yes
14670 if test "$with_gnu_ld" = yes; then
14671 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14672 else
14673 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14674 case $host_os in
14675 sco3.2v5*)
14676 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14677 ;;
14678 esac
14679 fi
14680 sys_lib_dlsearch_path_spec='/usr/lib'
14681 ;;
14682
14683 tpf*)
14684 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14685 version_type=linux
14686 need_lib_prefix=no
14687 need_version=no
14688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14689 shlibpath_var=LD_LIBRARY_PATH
14690 shlibpath_overrides_runpath=no
14691 hardcode_into_libs=yes
14692 ;;
14693
14694 uts4*)
14695 version_type=linux
14696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697 soname_spec='${libname}${release}${shared_ext}$major'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 ;;
14700
14701 # Shared libraries for VwWorks, >= 7 only at this stage
14702 # and (fpic) still incompatible with "large" code models
14703 # in a few configurations. Only for RTP mode in any case,
14704 # and upon explicit request at configure time.
14705 vxworks7*)
14706 dynamic_linker=no
14707 case ${with_multisubdir}-${enable_shared} in
14708 *large*)
14709 ;;
14710 *mrtp*-yes)
14711 version_type=linux
14712 need_lib_prefix=no
14713 need_version=no
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715 soname_spec='${libname}${release}${shared_ext}$major'
14716 dynamic_linker="$host_os module_loader"
14717 ;;
14718 esac
14719 ;;
14720 *)
14721 dynamic_linker=no
14722 ;;
14723 esac
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14725 $as_echo "$dynamic_linker" >&6; }
14726 test "$dynamic_linker" = no && can_build_shared=no
14727
14728 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14729 if test "$GCC" = yes; then
14730 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14731 fi
14732
14733 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14734 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14735 fi
14736 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14737 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14738 fi
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14778 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14779 hardcode_action_CXX=
14780 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14781 test -n "$runpath_var_CXX" ||
14782 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14783
14784 # We can hardcode non-existent directories.
14785 if test "$hardcode_direct_CXX" != no &&
14786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14787 # have to relink, otherwise we might link with an installed library
14788 # when we should be linking with a yet-to-be-installed one
14789 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14790 test "$hardcode_minus_L_CXX" != no; then
14791 # Linking always hardcodes the temporary library directory.
14792 hardcode_action_CXX=relink
14793 else
14794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14795 hardcode_action_CXX=immediate
14796 fi
14797 else
14798 # We cannot hardcode anything, or else we can only hardcode existing
14799 # directories.
14800 hardcode_action_CXX=unsupported
14801 fi
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14803 $as_echo "$hardcode_action_CXX" >&6; }
14804
14805 if test "$hardcode_action_CXX" = relink ||
14806 test "$inherit_rpath_CXX" = yes; then
14807 # Fast installation is not supported
14808 enable_fast_install=no
14809 elif test "$shlibpath_overrides_runpath" = yes ||
14810 test "$enable_shared" = no; then
14811 # Fast installation is not necessary
14812 enable_fast_install=needless
14813 fi
14814
14815
14816
14817
14818
14819
14820
14821 fi # test -n "$compiler"
14822
14823 CC=$lt_save_CC
14824 LDCXX=$LD
14825 LD=$lt_save_LD
14826 GCC=$lt_save_GCC
14827 with_gnu_ld=$lt_save_with_gnu_ld
14828 lt_cv_path_LDCXX=$lt_cv_path_LD
14829 lt_cv_path_LD=$lt_save_path_LD
14830 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14831 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14832 fi # test "$_lt_caught_CXX_error" != yes
14833
14834 ac_ext=c
14835 ac_cpp='$CPP $CPPFLAGS'
14836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852 ac_config_commands="$ac_config_commands libtool"
14853
14854
14855
14856
14857 # Only expand once:
14858
14859
14860 # ... and we need it soon, since it is used by some of the
14861 # link tests in the configure script.
14862 : ${CONFIG_LT=./config.lt}
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
14864 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
14865 as_write_fail=0
14866 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
14867 #! $SHELL
14868 # Generated by $as_me.
14869 # Run this file to recreate a libtool stub with the current configuration.
14870 SHELL=\${CONFIG_SHELL-$SHELL}
14871 export SHELL
14872 _ASEOF
14873 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
14874 ## -------------------- ##
14875 ## M4sh Initialization. ##
14876 ## -------------------- ##
14877
14878 # Be more Bourne compatible
14879 DUALCASE=1; export DUALCASE # for MKS sh
14880 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14881 emulate sh
14882 NULLCMD=:
14883 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14884 # is contrary to our usage. Disable this feature.
14885 alias -g '${1+"$@"}'='"$@"'
14886 setopt NO_GLOB_SUBST
14887 else
14888 case `(set -o) 2>/dev/null` in #(
14889 *posix*) :
14890 set -o posix ;; #(
14891 *) :
14892 ;;
14893 esac
14894 fi
14895
14896
14897 as_nl='
14898 '
14899 export as_nl
14900 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14901 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14902 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14903 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14904 # Prefer a ksh shell builtin over an external printf program on Solaris,
14905 # but without wasting forks for bash or zsh.
14906 if test -z "$BASH_VERSION$ZSH_VERSION" \
14907 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14908 as_echo='print -r --'
14909 as_echo_n='print -rn --'
14910 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14911 as_echo='printf %s\n'
14912 as_echo_n='printf %s'
14913 else
14914 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14915 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14916 as_echo_n='/usr/ucb/echo -n'
14917 else
14918 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14919 as_echo_n_body='eval
14920 arg=$1;
14921 case $arg in #(
14922 *"$as_nl"*)
14923 expr "X$arg" : "X\\(.*\\)$as_nl";
14924 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14925 esac;
14926 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14927 '
14928 export as_echo_n_body
14929 as_echo_n='sh -c $as_echo_n_body as_echo'
14930 fi
14931 export as_echo_body
14932 as_echo='sh -c $as_echo_body as_echo'
14933 fi
14934
14935 # The user is always right.
14936 if test "${PATH_SEPARATOR+set}" != set; then
14937 PATH_SEPARATOR=:
14938 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14939 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14940 PATH_SEPARATOR=';'
14941 }
14942 fi
14943
14944
14945 # IFS
14946 # We need space, tab and new line, in precisely that order. Quoting is
14947 # there to prevent editors from complaining about space-tab.
14948 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14949 # splitting by setting IFS to empty value.)
14950 IFS=" "" $as_nl"
14951
14952 # Find who we are. Look in the path if we contain no directory separator.
14953 as_myself=
14954 case $0 in #((
14955 *[\\/]* ) as_myself=$0 ;;
14956 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14957 for as_dir in $PATH
14958 do
14959 IFS=$as_save_IFS
14960 test -z "$as_dir" && as_dir=.
14961 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14962 done
14963 IFS=$as_save_IFS
14964
14965 ;;
14966 esac
14967 # We did not find ourselves, most probably we were run as `sh COMMAND'
14968 # in which case we are not to be found in the path.
14969 if test "x$as_myself" = x; then
14970 as_myself=$0
14971 fi
14972 if test ! -f "$as_myself"; then
14973 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14974 exit 1
14975 fi
14976
14977 # Unset variables that we do not need and which cause bugs (e.g. in
14978 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14979 # suppresses any "Segmentation fault" message there. '((' could
14980 # trigger a bug in pdksh 5.2.14.
14981 for as_var in BASH_ENV ENV MAIL MAILPATH
14982 do eval test x\${$as_var+set} = xset \
14983 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14984 done
14985 PS1='$ '
14986 PS2='> '
14987 PS4='+ '
14988
14989 # NLS nuisances.
14990 LC_ALL=C
14991 export LC_ALL
14992 LANGUAGE=C
14993 export LANGUAGE
14994
14995 # CDPATH.
14996 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14997
14998
14999 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15000 # ----------------------------------------
15001 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15002 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15003 # script with STATUS, using 1 if that was 0.
15004 as_fn_error ()
15005 {
15006 as_status=$1; test $as_status -eq 0 && as_status=1
15007 if test "$4"; then
15008 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15009 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15010 fi
15011 $as_echo "$as_me: error: $2" >&2
15012 as_fn_exit $as_status
15013 } # as_fn_error
15014
15015
15016 # as_fn_set_status STATUS
15017 # -----------------------
15018 # Set $? to STATUS, without forking.
15019 as_fn_set_status ()
15020 {
15021 return $1
15022 } # as_fn_set_status
15023
15024 # as_fn_exit STATUS
15025 # -----------------
15026 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15027 as_fn_exit ()
15028 {
15029 set +e
15030 as_fn_set_status $1
15031 exit $1
15032 } # as_fn_exit
15033
15034 # as_fn_unset VAR
15035 # ---------------
15036 # Portably unset VAR.
15037 as_fn_unset ()
15038 {
15039 { eval $1=; unset $1;}
15040 }
15041 as_unset=as_fn_unset
15042 # as_fn_append VAR VALUE
15043 # ----------------------
15044 # Append the text in VALUE to the end of the definition contained in VAR. Take
15045 # advantage of any shell optimizations that allow amortized linear growth over
15046 # repeated appends, instead of the typical quadratic growth present in naive
15047 # implementations.
15048 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15049 eval 'as_fn_append ()
15050 {
15051 eval $1+=\$2
15052 }'
15053 else
15054 as_fn_append ()
15055 {
15056 eval $1=\$$1\$2
15057 }
15058 fi # as_fn_append
15059
15060 # as_fn_arith ARG...
15061 # ------------------
15062 # Perform arithmetic evaluation on the ARGs, and store the result in the
15063 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15064 # must be portable across $(()) and expr.
15065 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15066 eval 'as_fn_arith ()
15067 {
15068 as_val=$(( $* ))
15069 }'
15070 else
15071 as_fn_arith ()
15072 {
15073 as_val=`expr "$@" || test $? -eq 1`
15074 }
15075 fi # as_fn_arith
15076
15077
15078 if expr a : '\(a\)' >/dev/null 2>&1 &&
15079 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15080 as_expr=expr
15081 else
15082 as_expr=false
15083 fi
15084
15085 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15086 as_basename=basename
15087 else
15088 as_basename=false
15089 fi
15090
15091 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15092 as_dirname=dirname
15093 else
15094 as_dirname=false
15095 fi
15096
15097 as_me=`$as_basename -- "$0" ||
15098 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15099 X"$0" : 'X\(//\)$' \| \
15100 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15101 $as_echo X/"$0" |
15102 sed '/^.*\/\([^/][^/]*\)\/*$/{
15103 s//\1/
15104 q
15105 }
15106 /^X\/\(\/\/\)$/{
15107 s//\1/
15108 q
15109 }
15110 /^X\/\(\/\).*/{
15111 s//\1/
15112 q
15113 }
15114 s/.*/./; q'`
15115
15116 # Avoid depending upon Character Ranges.
15117 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15118 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15119 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15120 as_cr_digits='0123456789'
15121 as_cr_alnum=$as_cr_Letters$as_cr_digits
15122
15123 ECHO_C= ECHO_N= ECHO_T=
15124 case `echo -n x` in #(((((
15125 -n*)
15126 case `echo 'xy\c'` in
15127 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15128 xy) ECHO_C='\c';;
15129 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15130 ECHO_T=' ';;
15131 esac;;
15132 *)
15133 ECHO_N='-n';;
15134 esac
15135
15136 rm -f conf$$ conf$$.exe conf$$.file
15137 if test -d conf$$.dir; then
15138 rm -f conf$$.dir/conf$$.file
15139 else
15140 rm -f conf$$.dir
15141 mkdir conf$$.dir 2>/dev/null
15142 fi
15143 if (echo >conf$$.file) 2>/dev/null; then
15144 if ln -s conf$$.file conf$$ 2>/dev/null; then
15145 as_ln_s='ln -s'
15146 # ... but there are two gotchas:
15147 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15148 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15149 # In both cases, we have to default to `cp -pR'.
15150 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15151 as_ln_s='cp -pR'
15152 elif ln conf$$.file conf$$ 2>/dev/null; then
15153 as_ln_s=ln
15154 else
15155 as_ln_s='cp -pR'
15156 fi
15157 else
15158 as_ln_s='cp -pR'
15159 fi
15160 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15161 rmdir conf$$.dir 2>/dev/null
15162
15163
15164 # as_fn_mkdir_p
15165 # -------------
15166 # Create "$as_dir" as a directory, including parents if necessary.
15167 as_fn_mkdir_p ()
15168 {
15169
15170 case $as_dir in #(
15171 -*) as_dir=./$as_dir;;
15172 esac
15173 test -d "$as_dir" || eval $as_mkdir_p || {
15174 as_dirs=
15175 while :; do
15176 case $as_dir in #(
15177 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15178 *) as_qdir=$as_dir;;
15179 esac
15180 as_dirs="'$as_qdir' $as_dirs"
15181 as_dir=`$as_dirname -- "$as_dir" ||
15182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15183 X"$as_dir" : 'X\(//\)[^/]' \| \
15184 X"$as_dir" : 'X\(//\)$' \| \
15185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15186 $as_echo X"$as_dir" |
15187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15188 s//\1/
15189 q
15190 }
15191 /^X\(\/\/\)[^/].*/{
15192 s//\1/
15193 q
15194 }
15195 /^X\(\/\/\)$/{
15196 s//\1/
15197 q
15198 }
15199 /^X\(\/\).*/{
15200 s//\1/
15201 q
15202 }
15203 s/.*/./; q'`
15204 test -d "$as_dir" && break
15205 done
15206 test -z "$as_dirs" || eval "mkdir $as_dirs"
15207 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15208
15209
15210 } # as_fn_mkdir_p
15211 if mkdir -p . 2>/dev/null; then
15212 as_mkdir_p='mkdir -p "$as_dir"'
15213 else
15214 test -d ./-p && rmdir ./-p
15215 as_mkdir_p=false
15216 fi
15217
15218
15219 # as_fn_executable_p FILE
15220 # -----------------------
15221 # Test if FILE is an executable regular file.
15222 as_fn_executable_p ()
15223 {
15224 test -f "$1" && test -x "$1"
15225 } # as_fn_executable_p
15226 as_test_x='test -x'
15227 as_executable_p=as_fn_executable_p
15228
15229 # Sed expression to map a string onto a valid CPP name.
15230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15231
15232 # Sed expression to map a string onto a valid variable name.
15233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15234
15235
15236 exec 6>&1
15237 ## --------------------------------- ##
15238 ## Main body of "$CONFIG_LT" script. ##
15239 ## --------------------------------- ##
15240 _ASEOF
15241 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
15242
15243 cat >>"$CONFIG_LT" <<\_LTEOF
15244 lt_cl_silent=false
15245 exec 5>>config.log
15246 {
15247 echo
15248 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15249 ## Running $as_me. ##
15250 _ASBOX
15251 } >&5
15252
15253 lt_cl_help="\
15254 \`$as_me' creates a local libtool stub from the current configuration,
15255 for use in further configure time tests before the real libtool is
15256 generated.
15257
15258 Usage: $0 [OPTIONS]
15259
15260 -h, --help print this help, then exit
15261 -V, --version print version number, then exit
15262 -q, --quiet do not print progress messages
15263 -d, --debug don't remove temporary files
15264
15265 Report bugs to <bug-libtool@gnu.org>."
15266
15267 lt_cl_version="\
15268 config.lt
15269 configured by $0, generated by GNU Autoconf 2.69.
15270
15271 Copyright (C) 2009 Free Software Foundation, Inc.
15272 This config.lt script is free software; the Free Software Foundation
15273 gives unlimited permision to copy, distribute and modify it."
15274
15275 while test $# != 0
15276 do
15277 case $1 in
15278 --version | --v* | -V )
15279 echo "$lt_cl_version"; exit 0 ;;
15280 --help | --h* | -h )
15281 echo "$lt_cl_help"; exit 0 ;;
15282 --debug | --d* | -d )
15283 debug=: ;;
15284 --quiet | --q* | --silent | --s* | -q )
15285 lt_cl_silent=: ;;
15286
15287 -*) as_fn_error $? "unrecognized option: $1
15288 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15289
15290 *) as_fn_error $? "unrecognized argument: $1
15291 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15292 esac
15293 shift
15294 done
15295
15296 if $lt_cl_silent; then
15297 exec 6>/dev/null
15298 fi
15299 _LTEOF
15300
15301 cat >>"$CONFIG_LT" <<_LTEOF
15302
15303
15304 # The HP-UX ksh and POSIX shell print the target directory to stdout
15305 # if CDPATH is set.
15306 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15307
15308 sed_quote_subst='$sed_quote_subst'
15309 double_quote_subst='$double_quote_subst'
15310 delay_variable_subst='$delay_variable_subst'
15311 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15312 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15313 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15314 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15315 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15316 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15317 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15318 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15319 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15320 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15321 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15322 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15323 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15324 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15325 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15326 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15327 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15328 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15329 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15330 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15331 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15332 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15333 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15334 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15335 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15336 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15337 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15338 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15339 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15340 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15341 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15342 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15343 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15344 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15345 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15346 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15347 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15348 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15349 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15350 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15351 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15352 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15353 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15354 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15355 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15356 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15357 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15358 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15359 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"`'
15360 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15361 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15362 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15363 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15364 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15365 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15366 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15367 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15368 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15369 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15370 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15371 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15372 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15373 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15374 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15375 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15376 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15377 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15378 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15379 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15380 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15381 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15382 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15383 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15384 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15385 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15386 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15387 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15388 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15389 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15390 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15391 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15392 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15393 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15394 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15395 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15396 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15397 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15398 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15399 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15400 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15401 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15402 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15403 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15404 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15405 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15406 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15407 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15408 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15409 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15410 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15411 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15412 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15413 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15414 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15415 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15416 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15417 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15418 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15419 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15420 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15421 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15422 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15423 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15424 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15425 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15426 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15427 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15428 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15429 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15430 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15431 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15432 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15433 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15434 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15435 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15436 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15437 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15438 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15439 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15440 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15441 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15442 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15443 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15444 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15445 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15446 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15447 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15448 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15449 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15450 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15451 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15452 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15453 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15454 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15455 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15456 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15457 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15458 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15459 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15460 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15461 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15462 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15463 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15464 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15465 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15466 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15467 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15468 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15469 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15470 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15471 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15472 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15473 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15474 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15475 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15476 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15477 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15478 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15479 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15480 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15481 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15482 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15483 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15484 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15485 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15486
15487 LTCC='$LTCC'
15488 LTCFLAGS='$LTCFLAGS'
15489 compiler='$compiler_DEFAULT'
15490
15491 # A function that is used when there is no print builtin or printf.
15492 func_fallback_echo ()
15493 {
15494 eval 'cat <<_LTECHO_EOF
15495 \$1
15496 _LTECHO_EOF'
15497 }
15498
15499 # Quote evaled strings.
15500 for var in SHELL \
15501 ECHO \
15502 SED \
15503 GREP \
15504 EGREP \
15505 FGREP \
15506 LD \
15507 NM \
15508 LN_S \
15509 lt_SP2NL \
15510 lt_NL2SP \
15511 reload_flag \
15512 OBJDUMP \
15513 deplibs_check_method \
15514 file_magic_cmd \
15515 AR \
15516 AR_FLAGS \
15517 STRIP \
15518 RANLIB \
15519 CC \
15520 CFLAGS \
15521 compiler \
15522 lt_cv_sys_global_symbol_pipe \
15523 lt_cv_sys_global_symbol_to_cdecl \
15524 lt_cv_sys_global_symbol_to_c_name_address \
15525 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15526 lt_prog_compiler_no_builtin_flag \
15527 lt_prog_compiler_wl \
15528 lt_prog_compiler_pic \
15529 lt_prog_compiler_static \
15530 lt_cv_prog_compiler_c_o \
15531 need_locks \
15532 DSYMUTIL \
15533 NMEDIT \
15534 LIPO \
15535 OTOOL \
15536 OTOOL64 \
15537 shrext_cmds \
15538 export_dynamic_flag_spec \
15539 whole_archive_flag_spec \
15540 compiler_needs_object \
15541 with_gnu_ld \
15542 allow_undefined_flag \
15543 no_undefined_flag \
15544 hardcode_libdir_flag_spec \
15545 hardcode_libdir_flag_spec_ld \
15546 hardcode_libdir_separator \
15547 fix_srcfile_path \
15548 exclude_expsyms \
15549 include_expsyms \
15550 file_list_spec \
15551 variables_saved_for_relink \
15552 libname_spec \
15553 library_names_spec \
15554 soname_spec \
15555 install_override_mode \
15556 finish_eval \
15557 old_striplib \
15558 striplib \
15559 compiler_lib_search_dirs \
15560 predep_objects \
15561 postdep_objects \
15562 predeps \
15563 postdeps \
15564 compiler_lib_search_path \
15565 LD_CXX \
15566 reload_flag_CXX \
15567 compiler_CXX \
15568 lt_prog_compiler_no_builtin_flag_CXX \
15569 lt_prog_compiler_wl_CXX \
15570 lt_prog_compiler_pic_CXX \
15571 lt_prog_compiler_static_CXX \
15572 lt_cv_prog_compiler_c_o_CXX \
15573 export_dynamic_flag_spec_CXX \
15574 whole_archive_flag_spec_CXX \
15575 compiler_needs_object_CXX \
15576 with_gnu_ld_CXX \
15577 allow_undefined_flag_CXX \
15578 no_undefined_flag_CXX \
15579 hardcode_libdir_flag_spec_CXX \
15580 hardcode_libdir_flag_spec_ld_CXX \
15581 hardcode_libdir_separator_CXX \
15582 fix_srcfile_path_CXX \
15583 exclude_expsyms_CXX \
15584 include_expsyms_CXX \
15585 file_list_spec_CXX \
15586 compiler_lib_search_dirs_CXX \
15587 predep_objects_CXX \
15588 postdep_objects_CXX \
15589 predeps_CXX \
15590 postdeps_CXX \
15591 compiler_lib_search_path_CXX; do
15592 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15593 *[\\\\\\\`\\"\\\$]*)
15594 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15595 ;;
15596 *)
15597 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15598 ;;
15599 esac
15600 done
15601
15602 # Double-quote double-evaled strings.
15603 for var in reload_cmds \
15604 old_postinstall_cmds \
15605 old_postuninstall_cmds \
15606 old_archive_cmds \
15607 extract_expsyms_cmds \
15608 old_archive_from_new_cmds \
15609 old_archive_from_expsyms_cmds \
15610 archive_cmds \
15611 archive_expsym_cmds \
15612 module_cmds \
15613 module_expsym_cmds \
15614 export_symbols_cmds \
15615 prelink_cmds \
15616 postinstall_cmds \
15617 postuninstall_cmds \
15618 finish_cmds \
15619 sys_lib_search_path_spec \
15620 sys_lib_dlsearch_path_spec \
15621 reload_cmds_CXX \
15622 old_archive_cmds_CXX \
15623 old_archive_from_new_cmds_CXX \
15624 old_archive_from_expsyms_cmds_CXX \
15625 archive_cmds_CXX \
15626 archive_expsym_cmds_CXX \
15627 module_cmds_CXX \
15628 module_expsym_cmds_CXX \
15629 export_symbols_cmds_CXX \
15630 prelink_cmds_CXX; do
15631 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15632 *[\\\\\\\`\\"\\\$]*)
15633 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15634 ;;
15635 *)
15636 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15637 ;;
15638 esac
15639 done
15640
15641 ac_aux_dir='$ac_aux_dir'
15642 xsi_shell='$xsi_shell'
15643 lt_shell_append='$lt_shell_append'
15644
15645 # See if we are running on zsh, and set the options which allow our
15646 # commands through without removal of \ escapes INIT.
15647 if test -n "\${ZSH_VERSION+set}" ; then
15648 setopt NO_GLOB_SUBST
15649 fi
15650
15651
15652 PACKAGE='$PACKAGE'
15653 VERSION='$VERSION'
15654 TIMESTAMP='$TIMESTAMP'
15655 RM='$RM'
15656 ofile='$ofile'
15657
15658
15659
15660
15661
15662 _LTEOF
15663
15664 cat >>"$CONFIG_LT" <<\_LTEOF
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
15666 $as_echo "$as_me: creating $ofile" >&6;}
15667
15668
15669 # See if we are running on zsh, and set the options which allow our
15670 # commands through without removal of \ escapes.
15671 if test -n "${ZSH_VERSION+set}" ; then
15672 setopt NO_GLOB_SUBST
15673 fi
15674
15675 cfgfile="${ofile}T"
15676 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15677 $RM "$cfgfile"
15678
15679 cat <<_LT_EOF >> "$cfgfile"
15680 #! $SHELL
15681
15682 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15683 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15684 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15685 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15686 #
15687 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15688 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15689 # Written by Gordon Matzigkeit, 1996
15690 #
15691 # This file is part of GNU Libtool.
15692 #
15693 # GNU Libtool is free software; you can redistribute it and/or
15694 # modify it under the terms of the GNU General Public License as
15695 # published by the Free Software Foundation; either version 2 of
15696 # the License, or (at your option) any later version.
15697 #
15698 # As a special exception to the GNU General Public License,
15699 # if you distribute this file as part of a program or library that
15700 # is built using GNU Libtool, you may include this file under the
15701 # same distribution terms that you use for the rest of that program.
15702 #
15703 # GNU Libtool is distributed in the hope that it will be useful,
15704 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15705 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15706 # GNU General Public License for more details.
15707 #
15708 # You should have received a copy of the GNU General Public License
15709 # along with GNU Libtool; see the file COPYING. If not, a copy
15710 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15711 # obtained by writing to the Free Software Foundation, Inc.,
15712 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15713
15714
15715 # The names of the tagged configurations supported by this script.
15716 available_tags="CXX "
15717
15718 # ### BEGIN LIBTOOL CONFIG
15719
15720 # Which release of libtool.m4 was used?
15721 macro_version=$macro_version
15722 macro_revision=$macro_revision
15723
15724 # Whether or not to build shared libraries.
15725 build_libtool_libs=$enable_shared
15726
15727 # Whether or not to build static libraries.
15728 build_old_libs=$enable_static
15729
15730 # What type of objects to build.
15731 pic_mode=$pic_mode
15732
15733 # Whether or not to optimize for fast installation.
15734 fast_install=$enable_fast_install
15735
15736 # Shell to use when invoking shell scripts.
15737 SHELL=$lt_SHELL
15738
15739 # An echo program that protects backslashes.
15740 ECHO=$lt_ECHO
15741
15742 # The host system.
15743 host_alias=$host_alias
15744 host=$host
15745 host_os=$host_os
15746
15747 # The build system.
15748 build_alias=$build_alias
15749 build=$build
15750 build_os=$build_os
15751
15752 # A sed program that does not truncate output.
15753 SED=$lt_SED
15754
15755 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15756 Xsed="\$SED -e 1s/^X//"
15757
15758 # A grep program that handles long lines.
15759 GREP=$lt_GREP
15760
15761 # An ERE matcher.
15762 EGREP=$lt_EGREP
15763
15764 # A literal string matcher.
15765 FGREP=$lt_FGREP
15766
15767 # A BSD- or MS-compatible name lister.
15768 NM=$lt_NM
15769
15770 # Whether we need soft or hard links.
15771 LN_S=$lt_LN_S
15772
15773 # What is the maximum length of a command?
15774 max_cmd_len=$max_cmd_len
15775
15776 # Object file suffix (normally "o").
15777 objext=$ac_objext
15778
15779 # Executable file suffix (normally "").
15780 exeext=$exeext
15781
15782 # whether the shell understands "unset".
15783 lt_unset=$lt_unset
15784
15785 # turn spaces into newlines.
15786 SP2NL=$lt_lt_SP2NL
15787
15788 # turn newlines into spaces.
15789 NL2SP=$lt_lt_NL2SP
15790
15791 # An object symbol dumper.
15792 OBJDUMP=$lt_OBJDUMP
15793
15794 # Method to check whether dependent libraries are shared objects.
15795 deplibs_check_method=$lt_deplibs_check_method
15796
15797 # Command to use when deplibs_check_method == "file_magic".
15798 file_magic_cmd=$lt_file_magic_cmd
15799
15800 # The archiver.
15801 AR=$lt_AR
15802 AR_FLAGS=$lt_AR_FLAGS
15803
15804 # A symbol stripping program.
15805 STRIP=$lt_STRIP
15806
15807 # Commands used to install an old-style archive.
15808 RANLIB=$lt_RANLIB
15809 old_postinstall_cmds=$lt_old_postinstall_cmds
15810 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15811
15812 # Whether to use a lock for old archive extraction.
15813 lock_old_archive_extraction=$lock_old_archive_extraction
15814
15815 # A C compiler.
15816 LTCC=$lt_CC
15817
15818 # LTCC compiler flags.
15819 LTCFLAGS=$lt_CFLAGS
15820
15821 # Take the output of nm and produce a listing of raw symbols and C names.
15822 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15823
15824 # Transform the output of nm in a proper C declaration.
15825 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15826
15827 # Transform the output of nm in a C name address pair.
15828 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15829
15830 # Transform the output of nm in a C name address pair when lib prefix is needed.
15831 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15832
15833 # The name of the directory that contains temporary libtool files.
15834 objdir=$objdir
15835
15836 # Used to examine libraries when file_magic_cmd begins with "file".
15837 MAGIC_CMD=$MAGIC_CMD
15838
15839 # Must we lock files when doing compilation?
15840 need_locks=$lt_need_locks
15841
15842 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15843 DSYMUTIL=$lt_DSYMUTIL
15844
15845 # Tool to change global to local symbols on Mac OS X.
15846 NMEDIT=$lt_NMEDIT
15847
15848 # Tool to manipulate fat objects and archives on Mac OS X.
15849 LIPO=$lt_LIPO
15850
15851 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15852 OTOOL=$lt_OTOOL
15853
15854 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15855 OTOOL64=$lt_OTOOL64
15856
15857 # Old archive suffix (normally "a").
15858 libext=$libext
15859
15860 # Shared library suffix (normally ".so").
15861 shrext_cmds=$lt_shrext_cmds
15862
15863 # The commands to extract the exported symbol list from a shared archive.
15864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15865
15866 # Variables whose values should be saved in libtool wrapper scripts and
15867 # restored at link time.
15868 variables_saved_for_relink=$lt_variables_saved_for_relink
15869
15870 # Do we need the "lib" prefix for modules?
15871 need_lib_prefix=$need_lib_prefix
15872
15873 # Do we need a version for libraries?
15874 need_version=$need_version
15875
15876 # Library versioning type.
15877 version_type=$version_type
15878
15879 # Shared library runtime path variable.
15880 runpath_var=$runpath_var
15881
15882 # Shared library path variable.
15883 shlibpath_var=$shlibpath_var
15884
15885 # Is shlibpath searched before the hard-coded library search path?
15886 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15887
15888 # Format of library name prefix.
15889 libname_spec=$lt_libname_spec
15890
15891 # List of archive names. First name is the real one, the rest are links.
15892 # The last name is the one that the linker finds with -lNAME
15893 library_names_spec=$lt_library_names_spec
15894
15895 # The coded name of the library, if different from the real name.
15896 soname_spec=$lt_soname_spec
15897
15898 # Permission mode override for installation of shared libraries.
15899 install_override_mode=$lt_install_override_mode
15900
15901 # Command to use after installation of a shared archive.
15902 postinstall_cmds=$lt_postinstall_cmds
15903
15904 # Command to use after uninstallation of a shared archive.
15905 postuninstall_cmds=$lt_postuninstall_cmds
15906
15907 # Commands used to finish a libtool library installation in a directory.
15908 finish_cmds=$lt_finish_cmds
15909
15910 # As "finish_cmds", except a single script fragment to be evaled but
15911 # not shown.
15912 finish_eval=$lt_finish_eval
15913
15914 # Whether we should hardcode library paths into libraries.
15915 hardcode_into_libs=$hardcode_into_libs
15916
15917 # Compile-time system search path for libraries.
15918 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15919
15920 # Run-time system search path for libraries.
15921 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15922
15923 # Whether dlopen is supported.
15924 dlopen_support=$enable_dlopen
15925
15926 # Whether dlopen of programs is supported.
15927 dlopen_self=$enable_dlopen_self
15928
15929 # Whether dlopen of statically linked programs is supported.
15930 dlopen_self_static=$enable_dlopen_self_static
15931
15932 # Commands to strip libraries.
15933 old_striplib=$lt_old_striplib
15934 striplib=$lt_striplib
15935
15936
15937 # The linker used to build libraries.
15938 LD=$lt_LD
15939
15940 # How to create reloadable object files.
15941 reload_flag=$lt_reload_flag
15942 reload_cmds=$lt_reload_cmds
15943
15944 # Commands used to build an old-style archive.
15945 old_archive_cmds=$lt_old_archive_cmds
15946
15947 # A language specific compiler.
15948 CC=$lt_compiler
15949
15950 # Is the compiler the GNU compiler?
15951 with_gcc=$GCC
15952
15953 # Compiler flag to turn off builtin functions.
15954 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15955
15956 # How to pass a linker flag through the compiler.
15957 wl=$lt_lt_prog_compiler_wl
15958
15959 # Additional compiler flags for building library objects.
15960 pic_flag=$lt_lt_prog_compiler_pic
15961
15962 # Compiler flag to prevent dynamic linking.
15963 link_static_flag=$lt_lt_prog_compiler_static
15964
15965 # Does compiler simultaneously support -c and -o options?
15966 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15967
15968 # Whether or not to add -lc for building shared libraries.
15969 build_libtool_need_lc=$archive_cmds_need_lc
15970
15971 # Whether or not to disallow shared libs when runtime libs are static.
15972 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15973
15974 # Compiler flag to allow reflexive dlopens.
15975 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15976
15977 # Compiler flag to generate shared objects directly from archives.
15978 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15979
15980 # Whether the compiler copes with passing no objects directly.
15981 compiler_needs_object=$lt_compiler_needs_object
15982
15983 # Create an old-style archive from a shared archive.
15984 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15985
15986 # Create a temporary old-style archive to link instead of a shared archive.
15987 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15988
15989 # Commands used to build a shared archive.
15990 archive_cmds=$lt_archive_cmds
15991 archive_expsym_cmds=$lt_archive_expsym_cmds
15992
15993 # Commands used to build a loadable module if different from building
15994 # a shared archive.
15995 module_cmds=$lt_module_cmds
15996 module_expsym_cmds=$lt_module_expsym_cmds
15997
15998 # Whether we are building with GNU ld or not.
15999 with_gnu_ld=$lt_with_gnu_ld
16000
16001 # Flag that allows shared libraries with undefined symbols to be built.
16002 allow_undefined_flag=$lt_allow_undefined_flag
16003
16004 # Flag that enforces no undefined symbols.
16005 no_undefined_flag=$lt_no_undefined_flag
16006
16007 # Flag to hardcode \$libdir into a binary during linking.
16008 # This must work even if \$libdir does not exist
16009 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16010
16011 # If ld is used when linking, flag to hardcode \$libdir into a binary
16012 # during linking. This must work even if \$libdir does not exist.
16013 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16014
16015 # Whether we need a single "-rpath" flag with a separated argument.
16016 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16017
16018 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16019 # DIR into the resulting binary.
16020 hardcode_direct=$hardcode_direct
16021
16022 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16023 # DIR into the resulting binary and the resulting library dependency is
16024 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16025 # library is relocated.
16026 hardcode_direct_absolute=$hardcode_direct_absolute
16027
16028 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16029 # into the resulting binary.
16030 hardcode_minus_L=$hardcode_minus_L
16031
16032 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16033 # into the resulting binary.
16034 hardcode_shlibpath_var=$hardcode_shlibpath_var
16035
16036 # Set to "yes" if building a shared library automatically hardcodes DIR
16037 # into the library and all subsequent libraries and executables linked
16038 # against it.
16039 hardcode_automatic=$hardcode_automatic
16040
16041 # Set to yes if linker adds runtime paths of dependent libraries
16042 # to runtime path list.
16043 inherit_rpath=$inherit_rpath
16044
16045 # Whether libtool must link a program against all its dependency libraries.
16046 link_all_deplibs=$link_all_deplibs
16047
16048 # Fix the shell variable \$srcfile for the compiler.
16049 fix_srcfile_path=$lt_fix_srcfile_path
16050
16051 # Set to "yes" if exported symbols are required.
16052 always_export_symbols=$always_export_symbols
16053
16054 # The commands to list exported symbols.
16055 export_symbols_cmds=$lt_export_symbols_cmds
16056
16057 # Symbols that should not be listed in the preloaded symbols.
16058 exclude_expsyms=$lt_exclude_expsyms
16059
16060 # Symbols that must always be exported.
16061 include_expsyms=$lt_include_expsyms
16062
16063 # Commands necessary for linking programs (against libraries) with templates.
16064 prelink_cmds=$lt_prelink_cmds
16065
16066 # Specify filename containing input files.
16067 file_list_spec=$lt_file_list_spec
16068
16069 # How to hardcode a shared library path into an executable.
16070 hardcode_action=$hardcode_action
16071
16072 # The directories searched by this compiler when creating a shared library.
16073 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16074
16075 # Dependencies to place before and after the objects being linked to
16076 # create a shared library.
16077 predep_objects=$lt_predep_objects
16078 postdep_objects=$lt_postdep_objects
16079 predeps=$lt_predeps
16080 postdeps=$lt_postdeps
16081
16082 # The library search path used internally by the compiler when linking
16083 # a shared library.
16084 compiler_lib_search_path=$lt_compiler_lib_search_path
16085
16086 # ### END LIBTOOL CONFIG
16087
16088 _LT_EOF
16089
16090 case $host_os in
16091 aix3*)
16092 cat <<\_LT_EOF >> "$cfgfile"
16093 # AIX sometimes has problems with the GCC collect2 program. For some
16094 # reason, if we set the COLLECT_NAMES environment variable, the problems
16095 # vanish in a puff of smoke.
16096 if test "X${COLLECT_NAMES+set}" != Xset; then
16097 COLLECT_NAMES=
16098 export COLLECT_NAMES
16099 fi
16100 _LT_EOF
16101 ;;
16102 esac
16103
16104
16105 ltmain="$ac_aux_dir/ltmain.sh"
16106
16107
16108 # We use sed instead of cat because bash on DJGPP gets confused if
16109 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16110 # text mode, it properly converts lines to CR/LF. This bash problem
16111 # is reportedly fixed, but why not run on old versions too?
16112 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16113 || (rm -f "$cfgfile"; exit 1)
16114
16115 case $xsi_shell in
16116 yes)
16117 cat << \_LT_EOF >> "$cfgfile"
16118
16119 # func_dirname file append nondir_replacement
16120 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16121 # otherwise set result to NONDIR_REPLACEMENT.
16122 func_dirname ()
16123 {
16124 case ${1} in
16125 */*) func_dirname_result="${1%/*}${2}" ;;
16126 * ) func_dirname_result="${3}" ;;
16127 esac
16128 }
16129
16130 # func_basename file
16131 func_basename ()
16132 {
16133 func_basename_result="${1##*/}"
16134 }
16135
16136 # func_dirname_and_basename file append nondir_replacement
16137 # perform func_basename and func_dirname in a single function
16138 # call:
16139 # dirname: Compute the dirname of FILE. If nonempty,
16140 # add APPEND to the result, otherwise set result
16141 # to NONDIR_REPLACEMENT.
16142 # value returned in "$func_dirname_result"
16143 # basename: Compute filename of FILE.
16144 # value retuned in "$func_basename_result"
16145 # Implementation must be kept synchronized with func_dirname
16146 # and func_basename. For efficiency, we do not delegate to
16147 # those functions but instead duplicate the functionality here.
16148 func_dirname_and_basename ()
16149 {
16150 case ${1} in
16151 */*) func_dirname_result="${1%/*}${2}" ;;
16152 * ) func_dirname_result="${3}" ;;
16153 esac
16154 func_basename_result="${1##*/}"
16155 }
16156
16157 # func_stripname prefix suffix name
16158 # strip PREFIX and SUFFIX off of NAME.
16159 # PREFIX and SUFFIX must not contain globbing or regex special
16160 # characters, hashes, percent signs, but SUFFIX may contain a leading
16161 # dot (in which case that matches only a dot).
16162 func_stripname ()
16163 {
16164 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16165 # positional parameters, so assign one to ordinary parameter first.
16166 func_stripname_result=${3}
16167 func_stripname_result=${func_stripname_result#"${1}"}
16168 func_stripname_result=${func_stripname_result%"${2}"}
16169 }
16170
16171 # func_opt_split
16172 func_opt_split ()
16173 {
16174 func_opt_split_opt=${1%%=*}
16175 func_opt_split_arg=${1#*=}
16176 }
16177
16178 # func_lo2o object
16179 func_lo2o ()
16180 {
16181 case ${1} in
16182 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16183 *) func_lo2o_result=${1} ;;
16184 esac
16185 }
16186
16187 # func_xform libobj-or-source
16188 func_xform ()
16189 {
16190 func_xform_result=${1%.*}.lo
16191 }
16192
16193 # func_arith arithmetic-term...
16194 func_arith ()
16195 {
16196 func_arith_result=$(( $* ))
16197 }
16198
16199 # func_len string
16200 # STRING may not start with a hyphen.
16201 func_len ()
16202 {
16203 func_len_result=${#1}
16204 }
16205
16206 _LT_EOF
16207 ;;
16208 *) # Bourne compatible functions.
16209 cat << \_LT_EOF >> "$cfgfile"
16210
16211 # func_dirname file append nondir_replacement
16212 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16213 # otherwise set result to NONDIR_REPLACEMENT.
16214 func_dirname ()
16215 {
16216 # Extract subdirectory from the argument.
16217 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16218 if test "X$func_dirname_result" = "X${1}"; then
16219 func_dirname_result="${3}"
16220 else
16221 func_dirname_result="$func_dirname_result${2}"
16222 fi
16223 }
16224
16225 # func_basename file
16226 func_basename ()
16227 {
16228 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16229 }
16230
16231
16232 # func_stripname prefix suffix name
16233 # strip PREFIX and SUFFIX off of NAME.
16234 # PREFIX and SUFFIX must not contain globbing or regex special
16235 # characters, hashes, percent signs, but SUFFIX may contain a leading
16236 # dot (in which case that matches only a dot).
16237 # func_strip_suffix prefix name
16238 func_stripname ()
16239 {
16240 case ${2} in
16241 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16242 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16243 esac
16244 }
16245
16246 # sed scripts:
16247 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16248 my_sed_long_arg='1s/^-[^=]*=//'
16249
16250 # func_opt_split
16251 func_opt_split ()
16252 {
16253 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16254 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16255 }
16256
16257 # func_lo2o object
16258 func_lo2o ()
16259 {
16260 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16261 }
16262
16263 # func_xform libobj-or-source
16264 func_xform ()
16265 {
16266 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16267 }
16268
16269 # func_arith arithmetic-term...
16270 func_arith ()
16271 {
16272 func_arith_result=`expr "$@"`
16273 }
16274
16275 # func_len string
16276 # STRING may not start with a hyphen.
16277 func_len ()
16278 {
16279 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16280 }
16281
16282 _LT_EOF
16283 esac
16284
16285 case $lt_shell_append in
16286 yes)
16287 cat << \_LT_EOF >> "$cfgfile"
16288
16289 # func_append var value
16290 # Append VALUE to the end of shell variable VAR.
16291 func_append ()
16292 {
16293 eval "$1+=\$2"
16294 }
16295 _LT_EOF
16296 ;;
16297 *)
16298 cat << \_LT_EOF >> "$cfgfile"
16299
16300 # func_append var value
16301 # Append VALUE to the end of shell variable VAR.
16302 func_append ()
16303 {
16304 eval "$1=\$$1\$2"
16305 }
16306
16307 _LT_EOF
16308 ;;
16309 esac
16310
16311
16312 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16313 || (rm -f "$cfgfile"; exit 1)
16314
16315 mv -f "$cfgfile" "$ofile" ||
16316 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16317 chmod +x "$ofile"
16318
16319
16320 cat <<_LT_EOF >> "$ofile"
16321
16322 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16323
16324 # The linker used to build libraries.
16325 LD=$lt_LD_CXX
16326
16327 # How to create reloadable object files.
16328 reload_flag=$lt_reload_flag_CXX
16329 reload_cmds=$lt_reload_cmds_CXX
16330
16331 # Commands used to build an old-style archive.
16332 old_archive_cmds=$lt_old_archive_cmds_CXX
16333
16334 # A language specific compiler.
16335 CC=$lt_compiler_CXX
16336
16337 # Is the compiler the GNU compiler?
16338 with_gcc=$GCC_CXX
16339
16340 # Compiler flag to turn off builtin functions.
16341 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16342
16343 # How to pass a linker flag through the compiler.
16344 wl=$lt_lt_prog_compiler_wl_CXX
16345
16346 # Additional compiler flags for building library objects.
16347 pic_flag=$lt_lt_prog_compiler_pic_CXX
16348
16349 # Compiler flag to prevent dynamic linking.
16350 link_static_flag=$lt_lt_prog_compiler_static_CXX
16351
16352 # Does compiler simultaneously support -c and -o options?
16353 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16354
16355 # Whether or not to add -lc for building shared libraries.
16356 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16357
16358 # Whether or not to disallow shared libs when runtime libs are static.
16359 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16360
16361 # Compiler flag to allow reflexive dlopens.
16362 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16363
16364 # Compiler flag to generate shared objects directly from archives.
16365 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16366
16367 # Whether the compiler copes with passing no objects directly.
16368 compiler_needs_object=$lt_compiler_needs_object_CXX
16369
16370 # Create an old-style archive from a shared archive.
16371 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16372
16373 # Create a temporary old-style archive to link instead of a shared archive.
16374 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16375
16376 # Commands used to build a shared archive.
16377 archive_cmds=$lt_archive_cmds_CXX
16378 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16379
16380 # Commands used to build a loadable module if different from building
16381 # a shared archive.
16382 module_cmds=$lt_module_cmds_CXX
16383 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16384
16385 # Whether we are building with GNU ld or not.
16386 with_gnu_ld=$lt_with_gnu_ld_CXX
16387
16388 # Flag that allows shared libraries with undefined symbols to be built.
16389 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16390
16391 # Flag that enforces no undefined symbols.
16392 no_undefined_flag=$lt_no_undefined_flag_CXX
16393
16394 # Flag to hardcode \$libdir into a binary during linking.
16395 # This must work even if \$libdir does not exist
16396 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16397
16398 # If ld is used when linking, flag to hardcode \$libdir into a binary
16399 # during linking. This must work even if \$libdir does not exist.
16400 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16401
16402 # Whether we need a single "-rpath" flag with a separated argument.
16403 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16404
16405 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16406 # DIR into the resulting binary.
16407 hardcode_direct=$hardcode_direct_CXX
16408
16409 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16410 # DIR into the resulting binary and the resulting library dependency is
16411 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16412 # library is relocated.
16413 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16414
16415 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16416 # into the resulting binary.
16417 hardcode_minus_L=$hardcode_minus_L_CXX
16418
16419 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16420 # into the resulting binary.
16421 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16422
16423 # Set to "yes" if building a shared library automatically hardcodes DIR
16424 # into the library and all subsequent libraries and executables linked
16425 # against it.
16426 hardcode_automatic=$hardcode_automatic_CXX
16427
16428 # Set to yes if linker adds runtime paths of dependent libraries
16429 # to runtime path list.
16430 inherit_rpath=$inherit_rpath_CXX
16431
16432 # Whether libtool must link a program against all its dependency libraries.
16433 link_all_deplibs=$link_all_deplibs_CXX
16434
16435 # Fix the shell variable \$srcfile for the compiler.
16436 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16437
16438 # Set to "yes" if exported symbols are required.
16439 always_export_symbols=$always_export_symbols_CXX
16440
16441 # The commands to list exported symbols.
16442 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16443
16444 # Symbols that should not be listed in the preloaded symbols.
16445 exclude_expsyms=$lt_exclude_expsyms_CXX
16446
16447 # Symbols that must always be exported.
16448 include_expsyms=$lt_include_expsyms_CXX
16449
16450 # Commands necessary for linking programs (against libraries) with templates.
16451 prelink_cmds=$lt_prelink_cmds_CXX
16452
16453 # Specify filename containing input files.
16454 file_list_spec=$lt_file_list_spec_CXX
16455
16456 # How to hardcode a shared library path into an executable.
16457 hardcode_action=$hardcode_action_CXX
16458
16459 # The directories searched by this compiler when creating a shared library.
16460 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16461
16462 # Dependencies to place before and after the objects being linked to
16463 # create a shared library.
16464 predep_objects=$lt_predep_objects_CXX
16465 postdep_objects=$lt_postdep_objects_CXX
16466 predeps=$lt_predeps_CXX
16467 postdeps=$lt_postdeps_CXX
16468
16469 # The library search path used internally by the compiler when linking
16470 # a shared library.
16471 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16472
16473 # ### END LIBTOOL TAG CONFIG: CXX
16474 _LT_EOF
16475
16476
16477 as_fn_exit 0
16478 _LTEOF
16479 chmod +x "$CONFIG_LT"
16480
16481 # configure is writing to config.log, but config.lt does its own redirection,
16482 # appending to config.log, which fails on DOS, as config.log is still kept
16483 # open by configure. Here we exec the FD to /dev/null, effectively closing
16484 # config.log, so it can be properly (re)opened and appended to by config.lt.
16485 lt_cl_success=:
16486 test "$silent" = yes &&
16487 lt_config_lt_args="$lt_config_lt_args --quiet"
16488 exec 5>/dev/null
16489 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
16490 exec 5>>config.log
16491 $lt_cl_success || as_fn_exit 1
16492
16493
16494 # We require a C++11 compiler. Check if one is available, and if
16495 # necessary, set CXX_DIALECT to some -std=xxx switch.
16496 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
16497 ac_ext=cpp
16498 ac_cpp='$CXXCPP $CPPFLAGS'
16499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16502 CXX_DIALECT=""
16503 ac_success=no
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16505 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16506 if ${ax_cv_cxx_compile_cxx11+:} false; then :
16507 $as_echo_n "(cached) " >&6
16508 else
16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16511
16512
16513 // If the compiler admits that it is not ready for C++11, why torture it?
16514 // Hopefully, this will speed up the test.
16515
16516 #ifndef __cplusplus
16517
16518 #error "This is not a C++ compiler"
16519
16520 #elif __cplusplus < 201103L
16521
16522 #error "This is not a C++11 compiler"
16523
16524 #else
16525
16526 namespace cxx11
16527 {
16528
16529 namespace test_static_assert
16530 {
16531
16532 template <typename T>
16533 struct check
16534 {
16535 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16536 };
16537
16538 }
16539
16540 namespace test_final_override
16541 {
16542
16543 struct Base
16544 {
16545 virtual void f() {}
16546 };
16547
16548 struct Derived : public Base
16549 {
16550 virtual void f() override {}
16551 };
16552
16553 }
16554
16555 namespace test_double_right_angle_brackets
16556 {
16557
16558 template < typename T >
16559 struct check {};
16560
16561 typedef check<void> single_type;
16562 typedef check<check<void>> double_type;
16563 typedef check<check<check<void>>> triple_type;
16564 typedef check<check<check<check<void>>>> quadruple_type;
16565
16566 }
16567
16568 namespace test_decltype
16569 {
16570
16571 int
16572 f()
16573 {
16574 int a = 1;
16575 decltype(a) b = 2;
16576 return a + b;
16577 }
16578
16579 }
16580
16581 namespace test_type_deduction
16582 {
16583
16584 template < typename T1, typename T2 >
16585 struct is_same
16586 {
16587 static const bool value = false;
16588 };
16589
16590 template < typename T >
16591 struct is_same<T, T>
16592 {
16593 static const bool value = true;
16594 };
16595
16596 template < typename T1, typename T2 >
16597 auto
16598 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16599 {
16600 return a1 + a2;
16601 }
16602
16603 int
16604 test(const int c, volatile int v)
16605 {
16606 static_assert(is_same<int, decltype(0)>::value == true, "");
16607 static_assert(is_same<int, decltype(c)>::value == false, "");
16608 static_assert(is_same<int, decltype(v)>::value == false, "");
16609 auto ac = c;
16610 auto av = v;
16611 auto sumi = ac + av + 'x';
16612 auto sumf = ac + av + 1.0;
16613 static_assert(is_same<int, decltype(ac)>::value == true, "");
16614 static_assert(is_same<int, decltype(av)>::value == true, "");
16615 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16616 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16617 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16618 return (sumf > 0.0) ? sumi : add(c, v);
16619 }
16620
16621 }
16622
16623 namespace test_noexcept
16624 {
16625
16626 int f() { return 0; }
16627 int g() noexcept { return 0; }
16628
16629 static_assert(noexcept(f()) == false, "");
16630 static_assert(noexcept(g()) == true, "");
16631
16632 }
16633
16634 namespace test_constexpr
16635 {
16636
16637 template < typename CharT >
16638 unsigned long constexpr
16639 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16640 {
16641 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16642 }
16643
16644 template < typename CharT >
16645 unsigned long constexpr
16646 strlen_c(const CharT *const s) noexcept
16647 {
16648 return strlen_c_r(s, 0UL);
16649 }
16650
16651 static_assert(strlen_c("") == 0UL, "");
16652 static_assert(strlen_c("1") == 1UL, "");
16653 static_assert(strlen_c("example") == 7UL, "");
16654 static_assert(strlen_c("another\0example") == 7UL, "");
16655
16656 }
16657
16658 namespace test_rvalue_references
16659 {
16660
16661 template < int N >
16662 struct answer
16663 {
16664 static constexpr int value = N;
16665 };
16666
16667 answer<1> f(int&) { return answer<1>(); }
16668 answer<2> f(const int&) { return answer<2>(); }
16669 answer<3> f(int&&) { return answer<3>(); }
16670
16671 void
16672 test()
16673 {
16674 int i = 0;
16675 const int c = 0;
16676 static_assert(decltype(f(i))::value == 1, "");
16677 static_assert(decltype(f(c))::value == 2, "");
16678 static_assert(decltype(f(0))::value == 3, "");
16679 }
16680
16681 }
16682
16683 namespace test_uniform_initialization
16684 {
16685
16686 struct test
16687 {
16688 static const int zero {};
16689 static const int one {1};
16690 };
16691
16692 static_assert(test::zero == 0, "");
16693 static_assert(test::one == 1, "");
16694
16695 }
16696
16697 namespace test_lambdas
16698 {
16699
16700 void
16701 test1()
16702 {
16703 auto lambda1 = [](){};
16704 auto lambda2 = lambda1;
16705 lambda1();
16706 lambda2();
16707 }
16708
16709 int
16710 test2()
16711 {
16712 auto a = [](int i, int j){ return i + j; }(1, 2);
16713 auto b = []() -> int { return '0'; }();
16714 auto c = [=](){ return a + b; }();
16715 auto d = [&](){ return c; }();
16716 auto e = [a, &b](int x) mutable {
16717 const auto identity = [](int y){ return y; };
16718 for (auto i = 0; i < a; ++i)
16719 a += b--;
16720 return x + identity(a + b);
16721 }(0);
16722 return a + b + c + d + e;
16723 }
16724
16725 int
16726 test3()
16727 {
16728 const auto nullary = [](){ return 0; };
16729 const auto unary = [](int x){ return x; };
16730 using nullary_t = decltype(nullary);
16731 using unary_t = decltype(unary);
16732 const auto higher1st = [](nullary_t f){ return f(); };
16733 const auto higher2nd = [unary](nullary_t f1){
16734 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16735 };
16736 return higher1st(nullary) + higher2nd(nullary)(unary);
16737 }
16738
16739 }
16740
16741 namespace test_variadic_templates
16742 {
16743
16744 template <int...>
16745 struct sum;
16746
16747 template <int N0, int... N1toN>
16748 struct sum<N0, N1toN...>
16749 {
16750 static constexpr auto value = N0 + sum<N1toN...>::value;
16751 };
16752
16753 template <>
16754 struct sum<>
16755 {
16756 static constexpr auto value = 0;
16757 };
16758
16759 static_assert(sum<>::value == 0, "");
16760 static_assert(sum<1>::value == 1, "");
16761 static_assert(sum<23>::value == 23, "");
16762 static_assert(sum<1, 2>::value == 3, "");
16763 static_assert(sum<5, 5, 11>::value == 21, "");
16764 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
16765
16766 }
16767
16768 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
16769 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
16770 // because of this.
16771 namespace test_template_alias_sfinae
16772 {
16773
16774 struct foo {};
16775
16776 template<typename T>
16777 using member = typename T::member_type;
16778
16779 template<typename T>
16780 void func(...) {}
16781
16782 template<typename T>
16783 void func(member<T>*) {}
16784
16785 void test();
16786
16787 void test() { func<foo>(0); }
16788
16789 }
16790
16791 } // namespace cxx11
16792
16793 #endif // __cplusplus >= 201103L
16794
16795
16796
16797 _ACEOF
16798 if ac_fn_cxx_try_compile "$LINENO"; then :
16799 ax_cv_cxx_compile_cxx11=yes
16800 else
16801 ax_cv_cxx_compile_cxx11=no
16802 fi
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804 fi
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16806 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16807 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16808 ac_success=yes
16809 fi
16810
16811 if test x$ac_success = xno; then
16812 for alternative in ${ax_cxx_compile_alternatives}; do
16813 switch="-std=gnu++${alternative}"
16814 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16816 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16817 if eval \${$cachevar+:} false; then :
16818 $as_echo_n "(cached) " >&6
16819 else
16820 ac_save_CXX="$CXX"
16821 CXX="$CXX $switch"
16822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16823 /* end confdefs.h. */
16824
16825
16826 // If the compiler admits that it is not ready for C++11, why torture it?
16827 // Hopefully, this will speed up the test.
16828
16829 #ifndef __cplusplus
16830
16831 #error "This is not a C++ compiler"
16832
16833 #elif __cplusplus < 201103L
16834
16835 #error "This is not a C++11 compiler"
16836
16837 #else
16838
16839 namespace cxx11
16840 {
16841
16842 namespace test_static_assert
16843 {
16844
16845 template <typename T>
16846 struct check
16847 {
16848 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16849 };
16850
16851 }
16852
16853 namespace test_final_override
16854 {
16855
16856 struct Base
16857 {
16858 virtual void f() {}
16859 };
16860
16861 struct Derived : public Base
16862 {
16863 virtual void f() override {}
16864 };
16865
16866 }
16867
16868 namespace test_double_right_angle_brackets
16869 {
16870
16871 template < typename T >
16872 struct check {};
16873
16874 typedef check<void> single_type;
16875 typedef check<check<void>> double_type;
16876 typedef check<check<check<void>>> triple_type;
16877 typedef check<check<check<check<void>>>> quadruple_type;
16878
16879 }
16880
16881 namespace test_decltype
16882 {
16883
16884 int
16885 f()
16886 {
16887 int a = 1;
16888 decltype(a) b = 2;
16889 return a + b;
16890 }
16891
16892 }
16893
16894 namespace test_type_deduction
16895 {
16896
16897 template < typename T1, typename T2 >
16898 struct is_same
16899 {
16900 static const bool value = false;
16901 };
16902
16903 template < typename T >
16904 struct is_same<T, T>
16905 {
16906 static const bool value = true;
16907 };
16908
16909 template < typename T1, typename T2 >
16910 auto
16911 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16912 {
16913 return a1 + a2;
16914 }
16915
16916 int
16917 test(const int c, volatile int v)
16918 {
16919 static_assert(is_same<int, decltype(0)>::value == true, "");
16920 static_assert(is_same<int, decltype(c)>::value == false, "");
16921 static_assert(is_same<int, decltype(v)>::value == false, "");
16922 auto ac = c;
16923 auto av = v;
16924 auto sumi = ac + av + 'x';
16925 auto sumf = ac + av + 1.0;
16926 static_assert(is_same<int, decltype(ac)>::value == true, "");
16927 static_assert(is_same<int, decltype(av)>::value == true, "");
16928 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16929 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16930 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16931 return (sumf > 0.0) ? sumi : add(c, v);
16932 }
16933
16934 }
16935
16936 namespace test_noexcept
16937 {
16938
16939 int f() { return 0; }
16940 int g() noexcept { return 0; }
16941
16942 static_assert(noexcept(f()) == false, "");
16943 static_assert(noexcept(g()) == true, "");
16944
16945 }
16946
16947 namespace test_constexpr
16948 {
16949
16950 template < typename CharT >
16951 unsigned long constexpr
16952 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16953 {
16954 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16955 }
16956
16957 template < typename CharT >
16958 unsigned long constexpr
16959 strlen_c(const CharT *const s) noexcept
16960 {
16961 return strlen_c_r(s, 0UL);
16962 }
16963
16964 static_assert(strlen_c("") == 0UL, "");
16965 static_assert(strlen_c("1") == 1UL, "");
16966 static_assert(strlen_c("example") == 7UL, "");
16967 static_assert(strlen_c("another\0example") == 7UL, "");
16968
16969 }
16970
16971 namespace test_rvalue_references
16972 {
16973
16974 template < int N >
16975 struct answer
16976 {
16977 static constexpr int value = N;
16978 };
16979
16980 answer<1> f(int&) { return answer<1>(); }
16981 answer<2> f(const int&) { return answer<2>(); }
16982 answer<3> f(int&&) { return answer<3>(); }
16983
16984 void
16985 test()
16986 {
16987 int i = 0;
16988 const int c = 0;
16989 static_assert(decltype(f(i))::value == 1, "");
16990 static_assert(decltype(f(c))::value == 2, "");
16991 static_assert(decltype(f(0))::value == 3, "");
16992 }
16993
16994 }
16995
16996 namespace test_uniform_initialization
16997 {
16998
16999 struct test
17000 {
17001 static const int zero {};
17002 static const int one {1};
17003 };
17004
17005 static_assert(test::zero == 0, "");
17006 static_assert(test::one == 1, "");
17007
17008 }
17009
17010 namespace test_lambdas
17011 {
17012
17013 void
17014 test1()
17015 {
17016 auto lambda1 = [](){};
17017 auto lambda2 = lambda1;
17018 lambda1();
17019 lambda2();
17020 }
17021
17022 int
17023 test2()
17024 {
17025 auto a = [](int i, int j){ return i + j; }(1, 2);
17026 auto b = []() -> int { return '0'; }();
17027 auto c = [=](){ return a + b; }();
17028 auto d = [&](){ return c; }();
17029 auto e = [a, &b](int x) mutable {
17030 const auto identity = [](int y){ return y; };
17031 for (auto i = 0; i < a; ++i)
17032 a += b--;
17033 return x + identity(a + b);
17034 }(0);
17035 return a + b + c + d + e;
17036 }
17037
17038 int
17039 test3()
17040 {
17041 const auto nullary = [](){ return 0; };
17042 const auto unary = [](int x){ return x; };
17043 using nullary_t = decltype(nullary);
17044 using unary_t = decltype(unary);
17045 const auto higher1st = [](nullary_t f){ return f(); };
17046 const auto higher2nd = [unary](nullary_t f1){
17047 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17048 };
17049 return higher1st(nullary) + higher2nd(nullary)(unary);
17050 }
17051
17052 }
17053
17054 namespace test_variadic_templates
17055 {
17056
17057 template <int...>
17058 struct sum;
17059
17060 template <int N0, int... N1toN>
17061 struct sum<N0, N1toN...>
17062 {
17063 static constexpr auto value = N0 + sum<N1toN...>::value;
17064 };
17065
17066 template <>
17067 struct sum<>
17068 {
17069 static constexpr auto value = 0;
17070 };
17071
17072 static_assert(sum<>::value == 0, "");
17073 static_assert(sum<1>::value == 1, "");
17074 static_assert(sum<23>::value == 23, "");
17075 static_assert(sum<1, 2>::value == 3, "");
17076 static_assert(sum<5, 5, 11>::value == 21, "");
17077 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17078
17079 }
17080
17081 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17082 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17083 // because of this.
17084 namespace test_template_alias_sfinae
17085 {
17086
17087 struct foo {};
17088
17089 template<typename T>
17090 using member = typename T::member_type;
17091
17092 template<typename T>
17093 void func(...) {}
17094
17095 template<typename T>
17096 void func(member<T>*) {}
17097
17098 void test();
17099
17100 void test() { func<foo>(0); }
17101
17102 }
17103
17104 } // namespace cxx11
17105
17106 #endif // __cplusplus >= 201103L
17107
17108
17109
17110 _ACEOF
17111 if ac_fn_cxx_try_compile "$LINENO"; then :
17112 eval $cachevar=yes
17113 else
17114 eval $cachevar=no
17115 fi
17116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17117 CXX="$ac_save_CXX"
17118 fi
17119 eval ac_res=\$$cachevar
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17121 $as_echo "$ac_res" >&6; }
17122 if eval test x\$$cachevar = xyes; then
17123 CXX_DIALECT="$switch"
17124 CXX="$CXX $switch"
17125 if test -n "$CXXCPP" ; then
17126 CXXCPP="$CXXCPP $switch"
17127 fi
17128 ac_success=yes
17129 break
17130 fi
17131 done
17132 fi
17133
17134 if test x$ac_success = xno; then
17135 for alternative in ${ax_cxx_compile_alternatives}; do
17136 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
17137 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17139 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
17140 if eval \${$cachevar+:} false; then :
17141 $as_echo_n "(cached) " >&6
17142 else
17143 ac_save_CXX="$CXX"
17144 CXX="$CXX $switch"
17145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h. */
17147
17148
17149 // If the compiler admits that it is not ready for C++11, why torture it?
17150 // Hopefully, this will speed up the test.
17151
17152 #ifndef __cplusplus
17153
17154 #error "This is not a C++ compiler"
17155
17156 #elif __cplusplus < 201103L
17157
17158 #error "This is not a C++11 compiler"
17159
17160 #else
17161
17162 namespace cxx11
17163 {
17164
17165 namespace test_static_assert
17166 {
17167
17168 template <typename T>
17169 struct check
17170 {
17171 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17172 };
17173
17174 }
17175
17176 namespace test_final_override
17177 {
17178
17179 struct Base
17180 {
17181 virtual void f() {}
17182 };
17183
17184 struct Derived : public Base
17185 {
17186 virtual void f() override {}
17187 };
17188
17189 }
17190
17191 namespace test_double_right_angle_brackets
17192 {
17193
17194 template < typename T >
17195 struct check {};
17196
17197 typedef check<void> single_type;
17198 typedef check<check<void>> double_type;
17199 typedef check<check<check<void>>> triple_type;
17200 typedef check<check<check<check<void>>>> quadruple_type;
17201
17202 }
17203
17204 namespace test_decltype
17205 {
17206
17207 int
17208 f()
17209 {
17210 int a = 1;
17211 decltype(a) b = 2;
17212 return a + b;
17213 }
17214
17215 }
17216
17217 namespace test_type_deduction
17218 {
17219
17220 template < typename T1, typename T2 >
17221 struct is_same
17222 {
17223 static const bool value = false;
17224 };
17225
17226 template < typename T >
17227 struct is_same<T, T>
17228 {
17229 static const bool value = true;
17230 };
17231
17232 template < typename T1, typename T2 >
17233 auto
17234 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17235 {
17236 return a1 + a2;
17237 }
17238
17239 int
17240 test(const int c, volatile int v)
17241 {
17242 static_assert(is_same<int, decltype(0)>::value == true, "");
17243 static_assert(is_same<int, decltype(c)>::value == false, "");
17244 static_assert(is_same<int, decltype(v)>::value == false, "");
17245 auto ac = c;
17246 auto av = v;
17247 auto sumi = ac + av + 'x';
17248 auto sumf = ac + av + 1.0;
17249 static_assert(is_same<int, decltype(ac)>::value == true, "");
17250 static_assert(is_same<int, decltype(av)>::value == true, "");
17251 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17252 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17253 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17254 return (sumf > 0.0) ? sumi : add(c, v);
17255 }
17256
17257 }
17258
17259 namespace test_noexcept
17260 {
17261
17262 int f() { return 0; }
17263 int g() noexcept { return 0; }
17264
17265 static_assert(noexcept(f()) == false, "");
17266 static_assert(noexcept(g()) == true, "");
17267
17268 }
17269
17270 namespace test_constexpr
17271 {
17272
17273 template < typename CharT >
17274 unsigned long constexpr
17275 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17276 {
17277 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17278 }
17279
17280 template < typename CharT >
17281 unsigned long constexpr
17282 strlen_c(const CharT *const s) noexcept
17283 {
17284 return strlen_c_r(s, 0UL);
17285 }
17286
17287 static_assert(strlen_c("") == 0UL, "");
17288 static_assert(strlen_c("1") == 1UL, "");
17289 static_assert(strlen_c("example") == 7UL, "");
17290 static_assert(strlen_c("another\0example") == 7UL, "");
17291
17292 }
17293
17294 namespace test_rvalue_references
17295 {
17296
17297 template < int N >
17298 struct answer
17299 {
17300 static constexpr int value = N;
17301 };
17302
17303 answer<1> f(int&) { return answer<1>(); }
17304 answer<2> f(const int&) { return answer<2>(); }
17305 answer<3> f(int&&) { return answer<3>(); }
17306
17307 void
17308 test()
17309 {
17310 int i = 0;
17311 const int c = 0;
17312 static_assert(decltype(f(i))::value == 1, "");
17313 static_assert(decltype(f(c))::value == 2, "");
17314 static_assert(decltype(f(0))::value == 3, "");
17315 }
17316
17317 }
17318
17319 namespace test_uniform_initialization
17320 {
17321
17322 struct test
17323 {
17324 static const int zero {};
17325 static const int one {1};
17326 };
17327
17328 static_assert(test::zero == 0, "");
17329 static_assert(test::one == 1, "");
17330
17331 }
17332
17333 namespace test_lambdas
17334 {
17335
17336 void
17337 test1()
17338 {
17339 auto lambda1 = [](){};
17340 auto lambda2 = lambda1;
17341 lambda1();
17342 lambda2();
17343 }
17344
17345 int
17346 test2()
17347 {
17348 auto a = [](int i, int j){ return i + j; }(1, 2);
17349 auto b = []() -> int { return '0'; }();
17350 auto c = [=](){ return a + b; }();
17351 auto d = [&](){ return c; }();
17352 auto e = [a, &b](int x) mutable {
17353 const auto identity = [](int y){ return y; };
17354 for (auto i = 0; i < a; ++i)
17355 a += b--;
17356 return x + identity(a + b);
17357 }(0);
17358 return a + b + c + d + e;
17359 }
17360
17361 int
17362 test3()
17363 {
17364 const auto nullary = [](){ return 0; };
17365 const auto unary = [](int x){ return x; };
17366 using nullary_t = decltype(nullary);
17367 using unary_t = decltype(unary);
17368 const auto higher1st = [](nullary_t f){ return f(); };
17369 const auto higher2nd = [unary](nullary_t f1){
17370 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17371 };
17372 return higher1st(nullary) + higher2nd(nullary)(unary);
17373 }
17374
17375 }
17376
17377 namespace test_variadic_templates
17378 {
17379
17380 template <int...>
17381 struct sum;
17382
17383 template <int N0, int... N1toN>
17384 struct sum<N0, N1toN...>
17385 {
17386 static constexpr auto value = N0 + sum<N1toN...>::value;
17387 };
17388
17389 template <>
17390 struct sum<>
17391 {
17392 static constexpr auto value = 0;
17393 };
17394
17395 static_assert(sum<>::value == 0, "");
17396 static_assert(sum<1>::value == 1, "");
17397 static_assert(sum<23>::value == 23, "");
17398 static_assert(sum<1, 2>::value == 3, "");
17399 static_assert(sum<5, 5, 11>::value == 21, "");
17400 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17401
17402 }
17403
17404 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17405 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17406 // because of this.
17407 namespace test_template_alias_sfinae
17408 {
17409
17410 struct foo {};
17411
17412 template<typename T>
17413 using member = typename T::member_type;
17414
17415 template<typename T>
17416 void func(...) {}
17417
17418 template<typename T>
17419 void func(member<T>*) {}
17420
17421 void test();
17422
17423 void test() { func<foo>(0); }
17424
17425 }
17426
17427 } // namespace cxx11
17428
17429 #endif // __cplusplus >= 201103L
17430
17431
17432
17433 _ACEOF
17434 if ac_fn_cxx_try_compile "$LINENO"; then :
17435 eval $cachevar=yes
17436 else
17437 eval $cachevar=no
17438 fi
17439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17440 CXX="$ac_save_CXX"
17441 fi
17442 eval ac_res=\$$cachevar
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17444 $as_echo "$ac_res" >&6; }
17445 if eval test x\$$cachevar = xyes; then
17446 CXX_DIALECT="$switch"
17447 CXX="$CXX $switch"
17448 if test -n "$CXXCPP" ; then
17449 CXXCPP="$CXXCPP $switch"
17450 fi
17451 ac_success=yes
17452 break
17453 fi
17454 done
17455 if test x$ac_success = xyes; then
17456 break
17457 fi
17458 done
17459 fi
17460 ac_ext=c
17461 ac_cpp='$CPP $CPPFLAGS'
17462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17465
17466 if test x$ax_cxx_compile_cxx11_required = xtrue; then
17467 if test x$ac_success = xno; then
17468 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
17469 fi
17470 fi
17471 if test x$ac_success = xno; then
17472 HAVE_CXX11=0
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
17474 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
17475 else
17476 HAVE_CXX11=1
17477
17478 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
17479
17480 fi
17481
17482
17483
17484
17485 # Dependency checking.
17486 rm -rf .tst 2>/dev/null
17487 mkdir .tst 2>/dev/null
17488 if test -d .tst; then
17489 am__leading_dot=.
17490 else
17491 am__leading_dot=_
17492 fi
17493 rmdir .tst 2>/dev/null
17494
17495 DEPDIR="${am__leading_dot}deps"
17496
17497 ac_config_commands="$ac_config_commands depdir"
17498
17499
17500 depcc="$CC" am_compiler_list=
17501
17502 am_depcomp=$ac_aux_dir/depcomp
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17504 $as_echo_n "checking dependency style of $depcc... " >&6; }
17505 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
17506 $as_echo_n "(cached) " >&6
17507 else
17508 if test -f "$am_depcomp"; then
17509 # We make a subdir and do the tests there. Otherwise we can end up
17510 # making bogus files that we don't know about and never remove. For
17511 # instance it was reported that on HP-UX the gcc test will end up
17512 # making a dummy file named `D' -- because `-MD' means `put the output
17513 # in D'.
17514 mkdir conftest.dir
17515 # Copy depcomp to subdir because otherwise we won't find it if we're
17516 # using a relative directory.
17517 cp "$am_depcomp" conftest.dir
17518 cd conftest.dir
17519 # We will build objects and dependencies in a subdirectory because
17520 # it helps to detect inapplicable dependency modes. For instance
17521 # both Tru64's cc and ICC support -MD to output dependencies as a
17522 # side effect of compilation, but ICC will put the dependencies in
17523 # the current directory while Tru64 will put them in the object
17524 # directory.
17525 mkdir sub
17526
17527 am_cv_CC_dependencies_compiler_type=none
17528 if test "$am_compiler_list" = ""; then
17529 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17530 fi
17531 for depmode in $am_compiler_list; do
17532 if test $depmode = none; then break; fi
17533
17534 $as_echo "$as_me:$LINENO: trying $depmode" >&5
17535 # Setup a source with many dependencies, because some compilers
17536 # like to wrap large dependency lists on column 80 (with \), and
17537 # we should not choose a depcomp mode which is confused by this.
17538 #
17539 # We need to recreate these files for each test, as the compiler may
17540 # overwrite some of them when testing with obscure command lines.
17541 # This happens at least with the AIX C compiler.
17542 : > sub/conftest.c
17543 for i in 1 2 3 4 5 6; do
17544 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17545 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17546 # Solaris 8's {/usr,}/bin/sh.
17547 touch sub/conftst$i.h
17548 done
17549 echo "include sub/conftest.Po" > confmf
17550
17551 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17552 # mode. It turns out that the SunPro C++ compiler does not properly
17553 # handle `-M -o', and we need to detect this.
17554 depcmd="depmode=$depmode \
17555 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
17556 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17557 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
17558 echo "| $depcmd" | sed -e 's/ */ /g' >&5
17559 if env $depcmd > conftest.err 2>&1 &&
17560 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
17561 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
17562 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
17563 # icc doesn't choke on unknown options, it will just issue warnings
17564 # or remarks (even with -Werror). So we grep stderr for any message
17565 # that says an option was ignored or not supported.
17566 # When given -MP, icc 7.0 and 7.1 complain thusly:
17567 # icc: Command line warning: ignoring option '-M'; no argument required
17568 # The diagnosis changed in icc 8.0:
17569 # icc: Command line remark: option '-MP' not supported
17570 if (grep 'ignoring option' conftest.err ||
17571 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17572 am_cv_CC_dependencies_compiler_type=$depmode
17573 $as_echo "$as_me:$LINENO: success" >&5
17574 break
17575 fi
17576 fi
17577 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
17578 sed -e 's/^/| /' < conftest.err >&5
17579 done
17580
17581 cd ..
17582 rm -rf conftest.dir
17583 else
17584 am_cv_CC_dependencies_compiler_type=none
17585 fi
17586
17587 fi
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17589 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17590 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
17591 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
17592 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17593
17594 fi
17595
17596
17597 # Since the first call to PKG_CHECK_MODULES may not happen (is guarded by
17598 # a condition), we must call PKG_PROG_PKG_CONFIG explicitly to probe for
17599 # pkg-config.
17600
17601
17602
17603
17604
17605
17606
17607 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17608 if test -n "$ac_tool_prefix"; then
17609 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17610 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17612 $as_echo_n "checking for $ac_word... " >&6; }
17613 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17614 $as_echo_n "(cached) " >&6
17615 else
17616 case $PKG_CONFIG in
17617 [\\/]* | ?:[\\/]*)
17618 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17619 ;;
17620 *)
17621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17622 for as_dir in $PATH
17623 do
17624 IFS=$as_save_IFS
17625 test -z "$as_dir" && as_dir=.
17626 for ac_exec_ext in '' $ac_executable_extensions; do
17627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17628 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17630 break 2
17631 fi
17632 done
17633 done
17634 IFS=$as_save_IFS
17635
17636 ;;
17637 esac
17638 fi
17639 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17640 if test -n "$PKG_CONFIG"; then
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17642 $as_echo "$PKG_CONFIG" >&6; }
17643 else
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17645 $as_echo "no" >&6; }
17646 fi
17647
17648
17649 fi
17650 if test -z "$ac_cv_path_PKG_CONFIG"; then
17651 ac_pt_PKG_CONFIG=$PKG_CONFIG
17652 # Extract the first word of "pkg-config", so it can be a program name with args.
17653 set dummy pkg-config; ac_word=$2
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17655 $as_echo_n "checking for $ac_word... " >&6; }
17656 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17657 $as_echo_n "(cached) " >&6
17658 else
17659 case $ac_pt_PKG_CONFIG in
17660 [\\/]* | ?:[\\/]*)
17661 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17662 ;;
17663 *)
17664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17665 for as_dir in $PATH
17666 do
17667 IFS=$as_save_IFS
17668 test -z "$as_dir" && as_dir=.
17669 for ac_exec_ext in '' $ac_executable_extensions; do
17670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17671 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17673 break 2
17674 fi
17675 done
17676 done
17677 IFS=$as_save_IFS
17678
17679 ;;
17680 esac
17681 fi
17682 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17683 if test -n "$ac_pt_PKG_CONFIG"; then
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17685 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17686 else
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17688 $as_echo "no" >&6; }
17689 fi
17690
17691 if test "x$ac_pt_PKG_CONFIG" = x; then
17692 PKG_CONFIG=""
17693 else
17694 case $cross_compiling:$ac_tool_warned in
17695 yes:)
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17698 ac_tool_warned=yes ;;
17699 esac
17700 PKG_CONFIG=$ac_pt_PKG_CONFIG
17701 fi
17702 else
17703 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17704 fi
17705
17706 fi
17707 if test -n "$PKG_CONFIG"; then
17708 _pkg_min_version=0.9.0
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17710 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17711 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17713 $as_echo "yes" >&6; }
17714 else
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17716 $as_echo "no" >&6; }
17717 PKG_CONFIG=""
17718 fi
17719 fi
17720
17721
17722 CONFIG_OBS=
17723 CONFIG_DEPS=
17724 CONFIG_SRCS=
17725 ENABLE_CFLAGS=
17726
17727 CONFIG_ALL=
17728 CONFIG_CLEAN=
17729 CONFIG_INSTALL=
17730 CONFIG_UNINSTALL=
17731
17732 # If we haven't got the data from the intl directory,
17733 # assume NLS is disabled.
17734 USE_NLS=no
17735 LIBINTL=
17736 LIBINTL_DEP=
17737 INCINTL=
17738 XGETTEXT=
17739 GMSGFMT=
17740 POSUB=
17741
17742 if test -f ../intl/config.intl; then
17743 . ../intl/config.intl
17744 fi
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17746 $as_echo_n "checking whether NLS is requested... " >&6; }
17747 if test x"$USE_NLS" != xyes; then
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17749 $as_echo "no" >&6; }
17750 else
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17752 $as_echo "yes" >&6; }
17753
17754 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17755
17756
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
17758 $as_echo_n "checking for catalogs to be installed... " >&6; }
17759 # Look for .po and .gmo files in the source directory.
17760 CATALOGS=
17761 XLINGUAS=
17762 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
17763 # If there aren't any .gmo files the shell will give us the
17764 # literal string "../path/to/srcdir/po/*.gmo" which has to be
17765 # weeded out.
17766 case "$cat" in *\**)
17767 continue;;
17768 esac
17769 # The quadruple backslash is collapsed to a double backslash
17770 # by the backticks, then collapsed again by the double quotes,
17771 # leaving us with one backslash in the sed expression (right
17772 # before the dot that mustn't act as a wildcard).
17773 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
17774 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
17775 # The user is allowed to set LINGUAS to a list of languages to
17776 # install catalogs for. If it's empty that means "all of them."
17777 if test "x$LINGUAS" = x; then
17778 CATALOGS="$CATALOGS $cat"
17779 XLINGUAS="$XLINGUAS $lang"
17780 else
17781 case "$LINGUAS" in *$lang*)
17782 CATALOGS="$CATALOGS $cat"
17783 XLINGUAS="$XLINGUAS $lang"
17784 ;;
17785 esac
17786 fi
17787 done
17788 LINGUAS="$XLINGUAS"
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
17790 $as_echo "$LINGUAS" >&6; }
17791
17792
17793 DATADIRNAME=share
17794
17795 INSTOBJEXT=.mo
17796
17797 GENCAT=gencat
17798
17799 CATOBJEXT=.gmo
17800
17801 fi
17802
17803 localedir='${datadir}/locale'
17804
17805
17806 if test x"$USE_NLS" = xyes; then
17807 CONFIG_ALL="$CONFIG_ALL all-po"
17808 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
17809 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
17810 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
17811 fi
17812
17813 PACKAGE=gdb
17814
17815 cat >>confdefs.h <<_ACEOF
17816 #define PACKAGE "$PACKAGE"
17817 _ACEOF
17818
17819
17820
17821 # We never need to detect it in this sub-configure.
17822 # But preserve it for config.status --recheck.
17823
17824
17825
17826 MAKEINFO_EXTRA_FLAGS=""
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
17828 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
17829 if ${gdb_cv_have_makeinfo_click+:} false; then :
17830 $as_echo_n "(cached) " >&6
17831 else
17832 echo '@clicksequence{a @click{} b}' >conftest.texinfo
17833 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
17834 gdb_cv_have_makeinfo_click=yes
17835 else
17836 gdb_cv_have_makeinfo_click=no
17837 fi
17838 fi
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
17840 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
17841 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
17842 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
17843 fi
17844
17845
17846
17847
17848 # Check whether --with-separate-debug-dir was given.
17849 if test "${with_separate_debug_dir+set}" = set; then :
17850 withval=$with_separate_debug_dir;
17851 DEBUGDIR=$withval
17852 else
17853 DEBUGDIR=${libdir}/debug
17854 fi
17855
17856
17857 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17858 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17859 ac_define_dir=`eval echo $DEBUGDIR`
17860 ac_define_dir=`eval echo $ac_define_dir`
17861
17862 cat >>confdefs.h <<_ACEOF
17863 #define DEBUGDIR "$ac_define_dir"
17864 _ACEOF
17865
17866
17867
17868
17869 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
17870 if test "x$prefix" = xNONE; then
17871 test_prefix=/usr/local
17872 else
17873 test_prefix=$prefix
17874 fi
17875 else
17876 test_prefix=$exec_prefix
17877 fi
17878 value=0
17879 case ${ac_define_dir} in
17880 "${test_prefix}"|"${test_prefix}/"*|\
17881 '${exec_prefix}'|'${exec_prefix}/'*)
17882 value=1
17883 ;;
17884 esac
17885
17886 cat >>confdefs.h <<_ACEOF
17887 #define DEBUGDIR_RELOCATABLE $value
17888 _ACEOF
17889
17890
17891
17892
17893
17894 # Check whether --with-additional-debug-dirs was given.
17895 if test "${with_additional_debug_dirs+set}" = set; then :
17896 withval=$with_additional_debug_dirs;
17897 cat >>confdefs.h <<_ACEOF
17898 #define ADDITIONAL_DEBUG_DIRS "${withval}"
17899 _ACEOF
17900
17901 fi
17902
17903
17904 # We can't pass paths as command line arguments.
17905 # Mingw32 tries to be clever and will convert the paths for us.
17906 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
17907 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
17908 # This breaks GDB's relocatable path conversions since paths passed in
17909 # config.h would not get so translated, the path prefixes no longer match.
17910
17911 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17912 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17913 ac_define_dir=`eval echo $bindir`
17914 ac_define_dir=`eval echo $ac_define_dir`
17915
17916 cat >>confdefs.h <<_ACEOF
17917 #define BINDIR "$ac_define_dir"
17918 _ACEOF
17919
17920
17921
17922 # GDB's datadir relocation
17923
17924
17925
17926 # Check whether --with-gdb-datadir was given.
17927 if test "${with_gdb_datadir+set}" = set; then :
17928 withval=$with_gdb_datadir;
17929 GDB_DATADIR=$withval
17930 else
17931 GDB_DATADIR=${datadir}/gdb
17932 fi
17933
17934
17935 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17936 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17937 ac_define_dir=`eval echo $GDB_DATADIR`
17938 ac_define_dir=`eval echo $ac_define_dir`
17939
17940 cat >>confdefs.h <<_ACEOF
17941 #define GDB_DATADIR "$ac_define_dir"
17942 _ACEOF
17943
17944
17945
17946
17947 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
17948 if test "x$prefix" = xNONE; then
17949 test_prefix=/usr/local
17950 else
17951 test_prefix=$prefix
17952 fi
17953 else
17954 test_prefix=$exec_prefix
17955 fi
17956 value=0
17957 case ${ac_define_dir} in
17958 "${test_prefix}"|"${test_prefix}/"*|\
17959 '${exec_prefix}'|'${exec_prefix}/'*)
17960 value=1
17961 ;;
17962 esac
17963
17964 cat >>confdefs.h <<_ACEOF
17965 #define GDB_DATADIR_RELOCATABLE $value
17966 _ACEOF
17967
17968
17969
17970
17971
17972 # Check whether --with-relocated-sources was given.
17973 if test "${with_relocated_sources+set}" = set; then :
17974 withval=$with_relocated_sources; reloc_srcdir="${withval}"
17975
17976 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17977 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17978 ac_define_dir=`eval echo $reloc_srcdir`
17979 ac_define_dir=`eval echo $ac_define_dir`
17980
17981 cat >>confdefs.h <<_ACEOF
17982 #define RELOC_SRCDIR "$ac_define_dir"
17983 _ACEOF
17984
17985
17986
17987 fi
17988
17989
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
17991 $as_echo_n "checking for default auto-load directory... " >&6; }
17992
17993 # Check whether --with-auto-load-dir was given.
17994 if test "${with_auto_load_dir+set}" = set; then :
17995 withval=$with_auto_load_dir;
17996 else
17997 with_auto_load_dir='$debugdir:$datadir/auto-load'
17998 fi
17999
18000 escape_dir=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
18001
18002 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
18003 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18004 ac_define_dir=`eval echo $escape_dir`
18005 ac_define_dir=`eval echo $ac_define_dir`
18006
18007 cat >>confdefs.h <<_ACEOF
18008 #define AUTO_LOAD_DIR "$ac_define_dir"
18009 _ACEOF
18010
18011
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
18013 $as_echo "$with_auto_load_dir" >&6; }
18014
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
18016 $as_echo_n "checking for default auto-load safe-path... " >&6; }
18017
18018 # Check whether --with-auto-load-safe-path was given.
18019 if test "${with_auto_load_safe_path+set}" = set; then :
18020 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
18021 with_auto_load_safe_path="/"
18022 fi
18023 else
18024 with_auto_load_safe_path="$with_auto_load_dir"
18025 fi
18026
18027 escape_dir=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
18028
18029 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
18030 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18031 ac_define_dir=`eval echo $escape_dir`
18032 ac_define_dir=`eval echo $ac_define_dir`
18033
18034 cat >>confdefs.h <<_ACEOF
18035 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
18036 _ACEOF
18037
18038
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
18040 $as_echo "$with_auto_load_safe_path" >&6; }
18041
18042
18043
18044 subdirs="$subdirs testsuite"
18045
18046
18047 # Check whether to support alternative target configurations
18048 # Check whether --enable-targets was given.
18049 if test "${enable_targets+set}" = set; then :
18050 enableval=$enable_targets; case "${enableval}" in
18051 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
18052 ;;
18053 no) enable_targets= ;;
18054 *) enable_targets=$enableval ;;
18055 esac
18056 fi
18057
18058
18059 # Check whether --enable-64-bit-bfd was given.
18060 if test "${enable_64_bit_bfd+set}" = set; then :
18061 enableval=$enable_64_bit_bfd; case $enableval in #(
18062 yes|no) :
18063 ;; #(
18064 *) :
18065 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
18066 *) :
18067 ;;
18068 esac
18069 else
18070 enable_64_bit_bfd=no
18071 fi
18072
18073
18074 if test "x$enable_64_bit_bfd" = "xno"; then :
18075 # The cast to long int works around a bug in the HP C Compiler
18076 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18077 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18078 # This bug is HP SR number 8606223364.
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
18080 $as_echo_n "checking size of void *... " >&6; }
18081 if ${ac_cv_sizeof_void_p+:} false; then :
18082 $as_echo_n "(cached) " >&6
18083 else
18084 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
18085
18086 else
18087 if test "$ac_cv_type_void_p" = yes; then
18088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18090 as_fn_error 77 "cannot compute sizeof (void *)
18091 See \`config.log' for more details" "$LINENO" 5; }
18092 else
18093 ac_cv_sizeof_void_p=0
18094 fi
18095 fi
18096
18097 fi
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
18099 $as_echo "$ac_cv_sizeof_void_p" >&6; }
18100
18101
18102
18103 cat >>confdefs.h <<_ACEOF
18104 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18105 _ACEOF
18106
18107
18108 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
18109 enable_64_bit_bfd=yes
18110 fi
18111
18112 fi
18113
18114 if test "x$enable_64_bit_bfd" = "xyes"; then
18115 ENABLE_BFD_64_BIT_TRUE=
18116 ENABLE_BFD_64_BIT_FALSE='#'
18117 else
18118 ENABLE_BFD_64_BIT_TRUE='#'
18119 ENABLE_BFD_64_BIT_FALSE=
18120 fi
18121
18122
18123
18124 # Provide defaults for some variables set by the per-host and per-target
18125 # configuration.
18126 gdb_host_obs=posix-hdep.o
18127
18128 if test "${target}" = "${host}"; then
18129 gdb_native=yes
18130 else
18131 gdb_native=no
18132 fi
18133
18134 . $srcdir/configure.host
18135
18136 # Accumulate some settings from configure.tgt over all enabled targets
18137
18138 TARGET_OBS=
18139 all_targets=
18140 HAVE_NATIVE_GCORE_TARGET=
18141
18142 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
18143 do
18144 if test "$targ_alias" = "all"; then
18145 all_targets=true
18146 else
18147 # Canonicalize the secondary target names.
18148 result=`$ac_config_sub $targ_alias 2>/dev/null`
18149 if test -n "$result"; then
18150 targ=$result
18151 else
18152 targ=$targ_alias
18153 fi
18154
18155 . ${srcdir}/configure.tgt
18156
18157 if test -z "${gdb_target_obs}"; then :
18158 as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5
18159 fi
18160
18161 # Target-specific object files
18162 for i in ${gdb_target_obs}; do
18163 case " $TARGET_OBS " in
18164 *" ${i} "*) ;;
18165 *)
18166 TARGET_OBS="$TARGET_OBS ${i}"
18167 ;;
18168 esac
18169 done
18170
18171 # Check whether this target needs 64-bit CORE_ADDR
18172 if test x${enable_64_bit_bfd} = xno; then
18173 . ${srcdir}/../bfd/config.bfd
18174 fi
18175
18176 # Check whether this target is native and supports gcore.
18177 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
18178 && $gdb_have_gcore; then
18179 HAVE_NATIVE_GCORE_TARGET=1
18180 fi
18181 fi
18182 done
18183
18184 if test x${all_targets} = xtrue; then
18185 if test x${enable_64_bit_bfd} = xyes; then
18186 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
18187 else
18188 TARGET_OBS='$(ALL_TARGET_OBS)'
18189 fi
18190 fi
18191
18192 # AMD debugger API support.
18193
18194
18195 # Check whether --with-amd-dbgapi was given.
18196 if test "${with_amd_dbgapi+set}" = set; then :
18197 withval=$with_amd_dbgapi;
18198 case $withval in
18199 yes | no | auto)
18200 ;;
18201 *)
18202 as_fn_error $? "bad value $withval for --with-amd-dbgapi" "$LINENO" 5
18203 ;;
18204 esac
18205
18206 else
18207 with_amd_dbgapi=auto
18208 fi
18209
18210
18211 # If the user passes --without-amd-dbgapi but also explicitly enables a target
18212 # that requires amd-dbgapi, it is an error.
18213 if test "$with_amd_dbgapi" = no -a "$gdb_require_amd_dbgapi" = true; then
18214 as_fn_error $? "an explicitly enabled target requires amd-dbgapi, but amd-dbgapi is explicitly disabled" "$LINENO" 5
18215 fi
18216
18217 # Look for amd-dbgapi if:
18218 #
18219 # - a target architecture requiring it has explicitly been enabled, or
18220 # - --enable-targets=all was provided and the user did not explicitly disable
18221 # amd-dbgapi support
18222 if test "$gdb_require_amd_dbgapi" = true \
18223 -o \( "$all_targets" = true -a "$with_amd_dbgapi" != no \); then
18224 # amd-dbgapi version 0.68 is part of ROCm 5.4. There is no guarantee of API
18225 # stability until amd-dbgapi hits 1.0, but for convenience, still check for
18226 # greater or equal that version. It can be handy when testing with a newer
18227 # version of the library.
18228
18229 pkg_failed=no
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amd-dbgapi >= 0.68.0" >&5
18231 $as_echo_n "checking for amd-dbgapi >= 0.68.0... " >&6; }
18232
18233 if test -n "$AMD_DBGAPI_CFLAGS"; then
18234 pkg_cv_AMD_DBGAPI_CFLAGS="$AMD_DBGAPI_CFLAGS"
18235 elif test -n "$PKG_CONFIG"; then
18236 if test -n "$PKG_CONFIG" && \
18237 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.68.0\""; } >&5
18238 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.68.0") 2>&5
18239 ac_status=$?
18240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18241 test $ac_status = 0; }; then
18242 pkg_cv_AMD_DBGAPI_CFLAGS=`$PKG_CONFIG --cflags "amd-dbgapi >= 0.68.0" 2>/dev/null`
18243 test "x$?" != "x0" && pkg_failed=yes
18244 else
18245 pkg_failed=yes
18246 fi
18247 else
18248 pkg_failed=untried
18249 fi
18250 if test -n "$AMD_DBGAPI_LIBS"; then
18251 pkg_cv_AMD_DBGAPI_LIBS="$AMD_DBGAPI_LIBS"
18252 elif test -n "$PKG_CONFIG"; then
18253 if test -n "$PKG_CONFIG" && \
18254 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.68.0\""; } >&5
18255 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.68.0") 2>&5
18256 ac_status=$?
18257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18258 test $ac_status = 0; }; then
18259 pkg_cv_AMD_DBGAPI_LIBS=`$PKG_CONFIG --libs "amd-dbgapi >= 0.68.0" 2>/dev/null`
18260 test "x$?" != "x0" && pkg_failed=yes
18261 else
18262 pkg_failed=yes
18263 fi
18264 else
18265 pkg_failed=untried
18266 fi
18267
18268 if test $pkg_failed = no; then
18269 pkg_save_LDFLAGS="$LDFLAGS"
18270 LDFLAGS="$LDFLAGS $pkg_cv_AMD_DBGAPI_LIBS"
18271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18272 /* end confdefs.h. */
18273
18274 int
18275 main ()
18276 {
18277
18278 ;
18279 return 0;
18280 }
18281 _ACEOF
18282 if ac_fn_c_try_link "$LINENO"; then :
18283
18284 else
18285 pkg_failed=yes
18286 fi
18287 rm -f core conftest.err conftest.$ac_objext \
18288 conftest$ac_exeext conftest.$ac_ext
18289 LDFLAGS=$pkg_save_LDFLAGS
18290 fi
18291
18292
18293
18294 if test $pkg_failed = yes; then
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18296 $as_echo "no" >&6; }
18297
18298 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18299 _pkg_short_errors_supported=yes
18300 else
18301 _pkg_short_errors_supported=no
18302 fi
18303 if test $_pkg_short_errors_supported = yes; then
18304 AMD_DBGAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "amd-dbgapi >= 0.68.0" 2>&1`
18305 else
18306 AMD_DBGAPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "amd-dbgapi >= 0.68.0" 2>&1`
18307 fi
18308 # Put the nasty error message in config.log where it belongs
18309 echo "$AMD_DBGAPI_PKG_ERRORS" >&5
18310
18311 has_amd_dbgapi=no
18312 elif test $pkg_failed = untried; then
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18314 $as_echo "no" >&6; }
18315 has_amd_dbgapi=no
18316 else
18317 AMD_DBGAPI_CFLAGS=$pkg_cv_AMD_DBGAPI_CFLAGS
18318 AMD_DBGAPI_LIBS=$pkg_cv_AMD_DBGAPI_LIBS
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18320 $as_echo "yes" >&6; }
18321 has_amd_dbgapi=yes
18322 fi
18323
18324 if test "$has_amd_dbgapi" = "yes"; then
18325
18326 $as_echo "#define HAVE_AMD_DBGAPI 1" >>confdefs.h
18327
18328 TARGET_OBS="$TARGET_OBS amd-dbgapi-target.o"
18329
18330 # If --enable-targets=all was provided, use the list of all files depending
18331 # on amd-dbgapi that is hardcoded in the Makefile. Else, the appropriate
18332 # architecture entry in configure.tgt will have added the files to
18333 # gdb_target_obs.
18334 if test "$all_targets" = true; then
18335 TARGET_OBS="$TARGET_OBS \$(ALL_AMD_DBGAPI_TARGET_OBS)"
18336 fi
18337 elif test "$gdb_require_amd_dbgapi" = true -o "$with_amd_dbgapi" = yes; then
18338 # amd-dbgapi was not found and...
18339 #
18340 # - a target requiring it was explicitly enabled, or
18341 # - the user explicitly wants to enable amd-dbgapi
18342 as_fn_error $? "amd-dbgapi is required, but cannot find an appropriate version: $AMD_DBGAPI_PKG_ERRORS" "$LINENO" 5
18343 fi
18344 fi
18345
18346
18347
18348
18349 # For other settings, only the main target counts.
18350 gdb_sim=
18351 gdb_osabi=
18352 targ=$target; . ${srcdir}/configure.tgt
18353
18354 # Fetch the default architecture and default target vector from BFD.
18355 targ=$target; . $srcdir/../bfd/config.bfd
18356
18357 # We only want the first architecture, so strip off the others if
18358 # there is more than one.
18359 targ_archs=`echo $targ_archs | sed 's/ .*//'`
18360
18361 if test "x$targ_archs" != x; then
18362
18363 cat >>confdefs.h <<_ACEOF
18364 #define DEFAULT_BFD_ARCH $targ_archs
18365 _ACEOF
18366
18367 fi
18368 if test "x$targ_defvec" != x; then
18369
18370 cat >>confdefs.h <<_ACEOF
18371 #define DEFAULT_BFD_VEC $targ_defvec
18372 _ACEOF
18373
18374 fi
18375
18376 # Enable TUI.
18377 # Check whether --enable-tui was given.
18378 if test "${enable_tui+set}" = set; then :
18379 enableval=$enable_tui;
18380 case $enableval in
18381 yes | no | auto)
18382 ;;
18383 *)
18384 as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5
18385 ;;
18386 esac
18387
18388 else
18389 enable_tui=auto
18390 fi
18391
18392
18393 # Enable gdbtk.
18394 # Check whether --enable-gdbtk was given.
18395 if test "${enable_gdbtk+set}" = set; then :
18396 enableval=$enable_gdbtk;
18397 case $enableval in
18398 yes | no)
18399 ;;
18400 *)
18401 as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5
18402 ;;
18403 esac
18404
18405 else
18406 if test -d "$srcdir/gdbtk"; then
18407 enable_gdbtk=yes
18408 else
18409 enable_gdbtk=no
18410 fi
18411 fi
18412
18413 # We unconditionally disable gdbtk tests on selected platforms.
18414 case $host_os in
18415 go32* | windows*)
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
18417 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
18418 enable_gdbtk=no ;;
18419 esac
18420
18421 # Handle optional debuginfod support
18422
18423 # Handle optional debuginfod support as well as optional section
18424 # downloading support.
18425 #
18426 # Define HAVE_LIBDEBUGINFOD if libdebuginfod is found with version >= 0.179.
18427 #
18428 # Define HAVE_LIBDEBUGINFOD_FIND_SECTION if libdebuginfod is found with
18429 # version >= 0.188.
18430
18431 # Check whether --with-debuginfod was given.
18432 if test "${with_debuginfod+set}" = set; then :
18433 withval=$with_debuginfod;
18434 else
18435 with_debuginfod=auto
18436 fi
18437
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
18439 $as_echo_n "checking whether to use debuginfod... " >&6; }
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
18441 $as_echo "$with_debuginfod" >&6; }
18442
18443 if test "x$with_debuginfod" != xno; then
18444
18445 pkg_failed=no
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.188" >&5
18447 $as_echo_n "checking for libdebuginfod >= 0.188... " >&6; }
18448
18449 if test -n "$DEBUGINFOD_CFLAGS"; then
18450 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
18451 elif test -n "$PKG_CONFIG"; then
18452 if test -n "$PKG_CONFIG" && \
18453 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
18454 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
18455 ac_status=$?
18456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18457 test $ac_status = 0; }; then
18458 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.188" 2>/dev/null`
18459 test "x$?" != "x0" && pkg_failed=yes
18460 else
18461 pkg_failed=yes
18462 fi
18463 else
18464 pkg_failed=untried
18465 fi
18466 if test -n "$DEBUGINFOD_LIBS"; then
18467 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
18468 elif test -n "$PKG_CONFIG"; then
18469 if test -n "$PKG_CONFIG" && \
18470 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
18471 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
18472 ac_status=$?
18473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18474 test $ac_status = 0; }; then
18475 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.188" 2>/dev/null`
18476 test "x$?" != "x0" && pkg_failed=yes
18477 else
18478 pkg_failed=yes
18479 fi
18480 else
18481 pkg_failed=untried
18482 fi
18483
18484 if test $pkg_failed = no; then
18485 pkg_save_LDFLAGS="$LDFLAGS"
18486 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
18487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18488 /* end confdefs.h. */
18489
18490 int
18491 main ()
18492 {
18493
18494 ;
18495 return 0;
18496 }
18497 _ACEOF
18498 if ac_fn_c_try_link "$LINENO"; then :
18499
18500 else
18501 pkg_failed=yes
18502 fi
18503 rm -f core conftest.err conftest.$ac_objext \
18504 conftest$ac_exeext conftest.$ac_ext
18505 LDFLAGS=$pkg_save_LDFLAGS
18506 fi
18507
18508
18509
18510 if test $pkg_failed = yes; then
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18512 $as_echo "no" >&6; }
18513
18514 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18515 _pkg_short_errors_supported=yes
18516 else
18517 _pkg_short_errors_supported=no
18518 fi
18519 if test $_pkg_short_errors_supported = yes; then
18520 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
18521 else
18522 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
18523 fi
18524 # Put the nasty error message in config.log where it belongs
18525 echo "$DEBUGINFOD_PKG_ERRORS" >&5
18526
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
18528 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
18529 elif test $pkg_failed = untried; then
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18531 $as_echo "no" >&6; }
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
18533 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
18534 else
18535 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
18536 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18538 $as_echo "yes" >&6; }
18539
18540 $as_echo "#define HAVE_LIBDEBUGINFOD_FIND_SECTION 1" >>confdefs.h
18541
18542 fi
18543
18544
18545 pkg_failed=no
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
18547 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
18548
18549 if test -n "$DEBUGINFOD_CFLAGS"; then
18550 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
18551 elif test -n "$PKG_CONFIG"; then
18552 if test -n "$PKG_CONFIG" && \
18553 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
18554 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
18555 ac_status=$?
18556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18557 test $ac_status = 0; }; then
18558 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
18559 test "x$?" != "x0" && pkg_failed=yes
18560 else
18561 pkg_failed=yes
18562 fi
18563 else
18564 pkg_failed=untried
18565 fi
18566 if test -n "$DEBUGINFOD_LIBS"; then
18567 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
18568 elif test -n "$PKG_CONFIG"; then
18569 if test -n "$PKG_CONFIG" && \
18570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
18571 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
18572 ac_status=$?
18573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18574 test $ac_status = 0; }; then
18575 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
18576 test "x$?" != "x0" && pkg_failed=yes
18577 else
18578 pkg_failed=yes
18579 fi
18580 else
18581 pkg_failed=untried
18582 fi
18583
18584 if test $pkg_failed = no; then
18585 pkg_save_LDFLAGS="$LDFLAGS"
18586 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
18587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588 /* end confdefs.h. */
18589
18590 int
18591 main ()
18592 {
18593
18594 ;
18595 return 0;
18596 }
18597 _ACEOF
18598 if ac_fn_c_try_link "$LINENO"; then :
18599
18600 else
18601 pkg_failed=yes
18602 fi
18603 rm -f core conftest.err conftest.$ac_objext \
18604 conftest$ac_exeext conftest.$ac_ext
18605 LDFLAGS=$pkg_save_LDFLAGS
18606 fi
18607
18608
18609
18610 if test $pkg_failed = yes; then
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18612 $as_echo "no" >&6; }
18613
18614 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18615 _pkg_short_errors_supported=yes
18616 else
18617 _pkg_short_errors_supported=no
18618 fi
18619 if test $_pkg_short_errors_supported = yes; then
18620 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
18621 else
18622 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
18623 fi
18624 # Put the nasty error message in config.log where it belongs
18625 echo "$DEBUGINFOD_PKG_ERRORS" >&5
18626
18627 if test "x$with_debuginfod" = xyes; then
18628 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
18629 else
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
18631 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
18632 fi
18633 elif test $pkg_failed = untried; then
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18635 $as_echo "no" >&6; }
18636 if test "x$with_debuginfod" = xyes; then
18637 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
18638 else
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
18640 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
18641 fi
18642 else
18643 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
18644 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18646 $as_echo "yes" >&6; }
18647
18648 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
18649
18650 fi
18651 else
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
18653 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
18654 fi
18655
18656
18657 # Libunwind support for ia64.
18658
18659 # Check whether --with-libunwind-ia64 was given.
18660 if test "${with_libunwind_ia64+set}" = set; then :
18661 withval=$with_libunwind_ia64;
18662 else
18663 with_libunwind_ia64=auto
18664 fi
18665
18666
18667 # Backward compatibility option.
18668 if test "${with_libunwind+set}" = set; then
18669 if test x"$with_libunwind_ia64" != xauto; then
18670 as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
18671 fi
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
18673 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
18674 with_libunwind_ia64="$with_libunwind"
18675 fi
18676
18677 case "$with_libunwind_ia64" in
18678 yes | no)
18679 ;;
18680 auto)
18681 for ac_header in libunwind-ia64.h
18682 do :
18683 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
18684 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
18685 cat >>confdefs.h <<_ACEOF
18686 #define HAVE_LIBUNWIND_IA64_H 1
18687 _ACEOF
18688
18689 fi
18690
18691 done
18692
18693 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
18694 ;;
18695 *)
18696 as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
18697 ;;
18698 esac
18699
18700 if test x"$with_libunwind_ia64" = xyes; then
18701 for ac_header in libunwind-ia64.h
18702 do :
18703 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
18704 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
18705 cat >>confdefs.h <<_ACEOF
18706 #define HAVE_LIBUNWIND_IA64_H 1
18707 _ACEOF
18708
18709 fi
18710
18711 done
18712
18713 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
18714 as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
18715 fi
18716 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
18717 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
18718 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
18719 fi
18720
18721 opt_curses=no
18722
18723 # Check whether --with-curses was given.
18724 if test "${with_curses+set}" = set; then :
18725 withval=$with_curses; opt_curses=$withval
18726 fi
18727
18728
18729 prefer_curses=no
18730 if test "$opt_curses" = "yes"; then
18731 prefer_curses=yes
18732 fi
18733
18734 # Profiling support.
18735 # Check whether --enable-profiling was given.
18736 if test "${enable_profiling+set}" = set; then :
18737 enableval=$enable_profiling;
18738 case $enableval in
18739 yes | no)
18740 ;;
18741 *)
18742 as_fn_error $? "bad value $enableval for --enable-profiling" "$LINENO" 5
18743 ;;
18744 esac
18745
18746 else
18747 enable_profiling=no
18748 fi
18749
18750
18751 for ac_func in monstartup _mcleanup
18752 do :
18753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18754 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18755 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18756 cat >>confdefs.h <<_ACEOF
18757 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18758 _ACEOF
18759
18760 fi
18761 done
18762
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
18764 $as_echo_n "checking for _etext... " >&6; }
18765 if ${ac_cv_var__etext+:} false; then :
18766 $as_echo_n "(cached) " >&6
18767 else
18768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h. */
18770 #include <stdlib.h>
18771 extern char _etext;
18772 int
18773 main ()
18774 {
18775 free (&_etext);
18776
18777 ;
18778 return 0;
18779 }
18780 _ACEOF
18781 if ac_fn_c_try_link "$LINENO"; then :
18782 ac_cv_var__etext=yes
18783 else
18784 ac_cv_var__etext=no
18785
18786 fi
18787 rm -f core conftest.err conftest.$ac_objext \
18788 conftest$ac_exeext conftest.$ac_ext
18789
18790 fi
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
18792 $as_echo "$ac_cv_var__etext" >&6; }
18793 if test "$ac_cv_var__etext" = yes; then
18794
18795 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
18796
18797 fi
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
18799 $as_echo_n "checking for etext... " >&6; }
18800 if ${ac_cv_var_etext+:} false; then :
18801 $as_echo_n "(cached) " >&6
18802 else
18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h. */
18805 #include <stdlib.h>
18806 extern char etext;
18807 int
18808 main ()
18809 {
18810 free (&etext);
18811
18812 ;
18813 return 0;
18814 }
18815 _ACEOF
18816 if ac_fn_c_try_link "$LINENO"; then :
18817 ac_cv_var_etext=yes
18818 else
18819 ac_cv_var_etext=no
18820
18821 fi
18822 rm -f core conftest.err conftest.$ac_objext \
18823 conftest$ac_exeext conftest.$ac_ext
18824
18825 fi
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
18827 $as_echo "$ac_cv_var_etext" >&6; }
18828 if test "$ac_cv_var_etext" = yes; then
18829
18830 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
18831
18832 fi
18833 if test "$enable_profiling" = yes ; then
18834 if test "$ac_cv_func_monstartup" = no || test "$ac_cv_func__mcleanup" = no; then
18835 as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
18836 fi
18837 PROFILE_CFLAGS=-pg
18838 OLD_CFLAGS="$CFLAGS"
18839 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
18840
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
18842 $as_echo_n "checking whether $CC supports -pg... " >&6; }
18843 if ${ac_cv_cc_supports_pg+:} false; then :
18844 $as_echo_n "(cached) " >&6
18845 else
18846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18847 /* end confdefs.h. */
18848
18849 int
18850 main ()
18851 {
18852 int x;
18853 ;
18854 return 0;
18855 }
18856 _ACEOF
18857 if ac_fn_c_try_compile "$LINENO"; then :
18858 ac_cv_cc_supports_pg=yes
18859 else
18860 ac_cv_cc_supports_pg=no
18861
18862 fi
18863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18864
18865 fi
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
18867 $as_echo "$ac_cv_cc_supports_pg" >&6; }
18868
18869 if test "$ac_cv_cc_supports_pg" = no; then
18870 as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
18871 fi
18872
18873 CFLAGS="$OLD_CFLAGS"
18874 fi
18875
18876 CODESIGN_CERT=
18877 # Check whether --enable-codesign was given.
18878 if test "${enable_codesign+set}" = set; then :
18879 enableval=$enable_codesign; CODESIGN_CERT=$enableval
18880 fi
18881
18882
18883
18884
18885
18886 # Check whether --with-pkgversion was given.
18887 if test "${with_pkgversion+set}" = set; then :
18888 withval=$with_pkgversion; case "$withval" in
18889 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
18890 no) PKGVERSION= ;;
18891 *) PKGVERSION="($withval) " ;;
18892 esac
18893 else
18894 PKGVERSION="(GDB) "
18895
18896 fi
18897
18898
18899
18900
18901
18902 # Check whether --with-bugurl was given.
18903 if test "${with_bugurl+set}" = set; then :
18904 withval=$with_bugurl; case "$withval" in
18905 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
18906 no) BUGURL=
18907 ;;
18908 *) BUGURL="$withval"
18909 ;;
18910 esac
18911 else
18912 BUGURL="https://www.gnu.org/software/gdb/bugs/"
18913
18914 fi
18915
18916 case ${BUGURL} in
18917 "")
18918 REPORT_BUGS_TO=
18919 REPORT_BUGS_TEXI=
18920 ;;
18921 *)
18922 REPORT_BUGS_TO="<$BUGURL>"
18923 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
18924 ;;
18925 esac;
18926
18927
18928
18929
18930 cat >>confdefs.h <<_ACEOF
18931 #define PKGVERSION "$PKGVERSION"
18932 _ACEOF
18933
18934
18935 cat >>confdefs.h <<_ACEOF
18936 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
18937 _ACEOF
18938
18939
18940 # --------------------- #
18941 # Checks for programs. #
18942 # --------------------- #
18943
18944 for ac_prog in gawk mawk nawk awk
18945 do
18946 # Extract the first word of "$ac_prog", so it can be a program name with args.
18947 set dummy $ac_prog; ac_word=$2
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18949 $as_echo_n "checking for $ac_word... " >&6; }
18950 if ${ac_cv_prog_AWK+:} false; then :
18951 $as_echo_n "(cached) " >&6
18952 else
18953 if test -n "$AWK"; then
18954 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18955 else
18956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18957 for as_dir in $PATH
18958 do
18959 IFS=$as_save_IFS
18960 test -z "$as_dir" && as_dir=.
18961 for ac_exec_ext in '' $ac_executable_extensions; do
18962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18963 ac_cv_prog_AWK="$ac_prog"
18964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18965 break 2
18966 fi
18967 done
18968 done
18969 IFS=$as_save_IFS
18970
18971 fi
18972 fi
18973 AWK=$ac_cv_prog_AWK
18974 if test -n "$AWK"; then
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18976 $as_echo "$AWK" >&6; }
18977 else
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18979 $as_echo "no" >&6; }
18980 fi
18981
18982
18983 test -n "$AWK" && break
18984 done
18985
18986 # Find a good install program. We prefer a C program (faster),
18987 # so one script is as good as another. But avoid the broken or
18988 # incompatible versions:
18989 # SysV /etc/install, /usr/sbin/install
18990 # SunOS /usr/etc/install
18991 # IRIX /sbin/install
18992 # AIX /bin/install
18993 # AmigaOS /C/install, which installs bootblocks on floppy discs
18994 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18995 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18996 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18997 # OS/2's system install, which has a completely different semantic
18998 # ./install, which can be erroneously created by make from ./install.sh.
18999 # Reject install programs that cannot install multiple files.
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
19001 $as_echo_n "checking for a BSD-compatible install... " >&6; }
19002 if test -z "$INSTALL"; then
19003 if ${ac_cv_path_install+:} false; then :
19004 $as_echo_n "(cached) " >&6
19005 else
19006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19007 for as_dir in $PATH
19008 do
19009 IFS=$as_save_IFS
19010 test -z "$as_dir" && as_dir=.
19011 # Account for people who put trailing slashes in PATH elements.
19012 case $as_dir/ in #((
19013 ./ | .// | /[cC]/* | \
19014 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19015 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
19016 /usr/ucb/* ) ;;
19017 *)
19018 # OSF1 and SCO ODT 3.0 have their own names for install.
19019 # Don't use installbsd from OSF since it installs stuff as root
19020 # by default.
19021 for ac_prog in ginstall scoinst install; do
19022 for ac_exec_ext in '' $ac_executable_extensions; do
19023 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19024 if test $ac_prog = install &&
19025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19026 # AIX install. It has an incompatible calling convention.
19027 :
19028 elif test $ac_prog = install &&
19029 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19030 # program-specific install script used by HP pwplus--don't use.
19031 :
19032 else
19033 rm -rf conftest.one conftest.two conftest.dir
19034 echo one > conftest.one
19035 echo two > conftest.two
19036 mkdir conftest.dir
19037 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
19038 test -s conftest.one && test -s conftest.two &&
19039 test -s conftest.dir/conftest.one &&
19040 test -s conftest.dir/conftest.two
19041 then
19042 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19043 break 3
19044 fi
19045 fi
19046 fi
19047 done
19048 done
19049 ;;
19050 esac
19051
19052 done
19053 IFS=$as_save_IFS
19054
19055 rm -rf conftest.one conftest.two conftest.dir
19056
19057 fi
19058 if test "${ac_cv_path_install+set}" = set; then
19059 INSTALL=$ac_cv_path_install
19060 else
19061 # As a last resort, use the slow shell script. Don't cache a
19062 # value for INSTALL within a source directory, because that will
19063 # break other packages using the cache if that directory is
19064 # removed, or if the value is a relative name.
19065 INSTALL=$ac_install_sh
19066 fi
19067 fi
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
19069 $as_echo "$INSTALL" >&6; }
19070
19071 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19072 # It thinks the first close brace ends the variable substitution.
19073 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19074
19075 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19076
19077 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19078
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19080 $as_echo_n "checking whether ln -s works... " >&6; }
19081 LN_S=$as_ln_s
19082 if test "$LN_S" = "ln -s"; then
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19084 $as_echo "yes" >&6; }
19085 else
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19087 $as_echo "no, using $LN_S" >&6; }
19088 fi
19089
19090 if test -n "$ac_tool_prefix"; then
19091 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19092 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19094 $as_echo_n "checking for $ac_word... " >&6; }
19095 if ${ac_cv_prog_RANLIB+:} false; then :
19096 $as_echo_n "(cached) " >&6
19097 else
19098 if test -n "$RANLIB"; then
19099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19100 else
19101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19102 for as_dir in $PATH
19103 do
19104 IFS=$as_save_IFS
19105 test -z "$as_dir" && as_dir=.
19106 for ac_exec_ext in '' $ac_executable_extensions; do
19107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19108 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19110 break 2
19111 fi
19112 done
19113 done
19114 IFS=$as_save_IFS
19115
19116 fi
19117 fi
19118 RANLIB=$ac_cv_prog_RANLIB
19119 if test -n "$RANLIB"; then
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19121 $as_echo "$RANLIB" >&6; }
19122 else
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19124 $as_echo "no" >&6; }
19125 fi
19126
19127
19128 fi
19129 if test -z "$ac_cv_prog_RANLIB"; then
19130 ac_ct_RANLIB=$RANLIB
19131 # Extract the first word of "ranlib", so it can be a program name with args.
19132 set dummy ranlib; ac_word=$2
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19134 $as_echo_n "checking for $ac_word... " >&6; }
19135 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19136 $as_echo_n "(cached) " >&6
19137 else
19138 if test -n "$ac_ct_RANLIB"; then
19139 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19140 else
19141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19142 for as_dir in $PATH
19143 do
19144 IFS=$as_save_IFS
19145 test -z "$as_dir" && as_dir=.
19146 for ac_exec_ext in '' $ac_executable_extensions; do
19147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19148 ac_cv_prog_ac_ct_RANLIB="ranlib"
19149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19150 break 2
19151 fi
19152 done
19153 done
19154 IFS=$as_save_IFS
19155
19156 fi
19157 fi
19158 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19159 if test -n "$ac_ct_RANLIB"; then
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19161 $as_echo "$ac_ct_RANLIB" >&6; }
19162 else
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19164 $as_echo "no" >&6; }
19165 fi
19166
19167 if test "x$ac_ct_RANLIB" = x; then
19168 RANLIB=":"
19169 else
19170 case $cross_compiling:$ac_tool_warned in
19171 yes:)
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19174 ac_tool_warned=yes ;;
19175 esac
19176 RANLIB=$ac_ct_RANLIB
19177 fi
19178 else
19179 RANLIB="$ac_cv_prog_RANLIB"
19180 fi
19181
19182 for ac_prog in 'bison -y' byacc
19183 do
19184 # Extract the first word of "$ac_prog", so it can be a program name with args.
19185 set dummy $ac_prog; ac_word=$2
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19187 $as_echo_n "checking for $ac_word... " >&6; }
19188 if ${ac_cv_prog_YACC+:} false; then :
19189 $as_echo_n "(cached) " >&6
19190 else
19191 if test -n "$YACC"; then
19192 ac_cv_prog_YACC="$YACC" # Let the user override the test.
19193 else
19194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19195 for as_dir in $PATH
19196 do
19197 IFS=$as_save_IFS
19198 test -z "$as_dir" && as_dir=.
19199 for ac_exec_ext in '' $ac_executable_extensions; do
19200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19201 ac_cv_prog_YACC="$ac_prog"
19202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19203 break 2
19204 fi
19205 done
19206 done
19207 IFS=$as_save_IFS
19208
19209 fi
19210 fi
19211 YACC=$ac_cv_prog_YACC
19212 if test -n "$YACC"; then
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
19214 $as_echo "$YACC" >&6; }
19215 else
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19217 $as_echo "no" >&6; }
19218 fi
19219
19220
19221 test -n "$YACC" && break
19222 done
19223 test -n "$YACC" || YACC="yacc"
19224
19225
19226 if test -n "$ac_tool_prefix"; then
19227 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19228 set dummy ${ac_tool_prefix}ar; ac_word=$2
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19230 $as_echo_n "checking for $ac_word... " >&6; }
19231 if ${ac_cv_prog_AR+:} false; then :
19232 $as_echo_n "(cached) " >&6
19233 else
19234 if test -n "$AR"; then
19235 ac_cv_prog_AR="$AR" # Let the user override the test.
19236 else
19237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19238 for as_dir in $PATH
19239 do
19240 IFS=$as_save_IFS
19241 test -z "$as_dir" && as_dir=.
19242 for ac_exec_ext in '' $ac_executable_extensions; do
19243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19244 ac_cv_prog_AR="${ac_tool_prefix}ar"
19245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19246 break 2
19247 fi
19248 done
19249 done
19250 IFS=$as_save_IFS
19251
19252 fi
19253 fi
19254 AR=$ac_cv_prog_AR
19255 if test -n "$AR"; then
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19257 $as_echo "$AR" >&6; }
19258 else
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19260 $as_echo "no" >&6; }
19261 fi
19262
19263
19264 fi
19265 if test -z "$ac_cv_prog_AR"; then
19266 ac_ct_AR=$AR
19267 # Extract the first word of "ar", so it can be a program name with args.
19268 set dummy ar; ac_word=$2
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19270 $as_echo_n "checking for $ac_word... " >&6; }
19271 if ${ac_cv_prog_ac_ct_AR+:} false; then :
19272 $as_echo_n "(cached) " >&6
19273 else
19274 if test -n "$ac_ct_AR"; then
19275 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19276 else
19277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19278 for as_dir in $PATH
19279 do
19280 IFS=$as_save_IFS
19281 test -z "$as_dir" && as_dir=.
19282 for ac_exec_ext in '' $ac_executable_extensions; do
19283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19284 ac_cv_prog_ac_ct_AR="ar"
19285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19286 break 2
19287 fi
19288 done
19289 done
19290 IFS=$as_save_IFS
19291
19292 fi
19293 fi
19294 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19295 if test -n "$ac_ct_AR"; then
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
19297 $as_echo "$ac_ct_AR" >&6; }
19298 else
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19300 $as_echo "no" >&6; }
19301 fi
19302
19303 if test "x$ac_ct_AR" = x; then
19304 AR=""
19305 else
19306 case $cross_compiling:$ac_tool_warned in
19307 yes:)
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19310 ac_tool_warned=yes ;;
19311 esac
19312 AR=$ac_ct_AR
19313 fi
19314 else
19315 AR="$ac_cv_prog_AR"
19316 fi
19317
19318 if test -n "$ac_tool_prefix"; then
19319 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
19320 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19322 $as_echo_n "checking for $ac_word... " >&6; }
19323 if ${ac_cv_prog_DLLTOOL+:} false; then :
19324 $as_echo_n "(cached) " >&6
19325 else
19326 if test -n "$DLLTOOL"; then
19327 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
19328 else
19329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19330 for as_dir in $PATH
19331 do
19332 IFS=$as_save_IFS
19333 test -z "$as_dir" && as_dir=.
19334 for ac_exec_ext in '' $ac_executable_extensions; do
19335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19336 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
19337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19338 break 2
19339 fi
19340 done
19341 done
19342 IFS=$as_save_IFS
19343
19344 fi
19345 fi
19346 DLLTOOL=$ac_cv_prog_DLLTOOL
19347 if test -n "$DLLTOOL"; then
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
19349 $as_echo "$DLLTOOL" >&6; }
19350 else
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19352 $as_echo "no" >&6; }
19353 fi
19354
19355
19356 fi
19357 if test -z "$ac_cv_prog_DLLTOOL"; then
19358 ac_ct_DLLTOOL=$DLLTOOL
19359 # Extract the first word of "dlltool", so it can be a program name with args.
19360 set dummy dlltool; ac_word=$2
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19362 $as_echo_n "checking for $ac_word... " >&6; }
19363 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
19364 $as_echo_n "(cached) " >&6
19365 else
19366 if test -n "$ac_ct_DLLTOOL"; then
19367 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
19368 else
19369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19370 for as_dir in $PATH
19371 do
19372 IFS=$as_save_IFS
19373 test -z "$as_dir" && as_dir=.
19374 for ac_exec_ext in '' $ac_executable_extensions; do
19375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19376 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
19377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19378 break 2
19379 fi
19380 done
19381 done
19382 IFS=$as_save_IFS
19383
19384 fi
19385 fi
19386 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
19387 if test -n "$ac_ct_DLLTOOL"; then
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
19389 $as_echo "$ac_ct_DLLTOOL" >&6; }
19390 else
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19392 $as_echo "no" >&6; }
19393 fi
19394
19395 if test "x$ac_ct_DLLTOOL" = x; then
19396 DLLTOOL=""
19397 else
19398 case $cross_compiling:$ac_tool_warned in
19399 yes:)
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19402 ac_tool_warned=yes ;;
19403 esac
19404 DLLTOOL=$ac_ct_DLLTOOL
19405 fi
19406 else
19407 DLLTOOL="$ac_cv_prog_DLLTOOL"
19408 fi
19409
19410 if test -n "$ac_tool_prefix"; then
19411 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19412 set dummy ${ac_tool_prefix}windres; ac_word=$2
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19414 $as_echo_n "checking for $ac_word... " >&6; }
19415 if ${ac_cv_prog_WINDRES+:} false; then :
19416 $as_echo_n "(cached) " >&6
19417 else
19418 if test -n "$WINDRES"; then
19419 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19420 else
19421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19422 for as_dir in $PATH
19423 do
19424 IFS=$as_save_IFS
19425 test -z "$as_dir" && as_dir=.
19426 for ac_exec_ext in '' $ac_executable_extensions; do
19427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19428 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19430 break 2
19431 fi
19432 done
19433 done
19434 IFS=$as_save_IFS
19435
19436 fi
19437 fi
19438 WINDRES=$ac_cv_prog_WINDRES
19439 if test -n "$WINDRES"; then
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19441 $as_echo "$WINDRES" >&6; }
19442 else
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19444 $as_echo "no" >&6; }
19445 fi
19446
19447
19448 fi
19449 if test -z "$ac_cv_prog_WINDRES"; then
19450 ac_ct_WINDRES=$WINDRES
19451 # Extract the first word of "windres", so it can be a program name with args.
19452 set dummy windres; ac_word=$2
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19454 $as_echo_n "checking for $ac_word... " >&6; }
19455 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19456 $as_echo_n "(cached) " >&6
19457 else
19458 if test -n "$ac_ct_WINDRES"; then
19459 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19460 else
19461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19462 for as_dir in $PATH
19463 do
19464 IFS=$as_save_IFS
19465 test -z "$as_dir" && as_dir=.
19466 for ac_exec_ext in '' $ac_executable_extensions; do
19467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19468 ac_cv_prog_ac_ct_WINDRES="windres"
19469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19470 break 2
19471 fi
19472 done
19473 done
19474 IFS=$as_save_IFS
19475
19476 fi
19477 fi
19478 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19479 if test -n "$ac_ct_WINDRES"; then
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19481 $as_echo "$ac_ct_WINDRES" >&6; }
19482 else
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19484 $as_echo "no" >&6; }
19485 fi
19486
19487 if test "x$ac_ct_WINDRES" = x; then
19488 WINDRES=""
19489 else
19490 case $cross_compiling:$ac_tool_warned in
19491 yes:)
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19494 ac_tool_warned=yes ;;
19495 esac
19496 WINDRES=$ac_ct_WINDRES
19497 fi
19498 else
19499 WINDRES="$ac_cv_prog_WINDRES"
19500 fi
19501
19502
19503 case $host_os in
19504 gnu*)
19505 # Needed for GNU Hurd hosts.
19506 if test -n "$ac_tool_prefix"; then
19507 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
19508 set dummy ${ac_tool_prefix}mig; ac_word=$2
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19510 $as_echo_n "checking for $ac_word... " >&6; }
19511 if ${ac_cv_prog_MIG+:} false; then :
19512 $as_echo_n "(cached) " >&6
19513 else
19514 if test -n "$MIG"; then
19515 ac_cv_prog_MIG="$MIG" # Let the user override the test.
19516 else
19517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19518 for as_dir in $PATH
19519 do
19520 IFS=$as_save_IFS
19521 test -z "$as_dir" && as_dir=.
19522 for ac_exec_ext in '' $ac_executable_extensions; do
19523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19524 ac_cv_prog_MIG="${ac_tool_prefix}mig"
19525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19526 break 2
19527 fi
19528 done
19529 done
19530 IFS=$as_save_IFS
19531
19532 fi
19533 fi
19534 MIG=$ac_cv_prog_MIG
19535 if test -n "$MIG"; then
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
19537 $as_echo "$MIG" >&6; }
19538 else
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19540 $as_echo "no" >&6; }
19541 fi
19542
19543
19544 fi
19545 if test -z "$ac_cv_prog_MIG"; then
19546 ac_ct_MIG=$MIG
19547 # Extract the first word of "mig", so it can be a program name with args.
19548 set dummy mig; ac_word=$2
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19550 $as_echo_n "checking for $ac_word... " >&6; }
19551 if ${ac_cv_prog_ac_ct_MIG+:} false; then :
19552 $as_echo_n "(cached) " >&6
19553 else
19554 if test -n "$ac_ct_MIG"; then
19555 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
19556 else
19557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19558 for as_dir in $PATH
19559 do
19560 IFS=$as_save_IFS
19561 test -z "$as_dir" && as_dir=.
19562 for ac_exec_ext in '' $ac_executable_extensions; do
19563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19564 ac_cv_prog_ac_ct_MIG="mig"
19565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19566 break 2
19567 fi
19568 done
19569 done
19570 IFS=$as_save_IFS
19571
19572 fi
19573 fi
19574 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
19575 if test -n "$ac_ct_MIG"; then
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
19577 $as_echo "$ac_ct_MIG" >&6; }
19578 else
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19580 $as_echo "no" >&6; }
19581 fi
19582
19583 if test "x$ac_ct_MIG" = x; then
19584 MIG=""
19585 else
19586 case $cross_compiling:$ac_tool_warned in
19587 yes:)
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19590 ac_tool_warned=yes ;;
19591 esac
19592 MIG=$ac_ct_MIG
19593 fi
19594 else
19595 MIG="$ac_cv_prog_MIG"
19596 fi
19597
19598 if test x"$MIG" = x; then
19599 as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
19600 fi
19601 ;;
19602 esac
19603
19604 # ---------------------- #
19605 # Checks for libraries. #
19606 # ---------------------- #
19607
19608 # We might need to link with -lm; most simulators need it.
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
19610 $as_echo_n "checking for main in -lm... " >&6; }
19611 if ${ac_cv_lib_m_main+:} false; then :
19612 $as_echo_n "(cached) " >&6
19613 else
19614 ac_check_lib_save_LIBS=$LIBS
19615 LIBS="-lm $LIBS"
19616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19617 /* end confdefs.h. */
19618
19619
19620 int
19621 main ()
19622 {
19623 return main ();
19624 ;
19625 return 0;
19626 }
19627 _ACEOF
19628 if ac_fn_c_try_link "$LINENO"; then :
19629 ac_cv_lib_m_main=yes
19630 else
19631 ac_cv_lib_m_main=no
19632 fi
19633 rm -f core conftest.err conftest.$ac_objext \
19634 conftest$ac_exeext conftest.$ac_ext
19635 LIBS=$ac_check_lib_save_LIBS
19636 fi
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
19638 $as_echo "$ac_cv_lib_m_main" >&6; }
19639 if test "x$ac_cv_lib_m_main" = xyes; then :
19640 cat >>confdefs.h <<_ACEOF
19641 #define HAVE_LIBM 1
19642 _ACEOF
19643
19644 LIBS="-lm $LIBS"
19645
19646 fi
19647
19648
19649 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19651 $as_echo_n "checking for library containing gethostbyname... " >&6; }
19652 if ${ac_cv_search_gethostbyname+:} false; then :
19653 $as_echo_n "(cached) " >&6
19654 else
19655 ac_func_search_save_LIBS=$LIBS
19656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19657 /* end confdefs.h. */
19658
19659 /* Override any GCC internal prototype to avoid an error.
19660 Use char because int might match the return type of a GCC
19661 builtin and then its argument prototype would still apply. */
19662 #ifdef __cplusplus
19663 extern "C"
19664 #endif
19665 char gethostbyname ();
19666 int
19667 main ()
19668 {
19669 return gethostbyname ();
19670 ;
19671 return 0;
19672 }
19673 _ACEOF
19674 for ac_lib in '' nsl; do
19675 if test -z "$ac_lib"; then
19676 ac_res="none required"
19677 else
19678 ac_res=-l$ac_lib
19679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19680 fi
19681 if ac_fn_c_try_link "$LINENO"; then :
19682 ac_cv_search_gethostbyname=$ac_res
19683 fi
19684 rm -f core conftest.err conftest.$ac_objext \
19685 conftest$ac_exeext
19686 if ${ac_cv_search_gethostbyname+:} false; then :
19687 break
19688 fi
19689 done
19690 if ${ac_cv_search_gethostbyname+:} false; then :
19691
19692 else
19693 ac_cv_search_gethostbyname=no
19694 fi
19695 rm conftest.$ac_ext
19696 LIBS=$ac_func_search_save_LIBS
19697 fi
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19699 $as_echo "$ac_cv_search_gethostbyname" >&6; }
19700 ac_res=$ac_cv_search_gethostbyname
19701 if test "$ac_res" != no; then :
19702 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19703
19704 fi
19705
19706
19707 # Link in zlib/zstd if we can. This allows us to read compressed debug
19708 # sections.
19709
19710 # Use the system's zlib library.
19711 zlibdir="-L\$(top_builddir)/../zlib"
19712 zlibinc="-I\$(top_srcdir)/../zlib"
19713
19714 # Check whether --with-system-zlib was given.
19715 if test "${with_system_zlib+set}" = set; then :
19716 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
19717 zlibdir=
19718 zlibinc=
19719 fi
19720
19721 fi
19722
19723
19724
19725
19726
19727
19728 # Check whether --with-zstd was given.
19729 if test "${with_zstd+set}" = set; then :
19730 withval=$with_zstd;
19731 else
19732 with_zstd=auto
19733 fi
19734
19735
19736 if test "$with_zstd" != no; then :
19737
19738 pkg_failed=no
19739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
19740 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
19741
19742 if test -n "$ZSTD_CFLAGS"; then
19743 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
19744 elif test -n "$PKG_CONFIG"; then
19745 if test -n "$PKG_CONFIG" && \
19746 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19747 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19748 ac_status=$?
19749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19750 test $ac_status = 0; }; then
19751 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
19752 test "x$?" != "x0" && pkg_failed=yes
19753 else
19754 pkg_failed=yes
19755 fi
19756 else
19757 pkg_failed=untried
19758 fi
19759 if test -n "$ZSTD_LIBS"; then
19760 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
19761 elif test -n "$PKG_CONFIG"; then
19762 if test -n "$PKG_CONFIG" && \
19763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19764 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19765 ac_status=$?
19766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19767 test $ac_status = 0; }; then
19768 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
19769 test "x$?" != "x0" && pkg_failed=yes
19770 else
19771 pkg_failed=yes
19772 fi
19773 else
19774 pkg_failed=untried
19775 fi
19776
19777 if test $pkg_failed = no; then
19778 pkg_save_LDFLAGS="$LDFLAGS"
19779 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
19780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19781 /* end confdefs.h. */
19782
19783 int
19784 main ()
19785 {
19786
19787 ;
19788 return 0;
19789 }
19790 _ACEOF
19791 if ac_fn_c_try_link "$LINENO"; then :
19792
19793 else
19794 pkg_failed=yes
19795 fi
19796 rm -f core conftest.err conftest.$ac_objext \
19797 conftest$ac_exeext conftest.$ac_ext
19798 LDFLAGS=$pkg_save_LDFLAGS
19799 fi
19800
19801
19802
19803 if test $pkg_failed = yes; then
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19805 $as_echo "no" >&6; }
19806
19807 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19808 _pkg_short_errors_supported=yes
19809 else
19810 _pkg_short_errors_supported=no
19811 fi
19812 if test $_pkg_short_errors_supported = yes; then
19813 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19814 else
19815 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19816 fi
19817 # Put the nasty error message in config.log where it belongs
19818 echo "$ZSTD_PKG_ERRORS" >&5
19819
19820
19821 if test "$with_zstd" = yes; then
19822 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19823 fi
19824
19825 elif test $pkg_failed = untried; then
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19827 $as_echo "no" >&6; }
19828
19829 if test "$with_zstd" = yes; then
19830 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19831 fi
19832
19833 else
19834 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
19835 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19837 $as_echo "yes" >&6; }
19838
19839
19840 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
19841
19842
19843 fi
19844
19845 fi
19846
19847
19848
19849 if test "X$prefix" = "XNONE"; then
19850 acl_final_prefix="$ac_default_prefix"
19851 else
19852 acl_final_prefix="$prefix"
19853 fi
19854 if test "X$exec_prefix" = "XNONE"; then
19855 acl_final_exec_prefix='${prefix}'
19856 else
19857 acl_final_exec_prefix="$exec_prefix"
19858 fi
19859 acl_save_prefix="$prefix"
19860 prefix="$acl_final_prefix"
19861 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
19862 prefix="$acl_save_prefix"
19863
19864
19865 # Check whether --with-gnu-ld was given.
19866 if test "${with_gnu_ld+set}" = set; then :
19867 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19868 else
19869 with_gnu_ld=no
19870 fi
19871
19872 # Prepare PATH_SEPARATOR.
19873 # The user is always right.
19874 if test "${PATH_SEPARATOR+set}" != set; then
19875 echo "#! /bin/sh" >conf$$.sh
19876 echo "exit 0" >>conf$$.sh
19877 chmod +x conf$$.sh
19878 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19879 PATH_SEPARATOR=';'
19880 else
19881 PATH_SEPARATOR=:
19882 fi
19883 rm -f conf$$.sh
19884 fi
19885 ac_prog=ld
19886 if test "$GCC" = yes; then
19887 # Check if gcc -print-prog-name=ld gives a path.
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
19889 $as_echo_n "checking for ld used by GCC... " >&6; }
19890 case $host in
19891 *-*-mingw*)
19892 # gcc leaves a trailing carriage return which upsets mingw
19893 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19894 *)
19895 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19896 esac
19897 case $ac_prog in
19898 # Accept absolute paths.
19899 [\\/]* | [A-Za-z]:[\\/]*)
19900 re_direlt='/[^/][^/]*/\.\./'
19901 # Canonicalize the path of ld
19902 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
19903 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19904 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19905 done
19906 test -z "$LD" && LD="$ac_prog"
19907 ;;
19908 "")
19909 # If it fails, then pretend we aren't using GCC.
19910 ac_prog=ld
19911 ;;
19912 *)
19913 # If it is relative, then search for the first ld in PATH.
19914 with_gnu_ld=unknown
19915 ;;
19916 esac
19917 elif test "$with_gnu_ld" = yes; then
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19919 $as_echo_n "checking for GNU ld... " >&6; }
19920 else
19921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19922 $as_echo_n "checking for non-GNU ld... " >&6; }
19923 fi
19924 if ${acl_cv_path_LD+:} false; then :
19925 $as_echo_n "(cached) " >&6
19926 else
19927 if test -z "$LD"; then
19928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19929 for ac_dir in $PATH; do
19930 test -z "$ac_dir" && ac_dir=.
19931 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19932 acl_cv_path_LD="$ac_dir/$ac_prog"
19933 # Check to see if the program is GNU ld. I'd rather use --version,
19934 # but apparently some GNU ld's only accept -v.
19935 # Break only if it was the GNU/non-GNU ld that we prefer.
19936 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
19937 test "$with_gnu_ld" != no && break
19938 else
19939 test "$with_gnu_ld" != yes && break
19940 fi
19941 fi
19942 done
19943 IFS="$ac_save_ifs"
19944 else
19945 acl_cv_path_LD="$LD" # Let the user override the test with a path.
19946 fi
19947 fi
19948
19949 LD="$acl_cv_path_LD"
19950 if test -n "$LD"; then
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19952 $as_echo "$LD" >&6; }
19953 else
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19955 $as_echo "no" >&6; }
19956 fi
19957 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19959 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19960 if ${acl_cv_prog_gnu_ld+:} false; then :
19961 $as_echo_n "(cached) " >&6
19962 else
19963 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19964 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
19965 acl_cv_prog_gnu_ld=yes
19966 else
19967 acl_cv_prog_gnu_ld=no
19968 fi
19969 fi
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19971 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
19972 with_gnu_ld=$acl_cv_prog_gnu_ld
19973
19974
19975
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19977 $as_echo_n "checking for shared library run path origin... " >&6; }
19978 if ${acl_cv_rpath+:} false; then :
19979 $as_echo_n "(cached) " >&6
19980 else
19981
19982 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19983 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19984 . ./conftest.sh
19985 rm -f ./conftest.sh
19986 acl_cv_rpath=done
19987
19988 fi
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19990 $as_echo "$acl_cv_rpath" >&6; }
19991 wl="$acl_cv_wl"
19992 libext="$acl_cv_libext"
19993 shlibext="$acl_cv_shlibext"
19994 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19995 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19996 hardcode_direct="$acl_cv_hardcode_direct"
19997 hardcode_minus_L="$acl_cv_hardcode_minus_L"
19998 # Check whether --enable-rpath was given.
19999 if test "${enable_rpath+set}" = set; then :
20000 enableval=$enable_rpath; :
20001 else
20002 enable_rpath=yes
20003 fi
20004
20005
20006
20007
20008
20009
20010
20011
20012 use_additional=yes
20013
20014 acl_save_prefix="$prefix"
20015 prefix="$acl_final_prefix"
20016 acl_save_exec_prefix="$exec_prefix"
20017 exec_prefix="$acl_final_exec_prefix"
20018
20019 eval additional_includedir=\"$includedir\"
20020 eval additional_libdir=\"$libdir\"
20021
20022 exec_prefix="$acl_save_exec_prefix"
20023 prefix="$acl_save_prefix"
20024
20025
20026 # Check whether --with-libiconv-prefix was given.
20027 if test "${with_libiconv_prefix+set}" = set; then :
20028 withval=$with_libiconv_prefix;
20029 if test "X$withval" = "Xno"; then
20030 use_additional=no
20031 else
20032 if test "X$withval" = "X"; then
20033
20034 acl_save_prefix="$prefix"
20035 prefix="$acl_final_prefix"
20036 acl_save_exec_prefix="$exec_prefix"
20037 exec_prefix="$acl_final_exec_prefix"
20038
20039 eval additional_includedir=\"$includedir\"
20040 eval additional_libdir=\"$libdir\"
20041
20042 exec_prefix="$acl_save_exec_prefix"
20043 prefix="$acl_save_prefix"
20044
20045 else
20046 additional_includedir="$withval/include"
20047 additional_libdir="$withval/lib"
20048 fi
20049 fi
20050
20051 fi
20052
20053
20054 # Check whether --with-libiconv-type was given.
20055 if test "${with_libiconv_type+set}" = set; then :
20056 withval=$with_libiconv_type; with_libiconv_type=$withval
20057 else
20058 with_libiconv_type=auto
20059 fi
20060
20061 lib_type=`eval echo \$with_libiconv_type`
20062
20063 LIBICONV=
20064 LTLIBICONV=
20065 INCICONV=
20066 rpathdirs=
20067 ltrpathdirs=
20068 names_already_handled=
20069 names_next_round='iconv '
20070 while test -n "$names_next_round"; do
20071 names_this_round="$names_next_round"
20072 names_next_round=
20073 for name in $names_this_round; do
20074 already_handled=
20075 for n in $names_already_handled; do
20076 if test "$n" = "$name"; then
20077 already_handled=yes
20078 break
20079 fi
20080 done
20081 if test -z "$already_handled"; then
20082 names_already_handled="$names_already_handled $name"
20083 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20084 eval value=\"\$HAVE_LIB$uppername\"
20085 if test -n "$value"; then
20086 if test "$value" = yes; then
20087 eval value=\"\$LIB$uppername\"
20088 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20089 eval value=\"\$LTLIB$uppername\"
20090 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20091 else
20092 :
20093 fi
20094 else
20095 found_dir=
20096 found_la=
20097 found_so=
20098 found_a=
20099 if test $use_additional = yes; then
20100 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
20101 found_dir="$additional_libdir"
20102 found_so="$additional_libdir/lib$name.$shlibext"
20103 if test -f "$additional_libdir/lib$name.la"; then
20104 found_la="$additional_libdir/lib$name.la"
20105 fi
20106 elif test x$lib_type != xshared; then
20107 if test -f "$additional_libdir/lib$name.$libext"; then
20108 found_dir="$additional_libdir"
20109 found_a="$additional_libdir/lib$name.$libext"
20110 if test -f "$additional_libdir/lib$name.la"; then
20111 found_la="$additional_libdir/lib$name.la"
20112 fi
20113 fi
20114 fi
20115 fi
20116 if test "X$found_dir" = "X"; then
20117 for x in $LDFLAGS $LTLIBICONV; do
20118
20119 acl_save_prefix="$prefix"
20120 prefix="$acl_final_prefix"
20121 acl_save_exec_prefix="$exec_prefix"
20122 exec_prefix="$acl_final_exec_prefix"
20123 eval x=\"$x\"
20124 exec_prefix="$acl_save_exec_prefix"
20125 prefix="$acl_save_prefix"
20126
20127 case "$x" in
20128 -L*)
20129 dir=`echo "X$x" | sed -e 's/^X-L//'`
20130 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
20131 found_dir="$dir"
20132 found_so="$dir/lib$name.$shlibext"
20133 if test -f "$dir/lib$name.la"; then
20134 found_la="$dir/lib$name.la"
20135 fi
20136 elif test x$lib_type != xshared; then
20137 if test -f "$dir/lib$name.$libext"; then
20138 found_dir="$dir"
20139 found_a="$dir/lib$name.$libext"
20140 if test -f "$dir/lib$name.la"; then
20141 found_la="$dir/lib$name.la"
20142 fi
20143 fi
20144 fi
20145 ;;
20146 esac
20147 if test "X$found_dir" != "X"; then
20148 break
20149 fi
20150 done
20151 fi
20152 if test "X$found_dir" != "X"; then
20153 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20154 if test "X$found_so" != "X"; then
20155 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20156 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20157 else
20158 haveit=
20159 for x in $ltrpathdirs; do
20160 if test "X$x" = "X$found_dir"; then
20161 haveit=yes
20162 break
20163 fi
20164 done
20165 if test -z "$haveit"; then
20166 ltrpathdirs="$ltrpathdirs $found_dir"
20167 fi
20168 if test "$hardcode_direct" = yes; then
20169 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20170 else
20171 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20172 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20173 haveit=
20174 for x in $rpathdirs; do
20175 if test "X$x" = "X$found_dir"; then
20176 haveit=yes
20177 break
20178 fi
20179 done
20180 if test -z "$haveit"; then
20181 rpathdirs="$rpathdirs $found_dir"
20182 fi
20183 else
20184 haveit=
20185 for x in $LDFLAGS $LIBICONV; do
20186
20187 acl_save_prefix="$prefix"
20188 prefix="$acl_final_prefix"
20189 acl_save_exec_prefix="$exec_prefix"
20190 exec_prefix="$acl_final_exec_prefix"
20191 eval x=\"$x\"
20192 exec_prefix="$acl_save_exec_prefix"
20193 prefix="$acl_save_prefix"
20194
20195 if test "X$x" = "X-L$found_dir"; then
20196 haveit=yes
20197 break
20198 fi
20199 done
20200 if test -z "$haveit"; then
20201 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20202 fi
20203 if test "$hardcode_minus_L" != no; then
20204 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20205 else
20206 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20207 fi
20208 fi
20209 fi
20210 fi
20211 else
20212 if test "X$found_a" != "X"; then
20213 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20214 else
20215 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20216 fi
20217 fi
20218 additional_includedir=
20219 case "$found_dir" in
20220 */lib | */lib/)
20221 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20222 additional_includedir="$basedir/include"
20223 ;;
20224 esac
20225 if test "X$additional_includedir" != "X"; then
20226 if test "X$additional_includedir" != "X/usr/include"; then
20227 haveit=
20228 if test "X$additional_includedir" = "X/usr/local/include"; then
20229 if test -n "$GCC"; then
20230 case $host_os in
20231 linux*) haveit=yes;;
20232 esac
20233 fi
20234 fi
20235 if test -z "$haveit"; then
20236 for x in $CPPFLAGS $INCICONV; do
20237
20238 acl_save_prefix="$prefix"
20239 prefix="$acl_final_prefix"
20240 acl_save_exec_prefix="$exec_prefix"
20241 exec_prefix="$acl_final_exec_prefix"
20242 eval x=\"$x\"
20243 exec_prefix="$acl_save_exec_prefix"
20244 prefix="$acl_save_prefix"
20245
20246 if test "X$x" = "X-I$additional_includedir"; then
20247 haveit=yes
20248 break
20249 fi
20250 done
20251 if test -z "$haveit"; then
20252 if test -d "$additional_includedir"; then
20253 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20254 fi
20255 fi
20256 fi
20257 fi
20258 fi
20259 if test -n "$found_la"; then
20260 save_libdir="$libdir"
20261 case "$found_la" in
20262 */* | *\\*) . "$found_la" ;;
20263 *) . "./$found_la" ;;
20264 esac
20265 libdir="$save_libdir"
20266 for dep in $dependency_libs; do
20267 case "$dep" in
20268 -L*)
20269 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20270 if test "X$additional_libdir" != "X/usr/lib"; then
20271 haveit=
20272 if test "X$additional_libdir" = "X/usr/local/lib"; then
20273 if test -n "$GCC"; then
20274 case $host_os in
20275 linux*) haveit=yes;;
20276 esac
20277 fi
20278 fi
20279 if test -z "$haveit"; then
20280 haveit=
20281 for x in $LDFLAGS $LIBICONV; do
20282
20283 acl_save_prefix="$prefix"
20284 prefix="$acl_final_prefix"
20285 acl_save_exec_prefix="$exec_prefix"
20286 exec_prefix="$acl_final_exec_prefix"
20287 eval x=\"$x\"
20288 exec_prefix="$acl_save_exec_prefix"
20289 prefix="$acl_save_prefix"
20290
20291 if test "X$x" = "X-L$additional_libdir"; then
20292 haveit=yes
20293 break
20294 fi
20295 done
20296 if test -z "$haveit"; then
20297 if test -d "$additional_libdir"; then
20298 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20299 fi
20300 fi
20301 haveit=
20302 for x in $LDFLAGS $LTLIBICONV; do
20303
20304 acl_save_prefix="$prefix"
20305 prefix="$acl_final_prefix"
20306 acl_save_exec_prefix="$exec_prefix"
20307 exec_prefix="$acl_final_exec_prefix"
20308 eval x=\"$x\"
20309 exec_prefix="$acl_save_exec_prefix"
20310 prefix="$acl_save_prefix"
20311
20312 if test "X$x" = "X-L$additional_libdir"; then
20313 haveit=yes
20314 break
20315 fi
20316 done
20317 if test -z "$haveit"; then
20318 if test -d "$additional_libdir"; then
20319 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20320 fi
20321 fi
20322 fi
20323 fi
20324 ;;
20325 -R*)
20326 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20327 if test "$enable_rpath" != no; then
20328 haveit=
20329 for x in $rpathdirs; do
20330 if test "X$x" = "X$dir"; then
20331 haveit=yes
20332 break
20333 fi
20334 done
20335 if test -z "$haveit"; then
20336 rpathdirs="$rpathdirs $dir"
20337 fi
20338 haveit=
20339 for x in $ltrpathdirs; do
20340 if test "X$x" = "X$dir"; then
20341 haveit=yes
20342 break
20343 fi
20344 done
20345 if test -z "$haveit"; then
20346 ltrpathdirs="$ltrpathdirs $dir"
20347 fi
20348 fi
20349 ;;
20350 -l*)
20351 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20352 ;;
20353 *.la)
20354 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20355 ;;
20356 *)
20357 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20358 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20359 ;;
20360 esac
20361 done
20362 fi
20363 else
20364 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
20365 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20366 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20367 else
20368 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
20369 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
20370 fi
20371 fi
20372 fi
20373 fi
20374 done
20375 done
20376 if test "X$rpathdirs" != "X"; then
20377 if test -n "$hardcode_libdir_separator"; then
20378 alldirs=
20379 for found_dir in $rpathdirs; do
20380 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20381 done
20382 acl_save_libdir="$libdir"
20383 libdir="$alldirs"
20384 eval flag=\"$hardcode_libdir_flag_spec\"
20385 libdir="$acl_save_libdir"
20386 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20387 else
20388 for found_dir in $rpathdirs; do
20389 acl_save_libdir="$libdir"
20390 libdir="$found_dir"
20391 eval flag=\"$hardcode_libdir_flag_spec\"
20392 libdir="$acl_save_libdir"
20393 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20394 done
20395 fi
20396 fi
20397 if test "X$ltrpathdirs" != "X"; then
20398 for found_dir in $ltrpathdirs; do
20399 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20400 done
20401 fi
20402
20403
20404
20405
20406
20407
20408
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20410 $as_echo_n "checking for iconv... " >&6; }
20411 if ${am_cv_func_iconv+:} false; then :
20412 $as_echo_n "(cached) " >&6
20413 else
20414
20415 am_cv_func_iconv="no, consider installing GNU libiconv"
20416 am_cv_lib_iconv=no
20417 am_save_CPPFLAGS="$CPPFLAGS"
20418 CPPFLAGS="$CPPFLAGS $INCICONV"
20419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20420 /* end confdefs.h. */
20421 #include <stdlib.h>
20422 #include <iconv.h>
20423 int
20424 main ()
20425 {
20426 iconv_t cd = iconv_open("","");
20427 iconv(cd,NULL,NULL,NULL,NULL);
20428 iconv_close(cd);
20429 ;
20430 return 0;
20431 }
20432 _ACEOF
20433 if ac_fn_c_try_link "$LINENO"; then :
20434 am_cv_func_iconv=yes
20435 fi
20436 rm -f core conftest.err conftest.$ac_objext \
20437 conftest$ac_exeext conftest.$ac_ext
20438 CPPFLAGS="$am_save_CPPFLAGS"
20439
20440 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
20441 for _libs in .libs _libs; do
20442 am_save_CPPFLAGS="$CPPFLAGS"
20443 am_save_LIBS="$LIBS"
20444 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
20445 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
20446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20447 /* end confdefs.h. */
20448 #include <stdlib.h>
20449 #include <iconv.h>
20450 int
20451 main ()
20452 {
20453 iconv_t cd = iconv_open("","");
20454 iconv(cd,NULL,NULL,NULL,NULL);
20455 iconv_close(cd);
20456 ;
20457 return 0;
20458 }
20459 _ACEOF
20460 if ac_fn_c_try_link "$LINENO"; then :
20461 INCICONV="-I../libiconv/include"
20462 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
20463 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
20464 am_cv_lib_iconv=yes
20465 am_cv_func_iconv=yes
20466 fi
20467 rm -f core conftest.err conftest.$ac_objext \
20468 conftest$ac_exeext conftest.$ac_ext
20469 CPPFLAGS="$am_save_CPPFLAGS"
20470 LIBS="$am_save_LIBS"
20471 if test "$am_cv_func_iconv" = "yes"; then
20472 break
20473 fi
20474 done
20475 fi
20476
20477 if test "$am_cv_func_iconv" != yes; then
20478 am_save_CPPFLAGS="$CPPFLAGS"
20479 am_save_LIBS="$LIBS"
20480 CPPFLAGS="$CPPFLAGS $INCICONV"
20481 LIBS="$LIBS $LIBICONV"
20482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20483 /* end confdefs.h. */
20484 #include <stdlib.h>
20485 #include <iconv.h>
20486 int
20487 main ()
20488 {
20489 iconv_t cd = iconv_open("","");
20490 iconv(cd,NULL,NULL,NULL,NULL);
20491 iconv_close(cd);
20492 ;
20493 return 0;
20494 }
20495 _ACEOF
20496 if ac_fn_c_try_link "$LINENO"; then :
20497 am_cv_lib_iconv=yes
20498 am_cv_func_iconv=yes
20499 fi
20500 rm -f core conftest.err conftest.$ac_objext \
20501 conftest$ac_exeext conftest.$ac_ext
20502 CPPFLAGS="$am_save_CPPFLAGS"
20503 LIBS="$am_save_LIBS"
20504 fi
20505
20506 fi
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20508 $as_echo "$am_cv_func_iconv" >&6; }
20509 if test "$am_cv_func_iconv" = yes; then
20510
20511 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20512
20513 fi
20514 if test "$am_cv_lib_iconv" = yes; then
20515
20516 for element in $INCICONV; do
20517 haveit=
20518 for x in $CPPFLAGS; do
20519
20520 acl_save_prefix="$prefix"
20521 prefix="$acl_final_prefix"
20522 acl_save_exec_prefix="$exec_prefix"
20523 exec_prefix="$acl_final_exec_prefix"
20524 eval x=\"$x\"
20525 exec_prefix="$acl_save_exec_prefix"
20526 prefix="$acl_save_prefix"
20527
20528 if test "X$x" = "X$element"; then
20529 haveit=yes
20530 break
20531 fi
20532 done
20533 if test -z "$haveit"; then
20534 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20535 fi
20536 done
20537
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20539 $as_echo_n "checking how to link with libiconv... " >&6; }
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20541 $as_echo "$LIBICONV" >&6; }
20542 else
20543 LIBICONV=
20544 LTLIBICONV=
20545 fi
20546
20547
20548
20549 if test "$am_cv_func_iconv" = yes; then
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20551 $as_echo_n "checking for iconv declaration... " >&6; }
20552 if ${am_cv_proto_iconv+:} false; then :
20553 $as_echo_n "(cached) " >&6
20554 else
20555
20556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20557 /* end confdefs.h. */
20558
20559 #include <stdlib.h>
20560 #include <iconv.h>
20561 extern
20562 #ifdef __cplusplus
20563 "C"
20564 #endif
20565 #if defined(__STDC__) || defined(__cplusplus)
20566 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20567 #else
20568 size_t iconv();
20569 #endif
20570
20571 int
20572 main ()
20573 {
20574
20575 ;
20576 return 0;
20577 }
20578 _ACEOF
20579 if ac_fn_c_try_compile "$LINENO"; then :
20580 am_cv_proto_iconv_arg1=""
20581 else
20582 am_cv_proto_iconv_arg1="const"
20583 fi
20584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20585 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20586 fi
20587
20588 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20590 }$am_cv_proto_iconv" >&5
20591 $as_echo "${ac_t:-
20592 }$am_cv_proto_iconv" >&6; }
20593
20594 cat >>confdefs.h <<_ACEOF
20595 #define ICONV_CONST $am_cv_proto_iconv_arg1
20596 _ACEOF
20597
20598 fi
20599
20600
20601 # GDB may fork/exec the iconv program to get the list of supported character
20602 # sets. Allow the user to specify where to find it.
20603 # There are several factors affecting the choice of option name:
20604 # - There is already --with-libiconv-prefix but we can't use it, it specifies
20605 # the build-time location of libiconv files.
20606 # - The program we need to find is iconv, which comes with glibc. The user
20607 # doesn't necessarily have libiconv installed. Therefore naming this
20608 # --with-libiconv-foo feels wrong.
20609 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
20610 # defined to work on directories not files (though it really doesn't know
20611 # the difference).
20612 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
20613 # with --with-libiconv-prefix.
20614 # Putting these together is why the option name is --with-iconv-bin.
20615
20616
20617 # Check whether --with-iconv-bin was given.
20618 if test "${with_iconv_bin+set}" = set; then :
20619 withval=$with_iconv_bin; iconv_bin="${withval}"
20620
20621 cat >>confdefs.h <<_ACEOF
20622 #define ICONV_BIN "${iconv_bin}"
20623 _ACEOF
20624
20625
20626 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
20627 if test "x$prefix" = xNONE; then
20628 test_prefix=/usr/local
20629 else
20630 test_prefix=$prefix
20631 fi
20632 else
20633 test_prefix=$exec_prefix
20634 fi
20635 value=0
20636 case ${iconv_bin} in
20637 "${test_prefix}"|"${test_prefix}/"*|\
20638 '${exec_prefix}'|'${exec_prefix}/'*)
20639 value=1
20640 ;;
20641 esac
20642
20643 cat >>confdefs.h <<_ACEOF
20644 #define ICONV_BIN_RELOCATABLE $value
20645 _ACEOF
20646
20647
20648
20649 fi
20650
20651
20652 # For the TUI, we need enhanced curses functionality.
20653 if test x"$enable_tui" != xno; then
20654 prefer_curses=yes
20655 fi
20656
20657 curses_found=no
20658 if test x"$prefer_curses" = xyes; then
20659 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
20660 # curses library because the latter might not provide all the
20661 # functionality we need. However, this leads to problems on systems
20662 # where the linker searches /usr/local/lib, but the compiler doesn't
20663 # search /usr/local/include, if ncurses is installed in /usr/local. A
20664 # default installation of ncurses on alpha*-dec-osf* will lead to such
20665 # a situation.
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
20667 $as_echo_n "checking for library containing waddstr... " >&6; }
20668 if ${ac_cv_search_waddstr+:} false; then :
20669 $as_echo_n "(cached) " >&6
20670 else
20671 ac_func_search_save_LIBS=$LIBS
20672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20673 /* end confdefs.h. */
20674
20675 /* Override any GCC internal prototype to avoid an error.
20676 Use char because int might match the return type of a GCC
20677 builtin and then its argument prototype would still apply. */
20678 #ifdef __cplusplus
20679 extern "C"
20680 #endif
20681 char waddstr ();
20682 int
20683 main ()
20684 {
20685 return waddstr ();
20686 ;
20687 return 0;
20688 }
20689 _ACEOF
20690 for ac_lib in '' ncursesw ncurses cursesX curses; do
20691 if test -z "$ac_lib"; then
20692 ac_res="none required"
20693 else
20694 ac_res=-l$ac_lib
20695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20696 fi
20697 if ac_fn_c_try_link "$LINENO"; then :
20698 ac_cv_search_waddstr=$ac_res
20699 fi
20700 rm -f core conftest.err conftest.$ac_objext \
20701 conftest$ac_exeext
20702 if ${ac_cv_search_waddstr+:} false; then :
20703 break
20704 fi
20705 done
20706 if ${ac_cv_search_waddstr+:} false; then :
20707
20708 else
20709 ac_cv_search_waddstr=no
20710 fi
20711 rm conftest.$ac_ext
20712 LIBS=$ac_func_search_save_LIBS
20713 fi
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
20715 $as_echo "$ac_cv_search_waddstr" >&6; }
20716 ac_res=$ac_cv_search_waddstr
20717 if test "$ac_res" != no; then :
20718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20719 curses_found=yes
20720
20721 $as_echo "#define HAVE_LIBCURSES 1" >>confdefs.h
20722
20723
20724 fi
20725
20726 fi
20727
20728 # Check whether we should enable the TUI, but only do so if we really
20729 # can.
20730 if test x"$enable_tui" != xno; then
20731 if test "$curses_found" != no; then
20732 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
20733 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
20734 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
20735 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
20736 else
20737 if test x"$enable_tui" = xyes; then
20738 as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
20739 else
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
20741 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
20742 fi
20743 fi
20744 fi
20745
20746 # Since GDB uses Readline, we need termcap functionality. In many
20747 # cases this will be provided by the curses library, but some systems
20748 # have a separate termcap library, or no curses library at all.
20749
20750 case $host_os in
20751 cygwin*)
20752 if test -d "$srcdir/libtermcap"; then
20753 LIBS="../libtermcap/libtermcap.a $LIBS"
20754 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
20755 fi ;;
20756 go32* | *djgpp*)
20757 ac_cv_search_tgetent="none required"
20758 ;;
20759 esac
20760
20761 # These are the libraries checked by Readline.
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
20763 $as_echo_n "checking for library containing tgetent... " >&6; }
20764 if ${ac_cv_search_tgetent+:} false; then :
20765 $as_echo_n "(cached) " >&6
20766 else
20767 ac_func_search_save_LIBS=$LIBS
20768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20769 /* end confdefs.h. */
20770
20771 /* Override any GCC internal prototype to avoid an error.
20772 Use char because int might match the return type of a GCC
20773 builtin and then its argument prototype would still apply. */
20774 #ifdef __cplusplus
20775 extern "C"
20776 #endif
20777 char tgetent ();
20778 int
20779 main ()
20780 {
20781 return tgetent ();
20782 ;
20783 return 0;
20784 }
20785 _ACEOF
20786 for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
20787 if test -z "$ac_lib"; then
20788 ac_res="none required"
20789 else
20790 ac_res=-l$ac_lib
20791 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20792 fi
20793 if ac_fn_c_try_link "$LINENO"; then :
20794 ac_cv_search_tgetent=$ac_res
20795 fi
20796 rm -f core conftest.err conftest.$ac_objext \
20797 conftest$ac_exeext
20798 if ${ac_cv_search_tgetent+:} false; then :
20799 break
20800 fi
20801 done
20802 if ${ac_cv_search_tgetent+:} false; then :
20803
20804 else
20805 ac_cv_search_tgetent=no
20806 fi
20807 rm conftest.$ac_ext
20808 LIBS=$ac_func_search_save_LIBS
20809 fi
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
20811 $as_echo "$ac_cv_search_tgetent" >&6; }
20812 ac_res=$ac_cv_search_tgetent
20813 if test "$ac_res" != no; then :
20814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20815
20816 fi
20817
20818
20819 if test "$ac_cv_search_tgetent" = no; then
20820 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
20821 fi
20822
20823
20824 # Check whether --with-system-readline was given.
20825 if test "${with_system_readline+set}" = set; then :
20826 withval=$with_system_readline;
20827 fi
20828
20829
20830 if test "$with_system_readline" = yes; then
20831 for ac_header in readline/readline.h
20832 do :
20833 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
20834 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
20835 cat >>confdefs.h <<_ACEOF
20836 #define HAVE_READLINE_READLINE_H 1
20837 _ACEOF
20838 readline_h=yes
20839 else
20840 readline_h=no
20841 fi
20842
20843 done
20844
20845 if test "$readline_h" = "no"; then
20846 as_fn_error $? "readline development packages are probably missing" "$LINENO" 5
20847 fi
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
20849 $as_echo_n "checking whether system readline is new enough... " >&6; }
20850 if ${gdb_cv_readline_ok+:} false; then :
20851 $as_echo_n "(cached) " >&6
20852 else
20853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20854 /* end confdefs.h. */
20855 #include <stdio.h>
20856 #include <readline/readline.h>
20857 int
20858 main ()
20859 {
20860 #if RL_VERSION_MAJOR < 7
20861 # error "readline version 7 required"
20862 #endif
20863
20864 ;
20865 return 0;
20866 }
20867 _ACEOF
20868 if ac_fn_c_try_compile "$LINENO"; then :
20869 gdb_cv_readline_ok=yes
20870 else
20871 gdb_cv_readline_ok=no
20872
20873 fi
20874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20875
20876 fi
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
20878 $as_echo "$gdb_cv_readline_ok" >&6; }
20879 if test "$gdb_cv_readline_ok" != yes; then
20880 as_fn_error $? "system readline is not new enough" "$LINENO" 5
20881 fi
20882
20883 READLINE=-lreadline
20884 READLINE_DEPS=
20885 READLINE_CFLAGS=
20886 READLINE_TEXI_INCFLAG=
20887 READLINE_DOC_SOURCE_INCLUDES='$(READLINE_SYSTEM_DOC_INCLUDES)'
20888 else
20889 READLINE='$(READLINE_DIR)/libreadline.a'
20890 READLINE_DEPS='$(READLINE)'
20891 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
20892 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
20893 READLINE_DOC_SOURCE_INCLUDES='$(READLINE_INTREE_DOC_INCLUDES)'
20894 fi
20895
20896
20897
20898
20899
20900
20901 # Generate jit-reader.h
20902
20903 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
20904 TARGET_PTR=
20905
20906 # The cast to long int works around a bug in the HP C Compiler
20907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20909 # This bug is HP SR number 8606223364.
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
20911 $as_echo_n "checking size of unsigned long long... " >&6; }
20912 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
20913 $as_echo_n "(cached) " >&6
20914 else
20915 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
20916
20917 else
20918 if test "$ac_cv_type_unsigned_long_long" = yes; then
20919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20921 as_fn_error 77 "cannot compute sizeof (unsigned long long)
20922 See \`config.log' for more details" "$LINENO" 5; }
20923 else
20924 ac_cv_sizeof_unsigned_long_long=0
20925 fi
20926 fi
20927
20928 fi
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
20930 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20931
20932
20933
20934 cat >>confdefs.h <<_ACEOF
20935 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20936 _ACEOF
20937
20938
20939 # The cast to long int works around a bug in the HP C Compiler
20940 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20941 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20942 # This bug is HP SR number 8606223364.
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20944 $as_echo_n "checking size of unsigned long... " >&6; }
20945 if ${ac_cv_sizeof_unsigned_long+:} false; then :
20946 $as_echo_n "(cached) " >&6
20947 else
20948 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
20949
20950 else
20951 if test "$ac_cv_type_unsigned_long" = yes; then
20952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20954 as_fn_error 77 "cannot compute sizeof (unsigned long)
20955 See \`config.log' for more details" "$LINENO" 5; }
20956 else
20957 ac_cv_sizeof_unsigned_long=0
20958 fi
20959 fi
20960
20961 fi
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20963 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20964
20965
20966
20967 cat >>confdefs.h <<_ACEOF
20968 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20969 _ACEOF
20970
20971
20972 # The cast to long int works around a bug in the HP C Compiler
20973 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20974 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20975 # This bug is HP SR number 8606223364.
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
20977 $as_echo_n "checking size of unsigned __int128... " >&6; }
20978 if ${ac_cv_sizeof_unsigned___int128+:} false; then :
20979 $as_echo_n "(cached) " >&6
20980 else
20981 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
20982
20983 else
20984 if test "$ac_cv_type_unsigned___int128" = yes; then
20985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20987 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
20988 See \`config.log' for more details" "$LINENO" 5; }
20989 else
20990 ac_cv_sizeof_unsigned___int128=0
20991 fi
20992 fi
20993
20994 fi
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
20996 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
20997
20998
20999
21000 cat >>confdefs.h <<_ACEOF
21001 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
21002 _ACEOF
21003
21004
21005
21006 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
21007 TARGET_PTR="unsigned long"
21008 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
21009 TARGET_PTR="unsigned long long"
21010 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
21011 TARGET_PTR="unsigned __int128"
21012 else
21013 TARGET_PTR="unsigned long"
21014 fi
21015
21016
21017 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
21018
21019
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
21021 $as_echo_n "checking for library containing dlopen... " >&6; }
21022 if ${ac_cv_search_dlopen+:} false; then :
21023 $as_echo_n "(cached) " >&6
21024 else
21025 ac_func_search_save_LIBS=$LIBS
21026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h. */
21028
21029 /* Override any GCC internal prototype to avoid an error.
21030 Use char because int might match the return type of a GCC
21031 builtin and then its argument prototype would still apply. */
21032 #ifdef __cplusplus
21033 extern "C"
21034 #endif
21035 char dlopen ();
21036 int
21037 main ()
21038 {
21039 return dlopen ();
21040 ;
21041 return 0;
21042 }
21043 _ACEOF
21044 for ac_lib in '' dl; do
21045 if test -z "$ac_lib"; then
21046 ac_res="none required"
21047 else
21048 ac_res=-l$ac_lib
21049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21050 fi
21051 if ac_fn_c_try_link "$LINENO"; then :
21052 ac_cv_search_dlopen=$ac_res
21053 fi
21054 rm -f core conftest.err conftest.$ac_objext \
21055 conftest$ac_exeext
21056 if ${ac_cv_search_dlopen+:} false; then :
21057 break
21058 fi
21059 done
21060 if ${ac_cv_search_dlopen+:} false; then :
21061
21062 else
21063 ac_cv_search_dlopen=no
21064 fi
21065 rm conftest.$ac_ext
21066 LIBS=$ac_func_search_save_LIBS
21067 fi
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
21069 $as_echo "$ac_cv_search_dlopen" >&6; }
21070 ac_res=$ac_cv_search_dlopen
21071 if test "$ac_res" != no; then :
21072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21073
21074 fi
21075
21076
21077
21078
21079 # Check whether --with-jit-reader-dir was given.
21080 if test "${with_jit_reader_dir+set}" = set; then :
21081 withval=$with_jit_reader_dir;
21082 JIT_READER_DIR=$withval
21083 else
21084 JIT_READER_DIR=${libdir}/gdb
21085 fi
21086
21087
21088 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
21089 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21090 ac_define_dir=`eval echo $JIT_READER_DIR`
21091 ac_define_dir=`eval echo $ac_define_dir`
21092
21093 cat >>confdefs.h <<_ACEOF
21094 #define JIT_READER_DIR "$ac_define_dir"
21095 _ACEOF
21096
21097
21098
21099
21100 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
21101 if test "x$prefix" = xNONE; then
21102 test_prefix=/usr/local
21103 else
21104 test_prefix=$prefix
21105 fi
21106 else
21107 test_prefix=$exec_prefix
21108 fi
21109 value=0
21110 case ${ac_define_dir} in
21111 "${test_prefix}"|"${test_prefix}/"*|\
21112 '${exec_prefix}'|'${exec_prefix}/'*)
21113 value=1
21114 ;;
21115 esac
21116
21117 cat >>confdefs.h <<_ACEOF
21118 #define JIT_READER_DIR_RELOCATABLE $value
21119 _ACEOF
21120
21121
21122
21123
21124
21125 # Check whether --with-expat was given.
21126 if test "${with_expat+set}" = set; then :
21127 withval=$with_expat;
21128 else
21129 with_expat=auto
21130 fi
21131
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
21133 $as_echo_n "checking whether to use expat... " >&6; }
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
21135 $as_echo "$with_expat" >&6; }
21136
21137 if test "${with_expat}" = no; then
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
21139 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
21140 HAVE_LIBEXPAT=no
21141 else
21142
21143
21144
21145
21146
21147
21148
21149
21150 use_additional=yes
21151
21152 acl_save_prefix="$prefix"
21153 prefix="$acl_final_prefix"
21154 acl_save_exec_prefix="$exec_prefix"
21155 exec_prefix="$acl_final_exec_prefix"
21156
21157 eval additional_includedir=\"$includedir\"
21158 eval additional_libdir=\"$libdir\"
21159
21160 exec_prefix="$acl_save_exec_prefix"
21161 prefix="$acl_save_prefix"
21162
21163
21164 # Check whether --with-libexpat-prefix was given.
21165 if test "${with_libexpat_prefix+set}" = set; then :
21166 withval=$with_libexpat_prefix;
21167 if test "X$withval" = "Xno"; then
21168 use_additional=no
21169 else
21170 if test "X$withval" = "X"; then
21171
21172 acl_save_prefix="$prefix"
21173 prefix="$acl_final_prefix"
21174 acl_save_exec_prefix="$exec_prefix"
21175 exec_prefix="$acl_final_exec_prefix"
21176
21177 eval additional_includedir=\"$includedir\"
21178 eval additional_libdir=\"$libdir\"
21179
21180 exec_prefix="$acl_save_exec_prefix"
21181 prefix="$acl_save_prefix"
21182
21183 else
21184 additional_includedir="$withval/include"
21185 additional_libdir="$withval/lib"
21186 fi
21187 fi
21188
21189 fi
21190
21191
21192 # Check whether --with-libexpat-type was given.
21193 if test "${with_libexpat_type+set}" = set; then :
21194 withval=$with_libexpat_type; with_libexpat_type=$withval
21195 else
21196 with_libexpat_type=auto
21197 fi
21198
21199 lib_type=`eval echo \$with_libexpat_type`
21200
21201 LIBEXPAT=
21202 LTLIBEXPAT=
21203 INCEXPAT=
21204 rpathdirs=
21205 ltrpathdirs=
21206 names_already_handled=
21207 names_next_round='expat '
21208 while test -n "$names_next_round"; do
21209 names_this_round="$names_next_round"
21210 names_next_round=
21211 for name in $names_this_round; do
21212 already_handled=
21213 for n in $names_already_handled; do
21214 if test "$n" = "$name"; then
21215 already_handled=yes
21216 break
21217 fi
21218 done
21219 if test -z "$already_handled"; then
21220 names_already_handled="$names_already_handled $name"
21221 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21222 eval value=\"\$HAVE_LIB$uppername\"
21223 if test -n "$value"; then
21224 if test "$value" = yes; then
21225 eval value=\"\$LIB$uppername\"
21226 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
21227 eval value=\"\$LTLIB$uppername\"
21228 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
21229 else
21230 :
21231 fi
21232 else
21233 found_dir=
21234 found_la=
21235 found_so=
21236 found_a=
21237 if test $use_additional = yes; then
21238 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21239 found_dir="$additional_libdir"
21240 found_so="$additional_libdir/lib$name.$shlibext"
21241 if test -f "$additional_libdir/lib$name.la"; then
21242 found_la="$additional_libdir/lib$name.la"
21243 fi
21244 elif test x$lib_type != xshared; then
21245 if test -f "$additional_libdir/lib$name.$libext"; then
21246 found_dir="$additional_libdir"
21247 found_a="$additional_libdir/lib$name.$libext"
21248 if test -f "$additional_libdir/lib$name.la"; then
21249 found_la="$additional_libdir/lib$name.la"
21250 fi
21251 fi
21252 fi
21253 fi
21254 if test "X$found_dir" = "X"; then
21255 for x in $LDFLAGS $LTLIBEXPAT; do
21256
21257 acl_save_prefix="$prefix"
21258 prefix="$acl_final_prefix"
21259 acl_save_exec_prefix="$exec_prefix"
21260 exec_prefix="$acl_final_exec_prefix"
21261 eval x=\"$x\"
21262 exec_prefix="$acl_save_exec_prefix"
21263 prefix="$acl_save_prefix"
21264
21265 case "$x" in
21266 -L*)
21267 dir=`echo "X$x" | sed -e 's/^X-L//'`
21268 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21269 found_dir="$dir"
21270 found_so="$dir/lib$name.$shlibext"
21271 if test -f "$dir/lib$name.la"; then
21272 found_la="$dir/lib$name.la"
21273 fi
21274 elif test x$lib_type != xshared; then
21275 if test -f "$dir/lib$name.$libext"; then
21276 found_dir="$dir"
21277 found_a="$dir/lib$name.$libext"
21278 if test -f "$dir/lib$name.la"; then
21279 found_la="$dir/lib$name.la"
21280 fi
21281 fi
21282 fi
21283 ;;
21284 esac
21285 if test "X$found_dir" != "X"; then
21286 break
21287 fi
21288 done
21289 fi
21290 if test "X$found_dir" != "X"; then
21291 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
21292 if test "X$found_so" != "X"; then
21293 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21294 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21295 else
21296 haveit=
21297 for x in $ltrpathdirs; do
21298 if test "X$x" = "X$found_dir"; then
21299 haveit=yes
21300 break
21301 fi
21302 done
21303 if test -z "$haveit"; then
21304 ltrpathdirs="$ltrpathdirs $found_dir"
21305 fi
21306 if test "$hardcode_direct" = yes; then
21307 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21308 else
21309 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21310 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21311 haveit=
21312 for x in $rpathdirs; do
21313 if test "X$x" = "X$found_dir"; then
21314 haveit=yes
21315 break
21316 fi
21317 done
21318 if test -z "$haveit"; then
21319 rpathdirs="$rpathdirs $found_dir"
21320 fi
21321 else
21322 haveit=
21323 for x in $LDFLAGS $LIBEXPAT; do
21324
21325 acl_save_prefix="$prefix"
21326 prefix="$acl_final_prefix"
21327 acl_save_exec_prefix="$exec_prefix"
21328 exec_prefix="$acl_final_exec_prefix"
21329 eval x=\"$x\"
21330 exec_prefix="$acl_save_exec_prefix"
21331 prefix="$acl_save_prefix"
21332
21333 if test "X$x" = "X-L$found_dir"; then
21334 haveit=yes
21335 break
21336 fi
21337 done
21338 if test -z "$haveit"; then
21339 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
21340 fi
21341 if test "$hardcode_minus_L" != no; then
21342 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21343 else
21344 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
21345 fi
21346 fi
21347 fi
21348 fi
21349 else
21350 if test "X$found_a" != "X"; then
21351 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
21352 else
21353 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
21354 fi
21355 fi
21356 additional_includedir=
21357 case "$found_dir" in
21358 */lib | */lib/)
21359 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21360 additional_includedir="$basedir/include"
21361 ;;
21362 esac
21363 if test "X$additional_includedir" != "X"; then
21364 if test "X$additional_includedir" != "X/usr/include"; then
21365 haveit=
21366 if test "X$additional_includedir" = "X/usr/local/include"; then
21367 if test -n "$GCC"; then
21368 case $host_os in
21369 linux*) haveit=yes;;
21370 esac
21371 fi
21372 fi
21373 if test -z "$haveit"; then
21374 for x in $CPPFLAGS $INCEXPAT; do
21375
21376 acl_save_prefix="$prefix"
21377 prefix="$acl_final_prefix"
21378 acl_save_exec_prefix="$exec_prefix"
21379 exec_prefix="$acl_final_exec_prefix"
21380 eval x=\"$x\"
21381 exec_prefix="$acl_save_exec_prefix"
21382 prefix="$acl_save_prefix"
21383
21384 if test "X$x" = "X-I$additional_includedir"; then
21385 haveit=yes
21386 break
21387 fi
21388 done
21389 if test -z "$haveit"; then
21390 if test -d "$additional_includedir"; then
21391 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
21392 fi
21393 fi
21394 fi
21395 fi
21396 fi
21397 if test -n "$found_la"; then
21398 save_libdir="$libdir"
21399 case "$found_la" in
21400 */* | *\\*) . "$found_la" ;;
21401 *) . "./$found_la" ;;
21402 esac
21403 libdir="$save_libdir"
21404 for dep in $dependency_libs; do
21405 case "$dep" in
21406 -L*)
21407 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21408 if test "X$additional_libdir" != "X/usr/lib"; then
21409 haveit=
21410 if test "X$additional_libdir" = "X/usr/local/lib"; then
21411 if test -n "$GCC"; then
21412 case $host_os in
21413 linux*) haveit=yes;;
21414 esac
21415 fi
21416 fi
21417 if test -z "$haveit"; then
21418 haveit=
21419 for x in $LDFLAGS $LIBEXPAT; do
21420
21421 acl_save_prefix="$prefix"
21422 prefix="$acl_final_prefix"
21423 acl_save_exec_prefix="$exec_prefix"
21424 exec_prefix="$acl_final_exec_prefix"
21425 eval x=\"$x\"
21426 exec_prefix="$acl_save_exec_prefix"
21427 prefix="$acl_save_prefix"
21428
21429 if test "X$x" = "X-L$additional_libdir"; then
21430 haveit=yes
21431 break
21432 fi
21433 done
21434 if test -z "$haveit"; then
21435 if test -d "$additional_libdir"; then
21436 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
21437 fi
21438 fi
21439 haveit=
21440 for x in $LDFLAGS $LTLIBEXPAT; do
21441
21442 acl_save_prefix="$prefix"
21443 prefix="$acl_final_prefix"
21444 acl_save_exec_prefix="$exec_prefix"
21445 exec_prefix="$acl_final_exec_prefix"
21446 eval x=\"$x\"
21447 exec_prefix="$acl_save_exec_prefix"
21448 prefix="$acl_save_prefix"
21449
21450 if test "X$x" = "X-L$additional_libdir"; then
21451 haveit=yes
21452 break
21453 fi
21454 done
21455 if test -z "$haveit"; then
21456 if test -d "$additional_libdir"; then
21457 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
21458 fi
21459 fi
21460 fi
21461 fi
21462 ;;
21463 -R*)
21464 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21465 if test "$enable_rpath" != no; then
21466 haveit=
21467 for x in $rpathdirs; do
21468 if test "X$x" = "X$dir"; then
21469 haveit=yes
21470 break
21471 fi
21472 done
21473 if test -z "$haveit"; then
21474 rpathdirs="$rpathdirs $dir"
21475 fi
21476 haveit=
21477 for x in $ltrpathdirs; do
21478 if test "X$x" = "X$dir"; then
21479 haveit=yes
21480 break
21481 fi
21482 done
21483 if test -z "$haveit"; then
21484 ltrpathdirs="$ltrpathdirs $dir"
21485 fi
21486 fi
21487 ;;
21488 -l*)
21489 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21490 ;;
21491 *.la)
21492 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21493 ;;
21494 *)
21495 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
21496 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
21497 ;;
21498 esac
21499 done
21500 fi
21501 else
21502 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
21503 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
21504 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
21505 else
21506 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
21507 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
21508 fi
21509 fi
21510 fi
21511 fi
21512 done
21513 done
21514 if test "X$rpathdirs" != "X"; then
21515 if test -n "$hardcode_libdir_separator"; then
21516 alldirs=
21517 for found_dir in $rpathdirs; do
21518 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21519 done
21520 acl_save_libdir="$libdir"
21521 libdir="$alldirs"
21522 eval flag=\"$hardcode_libdir_flag_spec\"
21523 libdir="$acl_save_libdir"
21524 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
21525 else
21526 for found_dir in $rpathdirs; do
21527 acl_save_libdir="$libdir"
21528 libdir="$found_dir"
21529 eval flag=\"$hardcode_libdir_flag_spec\"
21530 libdir="$acl_save_libdir"
21531 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
21532 done
21533 fi
21534 fi
21535 if test "X$ltrpathdirs" != "X"; then
21536 for found_dir in $ltrpathdirs; do
21537 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
21538 done
21539 fi
21540
21541
21542 ac_save_CPPFLAGS="$CPPFLAGS"
21543
21544 for element in $INCEXPAT; do
21545 haveit=
21546 for x in $CPPFLAGS; do
21547
21548 acl_save_prefix="$prefix"
21549 prefix="$acl_final_prefix"
21550 acl_save_exec_prefix="$exec_prefix"
21551 exec_prefix="$acl_final_exec_prefix"
21552 eval x=\"$x\"
21553 exec_prefix="$acl_save_exec_prefix"
21554 prefix="$acl_save_prefix"
21555
21556 if test "X$x" = "X$element"; then
21557 haveit=yes
21558 break
21559 fi
21560 done
21561 if test -z "$haveit"; then
21562 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21563 fi
21564 done
21565
21566
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
21568 $as_echo_n "checking for libexpat... " >&6; }
21569 if ${ac_cv_libexpat+:} false; then :
21570 $as_echo_n "(cached) " >&6
21571 else
21572
21573 ac_save_LIBS="$LIBS"
21574 LIBS="$LIBS $LIBEXPAT"
21575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21576 /* end confdefs.h. */
21577 #include "expat.h"
21578 int
21579 main ()
21580 {
21581 XML_Parser p = XML_ParserCreate (0);
21582 ;
21583 return 0;
21584 }
21585 _ACEOF
21586 if ac_fn_c_try_link "$LINENO"; then :
21587 ac_cv_libexpat=yes
21588 else
21589 ac_cv_libexpat=no
21590 fi
21591 rm -f core conftest.err conftest.$ac_objext \
21592 conftest$ac_exeext conftest.$ac_ext
21593 LIBS="$ac_save_LIBS"
21594
21595 fi
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
21597 $as_echo "$ac_cv_libexpat" >&6; }
21598 if test "$ac_cv_libexpat" = yes; then
21599 HAVE_LIBEXPAT=yes
21600
21601 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
21602
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
21604 $as_echo_n "checking how to link with libexpat... " >&6; }
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
21606 $as_echo "$LIBEXPAT" >&6; }
21607 else
21608 HAVE_LIBEXPAT=no
21609 CPPFLAGS="$ac_save_CPPFLAGS"
21610 LIBEXPAT=
21611 LTLIBEXPAT=
21612 fi
21613
21614
21615
21616
21617
21618
21619 if test "$HAVE_LIBEXPAT" != yes; then
21620 if test "$with_expat" = yes; then
21621 as_fn_error $? "expat is missing or unusable" "$LINENO" 5
21622 else
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
21624 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
21625 fi
21626 else
21627 save_LIBS=$LIBS
21628 LIBS="$LIBS $LIBEXPAT"
21629 for ac_func in XML_StopParser
21630 do :
21631 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
21632 if test "x$ac_cv_func_XML_StopParser" = xyes; then :
21633 cat >>confdefs.h <<_ACEOF
21634 #define HAVE_XML_STOPPARSER 1
21635 _ACEOF
21636
21637 fi
21638 done
21639
21640 LIBS=$save_LIBS
21641 fi
21642 fi
21643
21644
21645
21646
21647 # --------------------- #
21648 # Check for libpython. #
21649 # --------------------- #
21650
21651
21652
21653
21654
21655
21656 # Check whether --with-python was given.
21657 if test "${with_python+set}" = set; then :
21658 withval=$with_python;
21659 else
21660 with_python=auto
21661 fi
21662
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
21664 $as_echo_n "checking whether to use python... " >&6; }
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
21666 $as_echo "$with_python" >&6; }
21667
21668 if test "${with_python}" = no; then
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
21670 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
21671 have_libpython=no
21672 else
21673 case "${with_python}" in
21674 [\\/]* | ?:[\\/]*)
21675 if test -d "${with_python}"; then
21676 # Assume the python binary is ${with_python}/bin/python.
21677 python_prog="${with_python}/bin/python"
21678 python_prefix=
21679 # If python does not exit ${with_python}/bin, then try in
21680 # ${with_python}. On Windows/MinGW, this is where the Python
21681 # executable is.
21682 if test ! -x "${python_prog}"; then
21683 python_prog="${with_python}/python"
21684 python_prefix=
21685 fi
21686 if test ! -x "${python_prog}"; then
21687 # Fall back to gdb 7.0/7.1 behaviour.
21688 python_prog=missing
21689 python_prefix=${with_python}
21690 fi
21691 elif test -x "${with_python}"; then
21692 # While we can't run python compiled for $host (unless host == build),
21693 # the user could write a script that provides the needed information,
21694 # so we support that.
21695 python_prog=${with_python}
21696 python_prefix=
21697 else
21698 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
21699 fi
21700 ;;
21701 */*)
21702 # Disallow --with-python=foo/bar.
21703 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
21704 ;;
21705 *)
21706 # The user has either specified auto, yes, or the name of the python
21707 # program assumed to be in $PATH.
21708 python_prefix=
21709 case "${with_python}" in
21710 yes | auto)
21711 if test "${build}" = "${host}"; then
21712 # Look first for 'python', then 'python3'.
21713 for ac_prog in python python3
21714 do
21715 # Extract the first word of "$ac_prog", so it can be a program name with args.
21716 set dummy $ac_prog; ac_word=$2
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21718 $as_echo_n "checking for $ac_word... " >&6; }
21719 if ${ac_cv_path_python_prog_path+:} false; then :
21720 $as_echo_n "(cached) " >&6
21721 else
21722 case $python_prog_path in
21723 [\\/]* | ?:[\\/]*)
21724 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
21725 ;;
21726 *)
21727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21728 for as_dir in $PATH
21729 do
21730 IFS=$as_save_IFS
21731 test -z "$as_dir" && as_dir=.
21732 for ac_exec_ext in '' $ac_executable_extensions; do
21733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21734 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
21735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21736 break 2
21737 fi
21738 done
21739 done
21740 IFS=$as_save_IFS
21741
21742 ;;
21743 esac
21744 fi
21745 python_prog_path=$ac_cv_path_python_prog_path
21746 if test -n "$python_prog_path"; then
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
21748 $as_echo "$python_prog_path" >&6; }
21749 else
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21751 $as_echo "no" >&6; }
21752 fi
21753
21754
21755 test -n "$python_prog_path" && break
21756 done
21757 test -n "$python_prog_path" || python_prog_path="missing"
21758
21759 if test "${python_prog_path}" = missing; then
21760 python_prog=missing
21761 else
21762 python_prog=${python_prog_path}
21763 fi
21764 else
21765 # Not much we can do except assume the cross-compiler will find the
21766 # right files.
21767 python_prog=missing
21768 fi
21769 ;;
21770 *)
21771 # While we can't run python compiled for $host (unless host == build),
21772 # the user could write a script that provides the needed information,
21773 # so we support that.
21774 python_prog="${with_python}"
21775 # Extract the first word of "${python_prog}", so it can be a program name with args.
21776 set dummy ${python_prog}; ac_word=$2
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21778 $as_echo_n "checking for $ac_word... " >&6; }
21779 if ${ac_cv_path_python_prog_path+:} false; then :
21780 $as_echo_n "(cached) " >&6
21781 else
21782 case $python_prog_path in
21783 [\\/]* | ?:[\\/]*)
21784 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
21785 ;;
21786 *)
21787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21788 for as_dir in $PATH
21789 do
21790 IFS=$as_save_IFS
21791 test -z "$as_dir" && as_dir=.
21792 for ac_exec_ext in '' $ac_executable_extensions; do
21793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21794 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
21795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21796 break 2
21797 fi
21798 done
21799 done
21800 IFS=$as_save_IFS
21801
21802 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
21803 ;;
21804 esac
21805 fi
21806 python_prog_path=$ac_cv_path_python_prog_path
21807 if test -n "$python_prog_path"; then
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
21809 $as_echo "$python_prog_path" >&6; }
21810 else
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21812 $as_echo "no" >&6; }
21813 fi
21814
21815
21816 if test "${python_prog_path}" = missing; then
21817 as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
21818 fi
21819 ;;
21820 esac
21821 esac
21822
21823 if test "${python_prog}" != missing; then
21824 # We have a python program to use, but it may be too old.
21825 # Don't flag an error for --with-python=auto (the default).
21826 have_python_config=yes
21827 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
21828 if test $? != 0; then
21829 have_python_config=failed
21830 if test "${with_python}" != auto; then
21831 as_fn_error $? "failure running python-config --includes" "$LINENO" 5
21832 fi
21833 fi
21834 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
21835 if test $? != 0; then
21836 have_python_config=failed
21837 if test "${with_python}" != auto; then
21838 as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
21839 fi
21840 fi
21841 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
21842 if test $? != 0; then
21843 have_python_config=failed
21844 if test "${with_python}" != auto; then
21845 as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
21846 fi
21847 fi
21848 else
21849 # We do not have a python executable we can use to determine where
21850 # to find the Python headers and libs. We cannot guess the include
21851 # path from the python_prefix either, because that include path
21852 # depends on the Python version. So, there is nothing much we can
21853 # do except assume that the compiler will be able to find those files.
21854 python_includes=
21855 python_libs=
21856 have_python_config=no
21857 fi
21858
21859 # If we have python-config, only try the configuration it provides.
21860 # Otherwise fallback on the old way of trying different versions of
21861 # python in turn.
21862
21863 have_libpython=no
21864 if test "${have_python_config}" = yes; then
21865
21866
21867 new_CPPFLAGS=${python_includes}
21868 new_LIBS=${python_libs}
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
21870 $as_echo_n "checking for python... " >&6; }
21871 save_CPPFLAGS=$CPPFLAGS
21872 save_LIBS=$LIBS
21873 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
21874 LIBS="$new_LIBS $LIBS"
21875 found_usable_python=no
21876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21877 /* end confdefs.h. */
21878 #include "Python.h"
21879 int
21880 main ()
21881 {
21882
21883 #if PY_MAJOR_VERSION != 3
21884 # error "We only support Python 3"
21885 #endif
21886 Py_Initialize ();
21887
21888 ;
21889 return 0;
21890 }
21891 _ACEOF
21892 if ac_fn_c_try_link "$LINENO"; then :
21893 have_libpython=yes
21894 found_usable_python=yes
21895 PYTHON_CPPFLAGS=$new_CPPFLAGS
21896 PYTHON_LIBS=$new_LIBS
21897 fi
21898 rm -f core conftest.err conftest.$ac_objext \
21899 conftest$ac_exeext conftest.$ac_ext
21900 CPPFLAGS=$save_CPPFLAGS
21901 LIBS=$save_LIBS
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
21903 $as_echo "${found_usable_python}" >&6; }
21904
21905 fi
21906
21907 if test "${have_libpython}" = no; then
21908 case "${with_python}" in
21909 yes)
21910 as_fn_error $? "python is missing or unusable" "$LINENO" 5
21911 ;;
21912 auto)
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
21914 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
21915 ;;
21916 *)
21917 as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
21918 ;;
21919 esac
21920 else
21921 if test -n "${python_prefix}"; then
21922
21923 cat >>confdefs.h <<_ACEOF
21924 #define WITH_PYTHON_PATH "${python_prefix}"
21925 _ACEOF
21926
21927
21928 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
21929 if test "x$prefix" = xNONE; then
21930 test_prefix=/usr/local
21931 else
21932 test_prefix=$prefix
21933 fi
21934 else
21935 test_prefix=$exec_prefix
21936 fi
21937 value=0
21938 case ${python_prefix} in
21939 "${test_prefix}"|"${test_prefix}/"*|\
21940 '${exec_prefix}'|'${exec_prefix}/'*)
21941 value=1
21942 ;;
21943 esac
21944
21945 cat >>confdefs.h <<_ACEOF
21946 #define PYTHON_PATH_RELOCATABLE $value
21947 _ACEOF
21948
21949
21950 fi
21951 fi
21952 fi
21953
21954
21955 # Check whether --with-python-libdir was given.
21956 if test "${with_python_libdir+set}" = set; then :
21957 withval=$with_python_libdir;
21958 else
21959
21960 # If no python libdir is specified then select one based on
21961 # python's prefix path.
21962 if test -n "${python_prefix}"; then
21963 with_python_libdir=${python_prefix}/lib
21964 fi
21965
21966 fi
21967
21968
21969 if test "${have_libpython}" != no; then
21970
21971 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21972
21973 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
21974 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
21975 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
21976 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
21977 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
21978
21979 if test -n "${with_python_libdir}"; then
21980
21981 cat >>confdefs.h <<_ACEOF
21982 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
21983 _ACEOF
21984
21985
21986 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
21987 if test "x$prefix" = xNONE; then
21988 test_prefix=/usr/local
21989 else
21990 test_prefix=$prefix
21991 fi
21992 else
21993 test_prefix=$exec_prefix
21994 fi
21995 value=0
21996 case ${with_python_libdir} in
21997 "${test_prefix}"|"${test_prefix}/"*|\
21998 '${exec_prefix}'|'${exec_prefix}/'*)
21999 value=1
22000 ;;
22001 esac
22002
22003 cat >>confdefs.h <<_ACEOF
22004 #define PYTHON_LIBDIR_RELOCATABLE $value
22005 _ACEOF
22006
22007
22008 fi
22009
22010 # Flags needed to compile Python code (taken from python-config --cflags).
22011 # We cannot call python-config directly because it will output whatever was
22012 # used when compiling the Python interpreter itself, including flags which
22013 # would make the python-related objects be compiled differently from the
22014 # rest of GDB (e.g., -O2 and -fPIC).
22015 if test "${GCC}" = yes; then
22016 tentative_python_cflags="-fno-strict-aliasing -fwrapv"
22017 # Python headers recommend -DNDEBUG, but it's unclear if that just
22018 # refers to building Python itself. In release mode, though, it
22019 # doesn't hurt for the Python code in gdb to follow.
22020 $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
22021 fi
22022
22023 if test "x${tentative_python_cflags}" != x; then
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
22025 $as_echo_n "checking compiler flags for python code... " >&6; }
22026 for flag in ${tentative_python_cflags}; do
22027 # Check that the compiler accepts it
22028 saved_CFLAGS="$CFLAGS"
22029 CFLAGS="$CFLAGS $flag"
22030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22031 /* end confdefs.h. */
22032
22033 int
22034 main ()
22035 {
22036
22037 ;
22038 return 0;
22039 }
22040 _ACEOF
22041 if ac_fn_c_try_compile "$LINENO"; then :
22042 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
22043 fi
22044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045 CFLAGS="$saved_CFLAGS"
22046 done
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
22048 $as_echo "${PYTHON_CFLAGS}" >&6; }
22049 fi
22050
22051 # On x64 Windows, Python's include headers, and pyconfig.h in
22052 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
22053 # version of Windows. Unfortunately, MS_WIN64 is only defined if
22054 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
22055 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
22056 # The issue was reported to the Python community, but still isn't
22057 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
22058
22059 case "$gdb_host" in
22060 mingw64)
22061 if test "${GCC}" = yes; then
22062 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
22063 fi
22064 ;;
22065 esac
22066 else
22067 # Even if Python support is not compiled in, we need to have this file
22068 # included so that the "python" command, et.al., still exists.
22069 CONFIG_OBS="$CONFIG_OBS python/python.o"
22070 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
22071 fi
22072
22073 # Work around Python http://bugs.python.org/issue10112. See also
22074 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
22075 # no effect. Note that the only test after this that uses Python is
22076 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
22077 # run without -export-dynamic too.
22078 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
22079
22080
22081
22082
22083 if test "${have_libpython}" != no; then
22084 HAVE_PYTHON_TRUE=
22085 HAVE_PYTHON_FALSE='#'
22086 else
22087 HAVE_PYTHON_TRUE='#'
22088 HAVE_PYTHON_FALSE=
22089 fi
22090
22091
22092 # -------------------- #
22093 # Check for libguile. #
22094 # -------------------- #
22095
22096
22097
22098
22099
22100
22101 # Check whether --with-guile was given.
22102 if test "${with_guile+set}" = set; then :
22103 withval=$with_guile;
22104 else
22105 with_guile=auto
22106 fi
22107
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
22109 $as_echo_n "checking whether to use guile... " >&6; }
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
22111 $as_echo "$with_guile" >&6; }
22112
22113 # Extract the first word of "pkg-config", so it can be a program name with args.
22114 set dummy pkg-config; ac_word=$2
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22116 $as_echo_n "checking for $ac_word... " >&6; }
22117 if ${ac_cv_path_pkg_config_prog_path+:} false; then :
22118 $as_echo_n "(cached) " >&6
22119 else
22120 case $pkg_config_prog_path in
22121 [\\/]* | ?:[\\/]*)
22122 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
22123 ;;
22124 *)
22125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22126 for as_dir in $PATH
22127 do
22128 IFS=$as_save_IFS
22129 test -z "$as_dir" && as_dir=.
22130 for ac_exec_ext in '' $ac_executable_extensions; do
22131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22132 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
22133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22134 break 2
22135 fi
22136 done
22137 done
22138 IFS=$as_save_IFS
22139
22140 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
22141 ;;
22142 esac
22143 fi
22144 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
22145 if test -n "$pkg_config_prog_path"; then
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
22147 $as_echo "$pkg_config_prog_path" >&6; }
22148 else
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22150 $as_echo "no" >&6; }
22151 fi
22152
22153
22154
22155 try_guile_versions="guile-3.0 guile-2.2 guile-2.0"
22156 have_libguile=no
22157 case "${with_guile}" in
22158 no)
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
22160 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
22161 ;;
22162 auto)
22163 if test "${pkg_config_prog_path}" = "missing"; then
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
22165 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
22166 else
22167
22168 pkg_config=${pkg_config_prog_path}
22169 guile_version_list=${try_guile_versions}
22170 flag_errors=no
22171
22172 found_usable_guile=checking
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22174 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22175 for guile_version in ${guile_version_list}; do
22176 ${pkg_config} --exists ${guile_version} 2>/dev/null
22177 if test $? != 0; then
22178 continue
22179 fi
22180 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
22181 if test $? != 0; then
22182 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
22183 fi
22184 new_LIBS=`${pkg_config} --libs ${guile_version}`
22185 if test $? != 0; then
22186 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
22187 fi
22188 found_usable_guile=${guile_version}
22189 break
22190 done
22191 if test "${found_usable_guile}" = "checking"; then
22192 if test "${flag_errors}" = "yes"; then
22193 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
22194 else
22195 found_usable_guile=no
22196 fi
22197 fi
22198 if test "${found_usable_guile}" != no; then
22199 save_CPPFLAGS=$CPPFLAGS
22200 save_LIBS=$LIBS
22201 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
22202 LIBS="$LIBS $new_LIBS"
22203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22204 /* end confdefs.h. */
22205 #include "libguile.h"
22206 int
22207 main ()
22208 {
22209 scm_init_guile ();
22210 ;
22211 return 0;
22212 }
22213 _ACEOF
22214 if ac_fn_c_try_link "$LINENO"; then :
22215 have_libguile=yes
22216 GUILE_CPPFLAGS=$new_CPPFLAGS
22217 GUILE_LIBS=$new_LIBS
22218 else
22219 found_usable_guile=no
22220 fi
22221 rm -f core conftest.err conftest.$ac_objext \
22222 conftest$ac_exeext conftest.$ac_ext
22223 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
22224 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
22225
22226 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
22227
22228
22229 fi
22230
22231 CPPFLAGS=$save_CPPFLAGS
22232 LIBS=$save_LIBS
22233 if test "${found_usable_guile}" = no; then
22234 if test "${flag_errors}" = yes; then
22235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22237 as_fn_error $? "linking guile version ${guile_version} test program failed
22238 See \`config.log' for more details" "$LINENO" 5; }
22239 fi
22240 fi
22241 fi
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
22243 $as_echo "${found_usable_guile}" >&6; }
22244
22245 fi
22246 ;;
22247 yes)
22248 if test "${pkg_config_prog_path}" = "missing"; then
22249 as_fn_error $? "pkg-config not found" "$LINENO" 5
22250 fi
22251
22252 pkg_config=${pkg_config_prog_path}
22253 guile_version_list=${try_guile_versions}
22254 flag_errors=yes
22255
22256 found_usable_guile=checking
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22258 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22259 for guile_version in ${guile_version_list}; do
22260 ${pkg_config} --exists ${guile_version} 2>/dev/null
22261 if test $? != 0; then
22262 continue
22263 fi
22264 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
22265 if test $? != 0; then
22266 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
22267 fi
22268 new_LIBS=`${pkg_config} --libs ${guile_version}`
22269 if test $? != 0; then
22270 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
22271 fi
22272 found_usable_guile=${guile_version}
22273 break
22274 done
22275 if test "${found_usable_guile}" = "checking"; then
22276 if test "${flag_errors}" = "yes"; then
22277 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
22278 else
22279 found_usable_guile=no
22280 fi
22281 fi
22282 if test "${found_usable_guile}" != no; then
22283 save_CPPFLAGS=$CPPFLAGS
22284 save_LIBS=$LIBS
22285 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
22286 LIBS="$LIBS $new_LIBS"
22287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22288 /* end confdefs.h. */
22289 #include "libguile.h"
22290 int
22291 main ()
22292 {
22293 scm_init_guile ();
22294 ;
22295 return 0;
22296 }
22297 _ACEOF
22298 if ac_fn_c_try_link "$LINENO"; then :
22299 have_libguile=yes
22300 GUILE_CPPFLAGS=$new_CPPFLAGS
22301 GUILE_LIBS=$new_LIBS
22302 else
22303 found_usable_guile=no
22304 fi
22305 rm -f core conftest.err conftest.$ac_objext \
22306 conftest$ac_exeext conftest.$ac_ext
22307 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
22308 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
22309
22310 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
22311
22312
22313 fi
22314
22315 CPPFLAGS=$save_CPPFLAGS
22316 LIBS=$save_LIBS
22317 if test "${found_usable_guile}" = no; then
22318 if test "${flag_errors}" = yes; then
22319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22321 as_fn_error $? "linking guile version ${guile_version} test program failed
22322 See \`config.log' for more details" "$LINENO" 5; }
22323 fi
22324 fi
22325 fi
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
22327 $as_echo "${found_usable_guile}" >&6; }
22328
22329 ;;
22330 [\\/]* | ?:[\\/]*)
22331 if test -x "${with_guile}"; then
22332
22333 pkg_config=${with_guile}
22334 guile_version_list=${try_guile_versions}
22335 flag_errors=yes
22336
22337 found_usable_guile=checking
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22339 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22340 for guile_version in ${guile_version_list}; do
22341 ${pkg_config} --exists ${guile_version} 2>/dev/null
22342 if test $? != 0; then
22343 continue
22344 fi
22345 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
22346 if test $? != 0; then
22347 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
22348 fi
22349 new_LIBS=`${pkg_config} --libs ${guile_version}`
22350 if test $? != 0; then
22351 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
22352 fi
22353 found_usable_guile=${guile_version}
22354 break
22355 done
22356 if test "${found_usable_guile}" = "checking"; then
22357 if test "${flag_errors}" = "yes"; then
22358 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
22359 else
22360 found_usable_guile=no
22361 fi
22362 fi
22363 if test "${found_usable_guile}" != no; then
22364 save_CPPFLAGS=$CPPFLAGS
22365 save_LIBS=$LIBS
22366 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
22367 LIBS="$LIBS $new_LIBS"
22368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22369 /* end confdefs.h. */
22370 #include "libguile.h"
22371 int
22372 main ()
22373 {
22374 scm_init_guile ();
22375 ;
22376 return 0;
22377 }
22378 _ACEOF
22379 if ac_fn_c_try_link "$LINENO"; then :
22380 have_libguile=yes
22381 GUILE_CPPFLAGS=$new_CPPFLAGS
22382 GUILE_LIBS=$new_LIBS
22383 else
22384 found_usable_guile=no
22385 fi
22386 rm -f core conftest.err conftest.$ac_objext \
22387 conftest$ac_exeext conftest.$ac_ext
22388 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
22389 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
22390
22391 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
22392
22393
22394 fi
22395
22396 CPPFLAGS=$save_CPPFLAGS
22397 LIBS=$save_LIBS
22398 if test "${found_usable_guile}" = no; then
22399 if test "${flag_errors}" = yes; then
22400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22402 as_fn_error $? "linking guile version ${guile_version} test program failed
22403 See \`config.log' for more details" "$LINENO" 5; }
22404 fi
22405 fi
22406 fi
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
22408 $as_echo "${found_usable_guile}" >&6; }
22409
22410 else
22411 as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
22412 fi
22413 ;;
22414 "" | */*)
22415 # Disallow --with=guile="" and --with-guile=foo/bar.
22416 as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
22417 ;;
22418 *)
22419 # A space separate list of guile versions to try, in order.
22420 if test "${pkg_config_prog_path}" = "missing"; then
22421 as_fn_error $? "pkg-config not found" "$LINENO" 5
22422 fi
22423
22424 pkg_config=${pkg_config_prog_path}
22425 guile_version_list=${with_guile}
22426 flag_errors=yes
22427
22428 found_usable_guile=checking
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22430 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22431 for guile_version in ${guile_version_list}; do
22432 ${pkg_config} --exists ${guile_version} 2>/dev/null
22433 if test $? != 0; then
22434 continue
22435 fi
22436 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
22437 if test $? != 0; then
22438 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
22439 fi
22440 new_LIBS=`${pkg_config} --libs ${guile_version}`
22441 if test $? != 0; then
22442 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
22443 fi
22444 found_usable_guile=${guile_version}
22445 break
22446 done
22447 if test "${found_usable_guile}" = "checking"; then
22448 if test "${flag_errors}" = "yes"; then
22449 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
22450 else
22451 found_usable_guile=no
22452 fi
22453 fi
22454 if test "${found_usable_guile}" != no; then
22455 save_CPPFLAGS=$CPPFLAGS
22456 save_LIBS=$LIBS
22457 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
22458 LIBS="$LIBS $new_LIBS"
22459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h. */
22461 #include "libguile.h"
22462 int
22463 main ()
22464 {
22465 scm_init_guile ();
22466 ;
22467 return 0;
22468 }
22469 _ACEOF
22470 if ac_fn_c_try_link "$LINENO"; then :
22471 have_libguile=yes
22472 GUILE_CPPFLAGS=$new_CPPFLAGS
22473 GUILE_LIBS=$new_LIBS
22474 else
22475 found_usable_guile=no
22476 fi
22477 rm -f core conftest.err conftest.$ac_objext \
22478 conftest$ac_exeext conftest.$ac_ext
22479 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
22480 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
22481
22482 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
22483
22484
22485 fi
22486
22487 CPPFLAGS=$save_CPPFLAGS
22488 LIBS=$save_LIBS
22489 if test "${found_usable_guile}" = no; then
22490 if test "${flag_errors}" = yes; then
22491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22493 as_fn_error $? "linking guile version ${guile_version} test program failed
22494 See \`config.log' for more details" "$LINENO" 5; }
22495 fi
22496 fi
22497 fi
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
22499 $as_echo "${found_usable_guile}" >&6; }
22500
22501 ;;
22502 esac
22503
22504 if test "${have_libguile}" != no; then
22505 case "${with_guile}" in
22506 [\\/]* | ?:[\\/]*)
22507
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
22509 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
22510 if ${ac_cv_guild_program_name+:} false; then :
22511 $as_echo_n "(cached) " >&6
22512 else
22513 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
22514
22515 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
22516 # the 'guild' and 'bindir' variables. In that case, try to guess
22517 # what the program name is, at the risk of getting it wrong if
22518 # Guile was configured with '--program-suffix' or similar.
22519 if test "x$ac_cv_guild_program_name" = "x"; then
22520 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
22521 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
22522 fi
22523
22524 fi
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
22526 $as_echo "$ac_cv_guild_program_name" >&6; }
22527
22528 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
22529 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
22530 fi
22531
22532 GUILD="$ac_cv_guild_program_name"
22533
22534
22535 ;;
22536 *)
22537
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
22539 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
22540 if ${ac_cv_guild_program_name+:} false; then :
22541 $as_echo_n "(cached) " >&6
22542 else
22543 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
22544
22545 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
22546 # the 'guild' and 'bindir' variables. In that case, try to guess
22547 # what the program name is, at the risk of getting it wrong if
22548 # Guile was configured with '--program-suffix' or similar.
22549 if test "x$ac_cv_guild_program_name" = "x"; then
22550 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
22551 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
22552 fi
22553
22554 fi
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
22556 $as_echo "$ac_cv_guild_program_name" >&6; }
22557
22558 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
22559 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
22560 fi
22561
22562 GUILD="$ac_cv_guild_program_name"
22563
22564
22565 ;;
22566 esac
22567
22568
22569 if test "$cross_compiling" = no; then
22570 GUILD_TARGET_FLAG=
22571 else
22572 GUILD_TARGET_FLAG="--target=$host"
22573 fi
22574
22575
22576
22577
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
22579 $as_echo_n "checking whether guild supports this host... " >&6; }
22580 if ${ac_cv_guild_ok+:} false; then :
22581 $as_echo_n "(cached) " >&6
22582 else
22583 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
22584 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
22585 ac_cv_guild_ok=yes
22586 else
22587 ac_cv_guild_ok=no
22588 fi
22589 fi
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
22591 $as_echo "$ac_cv_guild_ok" >&6; }
22592
22593 if test "$ac_cv_guild_ok" = no; then
22594 have_libguile=no
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
22596 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
22597 fi
22598 fi
22599
22600 if test "${have_libguile}" != no; then
22601
22602 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
22603
22604 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
22605 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
22606 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
22607 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
22608 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
22609
22610 save_LIBS="$LIBS"
22611 save_CPPFLAGS="$CPPFLAGS"
22612 LIBS="$GUILE_LIBS"
22613 CPPFLAGS="$GUILE_CPPFLAGS"
22614 for ac_func in scm_new_smob
22615 do :
22616 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
22617 if test "x$ac_cv_func_scm_new_smob" = xyes; then :
22618 cat >>confdefs.h <<_ACEOF
22619 #define HAVE_SCM_NEW_SMOB 1
22620 _ACEOF
22621
22622 fi
22623 done
22624
22625 LIBS="$save_LIBS"
22626 CPPFLAGS="$save_CPPFLAGS"
22627 else
22628 # Even if Guile support is not compiled in, we need to have these files
22629 # included.
22630 CONFIG_OBS="$CONFIG_OBS guile/guile.o"
22631 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
22632 fi
22633
22634
22635 if test "${have_libguile}" != no; then
22636 HAVE_GUILE_TRUE=
22637 HAVE_GUILE_FALSE='#'
22638 else
22639 HAVE_GUILE_TRUE='#'
22640 HAVE_GUILE_FALSE=
22641 fi
22642
22643
22644 # ---------------------------- #
22645 # Check for source highlight. #
22646 # ---------------------------- #
22647
22648 SRCHIGH_LIBS=
22649 SRCHIGH_CFLAGS=
22650
22651 # Check whether --enable-source-highlight was given.
22652 if test "${enable_source_highlight+set}" = set; then :
22653 enableval=$enable_source_highlight;
22654 case $enableval in
22655 yes | no | auto)
22656 ;;
22657 *)
22658 as_fn_error $? "bad value $enableval for --enable-source-highlight" "$LINENO" 5
22659 ;;
22660 esac
22661
22662 else
22663 enable_source_highlight=auto
22664 fi
22665
22666
22667 if test "${enable_source_highlight}" != "no"; then
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
22669 $as_echo_n "checking for the source-highlight library... " >&6; }
22670 if test "${pkg_config_prog_path}" = "missing"; then
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
22672 $as_echo "no - pkg-config not found" >&6; }
22673 if test "${enable_source_highlight}" = "yes"; then
22674 as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5
22675 fi
22676 else
22677 if ${pkg_config_prog_path} --exists source-highlight; then
22678 case "$LDFLAGS" in
22679 *static-libstdc*)
22680 as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
22681 ;;
22682 esac
22683
22684 srchigh_pkg_cflags=`${pkg_config_prog_path} --cflags source-highlight`
22685 srchigh_pkg_libs=`${pkg_config_prog_path} --libs source-highlight`
22686
22687 # Now that we have found a source-highlight library, check if we can use
22688 # it. In particular, we're trying to detect the situation that the
22689 # library is using the new libstdc++ library abi ( see
22690 # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
22691 # while the compiler being used to compile gdb is using the old abi.
22692 # Such a situation will result in an undefined reference to
22693 # srchilite::SourceHighlight::SourceHighlight(std::string const&).
22694 # This situation can occur for instance when using a source highlight
22695 # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
22696 ac_ext=cpp
22697 ac_cpp='$CXXCPP $CPPFLAGS'
22698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22701
22702 save_CXXFLAGS="$CXXFLAGS"
22703 save_LIBS="$LIBS"
22704 CXXFLAGS="$CXXFLAGS $srchigh_pkg_cflags"
22705 LIBS="$LIBS $srchigh_pkg_libs"
22706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22707 /* end confdefs.h. */
22708 #include <srchilite/sourcehighlight.h>
22709 int
22710 main ()
22711 {
22712 std::string outlang = "esc.outlang";
22713 new srchilite::SourceHighlight (outlang);
22714
22715 ;
22716 return 0;
22717 }
22718 _ACEOF
22719 if ac_fn_cxx_try_link "$LINENO"; then :
22720 have_usable_source_highlight=yes
22721 else
22722 have_usable_source_highlight=no
22723
22724 fi
22725 rm -f core conftest.err conftest.$ac_objext \
22726 conftest$ac_exeext conftest.$ac_ext
22727 CXXFLAGS="$save_CXXFLAGS"
22728 LIBS="$save_LIBS"
22729 ac_ext=c
22730 ac_cpp='$CPP $CPPFLAGS'
22731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22734
22735
22736 if test "${have_usable_source_highlight}" = "yes"; then
22737
22738 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
22739
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22741 $as_echo "yes" >&6; }
22742 SRCHIGH_CFLAGS="$srchigh_pkg_cflags"
22743 SRCHIGH_LIBS="$srchigh_pkg_libs"
22744 else
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22746 $as_echo "no" >&6; }
22747 if test "${enable_source_highlight}" = "yes"; then
22748 as_fn_error $? "source-highlight in your system could not be used" "$LINENO" 5
22749 fi
22750 fi
22751 else
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22753 $as_echo "no" >&6; }
22754 if test "${enable_source_highlight}" = "yes"; then
22755 as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5
22756 fi
22757 fi
22758 fi
22759 fi
22760
22761
22762
22763 # ------------------------- #
22764 # Checks for header files. #
22765 # ------------------------- #
22766
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22768 $as_echo_n "checking for ANSI C header files... " >&6; }
22769 if ${ac_cv_header_stdc+:} false; then :
22770 $as_echo_n "(cached) " >&6
22771 else
22772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22773 /* end confdefs.h. */
22774 #include <stdlib.h>
22775 #include <stdarg.h>
22776 #include <string.h>
22777 #include <float.h>
22778
22779 int
22780 main ()
22781 {
22782
22783 ;
22784 return 0;
22785 }
22786 _ACEOF
22787 if ac_fn_c_try_compile "$LINENO"; then :
22788 ac_cv_header_stdc=yes
22789 else
22790 ac_cv_header_stdc=no
22791 fi
22792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22793
22794 if test $ac_cv_header_stdc = yes; then
22795 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22797 /* end confdefs.h. */
22798 #include <string.h>
22799
22800 _ACEOF
22801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22802 $EGREP "memchr" >/dev/null 2>&1; then :
22803
22804 else
22805 ac_cv_header_stdc=no
22806 fi
22807 rm -f conftest*
22808
22809 fi
22810
22811 if test $ac_cv_header_stdc = yes; then
22812 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22814 /* end confdefs.h. */
22815 #include <stdlib.h>
22816
22817 _ACEOF
22818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22819 $EGREP "free" >/dev/null 2>&1; then :
22820
22821 else
22822 ac_cv_header_stdc=no
22823 fi
22824 rm -f conftest*
22825
22826 fi
22827
22828 if test $ac_cv_header_stdc = yes; then
22829 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22830 if test "$cross_compiling" = yes; then :
22831 :
22832 else
22833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22834 /* end confdefs.h. */
22835 #include <ctype.h>
22836 #include <stdlib.h>
22837 #if ((' ' & 0x0FF) == 0x020)
22838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22840 #else
22841 # define ISLOWER(c) \
22842 (('a' <= (c) && (c) <= 'i') \
22843 || ('j' <= (c) && (c) <= 'r') \
22844 || ('s' <= (c) && (c) <= 'z'))
22845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22846 #endif
22847
22848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22849 int
22850 main ()
22851 {
22852 int i;
22853 for (i = 0; i < 256; i++)
22854 if (XOR (islower (i), ISLOWER (i))
22855 || toupper (i) != TOUPPER (i))
22856 return 2;
22857 return 0;
22858 }
22859 _ACEOF
22860 if ac_fn_c_try_run "$LINENO"; then :
22861
22862 else
22863 ac_cv_header_stdc=no
22864 fi
22865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22866 conftest.$ac_objext conftest.beam conftest.$ac_ext
22867 fi
22868
22869 fi
22870 fi
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22872 $as_echo "$ac_cv_header_stdc" >&6; }
22873 if test $ac_cv_header_stdc = yes; then
22874
22875 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
22876
22877 fi
22878
22879 # elf_hp.h is for HP/UX 64-bit shared library support.
22880 for ac_header in nlist.h machine/reg.h \
22881 thread_db.h \
22882 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
22883 sys/procctl.h sys/resource.h sys/ptrace.h ptrace.h \
22884 sys/reg.h sys/debugreg.h \
22885 termios.h elf_hp.h
22886 do :
22887 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22888 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22889 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22890 cat >>confdefs.h <<_ACEOF
22891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22892 _ACEOF
22893
22894 fi
22895
22896 done
22897
22898 for ac_header in sys/user.h
22899 do :
22900 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
22901 # include <sys/param.h>
22902 #endif
22903
22904 "
22905 if test "x$ac_cv_header_sys_user_h" = xyes; then :
22906 cat >>confdefs.h <<_ACEOF
22907 #define HAVE_SYS_USER_H 1
22908 _ACEOF
22909
22910 fi
22911
22912 done
22913
22914
22915 for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h
22916 do :
22917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22918 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22919 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22920 cat >>confdefs.h <<_ACEOF
22921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22922 _ACEOF
22923
22924 fi
22925
22926 done
22927
22928 for ac_header in term.h
22929 do :
22930 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
22931 # include <curses.h>
22932 #endif
22933
22934 "
22935 if test "x$ac_cv_header_term_h" = xyes; then :
22936 cat >>confdefs.h <<_ACEOF
22937 #define HAVE_TERM_H 1
22938 _ACEOF
22939
22940 fi
22941
22942 done
22943
22944
22945 for ac_header in sys/socket.h
22946 do :
22947 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
22948 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
22949 cat >>confdefs.h <<_ACEOF
22950 #define HAVE_SYS_SOCKET_H 1
22951 _ACEOF
22952
22953 fi
22954
22955 done
22956
22957 for ac_header in ws2tcpip.h
22958 do :
22959 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
22960 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
22961 cat >>confdefs.h <<_ACEOF
22962 #define HAVE_WS2TCPIP_H 1
22963 _ACEOF
22964
22965 fi
22966
22967 done
22968
22969 for ac_header in execinfo.h
22970 do :
22971 ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
22972 if test "x$ac_cv_header_execinfo_h" = xyes; then :
22973 cat >>confdefs.h <<_ACEOF
22974 #define HAVE_EXECINFO_H 1
22975 _ACEOF
22976
22977 fi
22978
22979 done
22980
22981
22982 # ------------------------- #
22983 # Checks for declarations. #
22984 # ------------------------- #
22985
22986
22987 # Check for presence and size of long long.
22988 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22989 if test "x$ac_cv_type_long_long" = xyes; then :
22990
22991 cat >>confdefs.h <<_ACEOF
22992 #define HAVE_LONG_LONG 1
22993 _ACEOF
22994
22995 # The cast to long int works around a bug in the HP C Compiler
22996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22998 # This bug is HP SR number 8606223364.
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23000 $as_echo_n "checking size of long long... " >&6; }
23001 if ${ac_cv_sizeof_long_long+:} false; then :
23002 $as_echo_n "(cached) " >&6
23003 else
23004 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
23005
23006 else
23007 if test "$ac_cv_type_long_long" = yes; then
23008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23010 as_fn_error 77 "cannot compute sizeof (long long)
23011 See \`config.log' for more details" "$LINENO" 5; }
23012 else
23013 ac_cv_sizeof_long_long=0
23014 fi
23015 fi
23016
23017 fi
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23019 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23020
23021
23022
23023 cat >>confdefs.h <<_ACEOF
23024 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23025 _ACEOF
23026
23027
23028 fi
23029
23030
23031 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
23032 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
23033 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
23034 ac_have_decl=1
23035 else
23036 ac_have_decl=0
23037 fi
23038
23039 cat >>confdefs.h <<_ACEOF
23040 #define HAVE_DECL_BASENAME $ac_have_decl
23041 _ACEOF
23042 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
23043 if test "x$ac_cv_have_decl_ffs" = xyes; then :
23044 ac_have_decl=1
23045 else
23046 ac_have_decl=0
23047 fi
23048
23049 cat >>confdefs.h <<_ACEOF
23050 #define HAVE_DECL_FFS $ac_have_decl
23051 _ACEOF
23052 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
23053 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
23054 ac_have_decl=1
23055 else
23056 ac_have_decl=0
23057 fi
23058
23059 cat >>confdefs.h <<_ACEOF
23060 #define HAVE_DECL_ASPRINTF $ac_have_decl
23061 _ACEOF
23062 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
23063 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
23064 ac_have_decl=1
23065 else
23066 ac_have_decl=0
23067 fi
23068
23069 cat >>confdefs.h <<_ACEOF
23070 #define HAVE_DECL_VASPRINTF $ac_have_decl
23071 _ACEOF
23072 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
23073 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
23074 ac_have_decl=1
23075 else
23076 ac_have_decl=0
23077 fi
23078
23079 cat >>confdefs.h <<_ACEOF
23080 #define HAVE_DECL_SNPRINTF $ac_have_decl
23081 _ACEOF
23082 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
23083 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
23084 ac_have_decl=1
23085 else
23086 ac_have_decl=0
23087 fi
23088
23089 cat >>confdefs.h <<_ACEOF
23090 #define HAVE_DECL_VSNPRINTF $ac_have_decl
23091 _ACEOF
23092
23093 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
23094 if test "x$ac_cv_have_decl_strtol" = xyes; then :
23095 ac_have_decl=1
23096 else
23097 ac_have_decl=0
23098 fi
23099
23100 cat >>confdefs.h <<_ACEOF
23101 #define HAVE_DECL_STRTOL $ac_have_decl
23102 _ACEOF
23103 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
23104 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
23105 ac_have_decl=1
23106 else
23107 ac_have_decl=0
23108 fi
23109
23110 cat >>confdefs.h <<_ACEOF
23111 #define HAVE_DECL_STRTOUL $ac_have_decl
23112 _ACEOF
23113 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23114 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
23115 ac_have_decl=1
23116 else
23117 ac_have_decl=0
23118 fi
23119
23120 cat >>confdefs.h <<_ACEOF
23121 #define HAVE_DECL_STRTOLL $ac_have_decl
23122 _ACEOF
23123 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23124 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
23125 ac_have_decl=1
23126 else
23127 ac_have_decl=0
23128 fi
23129
23130 cat >>confdefs.h <<_ACEOF
23131 #define HAVE_DECL_STRTOULL $ac_have_decl
23132 _ACEOF
23133
23134 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
23135 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
23136 ac_have_decl=1
23137 else
23138 ac_have_decl=0
23139 fi
23140
23141 cat >>confdefs.h <<_ACEOF
23142 #define HAVE_DECL_STRVERSCMP $ac_have_decl
23143 _ACEOF
23144
23145
23146
23147 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
23148 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
23149 ac_have_decl=1
23150 else
23151 ac_have_decl=0
23152 fi
23153
23154 cat >>confdefs.h <<_ACEOF
23155 #define HAVE_DECL_SNPRINTF $ac_have_decl
23156 _ACEOF
23157
23158
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
23160 $as_echo_n "checking for LC_MESSAGES... " >&6; }
23161 if ${am_cv_val_LC_MESSAGES+:} false; then :
23162 $as_echo_n "(cached) " >&6
23163 else
23164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23165 /* end confdefs.h. */
23166 #include <locale.h>
23167 int
23168 main ()
23169 {
23170 return LC_MESSAGES
23171 ;
23172 return 0;
23173 }
23174 _ACEOF
23175 if ac_fn_c_try_link "$LINENO"; then :
23176 am_cv_val_LC_MESSAGES=yes
23177 else
23178 am_cv_val_LC_MESSAGES=no
23179 fi
23180 rm -f core conftest.err conftest.$ac_objext \
23181 conftest$ac_exeext conftest.$ac_ext
23182 fi
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
23184 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
23185 if test $am_cv_val_LC_MESSAGES = yes; then
23186
23187 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
23188
23189 fi
23190
23191
23192 # ------------------ #
23193 # Checks for types. #
23194 # ------------------ #
23195
23196 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
23197 #if HAVE_SYS_SOCKET_H
23198 # include <sys/socket.h>
23199 #elif HAVE_WS2TCPIP_H
23200 # include <ws2tcpip.h>
23201 #endif
23202
23203 "
23204 if test "x$ac_cv_type_socklen_t" = xyes; then :
23205
23206 cat >>confdefs.h <<_ACEOF
23207 #define HAVE_SOCKLEN_T 1
23208 _ACEOF
23209
23210
23211 fi
23212
23213
23214 # ------------------------------------- #
23215 # Checks for compiler characteristics. #
23216 # ------------------------------------- #
23217
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23219 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23220 if ${ac_cv_c_const+:} false; then :
23221 $as_echo_n "(cached) " >&6
23222 else
23223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23224 /* end confdefs.h. */
23225
23226 int
23227 main ()
23228 {
23229
23230 #ifndef __cplusplus
23231 /* Ultrix mips cc rejects this sort of thing. */
23232 typedef int charset[2];
23233 const charset cs = { 0, 0 };
23234 /* SunOS 4.1.1 cc rejects this. */
23235 char const *const *pcpcc;
23236 char **ppc;
23237 /* NEC SVR4.0.2 mips cc rejects this. */
23238 struct point {int x, y;};
23239 static struct point const zero = {0,0};
23240 /* AIX XL C 1.02.0.0 rejects this.
23241 It does not let you subtract one const X* pointer from another in
23242 an arm of an if-expression whose if-part is not a constant
23243 expression */
23244 const char *g = "string";
23245 pcpcc = &g + (g ? g-g : 0);
23246 /* HPUX 7.0 cc rejects these. */
23247 ++pcpcc;
23248 ppc = (char**) pcpcc;
23249 pcpcc = (char const *const *) ppc;
23250 { /* SCO 3.2v4 cc rejects this sort of thing. */
23251 char tx;
23252 char *t = &tx;
23253 char const *s = 0 ? (char *) 0 : (char const *) 0;
23254
23255 *t++ = 0;
23256 if (s) return 0;
23257 }
23258 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23259 int x[] = {25, 17};
23260 const int *foo = &x[0];
23261 ++foo;
23262 }
23263 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23264 typedef const int *iptr;
23265 iptr p = 0;
23266 ++p;
23267 }
23268 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23269 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23270 struct s { int j; const int *ap[3]; } bx;
23271 struct s *b = &bx; b->j = 5;
23272 }
23273 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23274 const int foo = 10;
23275 if (!foo) return 0;
23276 }
23277 return !cs[0] && !zero.x;
23278 #endif
23279
23280 ;
23281 return 0;
23282 }
23283 _ACEOF
23284 if ac_fn_c_try_compile "$LINENO"; then :
23285 ac_cv_c_const=yes
23286 else
23287 ac_cv_c_const=no
23288 fi
23289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23290 fi
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23292 $as_echo "$ac_cv_c_const" >&6; }
23293 if test $ac_cv_c_const = no; then
23294
23295 $as_echo "#define const /**/" >>confdefs.h
23296
23297 fi
23298
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
23300 $as_echo_n "checking for inline... " >&6; }
23301 if ${ac_cv_c_inline+:} false; then :
23302 $as_echo_n "(cached) " >&6
23303 else
23304 ac_cv_c_inline=no
23305 for ac_kw in inline __inline__ __inline; do
23306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23307 /* end confdefs.h. */
23308 #ifndef __cplusplus
23309 typedef int foo_t;
23310 static $ac_kw foo_t static_foo () {return 0; }
23311 $ac_kw foo_t foo () {return 0; }
23312 #endif
23313
23314 _ACEOF
23315 if ac_fn_c_try_compile "$LINENO"; then :
23316 ac_cv_c_inline=$ac_kw
23317 fi
23318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23319 test "$ac_cv_c_inline" != no && break
23320 done
23321
23322 fi
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
23324 $as_echo "$ac_cv_c_inline" >&6; }
23325
23326 case $ac_cv_c_inline in
23327 inline | yes) ;;
23328 *)
23329 case $ac_cv_c_inline in
23330 no) ac_val=;;
23331 *) ac_val=$ac_cv_c_inline;;
23332 esac
23333 cat >>confdefs.h <<_ACEOF
23334 #ifndef __cplusplus
23335 #define inline $ac_val
23336 #endif
23337 _ACEOF
23338 ;;
23339 esac
23340
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23342 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23343 if ${ac_cv_c_bigendian+:} false; then :
23344 $as_echo_n "(cached) " >&6
23345 else
23346 ac_cv_c_bigendian=unknown
23347 # See if we're dealing with a universal compiler.
23348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23349 /* end confdefs.h. */
23350 #ifndef __APPLE_CC__
23351 not a universal capable compiler
23352 #endif
23353 typedef int dummy;
23354
23355 _ACEOF
23356 if ac_fn_c_try_compile "$LINENO"; then :
23357
23358 # Check for potential -arch flags. It is not universal unless
23359 # there are at least two -arch flags with different values.
23360 ac_arch=
23361 ac_prev=
23362 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23363 if test -n "$ac_prev"; then
23364 case $ac_word in
23365 i?86 | x86_64 | ppc | ppc64)
23366 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23367 ac_arch=$ac_word
23368 else
23369 ac_cv_c_bigendian=universal
23370 break
23371 fi
23372 ;;
23373 esac
23374 ac_prev=
23375 elif test "x$ac_word" = "x-arch"; then
23376 ac_prev=arch
23377 fi
23378 done
23379 fi
23380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23381 if test $ac_cv_c_bigendian = unknown; then
23382 # See if sys/param.h defines the BYTE_ORDER macro.
23383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23384 /* end confdefs.h. */
23385 #include <sys/types.h>
23386 #include <sys/param.h>
23387
23388 int
23389 main ()
23390 {
23391 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23392 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23393 && LITTLE_ENDIAN)
23394 bogus endian macros
23395 #endif
23396
23397 ;
23398 return 0;
23399 }
23400 _ACEOF
23401 if ac_fn_c_try_compile "$LINENO"; then :
23402 # It does; now see whether it defined to BIG_ENDIAN or not.
23403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23404 /* end confdefs.h. */
23405 #include <sys/types.h>
23406 #include <sys/param.h>
23407
23408 int
23409 main ()
23410 {
23411 #if BYTE_ORDER != BIG_ENDIAN
23412 not big endian
23413 #endif
23414
23415 ;
23416 return 0;
23417 }
23418 _ACEOF
23419 if ac_fn_c_try_compile "$LINENO"; then :
23420 ac_cv_c_bigendian=yes
23421 else
23422 ac_cv_c_bigendian=no
23423 fi
23424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23425 fi
23426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23427 fi
23428 if test $ac_cv_c_bigendian = unknown; then
23429 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23431 /* end confdefs.h. */
23432 #include <limits.h>
23433
23434 int
23435 main ()
23436 {
23437 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23438 bogus endian macros
23439 #endif
23440
23441 ;
23442 return 0;
23443 }
23444 _ACEOF
23445 if ac_fn_c_try_compile "$LINENO"; then :
23446 # It does; now see whether it defined to _BIG_ENDIAN or not.
23447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23448 /* end confdefs.h. */
23449 #include <limits.h>
23450
23451 int
23452 main ()
23453 {
23454 #ifndef _BIG_ENDIAN
23455 not big endian
23456 #endif
23457
23458 ;
23459 return 0;
23460 }
23461 _ACEOF
23462 if ac_fn_c_try_compile "$LINENO"; then :
23463 ac_cv_c_bigendian=yes
23464 else
23465 ac_cv_c_bigendian=no
23466 fi
23467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23468 fi
23469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23470 fi
23471 if test $ac_cv_c_bigendian = unknown; then
23472 # Compile a test program.
23473 if test "$cross_compiling" = yes; then :
23474 # Try to guess by grepping values from an object file.
23475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23476 /* end confdefs.h. */
23477 short int ascii_mm[] =
23478 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23479 short int ascii_ii[] =
23480 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23481 int use_ascii (int i) {
23482 return ascii_mm[i] + ascii_ii[i];
23483 }
23484 short int ebcdic_ii[] =
23485 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23486 short int ebcdic_mm[] =
23487 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23488 int use_ebcdic (int i) {
23489 return ebcdic_mm[i] + ebcdic_ii[i];
23490 }
23491 extern int foo;
23492
23493 int
23494 main ()
23495 {
23496 return use_ascii (foo) == use_ebcdic (foo);
23497 ;
23498 return 0;
23499 }
23500 _ACEOF
23501 if ac_fn_c_try_compile "$LINENO"; then :
23502 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23503 ac_cv_c_bigendian=yes
23504 fi
23505 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23506 if test "$ac_cv_c_bigendian" = unknown; then
23507 ac_cv_c_bigendian=no
23508 else
23509 # finding both strings is unlikely to happen, but who knows?
23510 ac_cv_c_bigendian=unknown
23511 fi
23512 fi
23513 fi
23514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23515 else
23516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23517 /* end confdefs.h. */
23518 $ac_includes_default
23519 int
23520 main ()
23521 {
23522
23523 /* Are we little or big endian? From Harbison&Steele. */
23524 union
23525 {
23526 long int l;
23527 char c[sizeof (long int)];
23528 } u;
23529 u.l = 1;
23530 return u.c[sizeof (long int) - 1] == 1;
23531
23532 ;
23533 return 0;
23534 }
23535 _ACEOF
23536 if ac_fn_c_try_run "$LINENO"; then :
23537 ac_cv_c_bigendian=no
23538 else
23539 ac_cv_c_bigendian=yes
23540 fi
23541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23542 conftest.$ac_objext conftest.beam conftest.$ac_ext
23543 fi
23544
23545 fi
23546 fi
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23548 $as_echo "$ac_cv_c_bigendian" >&6; }
23549 case $ac_cv_c_bigendian in #(
23550 yes)
23551 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23552 ;; #(
23553 no)
23554 ;; #(
23555 universal)
23556
23557 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23558
23559 ;; #(
23560 *)
23561 as_fn_error $? "unknown endianness
23562 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23563 esac
23564
23565
23566 # ------------------------------ #
23567 # Checks for library functions. #
23568 # ------------------------------ #
23569
23570 for ac_func in getuid getgid \
23571 pread pread64 pwrite resize_term \
23572 getpgid setsid \
23573 sigsetmask \
23574 ttrace wresize setlocale iconvlist libiconvlist btowc \
23575 setrlimit getrlimit posix_madvise waitpid \
23576 use_default_colors
23577 do :
23578 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23579 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23580 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23581 cat >>confdefs.h <<_ACEOF
23582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23583 _ACEOF
23584
23585 fi
23586 done
23587
23588
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23590 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23591 if ${am_cv_langinfo_codeset+:} false; then :
23592 $as_echo_n "(cached) " >&6
23593 else
23594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23595 /* end confdefs.h. */
23596 #include <langinfo.h>
23597 int
23598 main ()
23599 {
23600 char* cs = nl_langinfo(CODESET);
23601 ;
23602 return 0;
23603 }
23604 _ACEOF
23605 if ac_fn_c_try_link "$LINENO"; then :
23606 am_cv_langinfo_codeset=yes
23607 else
23608 am_cv_langinfo_codeset=no
23609 fi
23610 rm -f core conftest.err conftest.$ac_objext \
23611 conftest$ac_exeext conftest.$ac_ext
23612
23613 fi
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
23615 $as_echo "$am_cv_langinfo_codeset" >&6; }
23616 if test $am_cv_langinfo_codeset = yes; then
23617
23618 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23619
23620 fi
23621
23622 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23623 if test "x$ac_cv_type_size_t" = xyes; then :
23624
23625 else
23626
23627 cat >>confdefs.h <<_ACEOF
23628 #define size_t unsigned int
23629 _ACEOF
23630
23631 fi
23632
23633
23634
23635
23636 for ac_header in $ac_header_list
23637 do :
23638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23639 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23640 "
23641 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23642 cat >>confdefs.h <<_ACEOF
23643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23644 _ACEOF
23645
23646 fi
23647
23648 done
23649
23650
23651
23652
23653
23654
23655
23656 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23657 if test "x$ac_cv_type_pid_t" = xyes; then :
23658
23659 else
23660
23661 cat >>confdefs.h <<_ACEOF
23662 #define pid_t int
23663 _ACEOF
23664
23665 fi
23666
23667
23668 # Set the 'development' global.
23669 . $srcdir/../bfd/development.sh
23670
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23672 $as_echo_n "checking for ANSI C header files... " >&6; }
23673 if ${ac_cv_header_stdc+:} false; then :
23674 $as_echo_n "(cached) " >&6
23675 else
23676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23677 /* end confdefs.h. */
23678 #include <stdlib.h>
23679 #include <stdarg.h>
23680 #include <string.h>
23681 #include <float.h>
23682
23683 int
23684 main ()
23685 {
23686
23687 ;
23688 return 0;
23689 }
23690 _ACEOF
23691 if ac_fn_c_try_compile "$LINENO"; then :
23692 ac_cv_header_stdc=yes
23693 else
23694 ac_cv_header_stdc=no
23695 fi
23696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23697
23698 if test $ac_cv_header_stdc = yes; then
23699 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23701 /* end confdefs.h. */
23702 #include <string.h>
23703
23704 _ACEOF
23705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23706 $EGREP "memchr" >/dev/null 2>&1; then :
23707
23708 else
23709 ac_cv_header_stdc=no
23710 fi
23711 rm -f conftest*
23712
23713 fi
23714
23715 if test $ac_cv_header_stdc = yes; then
23716 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23718 /* end confdefs.h. */
23719 #include <stdlib.h>
23720
23721 _ACEOF
23722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23723 $EGREP "free" >/dev/null 2>&1; then :
23724
23725 else
23726 ac_cv_header_stdc=no
23727 fi
23728 rm -f conftest*
23729
23730 fi
23731
23732 if test $ac_cv_header_stdc = yes; then
23733 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23734 if test "$cross_compiling" = yes; then :
23735 :
23736 else
23737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23738 /* end confdefs.h. */
23739 #include <ctype.h>
23740 #include <stdlib.h>
23741 #if ((' ' & 0x0FF) == 0x020)
23742 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23743 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23744 #else
23745 # define ISLOWER(c) \
23746 (('a' <= (c) && (c) <= 'i') \
23747 || ('j' <= (c) && (c) <= 'r') \
23748 || ('s' <= (c) && (c) <= 'z'))
23749 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23750 #endif
23751
23752 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23753 int
23754 main ()
23755 {
23756 int i;
23757 for (i = 0; i < 256; i++)
23758 if (XOR (islower (i), ISLOWER (i))
23759 || toupper (i) != TOUPPER (i))
23760 return 2;
23761 return 0;
23762 }
23763 _ACEOF
23764 if ac_fn_c_try_run "$LINENO"; then :
23765
23766 else
23767 ac_cv_header_stdc=no
23768 fi
23769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23770 conftest.$ac_objext conftest.beam conftest.$ac_ext
23771 fi
23772
23773 fi
23774 fi
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23776 $as_echo "$ac_cv_header_stdc" >&6; }
23777 if test $ac_cv_header_stdc = yes; then
23778
23779 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
23780
23781 fi
23782
23783 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23784 # for constant arguments. Useless!
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
23786 $as_echo_n "checking for working alloca.h... " >&6; }
23787 if ${ac_cv_working_alloca_h+:} false; then :
23788 $as_echo_n "(cached) " >&6
23789 else
23790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23791 /* end confdefs.h. */
23792 #include <alloca.h>
23793 int
23794 main ()
23795 {
23796 char *p = (char *) alloca (2 * sizeof (int));
23797 if (p) return 0;
23798 ;
23799 return 0;
23800 }
23801 _ACEOF
23802 if ac_fn_c_try_link "$LINENO"; then :
23803 ac_cv_working_alloca_h=yes
23804 else
23805 ac_cv_working_alloca_h=no
23806 fi
23807 rm -f core conftest.err conftest.$ac_objext \
23808 conftest$ac_exeext conftest.$ac_ext
23809 fi
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
23811 $as_echo "$ac_cv_working_alloca_h" >&6; }
23812 if test $ac_cv_working_alloca_h = yes; then
23813
23814 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
23815
23816 fi
23817
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
23819 $as_echo_n "checking for alloca... " >&6; }
23820 if ${ac_cv_func_alloca_works+:} false; then :
23821 $as_echo_n "(cached) " >&6
23822 else
23823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23824 /* end confdefs.h. */
23825 #ifdef __GNUC__
23826 # define alloca __builtin_alloca
23827 #else
23828 # ifdef _MSC_VER
23829 # include <malloc.h>
23830 # define alloca _alloca
23831 # else
23832 # ifdef HAVE_ALLOCA_H
23833 # include <alloca.h>
23834 # else
23835 # ifdef _AIX
23836 #pragma alloca
23837 # else
23838 # ifndef alloca /* predefined by HP cc +Olibcalls */
23839 void *alloca (size_t);
23840 # endif
23841 # endif
23842 # endif
23843 # endif
23844 #endif
23845
23846 int
23847 main ()
23848 {
23849 char *p = (char *) alloca (1);
23850 if (p) return 0;
23851 ;
23852 return 0;
23853 }
23854 _ACEOF
23855 if ac_fn_c_try_link "$LINENO"; then :
23856 ac_cv_func_alloca_works=yes
23857 else
23858 ac_cv_func_alloca_works=no
23859 fi
23860 rm -f core conftest.err conftest.$ac_objext \
23861 conftest$ac_exeext conftest.$ac_ext
23862 fi
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
23864 $as_echo "$ac_cv_func_alloca_works" >&6; }
23865
23866 if test $ac_cv_func_alloca_works = yes; then
23867
23868 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
23869
23870 else
23871 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23872 # that cause trouble. Some versions do not even contain alloca or
23873 # contain a buggy version. If you still want to use their alloca,
23874 # use ar to extract alloca.o from them instead of compiling alloca.c.
23875
23876 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
23877
23878 $as_echo "#define C_ALLOCA 1" >>confdefs.h
23879
23880
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
23882 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
23883 if ${ac_cv_os_cray+:} false; then :
23884 $as_echo_n "(cached) " >&6
23885 else
23886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23887 /* end confdefs.h. */
23888 #if defined CRAY && ! defined CRAY2
23889 webecray
23890 #else
23891 wenotbecray
23892 #endif
23893
23894 _ACEOF
23895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23896 $EGREP "webecray" >/dev/null 2>&1; then :
23897 ac_cv_os_cray=yes
23898 else
23899 ac_cv_os_cray=no
23900 fi
23901 rm -f conftest*
23902
23903 fi
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
23905 $as_echo "$ac_cv_os_cray" >&6; }
23906 if test $ac_cv_os_cray = yes; then
23907 for ac_func in _getb67 GETB67 getb67; do
23908 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23909 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23910 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23911
23912 cat >>confdefs.h <<_ACEOF
23913 #define CRAY_STACKSEG_END $ac_func
23914 _ACEOF
23915
23916 break
23917 fi
23918
23919 done
23920 fi
23921
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
23923 $as_echo_n "checking stack direction for C alloca... " >&6; }
23924 if ${ac_cv_c_stack_direction+:} false; then :
23925 $as_echo_n "(cached) " >&6
23926 else
23927 if test "$cross_compiling" = yes; then :
23928 ac_cv_c_stack_direction=0
23929 else
23930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23931 /* end confdefs.h. */
23932 $ac_includes_default
23933 int
23934 find_stack_direction (int *addr, int depth)
23935 {
23936 int dir, dummy = 0;
23937 if (! addr)
23938 addr = &dummy;
23939 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
23940 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
23941 return dir + dummy;
23942 }
23943
23944 int
23945 main (int argc, char **argv)
23946 {
23947 return find_stack_direction (0, argc + !argv + 20) < 0;
23948 }
23949 _ACEOF
23950 if ac_fn_c_try_run "$LINENO"; then :
23951 ac_cv_c_stack_direction=1
23952 else
23953 ac_cv_c_stack_direction=-1
23954 fi
23955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23956 conftest.$ac_objext conftest.beam conftest.$ac_ext
23957 fi
23958
23959 fi
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
23961 $as_echo "$ac_cv_c_stack_direction" >&6; }
23962 cat >>confdefs.h <<_ACEOF
23963 #define STACK_DIRECTION $ac_cv_c_stack_direction
23964 _ACEOF
23965
23966
23967 fi
23968
23969
23970 WIN32APILIBS=
23971 case ${host} in
23972 *mingw32*)
23973
23974 $as_echo "#define USE_WIN32API 1" >>confdefs.h
23975
23976 WIN32APILIBS="-lws2_32"
23977 ;;
23978 esac
23979
23980
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23982 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23983 if ${am_cv_langinfo_codeset+:} false; then :
23984 $as_echo_n "(cached) " >&6
23985 else
23986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23987 /* end confdefs.h. */
23988 #include <langinfo.h>
23989 int
23990 main ()
23991 {
23992 char* cs = nl_langinfo(CODESET);
23993 ;
23994 return 0;
23995 }
23996 _ACEOF
23997 if ac_fn_c_try_link "$LINENO"; then :
23998 am_cv_langinfo_codeset=yes
23999 else
24000 am_cv_langinfo_codeset=no
24001 fi
24002 rm -f core conftest.err conftest.$ac_objext \
24003 conftest$ac_exeext conftest.$ac_ext
24004
24005 fi
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
24007 $as_echo "$am_cv_langinfo_codeset" >&6; }
24008 if test $am_cv_langinfo_codeset = yes; then
24009
24010 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
24011
24012 fi
24013
24014
24015 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h dlfcn.h linux/elf.h proc_service.h poll.h sys/poll.h sys/select.h
24016 do :
24017 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24018 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24019 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24020 cat >>confdefs.h <<_ACEOF
24021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24022 _ACEOF
24023
24024 fi
24025
24026 done
24027
24028
24029
24030 for ac_func in getpagesize
24031 do :
24032 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24033 if test "x$ac_cv_func_getpagesize" = xyes; then :
24034 cat >>confdefs.h <<_ACEOF
24035 #define HAVE_GETPAGESIZE 1
24036 _ACEOF
24037
24038 fi
24039 done
24040
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
24042 $as_echo_n "checking for working mmap... " >&6; }
24043 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
24044 $as_echo_n "(cached) " >&6
24045 else
24046 if test "$cross_compiling" = yes; then :
24047 ac_cv_func_mmap_fixed_mapped=no
24048 else
24049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24050 /* end confdefs.h. */
24051 $ac_includes_default
24052 /* malloc might have been renamed as rpl_malloc. */
24053 #undef malloc
24054
24055 /* Thanks to Mike Haertel and Jim Avera for this test.
24056 Here is a matrix of mmap possibilities:
24057 mmap private not fixed
24058 mmap private fixed at somewhere currently unmapped
24059 mmap private fixed at somewhere already mapped
24060 mmap shared not fixed
24061 mmap shared fixed at somewhere currently unmapped
24062 mmap shared fixed at somewhere already mapped
24063 For private mappings, we should verify that changes cannot be read()
24064 back from the file, nor mmap's back from the file at a different
24065 address. (There have been systems where private was not correctly
24066 implemented like the infamous i386 svr4.0, and systems where the
24067 VM page cache was not coherent with the file system buffer cache
24068 like early versions of FreeBSD and possibly contemporary NetBSD.)
24069 For shared mappings, we should conversely verify that changes get
24070 propagated back to all the places they're supposed to be.
24071
24072 Grep wants private fixed already mapped.
24073 The main things grep needs to know about mmap are:
24074 * does it exist and is it safe to write into the mmap'd area
24075 * how to use it (BSD variants) */
24076
24077 #include <fcntl.h>
24078 #include <sys/mman.h>
24079
24080 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24081 char *malloc ();
24082 #endif
24083
24084 /* This mess was copied from the GNU getpagesize.h. */
24085 #ifndef HAVE_GETPAGESIZE
24086 # ifdef _SC_PAGESIZE
24087 # define getpagesize() sysconf(_SC_PAGESIZE)
24088 # else /* no _SC_PAGESIZE */
24089 # ifdef HAVE_SYS_PARAM_H
24090 # include <sys/param.h>
24091 # ifdef EXEC_PAGESIZE
24092 # define getpagesize() EXEC_PAGESIZE
24093 # else /* no EXEC_PAGESIZE */
24094 # ifdef NBPG
24095 # define getpagesize() NBPG * CLSIZE
24096 # ifndef CLSIZE
24097 # define CLSIZE 1
24098 # endif /* no CLSIZE */
24099 # else /* no NBPG */
24100 # ifdef NBPC
24101 # define getpagesize() NBPC
24102 # else /* no NBPC */
24103 # ifdef PAGESIZE
24104 # define getpagesize() PAGESIZE
24105 # endif /* PAGESIZE */
24106 # endif /* no NBPC */
24107 # endif /* no NBPG */
24108 # endif /* no EXEC_PAGESIZE */
24109 # else /* no HAVE_SYS_PARAM_H */
24110 # define getpagesize() 8192 /* punt totally */
24111 # endif /* no HAVE_SYS_PARAM_H */
24112 # endif /* no _SC_PAGESIZE */
24113
24114 #endif /* no HAVE_GETPAGESIZE */
24115
24116 int
24117 main ()
24118 {
24119 char *data, *data2, *data3;
24120 const char *cdata2;
24121 int i, pagesize;
24122 int fd, fd2;
24123
24124 pagesize = getpagesize ();
24125
24126 /* First, make a file with some known garbage in it. */
24127 data = (char *) malloc (pagesize);
24128 if (!data)
24129 return 1;
24130 for (i = 0; i < pagesize; ++i)
24131 *(data + i) = rand ();
24132 umask (0);
24133 fd = creat ("conftest.mmap", 0600);
24134 if (fd < 0)
24135 return 2;
24136 if (write (fd, data, pagesize) != pagesize)
24137 return 3;
24138 close (fd);
24139
24140 /* Next, check that the tail of a page is zero-filled. File must have
24141 non-zero length, otherwise we risk SIGBUS for entire page. */
24142 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24143 if (fd2 < 0)
24144 return 4;
24145 cdata2 = "";
24146 if (write (fd2, cdata2, 1) != 1)
24147 return 5;
24148 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24149 if (data2 == MAP_FAILED)
24150 return 6;
24151 for (i = 0; i < pagesize; ++i)
24152 if (*(data2 + i))
24153 return 7;
24154 close (fd2);
24155 if (munmap (data2, pagesize))
24156 return 8;
24157
24158 /* Next, try to mmap the file at a fixed address which already has
24159 something else allocated at it. If we can, also make sure that
24160 we see the same garbage. */
24161 fd = open ("conftest.mmap", O_RDWR);
24162 if (fd < 0)
24163 return 9;
24164 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24165 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24166 return 10;
24167 for (i = 0; i < pagesize; ++i)
24168 if (*(data + i) != *(data2 + i))
24169 return 11;
24170
24171 /* Finally, make sure that changes to the mapped area do not
24172 percolate back to the file as seen by read(). (This is a bug on
24173 some variants of i386 svr4.0.) */
24174 for (i = 0; i < pagesize; ++i)
24175 *(data2 + i) = *(data2 + i) + 1;
24176 data3 = (char *) malloc (pagesize);
24177 if (!data3)
24178 return 12;
24179 if (read (fd, data3, pagesize) != pagesize)
24180 return 13;
24181 for (i = 0; i < pagesize; ++i)
24182 if (*(data + i) != *(data3 + i))
24183 return 14;
24184 close (fd);
24185 return 0;
24186 }
24187 _ACEOF
24188 if ac_fn_c_try_run "$LINENO"; then :
24189 ac_cv_func_mmap_fixed_mapped=yes
24190 else
24191 ac_cv_func_mmap_fixed_mapped=no
24192 fi
24193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24194 conftest.$ac_objext conftest.beam conftest.$ac_ext
24195 fi
24196
24197 fi
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24199 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24200 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24201
24202 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
24203
24204 fi
24205 rm -f conftest.mmap conftest.txt
24206
24207 for ac_header in vfork.h
24208 do :
24209 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24210 if test "x$ac_cv_header_vfork_h" = xyes; then :
24211 cat >>confdefs.h <<_ACEOF
24212 #define HAVE_VFORK_H 1
24213 _ACEOF
24214
24215 fi
24216
24217 done
24218
24219 for ac_func in fork vfork
24220 do :
24221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24222 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24223 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24224 cat >>confdefs.h <<_ACEOF
24225 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24226 _ACEOF
24227
24228 fi
24229 done
24230
24231 if test "x$ac_cv_func_fork" = xyes; then
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24233 $as_echo_n "checking for working fork... " >&6; }
24234 if ${ac_cv_func_fork_works+:} false; then :
24235 $as_echo_n "(cached) " >&6
24236 else
24237 if test "$cross_compiling" = yes; then :
24238 ac_cv_func_fork_works=cross
24239 else
24240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24241 /* end confdefs.h. */
24242 $ac_includes_default
24243 int
24244 main ()
24245 {
24246
24247 /* By Ruediger Kuhlmann. */
24248 return fork () < 0;
24249
24250 ;
24251 return 0;
24252 }
24253 _ACEOF
24254 if ac_fn_c_try_run "$LINENO"; then :
24255 ac_cv_func_fork_works=yes
24256 else
24257 ac_cv_func_fork_works=no
24258 fi
24259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24260 conftest.$ac_objext conftest.beam conftest.$ac_ext
24261 fi
24262
24263 fi
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24265 $as_echo "$ac_cv_func_fork_works" >&6; }
24266
24267 else
24268 ac_cv_func_fork_works=$ac_cv_func_fork
24269 fi
24270 if test "x$ac_cv_func_fork_works" = xcross; then
24271 case $host in
24272 *-*-amigaos* | *-*-msdosdjgpp*)
24273 # Override, as these systems have only a dummy fork() stub
24274 ac_cv_func_fork_works=no
24275 ;;
24276 *)
24277 ac_cv_func_fork_works=yes
24278 ;;
24279 esac
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24281 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24282 fi
24283 ac_cv_func_vfork_works=$ac_cv_func_vfork
24284 if test "x$ac_cv_func_vfork" = xyes; then
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24286 $as_echo_n "checking for working vfork... " >&6; }
24287 if ${ac_cv_func_vfork_works+:} false; then :
24288 $as_echo_n "(cached) " >&6
24289 else
24290 if test "$cross_compiling" = yes; then :
24291 ac_cv_func_vfork_works=cross
24292 else
24293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24294 /* end confdefs.h. */
24295 /* Thanks to Paul Eggert for this test. */
24296 $ac_includes_default
24297 #include <sys/wait.h>
24298 #ifdef HAVE_VFORK_H
24299 # include <vfork.h>
24300 #endif
24301 /* On some sparc systems, changes by the child to local and incoming
24302 argument registers are propagated back to the parent. The compiler
24303 is told about this with #include <vfork.h>, but some compilers
24304 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24305 static variable whose address is put into a register that is
24306 clobbered by the vfork. */
24307 static void
24308 #ifdef __cplusplus
24309 sparc_address_test (int arg)
24310 # else
24311 sparc_address_test (arg) int arg;
24312 #endif
24313 {
24314 static pid_t child;
24315 if (!child) {
24316 child = vfork ();
24317 if (child < 0) {
24318 perror ("vfork");
24319 _exit(2);
24320 }
24321 if (!child) {
24322 arg = getpid();
24323 write(-1, "", 0);
24324 _exit (arg);
24325 }
24326 }
24327 }
24328
24329 int
24330 main ()
24331 {
24332 pid_t parent = getpid ();
24333 pid_t child;
24334
24335 sparc_address_test (0);
24336
24337 child = vfork ();
24338
24339 if (child == 0) {
24340 /* Here is another test for sparc vfork register problems. This
24341 test uses lots of local variables, at least as many local
24342 variables as main has allocated so far including compiler
24343 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24344 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24345 reuse the register of parent for one of the local variables,
24346 since it will think that parent can't possibly be used any more
24347 in this routine. Assigning to the local variable will thus
24348 munge parent in the parent process. */
24349 pid_t
24350 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24351 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24352 /* Convince the compiler that p..p7 are live; otherwise, it might
24353 use the same hardware register for all 8 local variables. */
24354 if (p != p1 || p != p2 || p != p3 || p != p4
24355 || p != p5 || p != p6 || p != p7)
24356 _exit(1);
24357
24358 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24359 from child file descriptors. If the child closes a descriptor
24360 before it execs or exits, this munges the parent's descriptor
24361 as well. Test for this by closing stdout in the child. */
24362 _exit(close(fileno(stdout)) != 0);
24363 } else {
24364 int status;
24365 struct stat st;
24366
24367 while (wait(&status) != child)
24368 ;
24369 return (
24370 /* Was there some problem with vforking? */
24371 child < 0
24372
24373 /* Did the child fail? (This shouldn't happen.) */
24374 || status
24375
24376 /* Did the vfork/compiler bug occur? */
24377 || parent != getpid()
24378
24379 /* Did the file descriptor bug occur? */
24380 || fstat(fileno(stdout), &st) != 0
24381 );
24382 }
24383 }
24384 _ACEOF
24385 if ac_fn_c_try_run "$LINENO"; then :
24386 ac_cv_func_vfork_works=yes
24387 else
24388 ac_cv_func_vfork_works=no
24389 fi
24390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24391 conftest.$ac_objext conftest.beam conftest.$ac_ext
24392 fi
24393
24394 fi
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24396 $as_echo "$ac_cv_func_vfork_works" >&6; }
24397
24398 fi;
24399 if test "x$ac_cv_func_fork_works" = xcross; then
24400 ac_cv_func_vfork_works=$ac_cv_func_vfork
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24402 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24403 fi
24404
24405 if test "x$ac_cv_func_vfork_works" = xyes; then
24406
24407 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24408
24409 else
24410
24411 $as_echo "#define vfork fork" >>confdefs.h
24412
24413 fi
24414 if test "x$ac_cv_func_fork_works" = xyes; then
24415
24416 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24417
24418 fi
24419
24420 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
24422 $as_echo_n "checking for library containing socketpair... " >&6; }
24423 if ${ac_cv_search_socketpair+:} false; then :
24424 $as_echo_n "(cached) " >&6
24425 else
24426 ac_func_search_save_LIBS=$LIBS
24427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24428 /* end confdefs.h. */
24429
24430 /* Override any GCC internal prototype to avoid an error.
24431 Use char because int might match the return type of a GCC
24432 builtin and then its argument prototype would still apply. */
24433 #ifdef __cplusplus
24434 extern "C"
24435 #endif
24436 char socketpair ();
24437 int
24438 main ()
24439 {
24440 return socketpair ();
24441 ;
24442 return 0;
24443 }
24444 _ACEOF
24445 for ac_lib in '' socket; do
24446 if test -z "$ac_lib"; then
24447 ac_res="none required"
24448 else
24449 ac_res=-l$ac_lib
24450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24451 fi
24452 if ac_fn_c_try_link "$LINENO"; then :
24453 ac_cv_search_socketpair=$ac_res
24454 fi
24455 rm -f core conftest.err conftest.$ac_objext \
24456 conftest$ac_exeext
24457 if ${ac_cv_search_socketpair+:} false; then :
24458 break
24459 fi
24460 done
24461 if ${ac_cv_search_socketpair+:} false; then :
24462
24463 else
24464 ac_cv_search_socketpair=no
24465 fi
24466 rm conftest.$ac_ext
24467 LIBS=$ac_func_search_save_LIBS
24468 fi
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
24470 $as_echo "$ac_cv_search_socketpair" >&6; }
24471 ac_res=$ac_cv_search_socketpair
24472 if test "$ac_res" != no; then :
24473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24474
24475 fi
24476
24477 for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
24478 ptrace64 sbrk setns sigaltstack sigprocmask \
24479 setpgid setpgrp getrusage getauxval sigtimedwait
24480 do :
24481 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24482 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24483 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24484 cat >>confdefs.h <<_ACEOF
24485 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24486 _ACEOF
24487
24488 fi
24489 done
24490
24491
24492 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
24493 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
24494 # only in linux/personality.h.
24495 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
24496 "
24497 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
24498 ac_have_decl=1
24499 else
24500 ac_have_decl=0
24501 fi
24502
24503 cat >>confdefs.h <<_ACEOF
24504 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
24505 _ACEOF
24506
24507
24508 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
24509 if test "x$ac_cv_have_decl_strstr" = xyes; then :
24510 ac_have_decl=1
24511 else
24512 ac_have_decl=0
24513 fi
24514
24515 cat >>confdefs.h <<_ACEOF
24516 #define HAVE_DECL_STRSTR $ac_have_decl
24517 _ACEOF
24518
24519
24520 # ----------------------- #
24521 # Checks for structures. #
24522 # ----------------------- #
24523
24524 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
24525 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
24526
24527 cat >>confdefs.h <<_ACEOF
24528 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
24529 _ACEOF
24530
24531
24532 fi
24533 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
24534 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
24535
24536 cat >>confdefs.h <<_ACEOF
24537 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
24538 _ACEOF
24539
24540
24541 fi
24542
24543
24544 # On FreeBSD we need libutil for the kinfo_get* functions. On
24545 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
24546 # Figure out which one to use.
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
24548 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
24549 if ${ac_cv_search_kinfo_getfile+:} false; then :
24550 $as_echo_n "(cached) " >&6
24551 else
24552 ac_func_search_save_LIBS=$LIBS
24553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24554 /* end confdefs.h. */
24555
24556 /* Override any GCC internal prototype to avoid an error.
24557 Use char because int might match the return type of a GCC
24558 builtin and then its argument prototype would still apply. */
24559 #ifdef __cplusplus
24560 extern "C"
24561 #endif
24562 char kinfo_getfile ();
24563 int
24564 main ()
24565 {
24566 return kinfo_getfile ();
24567 ;
24568 return 0;
24569 }
24570 _ACEOF
24571 for ac_lib in '' util util-freebsd; do
24572 if test -z "$ac_lib"; then
24573 ac_res="none required"
24574 else
24575 ac_res=-l$ac_lib
24576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24577 fi
24578 if ac_fn_c_try_link "$LINENO"; then :
24579 ac_cv_search_kinfo_getfile=$ac_res
24580 fi
24581 rm -f core conftest.err conftest.$ac_objext \
24582 conftest$ac_exeext
24583 if ${ac_cv_search_kinfo_getfile+:} false; then :
24584 break
24585 fi
24586 done
24587 if ${ac_cv_search_kinfo_getfile+:} false; then :
24588
24589 else
24590 ac_cv_search_kinfo_getfile=no
24591 fi
24592 rm conftest.$ac_ext
24593 LIBS=$ac_func_search_save_LIBS
24594 fi
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
24596 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
24597 ac_res=$ac_cv_search_kinfo_getfile
24598 if test "$ac_res" != no; then :
24599 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24600
24601 fi
24602
24603
24604 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
24605 for ac_func in kinfo_getfile
24606 do :
24607 ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
24608 if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
24609 cat >>confdefs.h <<_ACEOF
24610 #define HAVE_KINFO_GETFILE 1
24611 _ACEOF
24612
24613 fi
24614 done
24615
24616
24617 # ----------------------- #
24618 # Check for threading. #
24619 # ----------------------- #
24620
24621 # Check whether --enable-threading was given.
24622 if test "${enable_threading+set}" = set; then :
24623 enableval=$enable_threading; case "$enableval" in
24624 yes) want_threading=yes ;;
24625 no) want_threading=no ;;
24626 *) as_fn_error $? "bad value $enableval for threading" "$LINENO" 5 ;;
24627 esac
24628 else
24629 want_threading=yes
24630 fi
24631
24632
24633 # Check for std::thread. This does not work on some platforms, like
24634 # mingw and DJGPP.
24635 ac_ext=cpp
24636 ac_cpp='$CXXCPP $CPPFLAGS'
24637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24640
24641
24642
24643
24644
24645 ac_ext=c
24646 ac_cpp='$CPP $CPPFLAGS'
24647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24650
24651 ax_pthread_ok=no
24652
24653 # We used to check for pthread.h first, but this fails if pthread.h
24654 # requires special compiler flags (e.g. on Tru64 or Sequent).
24655 # It gets checked for in the link test anyway.
24656
24657 # First of all, check if the user has set any of the PTHREAD_LIBS,
24658 # etcetera environment variables, and if threads linking works using
24659 # them:
24660 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
24661 ax_pthread_save_CC="$CC"
24662 ax_pthread_save_CFLAGS="$CFLAGS"
24663 ax_pthread_save_LIBS="$LIBS"
24664 if test "x$PTHREAD_CC" != "x"; then :
24665 CC="$PTHREAD_CC"
24666 fi
24667 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
24668 LIBS="$PTHREAD_LIBS $LIBS"
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
24670 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
24671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24672 /* end confdefs.h. */
24673
24674 /* Override any GCC internal prototype to avoid an error.
24675 Use char because int might match the return type of a GCC
24676 builtin and then its argument prototype would still apply. */
24677 #ifdef __cplusplus
24678 extern "C"
24679 #endif
24680 char pthread_join ();
24681 int
24682 main ()
24683 {
24684 return pthread_join ();
24685 ;
24686 return 0;
24687 }
24688 _ACEOF
24689 if ac_fn_c_try_link "$LINENO"; then :
24690 ax_pthread_ok=yes
24691 fi
24692 rm -f core conftest.err conftest.$ac_objext \
24693 conftest$ac_exeext conftest.$ac_ext
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
24695 $as_echo "$ax_pthread_ok" >&6; }
24696 if test "x$ax_pthread_ok" = "xno"; then
24697 PTHREAD_LIBS=""
24698 PTHREAD_CFLAGS=""
24699 fi
24700 CC="$ax_pthread_save_CC"
24701 CFLAGS="$ax_pthread_save_CFLAGS"
24702 LIBS="$ax_pthread_save_LIBS"
24703 fi
24704
24705 # We must check for the threads library under a number of different
24706 # names; the ordering is very important because some systems
24707 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
24708 # libraries is broken (non-POSIX).
24709
24710 # Create a list of thread flags to try. Items starting with a "-" are
24711 # C compiler flags, and other items are library names, except for "none"
24712 # which indicates that we try without any flags at all, and "pthread-config"
24713 # which is a program returning the flags for the Pth emulation library.
24714
24715 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
24716
24717 # The ordering *is* (sometimes) important. Some notes on the
24718 # individual items follow:
24719
24720 # pthreads: AIX (must check this before -lpthread)
24721 # none: in case threads are in libc; should be tried before -Kthread and
24722 # other compiler flags to prevent continual compiler warnings
24723 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
24724 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
24725 # (Note: HP C rejects this with "bad form for `-t' option")
24726 # -pthreads: Solaris/gcc (Note: HP C also rejects)
24727 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
24728 # doesn't hurt to check since this sometimes defines pthreads and
24729 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
24730 # is present but should not be used directly; and before -mthreads,
24731 # because the compiler interprets this as "-mt" + "-hreads")
24732 # -mthreads: Mingw32/gcc, Lynx/gcc
24733 # pthread: Linux, etcetera
24734 # --thread-safe: KAI C++
24735 # pthread-config: use pthread-config program (for GNU Pth library)
24736
24737 case $host_os in
24738
24739 freebsd*)
24740
24741 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
24742 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
24743
24744 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
24745 ;;
24746
24747 hpux*)
24748
24749 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
24750 # multi-threading and also sets -lpthread."
24751
24752 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
24753 ;;
24754
24755 openedition*)
24756
24757 # IBM z/OS requires a feature-test macro to be defined in order to
24758 # enable POSIX threads at all, so give the user a hint if this is
24759 # not set. (We don't define these ourselves, as they can affect
24760 # other portions of the system API in unpredictable ways.)
24761
24762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24763 /* end confdefs.h. */
24764
24765 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
24766 AX_PTHREAD_ZOS_MISSING
24767 # endif
24768
24769 _ACEOF
24770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24771 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
24773 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
24774 fi
24775 rm -f conftest*
24776
24777 ;;
24778
24779 solaris*)
24780
24781 # On Solaris (at least, for some versions), libc contains stubbed
24782 # (non-functional) versions of the pthreads routines, so link-based
24783 # tests will erroneously succeed. (N.B.: The stubs are missing
24784 # pthread_cleanup_push, or rather a function called by this macro,
24785 # so we could check for that, but who knows whether they'll stub
24786 # that too in a future libc.) So we'll check first for the
24787 # standard Solaris way of linking pthreads (-mt -lpthread).
24788
24789 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
24790 ;;
24791 esac
24792
24793 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
24794
24795 if test "x$GCC" = "xyes"; then :
24796 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
24797 fi
24798
24799 # The presence of a feature test macro requesting re-entrant function
24800 # definitions is, on some systems, a strong hint that pthreads support is
24801 # correctly enabled
24802
24803 case $host_os in
24804 darwin* | hpux* | linux* | osf* | solaris*)
24805 ax_pthread_check_macro="_REENTRANT"
24806 ;;
24807
24808 aix*)
24809 ax_pthread_check_macro="_THREAD_SAFE"
24810 ;;
24811
24812 *)
24813 ax_pthread_check_macro="--"
24814 ;;
24815 esac
24816 if test "x$ax_pthread_check_macro" = "x--"; then :
24817 ax_pthread_check_cond=0
24818 else
24819 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
24820 fi
24821
24822 # Are we compiling with Clang?
24823
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
24825 $as_echo_n "checking whether $CC is Clang... " >&6; }
24826 if ${ax_cv_PTHREAD_CLANG+:} false; then :
24827 $as_echo_n "(cached) " >&6
24828 else
24829 ax_cv_PTHREAD_CLANG=no
24830 # Note that Autoconf sets GCC=yes for Clang as well as GCC
24831 if test "x$GCC" = "xyes"; then
24832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24833 /* end confdefs.h. */
24834 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
24835 # if defined(__clang__) && defined(__llvm__)
24836 AX_PTHREAD_CC_IS_CLANG
24837 # endif
24838
24839 _ACEOF
24840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24841 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
24842 ax_cv_PTHREAD_CLANG=yes
24843 fi
24844 rm -f conftest*
24845
24846 fi
24847
24848 fi
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
24850 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
24851 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
24852
24853 ax_pthread_clang_warning=no
24854
24855 # Clang needs special handling, because older versions handle the -pthread
24856 # option in a rather... idiosyncratic way
24857
24858 if test "x$ax_pthread_clang" = "xyes"; then
24859
24860 # Clang takes -pthread; it has never supported any other flag
24861
24862 # (Note 1: This will need to be revisited if a system that Clang
24863 # supports has POSIX threads in a separate library. This tends not
24864 # to be the way of modern systems, but it's conceivable.)
24865
24866 # (Note 2: On some systems, notably Darwin, -pthread is not needed
24867 # to get POSIX threads support; the API is always present and
24868 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
24869 # -pthread does define _REENTRANT, and while the Darwin headers
24870 # ignore this macro, third-party headers might not.)
24871
24872 PTHREAD_CFLAGS="-pthread"
24873 PTHREAD_LIBS=
24874
24875 ax_pthread_ok=yes
24876
24877 # However, older versions of Clang make a point of warning the user
24878 # that, in an invocation where only linking and no compilation is
24879 # taking place, the -pthread option has no effect ("argument unused
24880 # during compilation"). They expect -pthread to be passed in only
24881 # when source code is being compiled.
24882 #
24883 # Problem is, this is at odds with the way Automake and most other
24884 # C build frameworks function, which is that the same flags used in
24885 # compilation (CFLAGS) are also used in linking. Many systems
24886 # supported by AX_PTHREAD require exactly this for POSIX threads
24887 # support, and in fact it is often not straightforward to specify a
24888 # flag that is used only in the compilation phase and not in
24889 # linking. Such a scenario is extremely rare in practice.
24890 #
24891 # Even though use of the -pthread flag in linking would only print
24892 # a warning, this can be a nuisance for well-run software projects
24893 # that build with -Werror. So if the active version of Clang has
24894 # this misfeature, we search for an option to squash it.
24895
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
24897 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
24898 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
24899 $as_echo_n "(cached) " >&6
24900 else
24901 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
24902 # Create an alternate version of $ac_link that compiles and
24903 # links in two steps (.c -> .o, .o -> exe) instead of one
24904 # (.c -> exe), because the warning occurs only in the second
24905 # step
24906 ax_pthread_save_ac_link="$ac_link"
24907 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
24908 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
24909 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
24910 ax_pthread_save_CFLAGS="$CFLAGS"
24911 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
24912 if test "x$ax_pthread_try" = "xunknown"; then :
24913 break
24914 fi
24915 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
24916 ac_link="$ax_pthread_save_ac_link"
24917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24918 /* end confdefs.h. */
24919 int main(void){return 0;}
24920 _ACEOF
24921 if ac_fn_c_try_link "$LINENO"; then :
24922 ac_link="$ax_pthread_2step_ac_link"
24923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24924 /* end confdefs.h. */
24925 int main(void){return 0;}
24926 _ACEOF
24927 if ac_fn_c_try_link "$LINENO"; then :
24928 break
24929 fi
24930 rm -f core conftest.err conftest.$ac_objext \
24931 conftest$ac_exeext conftest.$ac_ext
24932
24933 fi
24934 rm -f core conftest.err conftest.$ac_objext \
24935 conftest$ac_exeext conftest.$ac_ext
24936 done
24937 ac_link="$ax_pthread_save_ac_link"
24938 CFLAGS="$ax_pthread_save_CFLAGS"
24939 if test "x$ax_pthread_try" = "x"; then :
24940 ax_pthread_try=no
24941 fi
24942 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
24943
24944 fi
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
24946 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
24947
24948 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
24949 no | unknown) ;;
24950 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
24951 esac
24952
24953 fi # $ax_pthread_clang = yes
24954
24955 if test "x$ax_pthread_ok" = "xno"; then
24956 for ax_pthread_try_flag in $ax_pthread_flags; do
24957
24958 case $ax_pthread_try_flag in
24959 none)
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
24961 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
24962 ;;
24963
24964 -mt,pthread)
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
24966 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
24967 PTHREAD_CFLAGS="-mt"
24968 PTHREAD_LIBS="-lpthread"
24969 ;;
24970
24971 -*)
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
24973 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
24974 PTHREAD_CFLAGS="$ax_pthread_try_flag"
24975 ;;
24976
24977 pthread-config)
24978 # Extract the first word of "pthread-config", so it can be a program name with args.
24979 set dummy pthread-config; ac_word=$2
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24981 $as_echo_n "checking for $ac_word... " >&6; }
24982 if ${ac_cv_prog_ax_pthread_config+:} false; then :
24983 $as_echo_n "(cached) " >&6
24984 else
24985 if test -n "$ax_pthread_config"; then
24986 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
24987 else
24988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24989 for as_dir in $PATH
24990 do
24991 IFS=$as_save_IFS
24992 test -z "$as_dir" && as_dir=.
24993 for ac_exec_ext in '' $ac_executable_extensions; do
24994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24995 ac_cv_prog_ax_pthread_config="yes"
24996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24997 break 2
24998 fi
24999 done
25000 done
25001 IFS=$as_save_IFS
25002
25003 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
25004 fi
25005 fi
25006 ax_pthread_config=$ac_cv_prog_ax_pthread_config
25007 if test -n "$ax_pthread_config"; then
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
25009 $as_echo "$ax_pthread_config" >&6; }
25010 else
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25012 $as_echo "no" >&6; }
25013 fi
25014
25015
25016 if test "x$ax_pthread_config" = "xno"; then :
25017 continue
25018 fi
25019 PTHREAD_CFLAGS="`pthread-config --cflags`"
25020 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
25021 ;;
25022
25023 *)
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
25025 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
25026 PTHREAD_LIBS="-l$ax_pthread_try_flag"
25027 ;;
25028 esac
25029
25030 ax_pthread_save_CFLAGS="$CFLAGS"
25031 ax_pthread_save_LIBS="$LIBS"
25032 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25033 LIBS="$PTHREAD_LIBS $LIBS"
25034
25035 # Check for various functions. We must include pthread.h,
25036 # since some functions may be macros. (On the Sequent, we
25037 # need a special flag -Kthread to make this header compile.)
25038 # We check for pthread_join because it is in -lpthread on IRIX
25039 # while pthread_create is in libc. We check for pthread_attr_init
25040 # due to DEC craziness with -lpthreads. We check for
25041 # pthread_cleanup_push because it is one of the few pthread
25042 # functions on Solaris that doesn't have a non-functional libc stub.
25043 # We try pthread_create on general principles.
25044
25045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25046 /* end confdefs.h. */
25047 #include <pthread.h>
25048 # if $ax_pthread_check_cond
25049 # error "$ax_pthread_check_macro must be defined"
25050 # endif
25051 static void routine(void *a) { a = 0; }
25052 static void *start_routine(void *a) { return a; }
25053 int
25054 main ()
25055 {
25056 pthread_t th; pthread_attr_t attr;
25057 pthread_create(&th, 0, start_routine, 0);
25058 pthread_join(th, 0);
25059 pthread_attr_init(&attr);
25060 pthread_cleanup_push(routine, 0);
25061 pthread_cleanup_pop(0) /* ; */
25062 ;
25063 return 0;
25064 }
25065 _ACEOF
25066 if ac_fn_c_try_link "$LINENO"; then :
25067 ax_pthread_ok=yes
25068 fi
25069 rm -f core conftest.err conftest.$ac_objext \
25070 conftest$ac_exeext conftest.$ac_ext
25071
25072 CFLAGS="$ax_pthread_save_CFLAGS"
25073 LIBS="$ax_pthread_save_LIBS"
25074
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
25076 $as_echo "$ax_pthread_ok" >&6; }
25077 if test "x$ax_pthread_ok" = "xyes"; then :
25078 break
25079 fi
25080
25081 PTHREAD_LIBS=""
25082 PTHREAD_CFLAGS=""
25083 done
25084 fi
25085
25086 # Various other checks:
25087 if test "x$ax_pthread_ok" = "xyes"; then
25088 ax_pthread_save_CFLAGS="$CFLAGS"
25089 ax_pthread_save_LIBS="$LIBS"
25090 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25091 LIBS="$PTHREAD_LIBS $LIBS"
25092
25093 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
25095 $as_echo_n "checking for joinable pthread attribute... " >&6; }
25096 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
25097 $as_echo_n "(cached) " >&6
25098 else
25099 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
25100 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
25101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25102 /* end confdefs.h. */
25103 #include <pthread.h>
25104 int
25105 main ()
25106 {
25107 int attr = $ax_pthread_attr; return attr /* ; */
25108 ;
25109 return 0;
25110 }
25111 _ACEOF
25112 if ac_fn_c_try_link "$LINENO"; then :
25113 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
25114 fi
25115 rm -f core conftest.err conftest.$ac_objext \
25116 conftest$ac_exeext conftest.$ac_ext
25117 done
25118
25119 fi
25120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
25121 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
25122 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
25123 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
25124 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
25125
25126 cat >>confdefs.h <<_ACEOF
25127 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
25128 _ACEOF
25129
25130 ax_pthread_joinable_attr_defined=yes
25131
25132 fi
25133
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
25135 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
25136 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
25137 $as_echo_n "(cached) " >&6
25138 else
25139 ax_cv_PTHREAD_SPECIAL_FLAGS=no
25140 case $host_os in
25141 solaris*)
25142 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
25143 ;;
25144 esac
25145
25146 fi
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
25148 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
25149 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
25150 test "x$ax_pthread_special_flags_added" != "xyes"; then :
25151 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
25152 ax_pthread_special_flags_added=yes
25153 fi
25154
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
25156 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
25157 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
25158 $as_echo_n "(cached) " >&6
25159 else
25160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25161 /* end confdefs.h. */
25162 #include <pthread.h>
25163 int
25164 main ()
25165 {
25166 int i = PTHREAD_PRIO_INHERIT;
25167 ;
25168 return 0;
25169 }
25170 _ACEOF
25171 if ac_fn_c_try_link "$LINENO"; then :
25172 ax_cv_PTHREAD_PRIO_INHERIT=yes
25173 else
25174 ax_cv_PTHREAD_PRIO_INHERIT=no
25175 fi
25176 rm -f core conftest.err conftest.$ac_objext \
25177 conftest$ac_exeext conftest.$ac_ext
25178
25179 fi
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
25181 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
25182 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
25183 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
25184
25185 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
25186
25187 ax_pthread_prio_inherit_defined=yes
25188
25189 fi
25190
25191 CFLAGS="$ax_pthread_save_CFLAGS"
25192 LIBS="$ax_pthread_save_LIBS"
25193
25194 # More AIX lossage: compile with *_r variant
25195 if test "x$GCC" != "xyes"; then
25196 case $host_os in
25197 aix*)
25198 case "x/$CC" in #(
25199 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
25200 #handle absolute path differently from PATH based program lookup
25201 case "x$CC" in #(
25202 x/*) :
25203 if as_fn_executable_p ${CC}_r; then :
25204 PTHREAD_CC="${CC}_r"
25205 fi ;; #(
25206 *) :
25207 for ac_prog in ${CC}_r
25208 do
25209 # Extract the first word of "$ac_prog", so it can be a program name with args.
25210 set dummy $ac_prog; ac_word=$2
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25212 $as_echo_n "checking for $ac_word... " >&6; }
25213 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
25214 $as_echo_n "(cached) " >&6
25215 else
25216 if test -n "$PTHREAD_CC"; then
25217 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
25218 else
25219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25220 for as_dir in $PATH
25221 do
25222 IFS=$as_save_IFS
25223 test -z "$as_dir" && as_dir=.
25224 for ac_exec_ext in '' $ac_executable_extensions; do
25225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25226 ac_cv_prog_PTHREAD_CC="$ac_prog"
25227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25228 break 2
25229 fi
25230 done
25231 done
25232 IFS=$as_save_IFS
25233
25234 fi
25235 fi
25236 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
25237 if test -n "$PTHREAD_CC"; then
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
25239 $as_echo "$PTHREAD_CC" >&6; }
25240 else
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25242 $as_echo "no" >&6; }
25243 fi
25244
25245
25246 test -n "$PTHREAD_CC" && break
25247 done
25248 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25249 ;;
25250 esac ;; #(
25251 *) :
25252 ;;
25253 esac
25254 ;;
25255 esac
25256 fi
25257 fi
25258
25259 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25260
25261
25262
25263
25264
25265 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
25266 if test "x$ax_pthread_ok" = "xyes"; then
25267 threads=yes
25268 :
25269 else
25270 ax_pthread_ok=no
25271 threads=no
25272 fi
25273 ac_ext=cpp
25274 ac_cpp='$CXXCPP $CPPFLAGS'
25275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25278
25279
25280 save_LIBS="$LIBS"
25281 LIBS="$PTHREAD_LIBS $LIBS"
25282 save_CXXFLAGS="$CXXFLAGS"
25283 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
25285 $as_echo_n "checking for std::thread... " >&6; }
25286 if ${gdb_cv_cxx_std_thread+:} false; then :
25287 $as_echo_n "(cached) " >&6
25288 else
25289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25290 /* end confdefs.h. */
25291 #if defined (__MINGW32__) || defined (__CYGWIN__)
25292 # ifdef _WIN32_WINNT
25293 # if _WIN32_WINNT < 0x0501
25294 # undef _WIN32_WINNT
25295 # define _WIN32_WINNT 0x0501
25296 # endif
25297 # else
25298 # define _WIN32_WINNT 0x0501
25299 # endif
25300 #endif /* __MINGW32__ || __CYGWIN__ */
25301 #include <thread>
25302 void callback() { }
25303 int
25304 main ()
25305 {
25306 std::thread t(callback);
25307 ;
25308 return 0;
25309 }
25310 _ACEOF
25311 if ac_fn_cxx_try_compile "$LINENO"; then :
25312 gdb_cv_cxx_std_thread=yes
25313 else
25314 gdb_cv_cxx_std_thread=no
25315 fi
25316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25317 fi
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
25319 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
25320
25321 if test "$threads" = "yes"; then
25322 # This check must be here, while LIBS includes any necessary
25323 # threading library.
25324 for ac_func in pthread_sigmask pthread_setname_np
25325 do :
25326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25327 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
25328 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25329 cat >>confdefs.h <<_ACEOF
25330 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25331 _ACEOF
25332
25333 fi
25334 done
25335
25336 fi
25337 LIBS="$save_LIBS"
25338 CXXFLAGS="$save_CXXFLAGS"
25339
25340 if test "$want_threading" = "yes"; then
25341 if test "$gdb_cv_cxx_std_thread" = "yes"; then
25342
25343 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
25344
25345 fi
25346 fi
25347 ac_ext=c
25348 ac_cpp='$CPP $CPPFLAGS'
25349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25352
25353
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
25355 $as_echo_n "checking for sigsetjmp... " >&6; }
25356 if ${gdb_cv_func_sigsetjmp+:} false; then :
25357 $as_echo_n "(cached) " >&6
25358 else
25359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25360 /* end confdefs.h. */
25361 #include <setjmp.h>
25362 int
25363 main ()
25364 {
25365 sigjmp_buf env;
25366 while (! sigsetjmp (env, 1))
25367 siglongjmp (env, 1);
25368
25369 ;
25370 return 0;
25371 }
25372 _ACEOF
25373 if ac_fn_c_try_compile "$LINENO"; then :
25374 gdb_cv_func_sigsetjmp=yes
25375 else
25376 gdb_cv_func_sigsetjmp=no
25377
25378 fi
25379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25380
25381 fi
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
25383 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
25384 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
25385
25386 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
25387
25388 fi
25389
25390
25391 # Check whether --with-intel_pt was given.
25392 if test "${with_intel_pt+set}" = set; then :
25393 withval=$with_intel_pt;
25394 else
25395 with_intel_pt=auto
25396 fi
25397
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
25399 $as_echo_n "checking whether to use intel pt... " >&6; }
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
25401 $as_echo "$with_intel_pt" >&6; }
25402
25403 if test "${with_intel_pt}" = no; then
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
25405 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
25406 HAVE_LIBIPT=no
25407 else
25408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25409 /* end confdefs.h. */
25410
25411 #include <linux/perf_event.h>
25412 #ifndef PERF_ATTR_SIZE_VER5
25413 # error
25414 #endif
25415
25416 _ACEOF
25417 if ac_fn_c_try_cpp "$LINENO"; then :
25418 perf_event=yes
25419 else
25420 perf_event=no
25421 fi
25422 rm -f conftest.err conftest.i conftest.$ac_ext
25423 if test "$perf_event" != yes; then
25424 if test "$with_intel_pt" = yes; then
25425 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
25426 else
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
25428 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
25429 fi
25430 fi
25431
25432
25433
25434
25435
25436
25437
25438
25439
25440 use_additional=yes
25441
25442 acl_save_prefix="$prefix"
25443 prefix="$acl_final_prefix"
25444 acl_save_exec_prefix="$exec_prefix"
25445 exec_prefix="$acl_final_exec_prefix"
25446
25447 eval additional_includedir=\"$includedir\"
25448 eval additional_libdir=\"$libdir\"
25449
25450 exec_prefix="$acl_save_exec_prefix"
25451 prefix="$acl_save_prefix"
25452
25453
25454 # Check whether --with-libipt-prefix was given.
25455 if test "${with_libipt_prefix+set}" = set; then :
25456 withval=$with_libipt_prefix;
25457 if test "X$withval" = "Xno"; then
25458 use_additional=no
25459 else
25460 if test "X$withval" = "X"; then
25461
25462 acl_save_prefix="$prefix"
25463 prefix="$acl_final_prefix"
25464 acl_save_exec_prefix="$exec_prefix"
25465 exec_prefix="$acl_final_exec_prefix"
25466
25467 eval additional_includedir=\"$includedir\"
25468 eval additional_libdir=\"$libdir\"
25469
25470 exec_prefix="$acl_save_exec_prefix"
25471 prefix="$acl_save_prefix"
25472
25473 else
25474 additional_includedir="$withval/include"
25475 additional_libdir="$withval/lib"
25476 fi
25477 fi
25478
25479 fi
25480
25481
25482 # Check whether --with-libipt-type was given.
25483 if test "${with_libipt_type+set}" = set; then :
25484 withval=$with_libipt_type; with_libipt_type=$withval
25485 else
25486 with_libipt_type=auto
25487 fi
25488
25489 lib_type=`eval echo \$with_libipt_type`
25490
25491 LIBIPT=
25492 LTLIBIPT=
25493 INCIPT=
25494 rpathdirs=
25495 ltrpathdirs=
25496 names_already_handled=
25497 names_next_round='ipt '
25498 while test -n "$names_next_round"; do
25499 names_this_round="$names_next_round"
25500 names_next_round=
25501 for name in $names_this_round; do
25502 already_handled=
25503 for n in $names_already_handled; do
25504 if test "$n" = "$name"; then
25505 already_handled=yes
25506 break
25507 fi
25508 done
25509 if test -z "$already_handled"; then
25510 names_already_handled="$names_already_handled $name"
25511 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
25512 eval value=\"\$HAVE_LIB$uppername\"
25513 if test -n "$value"; then
25514 if test "$value" = yes; then
25515 eval value=\"\$LIB$uppername\"
25516 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
25517 eval value=\"\$LTLIB$uppername\"
25518 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
25519 else
25520 :
25521 fi
25522 else
25523 found_dir=
25524 found_la=
25525 found_so=
25526 found_a=
25527 if test $use_additional = yes; then
25528 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
25529 found_dir="$additional_libdir"
25530 found_so="$additional_libdir/lib$name.$shlibext"
25531 if test -f "$additional_libdir/lib$name.la"; then
25532 found_la="$additional_libdir/lib$name.la"
25533 fi
25534 elif test x$lib_type != xshared; then
25535 if test -f "$additional_libdir/lib$name.$libext"; then
25536 found_dir="$additional_libdir"
25537 found_a="$additional_libdir/lib$name.$libext"
25538 if test -f "$additional_libdir/lib$name.la"; then
25539 found_la="$additional_libdir/lib$name.la"
25540 fi
25541 fi
25542 fi
25543 fi
25544 if test "X$found_dir" = "X"; then
25545 for x in $LDFLAGS $LTLIBIPT; do
25546
25547 acl_save_prefix="$prefix"
25548 prefix="$acl_final_prefix"
25549 acl_save_exec_prefix="$exec_prefix"
25550 exec_prefix="$acl_final_exec_prefix"
25551 eval x=\"$x\"
25552 exec_prefix="$acl_save_exec_prefix"
25553 prefix="$acl_save_prefix"
25554
25555 case "$x" in
25556 -L*)
25557 dir=`echo "X$x" | sed -e 's/^X-L//'`
25558 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
25559 found_dir="$dir"
25560 found_so="$dir/lib$name.$shlibext"
25561 if test -f "$dir/lib$name.la"; then
25562 found_la="$dir/lib$name.la"
25563 fi
25564 elif test x$lib_type != xshared; then
25565 if test -f "$dir/lib$name.$libext"; then
25566 found_dir="$dir"
25567 found_a="$dir/lib$name.$libext"
25568 if test -f "$dir/lib$name.la"; then
25569 found_la="$dir/lib$name.la"
25570 fi
25571 fi
25572 fi
25573 ;;
25574 esac
25575 if test "X$found_dir" != "X"; then
25576 break
25577 fi
25578 done
25579 fi
25580 if test "X$found_dir" != "X"; then
25581 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
25582 if test "X$found_so" != "X"; then
25583 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
25584 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
25585 else
25586 haveit=
25587 for x in $ltrpathdirs; do
25588 if test "X$x" = "X$found_dir"; then
25589 haveit=yes
25590 break
25591 fi
25592 done
25593 if test -z "$haveit"; then
25594 ltrpathdirs="$ltrpathdirs $found_dir"
25595 fi
25596 if test "$hardcode_direct" = yes; then
25597 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
25598 else
25599 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
25600 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
25601 haveit=
25602 for x in $rpathdirs; do
25603 if test "X$x" = "X$found_dir"; then
25604 haveit=yes
25605 break
25606 fi
25607 done
25608 if test -z "$haveit"; then
25609 rpathdirs="$rpathdirs $found_dir"
25610 fi
25611 else
25612 haveit=
25613 for x in $LDFLAGS $LIBIPT; do
25614
25615 acl_save_prefix="$prefix"
25616 prefix="$acl_final_prefix"
25617 acl_save_exec_prefix="$exec_prefix"
25618 exec_prefix="$acl_final_exec_prefix"
25619 eval x=\"$x\"
25620 exec_prefix="$acl_save_exec_prefix"
25621 prefix="$acl_save_prefix"
25622
25623 if test "X$x" = "X-L$found_dir"; then
25624 haveit=yes
25625 break
25626 fi
25627 done
25628 if test -z "$haveit"; then
25629 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
25630 fi
25631 if test "$hardcode_minus_L" != no; then
25632 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
25633 else
25634 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
25635 fi
25636 fi
25637 fi
25638 fi
25639 else
25640 if test "X$found_a" != "X"; then
25641 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
25642 else
25643 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
25644 fi
25645 fi
25646 additional_includedir=
25647 case "$found_dir" in
25648 */lib | */lib/)
25649 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
25650 additional_includedir="$basedir/include"
25651 ;;
25652 esac
25653 if test "X$additional_includedir" != "X"; then
25654 if test "X$additional_includedir" != "X/usr/include"; then
25655 haveit=
25656 if test "X$additional_includedir" = "X/usr/local/include"; then
25657 if test -n "$GCC"; then
25658 case $host_os in
25659 linux*) haveit=yes;;
25660 esac
25661 fi
25662 fi
25663 if test -z "$haveit"; then
25664 for x in $CPPFLAGS $INCIPT; do
25665
25666 acl_save_prefix="$prefix"
25667 prefix="$acl_final_prefix"
25668 acl_save_exec_prefix="$exec_prefix"
25669 exec_prefix="$acl_final_exec_prefix"
25670 eval x=\"$x\"
25671 exec_prefix="$acl_save_exec_prefix"
25672 prefix="$acl_save_prefix"
25673
25674 if test "X$x" = "X-I$additional_includedir"; then
25675 haveit=yes
25676 break
25677 fi
25678 done
25679 if test -z "$haveit"; then
25680 if test -d "$additional_includedir"; then
25681 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
25682 fi
25683 fi
25684 fi
25685 fi
25686 fi
25687 if test -n "$found_la"; then
25688 save_libdir="$libdir"
25689 case "$found_la" in
25690 */* | *\\*) . "$found_la" ;;
25691 *) . "./$found_la" ;;
25692 esac
25693 libdir="$save_libdir"
25694 for dep in $dependency_libs; do
25695 case "$dep" in
25696 -L*)
25697 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25698 if test "X$additional_libdir" != "X/usr/lib"; then
25699 haveit=
25700 if test "X$additional_libdir" = "X/usr/local/lib"; then
25701 if test -n "$GCC"; then
25702 case $host_os in
25703 linux*) haveit=yes;;
25704 esac
25705 fi
25706 fi
25707 if test -z "$haveit"; then
25708 haveit=
25709 for x in $LDFLAGS $LIBIPT; do
25710
25711 acl_save_prefix="$prefix"
25712 prefix="$acl_final_prefix"
25713 acl_save_exec_prefix="$exec_prefix"
25714 exec_prefix="$acl_final_exec_prefix"
25715 eval x=\"$x\"
25716 exec_prefix="$acl_save_exec_prefix"
25717 prefix="$acl_save_prefix"
25718
25719 if test "X$x" = "X-L$additional_libdir"; then
25720 haveit=yes
25721 break
25722 fi
25723 done
25724 if test -z "$haveit"; then
25725 if test -d "$additional_libdir"; then
25726 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
25727 fi
25728 fi
25729 haveit=
25730 for x in $LDFLAGS $LTLIBIPT; do
25731
25732 acl_save_prefix="$prefix"
25733 prefix="$acl_final_prefix"
25734 acl_save_exec_prefix="$exec_prefix"
25735 exec_prefix="$acl_final_exec_prefix"
25736 eval x=\"$x\"
25737 exec_prefix="$acl_save_exec_prefix"
25738 prefix="$acl_save_prefix"
25739
25740 if test "X$x" = "X-L$additional_libdir"; then
25741 haveit=yes
25742 break
25743 fi
25744 done
25745 if test -z "$haveit"; then
25746 if test -d "$additional_libdir"; then
25747 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
25748 fi
25749 fi
25750 fi
25751 fi
25752 ;;
25753 -R*)
25754 dir=`echo "X$dep" | sed -e 's/^X-R//'`
25755 if test "$enable_rpath" != no; then
25756 haveit=
25757 for x in $rpathdirs; do
25758 if test "X$x" = "X$dir"; then
25759 haveit=yes
25760 break
25761 fi
25762 done
25763 if test -z "$haveit"; then
25764 rpathdirs="$rpathdirs $dir"
25765 fi
25766 haveit=
25767 for x in $ltrpathdirs; do
25768 if test "X$x" = "X$dir"; then
25769 haveit=yes
25770 break
25771 fi
25772 done
25773 if test -z "$haveit"; then
25774 ltrpathdirs="$ltrpathdirs $dir"
25775 fi
25776 fi
25777 ;;
25778 -l*)
25779 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25780 ;;
25781 *.la)
25782 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25783 ;;
25784 *)
25785 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
25786 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
25787 ;;
25788 esac
25789 done
25790 fi
25791 else
25792 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
25793 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
25794 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
25795 else
25796 LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
25797 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
25798 fi
25799 fi
25800 fi
25801 fi
25802 done
25803 done
25804 if test "X$rpathdirs" != "X"; then
25805 if test -n "$hardcode_libdir_separator"; then
25806 alldirs=
25807 for found_dir in $rpathdirs; do
25808 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
25809 done
25810 acl_save_libdir="$libdir"
25811 libdir="$alldirs"
25812 eval flag=\"$hardcode_libdir_flag_spec\"
25813 libdir="$acl_save_libdir"
25814 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
25815 else
25816 for found_dir in $rpathdirs; do
25817 acl_save_libdir="$libdir"
25818 libdir="$found_dir"
25819 eval flag=\"$hardcode_libdir_flag_spec\"
25820 libdir="$acl_save_libdir"
25821 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
25822 done
25823 fi
25824 fi
25825 if test "X$ltrpathdirs" != "X"; then
25826 for found_dir in $ltrpathdirs; do
25827 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
25828 done
25829 fi
25830
25831
25832 ac_save_CPPFLAGS="$CPPFLAGS"
25833
25834 for element in $INCIPT; do
25835 haveit=
25836 for x in $CPPFLAGS; do
25837
25838 acl_save_prefix="$prefix"
25839 prefix="$acl_final_prefix"
25840 acl_save_exec_prefix="$exec_prefix"
25841 exec_prefix="$acl_final_exec_prefix"
25842 eval x=\"$x\"
25843 exec_prefix="$acl_save_exec_prefix"
25844 prefix="$acl_save_prefix"
25845
25846 if test "X$x" = "X$element"; then
25847 haveit=yes
25848 break
25849 fi
25850 done
25851 if test -z "$haveit"; then
25852 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25853 fi
25854 done
25855
25856
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
25858 $as_echo_n "checking for libipt... " >&6; }
25859 if ${ac_cv_libipt+:} false; then :
25860 $as_echo_n "(cached) " >&6
25861 else
25862
25863 ac_save_LIBS="$LIBS"
25864 LIBS="$LIBS $LIBIPT"
25865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25866 /* end confdefs.h. */
25867 #include "intel-pt.h"
25868 int
25869 main ()
25870 {
25871 pt_insn_alloc_decoder (0);
25872 ;
25873 return 0;
25874 }
25875 _ACEOF
25876 if ac_fn_c_try_link "$LINENO"; then :
25877 ac_cv_libipt=yes
25878 else
25879 ac_cv_libipt=no
25880 fi
25881 rm -f core conftest.err conftest.$ac_objext \
25882 conftest$ac_exeext conftest.$ac_ext
25883 LIBS="$ac_save_LIBS"
25884
25885 fi
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
25887 $as_echo "$ac_cv_libipt" >&6; }
25888 if test "$ac_cv_libipt" = yes; then
25889 HAVE_LIBIPT=yes
25890
25891 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
25892
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
25894 $as_echo_n "checking how to link with libipt... " >&6; }
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
25896 $as_echo "$LIBIPT" >&6; }
25897 else
25898 HAVE_LIBIPT=no
25899 CPPFLAGS="$ac_save_CPPFLAGS"
25900 LIBIPT=
25901 LTLIBIPT=
25902 fi
25903
25904
25905
25906
25907
25908
25909 if test "$HAVE_LIBIPT" != yes; then
25910 if test "$with_intel_pt" = yes; then
25911 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
25912 else
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
25914 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
25915 fi
25916 else
25917 save_LIBS=$LIBS
25918 LIBS="$LIBS $LIBIPT"
25919 for ac_func in pt_insn_event
25920 do :
25921 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
25922 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
25923 cat >>confdefs.h <<_ACEOF
25924 #define HAVE_PT_INSN_EVENT 1
25925 _ACEOF
25926
25927 fi
25928 done
25929
25930 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
25931 "
25932 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
25933
25934 cat >>confdefs.h <<_ACEOF
25935 #define HAVE_STRUCT_PT_INSN_ENABLED 1
25936 _ACEOF
25937
25938
25939 fi
25940 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
25941 "
25942 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
25943
25944 cat >>confdefs.h <<_ACEOF
25945 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
25946 _ACEOF
25947
25948
25949 fi
25950
25951 LIBS=$save_LIBS
25952 fi
25953 fi
25954
25955 # Check if the compiler and runtime support printing long longs.
25956
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
25958 $as_echo_n "checking for long long support in printf... " >&6; }
25959 if ${gdb_cv_printf_has_long_long+:} false; then :
25960 $as_echo_n "(cached) " >&6
25961 else
25962 if test "$cross_compiling" = yes; then :
25963 gdb_cv_printf_has_long_long=no
25964 else
25965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25966 /* end confdefs.h. */
25967 $ac_includes_default
25968 int
25969 main ()
25970 {
25971 char buf[32];
25972 long long l = 0;
25973 l = (l << 16) + 0x0123;
25974 l = (l << 16) + 0x4567;
25975 l = (l << 16) + 0x89ab;
25976 l = (l << 16) + 0xcdef;
25977 sprintf (buf, "0x%016llx", l);
25978 return (strcmp ("0x0123456789abcdef", buf));
25979 ;
25980 return 0;
25981 }
25982 _ACEOF
25983 if ac_fn_c_try_run "$LINENO"; then :
25984 gdb_cv_printf_has_long_long=yes
25985 else
25986 gdb_cv_printf_has_long_long=no
25987 fi
25988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25989 conftest.$ac_objext conftest.beam conftest.$ac_ext
25990 fi
25991
25992 fi
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
25994 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
25995 if test "$gdb_cv_printf_has_long_long" = yes; then
25996
25997 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
25998
25999 fi
26000
26001
26002 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
26003
26004 for ac_header in sys/procfs.h
26005 do :
26006 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
26007 if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
26008 cat >>confdefs.h <<_ACEOF
26009 #define HAVE_SYS_PROCFS_H 1
26010 _ACEOF
26011
26012 fi
26013
26014 done
26015
26016 if test "$ac_cv_header_sys_procfs_h" = yes; then
26017
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
26019 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
26020 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
26021 $as_echo_n "(cached) " >&6
26022 else
26023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26024 /* end confdefs.h. */
26025
26026 #define _SYSCALL32
26027 #include <sys/procfs.h>
26028 int
26029 main ()
26030 {
26031 gregset_t avar
26032 ;
26033 return 0;
26034 }
26035 _ACEOF
26036 if ac_fn_c_try_compile "$LINENO"; then :
26037 bfd_cv_have_sys_procfs_type_gregset_t=yes
26038 else
26039 bfd_cv_have_sys_procfs_type_gregset_t=no
26040
26041 fi
26042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26043 fi
26044
26045 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
26046
26047 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
26048
26049 fi
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
26051 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
26052
26053
26054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
26055 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
26056 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
26057 $as_echo_n "(cached) " >&6
26058 else
26059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26060 /* end confdefs.h. */
26061
26062 #define _SYSCALL32
26063 #include <sys/procfs.h>
26064 int
26065 main ()
26066 {
26067 fpregset_t avar
26068 ;
26069 return 0;
26070 }
26071 _ACEOF
26072 if ac_fn_c_try_compile "$LINENO"; then :
26073 bfd_cv_have_sys_procfs_type_fpregset_t=yes
26074 else
26075 bfd_cv_have_sys_procfs_type_fpregset_t=no
26076
26077 fi
26078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26079 fi
26080
26081 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
26082
26083 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
26084
26085 fi
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
26087 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
26088
26089
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
26091 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
26092 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
26093 $as_echo_n "(cached) " >&6
26094 else
26095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26096 /* end confdefs.h. */
26097
26098 #define _SYSCALL32
26099 #include <sys/procfs.h>
26100 int
26101 main ()
26102 {
26103 prgregset_t avar
26104 ;
26105 return 0;
26106 }
26107 _ACEOF
26108 if ac_fn_c_try_compile "$LINENO"; then :
26109 bfd_cv_have_sys_procfs_type_prgregset_t=yes
26110 else
26111 bfd_cv_have_sys_procfs_type_prgregset_t=no
26112
26113 fi
26114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26115 fi
26116
26117 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
26118
26119 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
26120
26121 fi
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
26123 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
26124
26125
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
26127 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
26128 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
26129 $as_echo_n "(cached) " >&6
26130 else
26131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26132 /* end confdefs.h. */
26133
26134 #define _SYSCALL32
26135 #include <sys/procfs.h>
26136 int
26137 main ()
26138 {
26139 prfpregset_t avar
26140 ;
26141 return 0;
26142 }
26143 _ACEOF
26144 if ac_fn_c_try_compile "$LINENO"; then :
26145 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
26146 else
26147 bfd_cv_have_sys_procfs_type_prfpregset_t=no
26148
26149 fi
26150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26151 fi
26152
26153 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
26154
26155 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
26156
26157 fi
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
26159 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
26160
26161
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
26163 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
26164 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
26165 $as_echo_n "(cached) " >&6
26166 else
26167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26168 /* end confdefs.h. */
26169
26170 #define _SYSCALL32
26171 #include <sys/procfs.h>
26172 int
26173 main ()
26174 {
26175 prgregset32_t avar
26176 ;
26177 return 0;
26178 }
26179 _ACEOF
26180 if ac_fn_c_try_compile "$LINENO"; then :
26181 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
26182 else
26183 bfd_cv_have_sys_procfs_type_prgregset32_t=no
26184
26185 fi
26186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26187 fi
26188
26189 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
26190
26191 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
26192
26193 fi
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
26195 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
26196
26197
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
26199 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
26200 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
26201 $as_echo_n "(cached) " >&6
26202 else
26203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26204 /* end confdefs.h. */
26205
26206 #define _SYSCALL32
26207 #include <sys/procfs.h>
26208 int
26209 main ()
26210 {
26211 lwpid_t avar
26212 ;
26213 return 0;
26214 }
26215 _ACEOF
26216 if ac_fn_c_try_compile "$LINENO"; then :
26217 bfd_cv_have_sys_procfs_type_lwpid_t=yes
26218 else
26219 bfd_cv_have_sys_procfs_type_lwpid_t=no
26220
26221 fi
26222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26223 fi
26224
26225 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
26226
26227 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
26228
26229 fi
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
26231 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
26232
26233
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
26235 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
26236 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
26237 $as_echo_n "(cached) " >&6
26238 else
26239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26240 /* end confdefs.h. */
26241
26242 #define _SYSCALL32
26243 #include <sys/procfs.h>
26244 int
26245 main ()
26246 {
26247 psaddr_t avar
26248 ;
26249 return 0;
26250 }
26251 _ACEOF
26252 if ac_fn_c_try_compile "$LINENO"; then :
26253 bfd_cv_have_sys_procfs_type_psaddr_t=yes
26254 else
26255 bfd_cv_have_sys_procfs_type_psaddr_t=no
26256
26257 fi
26258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26259 fi
26260
26261 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
26262
26263 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
26264
26265 fi
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
26267 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
26268
26269
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
26271 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
26272 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
26273 $as_echo_n "(cached) " >&6
26274 else
26275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26276 /* end confdefs.h. */
26277
26278 #define _SYSCALL32
26279 #include <sys/procfs.h>
26280 int
26281 main ()
26282 {
26283 elf_fpregset_t avar
26284 ;
26285 return 0;
26286 }
26287 _ACEOF
26288 if ac_fn_c_try_compile "$LINENO"; then :
26289 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
26290 else
26291 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
26292
26293 fi
26294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26295 fi
26296
26297 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
26298
26299 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
26300
26301 fi
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
26303 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
26304
26305 fi
26306
26307 # Check for xxhash
26308
26309 # Check whether --with-xxhash was given.
26310 if test "${with_xxhash+set}" = set; then :
26311 withval=$with_xxhash;
26312 else
26313 with_xxhash=auto
26314 fi
26315
26316
26317 if test "x$with_xxhash" != "xno"; then
26318
26319
26320
26321
26322
26323
26324
26325
26326 use_additional=yes
26327
26328 acl_save_prefix="$prefix"
26329 prefix="$acl_final_prefix"
26330 acl_save_exec_prefix="$exec_prefix"
26331 exec_prefix="$acl_final_exec_prefix"
26332
26333 eval additional_includedir=\"$includedir\"
26334 eval additional_libdir=\"$libdir\"
26335
26336 exec_prefix="$acl_save_exec_prefix"
26337 prefix="$acl_save_prefix"
26338
26339
26340 # Check whether --with-libxxhash-prefix was given.
26341 if test "${with_libxxhash_prefix+set}" = set; then :
26342 withval=$with_libxxhash_prefix;
26343 if test "X$withval" = "Xno"; then
26344 use_additional=no
26345 else
26346 if test "X$withval" = "X"; then
26347
26348 acl_save_prefix="$prefix"
26349 prefix="$acl_final_prefix"
26350 acl_save_exec_prefix="$exec_prefix"
26351 exec_prefix="$acl_final_exec_prefix"
26352
26353 eval additional_includedir=\"$includedir\"
26354 eval additional_libdir=\"$libdir\"
26355
26356 exec_prefix="$acl_save_exec_prefix"
26357 prefix="$acl_save_prefix"
26358
26359 else
26360 additional_includedir="$withval/include"
26361 additional_libdir="$withval/lib"
26362 fi
26363 fi
26364
26365 fi
26366
26367
26368 # Check whether --with-libxxhash-type was given.
26369 if test "${with_libxxhash_type+set}" = set; then :
26370 withval=$with_libxxhash_type; with_libxxhash_type=$withval
26371 else
26372 with_libxxhash_type=auto
26373 fi
26374
26375 lib_type=`eval echo \$with_libxxhash_type`
26376
26377 LIBXXHASH=
26378 LTLIBXXHASH=
26379 INCXXHASH=
26380 rpathdirs=
26381 ltrpathdirs=
26382 names_already_handled=
26383 names_next_round='xxhash '
26384 while test -n "$names_next_round"; do
26385 names_this_round="$names_next_round"
26386 names_next_round=
26387 for name in $names_this_round; do
26388 already_handled=
26389 for n in $names_already_handled; do
26390 if test "$n" = "$name"; then
26391 already_handled=yes
26392 break
26393 fi
26394 done
26395 if test -z "$already_handled"; then
26396 names_already_handled="$names_already_handled $name"
26397 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26398 eval value=\"\$HAVE_LIB$uppername\"
26399 if test -n "$value"; then
26400 if test "$value" = yes; then
26401 eval value=\"\$LIB$uppername\"
26402 test -z "$value" || LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$value"
26403 eval value=\"\$LTLIB$uppername\"
26404 test -z "$value" || LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
26405 else
26406 :
26407 fi
26408 else
26409 found_dir=
26410 found_la=
26411 found_so=
26412 found_a=
26413 if test $use_additional = yes; then
26414 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
26415 found_dir="$additional_libdir"
26416 found_so="$additional_libdir/lib$name.$shlibext"
26417 if test -f "$additional_libdir/lib$name.la"; then
26418 found_la="$additional_libdir/lib$name.la"
26419 fi
26420 elif test x$lib_type != xshared; then
26421 if test -f "$additional_libdir/lib$name.$libext"; then
26422 found_dir="$additional_libdir"
26423 found_a="$additional_libdir/lib$name.$libext"
26424 if test -f "$additional_libdir/lib$name.la"; then
26425 found_la="$additional_libdir/lib$name.la"
26426 fi
26427 fi
26428 fi
26429 fi
26430 if test "X$found_dir" = "X"; then
26431 for x in $LDFLAGS $LTLIBXXHASH; do
26432
26433 acl_save_prefix="$prefix"
26434 prefix="$acl_final_prefix"
26435 acl_save_exec_prefix="$exec_prefix"
26436 exec_prefix="$acl_final_exec_prefix"
26437 eval x=\"$x\"
26438 exec_prefix="$acl_save_exec_prefix"
26439 prefix="$acl_save_prefix"
26440
26441 case "$x" in
26442 -L*)
26443 dir=`echo "X$x" | sed -e 's/^X-L//'`
26444 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
26445 found_dir="$dir"
26446 found_so="$dir/lib$name.$shlibext"
26447 if test -f "$dir/lib$name.la"; then
26448 found_la="$dir/lib$name.la"
26449 fi
26450 elif test x$lib_type != xshared; then
26451 if test -f "$dir/lib$name.$libext"; then
26452 found_dir="$dir"
26453 found_a="$dir/lib$name.$libext"
26454 if test -f "$dir/lib$name.la"; then
26455 found_la="$dir/lib$name.la"
26456 fi
26457 fi
26458 fi
26459 ;;
26460 esac
26461 if test "X$found_dir" != "X"; then
26462 break
26463 fi
26464 done
26465 fi
26466 if test "X$found_dir" != "X"; then
26467 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
26468 if test "X$found_so" != "X"; then
26469 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
26470 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
26471 else
26472 haveit=
26473 for x in $ltrpathdirs; do
26474 if test "X$x" = "X$found_dir"; then
26475 haveit=yes
26476 break
26477 fi
26478 done
26479 if test -z "$haveit"; then
26480 ltrpathdirs="$ltrpathdirs $found_dir"
26481 fi
26482 if test "$hardcode_direct" = yes; then
26483 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
26484 else
26485 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26486 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
26487 haveit=
26488 for x in $rpathdirs; do
26489 if test "X$x" = "X$found_dir"; then
26490 haveit=yes
26491 break
26492 fi
26493 done
26494 if test -z "$haveit"; then
26495 rpathdirs="$rpathdirs $found_dir"
26496 fi
26497 else
26498 haveit=
26499 for x in $LDFLAGS $LIBXXHASH; do
26500
26501 acl_save_prefix="$prefix"
26502 prefix="$acl_final_prefix"
26503 acl_save_exec_prefix="$exec_prefix"
26504 exec_prefix="$acl_final_exec_prefix"
26505 eval x=\"$x\"
26506 exec_prefix="$acl_save_exec_prefix"
26507 prefix="$acl_save_prefix"
26508
26509 if test "X$x" = "X-L$found_dir"; then
26510 haveit=yes
26511 break
26512 fi
26513 done
26514 if test -z "$haveit"; then
26515 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
26516 fi
26517 if test "$hardcode_minus_L" != no; then
26518 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
26519 else
26520 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
26521 fi
26522 fi
26523 fi
26524 fi
26525 else
26526 if test "X$found_a" != "X"; then
26527 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
26528 else
26529 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
26530 fi
26531 fi
26532 additional_includedir=
26533 case "$found_dir" in
26534 */lib | */lib/)
26535 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26536 additional_includedir="$basedir/include"
26537 ;;
26538 esac
26539 if test "X$additional_includedir" != "X"; then
26540 if test "X$additional_includedir" != "X/usr/include"; then
26541 haveit=
26542 if test "X$additional_includedir" = "X/usr/local/include"; then
26543 if test -n "$GCC"; then
26544 case $host_os in
26545 linux*) haveit=yes;;
26546 esac
26547 fi
26548 fi
26549 if test -z "$haveit"; then
26550 for x in $CPPFLAGS $INCXXHASH; do
26551
26552 acl_save_prefix="$prefix"
26553 prefix="$acl_final_prefix"
26554 acl_save_exec_prefix="$exec_prefix"
26555 exec_prefix="$acl_final_exec_prefix"
26556 eval x=\"$x\"
26557 exec_prefix="$acl_save_exec_prefix"
26558 prefix="$acl_save_prefix"
26559
26560 if test "X$x" = "X-I$additional_includedir"; then
26561 haveit=yes
26562 break
26563 fi
26564 done
26565 if test -z "$haveit"; then
26566 if test -d "$additional_includedir"; then
26567 INCXXHASH="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
26568 fi
26569 fi
26570 fi
26571 fi
26572 fi
26573 if test -n "$found_la"; then
26574 save_libdir="$libdir"
26575 case "$found_la" in
26576 */* | *\\*) . "$found_la" ;;
26577 *) . "./$found_la" ;;
26578 esac
26579 libdir="$save_libdir"
26580 for dep in $dependency_libs; do
26581 case "$dep" in
26582 -L*)
26583 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26584 if test "X$additional_libdir" != "X/usr/lib"; then
26585 haveit=
26586 if test "X$additional_libdir" = "X/usr/local/lib"; then
26587 if test -n "$GCC"; then
26588 case $host_os in
26589 linux*) haveit=yes;;
26590 esac
26591 fi
26592 fi
26593 if test -z "$haveit"; then
26594 haveit=
26595 for x in $LDFLAGS $LIBXXHASH; do
26596
26597 acl_save_prefix="$prefix"
26598 prefix="$acl_final_prefix"
26599 acl_save_exec_prefix="$exec_prefix"
26600 exec_prefix="$acl_final_exec_prefix"
26601 eval x=\"$x\"
26602 exec_prefix="$acl_save_exec_prefix"
26603 prefix="$acl_save_prefix"
26604
26605 if test "X$x" = "X-L$additional_libdir"; then
26606 haveit=yes
26607 break
26608 fi
26609 done
26610 if test -z "$haveit"; then
26611 if test -d "$additional_libdir"; then
26612 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
26613 fi
26614 fi
26615 haveit=
26616 for x in $LDFLAGS $LTLIBXXHASH; do
26617
26618 acl_save_prefix="$prefix"
26619 prefix="$acl_final_prefix"
26620 acl_save_exec_prefix="$exec_prefix"
26621 exec_prefix="$acl_final_exec_prefix"
26622 eval x=\"$x\"
26623 exec_prefix="$acl_save_exec_prefix"
26624 prefix="$acl_save_prefix"
26625
26626 if test "X$x" = "X-L$additional_libdir"; then
26627 haveit=yes
26628 break
26629 fi
26630 done
26631 if test -z "$haveit"; then
26632 if test -d "$additional_libdir"; then
26633 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
26634 fi
26635 fi
26636 fi
26637 fi
26638 ;;
26639 -R*)
26640 dir=`echo "X$dep" | sed -e 's/^X-R//'`
26641 if test "$enable_rpath" != no; then
26642 haveit=
26643 for x in $rpathdirs; do
26644 if test "X$x" = "X$dir"; then
26645 haveit=yes
26646 break
26647 fi
26648 done
26649 if test -z "$haveit"; then
26650 rpathdirs="$rpathdirs $dir"
26651 fi
26652 haveit=
26653 for x in $ltrpathdirs; do
26654 if test "X$x" = "X$dir"; then
26655 haveit=yes
26656 break
26657 fi
26658 done
26659 if test -z "$haveit"; then
26660 ltrpathdirs="$ltrpathdirs $dir"
26661 fi
26662 fi
26663 ;;
26664 -l*)
26665 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26666 ;;
26667 *.la)
26668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26669 ;;
26670 *)
26671 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$dep"
26672 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
26673 ;;
26674 esac
26675 done
26676 fi
26677 else
26678 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
26679 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
26680 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
26681 else
26682 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
26683 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
26684 fi
26685 fi
26686 fi
26687 fi
26688 done
26689 done
26690 if test "X$rpathdirs" != "X"; then
26691 if test -n "$hardcode_libdir_separator"; then
26692 alldirs=
26693 for found_dir in $rpathdirs; do
26694 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26695 done
26696 acl_save_libdir="$libdir"
26697 libdir="$alldirs"
26698 eval flag=\"$hardcode_libdir_flag_spec\"
26699 libdir="$acl_save_libdir"
26700 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
26701 else
26702 for found_dir in $rpathdirs; do
26703 acl_save_libdir="$libdir"
26704 libdir="$found_dir"
26705 eval flag=\"$hardcode_libdir_flag_spec\"
26706 libdir="$acl_save_libdir"
26707 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
26708 done
26709 fi
26710 fi
26711 if test "X$ltrpathdirs" != "X"; then
26712 for found_dir in $ltrpathdirs; do
26713 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
26714 done
26715 fi
26716
26717
26718 ac_save_CPPFLAGS="$CPPFLAGS"
26719
26720 for element in $INCXXHASH; do
26721 haveit=
26722 for x in $CPPFLAGS; do
26723
26724 acl_save_prefix="$prefix"
26725 prefix="$acl_final_prefix"
26726 acl_save_exec_prefix="$exec_prefix"
26727 exec_prefix="$acl_final_exec_prefix"
26728 eval x=\"$x\"
26729 exec_prefix="$acl_save_exec_prefix"
26730 prefix="$acl_save_prefix"
26731
26732 if test "X$x" = "X$element"; then
26733 haveit=yes
26734 break
26735 fi
26736 done
26737 if test -z "$haveit"; then
26738 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26739 fi
26740 done
26741
26742
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
26744 $as_echo_n "checking for libxxhash... " >&6; }
26745 if ${ac_cv_libxxhash+:} false; then :
26746 $as_echo_n "(cached) " >&6
26747 else
26748
26749 ac_save_LIBS="$LIBS"
26750 LIBS="$LIBS $LIBXXHASH"
26751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26752 /* end confdefs.h. */
26753 #include <xxhash.h>
26754 int
26755 main ()
26756 {
26757 XXH32("foo", 3, 0);
26758
26759 ;
26760 return 0;
26761 }
26762 _ACEOF
26763 if ac_fn_c_try_link "$LINENO"; then :
26764 ac_cv_libxxhash=yes
26765 else
26766 ac_cv_libxxhash=no
26767 fi
26768 rm -f core conftest.err conftest.$ac_objext \
26769 conftest$ac_exeext conftest.$ac_ext
26770 LIBS="$ac_save_LIBS"
26771
26772 fi
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
26774 $as_echo "$ac_cv_libxxhash" >&6; }
26775 if test "$ac_cv_libxxhash" = yes; then
26776 HAVE_LIBXXHASH=yes
26777
26778 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
26779
26780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
26781 $as_echo_n "checking how to link with libxxhash... " >&6; }
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
26783 $as_echo "$LIBXXHASH" >&6; }
26784 else
26785 HAVE_LIBXXHASH=no
26786 CPPFLAGS="$ac_save_CPPFLAGS"
26787 LIBXXHASH=
26788 LTLIBXXHASH=
26789 fi
26790
26791
26792
26793
26794
26795
26796 if test "$HAVE_LIBXXHASH" != yes; then
26797 if test "$with_xxhash" = yes; then
26798 as_fn_error $? "xxhash is missing or unusable" "$LINENO" 5
26799 fi
26800 fi
26801 if test "x$with_xxhash" = "xauto"; then
26802 with_xxhash="$HAVE_LIBXXHASH"
26803 fi
26804 fi
26805
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
26807 $as_echo_n "checking whether to use xxhash... " >&6; }
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
26809 $as_echo "$with_xxhash" >&6; }
26810
26811
26812 # Check the return and argument types of ptrace.
26813
26814
26815 for ac_header in sys/ptrace.h ptrace.h
26816 do :
26817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26818 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26819 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26820 cat >>confdefs.h <<_ACEOF
26821 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26822 _ACEOF
26823
26824 fi
26825
26826 done
26827
26828
26829 gdb_ptrace_headers='
26830 #include <sys/types.h>
26831 #if HAVE_SYS_PTRACE_H
26832 # include <sys/ptrace.h>
26833 #endif
26834 #if HAVE_UNISTD_H
26835 # include <unistd.h>
26836 #endif
26837 '
26838
26839 # Check return type. Varargs (used on GNU/Linux) conflict with the
26840 # empty argument list, so check for that explicitly.
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
26842 $as_echo_n "checking return type of ptrace... " >&6; }
26843 if ${gdb_cv_func_ptrace_ret+:} false; then :
26844 $as_echo_n "(cached) " >&6
26845 else
26846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26847 /* end confdefs.h. */
26848  $gdb_ptrace_headers
26849 int
26850 main ()
26851 {
26852 extern long ptrace (enum __ptrace_request, ...);
26853
26854 ;
26855 return 0;
26856 }
26857 _ACEOF
26858 if ac_fn_c_try_compile "$LINENO"; then :
26859 gdb_cv_func_ptrace_ret='long'
26860 else
26861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26862 /* end confdefs.h. */
26863 $gdb_ptrace_headers
26864 int
26865 main ()
26866 {
26867 extern int ptrace ();
26868
26869 ;
26870 return 0;
26871 }
26872 _ACEOF
26873 if ac_fn_c_try_compile "$LINENO"; then :
26874 gdb_cv_func_ptrace_ret='int'
26875 else
26876 gdb_cv_func_ptrace_ret='long'
26877
26878 fi
26879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26880
26881 fi
26882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26883
26884 fi
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
26886 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
26887
26888
26889 cat >>confdefs.h <<_ACEOF
26890 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
26891 _ACEOF
26892
26893
26894 # Check argument types.
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
26896 $as_echo_n "checking types of arguments for ptrace... " >&6; }
26897 if ${gdb_cv_func_ptrace_args+:} false; then :
26898 $as_echo_n "(cached) " >&6
26899 else
26900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26901 /* end confdefs.h. */
26902 $gdb_ptrace_headers
26903 int
26904 main ()
26905 {
26906 extern long ptrace (enum __ptrace_request, ...);
26907
26908 ;
26909 return 0;
26910 }
26911 _ACEOF
26912 if ac_fn_c_try_compile "$LINENO"; then :
26913 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
26914 else
26915 for gdb_arg1 in 'int' 'long'; do
26916 for gdb_arg2 in 'pid_t' 'int' 'long'; do
26917 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
26918 for gdb_arg4 in 'int' 'long' 'void *'; do
26919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26920 /* end confdefs.h. */
26921 $gdb_ptrace_headers
26922 int
26923 main ()
26924 {
26925 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
26926
26927 ;
26928 return 0;
26929 }
26930 _ACEOF
26931 if ac_fn_c_try_compile "$LINENO"; then :
26932 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
26933 break 4;
26934
26935 fi
26936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26937
26938 for gdb_arg5 in 'int *' 'int' 'long'; do
26939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26940 /* end confdefs.h. */
26941 $gdb_ptrace_headers
26942 int
26943 main ()
26944 {
26945 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
26946
26947 ;
26948 return 0;
26949 }
26950 _ACEOF
26951 if ac_fn_c_try_compile "$LINENO"; then :
26952 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
26953 break 5;
26954
26955 fi
26956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26957 done
26958 done
26959 done
26960 done
26961 done
26962 # Provide a safe default value.
26963 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
26964
26965 fi
26966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26967
26968 fi
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
26970 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
26971
26972 ac_save_IFS=$IFS; IFS=','
26973 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
26974 IFS=$ac_save_IFS
26975 shift
26976
26977 cat >>confdefs.h <<_ACEOF
26978 #define PTRACE_TYPE_ARG1 $1
26979 _ACEOF
26980
26981
26982 cat >>confdefs.h <<_ACEOF
26983 #define PTRACE_TYPE_ARG3 $3
26984 _ACEOF
26985
26986
26987 cat >>confdefs.h <<_ACEOF
26988 #define PTRACE_TYPE_ARG4 $4
26989 _ACEOF
26990
26991 if test -n "$5"; then
26992
26993 cat >>confdefs.h <<_ACEOF
26994 #define PTRACE_TYPE_ARG5 $5
26995 _ACEOF
26996
26997 fi
26998
26999
27000 if test "$cross_compiling" = no; then
27001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27002 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27003 if ${ac_cv_func_setpgrp_void+:} false; then :
27004 $as_echo_n "(cached) " >&6
27005 else
27006 if test "$cross_compiling" = yes; then :
27007 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
27008 else
27009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27010 /* end confdefs.h. */
27011 $ac_includes_default
27012 int
27013 main ()
27014 {
27015 /* If this system has a BSD-style setpgrp which takes arguments,
27016 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
27017 exit successfully. */
27018 return setpgrp (1,1) != -1;
27019 ;
27020 return 0;
27021 }
27022 _ACEOF
27023 if ac_fn_c_try_run "$LINENO"; then :
27024 ac_cv_func_setpgrp_void=no
27025 else
27026 ac_cv_func_setpgrp_void=yes
27027 fi
27028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27029 conftest.$ac_objext conftest.beam conftest.$ac_ext
27030 fi
27031
27032 fi
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27034 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27035 if test $ac_cv_func_setpgrp_void = yes; then
27036
27037 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27038
27039 fi
27040
27041 else
27042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27043 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27044 if ${ac_cv_func_setpgrp_void+:} false; then :
27045 $as_echo_n "(cached) " >&6
27046 else
27047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27048 /* end confdefs.h. */
27049 #include <unistd.h>
27050 int
27051 main ()
27052 {
27053 if (setpgrp(1,1) == -1)
27054 exit (0);
27055 else
27056 exit (1);
27057
27058 ;
27059 return 0;
27060 }
27061 _ACEOF
27062 if ac_fn_c_try_compile "$LINENO"; then :
27063 ac_cv_func_setpgrp_void=no
27064 else
27065 ac_cv_func_setpgrp_void=yes
27066
27067 fi
27068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27069
27070 fi
27071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27072 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27073 if test "$ac_cv_func_setpgrp_void" = yes; then
27074 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27075
27076 fi
27077 fi
27078
27079 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
27080 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
27081 #include <sys/proc.h>
27082
27083 "
27084 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
27085
27086 cat >>confdefs.h <<_ACEOF
27087 #define HAVE_STRUCT_THREAD_TD_PCB 1
27088 _ACEOF
27089
27090
27091 fi
27092
27093
27094 # See if <sys/lwp.h> defines `struct lwp`.
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
27096 $as_echo_n "checking for struct lwp... " >&6; }
27097 if ${gdb_cv_struct_lwp+:} false; then :
27098 $as_echo_n "(cached) " >&6
27099 else
27100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27101 /* end confdefs.h. */
27102 #include <sys/param.h>
27103 #define _KMEMUSER
27104 #include <sys/lwp.h>
27105 int
27106 main ()
27107 {
27108 struct lwp l;
27109
27110 ;
27111 return 0;
27112 }
27113 _ACEOF
27114 if ac_fn_c_try_compile "$LINENO"; then :
27115 gdb_cv_struct_lwp=yes
27116 else
27117 gdb_cv_struct_lwp=no
27118
27119 fi
27120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27121
27122 fi
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
27124 $as_echo "$gdb_cv_struct_lwp" >&6; }
27125 if test "$gdb_cv_struct_lwp" = yes; then
27126
27127 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
27128
27129 fi
27130
27131 # See if <machine/reg.h> degines `struct reg'.
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
27133 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
27134 if ${gdb_cv_struct_reg+:} false; then :
27135 $as_echo_n "(cached) " >&6
27136 else
27137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27138 /* end confdefs.h. */
27139 #include <sys/types.h>
27140 #include <machine/reg.h>
27141 int
27142 main ()
27143 {
27144 struct reg r;
27145
27146 ;
27147 return 0;
27148 }
27149 _ACEOF
27150 if ac_fn_c_try_compile "$LINENO"; then :
27151 gdb_cv_struct_reg=yes
27152 else
27153 gdb_cv_struct_reg=no
27154
27155 fi
27156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27157
27158 fi
27159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
27160 $as_echo "$gdb_cv_struct_reg" >&6; }
27161 if test "$gdb_cv_struct_reg" = yes; then
27162
27163 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
27164
27165 fi
27166
27167 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
27168 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
27169 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
27170 #include <machine/reg.h>
27171 "
27172 if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
27173
27174 cat >>confdefs.h <<_ACEOF
27175 #define HAVE_STRUCT_REG_R_FS 1
27176 _ACEOF
27177
27178
27179 fi
27180 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
27181 #include <machine/reg.h>
27182 "
27183 if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
27184
27185 cat >>confdefs.h <<_ACEOF
27186 #define HAVE_STRUCT_REG_R_GS 1
27187 _ACEOF
27188
27189
27190 fi
27191
27192
27193 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
27194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
27195 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
27196 if ${gdb_cv_have_ptrace_getregs+:} false; then :
27197 $as_echo_n "(cached) " >&6
27198 else
27199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27200 /* end confdefs.h. */
27201 #include <sys/ptrace.h>
27202 int
27203 main ()
27204 {
27205 PTRACE_GETREGS;
27206 ;
27207 return 0;
27208 }
27209 _ACEOF
27210 if ac_fn_c_try_compile "$LINENO"; then :
27211 gdb_cv_have_ptrace_getregs=yes
27212 else
27213 gdb_cv_have_ptrace_getregs=no
27214
27215 fi
27216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27217
27218 fi
27219
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
27221 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
27222 if test "$gdb_cv_have_ptrace_getregs" = yes; then
27223
27224 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
27225
27226 fi
27227
27228 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
27229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
27230 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
27231 if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
27232 $as_echo_n "(cached) " >&6
27233 else
27234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27235 /* end confdefs.h. */
27236 #include <sys/ptrace.h>
27237 int
27238 main ()
27239 {
27240 PTRACE_GETFPXREGS;
27241 ;
27242 return 0;
27243 }
27244 _ACEOF
27245 if ac_fn_c_try_compile "$LINENO"; then :
27246 gdb_cv_have_ptrace_getfpxregs=yes
27247 else
27248 gdb_cv_have_ptrace_getfpxregs=no
27249
27250 fi
27251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27252
27253 fi
27254
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
27256 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
27257 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
27258
27259 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
27260
27261 fi
27262
27263 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
27265 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
27266 if ${gdb_cv_have_pt_getdbregs+:} false; then :
27267 $as_echo_n "(cached) " >&6
27268 else
27269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27270 /* end confdefs.h. */
27271 #include <sys/types.h>
27272 #include <sys/ptrace.h>
27273 int
27274 main ()
27275 {
27276 PT_GETDBREGS;
27277
27278 ;
27279 return 0;
27280 }
27281 _ACEOF
27282 if ac_fn_c_try_compile "$LINENO"; then :
27283 gdb_cv_have_pt_getdbregs=yes
27284 else
27285 gdb_cv_have_pt_getdbregs=no
27286
27287 fi
27288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27289
27290 fi
27291
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
27293 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
27294 if test "$gdb_cv_have_pt_getdbregs" = yes; then
27295
27296 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
27297
27298 fi
27299
27300 # See if <sys/ptrace.h> supports LWP names on FreeBSD
27301 # Older FreeBSD versions don't have the pl_tdname member of
27302 # `struct ptrace_lwpinfo'.
27303 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
27304 "
27305 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
27306
27307 cat >>confdefs.h <<_ACEOF
27308 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
27309 _ACEOF
27310
27311
27312 fi
27313
27314
27315 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
27316 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
27317 # FreeBSD 10.3.
27318 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h>
27319 "
27320 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
27321
27322 cat >>confdefs.h <<_ACEOF
27323 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
27324 _ACEOF
27325
27326
27327 fi
27328
27329
27330 # Check if the compiler supports the `long long' type.
27331
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
27333 $as_echo_n "checking for long long support in compiler... " >&6; }
27334 if ${gdb_cv_c_long_long+:} false; then :
27335 $as_echo_n "(cached) " >&6
27336 else
27337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27338 /* end confdefs.h. */
27339 extern long long foo;
27340 int
27341 main ()
27342 {
27343 switch (foo & 2) { case 0: return 1; }
27344 ;
27345 return 0;
27346 }
27347 _ACEOF
27348 if ac_fn_c_try_compile "$LINENO"; then :
27349 gdb_cv_c_long_long=yes
27350 else
27351 gdb_cv_c_long_long=no
27352 fi
27353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27354 fi
27355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
27356 $as_echo "$gdb_cv_c_long_long" >&6; }
27357 if test "$gdb_cv_c_long_long" != yes; then
27358 # libdecnumber requires long long.
27359 as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
27360 fi
27361
27362 # Check if the compiler and runtime support printing decfloats.
27363
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
27365 $as_echo_n "checking for decfloat support in printf... " >&6; }
27366 if ${gdb_cv_printf_has_decfloat+:} false; then :
27367 $as_echo_n "(cached) " >&6
27368 else
27369 if test "$cross_compiling" = yes; then :
27370 gdb_cv_printf_has_decfloat=no
27371 else
27372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27373 /* end confdefs.h. */
27374 $ac_includes_default
27375 int
27376 main ()
27377 {
27378 char buf[64];
27379 _Decimal32 d32 = 1.2345df;
27380 _Decimal64 d64 = 1.2345dd;
27381 _Decimal128 d128 = 1.2345dl;
27382 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
27383 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
27384 ;
27385 return 0;
27386 }
27387 _ACEOF
27388 if ac_fn_c_try_run "$LINENO"; then :
27389 gdb_cv_printf_has_decfloat=yes
27390 else
27391 gdb_cv_printf_has_decfloat=no
27392 fi
27393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27394 conftest.$ac_objext conftest.beam conftest.$ac_ext
27395 fi
27396
27397 fi
27398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
27399 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
27400 if test "$gdb_cv_printf_has_decfloat" = yes; then
27401
27402 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
27403
27404 fi
27405
27406 # Check if the compiler supports the `long double' type. We can't use
27407 # AC_C_LONG_DOUBLE because that one does additional checks on the
27408 # constants defined in <float.h> that fail on some systems,
27409 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
27410
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
27412 $as_echo_n "checking for long double support in compiler... " >&6; }
27413 if ${gdb_cv_c_long_double+:} false; then :
27414 $as_echo_n "(cached) " >&6
27415 else
27416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27417 /* end confdefs.h. */
27418 long double foo;
27419 _ACEOF
27420 if ac_fn_c_try_compile "$LINENO"; then :
27421 gdb_cv_c_long_double=yes
27422 else
27423 gdb_cv_c_long_double=no
27424 fi
27425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27426 fi
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
27428 $as_echo "$gdb_cv_c_long_double" >&6; }
27429 if test "$gdb_cv_c_long_double" = yes; then
27430
27431 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
27432
27433 fi
27434
27435 # Check if the compiler and runtime support printing long doubles.
27436
27437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
27438 $as_echo_n "checking for long double support in printf... " >&6; }
27439 if ${gdb_cv_printf_has_long_double+:} false; then :
27440 $as_echo_n "(cached) " >&6
27441 else
27442 if test "$cross_compiling" = yes; then :
27443 gdb_cv_printf_has_long_double=no
27444 else
27445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27446 /* end confdefs.h. */
27447 $ac_includes_default
27448 int
27449 main ()
27450 {
27451 char buf[16];
27452 long double f = 3.141592653;
27453 sprintf (buf, "%Lg", f);
27454 return (strncmp ("3.14159", buf, 7));
27455 ;
27456 return 0;
27457 }
27458 _ACEOF
27459 if ac_fn_c_try_run "$LINENO"; then :
27460 gdb_cv_printf_has_long_double=yes
27461 else
27462 gdb_cv_printf_has_long_double=no
27463 fi
27464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27465 conftest.$ac_objext conftest.beam conftest.$ac_ext
27466 fi
27467
27468 fi
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
27470 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
27471 if test "$gdb_cv_printf_has_long_double" = yes; then
27472
27473 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
27474
27475 fi
27476
27477 # Check if the compiler and runtime support scanning long doubles.
27478
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
27480 $as_echo_n "checking for long double support in scanf... " >&6; }
27481 if ${gdb_cv_scanf_has_long_double+:} false; then :
27482 $as_echo_n "(cached) " >&6
27483 else
27484 if test "$cross_compiling" = yes; then :
27485 gdb_cv_scanf_has_long_double=no
27486 else
27487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27488 /* end confdefs.h. */
27489 #include <stdio.h>
27490 int
27491 main ()
27492 {
27493 char *buf = "3.141592653";
27494 long double f = 0;
27495 sscanf (buf, "%Lg", &f);
27496 return !(f > 3.14159 && f < 3.14160);
27497 ;
27498 return 0;
27499 }
27500 _ACEOF
27501 if ac_fn_c_try_run "$LINENO"; then :
27502 gdb_cv_scanf_has_long_double=yes
27503 else
27504 gdb_cv_scanf_has_long_double=no
27505 fi
27506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27507 conftest.$ac_objext conftest.beam conftest.$ac_ext
27508 fi
27509
27510 fi
27511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
27512 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
27513 if test "$gdb_cv_scanf_has_long_double" = yes; then
27514
27515 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
27516
27517 fi
27518
27519 case ${host_os} in
27520 aix*)
27521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
27522 $as_echo_n "checking for -bbigtoc option... " >&6; }
27523 if ${gdb_cv_bigtoc+:} false; then :
27524 $as_echo_n "(cached) " >&6
27525 else
27526 SAVE_LDFLAGS=$LDFLAGS
27527
27528 case $GCC in
27529 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
27530 *) gdb_cv_bigtoc=-bbigtoc ;;
27531 esac
27532
27533 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
27534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27535 /* end confdefs.h. */
27536
27537 int
27538 main ()
27539 {
27540 int i;
27541 ;
27542 return 0;
27543 }
27544 _ACEOF
27545 if ac_fn_c_try_link "$LINENO"; then :
27546
27547 else
27548 gdb_cv_bigtoc=
27549
27550 fi
27551 rm -f core conftest.err conftest.$ac_objext \
27552 conftest$ac_exeext conftest.$ac_ext
27553 LDFLAGS="${SAVE_LDFLAGS}"
27554
27555 fi
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
27557 $as_echo "$gdb_cv_bigtoc" >&6; }
27558 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
27559 ;;
27560 esac
27561
27562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
27563 $as_echo_n "checking for the dynamic export flag... " >&6; }
27564 dynamic_list=false
27565 if test "${gdb_native}" = yes; then
27566 # The dynamically loaded libthread_db needs access to symbols in the gdb
27567 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
27568 # may not be supported there.
27569 old_LDFLAGS="$LDFLAGS"
27570 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
27571 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
27572 LDFLAGS="$LDFLAGS $RDYNAMIC"
27573 if test "${have_libpython}" = no; then
27574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27575 /* end confdefs.h. */
27576
27577 int
27578 main ()
27579 {
27580
27581 ;
27582 return 0;
27583 }
27584 _ACEOF
27585 if ac_fn_c_try_link "$LINENO"; then :
27586 dynamic_list=true
27587 fi
27588 rm -f core conftest.err conftest.$ac_objext \
27589 conftest$ac_exeext conftest.$ac_ext
27590 else
27591 # Workaround http://bugs.python.org/issue4434 where static
27592 # libpythonX.Y.a would get its symbols required for
27593 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
27594 # Problem does not happen for the recommended libpythonX.Y.so linkage.
27595
27596 # Note the workaround for Python
27597 # http://bugs.python.org/issue10112 earlier has removed
27598 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
27599 # here too, as otherwise it'd make this -Wl,--dynamic-list test
27600 # always pass.
27601 old_CFLAGS="$CFLAGS"
27602 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
27603 old_LIBS="$LIBS"
27604 LIBS="$LIBS $PYTHON_LIBS"
27605 old_CPPFLAGS="$CPPFLAGS"
27606 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
27607 if test "$cross_compiling" = yes; then :
27608 true
27609 else
27610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27611 /* end confdefs.h. */
27612 #include "Python.h"
27613 int
27614 main ()
27615 {
27616 int err;
27617 Py_Initialize ();
27618 err = PyRun_SimpleString ("import ctypes\n");
27619 Py_Finalize ();
27620 return err == 0 ? 0 : 1;
27621 ;
27622 return 0;
27623 }
27624 _ACEOF
27625 if ac_fn_c_try_run "$LINENO"; then :
27626 dynamic_list=true
27627 fi
27628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27629 conftest.$ac_objext conftest.beam conftest.$ac_ext
27630 fi
27631
27632 LIBS="$old_LIBS"
27633 CFLAGS="$old_CFLAGS"
27634 CPPFLAGS="$old_CPPFLAGS"
27635 fi
27636 LDFLAGS="$old_LDFLAGS"
27637 fi
27638 if $dynamic_list; then
27639 found="-Wl,--dynamic-list"
27640 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
27641 else
27642 found="-rdynamic"
27643 RDYNAMIC="-rdynamic"
27644 fi
27645
27646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
27647 $as_echo "$found" >&6; }
27648
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
27650 $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
27651 if ${gdb_cv_execinfo_backtrace+:} false; then :
27652 $as_echo_n "(cached) " >&6
27653 else
27654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27655 /* end confdefs.h. */
27656
27657 #include <execinfo.h>
27658
27659 int
27660 main ()
27661 {
27662
27663 int f;
27664 void *b[2];
27665 f = backtrace (b, 2);
27666 backtrace_symbols_fd (b, f, 2);
27667
27668 ;
27669 return 0;
27670 }
27671 _ACEOF
27672 if ac_fn_c_try_link "$LINENO"; then :
27673 gdb_cv_execinfo_backtrace=yes
27674 else
27675 gdb_cv_execinfo_backtrace=no
27676 fi
27677 rm -f core conftest.err conftest.$ac_objext \
27678 conftest$ac_exeext conftest.$ac_ext
27679 fi
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
27681 $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
27682 if test "$gdb_cv_execinfo_backtrace" = yes; then
27683
27684 $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
27685
27686 fi
27687
27688
27689 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
27690 case ${host_os} in
27691 aix*)
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
27693 $as_echo_n "checking for AiX thread debugging library... " >&6; }
27694 if ${gdb_cv_have_aix_thread_debug+:} false; then :
27695 $as_echo_n "(cached) " >&6
27696 else
27697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27698 /* end confdefs.h. */
27699 #include <sys/pthdebug.h>
27700 int
27701 main ()
27702 {
27703 #ifndef PTHDB_VERSION_3
27704 #error
27705 #endif
27706
27707 ;
27708 return 0;
27709 }
27710 _ACEOF
27711 if ac_fn_c_try_compile "$LINENO"; then :
27712 gdb_cv_have_aix_thread_debug=yes
27713 else
27714 gdb_cv_have_aix_thread_debug=no
27715
27716 fi
27717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27718
27719 fi
27720
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
27722 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
27723 if test "$gdb_cv_have_aix_thread_debug" = yes; then
27724 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
27725 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
27726 LIBS="$LIBS -lpthdebug"
27727
27728 # Older versions of AIX do not provide the declaration for
27729 # the getthrds function (it appears that it was introduced
27730 # with AIX 6.x).
27731 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
27732 "
27733 if test "x$ac_cv_have_decl_getthrds" = xyes; then :
27734 ac_have_decl=1
27735 else
27736 ac_have_decl=0
27737 fi
27738
27739 cat >>confdefs.h <<_ACEOF
27740 #define HAVE_DECL_GETTHRDS $ac_have_decl
27741 _ACEOF
27742
27743 fi
27744 ;;
27745 esac
27746
27747 fi
27748
27749 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
27751 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
27752 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
27753 $as_echo_n "(cached) " >&6
27754 else
27755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27756 /* end confdefs.h. */
27757 #include <thread_db.h>
27758 int
27759 main ()
27760 {
27761 int i = TD_NOTALLOC;
27762
27763 ;
27764 return 0;
27765 }
27766 _ACEOF
27767 if ac_fn_c_try_compile "$LINENO"; then :
27768 gdb_cv_thread_db_h_has_td_notalloc=yes
27769 else
27770 gdb_cv_thread_db_h_has_td_notalloc=no
27771
27772 fi
27773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27774
27775 fi
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
27777 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
27778
27779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
27780 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
27781 if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
27782 $as_echo_n "(cached) " >&6
27783 else
27784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27785 /* end confdefs.h. */
27786 #include <thread_db.h>
27787 int
27788 main ()
27789 {
27790 int i = TD_VERSION;
27791
27792 ;
27793 return 0;
27794 }
27795 _ACEOF
27796 if ac_fn_c_try_compile "$LINENO"; then :
27797 gdb_cv_thread_db_h_has_td_version=yes
27798 else
27799 gdb_cv_thread_db_h_has_td_version=no
27800
27801 fi
27802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27803
27804 fi
27805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
27806 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
27807
27808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
27809 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
27810 if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
27811 $as_echo_n "(cached) " >&6
27812 else
27813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27814 /* end confdefs.h. */
27815 #include <thread_db.h>
27816 int
27817 main ()
27818 {
27819 int i = TD_NOTLS;
27820
27821 ;
27822 return 0;
27823 }
27824 _ACEOF
27825 if ac_fn_c_try_compile "$LINENO"; then :
27826 gdb_cv_thread_db_h_has_td_notls=yes
27827 else
27828 gdb_cv_thread_db_h_has_td_notls=no
27829
27830 fi
27831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27832
27833 fi
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
27835 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
27836 fi
27837 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
27838
27839 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
27840
27841 fi
27842 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
27843
27844 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
27845
27846 fi
27847 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
27848
27849 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
27850
27851 fi
27852
27853 case $host_os in
27854 go32* | *djgpp*)
27855 gdbinit=gdb.ini
27856 ;;
27857 *)
27858 gdbinit=.gdbinit
27859 ;;
27860 esac
27861
27862 cat >>confdefs.h <<_ACEOF
27863 #define GDBINIT "$gdbinit"
27864 _ACEOF
27865
27866
27867
27868 cat >>confdefs.h <<_ACEOF
27869 #define GDBEARLYINIT ".gdbearlyinit"
27870 _ACEOF
27871
27872
27873
27874 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
27875 # except that the argument to --with-sysroot is optional.
27876 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
27877 if test "x$with_sysroot" = xyes; then
27878 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
27879 fi
27880
27881 # Check whether --with-sysroot was given.
27882 if test "${with_sysroot+set}" = set; then :
27883 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
27884 else
27885 TARGET_SYSTEM_ROOT=
27886 fi
27887
27888
27889 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
27890 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27891 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
27892 ac_define_dir=`eval echo $ac_define_dir`
27893
27894 cat >>confdefs.h <<_ACEOF
27895 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
27896 _ACEOF
27897
27898
27899
27900
27901 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
27902 if test "x$prefix" = xNONE; then
27903 test_prefix=/usr/local
27904 else
27905 test_prefix=$prefix
27906 fi
27907 else
27908 test_prefix=$exec_prefix
27909 fi
27910 value=0
27911 case ${ac_define_dir} in
27912 "${test_prefix}"|"${test_prefix}/"*|\
27913 '${exec_prefix}'|'${exec_prefix}/'*)
27914 value=1
27915 ;;
27916 esac
27917
27918 cat >>confdefs.h <<_ACEOF
27919 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
27920 _ACEOF
27921
27922
27923
27924
27925
27926 # Check whether --with-system-gdbinit was given.
27927 if test "${with_system_gdbinit+set}" = set; then :
27928 withval=$with_system_gdbinit;
27929 SYSTEM_GDBINIT=$withval
27930 else
27931 SYSTEM_GDBINIT=
27932 fi
27933
27934
27935 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
27936 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27937 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
27938 ac_define_dir=`eval echo $ac_define_dir`
27939
27940 cat >>confdefs.h <<_ACEOF
27941 #define SYSTEM_GDBINIT "$ac_define_dir"
27942 _ACEOF
27943
27944
27945
27946
27947 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
27948 if test "x$prefix" = xNONE; then
27949 test_prefix=/usr/local
27950 else
27951 test_prefix=$prefix
27952 fi
27953 else
27954 test_prefix=$exec_prefix
27955 fi
27956 value=0
27957 case ${ac_define_dir} in
27958 "${test_prefix}"|"${test_prefix}/"*|\
27959 '${exec_prefix}'|'${exec_prefix}/'*)
27960 value=1
27961 ;;
27962 esac
27963
27964 cat >>confdefs.h <<_ACEOF
27965 #define SYSTEM_GDBINIT_RELOCATABLE $value
27966 _ACEOF
27967
27968
27969
27970
27971
27972 # Check whether --with-system-gdbinit-dir was given.
27973 if test "${with_system_gdbinit_dir+set}" = set; then :
27974 withval=$with_system_gdbinit_dir;
27975 SYSTEM_GDBINIT_DIR=$withval
27976 else
27977 SYSTEM_GDBINIT_DIR=
27978 fi
27979
27980
27981 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
27982 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27983 ac_define_dir=`eval echo $SYSTEM_GDBINIT_DIR`
27984 ac_define_dir=`eval echo $ac_define_dir`
27985
27986 cat >>confdefs.h <<_ACEOF
27987 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
27988 _ACEOF
27989
27990
27991
27992
27993 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
27994 if test "x$prefix" = xNONE; then
27995 test_prefix=/usr/local
27996 else
27997 test_prefix=$prefix
27998 fi
27999 else
28000 test_prefix=$exec_prefix
28001 fi
28002 value=0
28003 case ${ac_define_dir} in
28004 "${test_prefix}"|"${test_prefix}/"*|\
28005 '${exec_prefix}'|'${exec_prefix}/'*)
28006 value=1
28007 ;;
28008 esac
28009
28010 cat >>confdefs.h <<_ACEOF
28011 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
28012 _ACEOF
28013
28014
28015
28016
28017
28018
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
28020 $as_echo_n "checking the compiler type... " >&6; }
28021 if ${gdb_cv_compiler_type+:} false; then :
28022 $as_echo_n "(cached) " >&6
28023 else
28024 gdb_cv_compiler_type=unknown
28025 if test "$gdb_cv_compiler_type" = unknown; then
28026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28027 /* end confdefs.h. */
28028
28029 int
28030 main ()
28031 {
28032
28033 #if !defined __GNUC__ || defined __clang__
28034 #error not gcc
28035 #endif
28036
28037 ;
28038 return 0;
28039 }
28040 _ACEOF
28041 if ac_fn_c_try_compile "$LINENO"; then :
28042 gdb_cv_compiler_type=gcc
28043 fi
28044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28045 fi
28046
28047 if test "$gdb_cv_compiler_type" = unknown; then
28048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28049 /* end confdefs.h. */
28050
28051 int
28052 main ()
28053 {
28054
28055 #ifndef __clang__
28056 #error not clang
28057 #endif
28058
28059 ;
28060 return 0;
28061 }
28062 _ACEOF
28063 if ac_fn_c_try_compile "$LINENO"; then :
28064 gdb_cv_compiler_type=clang
28065 fi
28066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28067 fi
28068
28069 fi
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
28071 $as_echo "$gdb_cv_compiler_type" >&6; }
28072
28073 GDB_COMPILER_TYPE="$gdb_cv_compiler_type"
28074
28075
28076 # Check whether --enable-werror was given.
28077 if test "${enable_werror+set}" = set; then :
28078 enableval=$enable_werror; case "${enableval}" in
28079 yes | y) ERROR_ON_WARNING="yes" ;;
28080 no | n) ERROR_ON_WARNING="no" ;;
28081 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
28082 esac
28083 fi
28084
28085
28086 # Enable -Werror by default when using gcc. Turn it off for releases.
28087 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
28088 ERROR_ON_WARNING=yes
28089 fi
28090
28091 WERROR_CFLAGS=""
28092 if test "${ERROR_ON_WARNING}" = yes ; then
28093 WERROR_CFLAGS="-Werror"
28094 fi
28095
28096 # The options we'll try to enable.
28097 build_warnings="-Wall -Wpointer-arith \
28098 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
28099 -Wno-switch -Wno-char-subscripts \
28100 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
28101 -Wno-sign-compare -Wno-error=maybe-uninitialized \
28102 -Wno-mismatched-tags \
28103 -Wno-error=deprecated-register \
28104 -Wsuggest-override \
28105 -Wimplicit-fallthrough=3 \
28106 -Wduplicated-cond \
28107 -Wshadow=local \
28108 -Wdeprecated-copy \
28109 -Wdeprecated-copy-dtor \
28110 -Wredundant-move \
28111 -Wmissing-declarations \
28112 -Wstrict-null-sentinel \
28113 "
28114
28115 # The -Wmissing-prototypes flag will be accepted by GCC, but results
28116 # in a warning being printed about the flag not being valid for C++,
28117 # this is something to do with using ccache, and argument ordering.
28118 if test "$GDB_COMPILER_TYPE" != gcc; then
28119 build_warnings="$build_warnings -Wmissing-prototypes"
28120 fi
28121
28122 case "${host}" in
28123 *-*-mingw32*)
28124 # Enable -Wno-format by default when using gcc on mingw since many
28125 # GCC versions complain about %I64.
28126 build_warnings="$build_warnings -Wno-format" ;;
28127 *-*-solaris*)
28128 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
28129 # doesn't understand.
28130 build_warnings="$build_warnings -Wno-unknown-pragmas"
28131 # Solaris 11 <unistd.h> marks vfork deprecated.
28132 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
28133 *)
28134 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
28135 # but there's a special case for this below.
28136 build_warnings="$build_warnings -Wformat-nonliteral" ;;
28137 esac
28138
28139 # Check whether --enable-build-warnings was given.
28140 if test "${enable_build_warnings+set}" = set; then :
28141 enableval=$enable_build_warnings; case "${enableval}" in
28142 yes) ;;
28143 no) build_warnings="-w";;
28144 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
28145 build_warnings="${build_warnings} ${t}";;
28146 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
28147 build_warnings="${t} ${build_warnings}";;
28148 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
28149 esac
28150 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
28151 echo "Setting compiler warning flags = $build_warnings" 6>&1
28152 fi
28153 fi
28154 # Check whether --enable-gdb-build-warnings was given.
28155 if test "${enable_gdb_build_warnings+set}" = set; then :
28156 enableval=$enable_gdb_build_warnings; case "${enableval}" in
28157 yes) ;;
28158 no) build_warnings="-w";;
28159 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
28160 build_warnings="${build_warnings} ${t}";;
28161 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
28162 build_warnings="${t} ${build_warnings}";;
28163 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
28164 esac
28165 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
28166 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
28167 fi
28168 fi
28169
28170 # The set of warnings supported by a C++ compiler is not the same as
28171 # of the C compiler.
28172 ac_ext=cpp
28173 ac_cpp='$CXXCPP $CPPFLAGS'
28174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28177
28178
28179 WARN_CFLAGS=""
28180 if test "x${build_warnings}" != x -a "x$GCC" = xyes
28181 then
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
28183 $as_echo_n "checking compiler warning flags... " >&6; }
28184 # Separate out the -Werror flag as some files just cannot be
28185 # compiled with it enabled.
28186 for w in ${build_warnings}; do
28187 # GCC does not complain about -Wno-unknown-warning. Invert
28188 # and test -Wunknown-warning instead.
28189 case $w in
28190 -Wno-*)
28191 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
28192 -Wformat-nonliteral)
28193 # gcc requires -Wformat before -Wformat-nonliteral
28194 # will work, so stick them together.
28195 w="-Wformat $w"
28196 wtest="$w"
28197 ;;
28198 *)
28199 wtest=$w ;;
28200 esac
28201
28202 case $w in
28203 -Werr*) WERROR_CFLAGS=-Werror ;;
28204 *)
28205 # Check whether GCC accepts it.
28206 saved_CFLAGS="$CFLAGS"
28207 CFLAGS="$CFLAGS -Werror $wtest"
28208 saved_CXXFLAGS="$CXXFLAGS"
28209 CXXFLAGS="$CXXFLAGS -Werror $wtest"
28210 if test "x$w" = "x-Wunused-variable"; then
28211 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
28212 # fixed in GCC 4.9. This test is derived from the gdb
28213 # source code that triggered this bug in GCC.
28214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28215 /* end confdefs.h. */
28216 struct scoped_restore_base {};
28217 struct scoped_restore_tmpl : public scoped_restore_base {
28218 ~scoped_restore_tmpl() {}
28219 };
28220 int
28221 main ()
28222 {
28223 const scoped_restore_base &b = scoped_restore_tmpl();
28224
28225 ;
28226 return 0;
28227 }
28228 _ACEOF
28229 if ac_fn_cxx_try_compile "$LINENO"; then :
28230 WARN_CFLAGS="${WARN_CFLAGS} $w"
28231 fi
28232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28233 else
28234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28235 /* end confdefs.h. */
28236
28237 int
28238 main ()
28239 {
28240
28241 ;
28242 return 0;
28243 }
28244 _ACEOF
28245 if ac_fn_cxx_try_compile "$LINENO"; then :
28246 WARN_CFLAGS="${WARN_CFLAGS} $w"
28247 fi
28248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28249 fi
28250 CFLAGS="$saved_CFLAGS"
28251 CXXFLAGS="$saved_CXXFLAGS"
28252 esac
28253 done
28254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
28255 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
28256 fi
28257
28258
28259
28260 ac_ext=c
28261 ac_cpp='$CPP $CPPFLAGS'
28262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28265
28266
28267
28268 # Check whether --enable-ubsan was given.
28269 if test "${enable_ubsan+set}" = set; then :
28270 enableval=$enable_ubsan;
28271 else
28272 enable_ubsan=no
28273 fi
28274
28275 if test "x$enable_ubsan" = xauto; then
28276 if $development; then
28277 enable_ubsan=yes
28278 fi
28279 fi
28280 ac_ext=cpp
28281 ac_cpp='$CXXCPP $CPPFLAGS'
28282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28285
28286 if test "x$enable_ubsan" = xyes; then
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5
28288 $as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; }
28289 saved_CXXFLAGS="$CXXFLAGS"
28290 CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
28291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28292 /* end confdefs.h. */
28293
28294 int
28295 main ()
28296 {
28297
28298 ;
28299 return 0;
28300 }
28301 _ACEOF
28302 if ac_fn_cxx_try_link "$LINENO"; then :
28303 enable_ubsan=yes
28304 else
28305 enable_ubsan=no
28306
28307 fi
28308 rm -f core conftest.err conftest.$ac_objext \
28309 conftest$ac_exeext conftest.$ac_ext
28310 CXXFLAGS="$saved_CXXFLAGS"
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
28312 $as_echo "$enable_ubsan" >&6; }
28313 if test "x$enable_ubsan" = xyes; then
28314 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
28315 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined"
28316 fi
28317 fi
28318 ac_ext=c
28319 ac_cpp='$CPP $CPPFLAGS'
28320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28323
28324
28325
28326 # In the Cygwin environment, we need some additional flags.
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
28328 $as_echo_n "checking for cygwin... " >&6; }
28329 if ${gdb_cv_os_cygwin+:} false; then :
28330 $as_echo_n "(cached) " >&6
28331 else
28332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28333 /* end confdefs.h. */
28334
28335 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
28336 lose
28337 #endif
28338 _ACEOF
28339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28340 $EGREP "^lose$" >/dev/null 2>&1; then :
28341 gdb_cv_os_cygwin=yes
28342 else
28343 gdb_cv_os_cygwin=no
28344 fi
28345 rm -f conftest*
28346
28347 fi
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
28349 $as_echo "$gdb_cv_os_cygwin" >&6; }
28350
28351
28352 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
28353 case ${host} in
28354 *go32* ) SER_HARDWIRE=ser-go32.o ;;
28355 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
28356 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
28357 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;;
28358 esac
28359
28360
28361 # libreadline needs libuser32.a in a cygwin environment
28362 WIN32LIBS=
28363 if test x"$gdb_cv_os_cygwin" = xyes; then
28364 WIN32LIBS="-luser32"
28365 case "${target}" in
28366 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
28367 ;;
28368 esac
28369 fi
28370
28371 # The ser-tcp.c module requires sockets.
28372 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
28373 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
28374
28375 # Add ELF support to GDB, but only if BFD includes ELF support.
28376
28377 OLD_CFLAGS=$CFLAGS
28378 OLD_LDFLAGS=$LDFLAGS
28379 OLD_LIBS=$LIBS
28380 OLD_CC=$CC
28381 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
28382 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
28383 # always want our bfd.
28384 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
28385 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
28386 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
28387 LIBS="-lbfd -liberty $intl $LIBS"
28388 CC="./libtool --quiet --mode=link $CC"
28389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
28390 $as_echo_n "checking for ELF support in BFD... " >&6; }
28391 if ${gdb_cv_var_elf+:} false; then :
28392 $as_echo_n "(cached) " >&6
28393 else
28394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28395 /* end confdefs.h. */
28396 #include <stdlib.h>
28397 #include <string.h>
28398 #include "bfd.h"
28399 #include "elf-bfd.h"
28400 int
28401 main ()
28402 {
28403 return bfd_get_elf_phdr_upper_bound (NULL);
28404
28405 ;
28406 return 0;
28407 }
28408 _ACEOF
28409 if ac_fn_c_try_link "$LINENO"; then :
28410 gdb_cv_var_elf=yes
28411 else
28412 gdb_cv_var_elf=no
28413
28414 fi
28415 rm -f core conftest.err conftest.$ac_objext \
28416 conftest$ac_exeext conftest.$ac_ext
28417
28418 fi
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
28420 $as_echo "$gdb_cv_var_elf" >&6; }
28421 CC=$OLD_CC
28422 CFLAGS=$OLD_CFLAGS
28423 LDFLAGS=$OLD_LDFLAGS
28424 LIBS=$OLD_LIBS
28425 if test "$gdb_cv_var_elf" = yes; then
28426 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
28427 gcore-elf.o elf-none-tdep.o"
28428
28429 $as_echo "#define HAVE_ELF 1" >>confdefs.h
28430
28431 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
28432 if test "$plugins" = "yes"; then
28433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28434 $as_echo_n "checking for library containing dlopen... " >&6; }
28435 if ${ac_cv_search_dlopen+:} false; then :
28436 $as_echo_n "(cached) " >&6
28437 else
28438 ac_func_search_save_LIBS=$LIBS
28439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28440 /* end confdefs.h. */
28441
28442 /* Override any GCC internal prototype to avoid an error.
28443 Use char because int might match the return type of a GCC
28444 builtin and then its argument prototype would still apply. */
28445 #ifdef __cplusplus
28446 extern "C"
28447 #endif
28448 char dlopen ();
28449 int
28450 main ()
28451 {
28452 return dlopen ();
28453 ;
28454 return 0;
28455 }
28456 _ACEOF
28457 for ac_lib in '' dl; do
28458 if test -z "$ac_lib"; then
28459 ac_res="none required"
28460 else
28461 ac_res=-l$ac_lib
28462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28463 fi
28464 if ac_fn_c_try_link "$LINENO"; then :
28465 ac_cv_search_dlopen=$ac_res
28466 fi
28467 rm -f core conftest.err conftest.$ac_objext \
28468 conftest$ac_exeext
28469 if ${ac_cv_search_dlopen+:} false; then :
28470 break
28471 fi
28472 done
28473 if ${ac_cv_search_dlopen+:} false; then :
28474
28475 else
28476 ac_cv_search_dlopen=no
28477 fi
28478 rm conftest.$ac_ext
28479 LIBS=$ac_func_search_save_LIBS
28480 fi
28481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28482 $as_echo "$ac_cv_search_dlopen" >&6; }
28483 ac_res=$ac_cv_search_dlopen
28484 if test "$ac_res" != no; then :
28485 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28486
28487 fi
28488
28489 fi
28490 fi
28491
28492 # Add macho support to GDB, but only if BFD includes it.
28493
28494 OLD_CFLAGS=$CFLAGS
28495 OLD_LDFLAGS=$LDFLAGS
28496 OLD_LIBS=$LIBS
28497 OLD_CC=$CC
28498 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
28499 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
28500 # always want our bfd.
28501 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
28502 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
28503 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
28504 LIBS="-lbfd -liberty $intl $LIBS"
28505 CC="./libtool --quiet --mode=link $CC"
28506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
28507 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
28508 if ${gdb_cv_var_macho+:} false; then :
28509 $as_echo_n "(cached) " >&6
28510 else
28511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28512 /* end confdefs.h. */
28513 #include <stdlib.h>
28514 #include <string.h>
28515 #include "bfd.h"
28516 #include "mach-o.h"
28517 int
28518 main ()
28519 {
28520 return bfd_mach_o_lookup_command (NULL, 0, NULL);
28521
28522 ;
28523 return 0;
28524 }
28525 _ACEOF
28526 if ac_fn_c_try_link "$LINENO"; then :
28527 gdb_cv_var_macho=yes
28528 else
28529 gdb_cv_var_macho=no
28530
28531 fi
28532 rm -f core conftest.err conftest.$ac_objext \
28533 conftest$ac_exeext conftest.$ac_ext
28534
28535 fi
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
28537 $as_echo "$gdb_cv_var_macho" >&6; }
28538 CC=$OLD_CC
28539 CFLAGS=$OLD_CFLAGS
28540 LDFLAGS=$OLD_LDFLAGS
28541 LIBS=$OLD_LIBS
28542 if test "$gdb_cv_var_macho" = yes; then
28543 CONFIG_OBS="$CONFIG_OBS machoread.o"
28544 fi
28545
28546 # Add any host-specific objects to GDB.
28547 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
28548
28549 # If building on ELF, look for lzma support for embedded compressed debug info.
28550 if test "$gdb_cv_var_elf" = yes; then
28551
28552 # Check whether --with-lzma was given.
28553 if test "${with_lzma+set}" = set; then :
28554 withval=$with_lzma;
28555 else
28556 with_lzma=auto
28557 fi
28558
28559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
28560 $as_echo_n "checking whether to use lzma... " >&6; }
28561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
28562 $as_echo "$with_lzma" >&6; }
28563
28564 if test "${with_lzma}" != no; then
28565
28566
28567
28568
28569
28570
28571
28572
28573 use_additional=yes
28574
28575 acl_save_prefix="$prefix"
28576 prefix="$acl_final_prefix"
28577 acl_save_exec_prefix="$exec_prefix"
28578 exec_prefix="$acl_final_exec_prefix"
28579
28580 eval additional_includedir=\"$includedir\"
28581 eval additional_libdir=\"$libdir\"
28582
28583 exec_prefix="$acl_save_exec_prefix"
28584 prefix="$acl_save_prefix"
28585
28586
28587 # Check whether --with-liblzma-prefix was given.
28588 if test "${with_liblzma_prefix+set}" = set; then :
28589 withval=$with_liblzma_prefix;
28590 if test "X$withval" = "Xno"; then
28591 use_additional=no
28592 else
28593 if test "X$withval" = "X"; then
28594
28595 acl_save_prefix="$prefix"
28596 prefix="$acl_final_prefix"
28597 acl_save_exec_prefix="$exec_prefix"
28598 exec_prefix="$acl_final_exec_prefix"
28599
28600 eval additional_includedir=\"$includedir\"
28601 eval additional_libdir=\"$libdir\"
28602
28603 exec_prefix="$acl_save_exec_prefix"
28604 prefix="$acl_save_prefix"
28605
28606 else
28607 additional_includedir="$withval/include"
28608 additional_libdir="$withval/lib"
28609 fi
28610 fi
28611
28612 fi
28613
28614
28615 # Check whether --with-liblzma-type was given.
28616 if test "${with_liblzma_type+set}" = set; then :
28617 withval=$with_liblzma_type; with_liblzma_type=$withval
28618 else
28619 with_liblzma_type=auto
28620 fi
28621
28622 lib_type=`eval echo \$with_liblzma_type`
28623
28624 LIBLZMA=
28625 LTLIBLZMA=
28626 INCLZMA=
28627 rpathdirs=
28628 ltrpathdirs=
28629 names_already_handled=
28630 names_next_round='lzma '
28631 while test -n "$names_next_round"; do
28632 names_this_round="$names_next_round"
28633 names_next_round=
28634 for name in $names_this_round; do
28635 already_handled=
28636 for n in $names_already_handled; do
28637 if test "$n" = "$name"; then
28638 already_handled=yes
28639 break
28640 fi
28641 done
28642 if test -z "$already_handled"; then
28643 names_already_handled="$names_already_handled $name"
28644 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28645 eval value=\"\$HAVE_LIB$uppername\"
28646 if test -n "$value"; then
28647 if test "$value" = yes; then
28648 eval value=\"\$LIB$uppername\"
28649 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
28650 eval value=\"\$LTLIB$uppername\"
28651 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
28652 else
28653 :
28654 fi
28655 else
28656 found_dir=
28657 found_la=
28658 found_so=
28659 found_a=
28660 if test $use_additional = yes; then
28661 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
28662 found_dir="$additional_libdir"
28663 found_so="$additional_libdir/lib$name.$shlibext"
28664 if test -f "$additional_libdir/lib$name.la"; then
28665 found_la="$additional_libdir/lib$name.la"
28666 fi
28667 elif test x$lib_type != xshared; then
28668 if test -f "$additional_libdir/lib$name.$libext"; then
28669 found_dir="$additional_libdir"
28670 found_a="$additional_libdir/lib$name.$libext"
28671 if test -f "$additional_libdir/lib$name.la"; then
28672 found_la="$additional_libdir/lib$name.la"
28673 fi
28674 fi
28675 fi
28676 fi
28677 if test "X$found_dir" = "X"; then
28678 for x in $LDFLAGS $LTLIBLZMA; do
28679
28680 acl_save_prefix="$prefix"
28681 prefix="$acl_final_prefix"
28682 acl_save_exec_prefix="$exec_prefix"
28683 exec_prefix="$acl_final_exec_prefix"
28684 eval x=\"$x\"
28685 exec_prefix="$acl_save_exec_prefix"
28686 prefix="$acl_save_prefix"
28687
28688 case "$x" in
28689 -L*)
28690 dir=`echo "X$x" | sed -e 's/^X-L//'`
28691 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
28692 found_dir="$dir"
28693 found_so="$dir/lib$name.$shlibext"
28694 if test -f "$dir/lib$name.la"; then
28695 found_la="$dir/lib$name.la"
28696 fi
28697 elif test x$lib_type != xshared; then
28698 if test -f "$dir/lib$name.$libext"; then
28699 found_dir="$dir"
28700 found_a="$dir/lib$name.$libext"
28701 if test -f "$dir/lib$name.la"; then
28702 found_la="$dir/lib$name.la"
28703 fi
28704 fi
28705 fi
28706 ;;
28707 esac
28708 if test "X$found_dir" != "X"; then
28709 break
28710 fi
28711 done
28712 fi
28713 if test "X$found_dir" != "X"; then
28714 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
28715 if test "X$found_so" != "X"; then
28716 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
28717 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
28718 else
28719 haveit=
28720 for x in $ltrpathdirs; do
28721 if test "X$x" = "X$found_dir"; then
28722 haveit=yes
28723 break
28724 fi
28725 done
28726 if test -z "$haveit"; then
28727 ltrpathdirs="$ltrpathdirs $found_dir"
28728 fi
28729 if test "$hardcode_direct" = yes; then
28730 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
28731 else
28732 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28733 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
28734 haveit=
28735 for x in $rpathdirs; do
28736 if test "X$x" = "X$found_dir"; then
28737 haveit=yes
28738 break
28739 fi
28740 done
28741 if test -z "$haveit"; then
28742 rpathdirs="$rpathdirs $found_dir"
28743 fi
28744 else
28745 haveit=
28746 for x in $LDFLAGS $LIBLZMA; do
28747
28748 acl_save_prefix="$prefix"
28749 prefix="$acl_final_prefix"
28750 acl_save_exec_prefix="$exec_prefix"
28751 exec_prefix="$acl_final_exec_prefix"
28752 eval x=\"$x\"
28753 exec_prefix="$acl_save_exec_prefix"
28754 prefix="$acl_save_prefix"
28755
28756 if test "X$x" = "X-L$found_dir"; then
28757 haveit=yes
28758 break
28759 fi
28760 done
28761 if test -z "$haveit"; then
28762 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
28763 fi
28764 if test "$hardcode_minus_L" != no; then
28765 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
28766 else
28767 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
28768 fi
28769 fi
28770 fi
28771 fi
28772 else
28773 if test "X$found_a" != "X"; then
28774 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
28775 else
28776 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
28777 fi
28778 fi
28779 additional_includedir=
28780 case "$found_dir" in
28781 */lib | */lib/)
28782 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28783 additional_includedir="$basedir/include"
28784 ;;
28785 esac
28786 if test "X$additional_includedir" != "X"; then
28787 if test "X$additional_includedir" != "X/usr/include"; then
28788 haveit=
28789 if test "X$additional_includedir" = "X/usr/local/include"; then
28790 if test -n "$GCC"; then
28791 case $host_os in
28792 linux*) haveit=yes;;
28793 esac
28794 fi
28795 fi
28796 if test -z "$haveit"; then
28797 for x in $CPPFLAGS $INCLZMA; do
28798
28799 acl_save_prefix="$prefix"
28800 prefix="$acl_final_prefix"
28801 acl_save_exec_prefix="$exec_prefix"
28802 exec_prefix="$acl_final_exec_prefix"
28803 eval x=\"$x\"
28804 exec_prefix="$acl_save_exec_prefix"
28805 prefix="$acl_save_prefix"
28806
28807 if test "X$x" = "X-I$additional_includedir"; then
28808 haveit=yes
28809 break
28810 fi
28811 done
28812 if test -z "$haveit"; then
28813 if test -d "$additional_includedir"; then
28814 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
28815 fi
28816 fi
28817 fi
28818 fi
28819 fi
28820 if test -n "$found_la"; then
28821 save_libdir="$libdir"
28822 case "$found_la" in
28823 */* | *\\*) . "$found_la" ;;
28824 *) . "./$found_la" ;;
28825 esac
28826 libdir="$save_libdir"
28827 for dep in $dependency_libs; do
28828 case "$dep" in
28829 -L*)
28830 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28831 if test "X$additional_libdir" != "X/usr/lib"; then
28832 haveit=
28833 if test "X$additional_libdir" = "X/usr/local/lib"; then
28834 if test -n "$GCC"; then
28835 case $host_os in
28836 linux*) haveit=yes;;
28837 esac
28838 fi
28839 fi
28840 if test -z "$haveit"; then
28841 haveit=
28842 for x in $LDFLAGS $LIBLZMA; do
28843
28844 acl_save_prefix="$prefix"
28845 prefix="$acl_final_prefix"
28846 acl_save_exec_prefix="$exec_prefix"
28847 exec_prefix="$acl_final_exec_prefix"
28848 eval x=\"$x\"
28849 exec_prefix="$acl_save_exec_prefix"
28850 prefix="$acl_save_prefix"
28851
28852 if test "X$x" = "X-L$additional_libdir"; then
28853 haveit=yes
28854 break
28855 fi
28856 done
28857 if test -z "$haveit"; then
28858 if test -d "$additional_libdir"; then
28859 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
28860 fi
28861 fi
28862 haveit=
28863 for x in $LDFLAGS $LTLIBLZMA; do
28864
28865 acl_save_prefix="$prefix"
28866 prefix="$acl_final_prefix"
28867 acl_save_exec_prefix="$exec_prefix"
28868 exec_prefix="$acl_final_exec_prefix"
28869 eval x=\"$x\"
28870 exec_prefix="$acl_save_exec_prefix"
28871 prefix="$acl_save_prefix"
28872
28873 if test "X$x" = "X-L$additional_libdir"; then
28874 haveit=yes
28875 break
28876 fi
28877 done
28878 if test -z "$haveit"; then
28879 if test -d "$additional_libdir"; then
28880 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
28881 fi
28882 fi
28883 fi
28884 fi
28885 ;;
28886 -R*)
28887 dir=`echo "X$dep" | sed -e 's/^X-R//'`
28888 if test "$enable_rpath" != no; then
28889 haveit=
28890 for x in $rpathdirs; do
28891 if test "X$x" = "X$dir"; then
28892 haveit=yes
28893 break
28894 fi
28895 done
28896 if test -z "$haveit"; then
28897 rpathdirs="$rpathdirs $dir"
28898 fi
28899 haveit=
28900 for x in $ltrpathdirs; do
28901 if test "X$x" = "X$dir"; then
28902 haveit=yes
28903 break
28904 fi
28905 done
28906 if test -z "$haveit"; then
28907 ltrpathdirs="$ltrpathdirs $dir"
28908 fi
28909 fi
28910 ;;
28911 -l*)
28912 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28913 ;;
28914 *.la)
28915 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28916 ;;
28917 *)
28918 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
28919 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
28920 ;;
28921 esac
28922 done
28923 fi
28924 else
28925 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
28926 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
28927 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
28928 else
28929 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
28930 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
28931 fi
28932 fi
28933 fi
28934 fi
28935 done
28936 done
28937 if test "X$rpathdirs" != "X"; then
28938 if test -n "$hardcode_libdir_separator"; then
28939 alldirs=
28940 for found_dir in $rpathdirs; do
28941 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28942 done
28943 acl_save_libdir="$libdir"
28944 libdir="$alldirs"
28945 eval flag=\"$hardcode_libdir_flag_spec\"
28946 libdir="$acl_save_libdir"
28947 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
28948 else
28949 for found_dir in $rpathdirs; do
28950 acl_save_libdir="$libdir"
28951 libdir="$found_dir"
28952 eval flag=\"$hardcode_libdir_flag_spec\"
28953 libdir="$acl_save_libdir"
28954 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
28955 done
28956 fi
28957 fi
28958 if test "X$ltrpathdirs" != "X"; then
28959 for found_dir in $ltrpathdirs; do
28960 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
28961 done
28962 fi
28963
28964
28965 ac_save_CPPFLAGS="$CPPFLAGS"
28966
28967 for element in $INCLZMA; do
28968 haveit=
28969 for x in $CPPFLAGS; do
28970
28971 acl_save_prefix="$prefix"
28972 prefix="$acl_final_prefix"
28973 acl_save_exec_prefix="$exec_prefix"
28974 exec_prefix="$acl_final_exec_prefix"
28975 eval x=\"$x\"
28976 exec_prefix="$acl_save_exec_prefix"
28977 prefix="$acl_save_prefix"
28978
28979 if test "X$x" = "X$element"; then
28980 haveit=yes
28981 break
28982 fi
28983 done
28984 if test -z "$haveit"; then
28985 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28986 fi
28987 done
28988
28989
28990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
28991 $as_echo_n "checking for liblzma... " >&6; }
28992 if ${ac_cv_liblzma+:} false; then :
28993 $as_echo_n "(cached) " >&6
28994 else
28995
28996 ac_save_LIBS="$LIBS"
28997 LIBS="$LIBS $LIBLZMA"
28998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28999 /* end confdefs.h. */
29000 #include "lzma.h"
29001 int
29002 main ()
29003 {
29004 lzma_index_iter iter;
29005 lzma_index_iter_init (&iter, 0);
29006 lzma_mf_is_supported (LZMA_MF_HC3);
29007 ;
29008 return 0;
29009 }
29010 _ACEOF
29011 if ac_fn_c_try_link "$LINENO"; then :
29012 ac_cv_liblzma=yes
29013 else
29014 ac_cv_liblzma=no
29015 fi
29016 rm -f core conftest.err conftest.$ac_objext \
29017 conftest$ac_exeext conftest.$ac_ext
29018 LIBS="$ac_save_LIBS"
29019
29020 fi
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
29022 $as_echo "$ac_cv_liblzma" >&6; }
29023 if test "$ac_cv_liblzma" = yes; then
29024 HAVE_LIBLZMA=yes
29025
29026 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
29027
29028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
29029 $as_echo_n "checking how to link with liblzma... " >&6; }
29030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
29031 $as_echo "$LIBLZMA" >&6; }
29032 else
29033 HAVE_LIBLZMA=no
29034 CPPFLAGS="$ac_save_CPPFLAGS"
29035 LIBLZMA=
29036 LTLIBLZMA=
29037 fi
29038
29039
29040
29041
29042
29043
29044 if test "$HAVE_LIBLZMA" != yes; then
29045 if test "$with_lzma" = yes; then
29046 as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
29047 fi
29048 fi
29049 fi
29050 fi
29051
29052 LIBGUI="../libgui/src/libgui.a"
29053 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
29054
29055
29056
29057 WIN32LDAPP=
29058
29059
29060
29061 case "${host}" in
29062 *-*-cygwin* | *-*-mingw* )
29063 configdir="win"
29064 ;;
29065 *)
29066 configdir="unix"
29067 ;;
29068 esac
29069
29070 GDBTKLIBS=
29071 if test "${enable_gdbtk}" = "yes"; then
29072
29073 # Gdbtk must have an absolute path to srcdir in order to run
29074 # properly when not installed.
29075 here=`pwd`
29076 cd ${srcdir}
29077 GDBTK_SRC_DIR=`pwd`
29078 cd $here
29079
29080
29081 #
29082 # Ok, lets find the tcl configuration
29083 # First, look for one uninstalled.
29084 # the alternative search directory is invoked by --with-tcl
29085 #
29086
29087 if test x"${no_tcl}" = x ; then
29088 # we reset no_tcl in case something fails here
29089 no_tcl=true
29090
29091 # Check whether --with-tcl was given.
29092 if test "${with_tcl+set}" = set; then :
29093 withval=$with_tcl; with_tclconfig=${withval}
29094 fi
29095
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
29097 $as_echo_n "checking for Tcl configuration... " >&6; }
29098 if ${ac_cv_c_tclconfig+:} false; then :
29099 $as_echo_n "(cached) " >&6
29100 else
29101
29102
29103 # First check to see if --with-tcl was specified.
29104 case "${host}" in
29105 *-*-cygwin*) platDir="win" ;;
29106 *) platDir="unix" ;;
29107 esac
29108 if test x"${with_tclconfig}" != x ; then
29109 if test -f "${with_tclconfig}/tclConfig.sh" ; then
29110 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
29111 else
29112 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
29113 fi
29114 fi
29115
29116 # then check for a private Tcl installation
29117 if test x"${ac_cv_c_tclconfig}" = x ; then
29118 for i in \
29119 ../tcl \
29120 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29121 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
29122 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
29123 ../../tcl \
29124 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29125 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
29126 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
29127 ../../../tcl \
29128 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29129 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
29130 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
29131 if test -f "$i/$platDir/tclConfig.sh" ; then
29132 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
29133 break
29134 fi
29135 done
29136 fi
29137
29138 # on Darwin, check in Framework installation locations
29139 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
29140 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
29141 `ls -d /Library/Frameworks 2>/dev/null` \
29142 `ls -d /Network/Library/Frameworks 2>/dev/null` \
29143 `ls -d /System/Library/Frameworks 2>/dev/null` \
29144 ; do
29145 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
29146 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
29147 break
29148 fi
29149 done
29150 fi
29151
29152 # check in a few common install locations
29153 if test x"${ac_cv_c_tclconfig}" = x ; then
29154 for i in `ls -d ${libdir} 2>/dev/null` \
29155 `ls -d ${exec_prefix}/lib 2>/dev/null` \
29156 `ls -d ${prefix}/lib 2>/dev/null` \
29157 `ls -d /usr/local/lib 2>/dev/null` \
29158 `ls -d /usr/contrib/lib 2>/dev/null` \
29159 `ls -d /usr/lib 2>/dev/null` \
29160 ; do
29161 if test -f "$i/tclConfig.sh" ; then
29162 ac_cv_c_tclconfig=`(cd $i; pwd)`
29163 break
29164 fi
29165 done
29166 fi
29167
29168 # check in a few other private locations
29169 if test x"${ac_cv_c_tclconfig}" = x ; then
29170 for i in \
29171 ${srcdir}/../tcl \
29172 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29173 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
29174 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
29175 if test -f "$i/$platDir/tclConfig.sh" ; then
29176 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
29177 break
29178 fi
29179 done
29180 fi
29181
29182 fi
29183
29184
29185 if test x"${ac_cv_c_tclconfig}" = x ; then
29186 TCL_BIN_DIR="# no Tcl configs found"
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
29188 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
29189 else
29190 no_tcl=
29191 TCL_BIN_DIR=${ac_cv_c_tclconfig}
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
29193 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
29194 fi
29195 fi
29196
29197
29198 # If $no_tk is nonempty, then we can't do Tk, and there is no
29199 # point to doing Tcl.
29200
29201 #
29202 # Ok, lets find the tk configuration
29203 # First, look for one uninstalled.
29204 # the alternative search directory is invoked by --with-tk
29205 #
29206
29207 if test x"${no_tk}" = x ; then
29208 # we reset no_tk in case something fails here
29209 no_tk=true
29210
29211 # Check whether --with-tk was given.
29212 if test "${with_tk+set}" = set; then :
29213 withval=$with_tk; with_tkconfig=${withval}
29214 fi
29215
29216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
29217 $as_echo_n "checking for Tk configuration... " >&6; }
29218 if ${ac_cv_c_tkconfig+:} false; then :
29219 $as_echo_n "(cached) " >&6
29220 else
29221
29222
29223 # First check to see if --with-tkconfig was specified.
29224 if test x"${with_tkconfig}" != x ; then
29225 if test -f "${with_tkconfig}/tkConfig.sh" ; then
29226 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
29227 else
29228 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
29229 fi
29230 fi
29231
29232 # then check for a private Tk library
29233 case "${host}" in
29234 *-*-cygwin*) platDir="win" ;;
29235 *) platDir="unix" ;;
29236 esac
29237 if test x"${ac_cv_c_tkconfig}" = x ; then
29238 for i in \
29239 ../tk \
29240 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29241 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
29242 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
29243 ../../tk \
29244 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29245 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
29246 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
29247 ../../../tk \
29248 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29249 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
29250 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
29251 if test -f "$i/$platDir/tkConfig.sh" ; then
29252 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
29253 break
29254 fi
29255 done
29256 fi
29257
29258 # on Darwin, check in Framework installation locations
29259 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
29260 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
29261 `ls -d /Library/Frameworks 2>/dev/null` \
29262 `ls -d /Network/Library/Frameworks 2>/dev/null` \
29263 `ls -d /System/Library/Frameworks 2>/dev/null` \
29264 ; do
29265 if test -f "$i/Tk.framework/tkConfig.sh" ; then
29266 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
29267 break
29268 fi
29269 done
29270 fi
29271
29272 # check in a few common install locations
29273 if test x"${ac_cv_c_tkconfig}" = x ; then
29274 for i in `ls -d ${libdir} 2>/dev/null` \
29275 `ls -d ${exec_prefix}/lib 2>/dev/null` \
29276 `ls -d ${prefix}/lib 2>/dev/null` \
29277 `ls -d /usr/local/lib 2>/dev/null` \
29278 `ls -d /usr/contrib/lib 2>/dev/null` \
29279 `ls -d /usr/lib 2>/dev/null` \
29280 ; do
29281 if test -f "$i/tkConfig.sh" ; then
29282 ac_cv_c_tkconfig=`(cd $i; pwd)`
29283 break
29284 fi
29285 done
29286 fi
29287 # check in a few other private locations
29288 if test x"${ac_cv_c_tkconfig}" = x ; then
29289 for i in \
29290 ${srcdir}/../tk \
29291 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29292 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
29293 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
29294 if test -f "$i/$platDir/tkConfig.sh" ; then
29295 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
29296 break
29297 fi
29298 done
29299 fi
29300
29301 fi
29302
29303
29304 if test x"${ac_cv_c_tkconfig}" = x ; then
29305 TK_BIN_DIR="# no Tk configs found"
29306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
29307 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
29308 else
29309 no_tk=
29310 TK_BIN_DIR=${ac_cv_c_tkconfig}
29311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
29312 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
29313 fi
29314 fi
29315
29316
29317 if test -z "${no_tcl}" -a -z "${no_tk}"; then
29318
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
29320 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
29321
29322 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
29323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
29324 $as_echo "loading" >&6; }
29325 . ${TCL_BIN_DIR}/tclConfig.sh
29326 else
29327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
29328 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
29329 fi
29330
29331 # eval is required to do the TCL_DBGX substitution
29332 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
29333 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
29334
29335 # If the TCL_BIN_DIR is the build directory (not the install directory),
29336 # then set the common variable name to the value of the build variables.
29337 # For example, the variable TCL_LIB_SPEC will be set to the value
29338 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
29339 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
29340 # installed and uninstalled version of Tcl.
29341 if test -f "${TCL_BIN_DIR}/Makefile" ; then
29342 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
29343 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
29344 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
29345 elif test "`uname -s`" = "Darwin"; then
29346 # If Tcl was built as a framework, attempt to use the libraries
29347 # from the framework at the given location so that linking works
29348 # against Tcl.framework installed in an arbitrary location.
29349 case ${TCL_DEFS} in
29350 *TCL_FRAMEWORK*)
29351 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
29352 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
29353 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
29354 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
29355 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
29356 break
29357 fi
29358 done
29359 fi
29360 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
29361 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
29362 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
29363 fi
29364 ;;
29365 esac
29366 fi
29367
29368 # eval is required to do the TCL_DBGX substitution
29369 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
29370 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
29371 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
29372 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
29373
29374
29375
29376
29377
29378
29379
29380
29381
29382
29383
29384
29385
29386
29387
29388 # Check for in-tree tcl
29389 here=`pwd`
29390 cd ${srcdir}/..
29391 topdir=`pwd`
29392 cd ${here}
29393
29394 intree="no"
29395 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
29396 intree="yes"
29397 fi
29398
29399 # Find Tcl private headers
29400 if test x"${intree}" = xno; then
29401
29402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
29403 $as_echo_n "checking for Tcl private headers... " >&6; }
29404 private_dir=""
29405 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
29406 if test -f ${dir}/tclInt.h ; then
29407 private_dir=${dir}
29408 fi
29409
29410 if test x"${private_dir}" = x; then
29411 as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
29412 else
29413 TCL_PRIVATE_INCLUDE="-I${private_dir}"
29414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
29415 $as_echo "${private_dir}" >&6; }
29416 fi
29417
29418 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
29419 TCL_LIBRARY="${TCL_LIB_SPEC}"
29420 TCL_DEPS=""
29421 else
29422 # If building tcl in the same src tree, private headers
29423 # are not needed, but we need to be sure to use the right
29424 # headers library
29425 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
29426 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
29427 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
29428 fi
29429
29430
29431
29432
29433
29434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
29435 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
29436
29437 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
29438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
29439 $as_echo "loading" >&6; }
29440 . ${TK_BIN_DIR}/tkConfig.sh
29441 else
29442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
29443 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
29444 fi
29445
29446 # eval is required to do the TK_DBGX substitution
29447 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
29448 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
29449
29450 # If the TK_BIN_DIR is the build directory (not the install directory),
29451 # then set the common variable name to the value of the build variables.
29452 # For example, the variable TK_LIB_SPEC will be set to the value
29453 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
29454 # instead of TK_BUILD_LIB_SPEC since it will work with both an
29455 # installed and uninstalled version of Tcl.
29456 if test -f "${TK_BIN_DIR}/Makefile" ; then
29457 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
29458 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
29459 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
29460 elif test "`uname -s`" = "Darwin"; then
29461 # If Tk was built as a framework, attempt to use the libraries
29462 # from the framework at the given location so that linking works
29463 # against Tk.framework installed in an arbitrary location.
29464 case ${TK_DEFS} in
29465 *TK_FRAMEWORK*)
29466 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
29467 for i in "`cd ${TK_BIN_DIR}; pwd`" \
29468 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
29469 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
29470 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
29471 break
29472 fi
29473 done
29474 fi
29475 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
29476 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
29477 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
29478 fi
29479 ;;
29480 esac
29481 fi
29482
29483 # eval is required to do the TK_DBGX substitution
29484 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
29485 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
29486 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
29487 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
29488
29489
29490
29491
29492
29493
29494
29495
29496
29497
29498
29499
29500
29501
29502 # Check for in-tree Tk
29503 intree="no"
29504 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
29505 intree="yes"
29506 fi
29507
29508 # Find Tk private headers
29509 if test x"${intree}" = xno; then
29510
29511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
29512 $as_echo_n "checking for Tk private headers... " >&6; }
29513 private_dir=""
29514 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
29515 if test -f ${dir}/tkInt.h; then
29516 private_dir=${dir}
29517 fi
29518
29519 if test x"${private_dir}" = x; then
29520 as_fn_error $? "could not find Tk private headers" "$LINENO" 5
29521 else
29522 TK_PRIVATE_INCLUDE="-I${private_dir}"
29523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
29524 $as_echo "${private_dir}" >&6; }
29525 fi
29526
29527 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
29528 TK_LIBRARY=${TK_LIB_SPEC}
29529 TK_DEPS=""
29530 else
29531 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
29532 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
29533 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
29534 fi
29535
29536
29537
29538
29539
29540 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
29541
29542 # Include some libraries that Tcl and Tk want.
29543 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
29544 # Yes, the ordering seems wrong here. But it isn't.
29545 # TK_LIBS is the list of libraries that need to be linked
29546 # after Tcl/Tk. Note that this isn't put into LIBS. If it
29547 # were in LIBS then any link tests after this point would
29548 # try to include things like `$(LIBGUI)', which wouldn't work.
29549 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
29550
29551 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
29552 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
29553 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
29554 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
29555 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
29556 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
29557 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
29558
29559 if test x"$gdb_cv_os_cygwin" = xyes; then
29560 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
29561 WIN32LDAPP="-Wl,--subsystem,console"
29562 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
29563 fi
29564
29565 subdirs="$subdirs gdbtk"
29566
29567 fi
29568 fi
29569
29570
29571
29572
29573
29574
29575
29576
29577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
29578 $as_echo_n "checking for X... " >&6; }
29579
29580
29581 # Check whether --with-x was given.
29582 if test "${with_x+set}" = set; then :
29583 withval=$with_x;
29584 fi
29585
29586 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29587 if test "x$with_x" = xno; then
29588 # The user explicitly disabled X.
29589 have_x=disabled
29590 else
29591 case $x_includes,$x_libraries in #(
29592 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
29593 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
29594 $as_echo_n "(cached) " >&6
29595 else
29596 # One or both of the vars are not set, and there is no cached value.
29597 ac_x_includes=no ac_x_libraries=no
29598 rm -f -r conftest.dir
29599 if mkdir conftest.dir; then
29600 cd conftest.dir
29601 cat >Imakefile <<'_ACEOF'
29602 incroot:
29603 @echo incroot='${INCROOT}'
29604 usrlibdir:
29605 @echo usrlibdir='${USRLIBDIR}'
29606 libdir:
29607 @echo libdir='${LIBDIR}'
29608 _ACEOF
29609 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29610 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29611 for ac_var in incroot usrlibdir libdir; do
29612 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29613 done
29614 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29615 for ac_extension in a so sl dylib la dll; do
29616 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29617 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29618 ac_im_usrlibdir=$ac_im_libdir; break
29619 fi
29620 done
29621 # Screen out bogus values from the imake configuration. They are
29622 # bogus both because they are the default anyway, and because
29623 # using them would break gcc on systems where it needs fixed includes.
29624 case $ac_im_incroot in
29625 /usr/include) ac_x_includes= ;;
29626 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29627 esac
29628 case $ac_im_usrlibdir in
29629 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
29630 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29631 esac
29632 fi
29633 cd ..
29634 rm -f -r conftest.dir
29635 fi
29636
29637 # Standard set of common directories for X headers.
29638 # Check X11 before X11Rn because it is often a symlink to the current release.
29639 ac_x_header_dirs='
29640 /usr/X11/include
29641 /usr/X11R7/include
29642 /usr/X11R6/include
29643 /usr/X11R5/include
29644 /usr/X11R4/include
29645
29646 /usr/include/X11
29647 /usr/include/X11R7
29648 /usr/include/X11R6
29649 /usr/include/X11R5
29650 /usr/include/X11R4
29651
29652 /usr/local/X11/include
29653 /usr/local/X11R7/include
29654 /usr/local/X11R6/include
29655 /usr/local/X11R5/include
29656 /usr/local/X11R4/include
29657
29658 /usr/local/include/X11
29659 /usr/local/include/X11R7
29660 /usr/local/include/X11R6
29661 /usr/local/include/X11R5
29662 /usr/local/include/X11R4
29663
29664 /usr/X386/include
29665 /usr/x386/include
29666 /usr/XFree86/include/X11
29667
29668 /usr/include
29669 /usr/local/include
29670 /usr/unsupported/include
29671 /usr/athena/include
29672 /usr/local/x11r5/include
29673 /usr/lpp/Xamples/include
29674
29675 /usr/openwin/include
29676 /usr/openwin/share/include'
29677
29678 if test "$ac_x_includes" = no; then
29679 # Guess where to find include files, by looking for Xlib.h.
29680 # First, try using that file with no special directory specified.
29681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29682 /* end confdefs.h. */
29683 #include <X11/Xlib.h>
29684 _ACEOF
29685 if ac_fn_c_try_cpp "$LINENO"; then :
29686 # We can compile using X headers with no special include directory.
29687 ac_x_includes=
29688 else
29689 for ac_dir in $ac_x_header_dirs; do
29690 if test -r "$ac_dir/X11/Xlib.h"; then
29691 ac_x_includes=$ac_dir
29692 break
29693 fi
29694 done
29695 fi
29696 rm -f conftest.err conftest.i conftest.$ac_ext
29697 fi # $ac_x_includes = no
29698
29699 if test "$ac_x_libraries" = no; then
29700 # Check for the libraries.
29701 # See if we find them without any special options.
29702 # Don't add to $LIBS permanently.
29703 ac_save_LIBS=$LIBS
29704 LIBS="-lX11 $LIBS"
29705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29706 /* end confdefs.h. */
29707 #include <X11/Xlib.h>
29708 int
29709 main ()
29710 {
29711 XrmInitialize ()
29712 ;
29713 return 0;
29714 }
29715 _ACEOF
29716 if ac_fn_c_try_link "$LINENO"; then :
29717 LIBS=$ac_save_LIBS
29718 # We can link X programs with no special library path.
29719 ac_x_libraries=
29720 else
29721 LIBS=$ac_save_LIBS
29722 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29723 do
29724 # Don't even attempt the hair of trying to link an X program!
29725 for ac_extension in a so sl dylib la dll; do
29726 if test -r "$ac_dir/libX11.$ac_extension"; then
29727 ac_x_libraries=$ac_dir
29728 break 2
29729 fi
29730 done
29731 done
29732 fi
29733 rm -f core conftest.err conftest.$ac_objext \
29734 conftest$ac_exeext conftest.$ac_ext
29735 fi # $ac_x_libraries = no
29736
29737 case $ac_x_includes,$ac_x_libraries in #(
29738 no,* | *,no | *\'*)
29739 # Didn't find X, or a directory has "'" in its name.
29740 ac_cv_have_x="have_x=no";; #(
29741 *)
29742 # Record where we found X for the cache.
29743 ac_cv_have_x="have_x=yes\
29744 ac_x_includes='$ac_x_includes'\
29745 ac_x_libraries='$ac_x_libraries'"
29746 esac
29747 fi
29748 ;; #(
29749 *) have_x=yes;;
29750 esac
29751 eval "$ac_cv_have_x"
29752 fi # $with_x != no
29753
29754 if test "$have_x" != yes; then
29755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
29756 $as_echo "$have_x" >&6; }
29757 no_x=yes
29758 else
29759 # If each of the values was on the command line, it overrides each guess.
29760 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29761 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29762 # Update the cache value to reflect the command line values.
29763 ac_cv_have_x="have_x=yes\
29764 ac_x_includes='$x_includes'\
29765 ac_x_libraries='$x_libraries'"
29766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
29767 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
29768 fi
29769
29770
29771 # Unlike the sim directory, whether a simulator is linked is controlled by
29772 # presence of a gdb_sim definition in the target configure.tgt entry.
29773 # This code just checks for a few cases where we'd like to ignore those
29774 # definitions, even when they're present in the '.mt' file. These cases
29775 # are when --disable-sim is specified, or if the simulator directory is
29776 # not part of the source tree.
29777 #
29778 # Check whether --enable-sim was given.
29779 if test "${enable_sim+set}" = set; then :
29780 enableval=$enable_sim; echo "enable_sim = $enable_sim";
29781 echo "enableval = ${enableval}";
29782 case "${enableval}" in
29783 yes) ignore_sim=false ;;
29784 no) ignore_sim=true ;;
29785 *) ignore_sim=false ;;
29786 esac
29787 else
29788 ignore_sim=false
29789 fi
29790
29791
29792 if test ! -d "${srcdir}/../sim"; then
29793 ignore_sim=true
29794 fi
29795
29796 SIM=
29797 SIM_OBS=
29798 if test "${ignore_sim}" = "false"; then
29799 if test x"${gdb_sim}" != x ; then
29800 SIM="${gdb_sim}"
29801 SIM_OBS="remote-sim.o"
29802
29803 # Some tdep code should only be compiled in when the ppc sim is
29804 # built. PR sim/13418.
29805 case $target in
29806 powerpc*-*-*)
29807
29808 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
29809
29810 ;;
29811 esac
29812 fi
29813 fi
29814
29815
29816
29817
29818
29819
29820
29821
29822
29823
29824
29825
29826
29827
29828 # List of host floatformats.
29829
29830 cat >>confdefs.h <<_ACEOF
29831 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
29832 _ACEOF
29833
29834
29835 cat >>confdefs.h <<_ACEOF
29836 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
29837 _ACEOF
29838
29839
29840 cat >>confdefs.h <<_ACEOF
29841 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
29842 _ACEOF
29843
29844
29845 # target_subdir is used by the testsuite to find the target libraries.
29846 target_subdir=
29847 if test "${host}" != "${target}"; then
29848 target_subdir="${target_alias}/"
29849 fi
29850
29851
29852 # Import nat definitions.
29853 nat_makefile_frag=/dev/null
29854 if test "${gdb_native}" = "yes"; then
29855 . ${srcdir}/configure.nat
29856 nativefile=$NAT_FILE
29857 fi
29858
29859
29860
29861
29862
29863
29864
29865
29866
29867
29868
29869 if test x"${gdb_osabi}" != x ; then
29870
29871 cat >>confdefs.h <<_ACEOF
29872 #define GDB_OSABI_DEFAULT $gdb_osabi
29873 _ACEOF
29874
29875 fi
29876
29877 # Setup possible use of libbacktrace.
29878 # Check whether --enable-libbacktrace was given.
29879 if test "${enable_libbacktrace+set}" = set; then :
29880 enableval=$enable_libbacktrace;
29881 case $enableval in
29882 yes | no)
29883 ;;
29884 *)
29885 as_fn_error $? "bad value $enableval for --enable-libbacktrace" "$LINENO" 5
29886 ;;
29887 esac
29888
29889 else
29890 enable_libbacktrace=yes
29891 fi
29892
29893
29894 if test "${enable_libbacktrace}" = "yes"; then
29895 LIBBACKTRACE_INC="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
29896 LIBBACKTRACE_LIB=../libbacktrace/libbacktrace.la
29897
29898 $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
29899
29900 else
29901 LIBBACKTRACE_INC=
29902 LIBBACKTRACE_LIB=
29903 fi
29904
29905
29906
29907
29908 # Check for babeltrace and babeltrace-ctf
29909
29910 # Check whether --with-babeltrace was given.
29911 if test "${with_babeltrace+set}" = set; then :
29912 withval=$with_babeltrace;
29913 else
29914 with_babeltrace=auto
29915 fi
29916
29917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
29918 $as_echo_n "checking whether to use babeltrace... " >&6; }
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
29920 $as_echo "$with_babeltrace" >&6; }
29921
29922 if test "x$with_babeltrace" = "xno"; then
29923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
29924 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
29925 else
29926 # Append -Werror to CFLAGS so that configure can catch the warning
29927 # "assignment from incompatible pointer type", which is related to
29928 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
29929 # in GDB, while babeltrace 1.0.3 is broken.
29930 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
29931 # safe to save and restore CFLAGS here.
29932 saved_CFLAGS=$CFLAGS
29933 CFLAGS="$CFLAGS -Werror"
29934
29935
29936
29937
29938
29939
29940
29941
29942 use_additional=yes
29943
29944 acl_save_prefix="$prefix"
29945 prefix="$acl_final_prefix"
29946 acl_save_exec_prefix="$exec_prefix"
29947 exec_prefix="$acl_final_exec_prefix"
29948
29949 eval additional_includedir=\"$includedir\"
29950 eval additional_libdir=\"$libdir\"
29951
29952 exec_prefix="$acl_save_exec_prefix"
29953 prefix="$acl_save_prefix"
29954
29955
29956 # Check whether --with-libbabeltrace-prefix was given.
29957 if test "${with_libbabeltrace_prefix+set}" = set; then :
29958 withval=$with_libbabeltrace_prefix;
29959 if test "X$withval" = "Xno"; then
29960 use_additional=no
29961 else
29962 if test "X$withval" = "X"; then
29963
29964 acl_save_prefix="$prefix"
29965 prefix="$acl_final_prefix"
29966 acl_save_exec_prefix="$exec_prefix"
29967 exec_prefix="$acl_final_exec_prefix"
29968
29969 eval additional_includedir=\"$includedir\"
29970 eval additional_libdir=\"$libdir\"
29971
29972 exec_prefix="$acl_save_exec_prefix"
29973 prefix="$acl_save_prefix"
29974
29975 else
29976 additional_includedir="$withval/include"
29977 additional_libdir="$withval/lib"
29978 fi
29979 fi
29980
29981 fi
29982
29983
29984 # Check whether --with-libbabeltrace-type was given.
29985 if test "${with_libbabeltrace_type+set}" = set; then :
29986 withval=$with_libbabeltrace_type; with_libbabeltrace_type=$withval
29987 else
29988 with_libbabeltrace_type=auto
29989 fi
29990
29991 lib_type=`eval echo \$with_libbabeltrace_type`
29992
29993 LIBBABELTRACE=
29994 LTLIBBABELTRACE=
29995 INCBABELTRACE=
29996 rpathdirs=
29997 ltrpathdirs=
29998 names_already_handled=
29999 names_next_round='babeltrace babeltrace-ctf'
30000 while test -n "$names_next_round"; do
30001 names_this_round="$names_next_round"
30002 names_next_round=
30003 for name in $names_this_round; do
30004 already_handled=
30005 for n in $names_already_handled; do
30006 if test "$n" = "$name"; then
30007 already_handled=yes
30008 break
30009 fi
30010 done
30011 if test -z "$already_handled"; then
30012 names_already_handled="$names_already_handled $name"
30013 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
30014 eval value=\"\$HAVE_LIB$uppername\"
30015 if test -n "$value"; then
30016 if test "$value" = yes; then
30017 eval value=\"\$LIB$uppername\"
30018 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
30019 eval value=\"\$LTLIB$uppername\"
30020 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
30021 else
30022 :
30023 fi
30024 else
30025 found_dir=
30026 found_la=
30027 found_so=
30028 found_a=
30029 if test $use_additional = yes; then
30030 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
30031 found_dir="$additional_libdir"
30032 found_so="$additional_libdir/lib$name.$shlibext"
30033 if test -f "$additional_libdir/lib$name.la"; then
30034 found_la="$additional_libdir/lib$name.la"
30035 fi
30036 elif test x$lib_type != xshared; then
30037 if test -f "$additional_libdir/lib$name.$libext"; then
30038 found_dir="$additional_libdir"
30039 found_a="$additional_libdir/lib$name.$libext"
30040 if test -f "$additional_libdir/lib$name.la"; then
30041 found_la="$additional_libdir/lib$name.la"
30042 fi
30043 fi
30044 fi
30045 fi
30046 if test "X$found_dir" = "X"; then
30047 for x in $LDFLAGS $LTLIBBABELTRACE; do
30048
30049 acl_save_prefix="$prefix"
30050 prefix="$acl_final_prefix"
30051 acl_save_exec_prefix="$exec_prefix"
30052 exec_prefix="$acl_final_exec_prefix"
30053 eval x=\"$x\"
30054 exec_prefix="$acl_save_exec_prefix"
30055 prefix="$acl_save_prefix"
30056
30057 case "$x" in
30058 -L*)
30059 dir=`echo "X$x" | sed -e 's/^X-L//'`
30060 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
30061 found_dir="$dir"
30062 found_so="$dir/lib$name.$shlibext"
30063 if test -f "$dir/lib$name.la"; then
30064 found_la="$dir/lib$name.la"
30065 fi
30066 elif test x$lib_type != xshared; then
30067 if test -f "$dir/lib$name.$libext"; then
30068 found_dir="$dir"
30069 found_a="$dir/lib$name.$libext"
30070 if test -f "$dir/lib$name.la"; then
30071 found_la="$dir/lib$name.la"
30072 fi
30073 fi
30074 fi
30075 ;;
30076 esac
30077 if test "X$found_dir" != "X"; then
30078 break
30079 fi
30080 done
30081 fi
30082 if test "X$found_dir" != "X"; then
30083 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
30084 if test "X$found_so" != "X"; then
30085 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
30086 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30087 else
30088 haveit=
30089 for x in $ltrpathdirs; do
30090 if test "X$x" = "X$found_dir"; then
30091 haveit=yes
30092 break
30093 fi
30094 done
30095 if test -z "$haveit"; then
30096 ltrpathdirs="$ltrpathdirs $found_dir"
30097 fi
30098 if test "$hardcode_direct" = yes; then
30099 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30100 else
30101 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
30102 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30103 haveit=
30104 for x in $rpathdirs; do
30105 if test "X$x" = "X$found_dir"; then
30106 haveit=yes
30107 break
30108 fi
30109 done
30110 if test -z "$haveit"; then
30111 rpathdirs="$rpathdirs $found_dir"
30112 fi
30113 else
30114 haveit=
30115 for x in $LDFLAGS $LIBBABELTRACE; do
30116
30117 acl_save_prefix="$prefix"
30118 prefix="$acl_final_prefix"
30119 acl_save_exec_prefix="$exec_prefix"
30120 exec_prefix="$acl_final_exec_prefix"
30121 eval x=\"$x\"
30122 exec_prefix="$acl_save_exec_prefix"
30123 prefix="$acl_save_prefix"
30124
30125 if test "X$x" = "X-L$found_dir"; then
30126 haveit=yes
30127 break
30128 fi
30129 done
30130 if test -z "$haveit"; then
30131 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
30132 fi
30133 if test "$hardcode_minus_L" != no; then
30134 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30135 else
30136 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
30137 fi
30138 fi
30139 fi
30140 fi
30141 else
30142 if test "X$found_a" != "X"; then
30143 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
30144 else
30145 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
30146 fi
30147 fi
30148 additional_includedir=
30149 case "$found_dir" in
30150 */lib | */lib/)
30151 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30152 additional_includedir="$basedir/include"
30153 ;;
30154 esac
30155 if test "X$additional_includedir" != "X"; then
30156 if test "X$additional_includedir" != "X/usr/include"; then
30157 haveit=
30158 if test "X$additional_includedir" = "X/usr/local/include"; then
30159 if test -n "$GCC"; then
30160 case $host_os in
30161 linux*) haveit=yes;;
30162 esac
30163 fi
30164 fi
30165 if test -z "$haveit"; then
30166 for x in $CPPFLAGS $INCBABELTRACE; do
30167
30168 acl_save_prefix="$prefix"
30169 prefix="$acl_final_prefix"
30170 acl_save_exec_prefix="$exec_prefix"
30171 exec_prefix="$acl_final_exec_prefix"
30172 eval x=\"$x\"
30173 exec_prefix="$acl_save_exec_prefix"
30174 prefix="$acl_save_prefix"
30175
30176 if test "X$x" = "X-I$additional_includedir"; then
30177 haveit=yes
30178 break
30179 fi
30180 done
30181 if test -z "$haveit"; then
30182 if test -d "$additional_includedir"; then
30183 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
30184 fi
30185 fi
30186 fi
30187 fi
30188 fi
30189 if test -n "$found_la"; then
30190 save_libdir="$libdir"
30191 case "$found_la" in
30192 */* | *\\*) . "$found_la" ;;
30193 *) . "./$found_la" ;;
30194 esac
30195 libdir="$save_libdir"
30196 for dep in $dependency_libs; do
30197 case "$dep" in
30198 -L*)
30199 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
30200 if test "X$additional_libdir" != "X/usr/lib"; then
30201 haveit=
30202 if test "X$additional_libdir" = "X/usr/local/lib"; then
30203 if test -n "$GCC"; then
30204 case $host_os in
30205 linux*) haveit=yes;;
30206 esac
30207 fi
30208 fi
30209 if test -z "$haveit"; then
30210 haveit=
30211 for x in $LDFLAGS $LIBBABELTRACE; do
30212
30213 acl_save_prefix="$prefix"
30214 prefix="$acl_final_prefix"
30215 acl_save_exec_prefix="$exec_prefix"
30216 exec_prefix="$acl_final_exec_prefix"
30217 eval x=\"$x\"
30218 exec_prefix="$acl_save_exec_prefix"
30219 prefix="$acl_save_prefix"
30220
30221 if test "X$x" = "X-L$additional_libdir"; then
30222 haveit=yes
30223 break
30224 fi
30225 done
30226 if test -z "$haveit"; then
30227 if test -d "$additional_libdir"; then
30228 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
30229 fi
30230 fi
30231 haveit=
30232 for x in $LDFLAGS $LTLIBBABELTRACE; do
30233
30234 acl_save_prefix="$prefix"
30235 prefix="$acl_final_prefix"
30236 acl_save_exec_prefix="$exec_prefix"
30237 exec_prefix="$acl_final_exec_prefix"
30238 eval x=\"$x\"
30239 exec_prefix="$acl_save_exec_prefix"
30240 prefix="$acl_save_prefix"
30241
30242 if test "X$x" = "X-L$additional_libdir"; then
30243 haveit=yes
30244 break
30245 fi
30246 done
30247 if test -z "$haveit"; then
30248 if test -d "$additional_libdir"; then
30249 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
30250 fi
30251 fi
30252 fi
30253 fi
30254 ;;
30255 -R*)
30256 dir=`echo "X$dep" | sed -e 's/^X-R//'`
30257 if test "$enable_rpath" != no; then
30258 haveit=
30259 for x in $rpathdirs; do
30260 if test "X$x" = "X$dir"; then
30261 haveit=yes
30262 break
30263 fi
30264 done
30265 if test -z "$haveit"; then
30266 rpathdirs="$rpathdirs $dir"
30267 fi
30268 haveit=
30269 for x in $ltrpathdirs; do
30270 if test "X$x" = "X$dir"; then
30271 haveit=yes
30272 break
30273 fi
30274 done
30275 if test -z "$haveit"; then
30276 ltrpathdirs="$ltrpathdirs $dir"
30277 fi
30278 fi
30279 ;;
30280 -l*)
30281 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30282 ;;
30283 *.la)
30284 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
30285 ;;
30286 *)
30287 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
30288 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
30289 ;;
30290 esac
30291 done
30292 fi
30293 else
30294 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
30295 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
30296 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
30297 else
30298 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
30299 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
30300 fi
30301 fi
30302 fi
30303 fi
30304 done
30305 done
30306 if test "X$rpathdirs" != "X"; then
30307 if test -n "$hardcode_libdir_separator"; then
30308 alldirs=
30309 for found_dir in $rpathdirs; do
30310 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
30311 done
30312 acl_save_libdir="$libdir"
30313 libdir="$alldirs"
30314 eval flag=\"$hardcode_libdir_flag_spec\"
30315 libdir="$acl_save_libdir"
30316 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
30317 else
30318 for found_dir in $rpathdirs; do
30319 acl_save_libdir="$libdir"
30320 libdir="$found_dir"
30321 eval flag=\"$hardcode_libdir_flag_spec\"
30322 libdir="$acl_save_libdir"
30323 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
30324 done
30325 fi
30326 fi
30327 if test "X$ltrpathdirs" != "X"; then
30328 for found_dir in $ltrpathdirs; do
30329 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
30330 done
30331 fi
30332
30333
30334 ac_save_CPPFLAGS="$CPPFLAGS"
30335
30336 for element in $INCBABELTRACE; do
30337 haveit=
30338 for x in $CPPFLAGS; do
30339
30340 acl_save_prefix="$prefix"
30341 prefix="$acl_final_prefix"
30342 acl_save_exec_prefix="$exec_prefix"
30343 exec_prefix="$acl_final_exec_prefix"
30344 eval x=\"$x\"
30345 exec_prefix="$acl_save_exec_prefix"
30346 prefix="$acl_save_prefix"
30347
30348 if test "X$x" = "X$element"; then
30349 haveit=yes
30350 break
30351 fi
30352 done
30353 if test -z "$haveit"; then
30354 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
30355 fi
30356 done
30357
30358
30359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
30360 $as_echo_n "checking for libbabeltrace... " >&6; }
30361 if ${ac_cv_libbabeltrace+:} false; then :
30362 $as_echo_n "(cached) " >&6
30363 else
30364
30365 ac_save_LIBS="$LIBS"
30366 LIBS="$LIBS $LIBBABELTRACE"
30367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30368 /* end confdefs.h. */
30369 #include <babeltrace/babeltrace.h>
30370 #include <babeltrace/ctf/events.h>
30371 #include <babeltrace/ctf/iterator.h>
30372 int
30373 main ()
30374 {
30375 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
30376 struct bt_ctf_event *event = NULL;
30377 const struct bt_definition *scope;
30378
30379 pos->type = BT_SEEK_BEGIN;
30380 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
30381 scope = bt_ctf_get_top_level_scope (event,
30382 BT_STREAM_EVENT_HEADER);
30383 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
30384
30385 ;
30386 return 0;
30387 }
30388 _ACEOF
30389 if ac_fn_c_try_link "$LINENO"; then :
30390 ac_cv_libbabeltrace=yes
30391 else
30392 ac_cv_libbabeltrace=no
30393 fi
30394 rm -f core conftest.err conftest.$ac_objext \
30395 conftest$ac_exeext conftest.$ac_ext
30396 LIBS="$ac_save_LIBS"
30397
30398 fi
30399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
30400 $as_echo "$ac_cv_libbabeltrace" >&6; }
30401 if test "$ac_cv_libbabeltrace" = yes; then
30402 HAVE_LIBBABELTRACE=yes
30403
30404 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
30405
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
30407 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
30408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
30409 $as_echo "$LIBBABELTRACE" >&6; }
30410 else
30411 HAVE_LIBBABELTRACE=no
30412 CPPFLAGS="$ac_save_CPPFLAGS"
30413 LIBBABELTRACE=
30414 LTLIBBABELTRACE=
30415 fi
30416
30417
30418
30419
30420
30421
30422 CFLAGS=$saved_CFLAGS
30423
30424 if test "$HAVE_LIBBABELTRACE" != yes; then
30425 if test "$with_babeltrace" = yes; then
30426 as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
30427 else
30428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
30429 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
30430 fi
30431 fi
30432 fi
30433
30434 # Check whether --enable-libctf was given.
30435 if test "${enable_libctf+set}" = set; then :
30436 enableval=$enable_libctf;
30437 case "$enableval" in
30438 yes|no) ;;
30439 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
30440 esac
30441
30442 else
30443 enable_libctf=yes
30444 fi
30445
30446
30447 if test "${enable_libctf}" = yes; then
30448
30449 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
30450
30451 LIBCTF="../libctf/libctf.la"
30452 CTF_DEPS="../libctf/libctf.la"
30453 else
30454 LIBCTF=
30455 CTF_DEPS=
30456 fi
30457
30458
30459
30460 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
30461 # empty version.
30462
30463 NM_H=
30464 rm -f nm.h
30465 if test "${nativefile}" != ""; then
30466 case "${nativefile}" in
30467 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
30468 * ) GDB_NM_FILE="${nativefile}"
30469 esac
30470 ac_config_links="$ac_config_links nm.h:$GDB_NM_FILE"
30471
30472
30473 cat >>confdefs.h <<_ACEOF
30474 #define GDB_NM_FILE "${GDB_NM_FILE}"
30475 _ACEOF
30476
30477 NM_H=nm.h
30478 fi
30479
30480
30481
30482 for ac_prog in xsltproc
30483 do
30484 # Extract the first word of "$ac_prog", so it can be a program name with args.
30485 set dummy $ac_prog; ac_word=$2
30486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30487 $as_echo_n "checking for $ac_word... " >&6; }
30488 if ${ac_cv_path_XSLTPROC+:} false; then :
30489 $as_echo_n "(cached) " >&6
30490 else
30491 case $XSLTPROC in
30492 [\\/]* | ?:[\\/]*)
30493 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
30494 ;;
30495 *)
30496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30497 for as_dir in $PATH
30498 do
30499 IFS=$as_save_IFS
30500 test -z "$as_dir" && as_dir=.
30501 for ac_exec_ext in '' $ac_executable_extensions; do
30502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30503 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
30504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30505 break 2
30506 fi
30507 done
30508 done
30509 IFS=$as_save_IFS
30510
30511 ;;
30512 esac
30513 fi
30514 XSLTPROC=$ac_cv_path_XSLTPROC
30515 if test -n "$XSLTPROC"; then
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
30517 $as_echo "$XSLTPROC" >&6; }
30518 else
30519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30520 $as_echo "no" >&6; }
30521 fi
30522
30523
30524 test -n "$XSLTPROC" && break
30525 done
30526 test -n "$XSLTPROC" || XSLTPROC="missing"
30527
30528 if test "x$USE_MAINTAINER_MODE" = xyes; then
30529 if test "${XSLTPROC}" = missing; then
30530 as_fn_error $? "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
30531 fi
30532 fi
30533
30534
30535
30536
30537
30538 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
30539
30540
30541
30542 # Check whether we will enable the inclusion of unit tests when
30543 # compiling GDB.
30544 #
30545 # The default value of this option changes depending whether we're on
30546 # development mode (in which case it's "true") or not (in which case
30547 # it's "false"). The $development variable is set by the GDB_AC_COMMON
30548 # macro, which must therefore be used before GDB_AC_SELFTEST.
30549
30550 if test "x$development" != xtrue && test "x$development" != xfalse; then :
30551 as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
30552 fi
30553
30554 # Check whether --enable-unit-tests was given.
30555 if test "${enable_unit_tests+set}" = set; then :
30556 enableval=$enable_unit_tests; case "${enableval}" in
30557 yes) enable_unittests=true ;;
30558 no) enable_unittests=false ;;
30559 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
30560 esac
30561 else
30562 enable_unittests=$development
30563 fi
30564
30565
30566 if $enable_unittests; then
30567
30568 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
30569
30570
30571 CONFIG_OBS="$CONFIG_OBS \$(SELFTESTS_OBS)"
30572 CONFIG_SRCS="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
30573
30574 fi
30575
30576
30577
30578 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
30579 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
30580 if test "x$GDB_TRANSFORM_NAME" = x; then
30581 GDB_TRANSFORM_NAME=gdb
30582 fi
30583
30584
30585
30586 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
30587 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
30588 if test "x$GCORE_TRANSFORM_NAME" = x; then
30589 GCORE_TRANSFORM_NAME=gcore
30590 fi
30591
30592
30593 ac_config_files="$ac_config_files gcore"
30594
30595 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
30596
30597
30598 cat >confcache <<\_ACEOF
30599 # This file is a shell script that caches the results of configure
30600 # tests run on this system so they can be shared between configure
30601 # scripts and configure runs, see configure's option --config-cache.
30602 # It is not useful on other systems. If it contains results you don't
30603 # want to keep, you may remove or edit it.
30604 #
30605 # config.status only pays attention to the cache file if you give it
30606 # the --recheck option to rerun configure.
30607 #
30608 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30609 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30610 # following values.
30611
30612 _ACEOF
30613
30614 # The following way of writing the cache mishandles newlines in values,
30615 # but we know of no workaround that is simple, portable, and efficient.
30616 # So, we kill variables containing newlines.
30617 # Ultrix sh set writes to stderr and can't be redirected directly,
30618 # and sets the high bit in the cache file unless we assign to the vars.
30619 (
30620 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30621 eval ac_val=\$$ac_var
30622 case $ac_val in #(
30623 *${as_nl}*)
30624 case $ac_var in #(
30625 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30626 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30627 esac
30628 case $ac_var in #(
30629 _ | IFS | as_nl) ;; #(
30630 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30631 *) { eval $ac_var=; unset $ac_var;} ;;
30632 esac ;;
30633 esac
30634 done
30635
30636 (set) 2>&1 |
30637 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30638 *${as_nl}ac_space=\ *)
30639 # `set' does not quote correctly, so add quotes: double-quote
30640 # substitution turns \\\\ into \\, and sed turns \\ into \.
30641 sed -n \
30642 "s/'/'\\\\''/g;
30643 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30644 ;; #(
30645 *)
30646 # `set' quotes correctly as required by POSIX, so do not add quotes.
30647 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30648 ;;
30649 esac |
30650 sort
30651 ) |
30652 sed '
30653 /^ac_cv_env_/b end
30654 t clear
30655 :clear
30656 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30657 t end
30658 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30659 :end' >>confcache
30660 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30661 if test -w "$cache_file"; then
30662 if test "x$cache_file" != "x/dev/null"; then
30663 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30664 $as_echo "$as_me: updating cache $cache_file" >&6;}
30665 if test ! -f "$cache_file" || test -h "$cache_file"; then
30666 cat confcache >"$cache_file"
30667 else
30668 case $cache_file in #(
30669 */* | ?:*)
30670 mv -f confcache "$cache_file"$$ &&
30671 mv -f "$cache_file"$$ "$cache_file" ;; #(
30672 *)
30673 mv -f confcache "$cache_file" ;;
30674 esac
30675 fi
30676 fi
30677 else
30678 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30679 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30680 fi
30681 fi
30682 rm -f confcache
30683
30684 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30685 # Let make expand exec_prefix.
30686 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30687
30688 DEFS=-DHAVE_CONFIG_H
30689
30690 ac_libobjs=
30691 ac_ltlibobjs=
30692 U=
30693 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30694 # 1. Remove the extension, and $U if already installed.
30695 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30696 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30697 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30698 # will be set to the directory where LIBOBJS objects are built.
30699 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30700 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30701 done
30702 LIBOBJS=$ac_libobjs
30703
30704 LTLIBOBJS=$ac_ltlibobjs
30705
30706
30707 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30708 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
30709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30710 fi
30711 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
30712 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
30713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30714 fi
30715 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
30716 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
30717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30718 fi
30719 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
30720 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
30721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30722 fi
30723
30724
30725 : "${CONFIG_STATUS=./config.status}"
30726 ac_write_fail=0
30727 ac_clean_files_save=$ac_clean_files
30728 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30730 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30731 as_write_fail=0
30732 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30733 #! $SHELL
30734 # Generated by $as_me.
30735 # Run this file to recreate the current configuration.
30736 # Compiler output produced by configure, useful for debugging
30737 # configure, is in config.log if it exists.
30738
30739 debug=false
30740 ac_cs_recheck=false
30741 ac_cs_silent=false
30742
30743 SHELL=\${CONFIG_SHELL-$SHELL}
30744 export SHELL
30745 _ASEOF
30746 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30747 ## -------------------- ##
30748 ## M4sh Initialization. ##
30749 ## -------------------- ##
30750
30751 # Be more Bourne compatible
30752 DUALCASE=1; export DUALCASE # for MKS sh
30753 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30754 emulate sh
30755 NULLCMD=:
30756 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30757 # is contrary to our usage. Disable this feature.
30758 alias -g '${1+"$@"}'='"$@"'
30759 setopt NO_GLOB_SUBST
30760 else
30761 case `(set -o) 2>/dev/null` in #(
30762 *posix*) :
30763 set -o posix ;; #(
30764 *) :
30765 ;;
30766 esac
30767 fi
30768
30769
30770 as_nl='
30771 '
30772 export as_nl
30773 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30774 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30775 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30776 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30777 # Prefer a ksh shell builtin over an external printf program on Solaris,
30778 # but without wasting forks for bash or zsh.
30779 if test -z "$BASH_VERSION$ZSH_VERSION" \
30780 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30781 as_echo='print -r --'
30782 as_echo_n='print -rn --'
30783 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30784 as_echo='printf %s\n'
30785 as_echo_n='printf %s'
30786 else
30787 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30788 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30789 as_echo_n='/usr/ucb/echo -n'
30790 else
30791 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30792 as_echo_n_body='eval
30793 arg=$1;
30794 case $arg in #(
30795 *"$as_nl"*)
30796 expr "X$arg" : "X\\(.*\\)$as_nl";
30797 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30798 esac;
30799 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30800 '
30801 export as_echo_n_body
30802 as_echo_n='sh -c $as_echo_n_body as_echo'
30803 fi
30804 export as_echo_body
30805 as_echo='sh -c $as_echo_body as_echo'
30806 fi
30807
30808 # The user is always right.
30809 if test "${PATH_SEPARATOR+set}" != set; then
30810 PATH_SEPARATOR=:
30811 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30812 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30813 PATH_SEPARATOR=';'
30814 }
30815 fi
30816
30817
30818 # IFS
30819 # We need space, tab and new line, in precisely that order. Quoting is
30820 # there to prevent editors from complaining about space-tab.
30821 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30822 # splitting by setting IFS to empty value.)
30823 IFS=" "" $as_nl"
30824
30825 # Find who we are. Look in the path if we contain no directory separator.
30826 as_myself=
30827 case $0 in #((
30828 *[\\/]* ) as_myself=$0 ;;
30829 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30830 for as_dir in $PATH
30831 do
30832 IFS=$as_save_IFS
30833 test -z "$as_dir" && as_dir=.
30834 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30835 done
30836 IFS=$as_save_IFS
30837
30838 ;;
30839 esac
30840 # We did not find ourselves, most probably we were run as `sh COMMAND'
30841 # in which case we are not to be found in the path.
30842 if test "x$as_myself" = x; then
30843 as_myself=$0
30844 fi
30845 if test ! -f "$as_myself"; then
30846 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30847 exit 1
30848 fi
30849
30850 # Unset variables that we do not need and which cause bugs (e.g. in
30851 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30852 # suppresses any "Segmentation fault" message there. '((' could
30853 # trigger a bug in pdksh 5.2.14.
30854 for as_var in BASH_ENV ENV MAIL MAILPATH
30855 do eval test x\${$as_var+set} = xset \
30856 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30857 done
30858 PS1='$ '
30859 PS2='> '
30860 PS4='+ '
30861
30862 # NLS nuisances.
30863 LC_ALL=C
30864 export LC_ALL
30865 LANGUAGE=C
30866 export LANGUAGE
30867
30868 # CDPATH.
30869 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30870
30871
30872 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30873 # ----------------------------------------
30874 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30875 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30876 # script with STATUS, using 1 if that was 0.
30877 as_fn_error ()
30878 {
30879 as_status=$1; test $as_status -eq 0 && as_status=1
30880 if test "$4"; then
30881 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30882 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30883 fi
30884 $as_echo "$as_me: error: $2" >&2
30885 as_fn_exit $as_status
30886 } # as_fn_error
30887
30888
30889 # as_fn_set_status STATUS
30890 # -----------------------
30891 # Set $? to STATUS, without forking.
30892 as_fn_set_status ()
30893 {
30894 return $1
30895 } # as_fn_set_status
30896
30897 # as_fn_exit STATUS
30898 # -----------------
30899 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30900 as_fn_exit ()
30901 {
30902 set +e
30903 as_fn_set_status $1
30904 exit $1
30905 } # as_fn_exit
30906
30907 # as_fn_unset VAR
30908 # ---------------
30909 # Portably unset VAR.
30910 as_fn_unset ()
30911 {
30912 { eval $1=; unset $1;}
30913 }
30914 as_unset=as_fn_unset
30915 # as_fn_append VAR VALUE
30916 # ----------------------
30917 # Append the text in VALUE to the end of the definition contained in VAR. Take
30918 # advantage of any shell optimizations that allow amortized linear growth over
30919 # repeated appends, instead of the typical quadratic growth present in naive
30920 # implementations.
30921 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30922 eval 'as_fn_append ()
30923 {
30924 eval $1+=\$2
30925 }'
30926 else
30927 as_fn_append ()
30928 {
30929 eval $1=\$$1\$2
30930 }
30931 fi # as_fn_append
30932
30933 # as_fn_arith ARG...
30934 # ------------------
30935 # Perform arithmetic evaluation on the ARGs, and store the result in the
30936 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30937 # must be portable across $(()) and expr.
30938 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30939 eval 'as_fn_arith ()
30940 {
30941 as_val=$(( $* ))
30942 }'
30943 else
30944 as_fn_arith ()
30945 {
30946 as_val=`expr "$@" || test $? -eq 1`
30947 }
30948 fi # as_fn_arith
30949
30950
30951 if expr a : '\(a\)' >/dev/null 2>&1 &&
30952 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30953 as_expr=expr
30954 else
30955 as_expr=false
30956 fi
30957
30958 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30959 as_basename=basename
30960 else
30961 as_basename=false
30962 fi
30963
30964 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30965 as_dirname=dirname
30966 else
30967 as_dirname=false
30968 fi
30969
30970 as_me=`$as_basename -- "$0" ||
30971 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30972 X"$0" : 'X\(//\)$' \| \
30973 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30974 $as_echo X/"$0" |
30975 sed '/^.*\/\([^/][^/]*\)\/*$/{
30976 s//\1/
30977 q
30978 }
30979 /^X\/\(\/\/\)$/{
30980 s//\1/
30981 q
30982 }
30983 /^X\/\(\/\).*/{
30984 s//\1/
30985 q
30986 }
30987 s/.*/./; q'`
30988
30989 # Avoid depending upon Character Ranges.
30990 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30991 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30992 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30993 as_cr_digits='0123456789'
30994 as_cr_alnum=$as_cr_Letters$as_cr_digits
30995
30996 ECHO_C= ECHO_N= ECHO_T=
30997 case `echo -n x` in #(((((
30998 -n*)
30999 case `echo 'xy\c'` in
31000 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31001 xy) ECHO_C='\c';;
31002 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31003 ECHO_T=' ';;
31004 esac;;
31005 *)
31006 ECHO_N='-n';;
31007 esac
31008
31009 rm -f conf$$ conf$$.exe conf$$.file
31010 if test -d conf$$.dir; then
31011 rm -f conf$$.dir/conf$$.file
31012 else
31013 rm -f conf$$.dir
31014 mkdir conf$$.dir 2>/dev/null
31015 fi
31016 if (echo >conf$$.file) 2>/dev/null; then
31017 if ln -s conf$$.file conf$$ 2>/dev/null; then
31018 as_ln_s='ln -s'
31019 # ... but there are two gotchas:
31020 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31021 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31022 # In both cases, we have to default to `cp -pR'.
31023 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31024 as_ln_s='cp -pR'
31025 elif ln conf$$.file conf$$ 2>/dev/null; then
31026 as_ln_s=ln
31027 else
31028 as_ln_s='cp -pR'
31029 fi
31030 else
31031 as_ln_s='cp -pR'
31032 fi
31033 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31034 rmdir conf$$.dir 2>/dev/null
31035
31036
31037 # as_fn_mkdir_p
31038 # -------------
31039 # Create "$as_dir" as a directory, including parents if necessary.
31040 as_fn_mkdir_p ()
31041 {
31042
31043 case $as_dir in #(
31044 -*) as_dir=./$as_dir;;
31045 esac
31046 test -d "$as_dir" || eval $as_mkdir_p || {
31047 as_dirs=
31048 while :; do
31049 case $as_dir in #(
31050 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31051 *) as_qdir=$as_dir;;
31052 esac
31053 as_dirs="'$as_qdir' $as_dirs"
31054 as_dir=`$as_dirname -- "$as_dir" ||
31055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31056 X"$as_dir" : 'X\(//\)[^/]' \| \
31057 X"$as_dir" : 'X\(//\)$' \| \
31058 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31059 $as_echo X"$as_dir" |
31060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31061 s//\1/
31062 q
31063 }
31064 /^X\(\/\/\)[^/].*/{
31065 s//\1/
31066 q
31067 }
31068 /^X\(\/\/\)$/{
31069 s//\1/
31070 q
31071 }
31072 /^X\(\/\).*/{
31073 s//\1/
31074 q
31075 }
31076 s/.*/./; q'`
31077 test -d "$as_dir" && break
31078 done
31079 test -z "$as_dirs" || eval "mkdir $as_dirs"
31080 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31081
31082
31083 } # as_fn_mkdir_p
31084 if mkdir -p . 2>/dev/null; then
31085 as_mkdir_p='mkdir -p "$as_dir"'
31086 else
31087 test -d ./-p && rmdir ./-p
31088 as_mkdir_p=false
31089 fi
31090
31091
31092 # as_fn_executable_p FILE
31093 # -----------------------
31094 # Test if FILE is an executable regular file.
31095 as_fn_executable_p ()
31096 {
31097 test -f "$1" && test -x "$1"
31098 } # as_fn_executable_p
31099 as_test_x='test -x'
31100 as_executable_p=as_fn_executable_p
31101
31102 # Sed expression to map a string onto a valid CPP name.
31103 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31104
31105 # Sed expression to map a string onto a valid variable name.
31106 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31107
31108
31109 exec 6>&1
31110 ## ----------------------------------- ##
31111 ## Main body of $CONFIG_STATUS script. ##
31112 ## ----------------------------------- ##
31113 _ASEOF
31114 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31115
31116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31117 # Save the log message, to keep $0 and so on meaningful, and to
31118 # report actual input values of CONFIG_FILES etc. instead of their
31119 # values after options handling.
31120 ac_log="
31121 This file was extended by $as_me, which was
31122 generated by GNU Autoconf 2.69. Invocation command line was
31123
31124 CONFIG_FILES = $CONFIG_FILES
31125 CONFIG_HEADERS = $CONFIG_HEADERS
31126 CONFIG_LINKS = $CONFIG_LINKS
31127 CONFIG_COMMANDS = $CONFIG_COMMANDS
31128 $ $0 $@
31129
31130 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31131 "
31132
31133 _ACEOF
31134
31135 case $ac_config_files in *"
31136 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31137 esac
31138
31139 case $ac_config_headers in *"
31140 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31141 esac
31142
31143
31144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31145 # Files that config.status was made for.
31146 config_files="$ac_config_files"
31147 config_headers="$ac_config_headers"
31148 config_links="$ac_config_links"
31149 config_commands="$ac_config_commands"
31150
31151 _ACEOF
31152
31153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31154 ac_cs_usage="\
31155 \`$as_me' instantiates files and other configuration actions
31156 from templates according to the current configuration. Unless the files
31157 and actions are specified as TAGs, all are instantiated by default.
31158
31159 Usage: $0 [OPTION]... [TAG]...
31160
31161 -h, --help print this help, then exit
31162 -V, --version print version number and configuration settings, then exit
31163 --config print configuration, then exit
31164 -q, --quiet, --silent
31165 do not print progress messages
31166 -d, --debug don't remove temporary files
31167 --recheck update $as_me by reconfiguring in the same conditions
31168 --file=FILE[:TEMPLATE]
31169 instantiate the configuration file FILE
31170 --header=FILE[:TEMPLATE]
31171 instantiate the configuration header FILE
31172
31173 Configuration files:
31174 $config_files
31175
31176 Configuration headers:
31177 $config_headers
31178
31179 Configuration links:
31180 $config_links
31181
31182 Configuration commands:
31183 $config_commands
31184
31185 Report bugs to the package provider."
31186
31187 _ACEOF
31188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31189 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31190 ac_cs_version="\\
31191 config.status
31192 configured by $0, generated by GNU Autoconf 2.69,
31193 with options \\"\$ac_cs_config\\"
31194
31195 Copyright (C) 2012 Free Software Foundation, Inc.
31196 This config.status script is free software; the Free Software Foundation
31197 gives unlimited permission to copy, distribute and modify it."
31198
31199 ac_pwd='$ac_pwd'
31200 srcdir='$srcdir'
31201 INSTALL='$INSTALL'
31202 AWK='$AWK'
31203 test -n "\$AWK" || AWK=awk
31204 _ACEOF
31205
31206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31207 # The default lists apply if the user does not specify any file.
31208 ac_need_defaults=:
31209 while test $# != 0
31210 do
31211 case $1 in
31212 --*=?*)
31213 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31214 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31215 ac_shift=:
31216 ;;
31217 --*=)
31218 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31219 ac_optarg=
31220 ac_shift=:
31221 ;;
31222 *)
31223 ac_option=$1
31224 ac_optarg=$2
31225 ac_shift=shift
31226 ;;
31227 esac
31228
31229 case $ac_option in
31230 # Handling of the options.
31231 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31232 ac_cs_recheck=: ;;
31233 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31234 $as_echo "$ac_cs_version"; exit ;;
31235 --config | --confi | --conf | --con | --co | --c )
31236 $as_echo "$ac_cs_config"; exit ;;
31237 --debug | --debu | --deb | --de | --d | -d )
31238 debug=: ;;
31239 --file | --fil | --fi | --f )
31240 $ac_shift
31241 case $ac_optarg in
31242 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31243 '') as_fn_error $? "missing file argument" ;;
31244 esac
31245 as_fn_append CONFIG_FILES " '$ac_optarg'"
31246 ac_need_defaults=false;;
31247 --header | --heade | --head | --hea )
31248 $ac_shift
31249 case $ac_optarg in
31250 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31251 esac
31252 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31253 ac_need_defaults=false;;
31254 --he | --h)
31255 # Conflict between --help and --header
31256 as_fn_error $? "ambiguous option: \`$1'
31257 Try \`$0 --help' for more information.";;
31258 --help | --hel | -h )
31259 $as_echo "$ac_cs_usage"; exit ;;
31260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31261 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31262 ac_cs_silent=: ;;
31263
31264 # This is an error.
31265 -*) as_fn_error $? "unrecognized option: \`$1'
31266 Try \`$0 --help' for more information." ;;
31267
31268 *) as_fn_append ac_config_targets " $1"
31269 ac_need_defaults=false ;;
31270
31271 esac
31272 shift
31273 done
31274
31275 ac_configure_extra_args=
31276
31277 if $ac_cs_silent; then
31278 exec 6>/dev/null
31279 ac_configure_extra_args="$ac_configure_extra_args --silent"
31280 fi
31281
31282 _ACEOF
31283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31284 if \$ac_cs_recheck; then
31285 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31286 shift
31287 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31288 CONFIG_SHELL='$SHELL'
31289 export CONFIG_SHELL
31290 exec "\$@"
31291 fi
31292
31293 _ACEOF
31294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31295 exec 5>>config.log
31296 {
31297 echo
31298 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31299 ## Running $as_me. ##
31300 _ASBOX
31301 $as_echo "$ac_log"
31302 } >&5
31303
31304 _ACEOF
31305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31306 #
31307 # INIT-COMMANDS
31308 #
31309
31310
31311 # The HP-UX ksh and POSIX shell print the target directory to stdout
31312 # if CDPATH is set.
31313 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31314
31315 sed_quote_subst='$sed_quote_subst'
31316 double_quote_subst='$double_quote_subst'
31317 delay_variable_subst='$delay_variable_subst'
31318 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31319 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31320 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31321 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31322 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31323 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31324 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31325 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31326 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31327 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31328 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31329 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31330 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31331 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31332 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31333 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31334 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31335 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31336 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31337 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31338 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31339 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31340 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31341 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31342 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31343 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31344 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31345 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31346 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31347 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31348 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31349 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31350 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31351 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31352 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31353 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31354 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31355 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31356 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31357 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31358 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31359 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31360 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31361 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31362 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31363 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31364 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31365 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31366 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"`'
31367 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31368 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31369 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31370 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31371 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31372 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31373 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31374 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31375 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31376 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31377 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31378 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31379 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31380 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31381 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31382 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31383 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31384 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31385 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31386 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31387 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31388 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31389 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31390 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31391 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31392 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31393 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31394 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31395 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31396 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31397 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31398 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31399 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31400 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31401 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31402 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31403 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31404 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31405 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31406 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31407 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
31408 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31409 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31410 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31411 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31412 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31413 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31414 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31415 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31416 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31417 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31418 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31419 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31420 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31421 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31422 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31423 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31424 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31425 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31426 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31427 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31428 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31429 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31430 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31431 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31432 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31433 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31434 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31435 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31436 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31437 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31438 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31439 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31440 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31441 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31442 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31443 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31444 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31445 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31446 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31447 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31448 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31449 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31450 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31451 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31452 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31453 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31454 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31455 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31456 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31457 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31458 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31459 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31460 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31461 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31462 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31463 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31464 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31465 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31466 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31467 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31468 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31469 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31470 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31471 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31472 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31473 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31474 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31475 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31476 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31477 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31478 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31479 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
31480 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31481 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31482 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31483 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31484 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31485 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31486 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31487 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31488 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31489 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31490 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31491 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31492 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31493
31494 LTCC='$LTCC'
31495 LTCFLAGS='$LTCFLAGS'
31496 compiler='$compiler_DEFAULT'
31497
31498 # A function that is used when there is no print builtin or printf.
31499 func_fallback_echo ()
31500 {
31501 eval 'cat <<_LTECHO_EOF
31502 \$1
31503 _LTECHO_EOF'
31504 }
31505
31506 # Quote evaled strings.
31507 for var in SHELL \
31508 ECHO \
31509 SED \
31510 GREP \
31511 EGREP \
31512 FGREP \
31513 LD \
31514 NM \
31515 LN_S \
31516 lt_SP2NL \
31517 lt_NL2SP \
31518 reload_flag \
31519 OBJDUMP \
31520 deplibs_check_method \
31521 file_magic_cmd \
31522 AR \
31523 AR_FLAGS \
31524 STRIP \
31525 RANLIB \
31526 CC \
31527 CFLAGS \
31528 compiler \
31529 lt_cv_sys_global_symbol_pipe \
31530 lt_cv_sys_global_symbol_to_cdecl \
31531 lt_cv_sys_global_symbol_to_c_name_address \
31532 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31533 lt_prog_compiler_no_builtin_flag \
31534 lt_prog_compiler_wl \
31535 lt_prog_compiler_pic \
31536 lt_prog_compiler_static \
31537 lt_cv_prog_compiler_c_o \
31538 need_locks \
31539 DSYMUTIL \
31540 NMEDIT \
31541 LIPO \
31542 OTOOL \
31543 OTOOL64 \
31544 shrext_cmds \
31545 export_dynamic_flag_spec \
31546 whole_archive_flag_spec \
31547 compiler_needs_object \
31548 with_gnu_ld \
31549 allow_undefined_flag \
31550 no_undefined_flag \
31551 hardcode_libdir_flag_spec \
31552 hardcode_libdir_flag_spec_ld \
31553 hardcode_libdir_separator \
31554 fix_srcfile_path \
31555 exclude_expsyms \
31556 include_expsyms \
31557 file_list_spec \
31558 variables_saved_for_relink \
31559 libname_spec \
31560 library_names_spec \
31561 soname_spec \
31562 install_override_mode \
31563 finish_eval \
31564 old_striplib \
31565 striplib \
31566 compiler_lib_search_dirs \
31567 predep_objects \
31568 postdep_objects \
31569 predeps \
31570 postdeps \
31571 compiler_lib_search_path \
31572 LD_CXX \
31573 reload_flag_CXX \
31574 compiler_CXX \
31575 lt_prog_compiler_no_builtin_flag_CXX \
31576 lt_prog_compiler_wl_CXX \
31577 lt_prog_compiler_pic_CXX \
31578 lt_prog_compiler_static_CXX \
31579 lt_cv_prog_compiler_c_o_CXX \
31580 export_dynamic_flag_spec_CXX \
31581 whole_archive_flag_spec_CXX \
31582 compiler_needs_object_CXX \
31583 with_gnu_ld_CXX \
31584 allow_undefined_flag_CXX \
31585 no_undefined_flag_CXX \
31586 hardcode_libdir_flag_spec_CXX \
31587 hardcode_libdir_flag_spec_ld_CXX \
31588 hardcode_libdir_separator_CXX \
31589 fix_srcfile_path_CXX \
31590 exclude_expsyms_CXX \
31591 include_expsyms_CXX \
31592 file_list_spec_CXX \
31593 compiler_lib_search_dirs_CXX \
31594 predep_objects_CXX \
31595 postdep_objects_CXX \
31596 predeps_CXX \
31597 postdeps_CXX \
31598 compiler_lib_search_path_CXX; do
31599 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31600 *[\\\\\\\`\\"\\\$]*)
31601 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31602 ;;
31603 *)
31604 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31605 ;;
31606 esac
31607 done
31608
31609 # Double-quote double-evaled strings.
31610 for var in reload_cmds \
31611 old_postinstall_cmds \
31612 old_postuninstall_cmds \
31613 old_archive_cmds \
31614 extract_expsyms_cmds \
31615 old_archive_from_new_cmds \
31616 old_archive_from_expsyms_cmds \
31617 archive_cmds \
31618 archive_expsym_cmds \
31619 module_cmds \
31620 module_expsym_cmds \
31621 export_symbols_cmds \
31622 prelink_cmds \
31623 postinstall_cmds \
31624 postuninstall_cmds \
31625 finish_cmds \
31626 sys_lib_search_path_spec \
31627 sys_lib_dlsearch_path_spec \
31628 reload_cmds_CXX \
31629 old_archive_cmds_CXX \
31630 old_archive_from_new_cmds_CXX \
31631 old_archive_from_expsyms_cmds_CXX \
31632 archive_cmds_CXX \
31633 archive_expsym_cmds_CXX \
31634 module_cmds_CXX \
31635 module_expsym_cmds_CXX \
31636 export_symbols_cmds_CXX \
31637 prelink_cmds_CXX; do
31638 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31639 *[\\\\\\\`\\"\\\$]*)
31640 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31641 ;;
31642 *)
31643 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31644 ;;
31645 esac
31646 done
31647
31648 ac_aux_dir='$ac_aux_dir'
31649 xsi_shell='$xsi_shell'
31650 lt_shell_append='$lt_shell_append'
31651
31652 # See if we are running on zsh, and set the options which allow our
31653 # commands through without removal of \ escapes INIT.
31654 if test -n "\${ZSH_VERSION+set}" ; then
31655 setopt NO_GLOB_SUBST
31656 fi
31657
31658
31659 PACKAGE='$PACKAGE'
31660 VERSION='$VERSION'
31661 TIMESTAMP='$TIMESTAMP'
31662 RM='$RM'
31663 ofile='$ofile'
31664
31665
31666
31667 ac_aux_dir='$ac_aux_dir'
31668
31669
31670 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31671 GDB_NM_FILE=$GDB_NM_FILE
31672
31673 _ACEOF
31674
31675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31676
31677 # Handling of arguments.
31678 for ac_config_target in $ac_config_targets
31679 do
31680 case $ac_config_target in
31681 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
31682 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31683 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
31684 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
31685 "nm.h") CONFIG_LINKS="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
31686 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
31687 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31688 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
31689 "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
31690 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
31691 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
31692
31693 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31694 esac
31695 done
31696
31697
31698 # If the user did not use the arguments to specify the items to instantiate,
31699 # then the envvar interface is used. Set only those that are not.
31700 # We use the long form for the default assignment because of an extremely
31701 # bizarre bug on SunOS 4.1.3.
31702 if $ac_need_defaults; then
31703 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31704 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31705 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31706 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31707 fi
31708
31709 # Have a temporary directory for convenience. Make it in the build tree
31710 # simply because there is no reason against having it here, and in addition,
31711 # creating and moving files from /tmp can sometimes cause problems.
31712 # Hook for its removal unless debugging.
31713 # Note that there is a small window in which the directory will not be cleaned:
31714 # after its creation but before its name has been assigned to `$tmp'.
31715 $debug ||
31716 {
31717 tmp= ac_tmp=
31718 trap 'exit_status=$?
31719 : "${ac_tmp:=$tmp}"
31720 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31721 ' 0
31722 trap 'as_fn_exit 1' 1 2 13 15
31723 }
31724 # Create a (secure) tmp directory for tmp files.
31725
31726 {
31727 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31728 test -d "$tmp"
31729 } ||
31730 {
31731 tmp=./conf$$-$RANDOM
31732 (umask 077 && mkdir "$tmp")
31733 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31734 ac_tmp=$tmp
31735
31736 # Set up the scripts for CONFIG_FILES section.
31737 # No need to generate them if there are no CONFIG_FILES.
31738 # This happens for instance with `./config.status config.h'.
31739 if test -n "$CONFIG_FILES"; then
31740
31741 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31742 ac_cs_awk_getline=:
31743 ac_cs_awk_pipe_init=
31744 ac_cs_awk_read_file='
31745 while ((getline aline < (F[key])) > 0)
31746 print(aline)
31747 close(F[key])'
31748 ac_cs_awk_pipe_fini=
31749 else
31750 ac_cs_awk_getline=false
31751 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31752 ac_cs_awk_read_file='
31753 print "|#_!!_#|"
31754 print "cat " F[key] " &&"
31755 '$ac_cs_awk_pipe_init
31756 # The final `:' finishes the AND list.
31757 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31758 fi
31759 ac_cr=`echo X | tr X '\015'`
31760 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31761 # But we know of no other shell where ac_cr would be empty at this
31762 # point, so we can use a bashism as a fallback.
31763 if test "x$ac_cr" = x; then
31764 eval ac_cr=\$\'\\r\'
31765 fi
31766 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31767 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31768 ac_cs_awk_cr='\\r'
31769 else
31770 ac_cs_awk_cr=$ac_cr
31771 fi
31772
31773 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31774 _ACEOF
31775
31776 # Create commands to substitute file output variables.
31777 {
31778 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31779 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31780 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31781 echo "_ACAWK" &&
31782 echo "_ACEOF"
31783 } >conf$$files.sh &&
31784 . ./conf$$files.sh ||
31785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31786 rm -f conf$$files.sh
31787
31788 {
31789 echo "cat >conf$$subs.awk <<_ACEOF" &&
31790 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31791 echo "_ACEOF"
31792 } >conf$$subs.sh ||
31793 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31794 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31795 ac_delim='%!_!# '
31796 for ac_last_try in false false false false false :; do
31797 . ./conf$$subs.sh ||
31798 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31799
31800 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31801 if test $ac_delim_n = $ac_delim_num; then
31802 break
31803 elif $ac_last_try; then
31804 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31805 else
31806 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31807 fi
31808 done
31809 rm -f conf$$subs.sh
31810
31811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31812 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31813 _ACEOF
31814 sed -n '
31815 h
31816 s/^/S["/; s/!.*/"]=/
31817 p
31818 g
31819 s/^[^!]*!//
31820 :repl
31821 t repl
31822 s/'"$ac_delim"'$//
31823 t delim
31824 :nl
31825 h
31826 s/\(.\{148\}\)..*/\1/
31827 t more1
31828 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31829 p
31830 n
31831 b repl
31832 :more1
31833 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31834 p
31835 g
31836 s/.\{148\}//
31837 t nl
31838 :delim
31839 h
31840 s/\(.\{148\}\)..*/\1/
31841 t more2
31842 s/["\\]/\\&/g; s/^/"/; s/$/"/
31843 p
31844 b
31845 :more2
31846 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31847 p
31848 g
31849 s/.\{148\}//
31850 t delim
31851 ' <conf$$subs.awk | sed '
31852 /^[^""]/{
31853 N
31854 s/\n//
31855 }
31856 ' >>$CONFIG_STATUS || ac_write_fail=1
31857 rm -f conf$$subs.awk
31858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31859 _ACAWK
31860 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31861 for (key in S) S_is_set[key] = 1
31862 FS = "\a"
31863 \$ac_cs_awk_pipe_init
31864 }
31865 {
31866 line = $ 0
31867 nfields = split(line, field, "@")
31868 substed = 0
31869 len = length(field[1])
31870 for (i = 2; i < nfields; i++) {
31871 key = field[i]
31872 keylen = length(key)
31873 if (S_is_set[key]) {
31874 value = S[key]
31875 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31876 len += length(value) + length(field[++i])
31877 substed = 1
31878 } else
31879 len += 1 + keylen
31880 }
31881 if (nfields == 3 && !substed) {
31882 key = field[2]
31883 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31884 \$ac_cs_awk_read_file
31885 next
31886 }
31887 }
31888 print line
31889 }
31890 \$ac_cs_awk_pipe_fini
31891 _ACAWK
31892 _ACEOF
31893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31894 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31895 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31896 else
31897 cat
31898 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31899 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31900 _ACEOF
31901
31902 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31903 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31904 # trailing colons and then remove the whole line if VPATH becomes empty
31905 # (actually we leave an empty line to preserve line numbers).
31906 if test "x$srcdir" = x.; then
31907 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31908 h
31909 s///
31910 s/^/:/
31911 s/[ ]*$/:/
31912 s/:\$(srcdir):/:/g
31913 s/:\${srcdir}:/:/g
31914 s/:@srcdir@:/:/g
31915 s/^:*//
31916 s/:*$//
31917 x
31918 s/\(=[ ]*\).*/\1/
31919 G
31920 s/\n//
31921 s/^[^=]*=[ ]*$//
31922 }'
31923 fi
31924
31925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31926 fi # test -n "$CONFIG_FILES"
31927
31928 # Set up the scripts for CONFIG_HEADERS section.
31929 # No need to generate them if there are no CONFIG_HEADERS.
31930 # This happens for instance with `./config.status Makefile'.
31931 if test -n "$CONFIG_HEADERS"; then
31932 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31933 BEGIN {
31934 _ACEOF
31935
31936 # Transform confdefs.h into an awk script `defines.awk', embedded as
31937 # here-document in config.status, that substitutes the proper values into
31938 # config.h.in to produce config.h.
31939
31940 # Create a delimiter string that does not exist in confdefs.h, to ease
31941 # handling of long lines.
31942 ac_delim='%!_!# '
31943 for ac_last_try in false false :; do
31944 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31945 if test -z "$ac_tt"; then
31946 break
31947 elif $ac_last_try; then
31948 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31949 else
31950 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31951 fi
31952 done
31953
31954 # For the awk script, D is an array of macro values keyed by name,
31955 # likewise P contains macro parameters if any. Preserve backslash
31956 # newline sequences.
31957
31958 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31959 sed -n '
31960 s/.\{148\}/&'"$ac_delim"'/g
31961 t rset
31962 :rset
31963 s/^[ ]*#[ ]*define[ ][ ]*/ /
31964 t def
31965 d
31966 :def
31967 s/\\$//
31968 t bsnl
31969 s/["\\]/\\&/g
31970 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31971 D["\1"]=" \3"/p
31972 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31973 d
31974 :bsnl
31975 s/["\\]/\\&/g
31976 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31977 D["\1"]=" \3\\\\\\n"\\/p
31978 t cont
31979 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31980 t cont
31981 d
31982 :cont
31983 n
31984 s/.\{148\}/&'"$ac_delim"'/g
31985 t clear
31986 :clear
31987 s/\\$//
31988 t bsnlc
31989 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31990 d
31991 :bsnlc
31992 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31993 b cont
31994 ' <confdefs.h | sed '
31995 s/'"$ac_delim"'/"\\\
31996 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31997
31998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31999 for (key in D) D_is_set[key] = 1
32000 FS = "\a"
32001 }
32002 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32003 line = \$ 0
32004 split(line, arg, " ")
32005 if (arg[1] == "#") {
32006 defundef = arg[2]
32007 mac1 = arg[3]
32008 } else {
32009 defundef = substr(arg[1], 2)
32010 mac1 = arg[2]
32011 }
32012 split(mac1, mac2, "(") #)
32013 macro = mac2[1]
32014 prefix = substr(line, 1, index(line, defundef) - 1)
32015 if (D_is_set[macro]) {
32016 # Preserve the white space surrounding the "#".
32017 print prefix "define", macro P[macro] D[macro]
32018 next
32019 } else {
32020 # Replace #undef with comments. This is necessary, for example,
32021 # in the case of _POSIX_SOURCE, which is predefined and required
32022 # on some systems where configure will not decide to define it.
32023 if (defundef == "undef") {
32024 print "/*", prefix defundef, macro, "*/"
32025 next
32026 }
32027 }
32028 }
32029 { print }
32030 _ACAWK
32031 _ACEOF
32032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32033 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32034 fi # test -n "$CONFIG_HEADERS"
32035
32036
32037 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
32038 shift
32039 for ac_tag
32040 do
32041 case $ac_tag in
32042 :[FHLC]) ac_mode=$ac_tag; continue;;
32043 esac
32044 case $ac_mode$ac_tag in
32045 :[FHL]*:*);;
32046 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32047 :[FH]-) ac_tag=-:-;;
32048 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32049 esac
32050 ac_save_IFS=$IFS
32051 IFS=:
32052 set x $ac_tag
32053 IFS=$ac_save_IFS
32054 shift
32055 ac_file=$1
32056 shift
32057
32058 case $ac_mode in
32059 :L) ac_source=$1;;
32060 :[FH])
32061 ac_file_inputs=
32062 for ac_f
32063 do
32064 case $ac_f in
32065 -) ac_f="$ac_tmp/stdin";;
32066 *) # Look for the file first in the build tree, then in the source tree
32067 # (if the path is not absolute). The absolute path cannot be DOS-style,
32068 # because $ac_f cannot contain `:'.
32069 test -f "$ac_f" ||
32070 case $ac_f in
32071 [\\/$]*) false;;
32072 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32073 esac ||
32074 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32075 esac
32076 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32077 as_fn_append ac_file_inputs " '$ac_f'"
32078 done
32079
32080 # Let's still pretend it is `configure' which instantiates (i.e., don't
32081 # use $as_me), people would be surprised to read:
32082 # /* config.h. Generated by config.status. */
32083 configure_input='Generated from '`
32084 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32085 `' by configure.'
32086 if test x"$ac_file" != x-; then
32087 configure_input="$ac_file. $configure_input"
32088 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32089 $as_echo "$as_me: creating $ac_file" >&6;}
32090 fi
32091 # Neutralize special characters interpreted by sed in replacement strings.
32092 case $configure_input in #(
32093 *\&* | *\|* | *\\* )
32094 ac_sed_conf_input=`$as_echo "$configure_input" |
32095 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32096 *) ac_sed_conf_input=$configure_input;;
32097 esac
32098
32099 case $ac_tag in
32100 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32102 esac
32103 ;;
32104 esac
32105
32106 ac_dir=`$as_dirname -- "$ac_file" ||
32107 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32108 X"$ac_file" : 'X\(//\)[^/]' \| \
32109 X"$ac_file" : 'X\(//\)$' \| \
32110 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32111 $as_echo X"$ac_file" |
32112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32113 s//\1/
32114 q
32115 }
32116 /^X\(\/\/\)[^/].*/{
32117 s//\1/
32118 q
32119 }
32120 /^X\(\/\/\)$/{
32121 s//\1/
32122 q
32123 }
32124 /^X\(\/\).*/{
32125 s//\1/
32126 q
32127 }
32128 s/.*/./; q'`
32129 as_dir="$ac_dir"; as_fn_mkdir_p
32130 ac_builddir=.
32131
32132 case "$ac_dir" in
32133 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32134 *)
32135 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32136 # A ".." for each directory in $ac_dir_suffix.
32137 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32138 case $ac_top_builddir_sub in
32139 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32140 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32141 esac ;;
32142 esac
32143 ac_abs_top_builddir=$ac_pwd
32144 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32145 # for backward compatibility:
32146 ac_top_builddir=$ac_top_build_prefix
32147
32148 case $srcdir in
32149 .) # We are building in place.
32150 ac_srcdir=.
32151 ac_top_srcdir=$ac_top_builddir_sub
32152 ac_abs_top_srcdir=$ac_pwd ;;
32153 [\\/]* | ?:[\\/]* ) # Absolute name.
32154 ac_srcdir=$srcdir$ac_dir_suffix;
32155 ac_top_srcdir=$srcdir
32156 ac_abs_top_srcdir=$srcdir ;;
32157 *) # Relative name.
32158 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32159 ac_top_srcdir=$ac_top_build_prefix$srcdir
32160 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32161 esac
32162 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32163
32164
32165 case $ac_mode in
32166 :F)
32167 #
32168 # CONFIG_FILE
32169 #
32170
32171 case $INSTALL in
32172 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32173 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32174 esac
32175 _ACEOF
32176
32177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32178 # If the template does not know about datarootdir, expand it.
32179 # FIXME: This hack should be removed a few years after 2.60.
32180 ac_datarootdir_hack=; ac_datarootdir_seen=
32181 ac_sed_dataroot='
32182 /datarootdir/ {
32183 p
32184 q
32185 }
32186 /@datadir@/p
32187 /@docdir@/p
32188 /@infodir@/p
32189 /@localedir@/p
32190 /@mandir@/p'
32191 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32192 *datarootdir*) ac_datarootdir_seen=yes;;
32193 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32195 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32196 _ACEOF
32197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32198 ac_datarootdir_hack='
32199 s&@datadir@&$datadir&g
32200 s&@docdir@&$docdir&g
32201 s&@infodir@&$infodir&g
32202 s&@localedir@&$localedir&g
32203 s&@mandir@&$mandir&g
32204 s&\\\${datarootdir}&$datarootdir&g' ;;
32205 esac
32206 _ACEOF
32207
32208 # Neutralize VPATH when `$srcdir' = `.'.
32209 # Shell code in configure.ac might set extrasub.
32210 # FIXME: do we really want to maintain this feature?
32211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32212 ac_sed_extra="$ac_vpsub
32213 $extrasub
32214 _ACEOF
32215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32216 :t
32217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32218 s|@configure_input@|$ac_sed_conf_input|;t t
32219 s&@top_builddir@&$ac_top_builddir_sub&;t t
32220 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32221 s&@srcdir@&$ac_srcdir&;t t
32222 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32223 s&@top_srcdir@&$ac_top_srcdir&;t t
32224 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32225 s&@builddir@&$ac_builddir&;t t
32226 s&@abs_builddir@&$ac_abs_builddir&;t t
32227 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32228 s&@INSTALL@&$ac_INSTALL&;t t
32229 $ac_datarootdir_hack
32230 "
32231 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32232 if $ac_cs_awk_getline; then
32233 $AWK -f "$ac_tmp/subs.awk"
32234 else
32235 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32236 fi \
32237 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32238
32239 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32240 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32241 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32242 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32244 which seems to be undefined. Please make sure it is defined" >&5
32245 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32246 which seems to be undefined. Please make sure it is defined" >&2;}
32247
32248 rm -f "$ac_tmp/stdin"
32249 case $ac_file in
32250 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32251 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32252 esac \
32253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32254 ;;
32255 :H)
32256 #
32257 # CONFIG_HEADER
32258 #
32259 if test x"$ac_file" != x-; then
32260 {
32261 $as_echo "/* $configure_input */" \
32262 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32263 } >"$ac_tmp/config.h" \
32264 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32265 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32266 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32267 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32268 else
32269 rm -f "$ac_file"
32270 mv "$ac_tmp/config.h" "$ac_file" \
32271 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32272 fi
32273 else
32274 $as_echo "/* $configure_input */" \
32275 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32276 || as_fn_error $? "could not create -" "$LINENO" 5
32277 fi
32278 ;;
32279 :L)
32280 #
32281 # CONFIG_LINK
32282 #
32283
32284 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
32285 :
32286 else
32287 # Prefer the file from the source tree if names are identical.
32288 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32289 ac_source=$srcdir/$ac_source
32290 fi
32291
32292 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32293 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32294
32295 if test ! -r "$ac_source"; then
32296 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32297 fi
32298 rm -f "$ac_file"
32299
32300 # Try a relative symlink, then a hard link, then a copy.
32301 case $ac_source in
32302 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32303 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32304 esac
32305 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32306 ln "$ac_source" "$ac_file" 2>/dev/null ||
32307 cp -p "$ac_source" "$ac_file" ||
32308 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32309 fi
32310 ;;
32311 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32312 $as_echo "$as_me: executing $ac_file commands" >&6;}
32313 ;;
32314 esac
32315
32316
32317 case $ac_file$ac_mode in
32318 "config.h":H) echo > stamp-h ;;
32319 "libtool":C)
32320
32321 # See if we are running on zsh, and set the options which allow our
32322 # commands through without removal of \ escapes.
32323 if test -n "${ZSH_VERSION+set}" ; then
32324 setopt NO_GLOB_SUBST
32325 fi
32326
32327 cfgfile="${ofile}T"
32328 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32329 $RM "$cfgfile"
32330
32331 cat <<_LT_EOF >> "$cfgfile"
32332 #! $SHELL
32333
32334 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32335 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32336 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32337 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32338 #
32339 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32340 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
32341 # Written by Gordon Matzigkeit, 1996
32342 #
32343 # This file is part of GNU Libtool.
32344 #
32345 # GNU Libtool is free software; you can redistribute it and/or
32346 # modify it under the terms of the GNU General Public License as
32347 # published by the Free Software Foundation; either version 2 of
32348 # the License, or (at your option) any later version.
32349 #
32350 # As a special exception to the GNU General Public License,
32351 # if you distribute this file as part of a program or library that
32352 # is built using GNU Libtool, you may include this file under the
32353 # same distribution terms that you use for the rest of that program.
32354 #
32355 # GNU Libtool is distributed in the hope that it will be useful,
32356 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32357 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32358 # GNU General Public License for more details.
32359 #
32360 # You should have received a copy of the GNU General Public License
32361 # along with GNU Libtool; see the file COPYING. If not, a copy
32362 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32363 # obtained by writing to the Free Software Foundation, Inc.,
32364 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32365
32366
32367 # The names of the tagged configurations supported by this script.
32368 available_tags="CXX "
32369
32370 # ### BEGIN LIBTOOL CONFIG
32371
32372 # Which release of libtool.m4 was used?
32373 macro_version=$macro_version
32374 macro_revision=$macro_revision
32375
32376 # Whether or not to build shared libraries.
32377 build_libtool_libs=$enable_shared
32378
32379 # Whether or not to build static libraries.
32380 build_old_libs=$enable_static
32381
32382 # What type of objects to build.
32383 pic_mode=$pic_mode
32384
32385 # Whether or not to optimize for fast installation.
32386 fast_install=$enable_fast_install
32387
32388 # Shell to use when invoking shell scripts.
32389 SHELL=$lt_SHELL
32390
32391 # An echo program that protects backslashes.
32392 ECHO=$lt_ECHO
32393
32394 # The host system.
32395 host_alias=$host_alias
32396 host=$host
32397 host_os=$host_os
32398
32399 # The build system.
32400 build_alias=$build_alias
32401 build=$build
32402 build_os=$build_os
32403
32404 # A sed program that does not truncate output.
32405 SED=$lt_SED
32406
32407 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32408 Xsed="\$SED -e 1s/^X//"
32409
32410 # A grep program that handles long lines.
32411 GREP=$lt_GREP
32412
32413 # An ERE matcher.
32414 EGREP=$lt_EGREP
32415
32416 # A literal string matcher.
32417 FGREP=$lt_FGREP
32418
32419 # A BSD- or MS-compatible name lister.
32420 NM=$lt_NM
32421
32422 # Whether we need soft or hard links.
32423 LN_S=$lt_LN_S
32424
32425 # What is the maximum length of a command?
32426 max_cmd_len=$max_cmd_len
32427
32428 # Object file suffix (normally "o").
32429 objext=$ac_objext
32430
32431 # Executable file suffix (normally "").
32432 exeext=$exeext
32433
32434 # whether the shell understands "unset".
32435 lt_unset=$lt_unset
32436
32437 # turn spaces into newlines.
32438 SP2NL=$lt_lt_SP2NL
32439
32440 # turn newlines into spaces.
32441 NL2SP=$lt_lt_NL2SP
32442
32443 # An object symbol dumper.
32444 OBJDUMP=$lt_OBJDUMP
32445
32446 # Method to check whether dependent libraries are shared objects.
32447 deplibs_check_method=$lt_deplibs_check_method
32448
32449 # Command to use when deplibs_check_method == "file_magic".
32450 file_magic_cmd=$lt_file_magic_cmd
32451
32452 # The archiver.
32453 AR=$lt_AR
32454 AR_FLAGS=$lt_AR_FLAGS
32455
32456 # A symbol stripping program.
32457 STRIP=$lt_STRIP
32458
32459 # Commands used to install an old-style archive.
32460 RANLIB=$lt_RANLIB
32461 old_postinstall_cmds=$lt_old_postinstall_cmds
32462 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32463
32464 # Whether to use a lock for old archive extraction.
32465 lock_old_archive_extraction=$lock_old_archive_extraction
32466
32467 # A C compiler.
32468 LTCC=$lt_CC
32469
32470 # LTCC compiler flags.
32471 LTCFLAGS=$lt_CFLAGS
32472
32473 # Take the output of nm and produce a listing of raw symbols and C names.
32474 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32475
32476 # Transform the output of nm in a proper C declaration.
32477 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32478
32479 # Transform the output of nm in a C name address pair.
32480 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32481
32482 # Transform the output of nm in a C name address pair when lib prefix is needed.
32483 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32484
32485 # The name of the directory that contains temporary libtool files.
32486 objdir=$objdir
32487
32488 # Used to examine libraries when file_magic_cmd begins with "file".
32489 MAGIC_CMD=$MAGIC_CMD
32490
32491 # Must we lock files when doing compilation?
32492 need_locks=$lt_need_locks
32493
32494 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32495 DSYMUTIL=$lt_DSYMUTIL
32496
32497 # Tool to change global to local symbols on Mac OS X.
32498 NMEDIT=$lt_NMEDIT
32499
32500 # Tool to manipulate fat objects and archives on Mac OS X.
32501 LIPO=$lt_LIPO
32502
32503 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32504 OTOOL=$lt_OTOOL
32505
32506 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32507 OTOOL64=$lt_OTOOL64
32508
32509 # Old archive suffix (normally "a").
32510 libext=$libext
32511
32512 # Shared library suffix (normally ".so").
32513 shrext_cmds=$lt_shrext_cmds
32514
32515 # The commands to extract the exported symbol list from a shared archive.
32516 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32517
32518 # Variables whose values should be saved in libtool wrapper scripts and
32519 # restored at link time.
32520 variables_saved_for_relink=$lt_variables_saved_for_relink
32521
32522 # Do we need the "lib" prefix for modules?
32523 need_lib_prefix=$need_lib_prefix
32524
32525 # Do we need a version for libraries?
32526 need_version=$need_version
32527
32528 # Library versioning type.
32529 version_type=$version_type
32530
32531 # Shared library runtime path variable.
32532 runpath_var=$runpath_var
32533
32534 # Shared library path variable.
32535 shlibpath_var=$shlibpath_var
32536
32537 # Is shlibpath searched before the hard-coded library search path?
32538 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32539
32540 # Format of library name prefix.
32541 libname_spec=$lt_libname_spec
32542
32543 # List of archive names. First name is the real one, the rest are links.
32544 # The last name is the one that the linker finds with -lNAME
32545 library_names_spec=$lt_library_names_spec
32546
32547 # The coded name of the library, if different from the real name.
32548 soname_spec=$lt_soname_spec
32549
32550 # Permission mode override for installation of shared libraries.
32551 install_override_mode=$lt_install_override_mode
32552
32553 # Command to use after installation of a shared archive.
32554 postinstall_cmds=$lt_postinstall_cmds
32555
32556 # Command to use after uninstallation of a shared archive.
32557 postuninstall_cmds=$lt_postuninstall_cmds
32558
32559 # Commands used to finish a libtool library installation in a directory.
32560 finish_cmds=$lt_finish_cmds
32561
32562 # As "finish_cmds", except a single script fragment to be evaled but
32563 # not shown.
32564 finish_eval=$lt_finish_eval
32565
32566 # Whether we should hardcode library paths into libraries.
32567 hardcode_into_libs=$hardcode_into_libs
32568
32569 # Compile-time system search path for libraries.
32570 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32571
32572 # Run-time system search path for libraries.
32573 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32574
32575 # Whether dlopen is supported.
32576 dlopen_support=$enable_dlopen
32577
32578 # Whether dlopen of programs is supported.
32579 dlopen_self=$enable_dlopen_self
32580
32581 # Whether dlopen of statically linked programs is supported.
32582 dlopen_self_static=$enable_dlopen_self_static
32583
32584 # Commands to strip libraries.
32585 old_striplib=$lt_old_striplib
32586 striplib=$lt_striplib
32587
32588
32589 # The linker used to build libraries.
32590 LD=$lt_LD
32591
32592 # How to create reloadable object files.
32593 reload_flag=$lt_reload_flag
32594 reload_cmds=$lt_reload_cmds
32595
32596 # Commands used to build an old-style archive.
32597 old_archive_cmds=$lt_old_archive_cmds
32598
32599 # A language specific compiler.
32600 CC=$lt_compiler
32601
32602 # Is the compiler the GNU compiler?
32603 with_gcc=$GCC
32604
32605 # Compiler flag to turn off builtin functions.
32606 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32607
32608 # How to pass a linker flag through the compiler.
32609 wl=$lt_lt_prog_compiler_wl
32610
32611 # Additional compiler flags for building library objects.
32612 pic_flag=$lt_lt_prog_compiler_pic
32613
32614 # Compiler flag to prevent dynamic linking.
32615 link_static_flag=$lt_lt_prog_compiler_static
32616
32617 # Does compiler simultaneously support -c and -o options?
32618 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32619
32620 # Whether or not to add -lc for building shared libraries.
32621 build_libtool_need_lc=$archive_cmds_need_lc
32622
32623 # Whether or not to disallow shared libs when runtime libs are static.
32624 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32625
32626 # Compiler flag to allow reflexive dlopens.
32627 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32628
32629 # Compiler flag to generate shared objects directly from archives.
32630 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32631
32632 # Whether the compiler copes with passing no objects directly.
32633 compiler_needs_object=$lt_compiler_needs_object
32634
32635 # Create an old-style archive from a shared archive.
32636 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32637
32638 # Create a temporary old-style archive to link instead of a shared archive.
32639 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32640
32641 # Commands used to build a shared archive.
32642 archive_cmds=$lt_archive_cmds
32643 archive_expsym_cmds=$lt_archive_expsym_cmds
32644
32645 # Commands used to build a loadable module if different from building
32646 # a shared archive.
32647 module_cmds=$lt_module_cmds
32648 module_expsym_cmds=$lt_module_expsym_cmds
32649
32650 # Whether we are building with GNU ld or not.
32651 with_gnu_ld=$lt_with_gnu_ld
32652
32653 # Flag that allows shared libraries with undefined symbols to be built.
32654 allow_undefined_flag=$lt_allow_undefined_flag
32655
32656 # Flag that enforces no undefined symbols.
32657 no_undefined_flag=$lt_no_undefined_flag
32658
32659 # Flag to hardcode \$libdir into a binary during linking.
32660 # This must work even if \$libdir does not exist
32661 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32662
32663 # If ld is used when linking, flag to hardcode \$libdir into a binary
32664 # during linking. This must work even if \$libdir does not exist.
32665 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32666
32667 # Whether we need a single "-rpath" flag with a separated argument.
32668 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32669
32670 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32671 # DIR into the resulting binary.
32672 hardcode_direct=$hardcode_direct
32673
32674 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32675 # DIR into the resulting binary and the resulting library dependency is
32676 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32677 # library is relocated.
32678 hardcode_direct_absolute=$hardcode_direct_absolute
32679
32680 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32681 # into the resulting binary.
32682 hardcode_minus_L=$hardcode_minus_L
32683
32684 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32685 # into the resulting binary.
32686 hardcode_shlibpath_var=$hardcode_shlibpath_var
32687
32688 # Set to "yes" if building a shared library automatically hardcodes DIR
32689 # into the library and all subsequent libraries and executables linked
32690 # against it.
32691 hardcode_automatic=$hardcode_automatic
32692
32693 # Set to yes if linker adds runtime paths of dependent libraries
32694 # to runtime path list.
32695 inherit_rpath=$inherit_rpath
32696
32697 # Whether libtool must link a program against all its dependency libraries.
32698 link_all_deplibs=$link_all_deplibs
32699
32700 # Fix the shell variable \$srcfile for the compiler.
32701 fix_srcfile_path=$lt_fix_srcfile_path
32702
32703 # Set to "yes" if exported symbols are required.
32704 always_export_symbols=$always_export_symbols
32705
32706 # The commands to list exported symbols.
32707 export_symbols_cmds=$lt_export_symbols_cmds
32708
32709 # Symbols that should not be listed in the preloaded symbols.
32710 exclude_expsyms=$lt_exclude_expsyms
32711
32712 # Symbols that must always be exported.
32713 include_expsyms=$lt_include_expsyms
32714
32715 # Commands necessary for linking programs (against libraries) with templates.
32716 prelink_cmds=$lt_prelink_cmds
32717
32718 # Specify filename containing input files.
32719 file_list_spec=$lt_file_list_spec
32720
32721 # How to hardcode a shared library path into an executable.
32722 hardcode_action=$hardcode_action
32723
32724 # The directories searched by this compiler when creating a shared library.
32725 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32726
32727 # Dependencies to place before and after the objects being linked to
32728 # create a shared library.
32729 predep_objects=$lt_predep_objects
32730 postdep_objects=$lt_postdep_objects
32731 predeps=$lt_predeps
32732 postdeps=$lt_postdeps
32733
32734 # The library search path used internally by the compiler when linking
32735 # a shared library.
32736 compiler_lib_search_path=$lt_compiler_lib_search_path
32737
32738 # ### END LIBTOOL CONFIG
32739
32740 _LT_EOF
32741
32742 case $host_os in
32743 aix3*)
32744 cat <<\_LT_EOF >> "$cfgfile"
32745 # AIX sometimes has problems with the GCC collect2 program. For some
32746 # reason, if we set the COLLECT_NAMES environment variable, the problems
32747 # vanish in a puff of smoke.
32748 if test "X${COLLECT_NAMES+set}" != Xset; then
32749 COLLECT_NAMES=
32750 export COLLECT_NAMES
32751 fi
32752 _LT_EOF
32753 ;;
32754 esac
32755
32756
32757 ltmain="$ac_aux_dir/ltmain.sh"
32758
32759
32760 # We use sed instead of cat because bash on DJGPP gets confused if
32761 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32762 # text mode, it properly converts lines to CR/LF. This bash problem
32763 # is reportedly fixed, but why not run on old versions too?
32764 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32765 || (rm -f "$cfgfile"; exit 1)
32766
32767 case $xsi_shell in
32768 yes)
32769 cat << \_LT_EOF >> "$cfgfile"
32770
32771 # func_dirname file append nondir_replacement
32772 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32773 # otherwise set result to NONDIR_REPLACEMENT.
32774 func_dirname ()
32775 {
32776 case ${1} in
32777 */*) func_dirname_result="${1%/*}${2}" ;;
32778 * ) func_dirname_result="${3}" ;;
32779 esac
32780 }
32781
32782 # func_basename file
32783 func_basename ()
32784 {
32785 func_basename_result="${1##*/}"
32786 }
32787
32788 # func_dirname_and_basename file append nondir_replacement
32789 # perform func_basename and func_dirname in a single function
32790 # call:
32791 # dirname: Compute the dirname of FILE. If nonempty,
32792 # add APPEND to the result, otherwise set result
32793 # to NONDIR_REPLACEMENT.
32794 # value returned in "$func_dirname_result"
32795 # basename: Compute filename of FILE.
32796 # value retuned in "$func_basename_result"
32797 # Implementation must be kept synchronized with func_dirname
32798 # and func_basename. For efficiency, we do not delegate to
32799 # those functions but instead duplicate the functionality here.
32800 func_dirname_and_basename ()
32801 {
32802 case ${1} in
32803 */*) func_dirname_result="${1%/*}${2}" ;;
32804 * ) func_dirname_result="${3}" ;;
32805 esac
32806 func_basename_result="${1##*/}"
32807 }
32808
32809 # func_stripname prefix suffix name
32810 # strip PREFIX and SUFFIX off of NAME.
32811 # PREFIX and SUFFIX must not contain globbing or regex special
32812 # characters, hashes, percent signs, but SUFFIX may contain a leading
32813 # dot (in which case that matches only a dot).
32814 func_stripname ()
32815 {
32816 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32817 # positional parameters, so assign one to ordinary parameter first.
32818 func_stripname_result=${3}
32819 func_stripname_result=${func_stripname_result#"${1}"}
32820 func_stripname_result=${func_stripname_result%"${2}"}
32821 }
32822
32823 # func_opt_split
32824 func_opt_split ()
32825 {
32826 func_opt_split_opt=${1%%=*}
32827 func_opt_split_arg=${1#*=}
32828 }
32829
32830 # func_lo2o object
32831 func_lo2o ()
32832 {
32833 case ${1} in
32834 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32835 *) func_lo2o_result=${1} ;;
32836 esac
32837 }
32838
32839 # func_xform libobj-or-source
32840 func_xform ()
32841 {
32842 func_xform_result=${1%.*}.lo
32843 }
32844
32845 # func_arith arithmetic-term...
32846 func_arith ()
32847 {
32848 func_arith_result=$(( $* ))
32849 }
32850
32851 # func_len string
32852 # STRING may not start with a hyphen.
32853 func_len ()
32854 {
32855 func_len_result=${#1}
32856 }
32857
32858 _LT_EOF
32859 ;;
32860 *) # Bourne compatible functions.
32861 cat << \_LT_EOF >> "$cfgfile"
32862
32863 # func_dirname file append nondir_replacement
32864 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32865 # otherwise set result to NONDIR_REPLACEMENT.
32866 func_dirname ()
32867 {
32868 # Extract subdirectory from the argument.
32869 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
32870 if test "X$func_dirname_result" = "X${1}"; then
32871 func_dirname_result="${3}"
32872 else
32873 func_dirname_result="$func_dirname_result${2}"
32874 fi
32875 }
32876
32877 # func_basename file
32878 func_basename ()
32879 {
32880 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
32881 }
32882
32883
32884 # func_stripname prefix suffix name
32885 # strip PREFIX and SUFFIX off of NAME.
32886 # PREFIX and SUFFIX must not contain globbing or regex special
32887 # characters, hashes, percent signs, but SUFFIX may contain a leading
32888 # dot (in which case that matches only a dot).
32889 # func_strip_suffix prefix name
32890 func_stripname ()
32891 {
32892 case ${2} in
32893 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
32894 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
32895 esac
32896 }
32897
32898 # sed scripts:
32899 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32900 my_sed_long_arg='1s/^-[^=]*=//'
32901
32902 # func_opt_split
32903 func_opt_split ()
32904 {
32905 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
32906 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
32907 }
32908
32909 # func_lo2o object
32910 func_lo2o ()
32911 {
32912 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
32913 }
32914
32915 # func_xform libobj-or-source
32916 func_xform ()
32917 {
32918 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
32919 }
32920
32921 # func_arith arithmetic-term...
32922 func_arith ()
32923 {
32924 func_arith_result=`expr "$@"`
32925 }
32926
32927 # func_len string
32928 # STRING may not start with a hyphen.
32929 func_len ()
32930 {
32931 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32932 }
32933
32934 _LT_EOF
32935 esac
32936
32937 case $lt_shell_append in
32938 yes)
32939 cat << \_LT_EOF >> "$cfgfile"
32940
32941 # func_append var value
32942 # Append VALUE to the end of shell variable VAR.
32943 func_append ()
32944 {
32945 eval "$1+=\$2"
32946 }
32947 _LT_EOF
32948 ;;
32949 *)
32950 cat << \_LT_EOF >> "$cfgfile"
32951
32952 # func_append var value
32953 # Append VALUE to the end of shell variable VAR.
32954 func_append ()
32955 {
32956 eval "$1=\$$1\$2"
32957 }
32958
32959 _LT_EOF
32960 ;;
32961 esac
32962
32963
32964 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32965 || (rm -f "$cfgfile"; exit 1)
32966
32967 mv -f "$cfgfile" "$ofile" ||
32968 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32969 chmod +x "$ofile"
32970
32971
32972 cat <<_LT_EOF >> "$ofile"
32973
32974 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32975
32976 # The linker used to build libraries.
32977 LD=$lt_LD_CXX
32978
32979 # How to create reloadable object files.
32980 reload_flag=$lt_reload_flag_CXX
32981 reload_cmds=$lt_reload_cmds_CXX
32982
32983 # Commands used to build an old-style archive.
32984 old_archive_cmds=$lt_old_archive_cmds_CXX
32985
32986 # A language specific compiler.
32987 CC=$lt_compiler_CXX
32988
32989 # Is the compiler the GNU compiler?
32990 with_gcc=$GCC_CXX
32991
32992 # Compiler flag to turn off builtin functions.
32993 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32994
32995 # How to pass a linker flag through the compiler.
32996 wl=$lt_lt_prog_compiler_wl_CXX
32997
32998 # Additional compiler flags for building library objects.
32999 pic_flag=$lt_lt_prog_compiler_pic_CXX
33000
33001 # Compiler flag to prevent dynamic linking.
33002 link_static_flag=$lt_lt_prog_compiler_static_CXX
33003
33004 # Does compiler simultaneously support -c and -o options?
33005 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33006
33007 # Whether or not to add -lc for building shared libraries.
33008 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33009
33010 # Whether or not to disallow shared libs when runtime libs are static.
33011 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33012
33013 # Compiler flag to allow reflexive dlopens.
33014 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33015
33016 # Compiler flag to generate shared objects directly from archives.
33017 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33018
33019 # Whether the compiler copes with passing no objects directly.
33020 compiler_needs_object=$lt_compiler_needs_object_CXX
33021
33022 # Create an old-style archive from a shared archive.
33023 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33024
33025 # Create a temporary old-style archive to link instead of a shared archive.
33026 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33027
33028 # Commands used to build a shared archive.
33029 archive_cmds=$lt_archive_cmds_CXX
33030 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33031
33032 # Commands used to build a loadable module if different from building
33033 # a shared archive.
33034 module_cmds=$lt_module_cmds_CXX
33035 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33036
33037 # Whether we are building with GNU ld or not.
33038 with_gnu_ld=$lt_with_gnu_ld_CXX
33039
33040 # Flag that allows shared libraries with undefined symbols to be built.
33041 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33042
33043 # Flag that enforces no undefined symbols.
33044 no_undefined_flag=$lt_no_undefined_flag_CXX
33045
33046 # Flag to hardcode \$libdir into a binary during linking.
33047 # This must work even if \$libdir does not exist
33048 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33049
33050 # If ld is used when linking, flag to hardcode \$libdir into a binary
33051 # during linking. This must work even if \$libdir does not exist.
33052 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33053
33054 # Whether we need a single "-rpath" flag with a separated argument.
33055 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33056
33057 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33058 # DIR into the resulting binary.
33059 hardcode_direct=$hardcode_direct_CXX
33060
33061 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33062 # DIR into the resulting binary and the resulting library dependency is
33063 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33064 # library is relocated.
33065 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33066
33067 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33068 # into the resulting binary.
33069 hardcode_minus_L=$hardcode_minus_L_CXX
33070
33071 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33072 # into the resulting binary.
33073 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33074
33075 # Set to "yes" if building a shared library automatically hardcodes DIR
33076 # into the library and all subsequent libraries and executables linked
33077 # against it.
33078 hardcode_automatic=$hardcode_automatic_CXX
33079
33080 # Set to yes if linker adds runtime paths of dependent libraries
33081 # to runtime path list.
33082 inherit_rpath=$inherit_rpath_CXX
33083
33084 # Whether libtool must link a program against all its dependency libraries.
33085 link_all_deplibs=$link_all_deplibs_CXX
33086
33087 # Fix the shell variable \$srcfile for the compiler.
33088 fix_srcfile_path=$lt_fix_srcfile_path_CXX
33089
33090 # Set to "yes" if exported symbols are required.
33091 always_export_symbols=$always_export_symbols_CXX
33092
33093 # The commands to list exported symbols.
33094 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33095
33096 # Symbols that should not be listed in the preloaded symbols.
33097 exclude_expsyms=$lt_exclude_expsyms_CXX
33098
33099 # Symbols that must always be exported.
33100 include_expsyms=$lt_include_expsyms_CXX
33101
33102 # Commands necessary for linking programs (against libraries) with templates.
33103 prelink_cmds=$lt_prelink_cmds_CXX
33104
33105 # Specify filename containing input files.
33106 file_list_spec=$lt_file_list_spec_CXX
33107
33108 # How to hardcode a shared library path into an executable.
33109 hardcode_action=$hardcode_action_CXX
33110
33111 # The directories searched by this compiler when creating a shared library.
33112 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33113
33114 # Dependencies to place before and after the objects being linked to
33115 # create a shared library.
33116 predep_objects=$lt_predep_objects_CXX
33117 postdep_objects=$lt_postdep_objects_CXX
33118 predeps=$lt_predeps_CXX
33119 postdeps=$lt_postdeps_CXX
33120
33121 # The library search path used internally by the compiler when linking
33122 # a shared library.
33123 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33124
33125 # ### END LIBTOOL TAG CONFIG: CXX
33126 _LT_EOF
33127
33128 ;;
33129 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33130 "nm.h":L) echo > stamp-nmh ;;
33131 "gcore":F) chmod +x gcore ;;
33132
33133 esac
33134 done # for ac_tag
33135
33136
33137 as_fn_exit 0
33138 _ACEOF
33139 ac_clean_files=$ac_clean_files_save
33140
33141 test $ac_write_fail = 0 ||
33142 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33143
33144
33145 # configure is writing to config.log, and then calls config.status.
33146 # config.status does its own redirection, appending to config.log.
33147 # Unfortunately, on DOS this fails, as config.log is still kept open
33148 # by configure, so config.status won't be able to write to it; its
33149 # output is simply discarded. So we exec the FD to /dev/null,
33150 # effectively closing config.log, so it can be properly (re)opened and
33151 # appended to by config.status. When coming back to configure, we
33152 # need to make the FD available again.
33153 if test "$no_create" != yes; then
33154 ac_cs_success=:
33155 ac_config_status_args=
33156 test "$silent" = yes &&
33157 ac_config_status_args="$ac_config_status_args --quiet"
33158 exec 5>/dev/null
33159 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33160 exec 5>>config.log
33161 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33162 # would make configure fail if this is the last instruction.
33163 $ac_cs_success || as_fn_exit 1
33164 fi
33165
33166 #
33167 # CONFIG_SUBDIRS section.
33168 #
33169 if test "$no_recursion" != yes; then
33170
33171 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
33172 # so they do not pile up.
33173 ac_sub_configure_args=
33174 ac_prev=
33175 eval "set x $ac_configure_args"
33176 shift
33177 for ac_arg
33178 do
33179 if test -n "$ac_prev"; then
33180 ac_prev=
33181 continue
33182 fi
33183 case $ac_arg in
33184 -cache-file | --cache-file | --cache-fil | --cache-fi \
33185 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33186 ac_prev=cache_file ;;
33187 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33188 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33189 | --c=*)
33190 ;;
33191 --config-cache | -C)
33192 ;;
33193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33194 ac_prev=srcdir ;;
33195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33196 ;;
33197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33198 ac_prev=prefix ;;
33199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33200 ;;
33201 --disable-option-checking)
33202 ;;
33203 *)
33204 case $ac_arg in
33205 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33206 esac
33207 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
33208 esac
33209 done
33210
33211 # Always prepend --prefix to ensure using the same prefix
33212 # in subdir configurations.
33213 ac_arg="--prefix=$prefix"
33214 case $ac_arg in
33215 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33216 esac
33217 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33218
33219 # Pass --silent
33220 if test "$silent" = yes; then
33221 ac_sub_configure_args="--silent $ac_sub_configure_args"
33222 fi
33223
33224 # Always prepend --disable-option-checking to silence warnings, since
33225 # different subdirs can have different --enable and --with options.
33226 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
33227
33228 ac_popdir=`pwd`
33229 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33230
33231 # Do not complain, so a configure script can configure whichever
33232 # parts of a large source tree are present.
33233 test -d "$srcdir/$ac_dir" || continue
33234
33235 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33236 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
33237 $as_echo "$ac_msg" >&6
33238 as_dir="$ac_dir"; as_fn_mkdir_p
33239 ac_builddir=.
33240
33241 case "$ac_dir" in
33242 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33243 *)
33244 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33245 # A ".." for each directory in $ac_dir_suffix.
33246 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33247 case $ac_top_builddir_sub in
33248 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33249 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33250 esac ;;
33251 esac
33252 ac_abs_top_builddir=$ac_pwd
33253 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33254 # for backward compatibility:
33255 ac_top_builddir=$ac_top_build_prefix
33256
33257 case $srcdir in
33258 .) # We are building in place.
33259 ac_srcdir=.
33260 ac_top_srcdir=$ac_top_builddir_sub
33261 ac_abs_top_srcdir=$ac_pwd ;;
33262 [\\/]* | ?:[\\/]* ) # Absolute name.
33263 ac_srcdir=$srcdir$ac_dir_suffix;
33264 ac_top_srcdir=$srcdir
33265 ac_abs_top_srcdir=$srcdir ;;
33266 *) # Relative name.
33267 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33268 ac_top_srcdir=$ac_top_build_prefix$srcdir
33269 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33270 esac
33271 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33272
33273
33274 cd "$ac_dir"
33275
33276 # Check for guested configure; otherwise get Cygnus style configure.
33277 if test -f "$ac_srcdir/configure.gnu"; then
33278 ac_sub_configure=$ac_srcdir/configure.gnu
33279 elif test -f "$ac_srcdir/configure"; then
33280 ac_sub_configure=$ac_srcdir/configure
33281 elif test -f "$ac_srcdir/configure.in"; then
33282 # This should be Cygnus configure.
33283 ac_sub_configure=$ac_aux_dir/configure
33284 else
33285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
33286 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33287 ac_sub_configure=
33288 fi
33289
33290 # The recursion is here.
33291 if test -n "$ac_sub_configure"; then
33292 # Make the cache file name correct relative to the subdirectory.
33293 case $cache_file in
33294 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33295 *) # Relative name.
33296 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33297 esac
33298
33299 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33300 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33301 # The eval makes quoting arguments work.
33302 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33303 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33304 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
33305 fi
33306
33307 cd "$ac_popdir"
33308 done
33309 fi
33310 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33312 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33313 fi
33314