Remove path name from test case
[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_CXX17
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++17 compiler. Check if one is available, and if
16495 # necessary, set CXX_DIALECT to some -std=xxx switch.
16496 ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_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
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5
16506 $as_echo_n "checking whether $CXX supports C++17 features by default... " >&6; }
16507 if ${ax_cv_cxx_compile_cxx17+:} false; then :
16508 $as_echo_n "(cached) " >&6
16509 else
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16512
16513
16514 // If the compiler admits that it is not ready for C++11, why torture it?
16515 // Hopefully, this will speed up the test.
16516
16517 #ifndef __cplusplus
16518
16519 #error "This is not a C++ compiler"
16520
16521 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
16522 // only set it correctly if /Zc:__cplusplus is specified as well as a
16523 // /std:c++NN switch:
16524 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
16525 #elif __cplusplus < 201103L && !defined _MSC_VER
16526
16527 #error "This is not a C++11 compiler"
16528
16529 #else
16530
16531 namespace cxx11
16532 {
16533
16534 namespace test_static_assert
16535 {
16536
16537 template <typename T>
16538 struct check
16539 {
16540 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16541 };
16542
16543 }
16544
16545 namespace test_final_override
16546 {
16547
16548 struct Base
16549 {
16550 virtual ~Base() {}
16551 virtual void f() {}
16552 };
16553
16554 struct Derived : public Base
16555 {
16556 virtual ~Derived() override {}
16557 virtual void f() override {}
16558 };
16559
16560 }
16561
16562 namespace test_double_right_angle_brackets
16563 {
16564
16565 template < typename T >
16566 struct check {};
16567
16568 typedef check<void> single_type;
16569 typedef check<check<void>> double_type;
16570 typedef check<check<check<void>>> triple_type;
16571 typedef check<check<check<check<void>>>> quadruple_type;
16572
16573 }
16574
16575 namespace test_decltype
16576 {
16577
16578 int
16579 f()
16580 {
16581 int a = 1;
16582 decltype(a) b = 2;
16583 return a + b;
16584 }
16585
16586 }
16587
16588 namespace test_type_deduction
16589 {
16590
16591 template < typename T1, typename T2 >
16592 struct is_same
16593 {
16594 static const bool value = false;
16595 };
16596
16597 template < typename T >
16598 struct is_same<T, T>
16599 {
16600 static const bool value = true;
16601 };
16602
16603 template < typename T1, typename T2 >
16604 auto
16605 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16606 {
16607 return a1 + a2;
16608 }
16609
16610 int
16611 test(const int c, volatile int v)
16612 {
16613 static_assert(is_same<int, decltype(0)>::value == true, "");
16614 static_assert(is_same<int, decltype(c)>::value == false, "");
16615 static_assert(is_same<int, decltype(v)>::value == false, "");
16616 auto ac = c;
16617 auto av = v;
16618 auto sumi = ac + av + 'x';
16619 auto sumf = ac + av + 1.0;
16620 static_assert(is_same<int, decltype(ac)>::value == true, "");
16621 static_assert(is_same<int, decltype(av)>::value == true, "");
16622 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16623 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16624 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16625 return (sumf > 0.0) ? sumi : add(c, v);
16626 }
16627
16628 }
16629
16630 namespace test_noexcept
16631 {
16632
16633 int f() { return 0; }
16634 int g() noexcept { return 0; }
16635
16636 static_assert(noexcept(f()) == false, "");
16637 static_assert(noexcept(g()) == true, "");
16638
16639 }
16640
16641 namespace test_constexpr
16642 {
16643
16644 template < typename CharT >
16645 unsigned long constexpr
16646 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16647 {
16648 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16649 }
16650
16651 template < typename CharT >
16652 unsigned long constexpr
16653 strlen_c(const CharT *const s) noexcept
16654 {
16655 return strlen_c_r(s, 0UL);
16656 }
16657
16658 static_assert(strlen_c("") == 0UL, "");
16659 static_assert(strlen_c("1") == 1UL, "");
16660 static_assert(strlen_c("example") == 7UL, "");
16661 static_assert(strlen_c("another\0example") == 7UL, "");
16662
16663 }
16664
16665 namespace test_rvalue_references
16666 {
16667
16668 template < int N >
16669 struct answer
16670 {
16671 static constexpr int value = N;
16672 };
16673
16674 answer<1> f(int&) { return answer<1>(); }
16675 answer<2> f(const int&) { return answer<2>(); }
16676 answer<3> f(int&&) { return answer<3>(); }
16677
16678 void
16679 test()
16680 {
16681 int i = 0;
16682 const int c = 0;
16683 static_assert(decltype(f(i))::value == 1, "");
16684 static_assert(decltype(f(c))::value == 2, "");
16685 static_assert(decltype(f(0))::value == 3, "");
16686 }
16687
16688 }
16689
16690 namespace test_uniform_initialization
16691 {
16692
16693 struct test
16694 {
16695 static const int zero {};
16696 static const int one {1};
16697 };
16698
16699 static_assert(test::zero == 0, "");
16700 static_assert(test::one == 1, "");
16701
16702 }
16703
16704 namespace test_lambdas
16705 {
16706
16707 void
16708 test1()
16709 {
16710 auto lambda1 = [](){};
16711 auto lambda2 = lambda1;
16712 lambda1();
16713 lambda2();
16714 }
16715
16716 int
16717 test2()
16718 {
16719 auto a = [](int i, int j){ return i + j; }(1, 2);
16720 auto b = []() -> int { return '0'; }();
16721 auto c = [=](){ return a + b; }();
16722 auto d = [&](){ return c; }();
16723 auto e = [a, &b](int x) mutable {
16724 const auto identity = [](int y){ return y; };
16725 for (auto i = 0; i < a; ++i)
16726 a += b--;
16727 return x + identity(a + b);
16728 }(0);
16729 return a + b + c + d + e;
16730 }
16731
16732 int
16733 test3()
16734 {
16735 const auto nullary = [](){ return 0; };
16736 const auto unary = [](int x){ return x; };
16737 using nullary_t = decltype(nullary);
16738 using unary_t = decltype(unary);
16739 const auto higher1st = [](nullary_t f){ return f(); };
16740 const auto higher2nd = [unary](nullary_t f1){
16741 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16742 };
16743 return higher1st(nullary) + higher2nd(nullary)(unary);
16744 }
16745
16746 }
16747
16748 namespace test_variadic_templates
16749 {
16750
16751 template <int...>
16752 struct sum;
16753
16754 template <int N0, int... N1toN>
16755 struct sum<N0, N1toN...>
16756 {
16757 static constexpr auto value = N0 + sum<N1toN...>::value;
16758 };
16759
16760 template <>
16761 struct sum<>
16762 {
16763 static constexpr auto value = 0;
16764 };
16765
16766 static_assert(sum<>::value == 0, "");
16767 static_assert(sum<1>::value == 1, "");
16768 static_assert(sum<23>::value == 23, "");
16769 static_assert(sum<1, 2>::value == 3, "");
16770 static_assert(sum<5, 5, 11>::value == 21, "");
16771 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
16772
16773 }
16774
16775 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
16776 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
16777 // because of this.
16778 namespace test_template_alias_sfinae
16779 {
16780
16781 struct foo {};
16782
16783 template<typename T>
16784 using member = typename T::member_type;
16785
16786 template<typename T>
16787 void func(...) {}
16788
16789 template<typename T>
16790 void func(member<T>*) {}
16791
16792 void test();
16793
16794 void test() { func<foo>(0); }
16795
16796 }
16797
16798 } // namespace cxx11
16799
16800 #endif // __cplusplus >= 201103L
16801
16802
16803
16804
16805 // If the compiler admits that it is not ready for C++14, why torture it?
16806 // Hopefully, this will speed up the test.
16807
16808 #ifndef __cplusplus
16809
16810 #error "This is not a C++ compiler"
16811
16812 #elif __cplusplus < 201402L && !defined _MSC_VER
16813
16814 #error "This is not a C++14 compiler"
16815
16816 #else
16817
16818 namespace cxx14
16819 {
16820
16821 namespace test_polymorphic_lambdas
16822 {
16823
16824 int
16825 test()
16826 {
16827 const auto lambda = [](auto&&... args){
16828 const auto istiny = [](auto x){
16829 return (sizeof(x) == 1UL) ? 1 : 0;
16830 };
16831 const int aretiny[] = { istiny(args)... };
16832 return aretiny[0];
16833 };
16834 return lambda(1, 1L, 1.0f, '1');
16835 }
16836
16837 }
16838
16839 namespace test_binary_literals
16840 {
16841
16842 constexpr auto ivii = 0b0000000000101010;
16843 static_assert(ivii == 42, "wrong value");
16844
16845 }
16846
16847 namespace test_generalized_constexpr
16848 {
16849
16850 template < typename CharT >
16851 constexpr unsigned long
16852 strlen_c(const CharT *const s) noexcept
16853 {
16854 auto length = 0UL;
16855 for (auto p = s; *p; ++p)
16856 ++length;
16857 return length;
16858 }
16859
16860 static_assert(strlen_c("") == 0UL, "");
16861 static_assert(strlen_c("x") == 1UL, "");
16862 static_assert(strlen_c("test") == 4UL, "");
16863 static_assert(strlen_c("another\0test") == 7UL, "");
16864
16865 }
16866
16867 namespace test_lambda_init_capture
16868 {
16869
16870 int
16871 test()
16872 {
16873 auto x = 0;
16874 const auto lambda1 = [a = x](int b){ return a + b; };
16875 const auto lambda2 = [a = lambda1(x)](){ return a; };
16876 return lambda2();
16877 }
16878
16879 }
16880
16881 namespace test_digit_separators
16882 {
16883
16884 constexpr auto ten_million = 100'000'000;
16885 static_assert(ten_million == 100000000, "");
16886
16887 }
16888
16889 namespace test_return_type_deduction
16890 {
16891
16892 auto f(int& x) { return x; }
16893 decltype(auto) g(int& x) { return x; }
16894
16895 template < typename T1, typename T2 >
16896 struct is_same
16897 {
16898 static constexpr auto value = false;
16899 };
16900
16901 template < typename T >
16902 struct is_same<T, T>
16903 {
16904 static constexpr auto value = true;
16905 };
16906
16907 int
16908 test()
16909 {
16910 auto x = 0;
16911 static_assert(is_same<int, decltype(f(x))>::value, "");
16912 static_assert(is_same<int&, decltype(g(x))>::value, "");
16913 return x;
16914 }
16915
16916 }
16917
16918 } // namespace cxx14
16919
16920 #endif // __cplusplus >= 201402L
16921
16922
16923
16924
16925 // If the compiler admits that it is not ready for C++17, why torture it?
16926 // Hopefully, this will speed up the test.
16927
16928 #ifndef __cplusplus
16929
16930 #error "This is not a C++ compiler"
16931
16932 #elif __cplusplus < 201703L && !defined _MSC_VER
16933
16934 #error "This is not a C++17 compiler"
16935
16936 #else
16937
16938 #include <initializer_list>
16939 #include <utility>
16940 #include <type_traits>
16941
16942 namespace cxx17
16943 {
16944
16945 namespace test_constexpr_lambdas
16946 {
16947
16948 constexpr int foo = [](){return 42;}();
16949
16950 }
16951
16952 namespace test::nested_namespace::definitions
16953 {
16954
16955 }
16956
16957 namespace test_fold_expression
16958 {
16959
16960 template<typename... Args>
16961 int multiply(Args... args)
16962 {
16963 return (args * ... * 1);
16964 }
16965
16966 template<typename... Args>
16967 bool all(Args... args)
16968 {
16969 return (args && ...);
16970 }
16971
16972 }
16973
16974 namespace test_extended_static_assert
16975 {
16976
16977 static_assert (true);
16978
16979 }
16980
16981 namespace test_auto_brace_init_list
16982 {
16983
16984 auto foo = {5};
16985 auto bar {5};
16986
16987 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
16988 static_assert(std::is_same<int, decltype(bar)>::value);
16989 }
16990
16991 namespace test_typename_in_template_template_parameter
16992 {
16993
16994 template<template<typename> typename X> struct D;
16995
16996 }
16997
16998 namespace test_fallthrough_nodiscard_maybe_unused_attributes
16999 {
17000
17001 int f1()
17002 {
17003 return 42;
17004 }
17005
17006 [[nodiscard]] int f2()
17007 {
17008 [[maybe_unused]] auto unused = f1();
17009
17010 switch (f1())
17011 {
17012 case 17:
17013 f1();
17014 [[fallthrough]];
17015 case 42:
17016 f1();
17017 }
17018 return f1();
17019 }
17020
17021 }
17022
17023 namespace test_extended_aggregate_initialization
17024 {
17025
17026 struct base1
17027 {
17028 int b1, b2 = 42;
17029 };
17030
17031 struct base2
17032 {
17033 base2() {
17034 b3 = 42;
17035 }
17036 int b3;
17037 };
17038
17039 struct derived : base1, base2
17040 {
17041 int d;
17042 };
17043
17044 derived d1 {{1, 2}, {}, 4}; // full initialization
17045 derived d2 {{}, {}, 4}; // value-initialized bases
17046
17047 }
17048
17049 namespace test_general_range_based_for_loop
17050 {
17051
17052 struct iter
17053 {
17054 int i;
17055
17056 int& operator* ()
17057 {
17058 return i;
17059 }
17060
17061 const int& operator* () const
17062 {
17063 return i;
17064 }
17065
17066 iter& operator++()
17067 {
17068 ++i;
17069 return *this;
17070 }
17071 };
17072
17073 struct sentinel
17074 {
17075 int i;
17076 };
17077
17078 bool operator== (const iter& i, const sentinel& s)
17079 {
17080 return i.i == s.i;
17081 }
17082
17083 bool operator!= (const iter& i, const sentinel& s)
17084 {
17085 return !(i == s);
17086 }
17087
17088 struct range
17089 {
17090 iter begin() const
17091 {
17092 return {0};
17093 }
17094
17095 sentinel end() const
17096 {
17097 return {5};
17098 }
17099 };
17100
17101 void f()
17102 {
17103 range r {};
17104
17105 for (auto i : r)
17106 {
17107 [[maybe_unused]] auto v = i;
17108 }
17109 }
17110
17111 }
17112
17113 namespace test_lambda_capture_asterisk_this_by_value
17114 {
17115
17116 struct t
17117 {
17118 int i;
17119 int foo()
17120 {
17121 return [*this]()
17122 {
17123 return i;
17124 }();
17125 }
17126 };
17127
17128 }
17129
17130 namespace test_enum_class_construction
17131 {
17132
17133 enum class byte : unsigned char
17134 {};
17135
17136 byte foo {42};
17137
17138 }
17139
17140 namespace test_constexpr_if
17141 {
17142
17143 template <bool cond>
17144 int f ()
17145 {
17146 if constexpr(cond)
17147 {
17148 return 13;
17149 }
17150 else
17151 {
17152 return 42;
17153 }
17154 }
17155
17156 }
17157
17158 namespace test_selection_statement_with_initializer
17159 {
17160
17161 int f()
17162 {
17163 return 13;
17164 }
17165
17166 int f2()
17167 {
17168 if (auto i = f(); i > 0)
17169 {
17170 return 3;
17171 }
17172
17173 switch (auto i = f(); i + 4)
17174 {
17175 case 17:
17176 return 2;
17177
17178 default:
17179 return 1;
17180 }
17181 }
17182
17183 }
17184
17185 namespace test_template_argument_deduction_for_class_templates
17186 {
17187
17188 template <typename T1, typename T2>
17189 struct pair
17190 {
17191 pair (T1 p1, T2 p2)
17192 : m1 {p1},
17193 m2 {p2}
17194 {}
17195
17196 T1 m1;
17197 T2 m2;
17198 };
17199
17200 void f()
17201 {
17202 [[maybe_unused]] auto p = pair{13, 42u};
17203 }
17204
17205 }
17206
17207 namespace test_non_type_auto_template_parameters
17208 {
17209
17210 template <auto n>
17211 struct B
17212 {};
17213
17214 B<5> b1;
17215 B<'a'> b2;
17216
17217 }
17218
17219 namespace test_structured_bindings
17220 {
17221
17222 int arr[2] = { 1, 2 };
17223 std::pair<int, int> pr = { 1, 2 };
17224
17225 auto f1() -> int(&)[2]
17226 {
17227 return arr;
17228 }
17229
17230 auto f2() -> std::pair<int, int>&
17231 {
17232 return pr;
17233 }
17234
17235 struct S
17236 {
17237 int x1 : 2;
17238 volatile double y1;
17239 };
17240
17241 S f3()
17242 {
17243 return {};
17244 }
17245
17246 auto [ x1, y1 ] = f1();
17247 auto& [ xr1, yr1 ] = f1();
17248 auto [ x2, y2 ] = f2();
17249 auto& [ xr2, yr2 ] = f2();
17250 const auto [ x3, y3 ] = f3();
17251
17252 }
17253
17254 namespace test_exception_spec_type_system
17255 {
17256
17257 struct Good {};
17258 struct Bad {};
17259
17260 void g1() noexcept;
17261 void g2();
17262
17263 template<typename T>
17264 Bad
17265 f(T*, T*);
17266
17267 template<typename T1, typename T2>
17268 Good
17269 f(T1*, T2*);
17270
17271 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
17272
17273 }
17274
17275 namespace test_inline_variables
17276 {
17277
17278 template<class T> void f(T)
17279 {}
17280
17281 template<class T> inline T g(T)
17282 {
17283 return T{};
17284 }
17285
17286 template<> inline void f<>(int)
17287 {}
17288
17289 template<> int g<>(int)
17290 {
17291 return 5;
17292 }
17293
17294 }
17295
17296 } // namespace cxx17
17297
17298 #endif // __cplusplus < 201703L && !defined _MSC_VER
17299
17300
17301
17302 _ACEOF
17303 if ac_fn_cxx_try_compile "$LINENO"; then :
17304 ax_cv_cxx_compile_cxx17=yes
17305 else
17306 ax_cv_cxx_compile_cxx17=no
17307 fi
17308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17309 fi
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5
17311 $as_echo "$ax_cv_cxx_compile_cxx17" >&6; }
17312 if test x$ax_cv_cxx_compile_cxx17 = xyes; then
17313 ac_success=yes
17314 fi
17315
17316 if test x$ac_success = xno; then
17317 for alternative in ${ax_cxx_compile_alternatives}; do
17318 switch="-std=gnu++${alternative}"
17319 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
17321 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
17322 if eval \${$cachevar+:} false; then :
17323 $as_echo_n "(cached) " >&6
17324 else
17325 ac_save_CXX="$CXX"
17326 CXX="$CXX $switch"
17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328 /* end confdefs.h. */
17329
17330
17331 // If the compiler admits that it is not ready for C++11, why torture it?
17332 // Hopefully, this will speed up the test.
17333
17334 #ifndef __cplusplus
17335
17336 #error "This is not a C++ compiler"
17337
17338 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
17339 // only set it correctly if /Zc:__cplusplus is specified as well as a
17340 // /std:c++NN switch:
17341 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
17342 #elif __cplusplus < 201103L && !defined _MSC_VER
17343
17344 #error "This is not a C++11 compiler"
17345
17346 #else
17347
17348 namespace cxx11
17349 {
17350
17351 namespace test_static_assert
17352 {
17353
17354 template <typename T>
17355 struct check
17356 {
17357 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17358 };
17359
17360 }
17361
17362 namespace test_final_override
17363 {
17364
17365 struct Base
17366 {
17367 virtual ~Base() {}
17368 virtual void f() {}
17369 };
17370
17371 struct Derived : public Base
17372 {
17373 virtual ~Derived() override {}
17374 virtual void f() override {}
17375 };
17376
17377 }
17378
17379 namespace test_double_right_angle_brackets
17380 {
17381
17382 template < typename T >
17383 struct check {};
17384
17385 typedef check<void> single_type;
17386 typedef check<check<void>> double_type;
17387 typedef check<check<check<void>>> triple_type;
17388 typedef check<check<check<check<void>>>> quadruple_type;
17389
17390 }
17391
17392 namespace test_decltype
17393 {
17394
17395 int
17396 f()
17397 {
17398 int a = 1;
17399 decltype(a) b = 2;
17400 return a + b;
17401 }
17402
17403 }
17404
17405 namespace test_type_deduction
17406 {
17407
17408 template < typename T1, typename T2 >
17409 struct is_same
17410 {
17411 static const bool value = false;
17412 };
17413
17414 template < typename T >
17415 struct is_same<T, T>
17416 {
17417 static const bool value = true;
17418 };
17419
17420 template < typename T1, typename T2 >
17421 auto
17422 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17423 {
17424 return a1 + a2;
17425 }
17426
17427 int
17428 test(const int c, volatile int v)
17429 {
17430 static_assert(is_same<int, decltype(0)>::value == true, "");
17431 static_assert(is_same<int, decltype(c)>::value == false, "");
17432 static_assert(is_same<int, decltype(v)>::value == false, "");
17433 auto ac = c;
17434 auto av = v;
17435 auto sumi = ac + av + 'x';
17436 auto sumf = ac + av + 1.0;
17437 static_assert(is_same<int, decltype(ac)>::value == true, "");
17438 static_assert(is_same<int, decltype(av)>::value == true, "");
17439 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17440 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17441 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17442 return (sumf > 0.0) ? sumi : add(c, v);
17443 }
17444
17445 }
17446
17447 namespace test_noexcept
17448 {
17449
17450 int f() { return 0; }
17451 int g() noexcept { return 0; }
17452
17453 static_assert(noexcept(f()) == false, "");
17454 static_assert(noexcept(g()) == true, "");
17455
17456 }
17457
17458 namespace test_constexpr
17459 {
17460
17461 template < typename CharT >
17462 unsigned long constexpr
17463 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17464 {
17465 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17466 }
17467
17468 template < typename CharT >
17469 unsigned long constexpr
17470 strlen_c(const CharT *const s) noexcept
17471 {
17472 return strlen_c_r(s, 0UL);
17473 }
17474
17475 static_assert(strlen_c("") == 0UL, "");
17476 static_assert(strlen_c("1") == 1UL, "");
17477 static_assert(strlen_c("example") == 7UL, "");
17478 static_assert(strlen_c("another\0example") == 7UL, "");
17479
17480 }
17481
17482 namespace test_rvalue_references
17483 {
17484
17485 template < int N >
17486 struct answer
17487 {
17488 static constexpr int value = N;
17489 };
17490
17491 answer<1> f(int&) { return answer<1>(); }
17492 answer<2> f(const int&) { return answer<2>(); }
17493 answer<3> f(int&&) { return answer<3>(); }
17494
17495 void
17496 test()
17497 {
17498 int i = 0;
17499 const int c = 0;
17500 static_assert(decltype(f(i))::value == 1, "");
17501 static_assert(decltype(f(c))::value == 2, "");
17502 static_assert(decltype(f(0))::value == 3, "");
17503 }
17504
17505 }
17506
17507 namespace test_uniform_initialization
17508 {
17509
17510 struct test
17511 {
17512 static const int zero {};
17513 static const int one {1};
17514 };
17515
17516 static_assert(test::zero == 0, "");
17517 static_assert(test::one == 1, "");
17518
17519 }
17520
17521 namespace test_lambdas
17522 {
17523
17524 void
17525 test1()
17526 {
17527 auto lambda1 = [](){};
17528 auto lambda2 = lambda1;
17529 lambda1();
17530 lambda2();
17531 }
17532
17533 int
17534 test2()
17535 {
17536 auto a = [](int i, int j){ return i + j; }(1, 2);
17537 auto b = []() -> int { return '0'; }();
17538 auto c = [=](){ return a + b; }();
17539 auto d = [&](){ return c; }();
17540 auto e = [a, &b](int x) mutable {
17541 const auto identity = [](int y){ return y; };
17542 for (auto i = 0; i < a; ++i)
17543 a += b--;
17544 return x + identity(a + b);
17545 }(0);
17546 return a + b + c + d + e;
17547 }
17548
17549 int
17550 test3()
17551 {
17552 const auto nullary = [](){ return 0; };
17553 const auto unary = [](int x){ return x; };
17554 using nullary_t = decltype(nullary);
17555 using unary_t = decltype(unary);
17556 const auto higher1st = [](nullary_t f){ return f(); };
17557 const auto higher2nd = [unary](nullary_t f1){
17558 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17559 };
17560 return higher1st(nullary) + higher2nd(nullary)(unary);
17561 }
17562
17563 }
17564
17565 namespace test_variadic_templates
17566 {
17567
17568 template <int...>
17569 struct sum;
17570
17571 template <int N0, int... N1toN>
17572 struct sum<N0, N1toN...>
17573 {
17574 static constexpr auto value = N0 + sum<N1toN...>::value;
17575 };
17576
17577 template <>
17578 struct sum<>
17579 {
17580 static constexpr auto value = 0;
17581 };
17582
17583 static_assert(sum<>::value == 0, "");
17584 static_assert(sum<1>::value == 1, "");
17585 static_assert(sum<23>::value == 23, "");
17586 static_assert(sum<1, 2>::value == 3, "");
17587 static_assert(sum<5, 5, 11>::value == 21, "");
17588 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17589
17590 }
17591
17592 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17593 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17594 // because of this.
17595 namespace test_template_alias_sfinae
17596 {
17597
17598 struct foo {};
17599
17600 template<typename T>
17601 using member = typename T::member_type;
17602
17603 template<typename T>
17604 void func(...) {}
17605
17606 template<typename T>
17607 void func(member<T>*) {}
17608
17609 void test();
17610
17611 void test() { func<foo>(0); }
17612
17613 }
17614
17615 } // namespace cxx11
17616
17617 #endif // __cplusplus >= 201103L
17618
17619
17620
17621
17622 // If the compiler admits that it is not ready for C++14, why torture it?
17623 // Hopefully, this will speed up the test.
17624
17625 #ifndef __cplusplus
17626
17627 #error "This is not a C++ compiler"
17628
17629 #elif __cplusplus < 201402L && !defined _MSC_VER
17630
17631 #error "This is not a C++14 compiler"
17632
17633 #else
17634
17635 namespace cxx14
17636 {
17637
17638 namespace test_polymorphic_lambdas
17639 {
17640
17641 int
17642 test()
17643 {
17644 const auto lambda = [](auto&&... args){
17645 const auto istiny = [](auto x){
17646 return (sizeof(x) == 1UL) ? 1 : 0;
17647 };
17648 const int aretiny[] = { istiny(args)... };
17649 return aretiny[0];
17650 };
17651 return lambda(1, 1L, 1.0f, '1');
17652 }
17653
17654 }
17655
17656 namespace test_binary_literals
17657 {
17658
17659 constexpr auto ivii = 0b0000000000101010;
17660 static_assert(ivii == 42, "wrong value");
17661
17662 }
17663
17664 namespace test_generalized_constexpr
17665 {
17666
17667 template < typename CharT >
17668 constexpr unsigned long
17669 strlen_c(const CharT *const s) noexcept
17670 {
17671 auto length = 0UL;
17672 for (auto p = s; *p; ++p)
17673 ++length;
17674 return length;
17675 }
17676
17677 static_assert(strlen_c("") == 0UL, "");
17678 static_assert(strlen_c("x") == 1UL, "");
17679 static_assert(strlen_c("test") == 4UL, "");
17680 static_assert(strlen_c("another\0test") == 7UL, "");
17681
17682 }
17683
17684 namespace test_lambda_init_capture
17685 {
17686
17687 int
17688 test()
17689 {
17690 auto x = 0;
17691 const auto lambda1 = [a = x](int b){ return a + b; };
17692 const auto lambda2 = [a = lambda1(x)](){ return a; };
17693 return lambda2();
17694 }
17695
17696 }
17697
17698 namespace test_digit_separators
17699 {
17700
17701 constexpr auto ten_million = 100'000'000;
17702 static_assert(ten_million == 100000000, "");
17703
17704 }
17705
17706 namespace test_return_type_deduction
17707 {
17708
17709 auto f(int& x) { return x; }
17710 decltype(auto) g(int& x) { return x; }
17711
17712 template < typename T1, typename T2 >
17713 struct is_same
17714 {
17715 static constexpr auto value = false;
17716 };
17717
17718 template < typename T >
17719 struct is_same<T, T>
17720 {
17721 static constexpr auto value = true;
17722 };
17723
17724 int
17725 test()
17726 {
17727 auto x = 0;
17728 static_assert(is_same<int, decltype(f(x))>::value, "");
17729 static_assert(is_same<int&, decltype(g(x))>::value, "");
17730 return x;
17731 }
17732
17733 }
17734
17735 } // namespace cxx14
17736
17737 #endif // __cplusplus >= 201402L
17738
17739
17740
17741
17742 // If the compiler admits that it is not ready for C++17, why torture it?
17743 // Hopefully, this will speed up the test.
17744
17745 #ifndef __cplusplus
17746
17747 #error "This is not a C++ compiler"
17748
17749 #elif __cplusplus < 201703L && !defined _MSC_VER
17750
17751 #error "This is not a C++17 compiler"
17752
17753 #else
17754
17755 #include <initializer_list>
17756 #include <utility>
17757 #include <type_traits>
17758
17759 namespace cxx17
17760 {
17761
17762 namespace test_constexpr_lambdas
17763 {
17764
17765 constexpr int foo = [](){return 42;}();
17766
17767 }
17768
17769 namespace test::nested_namespace::definitions
17770 {
17771
17772 }
17773
17774 namespace test_fold_expression
17775 {
17776
17777 template<typename... Args>
17778 int multiply(Args... args)
17779 {
17780 return (args * ... * 1);
17781 }
17782
17783 template<typename... Args>
17784 bool all(Args... args)
17785 {
17786 return (args && ...);
17787 }
17788
17789 }
17790
17791 namespace test_extended_static_assert
17792 {
17793
17794 static_assert (true);
17795
17796 }
17797
17798 namespace test_auto_brace_init_list
17799 {
17800
17801 auto foo = {5};
17802 auto bar {5};
17803
17804 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
17805 static_assert(std::is_same<int, decltype(bar)>::value);
17806 }
17807
17808 namespace test_typename_in_template_template_parameter
17809 {
17810
17811 template<template<typename> typename X> struct D;
17812
17813 }
17814
17815 namespace test_fallthrough_nodiscard_maybe_unused_attributes
17816 {
17817
17818 int f1()
17819 {
17820 return 42;
17821 }
17822
17823 [[nodiscard]] int f2()
17824 {
17825 [[maybe_unused]] auto unused = f1();
17826
17827 switch (f1())
17828 {
17829 case 17:
17830 f1();
17831 [[fallthrough]];
17832 case 42:
17833 f1();
17834 }
17835 return f1();
17836 }
17837
17838 }
17839
17840 namespace test_extended_aggregate_initialization
17841 {
17842
17843 struct base1
17844 {
17845 int b1, b2 = 42;
17846 };
17847
17848 struct base2
17849 {
17850 base2() {
17851 b3 = 42;
17852 }
17853 int b3;
17854 };
17855
17856 struct derived : base1, base2
17857 {
17858 int d;
17859 };
17860
17861 derived d1 {{1, 2}, {}, 4}; // full initialization
17862 derived d2 {{}, {}, 4}; // value-initialized bases
17863
17864 }
17865
17866 namespace test_general_range_based_for_loop
17867 {
17868
17869 struct iter
17870 {
17871 int i;
17872
17873 int& operator* ()
17874 {
17875 return i;
17876 }
17877
17878 const int& operator* () const
17879 {
17880 return i;
17881 }
17882
17883 iter& operator++()
17884 {
17885 ++i;
17886 return *this;
17887 }
17888 };
17889
17890 struct sentinel
17891 {
17892 int i;
17893 };
17894
17895 bool operator== (const iter& i, const sentinel& s)
17896 {
17897 return i.i == s.i;
17898 }
17899
17900 bool operator!= (const iter& i, const sentinel& s)
17901 {
17902 return !(i == s);
17903 }
17904
17905 struct range
17906 {
17907 iter begin() const
17908 {
17909 return {0};
17910 }
17911
17912 sentinel end() const
17913 {
17914 return {5};
17915 }
17916 };
17917
17918 void f()
17919 {
17920 range r {};
17921
17922 for (auto i : r)
17923 {
17924 [[maybe_unused]] auto v = i;
17925 }
17926 }
17927
17928 }
17929
17930 namespace test_lambda_capture_asterisk_this_by_value
17931 {
17932
17933 struct t
17934 {
17935 int i;
17936 int foo()
17937 {
17938 return [*this]()
17939 {
17940 return i;
17941 }();
17942 }
17943 };
17944
17945 }
17946
17947 namespace test_enum_class_construction
17948 {
17949
17950 enum class byte : unsigned char
17951 {};
17952
17953 byte foo {42};
17954
17955 }
17956
17957 namespace test_constexpr_if
17958 {
17959
17960 template <bool cond>
17961 int f ()
17962 {
17963 if constexpr(cond)
17964 {
17965 return 13;
17966 }
17967 else
17968 {
17969 return 42;
17970 }
17971 }
17972
17973 }
17974
17975 namespace test_selection_statement_with_initializer
17976 {
17977
17978 int f()
17979 {
17980 return 13;
17981 }
17982
17983 int f2()
17984 {
17985 if (auto i = f(); i > 0)
17986 {
17987 return 3;
17988 }
17989
17990 switch (auto i = f(); i + 4)
17991 {
17992 case 17:
17993 return 2;
17994
17995 default:
17996 return 1;
17997 }
17998 }
17999
18000 }
18001
18002 namespace test_template_argument_deduction_for_class_templates
18003 {
18004
18005 template <typename T1, typename T2>
18006 struct pair
18007 {
18008 pair (T1 p1, T2 p2)
18009 : m1 {p1},
18010 m2 {p2}
18011 {}
18012
18013 T1 m1;
18014 T2 m2;
18015 };
18016
18017 void f()
18018 {
18019 [[maybe_unused]] auto p = pair{13, 42u};
18020 }
18021
18022 }
18023
18024 namespace test_non_type_auto_template_parameters
18025 {
18026
18027 template <auto n>
18028 struct B
18029 {};
18030
18031 B<5> b1;
18032 B<'a'> b2;
18033
18034 }
18035
18036 namespace test_structured_bindings
18037 {
18038
18039 int arr[2] = { 1, 2 };
18040 std::pair<int, int> pr = { 1, 2 };
18041
18042 auto f1() -> int(&)[2]
18043 {
18044 return arr;
18045 }
18046
18047 auto f2() -> std::pair<int, int>&
18048 {
18049 return pr;
18050 }
18051
18052 struct S
18053 {
18054 int x1 : 2;
18055 volatile double y1;
18056 };
18057
18058 S f3()
18059 {
18060 return {};
18061 }
18062
18063 auto [ x1, y1 ] = f1();
18064 auto& [ xr1, yr1 ] = f1();
18065 auto [ x2, y2 ] = f2();
18066 auto& [ xr2, yr2 ] = f2();
18067 const auto [ x3, y3 ] = f3();
18068
18069 }
18070
18071 namespace test_exception_spec_type_system
18072 {
18073
18074 struct Good {};
18075 struct Bad {};
18076
18077 void g1() noexcept;
18078 void g2();
18079
18080 template<typename T>
18081 Bad
18082 f(T*, T*);
18083
18084 template<typename T1, typename T2>
18085 Good
18086 f(T1*, T2*);
18087
18088 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
18089
18090 }
18091
18092 namespace test_inline_variables
18093 {
18094
18095 template<class T> void f(T)
18096 {}
18097
18098 template<class T> inline T g(T)
18099 {
18100 return T{};
18101 }
18102
18103 template<> inline void f<>(int)
18104 {}
18105
18106 template<> int g<>(int)
18107 {
18108 return 5;
18109 }
18110
18111 }
18112
18113 } // namespace cxx17
18114
18115 #endif // __cplusplus < 201703L && !defined _MSC_VER
18116
18117
18118
18119 _ACEOF
18120 if ac_fn_cxx_try_compile "$LINENO"; then :
18121 eval $cachevar=yes
18122 else
18123 eval $cachevar=no
18124 fi
18125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18126 CXX="$ac_save_CXX"
18127 fi
18128 eval ac_res=\$$cachevar
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18130 $as_echo "$ac_res" >&6; }
18131 if eval test x\$$cachevar = xyes; then
18132 CXX_DIALECT="$switch"
18133 CXX="$CXX $switch"
18134 if test -n "$CXXCPP" ; then
18135 CXXCPP="$CXXCPP $switch"
18136 fi
18137 ac_success=yes
18138 break
18139 fi
18140 done
18141 fi
18142
18143 if test x$ac_success = xno; then
18144 for alternative in ${ax_cxx_compile_alternatives}; do
18145 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
18146 if test x"$switch" = xMSVC; then
18147 switch=-std:c++${alternative}
18148 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_${switch}_MSVC" | $as_tr_sh`
18149 else
18150 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
18151 fi
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
18153 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
18154 if eval \${$cachevar+:} false; then :
18155 $as_echo_n "(cached) " >&6
18156 else
18157 ac_save_CXX="$CXX"
18158 CXX="$CXX $switch"
18159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160 /* end confdefs.h. */
18161
18162
18163 // If the compiler admits that it is not ready for C++11, why torture it?
18164 // Hopefully, this will speed up the test.
18165
18166 #ifndef __cplusplus
18167
18168 #error "This is not a C++ compiler"
18169
18170 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
18171 // only set it correctly if /Zc:__cplusplus is specified as well as a
18172 // /std:c++NN switch:
18173 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
18174 #elif __cplusplus < 201103L && !defined _MSC_VER
18175
18176 #error "This is not a C++11 compiler"
18177
18178 #else
18179
18180 namespace cxx11
18181 {
18182
18183 namespace test_static_assert
18184 {
18185
18186 template <typename T>
18187 struct check
18188 {
18189 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18190 };
18191
18192 }
18193
18194 namespace test_final_override
18195 {
18196
18197 struct Base
18198 {
18199 virtual ~Base() {}
18200 virtual void f() {}
18201 };
18202
18203 struct Derived : public Base
18204 {
18205 virtual ~Derived() override {}
18206 virtual void f() override {}
18207 };
18208
18209 }
18210
18211 namespace test_double_right_angle_brackets
18212 {
18213
18214 template < typename T >
18215 struct check {};
18216
18217 typedef check<void> single_type;
18218 typedef check<check<void>> double_type;
18219 typedef check<check<check<void>>> triple_type;
18220 typedef check<check<check<check<void>>>> quadruple_type;
18221
18222 }
18223
18224 namespace test_decltype
18225 {
18226
18227 int
18228 f()
18229 {
18230 int a = 1;
18231 decltype(a) b = 2;
18232 return a + b;
18233 }
18234
18235 }
18236
18237 namespace test_type_deduction
18238 {
18239
18240 template < typename T1, typename T2 >
18241 struct is_same
18242 {
18243 static const bool value = false;
18244 };
18245
18246 template < typename T >
18247 struct is_same<T, T>
18248 {
18249 static const bool value = true;
18250 };
18251
18252 template < typename T1, typename T2 >
18253 auto
18254 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18255 {
18256 return a1 + a2;
18257 }
18258
18259 int
18260 test(const int c, volatile int v)
18261 {
18262 static_assert(is_same<int, decltype(0)>::value == true, "");
18263 static_assert(is_same<int, decltype(c)>::value == false, "");
18264 static_assert(is_same<int, decltype(v)>::value == false, "");
18265 auto ac = c;
18266 auto av = v;
18267 auto sumi = ac + av + 'x';
18268 auto sumf = ac + av + 1.0;
18269 static_assert(is_same<int, decltype(ac)>::value == true, "");
18270 static_assert(is_same<int, decltype(av)>::value == true, "");
18271 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18272 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18273 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18274 return (sumf > 0.0) ? sumi : add(c, v);
18275 }
18276
18277 }
18278
18279 namespace test_noexcept
18280 {
18281
18282 int f() { return 0; }
18283 int g() noexcept { return 0; }
18284
18285 static_assert(noexcept(f()) == false, "");
18286 static_assert(noexcept(g()) == true, "");
18287
18288 }
18289
18290 namespace test_constexpr
18291 {
18292
18293 template < typename CharT >
18294 unsigned long constexpr
18295 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18296 {
18297 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18298 }
18299
18300 template < typename CharT >
18301 unsigned long constexpr
18302 strlen_c(const CharT *const s) noexcept
18303 {
18304 return strlen_c_r(s, 0UL);
18305 }
18306
18307 static_assert(strlen_c("") == 0UL, "");
18308 static_assert(strlen_c("1") == 1UL, "");
18309 static_assert(strlen_c("example") == 7UL, "");
18310 static_assert(strlen_c("another\0example") == 7UL, "");
18311
18312 }
18313
18314 namespace test_rvalue_references
18315 {
18316
18317 template < int N >
18318 struct answer
18319 {
18320 static constexpr int value = N;
18321 };
18322
18323 answer<1> f(int&) { return answer<1>(); }
18324 answer<2> f(const int&) { return answer<2>(); }
18325 answer<3> f(int&&) { return answer<3>(); }
18326
18327 void
18328 test()
18329 {
18330 int i = 0;
18331 const int c = 0;
18332 static_assert(decltype(f(i))::value == 1, "");
18333 static_assert(decltype(f(c))::value == 2, "");
18334 static_assert(decltype(f(0))::value == 3, "");
18335 }
18336
18337 }
18338
18339 namespace test_uniform_initialization
18340 {
18341
18342 struct test
18343 {
18344 static const int zero {};
18345 static const int one {1};
18346 };
18347
18348 static_assert(test::zero == 0, "");
18349 static_assert(test::one == 1, "");
18350
18351 }
18352
18353 namespace test_lambdas
18354 {
18355
18356 void
18357 test1()
18358 {
18359 auto lambda1 = [](){};
18360 auto lambda2 = lambda1;
18361 lambda1();
18362 lambda2();
18363 }
18364
18365 int
18366 test2()
18367 {
18368 auto a = [](int i, int j){ return i + j; }(1, 2);
18369 auto b = []() -> int { return '0'; }();
18370 auto c = [=](){ return a + b; }();
18371 auto d = [&](){ return c; }();
18372 auto e = [a, &b](int x) mutable {
18373 const auto identity = [](int y){ return y; };
18374 for (auto i = 0; i < a; ++i)
18375 a += b--;
18376 return x + identity(a + b);
18377 }(0);
18378 return a + b + c + d + e;
18379 }
18380
18381 int
18382 test3()
18383 {
18384 const auto nullary = [](){ return 0; };
18385 const auto unary = [](int x){ return x; };
18386 using nullary_t = decltype(nullary);
18387 using unary_t = decltype(unary);
18388 const auto higher1st = [](nullary_t f){ return f(); };
18389 const auto higher2nd = [unary](nullary_t f1){
18390 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18391 };
18392 return higher1st(nullary) + higher2nd(nullary)(unary);
18393 }
18394
18395 }
18396
18397 namespace test_variadic_templates
18398 {
18399
18400 template <int...>
18401 struct sum;
18402
18403 template <int N0, int... N1toN>
18404 struct sum<N0, N1toN...>
18405 {
18406 static constexpr auto value = N0 + sum<N1toN...>::value;
18407 };
18408
18409 template <>
18410 struct sum<>
18411 {
18412 static constexpr auto value = 0;
18413 };
18414
18415 static_assert(sum<>::value == 0, "");
18416 static_assert(sum<1>::value == 1, "");
18417 static_assert(sum<23>::value == 23, "");
18418 static_assert(sum<1, 2>::value == 3, "");
18419 static_assert(sum<5, 5, 11>::value == 21, "");
18420 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18421
18422 }
18423
18424 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18425 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18426 // because of this.
18427 namespace test_template_alias_sfinae
18428 {
18429
18430 struct foo {};
18431
18432 template<typename T>
18433 using member = typename T::member_type;
18434
18435 template<typename T>
18436 void func(...) {}
18437
18438 template<typename T>
18439 void func(member<T>*) {}
18440
18441 void test();
18442
18443 void test() { func<foo>(0); }
18444
18445 }
18446
18447 } // namespace cxx11
18448
18449 #endif // __cplusplus >= 201103L
18450
18451
18452
18453
18454 // If the compiler admits that it is not ready for C++14, why torture it?
18455 // Hopefully, this will speed up the test.
18456
18457 #ifndef __cplusplus
18458
18459 #error "This is not a C++ compiler"
18460
18461 #elif __cplusplus < 201402L && !defined _MSC_VER
18462
18463 #error "This is not a C++14 compiler"
18464
18465 #else
18466
18467 namespace cxx14
18468 {
18469
18470 namespace test_polymorphic_lambdas
18471 {
18472
18473 int
18474 test()
18475 {
18476 const auto lambda = [](auto&&... args){
18477 const auto istiny = [](auto x){
18478 return (sizeof(x) == 1UL) ? 1 : 0;
18479 };
18480 const int aretiny[] = { istiny(args)... };
18481 return aretiny[0];
18482 };
18483 return lambda(1, 1L, 1.0f, '1');
18484 }
18485
18486 }
18487
18488 namespace test_binary_literals
18489 {
18490
18491 constexpr auto ivii = 0b0000000000101010;
18492 static_assert(ivii == 42, "wrong value");
18493
18494 }
18495
18496 namespace test_generalized_constexpr
18497 {
18498
18499 template < typename CharT >
18500 constexpr unsigned long
18501 strlen_c(const CharT *const s) noexcept
18502 {
18503 auto length = 0UL;
18504 for (auto p = s; *p; ++p)
18505 ++length;
18506 return length;
18507 }
18508
18509 static_assert(strlen_c("") == 0UL, "");
18510 static_assert(strlen_c("x") == 1UL, "");
18511 static_assert(strlen_c("test") == 4UL, "");
18512 static_assert(strlen_c("another\0test") == 7UL, "");
18513
18514 }
18515
18516 namespace test_lambda_init_capture
18517 {
18518
18519 int
18520 test()
18521 {
18522 auto x = 0;
18523 const auto lambda1 = [a = x](int b){ return a + b; };
18524 const auto lambda2 = [a = lambda1(x)](){ return a; };
18525 return lambda2();
18526 }
18527
18528 }
18529
18530 namespace test_digit_separators
18531 {
18532
18533 constexpr auto ten_million = 100'000'000;
18534 static_assert(ten_million == 100000000, "");
18535
18536 }
18537
18538 namespace test_return_type_deduction
18539 {
18540
18541 auto f(int& x) { return x; }
18542 decltype(auto) g(int& x) { return x; }
18543
18544 template < typename T1, typename T2 >
18545 struct is_same
18546 {
18547 static constexpr auto value = false;
18548 };
18549
18550 template < typename T >
18551 struct is_same<T, T>
18552 {
18553 static constexpr auto value = true;
18554 };
18555
18556 int
18557 test()
18558 {
18559 auto x = 0;
18560 static_assert(is_same<int, decltype(f(x))>::value, "");
18561 static_assert(is_same<int&, decltype(g(x))>::value, "");
18562 return x;
18563 }
18564
18565 }
18566
18567 } // namespace cxx14
18568
18569 #endif // __cplusplus >= 201402L
18570
18571
18572
18573
18574 // If the compiler admits that it is not ready for C++17, why torture it?
18575 // Hopefully, this will speed up the test.
18576
18577 #ifndef __cplusplus
18578
18579 #error "This is not a C++ compiler"
18580
18581 #elif __cplusplus < 201703L && !defined _MSC_VER
18582
18583 #error "This is not a C++17 compiler"
18584
18585 #else
18586
18587 #include <initializer_list>
18588 #include <utility>
18589 #include <type_traits>
18590
18591 namespace cxx17
18592 {
18593
18594 namespace test_constexpr_lambdas
18595 {
18596
18597 constexpr int foo = [](){return 42;}();
18598
18599 }
18600
18601 namespace test::nested_namespace::definitions
18602 {
18603
18604 }
18605
18606 namespace test_fold_expression
18607 {
18608
18609 template<typename... Args>
18610 int multiply(Args... args)
18611 {
18612 return (args * ... * 1);
18613 }
18614
18615 template<typename... Args>
18616 bool all(Args... args)
18617 {
18618 return (args && ...);
18619 }
18620
18621 }
18622
18623 namespace test_extended_static_assert
18624 {
18625
18626 static_assert (true);
18627
18628 }
18629
18630 namespace test_auto_brace_init_list
18631 {
18632
18633 auto foo = {5};
18634 auto bar {5};
18635
18636 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
18637 static_assert(std::is_same<int, decltype(bar)>::value);
18638 }
18639
18640 namespace test_typename_in_template_template_parameter
18641 {
18642
18643 template<template<typename> typename X> struct D;
18644
18645 }
18646
18647 namespace test_fallthrough_nodiscard_maybe_unused_attributes
18648 {
18649
18650 int f1()
18651 {
18652 return 42;
18653 }
18654
18655 [[nodiscard]] int f2()
18656 {
18657 [[maybe_unused]] auto unused = f1();
18658
18659 switch (f1())
18660 {
18661 case 17:
18662 f1();
18663 [[fallthrough]];
18664 case 42:
18665 f1();
18666 }
18667 return f1();
18668 }
18669
18670 }
18671
18672 namespace test_extended_aggregate_initialization
18673 {
18674
18675 struct base1
18676 {
18677 int b1, b2 = 42;
18678 };
18679
18680 struct base2
18681 {
18682 base2() {
18683 b3 = 42;
18684 }
18685 int b3;
18686 };
18687
18688 struct derived : base1, base2
18689 {
18690 int d;
18691 };
18692
18693 derived d1 {{1, 2}, {}, 4}; // full initialization
18694 derived d2 {{}, {}, 4}; // value-initialized bases
18695
18696 }
18697
18698 namespace test_general_range_based_for_loop
18699 {
18700
18701 struct iter
18702 {
18703 int i;
18704
18705 int& operator* ()
18706 {
18707 return i;
18708 }
18709
18710 const int& operator* () const
18711 {
18712 return i;
18713 }
18714
18715 iter& operator++()
18716 {
18717 ++i;
18718 return *this;
18719 }
18720 };
18721
18722 struct sentinel
18723 {
18724 int i;
18725 };
18726
18727 bool operator== (const iter& i, const sentinel& s)
18728 {
18729 return i.i == s.i;
18730 }
18731
18732 bool operator!= (const iter& i, const sentinel& s)
18733 {
18734 return !(i == s);
18735 }
18736
18737 struct range
18738 {
18739 iter begin() const
18740 {
18741 return {0};
18742 }
18743
18744 sentinel end() const
18745 {
18746 return {5};
18747 }
18748 };
18749
18750 void f()
18751 {
18752 range r {};
18753
18754 for (auto i : r)
18755 {
18756 [[maybe_unused]] auto v = i;
18757 }
18758 }
18759
18760 }
18761
18762 namespace test_lambda_capture_asterisk_this_by_value
18763 {
18764
18765 struct t
18766 {
18767 int i;
18768 int foo()
18769 {
18770 return [*this]()
18771 {
18772 return i;
18773 }();
18774 }
18775 };
18776
18777 }
18778
18779 namespace test_enum_class_construction
18780 {
18781
18782 enum class byte : unsigned char
18783 {};
18784
18785 byte foo {42};
18786
18787 }
18788
18789 namespace test_constexpr_if
18790 {
18791
18792 template <bool cond>
18793 int f ()
18794 {
18795 if constexpr(cond)
18796 {
18797 return 13;
18798 }
18799 else
18800 {
18801 return 42;
18802 }
18803 }
18804
18805 }
18806
18807 namespace test_selection_statement_with_initializer
18808 {
18809
18810 int f()
18811 {
18812 return 13;
18813 }
18814
18815 int f2()
18816 {
18817 if (auto i = f(); i > 0)
18818 {
18819 return 3;
18820 }
18821
18822 switch (auto i = f(); i + 4)
18823 {
18824 case 17:
18825 return 2;
18826
18827 default:
18828 return 1;
18829 }
18830 }
18831
18832 }
18833
18834 namespace test_template_argument_deduction_for_class_templates
18835 {
18836
18837 template <typename T1, typename T2>
18838 struct pair
18839 {
18840 pair (T1 p1, T2 p2)
18841 : m1 {p1},
18842 m2 {p2}
18843 {}
18844
18845 T1 m1;
18846 T2 m2;
18847 };
18848
18849 void f()
18850 {
18851 [[maybe_unused]] auto p = pair{13, 42u};
18852 }
18853
18854 }
18855
18856 namespace test_non_type_auto_template_parameters
18857 {
18858
18859 template <auto n>
18860 struct B
18861 {};
18862
18863 B<5> b1;
18864 B<'a'> b2;
18865
18866 }
18867
18868 namespace test_structured_bindings
18869 {
18870
18871 int arr[2] = { 1, 2 };
18872 std::pair<int, int> pr = { 1, 2 };
18873
18874 auto f1() -> int(&)[2]
18875 {
18876 return arr;
18877 }
18878
18879 auto f2() -> std::pair<int, int>&
18880 {
18881 return pr;
18882 }
18883
18884 struct S
18885 {
18886 int x1 : 2;
18887 volatile double y1;
18888 };
18889
18890 S f3()
18891 {
18892 return {};
18893 }
18894
18895 auto [ x1, y1 ] = f1();
18896 auto& [ xr1, yr1 ] = f1();
18897 auto [ x2, y2 ] = f2();
18898 auto& [ xr2, yr2 ] = f2();
18899 const auto [ x3, y3 ] = f3();
18900
18901 }
18902
18903 namespace test_exception_spec_type_system
18904 {
18905
18906 struct Good {};
18907 struct Bad {};
18908
18909 void g1() noexcept;
18910 void g2();
18911
18912 template<typename T>
18913 Bad
18914 f(T*, T*);
18915
18916 template<typename T1, typename T2>
18917 Good
18918 f(T1*, T2*);
18919
18920 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
18921
18922 }
18923
18924 namespace test_inline_variables
18925 {
18926
18927 template<class T> void f(T)
18928 {}
18929
18930 template<class T> inline T g(T)
18931 {
18932 return T{};
18933 }
18934
18935 template<> inline void f<>(int)
18936 {}
18937
18938 template<> int g<>(int)
18939 {
18940 return 5;
18941 }
18942
18943 }
18944
18945 } // namespace cxx17
18946
18947 #endif // __cplusplus < 201703L && !defined _MSC_VER
18948
18949
18950
18951 _ACEOF
18952 if ac_fn_cxx_try_compile "$LINENO"; then :
18953 eval $cachevar=yes
18954 else
18955 eval $cachevar=no
18956 fi
18957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18958 CXX="$ac_save_CXX"
18959 fi
18960 eval ac_res=\$$cachevar
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18962 $as_echo "$ac_res" >&6; }
18963 if eval test x\$$cachevar = xyes; then
18964 CXX_DIALECT="$switch"
18965 CXX="$CXX $switch"
18966 if test -n "$CXXCPP" ; then
18967 CXXCPP="$CXXCPP $switch"
18968 fi
18969 ac_success=yes
18970 break
18971 fi
18972 done
18973 if test x$ac_success = xyes; then
18974 break
18975 fi
18976 done
18977 fi
18978 ac_ext=c
18979 ac_cpp='$CPP $CPPFLAGS'
18980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18983
18984 if test x$ax_cxx_compile_cxx17_required = xtrue; then
18985 if test x$ac_success = xno; then
18986 as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
18987 fi
18988 fi
18989 if test x$ac_success = xno; then
18990 HAVE_CXX17=0
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
18992 $as_echo "$as_me: No compiler with C++17 support was found" >&6;}
18993 else
18994 HAVE_CXX17=1
18995
18996 $as_echo "#define HAVE_CXX17 1" >>confdefs.h
18997
18998 fi
18999
19000
19001
19002
19003 # Dependency checking.
19004 rm -rf .tst 2>/dev/null
19005 mkdir .tst 2>/dev/null
19006 if test -d .tst; then
19007 am__leading_dot=.
19008 else
19009 am__leading_dot=_
19010 fi
19011 rmdir .tst 2>/dev/null
19012
19013 DEPDIR="${am__leading_dot}deps"
19014
19015 ac_config_commands="$ac_config_commands depdir"
19016
19017
19018 depcc="$CC" am_compiler_list=
19019
19020 am_depcomp=$ac_aux_dir/depcomp
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19022 $as_echo_n "checking dependency style of $depcc... " >&6; }
19023 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
19024 $as_echo_n "(cached) " >&6
19025 else
19026 if test -f "$am_depcomp"; then
19027 # We make a subdir and do the tests there. Otherwise we can end up
19028 # making bogus files that we don't know about and never remove. For
19029 # instance it was reported that on HP-UX the gcc test will end up
19030 # making a dummy file named `D' -- because `-MD' means `put the output
19031 # in D'.
19032 mkdir conftest.dir
19033 # Copy depcomp to subdir because otherwise we won't find it if we're
19034 # using a relative directory.
19035 cp "$am_depcomp" conftest.dir
19036 cd conftest.dir
19037 # We will build objects and dependencies in a subdirectory because
19038 # it helps to detect inapplicable dependency modes. For instance
19039 # both Tru64's cc and ICC support -MD to output dependencies as a
19040 # side effect of compilation, but ICC will put the dependencies in
19041 # the current directory while Tru64 will put them in the object
19042 # directory.
19043 mkdir sub
19044
19045 am_cv_CC_dependencies_compiler_type=none
19046 if test "$am_compiler_list" = ""; then
19047 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19048 fi
19049 for depmode in $am_compiler_list; do
19050 if test $depmode = none; then break; fi
19051
19052 $as_echo "$as_me:$LINENO: trying $depmode" >&5
19053 # Setup a source with many dependencies, because some compilers
19054 # like to wrap large dependency lists on column 80 (with \), and
19055 # we should not choose a depcomp mode which is confused by this.
19056 #
19057 # We need to recreate these files for each test, as the compiler may
19058 # overwrite some of them when testing with obscure command lines.
19059 # This happens at least with the AIX C compiler.
19060 : > sub/conftest.c
19061 for i in 1 2 3 4 5 6; do
19062 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19063 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19064 # Solaris 8's {/usr,}/bin/sh.
19065 touch sub/conftst$i.h
19066 done
19067 echo "include sub/conftest.Po" > confmf
19068
19069 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19070 # mode. It turns out that the SunPro C++ compiler does not properly
19071 # handle `-M -o', and we need to detect this.
19072 depcmd="depmode=$depmode \
19073 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19074 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19075 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
19076 echo "| $depcmd" | sed -e 's/ */ /g' >&5
19077 if env $depcmd > conftest.err 2>&1 &&
19078 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
19079 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
19080 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
19081 # icc doesn't choke on unknown options, it will just issue warnings
19082 # or remarks (even with -Werror). So we grep stderr for any message
19083 # that says an option was ignored or not supported.
19084 # When given -MP, icc 7.0 and 7.1 complain thusly:
19085 # icc: Command line warning: ignoring option '-M'; no argument required
19086 # The diagnosis changed in icc 8.0:
19087 # icc: Command line remark: option '-MP' not supported
19088 if (grep 'ignoring option' conftest.err ||
19089 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19090 am_cv_CC_dependencies_compiler_type=$depmode
19091 $as_echo "$as_me:$LINENO: success" >&5
19092 break
19093 fi
19094 fi
19095 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
19096 sed -e 's/^/| /' < conftest.err >&5
19097 done
19098
19099 cd ..
19100 rm -rf conftest.dir
19101 else
19102 am_cv_CC_dependencies_compiler_type=none
19103 fi
19104
19105 fi
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19107 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19108 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
19109 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
19110 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19111
19112 fi
19113
19114
19115 # Since the first call to PKG_CHECK_MODULES may not happen (is guarded by
19116 # a condition), we must call PKG_PROG_PKG_CONFIG explicitly to probe for
19117 # pkg-config.
19118
19119
19120
19121
19122
19123
19124
19125 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19126 if test -n "$ac_tool_prefix"; then
19127 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19128 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19130 $as_echo_n "checking for $ac_word... " >&6; }
19131 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19132 $as_echo_n "(cached) " >&6
19133 else
19134 case $PKG_CONFIG in
19135 [\\/]* | ?:[\\/]*)
19136 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19137 ;;
19138 *)
19139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19140 for as_dir in $PATH
19141 do
19142 IFS=$as_save_IFS
19143 test -z "$as_dir" && as_dir=.
19144 for ac_exec_ext in '' $ac_executable_extensions; do
19145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19146 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19148 break 2
19149 fi
19150 done
19151 done
19152 IFS=$as_save_IFS
19153
19154 ;;
19155 esac
19156 fi
19157 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19158 if test -n "$PKG_CONFIG"; then
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19160 $as_echo "$PKG_CONFIG" >&6; }
19161 else
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19163 $as_echo "no" >&6; }
19164 fi
19165
19166
19167 fi
19168 if test -z "$ac_cv_path_PKG_CONFIG"; then
19169 ac_pt_PKG_CONFIG=$PKG_CONFIG
19170 # Extract the first word of "pkg-config", so it can be a program name with args.
19171 set dummy pkg-config; ac_word=$2
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19173 $as_echo_n "checking for $ac_word... " >&6; }
19174 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19175 $as_echo_n "(cached) " >&6
19176 else
19177 case $ac_pt_PKG_CONFIG in
19178 [\\/]* | ?:[\\/]*)
19179 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19180 ;;
19181 *)
19182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19183 for as_dir in $PATH
19184 do
19185 IFS=$as_save_IFS
19186 test -z "$as_dir" && as_dir=.
19187 for ac_exec_ext in '' $ac_executable_extensions; do
19188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19189 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19191 break 2
19192 fi
19193 done
19194 done
19195 IFS=$as_save_IFS
19196
19197 ;;
19198 esac
19199 fi
19200 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19201 if test -n "$ac_pt_PKG_CONFIG"; then
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19203 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19204 else
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19206 $as_echo "no" >&6; }
19207 fi
19208
19209 if test "x$ac_pt_PKG_CONFIG" = x; then
19210 PKG_CONFIG=""
19211 else
19212 case $cross_compiling:$ac_tool_warned in
19213 yes:)
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19216 ac_tool_warned=yes ;;
19217 esac
19218 PKG_CONFIG=$ac_pt_PKG_CONFIG
19219 fi
19220 else
19221 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19222 fi
19223
19224 fi
19225 if test -n "$PKG_CONFIG"; then
19226 _pkg_min_version=0.9.0
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19228 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19229 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19231 $as_echo "yes" >&6; }
19232 else
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19234 $as_echo "no" >&6; }
19235 PKG_CONFIG=""
19236 fi
19237 fi
19238
19239
19240 CONFIG_OBS=
19241 CONFIG_DEPS=
19242 CONFIG_SRCS=
19243 ENABLE_CFLAGS=
19244
19245 CONFIG_ALL=
19246 CONFIG_CLEAN=
19247 CONFIG_INSTALL=
19248 CONFIG_UNINSTALL=
19249
19250 # If we haven't got the data from the intl directory,
19251 # assume NLS is disabled.
19252 USE_NLS=no
19253 LIBINTL=
19254 LIBINTL_DEP=
19255 INCINTL=
19256 XGETTEXT=
19257 GMSGFMT=
19258 POSUB=
19259
19260 if test -f ../intl/config.intl; then
19261 . ../intl/config.intl
19262 fi
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19264 $as_echo_n "checking whether NLS is requested... " >&6; }
19265 if test x"$USE_NLS" != xyes; then
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19267 $as_echo "no" >&6; }
19268 else
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19270 $as_echo "yes" >&6; }
19271
19272 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19273
19274
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
19276 $as_echo_n "checking for catalogs to be installed... " >&6; }
19277 # Look for .po and .gmo files in the source directory.
19278 CATALOGS=
19279 XLINGUAS=
19280 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
19281 # If there aren't any .gmo files the shell will give us the
19282 # literal string "../path/to/srcdir/po/*.gmo" which has to be
19283 # weeded out.
19284 case "$cat" in *\**)
19285 continue;;
19286 esac
19287 # The quadruple backslash is collapsed to a double backslash
19288 # by the backticks, then collapsed again by the double quotes,
19289 # leaving us with one backslash in the sed expression (right
19290 # before the dot that mustn't act as a wildcard).
19291 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
19292 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
19293 # The user is allowed to set LINGUAS to a list of languages to
19294 # install catalogs for. If it's empty that means "all of them."
19295 if test "x$LINGUAS" = x; then
19296 CATALOGS="$CATALOGS $cat"
19297 XLINGUAS="$XLINGUAS $lang"
19298 else
19299 case "$LINGUAS" in *$lang*)
19300 CATALOGS="$CATALOGS $cat"
19301 XLINGUAS="$XLINGUAS $lang"
19302 ;;
19303 esac
19304 fi
19305 done
19306 LINGUAS="$XLINGUAS"
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
19308 $as_echo "$LINGUAS" >&6; }
19309
19310
19311 DATADIRNAME=share
19312
19313 INSTOBJEXT=.mo
19314
19315 GENCAT=gencat
19316
19317 CATOBJEXT=.gmo
19318
19319 fi
19320
19321 localedir='${datadir}/locale'
19322
19323
19324 if test x"$USE_NLS" = xyes; then
19325 CONFIG_ALL="$CONFIG_ALL all-po"
19326 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
19327 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
19328 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
19329 fi
19330
19331 PACKAGE=gdb
19332
19333 cat >>confdefs.h <<_ACEOF
19334 #define PACKAGE "$PACKAGE"
19335 _ACEOF
19336
19337
19338
19339 # We never need to detect it in this sub-configure.
19340 # But preserve it for config.status --recheck.
19341
19342
19343
19344 MAKEINFO_EXTRA_FLAGS=""
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
19346 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
19347 if ${gdb_cv_have_makeinfo_click+:} false; then :
19348 $as_echo_n "(cached) " >&6
19349 else
19350 echo '@clicksequence{a @click{} b}' >conftest.texinfo
19351 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
19352 gdb_cv_have_makeinfo_click=yes
19353 else
19354 gdb_cv_have_makeinfo_click=no
19355 fi
19356 fi
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
19358 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
19359 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
19360 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
19361 fi
19362
19363
19364
19365
19366 # Check whether --with-separate-debug-dir was given.
19367 if test "${with_separate_debug_dir+set}" = set; then :
19368 withval=$with_separate_debug_dir;
19369 DEBUGDIR=$withval
19370 else
19371 DEBUGDIR=${libdir}/debug
19372 fi
19373
19374
19375 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19376 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19377 ac_define_dir=`eval echo $DEBUGDIR`
19378 ac_define_dir=`eval echo $ac_define_dir`
19379
19380 cat >>confdefs.h <<_ACEOF
19381 #define DEBUGDIR "$ac_define_dir"
19382 _ACEOF
19383
19384
19385
19386
19387 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19388 if test "x$prefix" = xNONE; then
19389 test_prefix=/usr/local
19390 else
19391 test_prefix=$prefix
19392 fi
19393 else
19394 test_prefix=$exec_prefix
19395 fi
19396 value=0
19397 case ${ac_define_dir} in
19398 "${test_prefix}"|"${test_prefix}/"*|\
19399 '${exec_prefix}'|'${exec_prefix}/'*)
19400 value=1
19401 ;;
19402 esac
19403
19404 cat >>confdefs.h <<_ACEOF
19405 #define DEBUGDIR_RELOCATABLE $value
19406 _ACEOF
19407
19408
19409
19410
19411
19412 # Check whether --with-additional-debug-dirs was given.
19413 if test "${with_additional_debug_dirs+set}" = set; then :
19414 withval=$with_additional_debug_dirs;
19415 cat >>confdefs.h <<_ACEOF
19416 #define ADDITIONAL_DEBUG_DIRS "${withval}"
19417 _ACEOF
19418
19419 fi
19420
19421
19422 # We can't pass paths as command line arguments.
19423 # Mingw32 tries to be clever and will convert the paths for us.
19424 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
19425 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
19426 # This breaks GDB's relocatable path conversions since paths passed in
19427 # config.h would not get so translated, the path prefixes no longer match.
19428
19429 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19430 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19431 ac_define_dir=`eval echo $bindir`
19432 ac_define_dir=`eval echo $ac_define_dir`
19433
19434 cat >>confdefs.h <<_ACEOF
19435 #define BINDIR "$ac_define_dir"
19436 _ACEOF
19437
19438
19439
19440 # GDB's datadir relocation
19441
19442
19443
19444 # Check whether --with-gdb-datadir was given.
19445 if test "${with_gdb_datadir+set}" = set; then :
19446 withval=$with_gdb_datadir;
19447 GDB_DATADIR=$withval
19448 else
19449 GDB_DATADIR=${datadir}/gdb
19450 fi
19451
19452
19453 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19455 ac_define_dir=`eval echo $GDB_DATADIR`
19456 ac_define_dir=`eval echo $ac_define_dir`
19457
19458 cat >>confdefs.h <<_ACEOF
19459 #define GDB_DATADIR "$ac_define_dir"
19460 _ACEOF
19461
19462
19463
19464
19465 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19466 if test "x$prefix" = xNONE; then
19467 test_prefix=/usr/local
19468 else
19469 test_prefix=$prefix
19470 fi
19471 else
19472 test_prefix=$exec_prefix
19473 fi
19474 value=0
19475 case ${ac_define_dir} in
19476 "${test_prefix}"|"${test_prefix}/"*|\
19477 '${exec_prefix}'|'${exec_prefix}/'*)
19478 value=1
19479 ;;
19480 esac
19481
19482 cat >>confdefs.h <<_ACEOF
19483 #define GDB_DATADIR_RELOCATABLE $value
19484 _ACEOF
19485
19486
19487
19488
19489
19490 # Check whether --with-relocated-sources was given.
19491 if test "${with_relocated_sources+set}" = set; then :
19492 withval=$with_relocated_sources; reloc_srcdir="${withval}"
19493
19494 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19495 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19496 ac_define_dir=`eval echo $reloc_srcdir`
19497 ac_define_dir=`eval echo $ac_define_dir`
19498
19499 cat >>confdefs.h <<_ACEOF
19500 #define RELOC_SRCDIR "$ac_define_dir"
19501 _ACEOF
19502
19503
19504
19505 fi
19506
19507
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
19509 $as_echo_n "checking for default auto-load directory... " >&6; }
19510
19511 # Check whether --with-auto-load-dir was given.
19512 if test "${with_auto_load_dir+set}" = set; then :
19513 withval=$with_auto_load_dir;
19514 else
19515 with_auto_load_dir='$debugdir:$datadir/auto-load'
19516 fi
19517
19518 escape_dir=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
19519
19520 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19521 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19522 ac_define_dir=`eval echo $escape_dir`
19523 ac_define_dir=`eval echo $ac_define_dir`
19524
19525 cat >>confdefs.h <<_ACEOF
19526 #define AUTO_LOAD_DIR "$ac_define_dir"
19527 _ACEOF
19528
19529
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
19531 $as_echo "$with_auto_load_dir" >&6; }
19532
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
19534 $as_echo_n "checking for default auto-load safe-path... " >&6; }
19535
19536 # Check whether --with-auto-load-safe-path was given.
19537 if test "${with_auto_load_safe_path+set}" = set; then :
19538 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
19539 with_auto_load_safe_path="/"
19540 fi
19541 else
19542 with_auto_load_safe_path="$with_auto_load_dir"
19543 fi
19544
19545 escape_dir=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
19546
19547 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19548 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19549 ac_define_dir=`eval echo $escape_dir`
19550 ac_define_dir=`eval echo $ac_define_dir`
19551
19552 cat >>confdefs.h <<_ACEOF
19553 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
19554 _ACEOF
19555
19556
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
19558 $as_echo "$with_auto_load_safe_path" >&6; }
19559
19560
19561
19562 subdirs="$subdirs testsuite"
19563
19564
19565 # Check whether to support alternative target configurations
19566 # Check whether --enable-targets was given.
19567 if test "${enable_targets+set}" = set; then :
19568 enableval=$enable_targets; case "${enableval}" in
19569 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
19570 ;;
19571 no) enable_targets= ;;
19572 *) enable_targets=$enableval ;;
19573 esac
19574 fi
19575
19576
19577 # Check whether --enable-64-bit-bfd was given.
19578 if test "${enable_64_bit_bfd+set}" = set; then :
19579 enableval=$enable_64_bit_bfd; case $enableval in #(
19580 yes|no) :
19581 ;; #(
19582 *) :
19583 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
19584 *) :
19585 ;;
19586 esac
19587 else
19588 enable_64_bit_bfd=no
19589 fi
19590
19591
19592 if test "x$enable_64_bit_bfd" = "xno"; then :
19593 # The cast to long int works around a bug in the HP C Compiler
19594 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19595 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19596 # This bug is HP SR number 8606223364.
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
19598 $as_echo_n "checking size of void *... " >&6; }
19599 if ${ac_cv_sizeof_void_p+:} false; then :
19600 $as_echo_n "(cached) " >&6
19601 else
19602 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
19603
19604 else
19605 if test "$ac_cv_type_void_p" = yes; then
19606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19608 as_fn_error 77 "cannot compute sizeof (void *)
19609 See \`config.log' for more details" "$LINENO" 5; }
19610 else
19611 ac_cv_sizeof_void_p=0
19612 fi
19613 fi
19614
19615 fi
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
19617 $as_echo "$ac_cv_sizeof_void_p" >&6; }
19618
19619
19620
19621 cat >>confdefs.h <<_ACEOF
19622 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19623 _ACEOF
19624
19625
19626 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
19627 enable_64_bit_bfd=yes
19628 fi
19629
19630 fi
19631
19632 if test "x$enable_64_bit_bfd" = "xyes"; then
19633 ENABLE_BFD_64_BIT_TRUE=
19634 ENABLE_BFD_64_BIT_FALSE='#'
19635 else
19636 ENABLE_BFD_64_BIT_TRUE='#'
19637 ENABLE_BFD_64_BIT_FALSE=
19638 fi
19639
19640
19641
19642 # Provide defaults for some variables set by the per-host and per-target
19643 # configuration.
19644 gdb_host_obs=posix-hdep.o
19645
19646 if test "${target}" = "${host}"; then
19647 gdb_native=yes
19648 else
19649 gdb_native=no
19650 fi
19651
19652 . $srcdir/configure.host
19653
19654 # Accumulate some settings from configure.tgt over all enabled targets
19655
19656 TARGET_OBS=
19657 all_targets=
19658 HAVE_NATIVE_GCORE_TARGET=
19659
19660 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
19661 do
19662 if test "$targ_alias" = "all"; then
19663 all_targets=true
19664 else
19665 # Canonicalize the secondary target names.
19666 result=`$ac_config_sub $targ_alias 2>/dev/null`
19667 if test -n "$result"; then
19668 targ=$result
19669 else
19670 targ=$targ_alias
19671 fi
19672
19673 . ${srcdir}/configure.tgt
19674
19675 if test -z "${gdb_target_obs}"; then :
19676 as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5
19677 fi
19678
19679 # Target-specific object files
19680 for i in ${gdb_target_obs}; do
19681 case " $TARGET_OBS " in
19682 *" ${i} "*) ;;
19683 *)
19684 TARGET_OBS="$TARGET_OBS ${i}"
19685 ;;
19686 esac
19687 done
19688
19689 # Check whether this target needs 64-bit CORE_ADDR
19690 if test x${enable_64_bit_bfd} = xno; then
19691 . ${srcdir}/../bfd/config.bfd
19692 fi
19693
19694 # Check whether this target is native and supports gcore.
19695 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
19696 && $gdb_have_gcore; then
19697 HAVE_NATIVE_GCORE_TARGET=1
19698 fi
19699 fi
19700 done
19701
19702 if test x${all_targets} = xtrue; then
19703 if test x${enable_64_bit_bfd} = xyes; then
19704 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
19705 else
19706 TARGET_OBS='$(ALL_TARGET_OBS)'
19707 fi
19708 fi
19709
19710 # AMD debugger API support.
19711
19712
19713 # Check whether --with-amd-dbgapi was given.
19714 if test "${with_amd_dbgapi+set}" = set; then :
19715 withval=$with_amd_dbgapi;
19716 case $withval in
19717 yes | no | auto)
19718 ;;
19719 *)
19720 as_fn_error $? "bad value $withval for --with-amd-dbgapi" "$LINENO" 5
19721 ;;
19722 esac
19723
19724 else
19725 with_amd_dbgapi=auto
19726 fi
19727
19728
19729 # If the user passes --without-amd-dbgapi but also explicitly enables a target
19730 # that requires amd-dbgapi, it is an error.
19731 if test "$with_amd_dbgapi" = no -a "$gdb_require_amd_dbgapi" = true; then
19732 as_fn_error $? "an explicitly enabled target requires amd-dbgapi, but amd-dbgapi is explicitly disabled" "$LINENO" 5
19733 fi
19734
19735 # Look for amd-dbgapi if:
19736 #
19737 # - a target architecture requiring it has explicitly been enabled, or
19738 # - --enable-targets=all was provided and the user did not explicitly disable
19739 # amd-dbgapi support
19740 if test "$gdb_require_amd_dbgapi" = true \
19741 -o \( "$all_targets" = true -a "$with_amd_dbgapi" != no \); then
19742 # amd-dbgapi version 0.68 is part of ROCm 5.4. There is no guarantee of API
19743 # stability until amd-dbgapi hits 1.0, but for convenience, still check for
19744 # greater or equal that version. It can be handy when testing with a newer
19745 # version of the library.
19746
19747 pkg_failed=no
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amd-dbgapi >= 0.68.0" >&5
19749 $as_echo_n "checking for amd-dbgapi >= 0.68.0... " >&6; }
19750
19751 if test -n "$AMD_DBGAPI_CFLAGS"; then
19752 pkg_cv_AMD_DBGAPI_CFLAGS="$AMD_DBGAPI_CFLAGS"
19753 elif test -n "$PKG_CONFIG"; then
19754 if test -n "$PKG_CONFIG" && \
19755 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.68.0\""; } >&5
19756 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.68.0") 2>&5
19757 ac_status=$?
19758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19759 test $ac_status = 0; }; then
19760 pkg_cv_AMD_DBGAPI_CFLAGS=`$PKG_CONFIG --cflags "amd-dbgapi >= 0.68.0" 2>/dev/null`
19761 test "x$?" != "x0" && pkg_failed=yes
19762 else
19763 pkg_failed=yes
19764 fi
19765 else
19766 pkg_failed=untried
19767 fi
19768 if test -n "$AMD_DBGAPI_LIBS"; then
19769 pkg_cv_AMD_DBGAPI_LIBS="$AMD_DBGAPI_LIBS"
19770 elif test -n "$PKG_CONFIG"; then
19771 if test -n "$PKG_CONFIG" && \
19772 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.68.0\""; } >&5
19773 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.68.0") 2>&5
19774 ac_status=$?
19775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19776 test $ac_status = 0; }; then
19777 pkg_cv_AMD_DBGAPI_LIBS=`$PKG_CONFIG --libs "amd-dbgapi >= 0.68.0" 2>/dev/null`
19778 test "x$?" != "x0" && pkg_failed=yes
19779 else
19780 pkg_failed=yes
19781 fi
19782 else
19783 pkg_failed=untried
19784 fi
19785
19786 if test $pkg_failed = no; then
19787 pkg_save_LDFLAGS="$LDFLAGS"
19788 LDFLAGS="$LDFLAGS $pkg_cv_AMD_DBGAPI_LIBS"
19789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790 /* end confdefs.h. */
19791
19792 int
19793 main ()
19794 {
19795
19796 ;
19797 return 0;
19798 }
19799 _ACEOF
19800 if ac_fn_c_try_link "$LINENO"; then :
19801
19802 else
19803 pkg_failed=yes
19804 fi
19805 rm -f core conftest.err conftest.$ac_objext \
19806 conftest$ac_exeext conftest.$ac_ext
19807 LDFLAGS=$pkg_save_LDFLAGS
19808 fi
19809
19810
19811
19812 if test $pkg_failed = yes; then
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19814 $as_echo "no" >&6; }
19815
19816 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19817 _pkg_short_errors_supported=yes
19818 else
19819 _pkg_short_errors_supported=no
19820 fi
19821 if test $_pkg_short_errors_supported = yes; then
19822 AMD_DBGAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "amd-dbgapi >= 0.68.0" 2>&1`
19823 else
19824 AMD_DBGAPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "amd-dbgapi >= 0.68.0" 2>&1`
19825 fi
19826 # Put the nasty error message in config.log where it belongs
19827 echo "$AMD_DBGAPI_PKG_ERRORS" >&5
19828
19829 has_amd_dbgapi=no
19830 elif test $pkg_failed = untried; then
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19832 $as_echo "no" >&6; }
19833 has_amd_dbgapi=no
19834 else
19835 AMD_DBGAPI_CFLAGS=$pkg_cv_AMD_DBGAPI_CFLAGS
19836 AMD_DBGAPI_LIBS=$pkg_cv_AMD_DBGAPI_LIBS
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19838 $as_echo "yes" >&6; }
19839 has_amd_dbgapi=yes
19840 fi
19841
19842 if test "$has_amd_dbgapi" = "yes"; then
19843
19844 $as_echo "#define HAVE_AMD_DBGAPI 1" >>confdefs.h
19845
19846 TARGET_OBS="$TARGET_OBS amd-dbgapi-target.o"
19847
19848 # If --enable-targets=all was provided, use the list of all files depending
19849 # on amd-dbgapi that is hardcoded in the Makefile. Else, the appropriate
19850 # architecture entry in configure.tgt will have added the files to
19851 # gdb_target_obs.
19852 if test "$all_targets" = true; then
19853 TARGET_OBS="$TARGET_OBS \$(ALL_AMD_DBGAPI_TARGET_OBS)"
19854 fi
19855 elif test "$gdb_require_amd_dbgapi" = true -o "$with_amd_dbgapi" = yes; then
19856 # amd-dbgapi was not found and...
19857 #
19858 # - a target requiring it was explicitly enabled, or
19859 # - the user explicitly wants to enable amd-dbgapi
19860 as_fn_error $? "amd-dbgapi is required, but cannot find an appropriate version: $AMD_DBGAPI_PKG_ERRORS" "$LINENO" 5
19861 fi
19862 fi
19863
19864
19865
19866
19867 # For other settings, only the main target counts.
19868 gdb_sim=
19869 gdb_osabi=
19870 targ=$target; . ${srcdir}/configure.tgt
19871
19872 # Fetch the default architecture and default target vector from BFD.
19873 targ=$target; . $srcdir/../bfd/config.bfd
19874
19875 # We only want the first architecture, so strip off the others if
19876 # there is more than one.
19877 targ_archs=`echo $targ_archs | sed 's/ .*//'`
19878
19879 if test "x$targ_archs" != x; then
19880
19881 cat >>confdefs.h <<_ACEOF
19882 #define DEFAULT_BFD_ARCH $targ_archs
19883 _ACEOF
19884
19885 fi
19886 if test "x$targ_defvec" != x; then
19887
19888 cat >>confdefs.h <<_ACEOF
19889 #define DEFAULT_BFD_VEC $targ_defvec
19890 _ACEOF
19891
19892 fi
19893
19894 # Enable TUI.
19895 # Check whether --enable-tui was given.
19896 if test "${enable_tui+set}" = set; then :
19897 enableval=$enable_tui;
19898 case $enableval in
19899 yes | no | auto)
19900 ;;
19901 *)
19902 as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5
19903 ;;
19904 esac
19905
19906 else
19907 enable_tui=auto
19908 fi
19909
19910
19911 # Enable gdbtk.
19912 # Check whether --enable-gdbtk was given.
19913 if test "${enable_gdbtk+set}" = set; then :
19914 enableval=$enable_gdbtk;
19915 case $enableval in
19916 yes | no)
19917 ;;
19918 *)
19919 as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5
19920 ;;
19921 esac
19922
19923 else
19924 if test -d "$srcdir/gdbtk"; then
19925 enable_gdbtk=yes
19926 else
19927 enable_gdbtk=no
19928 fi
19929 fi
19930
19931 # We unconditionally disable gdbtk tests on selected platforms.
19932 case $host_os in
19933 go32* | windows*)
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
19935 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
19936 enable_gdbtk=no ;;
19937 esac
19938
19939 # Handle optional debuginfod support
19940
19941 # Handle optional debuginfod support as well as optional section
19942 # downloading support.
19943 #
19944 # Define HAVE_LIBDEBUGINFOD if libdebuginfod is found with version >= 0.179.
19945 #
19946 # Define HAVE_LIBDEBUGINFOD_FIND_SECTION if libdebuginfod is found with
19947 # version >= 0.188.
19948
19949 # Check whether --with-debuginfod was given.
19950 if test "${with_debuginfod+set}" = set; then :
19951 withval=$with_debuginfod;
19952 else
19953 with_debuginfod=auto
19954 fi
19955
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
19957 $as_echo_n "checking whether to use debuginfod... " >&6; }
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
19959 $as_echo "$with_debuginfod" >&6; }
19960
19961 if test "x$with_debuginfod" != xno; then
19962
19963 pkg_failed=no
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.188" >&5
19965 $as_echo_n "checking for libdebuginfod >= 0.188... " >&6; }
19966
19967 if test -n "$DEBUGINFOD_CFLAGS"; then
19968 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
19969 elif test -n "$PKG_CONFIG"; then
19970 if test -n "$PKG_CONFIG" && \
19971 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
19972 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
19973 ac_status=$?
19974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19975 test $ac_status = 0; }; then
19976 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.188" 2>/dev/null`
19977 test "x$?" != "x0" && pkg_failed=yes
19978 else
19979 pkg_failed=yes
19980 fi
19981 else
19982 pkg_failed=untried
19983 fi
19984 if test -n "$DEBUGINFOD_LIBS"; then
19985 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
19986 elif test -n "$PKG_CONFIG"; then
19987 if test -n "$PKG_CONFIG" && \
19988 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
19989 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
19990 ac_status=$?
19991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19992 test $ac_status = 0; }; then
19993 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.188" 2>/dev/null`
19994 test "x$?" != "x0" && pkg_failed=yes
19995 else
19996 pkg_failed=yes
19997 fi
19998 else
19999 pkg_failed=untried
20000 fi
20001
20002 if test $pkg_failed = no; then
20003 pkg_save_LDFLAGS="$LDFLAGS"
20004 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
20005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20006 /* end confdefs.h. */
20007
20008 int
20009 main ()
20010 {
20011
20012 ;
20013 return 0;
20014 }
20015 _ACEOF
20016 if ac_fn_c_try_link "$LINENO"; then :
20017
20018 else
20019 pkg_failed=yes
20020 fi
20021 rm -f core conftest.err conftest.$ac_objext \
20022 conftest$ac_exeext conftest.$ac_ext
20023 LDFLAGS=$pkg_save_LDFLAGS
20024 fi
20025
20026
20027
20028 if test $pkg_failed = yes; then
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20030 $as_echo "no" >&6; }
20031
20032 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20033 _pkg_short_errors_supported=yes
20034 else
20035 _pkg_short_errors_supported=no
20036 fi
20037 if test $_pkg_short_errors_supported = yes; then
20038 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
20039 else
20040 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
20041 fi
20042 # Put the nasty error message in config.log where it belongs
20043 echo "$DEBUGINFOD_PKG_ERRORS" >&5
20044
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
20046 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
20047 elif test $pkg_failed = untried; then
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20049 $as_echo "no" >&6; }
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
20051 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
20052 else
20053 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
20054 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20056 $as_echo "yes" >&6; }
20057
20058 $as_echo "#define HAVE_LIBDEBUGINFOD_FIND_SECTION 1" >>confdefs.h
20059
20060 fi
20061
20062
20063 pkg_failed=no
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
20065 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
20066
20067 if test -n "$DEBUGINFOD_CFLAGS"; then
20068 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
20069 elif test -n "$PKG_CONFIG"; then
20070 if test -n "$PKG_CONFIG" && \
20071 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
20072 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
20073 ac_status=$?
20074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20075 test $ac_status = 0; }; then
20076 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
20077 test "x$?" != "x0" && pkg_failed=yes
20078 else
20079 pkg_failed=yes
20080 fi
20081 else
20082 pkg_failed=untried
20083 fi
20084 if test -n "$DEBUGINFOD_LIBS"; then
20085 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
20086 elif test -n "$PKG_CONFIG"; then
20087 if test -n "$PKG_CONFIG" && \
20088 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
20089 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
20090 ac_status=$?
20091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20092 test $ac_status = 0; }; then
20093 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
20094 test "x$?" != "x0" && pkg_failed=yes
20095 else
20096 pkg_failed=yes
20097 fi
20098 else
20099 pkg_failed=untried
20100 fi
20101
20102 if test $pkg_failed = no; then
20103 pkg_save_LDFLAGS="$LDFLAGS"
20104 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
20105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20106 /* end confdefs.h. */
20107
20108 int
20109 main ()
20110 {
20111
20112 ;
20113 return 0;
20114 }
20115 _ACEOF
20116 if ac_fn_c_try_link "$LINENO"; then :
20117
20118 else
20119 pkg_failed=yes
20120 fi
20121 rm -f core conftest.err conftest.$ac_objext \
20122 conftest$ac_exeext conftest.$ac_ext
20123 LDFLAGS=$pkg_save_LDFLAGS
20124 fi
20125
20126
20127
20128 if test $pkg_failed = yes; then
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20130 $as_echo "no" >&6; }
20131
20132 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20133 _pkg_short_errors_supported=yes
20134 else
20135 _pkg_short_errors_supported=no
20136 fi
20137 if test $_pkg_short_errors_supported = yes; then
20138 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
20139 else
20140 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
20141 fi
20142 # Put the nasty error message in config.log where it belongs
20143 echo "$DEBUGINFOD_PKG_ERRORS" >&5
20144
20145 if test "x$with_debuginfod" = xyes; then
20146 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
20147 else
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
20149 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
20150 fi
20151 elif test $pkg_failed = untried; then
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20153 $as_echo "no" >&6; }
20154 if test "x$with_debuginfod" = xyes; then
20155 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
20156 else
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
20158 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
20159 fi
20160 else
20161 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
20162 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20164 $as_echo "yes" >&6; }
20165
20166 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
20167
20168 fi
20169 else
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
20171 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
20172 fi
20173
20174
20175 # Libunwind support for ia64.
20176
20177 # Check whether --with-libunwind-ia64 was given.
20178 if test "${with_libunwind_ia64+set}" = set; then :
20179 withval=$with_libunwind_ia64;
20180 else
20181 with_libunwind_ia64=auto
20182 fi
20183
20184
20185 # Backward compatibility option.
20186 if test "${with_libunwind+set}" = set; then
20187 if test x"$with_libunwind_ia64" != xauto; then
20188 as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
20189 fi
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
20191 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
20192 with_libunwind_ia64="$with_libunwind"
20193 fi
20194
20195 case "$with_libunwind_ia64" in
20196 yes | no)
20197 ;;
20198 auto)
20199 for ac_header in libunwind-ia64.h
20200 do :
20201 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
20202 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
20203 cat >>confdefs.h <<_ACEOF
20204 #define HAVE_LIBUNWIND_IA64_H 1
20205 _ACEOF
20206
20207 fi
20208
20209 done
20210
20211 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
20212 ;;
20213 *)
20214 as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
20215 ;;
20216 esac
20217
20218 if test x"$with_libunwind_ia64" = xyes; then
20219 for ac_header in libunwind-ia64.h
20220 do :
20221 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
20222 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
20223 cat >>confdefs.h <<_ACEOF
20224 #define HAVE_LIBUNWIND_IA64_H 1
20225 _ACEOF
20226
20227 fi
20228
20229 done
20230
20231 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
20232 as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
20233 fi
20234 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
20235 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
20236 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
20237 fi
20238
20239 opt_curses=no
20240
20241 # Check whether --with-curses was given.
20242 if test "${with_curses+set}" = set; then :
20243 withval=$with_curses; opt_curses=$withval
20244 fi
20245
20246
20247 prefer_curses=no
20248 if test "$opt_curses" = "yes"; then
20249 prefer_curses=yes
20250 fi
20251
20252 # Profiling support.
20253 # Check whether --enable-profiling was given.
20254 if test "${enable_profiling+set}" = set; then :
20255 enableval=$enable_profiling;
20256 case $enableval in
20257 yes | no)
20258 ;;
20259 *)
20260 as_fn_error $? "bad value $enableval for --enable-profiling" "$LINENO" 5
20261 ;;
20262 esac
20263
20264 else
20265 enable_profiling=no
20266 fi
20267
20268
20269 for ac_func in monstartup _mcleanup
20270 do :
20271 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20272 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20273 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20274 cat >>confdefs.h <<_ACEOF
20275 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20276 _ACEOF
20277
20278 fi
20279 done
20280
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
20282 $as_echo_n "checking for _etext... " >&6; }
20283 if ${ac_cv_var__etext+:} false; then :
20284 $as_echo_n "(cached) " >&6
20285 else
20286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20287 /* end confdefs.h. */
20288 #include <stdlib.h>
20289 extern char _etext;
20290 int
20291 main ()
20292 {
20293 free (&_etext);
20294
20295 ;
20296 return 0;
20297 }
20298 _ACEOF
20299 if ac_fn_c_try_link "$LINENO"; then :
20300 ac_cv_var__etext=yes
20301 else
20302 ac_cv_var__etext=no
20303
20304 fi
20305 rm -f core conftest.err conftest.$ac_objext \
20306 conftest$ac_exeext conftest.$ac_ext
20307
20308 fi
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
20310 $as_echo "$ac_cv_var__etext" >&6; }
20311 if test "$ac_cv_var__etext" = yes; then
20312
20313 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
20314
20315 fi
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
20317 $as_echo_n "checking for etext... " >&6; }
20318 if ${ac_cv_var_etext+:} false; then :
20319 $as_echo_n "(cached) " >&6
20320 else
20321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20322 /* end confdefs.h. */
20323 #include <stdlib.h>
20324 extern char etext;
20325 int
20326 main ()
20327 {
20328 free (&etext);
20329
20330 ;
20331 return 0;
20332 }
20333 _ACEOF
20334 if ac_fn_c_try_link "$LINENO"; then :
20335 ac_cv_var_etext=yes
20336 else
20337 ac_cv_var_etext=no
20338
20339 fi
20340 rm -f core conftest.err conftest.$ac_objext \
20341 conftest$ac_exeext conftest.$ac_ext
20342
20343 fi
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
20345 $as_echo "$ac_cv_var_etext" >&6; }
20346 if test "$ac_cv_var_etext" = yes; then
20347
20348 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
20349
20350 fi
20351 if test "$enable_profiling" = yes ; then
20352 if test "$ac_cv_func_monstartup" = no || test "$ac_cv_func__mcleanup" = no; then
20353 as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
20354 fi
20355 PROFILE_CFLAGS=-pg
20356 OLD_CFLAGS="$CFLAGS"
20357 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
20358
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
20360 $as_echo_n "checking whether $CC supports -pg... " >&6; }
20361 if ${ac_cv_cc_supports_pg+:} false; then :
20362 $as_echo_n "(cached) " >&6
20363 else
20364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20365 /* end confdefs.h. */
20366
20367 int
20368 main ()
20369 {
20370 int x;
20371 ;
20372 return 0;
20373 }
20374 _ACEOF
20375 if ac_fn_c_try_compile "$LINENO"; then :
20376 ac_cv_cc_supports_pg=yes
20377 else
20378 ac_cv_cc_supports_pg=no
20379
20380 fi
20381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20382
20383 fi
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
20385 $as_echo "$ac_cv_cc_supports_pg" >&6; }
20386
20387 if test "$ac_cv_cc_supports_pg" = no; then
20388 as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
20389 fi
20390
20391 CFLAGS="$OLD_CFLAGS"
20392 fi
20393
20394 CODESIGN_CERT=
20395 # Check whether --enable-codesign was given.
20396 if test "${enable_codesign+set}" = set; then :
20397 enableval=$enable_codesign; CODESIGN_CERT=$enableval
20398 fi
20399
20400
20401
20402
20403
20404 # Check whether --with-pkgversion was given.
20405 if test "${with_pkgversion+set}" = set; then :
20406 withval=$with_pkgversion; case "$withval" in
20407 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
20408 no) PKGVERSION= ;;
20409 *) PKGVERSION="($withval) " ;;
20410 esac
20411 else
20412 PKGVERSION="(GDB) "
20413
20414 fi
20415
20416
20417
20418
20419
20420 # Check whether --with-bugurl was given.
20421 if test "${with_bugurl+set}" = set; then :
20422 withval=$with_bugurl; case "$withval" in
20423 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
20424 no) BUGURL=
20425 ;;
20426 *) BUGURL="$withval"
20427 ;;
20428 esac
20429 else
20430 BUGURL="https://www.gnu.org/software/gdb/bugs/"
20431
20432 fi
20433
20434 case ${BUGURL} in
20435 "")
20436 REPORT_BUGS_TO=
20437 REPORT_BUGS_TEXI=
20438 ;;
20439 *)
20440 REPORT_BUGS_TO="<$BUGURL>"
20441 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20442 ;;
20443 esac;
20444
20445
20446
20447
20448 cat >>confdefs.h <<_ACEOF
20449 #define PKGVERSION "$PKGVERSION"
20450 _ACEOF
20451
20452
20453 cat >>confdefs.h <<_ACEOF
20454 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
20455 _ACEOF
20456
20457
20458 # --------------------- #
20459 # Checks for programs. #
20460 # --------------------- #
20461
20462 for ac_prog in gawk mawk nawk awk
20463 do
20464 # Extract the first word of "$ac_prog", so it can be a program name with args.
20465 set dummy $ac_prog; ac_word=$2
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20467 $as_echo_n "checking for $ac_word... " >&6; }
20468 if ${ac_cv_prog_AWK+:} false; then :
20469 $as_echo_n "(cached) " >&6
20470 else
20471 if test -n "$AWK"; then
20472 ac_cv_prog_AWK="$AWK" # Let the user override the test.
20473 else
20474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20475 for as_dir in $PATH
20476 do
20477 IFS=$as_save_IFS
20478 test -z "$as_dir" && as_dir=.
20479 for ac_exec_ext in '' $ac_executable_extensions; do
20480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20481 ac_cv_prog_AWK="$ac_prog"
20482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20483 break 2
20484 fi
20485 done
20486 done
20487 IFS=$as_save_IFS
20488
20489 fi
20490 fi
20491 AWK=$ac_cv_prog_AWK
20492 if test -n "$AWK"; then
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
20494 $as_echo "$AWK" >&6; }
20495 else
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20497 $as_echo "no" >&6; }
20498 fi
20499
20500
20501 test -n "$AWK" && break
20502 done
20503
20504 # Find a good install program. We prefer a C program (faster),
20505 # so one script is as good as another. But avoid the broken or
20506 # incompatible versions:
20507 # SysV /etc/install, /usr/sbin/install
20508 # SunOS /usr/etc/install
20509 # IRIX /sbin/install
20510 # AIX /bin/install
20511 # AmigaOS /C/install, which installs bootblocks on floppy discs
20512 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20513 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
20514 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20515 # OS/2's system install, which has a completely different semantic
20516 # ./install, which can be erroneously created by make from ./install.sh.
20517 # Reject install programs that cannot install multiple files.
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
20519 $as_echo_n "checking for a BSD-compatible install... " >&6; }
20520 if test -z "$INSTALL"; then
20521 if ${ac_cv_path_install+:} false; then :
20522 $as_echo_n "(cached) " >&6
20523 else
20524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20525 for as_dir in $PATH
20526 do
20527 IFS=$as_save_IFS
20528 test -z "$as_dir" && as_dir=.
20529 # Account for people who put trailing slashes in PATH elements.
20530 case $as_dir/ in #((
20531 ./ | .// | /[cC]/* | \
20532 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20533 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
20534 /usr/ucb/* ) ;;
20535 *)
20536 # OSF1 and SCO ODT 3.0 have their own names for install.
20537 # Don't use installbsd from OSF since it installs stuff as root
20538 # by default.
20539 for ac_prog in ginstall scoinst install; do
20540 for ac_exec_ext in '' $ac_executable_extensions; do
20541 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
20542 if test $ac_prog = install &&
20543 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20544 # AIX install. It has an incompatible calling convention.
20545 :
20546 elif test $ac_prog = install &&
20547 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20548 # program-specific install script used by HP pwplus--don't use.
20549 :
20550 else
20551 rm -rf conftest.one conftest.two conftest.dir
20552 echo one > conftest.one
20553 echo two > conftest.two
20554 mkdir conftest.dir
20555 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
20556 test -s conftest.one && test -s conftest.two &&
20557 test -s conftest.dir/conftest.one &&
20558 test -s conftest.dir/conftest.two
20559 then
20560 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20561 break 3
20562 fi
20563 fi
20564 fi
20565 done
20566 done
20567 ;;
20568 esac
20569
20570 done
20571 IFS=$as_save_IFS
20572
20573 rm -rf conftest.one conftest.two conftest.dir
20574
20575 fi
20576 if test "${ac_cv_path_install+set}" = set; then
20577 INSTALL=$ac_cv_path_install
20578 else
20579 # As a last resort, use the slow shell script. Don't cache a
20580 # value for INSTALL within a source directory, because that will
20581 # break other packages using the cache if that directory is
20582 # removed, or if the value is a relative name.
20583 INSTALL=$ac_install_sh
20584 fi
20585 fi
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
20587 $as_echo "$INSTALL" >&6; }
20588
20589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20590 # It thinks the first close brace ends the variable substitution.
20591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20592
20593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20594
20595 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20596
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
20598 $as_echo_n "checking whether ln -s works... " >&6; }
20599 LN_S=$as_ln_s
20600 if test "$LN_S" = "ln -s"; then
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20602 $as_echo "yes" >&6; }
20603 else
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
20605 $as_echo "no, using $LN_S" >&6; }
20606 fi
20607
20608 if test -n "$ac_tool_prefix"; then
20609 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20610 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20612 $as_echo_n "checking for $ac_word... " >&6; }
20613 if ${ac_cv_prog_RANLIB+:} false; then :
20614 $as_echo_n "(cached) " >&6
20615 else
20616 if test -n "$RANLIB"; then
20617 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20618 else
20619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20620 for as_dir in $PATH
20621 do
20622 IFS=$as_save_IFS
20623 test -z "$as_dir" && as_dir=.
20624 for ac_exec_ext in '' $ac_executable_extensions; do
20625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20626 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20628 break 2
20629 fi
20630 done
20631 done
20632 IFS=$as_save_IFS
20633
20634 fi
20635 fi
20636 RANLIB=$ac_cv_prog_RANLIB
20637 if test -n "$RANLIB"; then
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
20639 $as_echo "$RANLIB" >&6; }
20640 else
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20642 $as_echo "no" >&6; }
20643 fi
20644
20645
20646 fi
20647 if test -z "$ac_cv_prog_RANLIB"; then
20648 ac_ct_RANLIB=$RANLIB
20649 # Extract the first word of "ranlib", so it can be a program name with args.
20650 set dummy ranlib; ac_word=$2
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20652 $as_echo_n "checking for $ac_word... " >&6; }
20653 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
20654 $as_echo_n "(cached) " >&6
20655 else
20656 if test -n "$ac_ct_RANLIB"; then
20657 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20658 else
20659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20660 for as_dir in $PATH
20661 do
20662 IFS=$as_save_IFS
20663 test -z "$as_dir" && as_dir=.
20664 for ac_exec_ext in '' $ac_executable_extensions; do
20665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20666 ac_cv_prog_ac_ct_RANLIB="ranlib"
20667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20668 break 2
20669 fi
20670 done
20671 done
20672 IFS=$as_save_IFS
20673
20674 fi
20675 fi
20676 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20677 if test -n "$ac_ct_RANLIB"; then
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
20679 $as_echo "$ac_ct_RANLIB" >&6; }
20680 else
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20682 $as_echo "no" >&6; }
20683 fi
20684
20685 if test "x$ac_ct_RANLIB" = x; then
20686 RANLIB=":"
20687 else
20688 case $cross_compiling:$ac_tool_warned in
20689 yes:)
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20692 ac_tool_warned=yes ;;
20693 esac
20694 RANLIB=$ac_ct_RANLIB
20695 fi
20696 else
20697 RANLIB="$ac_cv_prog_RANLIB"
20698 fi
20699
20700 for ac_prog in 'bison -y' byacc
20701 do
20702 # Extract the first word of "$ac_prog", so it can be a program name with args.
20703 set dummy $ac_prog; ac_word=$2
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20705 $as_echo_n "checking for $ac_word... " >&6; }
20706 if ${ac_cv_prog_YACC+:} false; then :
20707 $as_echo_n "(cached) " >&6
20708 else
20709 if test -n "$YACC"; then
20710 ac_cv_prog_YACC="$YACC" # Let the user override the test.
20711 else
20712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20713 for as_dir in $PATH
20714 do
20715 IFS=$as_save_IFS
20716 test -z "$as_dir" && as_dir=.
20717 for ac_exec_ext in '' $ac_executable_extensions; do
20718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20719 ac_cv_prog_YACC="$ac_prog"
20720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20721 break 2
20722 fi
20723 done
20724 done
20725 IFS=$as_save_IFS
20726
20727 fi
20728 fi
20729 YACC=$ac_cv_prog_YACC
20730 if test -n "$YACC"; then
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
20732 $as_echo "$YACC" >&6; }
20733 else
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20735 $as_echo "no" >&6; }
20736 fi
20737
20738
20739 test -n "$YACC" && break
20740 done
20741 test -n "$YACC" || YACC="yacc"
20742
20743
20744 if test -n "$ac_tool_prefix"; then
20745 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20746 set dummy ${ac_tool_prefix}ar; ac_word=$2
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20748 $as_echo_n "checking for $ac_word... " >&6; }
20749 if ${ac_cv_prog_AR+:} false; then :
20750 $as_echo_n "(cached) " >&6
20751 else
20752 if test -n "$AR"; then
20753 ac_cv_prog_AR="$AR" # Let the user override the test.
20754 else
20755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20756 for as_dir in $PATH
20757 do
20758 IFS=$as_save_IFS
20759 test -z "$as_dir" && as_dir=.
20760 for ac_exec_ext in '' $ac_executable_extensions; do
20761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20762 ac_cv_prog_AR="${ac_tool_prefix}ar"
20763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20764 break 2
20765 fi
20766 done
20767 done
20768 IFS=$as_save_IFS
20769
20770 fi
20771 fi
20772 AR=$ac_cv_prog_AR
20773 if test -n "$AR"; then
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
20775 $as_echo "$AR" >&6; }
20776 else
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20778 $as_echo "no" >&6; }
20779 fi
20780
20781
20782 fi
20783 if test -z "$ac_cv_prog_AR"; then
20784 ac_ct_AR=$AR
20785 # Extract the first word of "ar", so it can be a program name with args.
20786 set dummy ar; ac_word=$2
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20788 $as_echo_n "checking for $ac_word... " >&6; }
20789 if ${ac_cv_prog_ac_ct_AR+:} false; then :
20790 $as_echo_n "(cached) " >&6
20791 else
20792 if test -n "$ac_ct_AR"; then
20793 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20794 else
20795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20796 for as_dir in $PATH
20797 do
20798 IFS=$as_save_IFS
20799 test -z "$as_dir" && as_dir=.
20800 for ac_exec_ext in '' $ac_executable_extensions; do
20801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20802 ac_cv_prog_ac_ct_AR="ar"
20803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20804 break 2
20805 fi
20806 done
20807 done
20808 IFS=$as_save_IFS
20809
20810 fi
20811 fi
20812 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20813 if test -n "$ac_ct_AR"; then
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
20815 $as_echo "$ac_ct_AR" >&6; }
20816 else
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20818 $as_echo "no" >&6; }
20819 fi
20820
20821 if test "x$ac_ct_AR" = x; then
20822 AR=""
20823 else
20824 case $cross_compiling:$ac_tool_warned in
20825 yes:)
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20828 ac_tool_warned=yes ;;
20829 esac
20830 AR=$ac_ct_AR
20831 fi
20832 else
20833 AR="$ac_cv_prog_AR"
20834 fi
20835
20836 if test -n "$ac_tool_prefix"; then
20837 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
20838 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20840 $as_echo_n "checking for $ac_word... " >&6; }
20841 if ${ac_cv_prog_DLLTOOL+:} false; then :
20842 $as_echo_n "(cached) " >&6
20843 else
20844 if test -n "$DLLTOOL"; then
20845 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
20846 else
20847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20848 for as_dir in $PATH
20849 do
20850 IFS=$as_save_IFS
20851 test -z "$as_dir" && as_dir=.
20852 for ac_exec_ext in '' $ac_executable_extensions; do
20853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20854 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
20855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20856 break 2
20857 fi
20858 done
20859 done
20860 IFS=$as_save_IFS
20861
20862 fi
20863 fi
20864 DLLTOOL=$ac_cv_prog_DLLTOOL
20865 if test -n "$DLLTOOL"; then
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
20867 $as_echo "$DLLTOOL" >&6; }
20868 else
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20870 $as_echo "no" >&6; }
20871 fi
20872
20873
20874 fi
20875 if test -z "$ac_cv_prog_DLLTOOL"; then
20876 ac_ct_DLLTOOL=$DLLTOOL
20877 # Extract the first word of "dlltool", so it can be a program name with args.
20878 set dummy dlltool; ac_word=$2
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20880 $as_echo_n "checking for $ac_word... " >&6; }
20881 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
20882 $as_echo_n "(cached) " >&6
20883 else
20884 if test -n "$ac_ct_DLLTOOL"; then
20885 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
20886 else
20887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20888 for as_dir in $PATH
20889 do
20890 IFS=$as_save_IFS
20891 test -z "$as_dir" && as_dir=.
20892 for ac_exec_ext in '' $ac_executable_extensions; do
20893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20894 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
20895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20896 break 2
20897 fi
20898 done
20899 done
20900 IFS=$as_save_IFS
20901
20902 fi
20903 fi
20904 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
20905 if test -n "$ac_ct_DLLTOOL"; then
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
20907 $as_echo "$ac_ct_DLLTOOL" >&6; }
20908 else
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20910 $as_echo "no" >&6; }
20911 fi
20912
20913 if test "x$ac_ct_DLLTOOL" = x; then
20914 DLLTOOL=""
20915 else
20916 case $cross_compiling:$ac_tool_warned in
20917 yes:)
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20920 ac_tool_warned=yes ;;
20921 esac
20922 DLLTOOL=$ac_ct_DLLTOOL
20923 fi
20924 else
20925 DLLTOOL="$ac_cv_prog_DLLTOOL"
20926 fi
20927
20928 if test -n "$ac_tool_prefix"; then
20929 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20930 set dummy ${ac_tool_prefix}windres; ac_word=$2
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20932 $as_echo_n "checking for $ac_word... " >&6; }
20933 if ${ac_cv_prog_WINDRES+:} false; then :
20934 $as_echo_n "(cached) " >&6
20935 else
20936 if test -n "$WINDRES"; then
20937 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20938 else
20939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20940 for as_dir in $PATH
20941 do
20942 IFS=$as_save_IFS
20943 test -z "$as_dir" && as_dir=.
20944 for ac_exec_ext in '' $ac_executable_extensions; do
20945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20946 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
20947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20948 break 2
20949 fi
20950 done
20951 done
20952 IFS=$as_save_IFS
20953
20954 fi
20955 fi
20956 WINDRES=$ac_cv_prog_WINDRES
20957 if test -n "$WINDRES"; then
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
20959 $as_echo "$WINDRES" >&6; }
20960 else
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20962 $as_echo "no" >&6; }
20963 fi
20964
20965
20966 fi
20967 if test -z "$ac_cv_prog_WINDRES"; then
20968 ac_ct_WINDRES=$WINDRES
20969 # Extract the first word of "windres", so it can be a program name with args.
20970 set dummy windres; ac_word=$2
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20972 $as_echo_n "checking for $ac_word... " >&6; }
20973 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
20974 $as_echo_n "(cached) " >&6
20975 else
20976 if test -n "$ac_ct_WINDRES"; then
20977 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20978 else
20979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20980 for as_dir in $PATH
20981 do
20982 IFS=$as_save_IFS
20983 test -z "$as_dir" && as_dir=.
20984 for ac_exec_ext in '' $ac_executable_extensions; do
20985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20986 ac_cv_prog_ac_ct_WINDRES="windres"
20987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20988 break 2
20989 fi
20990 done
20991 done
20992 IFS=$as_save_IFS
20993
20994 fi
20995 fi
20996 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20997 if test -n "$ac_ct_WINDRES"; then
20998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
20999 $as_echo "$ac_ct_WINDRES" >&6; }
21000 else
21001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21002 $as_echo "no" >&6; }
21003 fi
21004
21005 if test "x$ac_ct_WINDRES" = x; then
21006 WINDRES=""
21007 else
21008 case $cross_compiling:$ac_tool_warned in
21009 yes:)
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21012 ac_tool_warned=yes ;;
21013 esac
21014 WINDRES=$ac_ct_WINDRES
21015 fi
21016 else
21017 WINDRES="$ac_cv_prog_WINDRES"
21018 fi
21019
21020
21021 case $host_os in
21022 gnu*)
21023 # Needed for GNU Hurd hosts.
21024 if test -n "$ac_tool_prefix"; then
21025 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
21026 set dummy ${ac_tool_prefix}mig; ac_word=$2
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21028 $as_echo_n "checking for $ac_word... " >&6; }
21029 if ${ac_cv_prog_MIG+:} false; then :
21030 $as_echo_n "(cached) " >&6
21031 else
21032 if test -n "$MIG"; then
21033 ac_cv_prog_MIG="$MIG" # Let the user override the test.
21034 else
21035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21036 for as_dir in $PATH
21037 do
21038 IFS=$as_save_IFS
21039 test -z "$as_dir" && as_dir=.
21040 for ac_exec_ext in '' $ac_executable_extensions; do
21041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21042 ac_cv_prog_MIG="${ac_tool_prefix}mig"
21043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21044 break 2
21045 fi
21046 done
21047 done
21048 IFS=$as_save_IFS
21049
21050 fi
21051 fi
21052 MIG=$ac_cv_prog_MIG
21053 if test -n "$MIG"; then
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
21055 $as_echo "$MIG" >&6; }
21056 else
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21058 $as_echo "no" >&6; }
21059 fi
21060
21061
21062 fi
21063 if test -z "$ac_cv_prog_MIG"; then
21064 ac_ct_MIG=$MIG
21065 # Extract the first word of "mig", so it can be a program name with args.
21066 set dummy mig; ac_word=$2
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21068 $as_echo_n "checking for $ac_word... " >&6; }
21069 if ${ac_cv_prog_ac_ct_MIG+:} false; then :
21070 $as_echo_n "(cached) " >&6
21071 else
21072 if test -n "$ac_ct_MIG"; then
21073 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
21074 else
21075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21076 for as_dir in $PATH
21077 do
21078 IFS=$as_save_IFS
21079 test -z "$as_dir" && as_dir=.
21080 for ac_exec_ext in '' $ac_executable_extensions; do
21081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21082 ac_cv_prog_ac_ct_MIG="mig"
21083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21084 break 2
21085 fi
21086 done
21087 done
21088 IFS=$as_save_IFS
21089
21090 fi
21091 fi
21092 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
21093 if test -n "$ac_ct_MIG"; then
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
21095 $as_echo "$ac_ct_MIG" >&6; }
21096 else
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21098 $as_echo "no" >&6; }
21099 fi
21100
21101 if test "x$ac_ct_MIG" = x; then
21102 MIG=""
21103 else
21104 case $cross_compiling:$ac_tool_warned in
21105 yes:)
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21108 ac_tool_warned=yes ;;
21109 esac
21110 MIG=$ac_ct_MIG
21111 fi
21112 else
21113 MIG="$ac_cv_prog_MIG"
21114 fi
21115
21116 if test x"$MIG" = x; then
21117 as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
21118 fi
21119 ;;
21120 esac
21121
21122 # ---------------------- #
21123 # Checks for libraries. #
21124 # ---------------------- #
21125
21126 # We might need to link with -lm; most simulators need it.
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
21128 $as_echo_n "checking for main in -lm... " >&6; }
21129 if ${ac_cv_lib_m_main+:} false; then :
21130 $as_echo_n "(cached) " >&6
21131 else
21132 ac_check_lib_save_LIBS=$LIBS
21133 LIBS="-lm $LIBS"
21134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21135 /* end confdefs.h. */
21136
21137
21138 int
21139 main ()
21140 {
21141 return main ();
21142 ;
21143 return 0;
21144 }
21145 _ACEOF
21146 if ac_fn_c_try_link "$LINENO"; then :
21147 ac_cv_lib_m_main=yes
21148 else
21149 ac_cv_lib_m_main=no
21150 fi
21151 rm -f core conftest.err conftest.$ac_objext \
21152 conftest$ac_exeext conftest.$ac_ext
21153 LIBS=$ac_check_lib_save_LIBS
21154 fi
21155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
21156 $as_echo "$ac_cv_lib_m_main" >&6; }
21157 if test "x$ac_cv_lib_m_main" = xyes; then :
21158 cat >>confdefs.h <<_ACEOF
21159 #define HAVE_LIBM 1
21160 _ACEOF
21161
21162 LIBS="-lm $LIBS"
21163
21164 fi
21165
21166
21167 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
21168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
21169 $as_echo_n "checking for library containing gethostbyname... " >&6; }
21170 if ${ac_cv_search_gethostbyname+:} false; then :
21171 $as_echo_n "(cached) " >&6
21172 else
21173 ac_func_search_save_LIBS=$LIBS
21174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21175 /* end confdefs.h. */
21176
21177 /* Override any GCC internal prototype to avoid an error.
21178 Use char because int might match the return type of a GCC
21179 builtin and then its argument prototype would still apply. */
21180 #ifdef __cplusplus
21181 extern "C"
21182 #endif
21183 char gethostbyname ();
21184 int
21185 main ()
21186 {
21187 return gethostbyname ();
21188 ;
21189 return 0;
21190 }
21191 _ACEOF
21192 for ac_lib in '' nsl; do
21193 if test -z "$ac_lib"; then
21194 ac_res="none required"
21195 else
21196 ac_res=-l$ac_lib
21197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21198 fi
21199 if ac_fn_c_try_link "$LINENO"; then :
21200 ac_cv_search_gethostbyname=$ac_res
21201 fi
21202 rm -f core conftest.err conftest.$ac_objext \
21203 conftest$ac_exeext
21204 if ${ac_cv_search_gethostbyname+:} false; then :
21205 break
21206 fi
21207 done
21208 if ${ac_cv_search_gethostbyname+:} false; then :
21209
21210 else
21211 ac_cv_search_gethostbyname=no
21212 fi
21213 rm conftest.$ac_ext
21214 LIBS=$ac_func_search_save_LIBS
21215 fi
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
21217 $as_echo "$ac_cv_search_gethostbyname" >&6; }
21218 ac_res=$ac_cv_search_gethostbyname
21219 if test "$ac_res" != no; then :
21220 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21221
21222 fi
21223
21224
21225 # Link in zlib/zstd if we can. This allows us to read compressed debug
21226 # sections.
21227
21228 # Use the system's zlib library.
21229 zlibdir="-L\$(top_builddir)/../zlib"
21230 zlibinc="-I\$(top_srcdir)/../zlib"
21231
21232 # Check whether --with-system-zlib was given.
21233 if test "${with_system_zlib+set}" = set; then :
21234 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
21235 zlibdir=
21236 zlibinc=
21237 fi
21238
21239 fi
21240
21241
21242
21243
21244
21245
21246 # Check whether --with-zstd was given.
21247 if test "${with_zstd+set}" = set; then :
21248 withval=$with_zstd;
21249 else
21250 with_zstd=auto
21251 fi
21252
21253
21254 if test "$with_zstd" != no; then :
21255
21256 pkg_failed=no
21257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
21258 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
21259
21260 if test -n "$ZSTD_CFLAGS"; then
21261 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
21262 elif test -n "$PKG_CONFIG"; then
21263 if test -n "$PKG_CONFIG" && \
21264 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
21265 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
21266 ac_status=$?
21267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21268 test $ac_status = 0; }; then
21269 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
21270 test "x$?" != "x0" && pkg_failed=yes
21271 else
21272 pkg_failed=yes
21273 fi
21274 else
21275 pkg_failed=untried
21276 fi
21277 if test -n "$ZSTD_LIBS"; then
21278 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
21279 elif test -n "$PKG_CONFIG"; then
21280 if test -n "$PKG_CONFIG" && \
21281 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
21282 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
21283 ac_status=$?
21284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21285 test $ac_status = 0; }; then
21286 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
21287 test "x$?" != "x0" && pkg_failed=yes
21288 else
21289 pkg_failed=yes
21290 fi
21291 else
21292 pkg_failed=untried
21293 fi
21294
21295 if test $pkg_failed = no; then
21296 pkg_save_LDFLAGS="$LDFLAGS"
21297 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
21298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21299 /* end confdefs.h. */
21300
21301 int
21302 main ()
21303 {
21304
21305 ;
21306 return 0;
21307 }
21308 _ACEOF
21309 if ac_fn_c_try_link "$LINENO"; then :
21310
21311 else
21312 pkg_failed=yes
21313 fi
21314 rm -f core conftest.err conftest.$ac_objext \
21315 conftest$ac_exeext conftest.$ac_ext
21316 LDFLAGS=$pkg_save_LDFLAGS
21317 fi
21318
21319
21320
21321 if test $pkg_failed = yes; then
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21323 $as_echo "no" >&6; }
21324
21325 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21326 _pkg_short_errors_supported=yes
21327 else
21328 _pkg_short_errors_supported=no
21329 fi
21330 if test $_pkg_short_errors_supported = yes; then
21331 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
21332 else
21333 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
21334 fi
21335 # Put the nasty error message in config.log where it belongs
21336 echo "$ZSTD_PKG_ERRORS" >&5
21337
21338
21339 if test "$with_zstd" = yes; then
21340 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
21341 fi
21342
21343 elif test $pkg_failed = untried; then
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21345 $as_echo "no" >&6; }
21346
21347 if test "$with_zstd" = yes; then
21348 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
21349 fi
21350
21351 else
21352 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
21353 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21355 $as_echo "yes" >&6; }
21356
21357
21358 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
21359
21360
21361 fi
21362
21363 fi
21364
21365
21366
21367 if test "X$prefix" = "XNONE"; then
21368 acl_final_prefix="$ac_default_prefix"
21369 else
21370 acl_final_prefix="$prefix"
21371 fi
21372 if test "X$exec_prefix" = "XNONE"; then
21373 acl_final_exec_prefix='${prefix}'
21374 else
21375 acl_final_exec_prefix="$exec_prefix"
21376 fi
21377 acl_save_prefix="$prefix"
21378 prefix="$acl_final_prefix"
21379 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21380 prefix="$acl_save_prefix"
21381
21382
21383 # Check whether --with-gnu-ld was given.
21384 if test "${with_gnu_ld+set}" = set; then :
21385 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21386 else
21387 with_gnu_ld=no
21388 fi
21389
21390 # Prepare PATH_SEPARATOR.
21391 # The user is always right.
21392 if test "${PATH_SEPARATOR+set}" != set; then
21393 echo "#! /bin/sh" >conf$$.sh
21394 echo "exit 0" >>conf$$.sh
21395 chmod +x conf$$.sh
21396 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21397 PATH_SEPARATOR=';'
21398 else
21399 PATH_SEPARATOR=:
21400 fi
21401 rm -f conf$$.sh
21402 fi
21403 ac_prog=ld
21404 if test "$GCC" = yes; then
21405 # Check if gcc -print-prog-name=ld gives a path.
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21407 $as_echo_n "checking for ld used by GCC... " >&6; }
21408 case $host in
21409 *-*-mingw*)
21410 # gcc leaves a trailing carriage return which upsets mingw
21411 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21412 *)
21413 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21414 esac
21415 case $ac_prog in
21416 # Accept absolute paths.
21417 [\\/]* | [A-Za-z]:[\\/]*)
21418 re_direlt='/[^/][^/]*/\.\./'
21419 # Canonicalize the path of ld
21420 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21421 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21422 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21423 done
21424 test -z "$LD" && LD="$ac_prog"
21425 ;;
21426 "")
21427 # If it fails, then pretend we aren't using GCC.
21428 ac_prog=ld
21429 ;;
21430 *)
21431 # If it is relative, then search for the first ld in PATH.
21432 with_gnu_ld=unknown
21433 ;;
21434 esac
21435 elif test "$with_gnu_ld" = yes; then
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21437 $as_echo_n "checking for GNU ld... " >&6; }
21438 else
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21440 $as_echo_n "checking for non-GNU ld... " >&6; }
21441 fi
21442 if ${acl_cv_path_LD+:} false; then :
21443 $as_echo_n "(cached) " >&6
21444 else
21445 if test -z "$LD"; then
21446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21447 for ac_dir in $PATH; do
21448 test -z "$ac_dir" && ac_dir=.
21449 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21450 acl_cv_path_LD="$ac_dir/$ac_prog"
21451 # Check to see if the program is GNU ld. I'd rather use --version,
21452 # but apparently some GNU ld's only accept -v.
21453 # Break only if it was the GNU/non-GNU ld that we prefer.
21454 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
21455 test "$with_gnu_ld" != no && break
21456 else
21457 test "$with_gnu_ld" != yes && break
21458 fi
21459 fi
21460 done
21461 IFS="$ac_save_ifs"
21462 else
21463 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21464 fi
21465 fi
21466
21467 LD="$acl_cv_path_LD"
21468 if test -n "$LD"; then
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21470 $as_echo "$LD" >&6; }
21471 else
21472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21473 $as_echo "no" >&6; }
21474 fi
21475 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21477 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21478 if ${acl_cv_prog_gnu_ld+:} false; then :
21479 $as_echo_n "(cached) " >&6
21480 else
21481 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21482 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
21483 acl_cv_prog_gnu_ld=yes
21484 else
21485 acl_cv_prog_gnu_ld=no
21486 fi
21487 fi
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21489 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21490 with_gnu_ld=$acl_cv_prog_gnu_ld
21491
21492
21493
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21495 $as_echo_n "checking for shared library run path origin... " >&6; }
21496 if ${acl_cv_rpath+:} false; then :
21497 $as_echo_n "(cached) " >&6
21498 else
21499
21500 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21501 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21502 . ./conftest.sh
21503 rm -f ./conftest.sh
21504 acl_cv_rpath=done
21505
21506 fi
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21508 $as_echo "$acl_cv_rpath" >&6; }
21509 wl="$acl_cv_wl"
21510 libext="$acl_cv_libext"
21511 shlibext="$acl_cv_shlibext"
21512 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21513 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21514 hardcode_direct="$acl_cv_hardcode_direct"
21515 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21516 # Check whether --enable-rpath was given.
21517 if test "${enable_rpath+set}" = set; then :
21518 enableval=$enable_rpath; :
21519 else
21520 enable_rpath=yes
21521 fi
21522
21523
21524
21525
21526
21527
21528
21529
21530 use_additional=yes
21531
21532 acl_save_prefix="$prefix"
21533 prefix="$acl_final_prefix"
21534 acl_save_exec_prefix="$exec_prefix"
21535 exec_prefix="$acl_final_exec_prefix"
21536
21537 eval additional_includedir=\"$includedir\"
21538 eval additional_libdir=\"$libdir\"
21539
21540 exec_prefix="$acl_save_exec_prefix"
21541 prefix="$acl_save_prefix"
21542
21543
21544 # Check whether --with-libiconv-prefix was given.
21545 if test "${with_libiconv_prefix+set}" = set; then :
21546 withval=$with_libiconv_prefix;
21547 if test "X$withval" = "Xno"; then
21548 use_additional=no
21549 else
21550 if test "X$withval" = "X"; then
21551
21552 acl_save_prefix="$prefix"
21553 prefix="$acl_final_prefix"
21554 acl_save_exec_prefix="$exec_prefix"
21555 exec_prefix="$acl_final_exec_prefix"
21556
21557 eval additional_includedir=\"$includedir\"
21558 eval additional_libdir=\"$libdir\"
21559
21560 exec_prefix="$acl_save_exec_prefix"
21561 prefix="$acl_save_prefix"
21562
21563 else
21564 additional_includedir="$withval/include"
21565 additional_libdir="$withval/lib"
21566 fi
21567 fi
21568
21569 fi
21570
21571
21572 # Check whether --with-libiconv-type was given.
21573 if test "${with_libiconv_type+set}" = set; then :
21574 withval=$with_libiconv_type; with_libiconv_type=$withval
21575 else
21576 with_libiconv_type=auto
21577 fi
21578
21579 lib_type=`eval echo \$with_libiconv_type`
21580
21581 LIBICONV=
21582 LTLIBICONV=
21583 INCICONV=
21584 rpathdirs=
21585 ltrpathdirs=
21586 names_already_handled=
21587 names_next_round='iconv '
21588 while test -n "$names_next_round"; do
21589 names_this_round="$names_next_round"
21590 names_next_round=
21591 for name in $names_this_round; do
21592 already_handled=
21593 for n in $names_already_handled; do
21594 if test "$n" = "$name"; then
21595 already_handled=yes
21596 break
21597 fi
21598 done
21599 if test -z "$already_handled"; then
21600 names_already_handled="$names_already_handled $name"
21601 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21602 eval value=\"\$HAVE_LIB$uppername\"
21603 if test -n "$value"; then
21604 if test "$value" = yes; then
21605 eval value=\"\$LIB$uppername\"
21606 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21607 eval value=\"\$LTLIB$uppername\"
21608 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21609 else
21610 :
21611 fi
21612 else
21613 found_dir=
21614 found_la=
21615 found_so=
21616 found_a=
21617 if test $use_additional = yes; then
21618 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21619 found_dir="$additional_libdir"
21620 found_so="$additional_libdir/lib$name.$shlibext"
21621 if test -f "$additional_libdir/lib$name.la"; then
21622 found_la="$additional_libdir/lib$name.la"
21623 fi
21624 elif test x$lib_type != xshared; then
21625 if test -f "$additional_libdir/lib$name.$libext"; then
21626 found_dir="$additional_libdir"
21627 found_a="$additional_libdir/lib$name.$libext"
21628 if test -f "$additional_libdir/lib$name.la"; then
21629 found_la="$additional_libdir/lib$name.la"
21630 fi
21631 fi
21632 fi
21633 fi
21634 if test "X$found_dir" = "X"; then
21635 for x in $LDFLAGS $LTLIBICONV; do
21636
21637 acl_save_prefix="$prefix"
21638 prefix="$acl_final_prefix"
21639 acl_save_exec_prefix="$exec_prefix"
21640 exec_prefix="$acl_final_exec_prefix"
21641 eval x=\"$x\"
21642 exec_prefix="$acl_save_exec_prefix"
21643 prefix="$acl_save_prefix"
21644
21645 case "$x" in
21646 -L*)
21647 dir=`echo "X$x" | sed -e 's/^X-L//'`
21648 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21649 found_dir="$dir"
21650 found_so="$dir/lib$name.$shlibext"
21651 if test -f "$dir/lib$name.la"; then
21652 found_la="$dir/lib$name.la"
21653 fi
21654 elif test x$lib_type != xshared; then
21655 if test -f "$dir/lib$name.$libext"; then
21656 found_dir="$dir"
21657 found_a="$dir/lib$name.$libext"
21658 if test -f "$dir/lib$name.la"; then
21659 found_la="$dir/lib$name.la"
21660 fi
21661 fi
21662 fi
21663 ;;
21664 esac
21665 if test "X$found_dir" != "X"; then
21666 break
21667 fi
21668 done
21669 fi
21670 if test "X$found_dir" != "X"; then
21671 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21672 if test "X$found_so" != "X"; then
21673 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21674 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21675 else
21676 haveit=
21677 for x in $ltrpathdirs; do
21678 if test "X$x" = "X$found_dir"; then
21679 haveit=yes
21680 break
21681 fi
21682 done
21683 if test -z "$haveit"; then
21684 ltrpathdirs="$ltrpathdirs $found_dir"
21685 fi
21686 if test "$hardcode_direct" = yes; then
21687 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21688 else
21689 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21690 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21691 haveit=
21692 for x in $rpathdirs; do
21693 if test "X$x" = "X$found_dir"; then
21694 haveit=yes
21695 break
21696 fi
21697 done
21698 if test -z "$haveit"; then
21699 rpathdirs="$rpathdirs $found_dir"
21700 fi
21701 else
21702 haveit=
21703 for x in $LDFLAGS $LIBICONV; do
21704
21705 acl_save_prefix="$prefix"
21706 prefix="$acl_final_prefix"
21707 acl_save_exec_prefix="$exec_prefix"
21708 exec_prefix="$acl_final_exec_prefix"
21709 eval x=\"$x\"
21710 exec_prefix="$acl_save_exec_prefix"
21711 prefix="$acl_save_prefix"
21712
21713 if test "X$x" = "X-L$found_dir"; then
21714 haveit=yes
21715 break
21716 fi
21717 done
21718 if test -z "$haveit"; then
21719 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21720 fi
21721 if test "$hardcode_minus_L" != no; then
21722 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21723 else
21724 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21725 fi
21726 fi
21727 fi
21728 fi
21729 else
21730 if test "X$found_a" != "X"; then
21731 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21732 else
21733 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21734 fi
21735 fi
21736 additional_includedir=
21737 case "$found_dir" in
21738 */lib | */lib/)
21739 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21740 additional_includedir="$basedir/include"
21741 ;;
21742 esac
21743 if test "X$additional_includedir" != "X"; then
21744 if test "X$additional_includedir" != "X/usr/include"; then
21745 haveit=
21746 if test "X$additional_includedir" = "X/usr/local/include"; then
21747 if test -n "$GCC"; then
21748 case $host_os in
21749 linux*) haveit=yes;;
21750 esac
21751 fi
21752 fi
21753 if test -z "$haveit"; then
21754 for x in $CPPFLAGS $INCICONV; do
21755
21756 acl_save_prefix="$prefix"
21757 prefix="$acl_final_prefix"
21758 acl_save_exec_prefix="$exec_prefix"
21759 exec_prefix="$acl_final_exec_prefix"
21760 eval x=\"$x\"
21761 exec_prefix="$acl_save_exec_prefix"
21762 prefix="$acl_save_prefix"
21763
21764 if test "X$x" = "X-I$additional_includedir"; then
21765 haveit=yes
21766 break
21767 fi
21768 done
21769 if test -z "$haveit"; then
21770 if test -d "$additional_includedir"; then
21771 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21772 fi
21773 fi
21774 fi
21775 fi
21776 fi
21777 if test -n "$found_la"; then
21778 save_libdir="$libdir"
21779 case "$found_la" in
21780 */* | *\\*) . "$found_la" ;;
21781 *) . "./$found_la" ;;
21782 esac
21783 libdir="$save_libdir"
21784 for dep in $dependency_libs; do
21785 case "$dep" in
21786 -L*)
21787 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21788 if test "X$additional_libdir" != "X/usr/lib"; then
21789 haveit=
21790 if test "X$additional_libdir" = "X/usr/local/lib"; then
21791 if test -n "$GCC"; then
21792 case $host_os in
21793 linux*) haveit=yes;;
21794 esac
21795 fi
21796 fi
21797 if test -z "$haveit"; then
21798 haveit=
21799 for x in $LDFLAGS $LIBICONV; do
21800
21801 acl_save_prefix="$prefix"
21802 prefix="$acl_final_prefix"
21803 acl_save_exec_prefix="$exec_prefix"
21804 exec_prefix="$acl_final_exec_prefix"
21805 eval x=\"$x\"
21806 exec_prefix="$acl_save_exec_prefix"
21807 prefix="$acl_save_prefix"
21808
21809 if test "X$x" = "X-L$additional_libdir"; then
21810 haveit=yes
21811 break
21812 fi
21813 done
21814 if test -z "$haveit"; then
21815 if test -d "$additional_libdir"; then
21816 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21817 fi
21818 fi
21819 haveit=
21820 for x in $LDFLAGS $LTLIBICONV; do
21821
21822 acl_save_prefix="$prefix"
21823 prefix="$acl_final_prefix"
21824 acl_save_exec_prefix="$exec_prefix"
21825 exec_prefix="$acl_final_exec_prefix"
21826 eval x=\"$x\"
21827 exec_prefix="$acl_save_exec_prefix"
21828 prefix="$acl_save_prefix"
21829
21830 if test "X$x" = "X-L$additional_libdir"; then
21831 haveit=yes
21832 break
21833 fi
21834 done
21835 if test -z "$haveit"; then
21836 if test -d "$additional_libdir"; then
21837 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21838 fi
21839 fi
21840 fi
21841 fi
21842 ;;
21843 -R*)
21844 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21845 if test "$enable_rpath" != no; then
21846 haveit=
21847 for x in $rpathdirs; do
21848 if test "X$x" = "X$dir"; then
21849 haveit=yes
21850 break
21851 fi
21852 done
21853 if test -z "$haveit"; then
21854 rpathdirs="$rpathdirs $dir"
21855 fi
21856 haveit=
21857 for x in $ltrpathdirs; do
21858 if test "X$x" = "X$dir"; then
21859 haveit=yes
21860 break
21861 fi
21862 done
21863 if test -z "$haveit"; then
21864 ltrpathdirs="$ltrpathdirs $dir"
21865 fi
21866 fi
21867 ;;
21868 -l*)
21869 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21870 ;;
21871 *.la)
21872 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21873 ;;
21874 *)
21875 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21876 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21877 ;;
21878 esac
21879 done
21880 fi
21881 else
21882 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
21883 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21884 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21885 else
21886 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
21887 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
21888 fi
21889 fi
21890 fi
21891 fi
21892 done
21893 done
21894 if test "X$rpathdirs" != "X"; then
21895 if test -n "$hardcode_libdir_separator"; then
21896 alldirs=
21897 for found_dir in $rpathdirs; do
21898 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21899 done
21900 acl_save_libdir="$libdir"
21901 libdir="$alldirs"
21902 eval flag=\"$hardcode_libdir_flag_spec\"
21903 libdir="$acl_save_libdir"
21904 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21905 else
21906 for found_dir in $rpathdirs; do
21907 acl_save_libdir="$libdir"
21908 libdir="$found_dir"
21909 eval flag=\"$hardcode_libdir_flag_spec\"
21910 libdir="$acl_save_libdir"
21911 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21912 done
21913 fi
21914 fi
21915 if test "X$ltrpathdirs" != "X"; then
21916 for found_dir in $ltrpathdirs; do
21917 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21918 done
21919 fi
21920
21921
21922
21923
21924
21925
21926
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21928 $as_echo_n "checking for iconv... " >&6; }
21929 if ${am_cv_func_iconv+:} false; then :
21930 $as_echo_n "(cached) " >&6
21931 else
21932
21933 am_cv_func_iconv="no, consider installing GNU libiconv"
21934 am_cv_lib_iconv=no
21935 am_save_CPPFLAGS="$CPPFLAGS"
21936 CPPFLAGS="$CPPFLAGS $INCICONV"
21937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21938 /* end confdefs.h. */
21939 #include <stdlib.h>
21940 #include <iconv.h>
21941 int
21942 main ()
21943 {
21944 iconv_t cd = iconv_open("","");
21945 iconv(cd,NULL,NULL,NULL,NULL);
21946 iconv_close(cd);
21947 ;
21948 return 0;
21949 }
21950 _ACEOF
21951 if ac_fn_c_try_link "$LINENO"; then :
21952 am_cv_func_iconv=yes
21953 fi
21954 rm -f core conftest.err conftest.$ac_objext \
21955 conftest$ac_exeext conftest.$ac_ext
21956 CPPFLAGS="$am_save_CPPFLAGS"
21957
21958 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
21959 for _libs in .libs _libs; do
21960 am_save_CPPFLAGS="$CPPFLAGS"
21961 am_save_LIBS="$LIBS"
21962 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
21963 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
21964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21965 /* end confdefs.h. */
21966 #include <stdlib.h>
21967 #include <iconv.h>
21968 int
21969 main ()
21970 {
21971 iconv_t cd = iconv_open("","");
21972 iconv(cd,NULL,NULL,NULL,NULL);
21973 iconv_close(cd);
21974 ;
21975 return 0;
21976 }
21977 _ACEOF
21978 if ac_fn_c_try_link "$LINENO"; then :
21979 INCICONV="-I../libiconv/include"
21980 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
21981 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
21982 am_cv_lib_iconv=yes
21983 am_cv_func_iconv=yes
21984 fi
21985 rm -f core conftest.err conftest.$ac_objext \
21986 conftest$ac_exeext conftest.$ac_ext
21987 CPPFLAGS="$am_save_CPPFLAGS"
21988 LIBS="$am_save_LIBS"
21989 if test "$am_cv_func_iconv" = "yes"; then
21990 break
21991 fi
21992 done
21993 fi
21994
21995 if test "$am_cv_func_iconv" != yes; then
21996 am_save_CPPFLAGS="$CPPFLAGS"
21997 am_save_LIBS="$LIBS"
21998 CPPFLAGS="$CPPFLAGS $INCICONV"
21999 LIBS="$LIBS $LIBICONV"
22000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22001 /* end confdefs.h. */
22002 #include <stdlib.h>
22003 #include <iconv.h>
22004 int
22005 main ()
22006 {
22007 iconv_t cd = iconv_open("","");
22008 iconv(cd,NULL,NULL,NULL,NULL);
22009 iconv_close(cd);
22010 ;
22011 return 0;
22012 }
22013 _ACEOF
22014 if ac_fn_c_try_link "$LINENO"; then :
22015 am_cv_lib_iconv=yes
22016 am_cv_func_iconv=yes
22017 fi
22018 rm -f core conftest.err conftest.$ac_objext \
22019 conftest$ac_exeext conftest.$ac_ext
22020 CPPFLAGS="$am_save_CPPFLAGS"
22021 LIBS="$am_save_LIBS"
22022 fi
22023
22024 fi
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
22026 $as_echo "$am_cv_func_iconv" >&6; }
22027 if test "$am_cv_func_iconv" = yes; then
22028
22029 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
22030
22031 fi
22032 if test "$am_cv_lib_iconv" = yes; then
22033
22034 for element in $INCICONV; do
22035 haveit=
22036 for x in $CPPFLAGS; do
22037
22038 acl_save_prefix="$prefix"
22039 prefix="$acl_final_prefix"
22040 acl_save_exec_prefix="$exec_prefix"
22041 exec_prefix="$acl_final_exec_prefix"
22042 eval x=\"$x\"
22043 exec_prefix="$acl_save_exec_prefix"
22044 prefix="$acl_save_prefix"
22045
22046 if test "X$x" = "X$element"; then
22047 haveit=yes
22048 break
22049 fi
22050 done
22051 if test -z "$haveit"; then
22052 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22053 fi
22054 done
22055
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
22057 $as_echo_n "checking how to link with libiconv... " >&6; }
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
22059 $as_echo "$LIBICONV" >&6; }
22060 else
22061 LIBICONV=
22062 LTLIBICONV=
22063 fi
22064
22065
22066
22067 if test "$am_cv_func_iconv" = yes; then
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
22069 $as_echo_n "checking for iconv declaration... " >&6; }
22070 if ${am_cv_proto_iconv+:} false; then :
22071 $as_echo_n "(cached) " >&6
22072 else
22073
22074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22075 /* end confdefs.h. */
22076
22077 #include <stdlib.h>
22078 #include <iconv.h>
22079 extern
22080 #ifdef __cplusplus
22081 "C"
22082 #endif
22083 #if defined(__STDC__) || defined(__cplusplus)
22084 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22085 #else
22086 size_t iconv();
22087 #endif
22088
22089 int
22090 main ()
22091 {
22092
22093 ;
22094 return 0;
22095 }
22096 _ACEOF
22097 if ac_fn_c_try_compile "$LINENO"; then :
22098 am_cv_proto_iconv_arg1=""
22099 else
22100 am_cv_proto_iconv_arg1="const"
22101 fi
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 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);"
22104 fi
22105
22106 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
22108 }$am_cv_proto_iconv" >&5
22109 $as_echo "${ac_t:-
22110 }$am_cv_proto_iconv" >&6; }
22111
22112 cat >>confdefs.h <<_ACEOF
22113 #define ICONV_CONST $am_cv_proto_iconv_arg1
22114 _ACEOF
22115
22116 fi
22117
22118
22119 # GDB may fork/exec the iconv program to get the list of supported character
22120 # sets. Allow the user to specify where to find it.
22121 # There are several factors affecting the choice of option name:
22122 # - There is already --with-libiconv-prefix but we can't use it, it specifies
22123 # the build-time location of libiconv files.
22124 # - The program we need to find is iconv, which comes with glibc. The user
22125 # doesn't necessarily have libiconv installed. Therefore naming this
22126 # --with-libiconv-foo feels wrong.
22127 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
22128 # defined to work on directories not files (though it really doesn't know
22129 # the difference).
22130 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
22131 # with --with-libiconv-prefix.
22132 # Putting these together is why the option name is --with-iconv-bin.
22133
22134
22135 # Check whether --with-iconv-bin was given.
22136 if test "${with_iconv_bin+set}" = set; then :
22137 withval=$with_iconv_bin; iconv_bin="${withval}"
22138
22139 cat >>confdefs.h <<_ACEOF
22140 #define ICONV_BIN "${iconv_bin}"
22141 _ACEOF
22142
22143
22144 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
22145 if test "x$prefix" = xNONE; then
22146 test_prefix=/usr/local
22147 else
22148 test_prefix=$prefix
22149 fi
22150 else
22151 test_prefix=$exec_prefix
22152 fi
22153 value=0
22154 case ${iconv_bin} in
22155 "${test_prefix}"|"${test_prefix}/"*|\
22156 '${exec_prefix}'|'${exec_prefix}/'*)
22157 value=1
22158 ;;
22159 esac
22160
22161 cat >>confdefs.h <<_ACEOF
22162 #define ICONV_BIN_RELOCATABLE $value
22163 _ACEOF
22164
22165
22166
22167 fi
22168
22169
22170 # For the TUI, we need enhanced curses functionality.
22171 if test x"$enable_tui" != xno; then
22172 prefer_curses=yes
22173 fi
22174
22175 curses_found=no
22176 if test x"$prefer_curses" = xyes; then
22177 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
22178 # curses library because the latter might not provide all the
22179 # functionality we need. However, this leads to problems on systems
22180 # where the linker searches /usr/local/lib, but the compiler doesn't
22181 # search /usr/local/include, if ncurses is installed in /usr/local. A
22182 # default installation of ncurses on alpha*-dec-osf* will lead to such
22183 # a situation.
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
22185 $as_echo_n "checking for library containing waddstr... " >&6; }
22186 if ${ac_cv_search_waddstr+:} false; then :
22187 $as_echo_n "(cached) " >&6
22188 else
22189 ac_func_search_save_LIBS=$LIBS
22190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22191 /* end confdefs.h. */
22192
22193 /* Override any GCC internal prototype to avoid an error.
22194 Use char because int might match the return type of a GCC
22195 builtin and then its argument prototype would still apply. */
22196 #ifdef __cplusplus
22197 extern "C"
22198 #endif
22199 char waddstr ();
22200 int
22201 main ()
22202 {
22203 return waddstr ();
22204 ;
22205 return 0;
22206 }
22207 _ACEOF
22208 for ac_lib in '' ncursesw ncurses cursesX curses; do
22209 if test -z "$ac_lib"; then
22210 ac_res="none required"
22211 else
22212 ac_res=-l$ac_lib
22213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22214 fi
22215 if ac_fn_c_try_link "$LINENO"; then :
22216 ac_cv_search_waddstr=$ac_res
22217 fi
22218 rm -f core conftest.err conftest.$ac_objext \
22219 conftest$ac_exeext
22220 if ${ac_cv_search_waddstr+:} false; then :
22221 break
22222 fi
22223 done
22224 if ${ac_cv_search_waddstr+:} false; then :
22225
22226 else
22227 ac_cv_search_waddstr=no
22228 fi
22229 rm conftest.$ac_ext
22230 LIBS=$ac_func_search_save_LIBS
22231 fi
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
22233 $as_echo "$ac_cv_search_waddstr" >&6; }
22234 ac_res=$ac_cv_search_waddstr
22235 if test "$ac_res" != no; then :
22236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22237 curses_found=yes
22238
22239 $as_echo "#define HAVE_LIBCURSES 1" >>confdefs.h
22240
22241
22242 fi
22243
22244 fi
22245
22246 # Check whether we should enable the TUI, but only do so if we really
22247 # can.
22248 if test x"$enable_tui" != xno; then
22249 if test "$curses_found" != no; then
22250 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
22251 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
22252 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
22253 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
22254 else
22255 if test x"$enable_tui" = xyes; then
22256 as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
22257 else
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
22259 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
22260 fi
22261 fi
22262 fi
22263
22264 # Since GDB uses Readline, we need termcap functionality. In many
22265 # cases this will be provided by the curses library, but some systems
22266 # have a separate termcap library, or no curses library at all.
22267
22268 case $host_os in
22269 cygwin*)
22270 if test -d "$srcdir/libtermcap"; then
22271 LIBS="../libtermcap/libtermcap.a $LIBS"
22272 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
22273 fi ;;
22274 go32* | *djgpp*)
22275 ac_cv_search_tgetent="none required"
22276 ;;
22277 esac
22278
22279 # These are the libraries checked by Readline.
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
22281 $as_echo_n "checking for library containing tgetent... " >&6; }
22282 if ${ac_cv_search_tgetent+:} false; then :
22283 $as_echo_n "(cached) " >&6
22284 else
22285 ac_func_search_save_LIBS=$LIBS
22286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22287 /* end confdefs.h. */
22288
22289 /* Override any GCC internal prototype to avoid an error.
22290 Use char because int might match the return type of a GCC
22291 builtin and then its argument prototype would still apply. */
22292 #ifdef __cplusplus
22293 extern "C"
22294 #endif
22295 char tgetent ();
22296 int
22297 main ()
22298 {
22299 return tgetent ();
22300 ;
22301 return 0;
22302 }
22303 _ACEOF
22304 for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
22305 if test -z "$ac_lib"; then
22306 ac_res="none required"
22307 else
22308 ac_res=-l$ac_lib
22309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22310 fi
22311 if ac_fn_c_try_link "$LINENO"; then :
22312 ac_cv_search_tgetent=$ac_res
22313 fi
22314 rm -f core conftest.err conftest.$ac_objext \
22315 conftest$ac_exeext
22316 if ${ac_cv_search_tgetent+:} false; then :
22317 break
22318 fi
22319 done
22320 if ${ac_cv_search_tgetent+:} false; then :
22321
22322 else
22323 ac_cv_search_tgetent=no
22324 fi
22325 rm conftest.$ac_ext
22326 LIBS=$ac_func_search_save_LIBS
22327 fi
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
22329 $as_echo "$ac_cv_search_tgetent" >&6; }
22330 ac_res=$ac_cv_search_tgetent
22331 if test "$ac_res" != no; then :
22332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22333
22334 fi
22335
22336
22337 if test "$ac_cv_search_tgetent" = no; then
22338 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
22339 fi
22340
22341
22342 # Check whether --with-system-readline was given.
22343 if test "${with_system_readline+set}" = set; then :
22344 withval=$with_system_readline;
22345 fi
22346
22347
22348 if test "$with_system_readline" = yes; then
22349 for ac_header in readline/readline.h
22350 do :
22351 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
22352 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
22353 cat >>confdefs.h <<_ACEOF
22354 #define HAVE_READLINE_READLINE_H 1
22355 _ACEOF
22356 readline_h=yes
22357 else
22358 readline_h=no
22359 fi
22360
22361 done
22362
22363 if test "$readline_h" = "no"; then
22364 as_fn_error $? "readline development packages are probably missing" "$LINENO" 5
22365 fi
22366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
22367 $as_echo_n "checking whether system readline is new enough... " >&6; }
22368 if ${gdb_cv_readline_ok+:} false; then :
22369 $as_echo_n "(cached) " >&6
22370 else
22371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22372 /* end confdefs.h. */
22373 #include <stdio.h>
22374 #include <readline/readline.h>
22375 int
22376 main ()
22377 {
22378 #if RL_VERSION_MAJOR < 7
22379 # error "readline version 7 required"
22380 #endif
22381
22382 ;
22383 return 0;
22384 }
22385 _ACEOF
22386 if ac_fn_c_try_compile "$LINENO"; then :
22387 gdb_cv_readline_ok=yes
22388 else
22389 gdb_cv_readline_ok=no
22390
22391 fi
22392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22393
22394 fi
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
22396 $as_echo "$gdb_cv_readline_ok" >&6; }
22397 if test "$gdb_cv_readline_ok" != yes; then
22398 as_fn_error $? "system readline is not new enough" "$LINENO" 5
22399 fi
22400
22401 READLINE=-lreadline
22402 READLINE_DEPS=
22403 READLINE_CFLAGS=
22404 READLINE_TEXI_INCFLAG=
22405 READLINE_DOC_SOURCE_INCLUDES='$(READLINE_SYSTEM_DOC_INCLUDES)'
22406 else
22407 READLINE='$(READLINE_DIR)/libreadline.a'
22408 READLINE_DEPS='$(READLINE)'
22409 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
22410 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
22411 READLINE_DOC_SOURCE_INCLUDES='$(READLINE_INTREE_DOC_INCLUDES)'
22412 fi
22413
22414
22415
22416
22417
22418
22419 # Generate jit-reader.h
22420
22421 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
22422 TARGET_PTR=
22423
22424 # The cast to long int works around a bug in the HP C Compiler
22425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22427 # This bug is HP SR number 8606223364.
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
22429 $as_echo_n "checking size of unsigned long long... " >&6; }
22430 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
22431 $as_echo_n "(cached) " >&6
22432 else
22433 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
22434
22435 else
22436 if test "$ac_cv_type_unsigned_long_long" = yes; then
22437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22439 as_fn_error 77 "cannot compute sizeof (unsigned long long)
22440 See \`config.log' for more details" "$LINENO" 5; }
22441 else
22442 ac_cv_sizeof_unsigned_long_long=0
22443 fi
22444 fi
22445
22446 fi
22447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
22448 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22449
22450
22451
22452 cat >>confdefs.h <<_ACEOF
22453 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22454 _ACEOF
22455
22456
22457 # The cast to long int works around a bug in the HP C Compiler
22458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22460 # This bug is HP SR number 8606223364.
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
22462 $as_echo_n "checking size of unsigned long... " >&6; }
22463 if ${ac_cv_sizeof_unsigned_long+:} false; then :
22464 $as_echo_n "(cached) " >&6
22465 else
22466 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
22467
22468 else
22469 if test "$ac_cv_type_unsigned_long" = yes; then
22470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22472 as_fn_error 77 "cannot compute sizeof (unsigned long)
22473 See \`config.log' for more details" "$LINENO" 5; }
22474 else
22475 ac_cv_sizeof_unsigned_long=0
22476 fi
22477 fi
22478
22479 fi
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
22481 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22482
22483
22484
22485 cat >>confdefs.h <<_ACEOF
22486 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22487 _ACEOF
22488
22489
22490 # The cast to long int works around a bug in the HP C Compiler
22491 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22492 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22493 # This bug is HP SR number 8606223364.
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
22495 $as_echo_n "checking size of unsigned __int128... " >&6; }
22496 if ${ac_cv_sizeof_unsigned___int128+:} false; then :
22497 $as_echo_n "(cached) " >&6
22498 else
22499 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
22500
22501 else
22502 if test "$ac_cv_type_unsigned___int128" = yes; then
22503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22505 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
22506 See \`config.log' for more details" "$LINENO" 5; }
22507 else
22508 ac_cv_sizeof_unsigned___int128=0
22509 fi
22510 fi
22511
22512 fi
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
22514 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
22515
22516
22517
22518 cat >>confdefs.h <<_ACEOF
22519 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
22520 _ACEOF
22521
22522
22523
22524 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
22525 TARGET_PTR="unsigned long"
22526 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
22527 TARGET_PTR="unsigned long long"
22528 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
22529 TARGET_PTR="unsigned __int128"
22530 else
22531 TARGET_PTR="unsigned long"
22532 fi
22533
22534
22535 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
22536
22537
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22539 $as_echo_n "checking for library containing dlopen... " >&6; }
22540 if ${ac_cv_search_dlopen+:} false; then :
22541 $as_echo_n "(cached) " >&6
22542 else
22543 ac_func_search_save_LIBS=$LIBS
22544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22545 /* end confdefs.h. */
22546
22547 /* Override any GCC internal prototype to avoid an error.
22548 Use char because int might match the return type of a GCC
22549 builtin and then its argument prototype would still apply. */
22550 #ifdef __cplusplus
22551 extern "C"
22552 #endif
22553 char dlopen ();
22554 int
22555 main ()
22556 {
22557 return dlopen ();
22558 ;
22559 return 0;
22560 }
22561 _ACEOF
22562 for ac_lib in '' dl; do
22563 if test -z "$ac_lib"; then
22564 ac_res="none required"
22565 else
22566 ac_res=-l$ac_lib
22567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22568 fi
22569 if ac_fn_c_try_link "$LINENO"; then :
22570 ac_cv_search_dlopen=$ac_res
22571 fi
22572 rm -f core conftest.err conftest.$ac_objext \
22573 conftest$ac_exeext
22574 if ${ac_cv_search_dlopen+:} false; then :
22575 break
22576 fi
22577 done
22578 if ${ac_cv_search_dlopen+:} false; then :
22579
22580 else
22581 ac_cv_search_dlopen=no
22582 fi
22583 rm conftest.$ac_ext
22584 LIBS=$ac_func_search_save_LIBS
22585 fi
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22587 $as_echo "$ac_cv_search_dlopen" >&6; }
22588 ac_res=$ac_cv_search_dlopen
22589 if test "$ac_res" != no; then :
22590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22591
22592 fi
22593
22594
22595
22596
22597 # Check whether --with-jit-reader-dir was given.
22598 if test "${with_jit_reader_dir+set}" = set; then :
22599 withval=$with_jit_reader_dir;
22600 JIT_READER_DIR=$withval
22601 else
22602 JIT_READER_DIR=${libdir}/gdb
22603 fi
22604
22605
22606 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22607 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22608 ac_define_dir=`eval echo $JIT_READER_DIR`
22609 ac_define_dir=`eval echo $ac_define_dir`
22610
22611 cat >>confdefs.h <<_ACEOF
22612 #define JIT_READER_DIR "$ac_define_dir"
22613 _ACEOF
22614
22615
22616
22617
22618 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
22619 if test "x$prefix" = xNONE; then
22620 test_prefix=/usr/local
22621 else
22622 test_prefix=$prefix
22623 fi
22624 else
22625 test_prefix=$exec_prefix
22626 fi
22627 value=0
22628 case ${ac_define_dir} in
22629 "${test_prefix}"|"${test_prefix}/"*|\
22630 '${exec_prefix}'|'${exec_prefix}/'*)
22631 value=1
22632 ;;
22633 esac
22634
22635 cat >>confdefs.h <<_ACEOF
22636 #define JIT_READER_DIR_RELOCATABLE $value
22637 _ACEOF
22638
22639
22640
22641
22642
22643 # Check whether --with-expat was given.
22644 if test "${with_expat+set}" = set; then :
22645 withval=$with_expat;
22646 else
22647 with_expat=auto
22648 fi
22649
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
22651 $as_echo_n "checking whether to use expat... " >&6; }
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
22653 $as_echo "$with_expat" >&6; }
22654
22655 if test "${with_expat}" = no; then
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
22657 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
22658 HAVE_LIBEXPAT=no
22659 else
22660
22661
22662
22663
22664
22665
22666
22667
22668 use_additional=yes
22669
22670 acl_save_prefix="$prefix"
22671 prefix="$acl_final_prefix"
22672 acl_save_exec_prefix="$exec_prefix"
22673 exec_prefix="$acl_final_exec_prefix"
22674
22675 eval additional_includedir=\"$includedir\"
22676 eval additional_libdir=\"$libdir\"
22677
22678 exec_prefix="$acl_save_exec_prefix"
22679 prefix="$acl_save_prefix"
22680
22681
22682 # Check whether --with-libexpat-prefix was given.
22683 if test "${with_libexpat_prefix+set}" = set; then :
22684 withval=$with_libexpat_prefix;
22685 if test "X$withval" = "Xno"; then
22686 use_additional=no
22687 else
22688 if test "X$withval" = "X"; then
22689
22690 acl_save_prefix="$prefix"
22691 prefix="$acl_final_prefix"
22692 acl_save_exec_prefix="$exec_prefix"
22693 exec_prefix="$acl_final_exec_prefix"
22694
22695 eval additional_includedir=\"$includedir\"
22696 eval additional_libdir=\"$libdir\"
22697
22698 exec_prefix="$acl_save_exec_prefix"
22699 prefix="$acl_save_prefix"
22700
22701 else
22702 additional_includedir="$withval/include"
22703 additional_libdir="$withval/lib"
22704 fi
22705 fi
22706
22707 fi
22708
22709
22710 # Check whether --with-libexpat-type was given.
22711 if test "${with_libexpat_type+set}" = set; then :
22712 withval=$with_libexpat_type; with_libexpat_type=$withval
22713 else
22714 with_libexpat_type=auto
22715 fi
22716
22717 lib_type=`eval echo \$with_libexpat_type`
22718
22719 LIBEXPAT=
22720 LTLIBEXPAT=
22721 INCEXPAT=
22722 rpathdirs=
22723 ltrpathdirs=
22724 names_already_handled=
22725 names_next_round='expat '
22726 while test -n "$names_next_round"; do
22727 names_this_round="$names_next_round"
22728 names_next_round=
22729 for name in $names_this_round; do
22730 already_handled=
22731 for n in $names_already_handled; do
22732 if test "$n" = "$name"; then
22733 already_handled=yes
22734 break
22735 fi
22736 done
22737 if test -z "$already_handled"; then
22738 names_already_handled="$names_already_handled $name"
22739 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22740 eval value=\"\$HAVE_LIB$uppername\"
22741 if test -n "$value"; then
22742 if test "$value" = yes; then
22743 eval value=\"\$LIB$uppername\"
22744 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
22745 eval value=\"\$LTLIB$uppername\"
22746 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
22747 else
22748 :
22749 fi
22750 else
22751 found_dir=
22752 found_la=
22753 found_so=
22754 found_a=
22755 if test $use_additional = yes; then
22756 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
22757 found_dir="$additional_libdir"
22758 found_so="$additional_libdir/lib$name.$shlibext"
22759 if test -f "$additional_libdir/lib$name.la"; then
22760 found_la="$additional_libdir/lib$name.la"
22761 fi
22762 elif test x$lib_type != xshared; then
22763 if test -f "$additional_libdir/lib$name.$libext"; then
22764 found_dir="$additional_libdir"
22765 found_a="$additional_libdir/lib$name.$libext"
22766 if test -f "$additional_libdir/lib$name.la"; then
22767 found_la="$additional_libdir/lib$name.la"
22768 fi
22769 fi
22770 fi
22771 fi
22772 if test "X$found_dir" = "X"; then
22773 for x in $LDFLAGS $LTLIBEXPAT; do
22774
22775 acl_save_prefix="$prefix"
22776 prefix="$acl_final_prefix"
22777 acl_save_exec_prefix="$exec_prefix"
22778 exec_prefix="$acl_final_exec_prefix"
22779 eval x=\"$x\"
22780 exec_prefix="$acl_save_exec_prefix"
22781 prefix="$acl_save_prefix"
22782
22783 case "$x" in
22784 -L*)
22785 dir=`echo "X$x" | sed -e 's/^X-L//'`
22786 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
22787 found_dir="$dir"
22788 found_so="$dir/lib$name.$shlibext"
22789 if test -f "$dir/lib$name.la"; then
22790 found_la="$dir/lib$name.la"
22791 fi
22792 elif test x$lib_type != xshared; then
22793 if test -f "$dir/lib$name.$libext"; then
22794 found_dir="$dir"
22795 found_a="$dir/lib$name.$libext"
22796 if test -f "$dir/lib$name.la"; then
22797 found_la="$dir/lib$name.la"
22798 fi
22799 fi
22800 fi
22801 ;;
22802 esac
22803 if test "X$found_dir" != "X"; then
22804 break
22805 fi
22806 done
22807 fi
22808 if test "X$found_dir" != "X"; then
22809 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
22810 if test "X$found_so" != "X"; then
22811 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22812 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
22813 else
22814 haveit=
22815 for x in $ltrpathdirs; do
22816 if test "X$x" = "X$found_dir"; then
22817 haveit=yes
22818 break
22819 fi
22820 done
22821 if test -z "$haveit"; then
22822 ltrpathdirs="$ltrpathdirs $found_dir"
22823 fi
22824 if test "$hardcode_direct" = yes; then
22825 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
22826 else
22827 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22828 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
22829 haveit=
22830 for x in $rpathdirs; do
22831 if test "X$x" = "X$found_dir"; then
22832 haveit=yes
22833 break
22834 fi
22835 done
22836 if test -z "$haveit"; then
22837 rpathdirs="$rpathdirs $found_dir"
22838 fi
22839 else
22840 haveit=
22841 for x in $LDFLAGS $LIBEXPAT; do
22842
22843 acl_save_prefix="$prefix"
22844 prefix="$acl_final_prefix"
22845 acl_save_exec_prefix="$exec_prefix"
22846 exec_prefix="$acl_final_exec_prefix"
22847 eval x=\"$x\"
22848 exec_prefix="$acl_save_exec_prefix"
22849 prefix="$acl_save_prefix"
22850
22851 if test "X$x" = "X-L$found_dir"; then
22852 haveit=yes
22853 break
22854 fi
22855 done
22856 if test -z "$haveit"; then
22857 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
22858 fi
22859 if test "$hardcode_minus_L" != no; then
22860 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
22861 else
22862 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
22863 fi
22864 fi
22865 fi
22866 fi
22867 else
22868 if test "X$found_a" != "X"; then
22869 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
22870 else
22871 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
22872 fi
22873 fi
22874 additional_includedir=
22875 case "$found_dir" in
22876 */lib | */lib/)
22877 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22878 additional_includedir="$basedir/include"
22879 ;;
22880 esac
22881 if test "X$additional_includedir" != "X"; then
22882 if test "X$additional_includedir" != "X/usr/include"; then
22883 haveit=
22884 if test "X$additional_includedir" = "X/usr/local/include"; then
22885 if test -n "$GCC"; then
22886 case $host_os in
22887 linux*) haveit=yes;;
22888 esac
22889 fi
22890 fi
22891 if test -z "$haveit"; then
22892 for x in $CPPFLAGS $INCEXPAT; do
22893
22894 acl_save_prefix="$prefix"
22895 prefix="$acl_final_prefix"
22896 acl_save_exec_prefix="$exec_prefix"
22897 exec_prefix="$acl_final_exec_prefix"
22898 eval x=\"$x\"
22899 exec_prefix="$acl_save_exec_prefix"
22900 prefix="$acl_save_prefix"
22901
22902 if test "X$x" = "X-I$additional_includedir"; then
22903 haveit=yes
22904 break
22905 fi
22906 done
22907 if test -z "$haveit"; then
22908 if test -d "$additional_includedir"; then
22909 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
22910 fi
22911 fi
22912 fi
22913 fi
22914 fi
22915 if test -n "$found_la"; then
22916 save_libdir="$libdir"
22917 case "$found_la" in
22918 */* | *\\*) . "$found_la" ;;
22919 *) . "./$found_la" ;;
22920 esac
22921 libdir="$save_libdir"
22922 for dep in $dependency_libs; do
22923 case "$dep" in
22924 -L*)
22925 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22926 if test "X$additional_libdir" != "X/usr/lib"; then
22927 haveit=
22928 if test "X$additional_libdir" = "X/usr/local/lib"; then
22929 if test -n "$GCC"; then
22930 case $host_os in
22931 linux*) haveit=yes;;
22932 esac
22933 fi
22934 fi
22935 if test -z "$haveit"; then
22936 haveit=
22937 for x in $LDFLAGS $LIBEXPAT; do
22938
22939 acl_save_prefix="$prefix"
22940 prefix="$acl_final_prefix"
22941 acl_save_exec_prefix="$exec_prefix"
22942 exec_prefix="$acl_final_exec_prefix"
22943 eval x=\"$x\"
22944 exec_prefix="$acl_save_exec_prefix"
22945 prefix="$acl_save_prefix"
22946
22947 if test "X$x" = "X-L$additional_libdir"; then
22948 haveit=yes
22949 break
22950 fi
22951 done
22952 if test -z "$haveit"; then
22953 if test -d "$additional_libdir"; then
22954 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
22955 fi
22956 fi
22957 haveit=
22958 for x in $LDFLAGS $LTLIBEXPAT; do
22959
22960 acl_save_prefix="$prefix"
22961 prefix="$acl_final_prefix"
22962 acl_save_exec_prefix="$exec_prefix"
22963 exec_prefix="$acl_final_exec_prefix"
22964 eval x=\"$x\"
22965 exec_prefix="$acl_save_exec_prefix"
22966 prefix="$acl_save_prefix"
22967
22968 if test "X$x" = "X-L$additional_libdir"; then
22969 haveit=yes
22970 break
22971 fi
22972 done
22973 if test -z "$haveit"; then
22974 if test -d "$additional_libdir"; then
22975 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
22976 fi
22977 fi
22978 fi
22979 fi
22980 ;;
22981 -R*)
22982 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22983 if test "$enable_rpath" != no; then
22984 haveit=
22985 for x in $rpathdirs; do
22986 if test "X$x" = "X$dir"; then
22987 haveit=yes
22988 break
22989 fi
22990 done
22991 if test -z "$haveit"; then
22992 rpathdirs="$rpathdirs $dir"
22993 fi
22994 haveit=
22995 for x in $ltrpathdirs; do
22996 if test "X$x" = "X$dir"; then
22997 haveit=yes
22998 break
22999 fi
23000 done
23001 if test -z "$haveit"; then
23002 ltrpathdirs="$ltrpathdirs $dir"
23003 fi
23004 fi
23005 ;;
23006 -l*)
23007 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23008 ;;
23009 *.la)
23010 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23011 ;;
23012 *)
23013 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
23014 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
23015 ;;
23016 esac
23017 done
23018 fi
23019 else
23020 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
23021 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
23022 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
23023 else
23024 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
23025 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
23026 fi
23027 fi
23028 fi
23029 fi
23030 done
23031 done
23032 if test "X$rpathdirs" != "X"; then
23033 if test -n "$hardcode_libdir_separator"; then
23034 alldirs=
23035 for found_dir in $rpathdirs; do
23036 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23037 done
23038 acl_save_libdir="$libdir"
23039 libdir="$alldirs"
23040 eval flag=\"$hardcode_libdir_flag_spec\"
23041 libdir="$acl_save_libdir"
23042 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
23043 else
23044 for found_dir in $rpathdirs; do
23045 acl_save_libdir="$libdir"
23046 libdir="$found_dir"
23047 eval flag=\"$hardcode_libdir_flag_spec\"
23048 libdir="$acl_save_libdir"
23049 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
23050 done
23051 fi
23052 fi
23053 if test "X$ltrpathdirs" != "X"; then
23054 for found_dir in $ltrpathdirs; do
23055 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
23056 done
23057 fi
23058
23059
23060 ac_save_CPPFLAGS="$CPPFLAGS"
23061
23062 for element in $INCEXPAT; do
23063 haveit=
23064 for x in $CPPFLAGS; do
23065
23066 acl_save_prefix="$prefix"
23067 prefix="$acl_final_prefix"
23068 acl_save_exec_prefix="$exec_prefix"
23069 exec_prefix="$acl_final_exec_prefix"
23070 eval x=\"$x\"
23071 exec_prefix="$acl_save_exec_prefix"
23072 prefix="$acl_save_prefix"
23073
23074 if test "X$x" = "X$element"; then
23075 haveit=yes
23076 break
23077 fi
23078 done
23079 if test -z "$haveit"; then
23080 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23081 fi
23082 done
23083
23084
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
23086 $as_echo_n "checking for libexpat... " >&6; }
23087 if ${ac_cv_libexpat+:} false; then :
23088 $as_echo_n "(cached) " >&6
23089 else
23090
23091 ac_save_LIBS="$LIBS"
23092 LIBS="$LIBS $LIBEXPAT"
23093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23094 /* end confdefs.h. */
23095 #include "expat.h"
23096 int
23097 main ()
23098 {
23099 XML_Parser p = XML_ParserCreate (0);
23100 ;
23101 return 0;
23102 }
23103 _ACEOF
23104 if ac_fn_c_try_link "$LINENO"; then :
23105 ac_cv_libexpat=yes
23106 else
23107 ac_cv_libexpat=no
23108 fi
23109 rm -f core conftest.err conftest.$ac_objext \
23110 conftest$ac_exeext conftest.$ac_ext
23111 LIBS="$ac_save_LIBS"
23112
23113 fi
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
23115 $as_echo "$ac_cv_libexpat" >&6; }
23116 if test "$ac_cv_libexpat" = yes; then
23117 HAVE_LIBEXPAT=yes
23118
23119 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
23120
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
23122 $as_echo_n "checking how to link with libexpat... " >&6; }
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
23124 $as_echo "$LIBEXPAT" >&6; }
23125 else
23126 HAVE_LIBEXPAT=no
23127 CPPFLAGS="$ac_save_CPPFLAGS"
23128 LIBEXPAT=
23129 LTLIBEXPAT=
23130 fi
23131
23132
23133
23134
23135
23136
23137 if test "$HAVE_LIBEXPAT" != yes; then
23138 if test "$with_expat" = yes; then
23139 as_fn_error $? "expat is missing or unusable" "$LINENO" 5
23140 else
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
23142 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
23143 fi
23144 else
23145 save_LIBS=$LIBS
23146 LIBS="$LIBS $LIBEXPAT"
23147 for ac_func in XML_StopParser
23148 do :
23149 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
23150 if test "x$ac_cv_func_XML_StopParser" = xyes; then :
23151 cat >>confdefs.h <<_ACEOF
23152 #define HAVE_XML_STOPPARSER 1
23153 _ACEOF
23154
23155 fi
23156 done
23157
23158 LIBS=$save_LIBS
23159 fi
23160 fi
23161
23162
23163
23164
23165 # --------------------- #
23166 # Check for libpython. #
23167 # --------------------- #
23168
23169
23170
23171
23172
23173
23174 # Check whether --with-python was given.
23175 if test "${with_python+set}" = set; then :
23176 withval=$with_python;
23177 else
23178 with_python=auto
23179 fi
23180
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
23182 $as_echo_n "checking whether to use python... " >&6; }
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
23184 $as_echo "$with_python" >&6; }
23185
23186 if test "${with_python}" = no; then
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
23188 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
23189 have_libpython=no
23190 else
23191 case "${with_python}" in
23192 [\\/]* | ?:[\\/]*)
23193 if test -d "${with_python}"; then
23194 # Assume the python binary is ${with_python}/bin/python.
23195 python_prog="${with_python}/bin/python"
23196 python_prefix=
23197 # If python does not exit ${with_python}/bin, then try in
23198 # ${with_python}. On Windows/MinGW, this is where the Python
23199 # executable is.
23200 if test ! -x "${python_prog}"; then
23201 python_prog="${with_python}/python"
23202 python_prefix=
23203 fi
23204 if test ! -x "${python_prog}"; then
23205 # Fall back to gdb 7.0/7.1 behaviour.
23206 python_prog=missing
23207 python_prefix=${with_python}
23208 fi
23209 elif test -x "${with_python}"; then
23210 # While we can't run python compiled for $host (unless host == build),
23211 # the user could write a script that provides the needed information,
23212 # so we support that.
23213 python_prog=${with_python}
23214 python_prefix=
23215 else
23216 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
23217 fi
23218 ;;
23219 */*)
23220 # Disallow --with-python=foo/bar.
23221 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
23222 ;;
23223 *)
23224 # The user has either specified auto, yes, or the name of the python
23225 # program assumed to be in $PATH.
23226 python_prefix=
23227 case "${with_python}" in
23228 yes | auto)
23229 if test "${build}" = "${host}"; then
23230 # Look first for 'python', then 'python3'.
23231 for ac_prog in python python3
23232 do
23233 # Extract the first word of "$ac_prog", so it can be a program name with args.
23234 set dummy $ac_prog; ac_word=$2
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23236 $as_echo_n "checking for $ac_word... " >&6; }
23237 if ${ac_cv_path_python_prog_path+:} false; then :
23238 $as_echo_n "(cached) " >&6
23239 else
23240 case $python_prog_path in
23241 [\\/]* | ?:[\\/]*)
23242 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
23243 ;;
23244 *)
23245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23246 for as_dir in $PATH
23247 do
23248 IFS=$as_save_IFS
23249 test -z "$as_dir" && as_dir=.
23250 for ac_exec_ext in '' $ac_executable_extensions; do
23251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23252 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
23253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23254 break 2
23255 fi
23256 done
23257 done
23258 IFS=$as_save_IFS
23259
23260 ;;
23261 esac
23262 fi
23263 python_prog_path=$ac_cv_path_python_prog_path
23264 if test -n "$python_prog_path"; then
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
23266 $as_echo "$python_prog_path" >&6; }
23267 else
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23269 $as_echo "no" >&6; }
23270 fi
23271
23272
23273 test -n "$python_prog_path" && break
23274 done
23275 test -n "$python_prog_path" || python_prog_path="missing"
23276
23277 if test "${python_prog_path}" = missing; then
23278 python_prog=missing
23279 else
23280 python_prog=${python_prog_path}
23281 fi
23282 else
23283 # Not much we can do except assume the cross-compiler will find the
23284 # right files.
23285 python_prog=missing
23286 fi
23287 ;;
23288 *)
23289 # While we can't run python compiled for $host (unless host == build),
23290 # the user could write a script that provides the needed information,
23291 # so we support that.
23292 python_prog="${with_python}"
23293 # Extract the first word of "${python_prog}", so it can be a program name with args.
23294 set dummy ${python_prog}; ac_word=$2
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23296 $as_echo_n "checking for $ac_word... " >&6; }
23297 if ${ac_cv_path_python_prog_path+:} false; then :
23298 $as_echo_n "(cached) " >&6
23299 else
23300 case $python_prog_path in
23301 [\\/]* | ?:[\\/]*)
23302 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
23303 ;;
23304 *)
23305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23306 for as_dir in $PATH
23307 do
23308 IFS=$as_save_IFS
23309 test -z "$as_dir" && as_dir=.
23310 for ac_exec_ext in '' $ac_executable_extensions; do
23311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23312 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
23313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23314 break 2
23315 fi
23316 done
23317 done
23318 IFS=$as_save_IFS
23319
23320 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
23321 ;;
23322 esac
23323 fi
23324 python_prog_path=$ac_cv_path_python_prog_path
23325 if test -n "$python_prog_path"; then
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
23327 $as_echo "$python_prog_path" >&6; }
23328 else
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23330 $as_echo "no" >&6; }
23331 fi
23332
23333
23334 if test "${python_prog_path}" = missing; then
23335 as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
23336 fi
23337 ;;
23338 esac
23339 esac
23340
23341 if test "${python_prog}" != missing; then
23342 # We have a python program to use, but it may be too old.
23343 # Don't flag an error for --with-python=auto (the default).
23344 have_python_config=yes
23345 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
23346 if test $? != 0; then
23347 have_python_config=failed
23348 if test "${with_python}" != auto; then
23349 as_fn_error $? "failure running python-config --includes" "$LINENO" 5
23350 fi
23351 fi
23352 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
23353 if test $? != 0; then
23354 have_python_config=failed
23355 if test "${with_python}" != auto; then
23356 as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
23357 fi
23358 fi
23359 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
23360 if test $? != 0; then
23361 have_python_config=failed
23362 if test "${with_python}" != auto; then
23363 as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
23364 fi
23365 fi
23366 else
23367 # We do not have a python executable we can use to determine where
23368 # to find the Python headers and libs. We cannot guess the include
23369 # path from the python_prefix either, because that include path
23370 # depends on the Python version. So, there is nothing much we can
23371 # do except assume that the compiler will be able to find those files.
23372 python_includes=
23373 python_libs=
23374 have_python_config=no
23375 fi
23376
23377 # If we have python-config, only try the configuration it provides.
23378 # Otherwise fallback on the old way of trying different versions of
23379 # python in turn.
23380
23381 have_libpython=no
23382 if test "${have_python_config}" = yes; then
23383
23384
23385 new_CPPFLAGS=${python_includes}
23386 new_LIBS=${python_libs}
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
23388 $as_echo_n "checking for python... " >&6; }
23389 save_CPPFLAGS=$CPPFLAGS
23390 save_LIBS=$LIBS
23391 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
23392 LIBS="$new_LIBS $LIBS"
23393 found_usable_python=no
23394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23395 /* end confdefs.h. */
23396 #include "Python.h"
23397 int
23398 main ()
23399 {
23400
23401 #if PY_MAJOR_VERSION != 3
23402 # error "We only support Python 3"
23403 #endif
23404 Py_Initialize ();
23405
23406 ;
23407 return 0;
23408 }
23409 _ACEOF
23410 if ac_fn_c_try_link "$LINENO"; then :
23411 have_libpython=yes
23412 found_usable_python=yes
23413 PYTHON_CPPFLAGS=$new_CPPFLAGS
23414 PYTHON_LIBS=$new_LIBS
23415 fi
23416 rm -f core conftest.err conftest.$ac_objext \
23417 conftest$ac_exeext conftest.$ac_ext
23418 CPPFLAGS=$save_CPPFLAGS
23419 LIBS=$save_LIBS
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
23421 $as_echo "${found_usable_python}" >&6; }
23422
23423 fi
23424
23425 if test "${have_libpython}" = no; then
23426 case "${with_python}" in
23427 yes)
23428 as_fn_error $? "python is missing or unusable" "$LINENO" 5
23429 ;;
23430 auto)
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
23432 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
23433 ;;
23434 *)
23435 as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
23436 ;;
23437 esac
23438 else
23439 if test -n "${python_prefix}"; then
23440
23441 cat >>confdefs.h <<_ACEOF
23442 #define WITH_PYTHON_PATH "${python_prefix}"
23443 _ACEOF
23444
23445
23446 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
23447 if test "x$prefix" = xNONE; then
23448 test_prefix=/usr/local
23449 else
23450 test_prefix=$prefix
23451 fi
23452 else
23453 test_prefix=$exec_prefix
23454 fi
23455 value=0
23456 case ${python_prefix} in
23457 "${test_prefix}"|"${test_prefix}/"*|\
23458 '${exec_prefix}'|'${exec_prefix}/'*)
23459 value=1
23460 ;;
23461 esac
23462
23463 cat >>confdefs.h <<_ACEOF
23464 #define PYTHON_PATH_RELOCATABLE $value
23465 _ACEOF
23466
23467
23468 fi
23469 fi
23470 fi
23471
23472
23473 # Check whether --with-python-libdir was given.
23474 if test "${with_python_libdir+set}" = set; then :
23475 withval=$with_python_libdir;
23476 else
23477
23478 # If no python libdir is specified then select one based on
23479 # python's prefix path.
23480 if test -n "${python_prefix}"; then
23481 with_python_libdir=${python_prefix}/lib
23482 fi
23483
23484 fi
23485
23486
23487 if test "${have_libpython}" != no; then
23488
23489 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
23490
23491 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
23492 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
23493 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
23494 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
23495 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
23496
23497 if test -n "${with_python_libdir}"; then
23498
23499 cat >>confdefs.h <<_ACEOF
23500 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
23501 _ACEOF
23502
23503
23504 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
23505 if test "x$prefix" = xNONE; then
23506 test_prefix=/usr/local
23507 else
23508 test_prefix=$prefix
23509 fi
23510 else
23511 test_prefix=$exec_prefix
23512 fi
23513 value=0
23514 case ${with_python_libdir} in
23515 "${test_prefix}"|"${test_prefix}/"*|\
23516 '${exec_prefix}'|'${exec_prefix}/'*)
23517 value=1
23518 ;;
23519 esac
23520
23521 cat >>confdefs.h <<_ACEOF
23522 #define PYTHON_LIBDIR_RELOCATABLE $value
23523 _ACEOF
23524
23525
23526 fi
23527
23528 # Flags needed to compile Python code (taken from python-config --cflags).
23529 # We cannot call python-config directly because it will output whatever was
23530 # used when compiling the Python interpreter itself, including flags which
23531 # would make the python-related objects be compiled differently from the
23532 # rest of GDB (e.g., -O2 and -fPIC).
23533 if test "${GCC}" = yes; then
23534 tentative_python_cflags="-fno-strict-aliasing -fwrapv"
23535 # Python headers recommend -DNDEBUG, but it's unclear if that just
23536 # refers to building Python itself. In release mode, though, it
23537 # doesn't hurt for the Python code in gdb to follow.
23538 $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
23539 fi
23540
23541 if test "x${tentative_python_cflags}" != x; then
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
23543 $as_echo_n "checking compiler flags for python code... " >&6; }
23544 for flag in ${tentative_python_cflags}; do
23545 # Check that the compiler accepts it
23546 saved_CFLAGS="$CFLAGS"
23547 CFLAGS="$CFLAGS $flag"
23548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23549 /* end confdefs.h. */
23550
23551 int
23552 main ()
23553 {
23554
23555 ;
23556 return 0;
23557 }
23558 _ACEOF
23559 if ac_fn_c_try_compile "$LINENO"; then :
23560 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
23561 fi
23562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23563 CFLAGS="$saved_CFLAGS"
23564 done
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
23566 $as_echo "${PYTHON_CFLAGS}" >&6; }
23567 fi
23568
23569 # On x64 Windows, Python's include headers, and pyconfig.h in
23570 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
23571 # version of Windows. Unfortunately, MS_WIN64 is only defined if
23572 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
23573 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
23574 # The issue was reported to the Python community, but still isn't
23575 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
23576
23577 case "$gdb_host" in
23578 mingw64)
23579 if test "${GCC}" = yes; then
23580 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
23581 fi
23582 ;;
23583 esac
23584 else
23585 # Even if Python support is not compiled in, we need to have this file
23586 # included so that the "python" command, et.al., still exists.
23587 CONFIG_OBS="$CONFIG_OBS python/python.o"
23588 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
23589 fi
23590
23591 # Work around Python http://bugs.python.org/issue10112. See also
23592 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
23593 # no effect. Note that the only test after this that uses Python is
23594 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
23595 # run without -export-dynamic too.
23596 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
23597
23598
23599
23600
23601 if test "${have_libpython}" != no; then
23602 HAVE_PYTHON_TRUE=
23603 HAVE_PYTHON_FALSE='#'
23604 else
23605 HAVE_PYTHON_TRUE='#'
23606 HAVE_PYTHON_FALSE=
23607 fi
23608
23609
23610 # -------------------- #
23611 # Check for libguile. #
23612 # -------------------- #
23613
23614
23615
23616
23617
23618
23619 # Check whether --with-guile was given.
23620 if test "${with_guile+set}" = set; then :
23621 withval=$with_guile;
23622 else
23623 with_guile=auto
23624 fi
23625
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
23627 $as_echo_n "checking whether to use guile... " >&6; }
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
23629 $as_echo "$with_guile" >&6; }
23630
23631 # Extract the first word of "pkg-config", so it can be a program name with args.
23632 set dummy pkg-config; ac_word=$2
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23634 $as_echo_n "checking for $ac_word... " >&6; }
23635 if ${ac_cv_path_pkg_config_prog_path+:} false; then :
23636 $as_echo_n "(cached) " >&6
23637 else
23638 case $pkg_config_prog_path in
23639 [\\/]* | ?:[\\/]*)
23640 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
23641 ;;
23642 *)
23643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23644 for as_dir in $PATH
23645 do
23646 IFS=$as_save_IFS
23647 test -z "$as_dir" && as_dir=.
23648 for ac_exec_ext in '' $ac_executable_extensions; do
23649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23650 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
23651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23652 break 2
23653 fi
23654 done
23655 done
23656 IFS=$as_save_IFS
23657
23658 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
23659 ;;
23660 esac
23661 fi
23662 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
23663 if test -n "$pkg_config_prog_path"; then
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
23665 $as_echo "$pkg_config_prog_path" >&6; }
23666 else
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23668 $as_echo "no" >&6; }
23669 fi
23670
23671
23672
23673 try_guile_versions="guile-3.0 guile-2.2 guile-2.0"
23674 have_libguile=no
23675 case "${with_guile}" in
23676 no)
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
23678 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
23679 ;;
23680 auto)
23681 if test "${pkg_config_prog_path}" = "missing"; then
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
23683 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
23684 else
23685
23686 pkg_config=${pkg_config_prog_path}
23687 guile_version_list=${try_guile_versions}
23688 flag_errors=no
23689
23690 found_usable_guile=checking
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
23692 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
23693 for guile_version in ${guile_version_list}; do
23694 ${pkg_config} --exists ${guile_version} 2>/dev/null
23695 if test $? != 0; then
23696 continue
23697 fi
23698 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
23699 if test $? != 0; then
23700 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
23701 fi
23702 new_LIBS=`${pkg_config} --libs ${guile_version}`
23703 if test $? != 0; then
23704 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
23705 fi
23706 found_usable_guile=${guile_version}
23707 break
23708 done
23709 if test "${found_usable_guile}" = "checking"; then
23710 if test "${flag_errors}" = "yes"; then
23711 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
23712 else
23713 found_usable_guile=no
23714 fi
23715 fi
23716 if test "${found_usable_guile}" != no; then
23717 save_CPPFLAGS=$CPPFLAGS
23718 save_LIBS=$LIBS
23719 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
23720 LIBS="$LIBS $new_LIBS"
23721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23722 /* end confdefs.h. */
23723 #include "libguile.h"
23724 int
23725 main ()
23726 {
23727 scm_init_guile ();
23728 ;
23729 return 0;
23730 }
23731 _ACEOF
23732 if ac_fn_c_try_link "$LINENO"; then :
23733 have_libguile=yes
23734 GUILE_CPPFLAGS=$new_CPPFLAGS
23735 GUILE_LIBS=$new_LIBS
23736 else
23737 found_usable_guile=no
23738 fi
23739 rm -f core conftest.err conftest.$ac_objext \
23740 conftest$ac_exeext conftest.$ac_ext
23741 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
23742 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
23743
23744 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
23745
23746
23747 fi
23748
23749 CPPFLAGS=$save_CPPFLAGS
23750 LIBS=$save_LIBS
23751 if test "${found_usable_guile}" = no; then
23752 if test "${flag_errors}" = yes; then
23753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23755 as_fn_error $? "linking guile version ${guile_version} test program failed
23756 See \`config.log' for more details" "$LINENO" 5; }
23757 fi
23758 fi
23759 fi
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
23761 $as_echo "${found_usable_guile}" >&6; }
23762
23763 fi
23764 ;;
23765 yes)
23766 if test "${pkg_config_prog_path}" = "missing"; then
23767 as_fn_error $? "pkg-config not found" "$LINENO" 5
23768 fi
23769
23770 pkg_config=${pkg_config_prog_path}
23771 guile_version_list=${try_guile_versions}
23772 flag_errors=yes
23773
23774 found_usable_guile=checking
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
23776 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
23777 for guile_version in ${guile_version_list}; do
23778 ${pkg_config} --exists ${guile_version} 2>/dev/null
23779 if test $? != 0; then
23780 continue
23781 fi
23782 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
23783 if test $? != 0; then
23784 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
23785 fi
23786 new_LIBS=`${pkg_config} --libs ${guile_version}`
23787 if test $? != 0; then
23788 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
23789 fi
23790 found_usable_guile=${guile_version}
23791 break
23792 done
23793 if test "${found_usable_guile}" = "checking"; then
23794 if test "${flag_errors}" = "yes"; then
23795 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
23796 else
23797 found_usable_guile=no
23798 fi
23799 fi
23800 if test "${found_usable_guile}" != no; then
23801 save_CPPFLAGS=$CPPFLAGS
23802 save_LIBS=$LIBS
23803 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
23804 LIBS="$LIBS $new_LIBS"
23805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23806 /* end confdefs.h. */
23807 #include "libguile.h"
23808 int
23809 main ()
23810 {
23811 scm_init_guile ();
23812 ;
23813 return 0;
23814 }
23815 _ACEOF
23816 if ac_fn_c_try_link "$LINENO"; then :
23817 have_libguile=yes
23818 GUILE_CPPFLAGS=$new_CPPFLAGS
23819 GUILE_LIBS=$new_LIBS
23820 else
23821 found_usable_guile=no
23822 fi
23823 rm -f core conftest.err conftest.$ac_objext \
23824 conftest$ac_exeext conftest.$ac_ext
23825 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
23826 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
23827
23828 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
23829
23830
23831 fi
23832
23833 CPPFLAGS=$save_CPPFLAGS
23834 LIBS=$save_LIBS
23835 if test "${found_usable_guile}" = no; then
23836 if test "${flag_errors}" = yes; then
23837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23839 as_fn_error $? "linking guile version ${guile_version} test program failed
23840 See \`config.log' for more details" "$LINENO" 5; }
23841 fi
23842 fi
23843 fi
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
23845 $as_echo "${found_usable_guile}" >&6; }
23846
23847 ;;
23848 [\\/]* | ?:[\\/]*)
23849 if test -x "${with_guile}"; then
23850
23851 pkg_config=${with_guile}
23852 guile_version_list=${try_guile_versions}
23853 flag_errors=yes
23854
23855 found_usable_guile=checking
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
23857 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
23858 for guile_version in ${guile_version_list}; do
23859 ${pkg_config} --exists ${guile_version} 2>/dev/null
23860 if test $? != 0; then
23861 continue
23862 fi
23863 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
23864 if test $? != 0; then
23865 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
23866 fi
23867 new_LIBS=`${pkg_config} --libs ${guile_version}`
23868 if test $? != 0; then
23869 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
23870 fi
23871 found_usable_guile=${guile_version}
23872 break
23873 done
23874 if test "${found_usable_guile}" = "checking"; then
23875 if test "${flag_errors}" = "yes"; then
23876 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
23877 else
23878 found_usable_guile=no
23879 fi
23880 fi
23881 if test "${found_usable_guile}" != no; then
23882 save_CPPFLAGS=$CPPFLAGS
23883 save_LIBS=$LIBS
23884 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
23885 LIBS="$LIBS $new_LIBS"
23886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23887 /* end confdefs.h. */
23888 #include "libguile.h"
23889 int
23890 main ()
23891 {
23892 scm_init_guile ();
23893 ;
23894 return 0;
23895 }
23896 _ACEOF
23897 if ac_fn_c_try_link "$LINENO"; then :
23898 have_libguile=yes
23899 GUILE_CPPFLAGS=$new_CPPFLAGS
23900 GUILE_LIBS=$new_LIBS
23901 else
23902 found_usable_guile=no
23903 fi
23904 rm -f core conftest.err conftest.$ac_objext \
23905 conftest$ac_exeext conftest.$ac_ext
23906 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
23907 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
23908
23909 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
23910
23911
23912 fi
23913
23914 CPPFLAGS=$save_CPPFLAGS
23915 LIBS=$save_LIBS
23916 if test "${found_usable_guile}" = no; then
23917 if test "${flag_errors}" = yes; then
23918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23920 as_fn_error $? "linking guile version ${guile_version} test program failed
23921 See \`config.log' for more details" "$LINENO" 5; }
23922 fi
23923 fi
23924 fi
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
23926 $as_echo "${found_usable_guile}" >&6; }
23927
23928 else
23929 as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
23930 fi
23931 ;;
23932 "" | */*)
23933 # Disallow --with=guile="" and --with-guile=foo/bar.
23934 as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
23935 ;;
23936 *)
23937 # A space separate list of guile versions to try, in order.
23938 if test "${pkg_config_prog_path}" = "missing"; then
23939 as_fn_error $? "pkg-config not found" "$LINENO" 5
23940 fi
23941
23942 pkg_config=${pkg_config_prog_path}
23943 guile_version_list=${with_guile}
23944 flag_errors=yes
23945
23946 found_usable_guile=checking
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
23948 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
23949 for guile_version in ${guile_version_list}; do
23950 ${pkg_config} --exists ${guile_version} 2>/dev/null
23951 if test $? != 0; then
23952 continue
23953 fi
23954 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
23955 if test $? != 0; then
23956 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
23957 fi
23958 new_LIBS=`${pkg_config} --libs ${guile_version}`
23959 if test $? != 0; then
23960 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
23961 fi
23962 found_usable_guile=${guile_version}
23963 break
23964 done
23965 if test "${found_usable_guile}" = "checking"; then
23966 if test "${flag_errors}" = "yes"; then
23967 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
23968 else
23969 found_usable_guile=no
23970 fi
23971 fi
23972 if test "${found_usable_guile}" != no; then
23973 save_CPPFLAGS=$CPPFLAGS
23974 save_LIBS=$LIBS
23975 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
23976 LIBS="$LIBS $new_LIBS"
23977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23978 /* end confdefs.h. */
23979 #include "libguile.h"
23980 int
23981 main ()
23982 {
23983 scm_init_guile ();
23984 ;
23985 return 0;
23986 }
23987 _ACEOF
23988 if ac_fn_c_try_link "$LINENO"; then :
23989 have_libguile=yes
23990 GUILE_CPPFLAGS=$new_CPPFLAGS
23991 GUILE_LIBS=$new_LIBS
23992 else
23993 found_usable_guile=no
23994 fi
23995 rm -f core conftest.err conftest.$ac_objext \
23996 conftest$ac_exeext conftest.$ac_ext
23997 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
23998 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
23999
24000 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
24001
24002
24003 fi
24004
24005 CPPFLAGS=$save_CPPFLAGS
24006 LIBS=$save_LIBS
24007 if test "${found_usable_guile}" = no; then
24008 if test "${flag_errors}" = yes; then
24009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24011 as_fn_error $? "linking guile version ${guile_version} test program failed
24012 See \`config.log' for more details" "$LINENO" 5; }
24013 fi
24014 fi
24015 fi
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
24017 $as_echo "${found_usable_guile}" >&6; }
24018
24019 ;;
24020 esac
24021
24022 if test "${have_libguile}" != no; then
24023 case "${with_guile}" in
24024 [\\/]* | ?:[\\/]*)
24025
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
24027 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
24028 if ${ac_cv_guild_program_name+:} false; then :
24029 $as_echo_n "(cached) " >&6
24030 else
24031 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
24032
24033 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
24034 # the 'guild' and 'bindir' variables. In that case, try to guess
24035 # what the program name is, at the risk of getting it wrong if
24036 # Guile was configured with '--program-suffix' or similar.
24037 if test "x$ac_cv_guild_program_name" = "x"; then
24038 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
24039 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
24040 fi
24041
24042 fi
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
24044 $as_echo "$ac_cv_guild_program_name" >&6; }
24045
24046 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
24047 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
24048 fi
24049
24050 GUILD="$ac_cv_guild_program_name"
24051
24052
24053 ;;
24054 *)
24055
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
24057 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
24058 if ${ac_cv_guild_program_name+:} false; then :
24059 $as_echo_n "(cached) " >&6
24060 else
24061 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
24062
24063 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
24064 # the 'guild' and 'bindir' variables. In that case, try to guess
24065 # what the program name is, at the risk of getting it wrong if
24066 # Guile was configured with '--program-suffix' or similar.
24067 if test "x$ac_cv_guild_program_name" = "x"; then
24068 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
24069 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
24070 fi
24071
24072 fi
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
24074 $as_echo "$ac_cv_guild_program_name" >&6; }
24075
24076 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
24077 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
24078 fi
24079
24080 GUILD="$ac_cv_guild_program_name"
24081
24082
24083 ;;
24084 esac
24085
24086
24087 if test "$cross_compiling" = no; then
24088 GUILD_TARGET_FLAG=
24089 else
24090 GUILD_TARGET_FLAG="--target=$host"
24091 fi
24092
24093
24094
24095
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
24097 $as_echo_n "checking whether guild supports this host... " >&6; }
24098 if ${ac_cv_guild_ok+:} false; then :
24099 $as_echo_n "(cached) " >&6
24100 else
24101 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
24102 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
24103 ac_cv_guild_ok=yes
24104 else
24105 ac_cv_guild_ok=no
24106 fi
24107 fi
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
24109 $as_echo "$ac_cv_guild_ok" >&6; }
24110
24111 if test "$ac_cv_guild_ok" = no; then
24112 have_libguile=no
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
24114 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
24115 fi
24116 fi
24117
24118 if test "${have_libguile}" != no; then
24119
24120 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
24121
24122 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
24123 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
24124 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
24125 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
24126 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
24127
24128 save_LIBS="$LIBS"
24129 save_CPPFLAGS="$CPPFLAGS"
24130 LIBS="$GUILE_LIBS"
24131 CPPFLAGS="$GUILE_CPPFLAGS"
24132 for ac_func in scm_new_smob
24133 do :
24134 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
24135 if test "x$ac_cv_func_scm_new_smob" = xyes; then :
24136 cat >>confdefs.h <<_ACEOF
24137 #define HAVE_SCM_NEW_SMOB 1
24138 _ACEOF
24139
24140 fi
24141 done
24142
24143 LIBS="$save_LIBS"
24144 CPPFLAGS="$save_CPPFLAGS"
24145 else
24146 # Even if Guile support is not compiled in, we need to have these files
24147 # included.
24148 CONFIG_OBS="$CONFIG_OBS guile/guile.o"
24149 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
24150 fi
24151
24152
24153 if test "${have_libguile}" != no; then
24154 HAVE_GUILE_TRUE=
24155 HAVE_GUILE_FALSE='#'
24156 else
24157 HAVE_GUILE_TRUE='#'
24158 HAVE_GUILE_FALSE=
24159 fi
24160
24161
24162 # ---------------------------- #
24163 # Check for source highlight. #
24164 # ---------------------------- #
24165
24166 SRCHIGH_LIBS=
24167 SRCHIGH_CFLAGS=
24168
24169 # Check whether --enable-source-highlight was given.
24170 if test "${enable_source_highlight+set}" = set; then :
24171 enableval=$enable_source_highlight;
24172 case $enableval in
24173 yes | no | auto)
24174 ;;
24175 *)
24176 as_fn_error $? "bad value $enableval for --enable-source-highlight" "$LINENO" 5
24177 ;;
24178 esac
24179
24180 else
24181 enable_source_highlight=auto
24182 fi
24183
24184
24185 if test "${enable_source_highlight}" != "no"; then
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
24187 $as_echo_n "checking for the source-highlight library... " >&6; }
24188 if test "${pkg_config_prog_path}" = "missing"; then
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
24190 $as_echo "no - pkg-config not found" >&6; }
24191 if test "${enable_source_highlight}" = "yes"; then
24192 as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5
24193 fi
24194 else
24195 if ${pkg_config_prog_path} --exists source-highlight; then
24196 case "$LDFLAGS" in
24197 *static-libstdc*)
24198 as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
24199 ;;
24200 esac
24201
24202 srchigh_pkg_cflags=`${pkg_config_prog_path} --cflags source-highlight`
24203 srchigh_pkg_libs=`${pkg_config_prog_path} --libs source-highlight`
24204
24205 # Now that we have found a source-highlight library, check if we can use
24206 # it. In particular, we're trying to detect the situation that the
24207 # library is using the new libstdc++ library abi ( see
24208 # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
24209 # while the compiler being used to compile gdb is using the old abi.
24210 # Such a situation will result in an undefined reference to
24211 # srchilite::SourceHighlight::SourceHighlight(std::string const&).
24212 # This situation can occur for instance when using a source highlight
24213 # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
24214 ac_ext=cpp
24215 ac_cpp='$CXXCPP $CPPFLAGS'
24216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24219
24220 save_CXXFLAGS="$CXXFLAGS"
24221 save_LIBS="$LIBS"
24222 CXXFLAGS="$CXXFLAGS $srchigh_pkg_cflags"
24223 LIBS="$LIBS $srchigh_pkg_libs"
24224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24225 /* end confdefs.h. */
24226 #include <srchilite/sourcehighlight.h>
24227 int
24228 main ()
24229 {
24230 std::string outlang = "esc.outlang";
24231 new srchilite::SourceHighlight (outlang);
24232
24233 ;
24234 return 0;
24235 }
24236 _ACEOF
24237 if ac_fn_cxx_try_link "$LINENO"; then :
24238 have_usable_source_highlight=yes
24239 else
24240 have_usable_source_highlight=no
24241
24242 fi
24243 rm -f core conftest.err conftest.$ac_objext \
24244 conftest$ac_exeext conftest.$ac_ext
24245 CXXFLAGS="$save_CXXFLAGS"
24246 LIBS="$save_LIBS"
24247 ac_ext=c
24248 ac_cpp='$CPP $CPPFLAGS'
24249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24252
24253
24254 if test "${have_usable_source_highlight}" = "yes"; then
24255
24256 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
24257
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24259 $as_echo "yes" >&6; }
24260 SRCHIGH_CFLAGS="$srchigh_pkg_cflags"
24261 SRCHIGH_LIBS="$srchigh_pkg_libs"
24262 else
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24264 $as_echo "no" >&6; }
24265 if test "${enable_source_highlight}" = "yes"; then
24266 as_fn_error $? "source-highlight in your system could not be used" "$LINENO" 5
24267 fi
24268 fi
24269 else
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24271 $as_echo "no" >&6; }
24272 if test "${enable_source_highlight}" = "yes"; then
24273 as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5
24274 fi
24275 fi
24276 fi
24277 fi
24278
24279
24280
24281 # ------------------------- #
24282 # Checks for header files. #
24283 # ------------------------- #
24284
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24286 $as_echo_n "checking for ANSI C header files... " >&6; }
24287 if ${ac_cv_header_stdc+:} false; then :
24288 $as_echo_n "(cached) " >&6
24289 else
24290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24291 /* end confdefs.h. */
24292 #include <stdlib.h>
24293 #include <stdarg.h>
24294 #include <string.h>
24295 #include <float.h>
24296
24297 int
24298 main ()
24299 {
24300
24301 ;
24302 return 0;
24303 }
24304 _ACEOF
24305 if ac_fn_c_try_compile "$LINENO"; then :
24306 ac_cv_header_stdc=yes
24307 else
24308 ac_cv_header_stdc=no
24309 fi
24310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24311
24312 if test $ac_cv_header_stdc = yes; then
24313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24315 /* end confdefs.h. */
24316 #include <string.h>
24317
24318 _ACEOF
24319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24320 $EGREP "memchr" >/dev/null 2>&1; then :
24321
24322 else
24323 ac_cv_header_stdc=no
24324 fi
24325 rm -f conftest*
24326
24327 fi
24328
24329 if test $ac_cv_header_stdc = yes; then
24330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24332 /* end confdefs.h. */
24333 #include <stdlib.h>
24334
24335 _ACEOF
24336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24337 $EGREP "free" >/dev/null 2>&1; then :
24338
24339 else
24340 ac_cv_header_stdc=no
24341 fi
24342 rm -f conftest*
24343
24344 fi
24345
24346 if test $ac_cv_header_stdc = yes; then
24347 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24348 if test "$cross_compiling" = yes; then :
24349 :
24350 else
24351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24352 /* end confdefs.h. */
24353 #include <ctype.h>
24354 #include <stdlib.h>
24355 #if ((' ' & 0x0FF) == 0x020)
24356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24358 #else
24359 # define ISLOWER(c) \
24360 (('a' <= (c) && (c) <= 'i') \
24361 || ('j' <= (c) && (c) <= 'r') \
24362 || ('s' <= (c) && (c) <= 'z'))
24363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24364 #endif
24365
24366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24367 int
24368 main ()
24369 {
24370 int i;
24371 for (i = 0; i < 256; i++)
24372 if (XOR (islower (i), ISLOWER (i))
24373 || toupper (i) != TOUPPER (i))
24374 return 2;
24375 return 0;
24376 }
24377 _ACEOF
24378 if ac_fn_c_try_run "$LINENO"; then :
24379
24380 else
24381 ac_cv_header_stdc=no
24382 fi
24383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24384 conftest.$ac_objext conftest.beam conftest.$ac_ext
24385 fi
24386
24387 fi
24388 fi
24389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24390 $as_echo "$ac_cv_header_stdc" >&6; }
24391 if test $ac_cv_header_stdc = yes; then
24392
24393 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
24394
24395 fi
24396
24397 # elf_hp.h is for HP/UX 64-bit shared library support.
24398 for ac_header in nlist.h machine/reg.h \
24399 thread_db.h \
24400 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
24401 sys/procctl.h sys/resource.h sys/ptrace.h ptrace.h \
24402 sys/reg.h sys/debugreg.h \
24403 termios.h elf_hp.h
24404 do :
24405 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24406 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24407 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24408 cat >>confdefs.h <<_ACEOF
24409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24410 _ACEOF
24411
24412 fi
24413
24414 done
24415
24416 for ac_header in sys/user.h
24417 do :
24418 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
24419 # include <sys/param.h>
24420 #endif
24421
24422 "
24423 if test "x$ac_cv_header_sys_user_h" = xyes; then :
24424 cat >>confdefs.h <<_ACEOF
24425 #define HAVE_SYS_USER_H 1
24426 _ACEOF
24427
24428 fi
24429
24430 done
24431
24432
24433 for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h
24434 do :
24435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24436 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24437 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24438 cat >>confdefs.h <<_ACEOF
24439 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24440 _ACEOF
24441
24442 fi
24443
24444 done
24445
24446 for ac_header in term.h
24447 do :
24448 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
24449 # include <curses.h>
24450 #endif
24451
24452 "
24453 if test "x$ac_cv_header_term_h" = xyes; then :
24454 cat >>confdefs.h <<_ACEOF
24455 #define HAVE_TERM_H 1
24456 _ACEOF
24457
24458 fi
24459
24460 done
24461
24462
24463 for ac_header in sys/socket.h
24464 do :
24465 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
24466 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
24467 cat >>confdefs.h <<_ACEOF
24468 #define HAVE_SYS_SOCKET_H 1
24469 _ACEOF
24470
24471 fi
24472
24473 done
24474
24475 for ac_header in ws2tcpip.h
24476 do :
24477 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
24478 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
24479 cat >>confdefs.h <<_ACEOF
24480 #define HAVE_WS2TCPIP_H 1
24481 _ACEOF
24482
24483 fi
24484
24485 done
24486
24487 for ac_header in execinfo.h
24488 do :
24489 ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
24490 if test "x$ac_cv_header_execinfo_h" = xyes; then :
24491 cat >>confdefs.h <<_ACEOF
24492 #define HAVE_EXECINFO_H 1
24493 _ACEOF
24494
24495 fi
24496
24497 done
24498
24499
24500 # ------------------------- #
24501 # Checks for declarations. #
24502 # ------------------------- #
24503
24504
24505 # Check for presence and size of long long.
24506 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
24507 if test "x$ac_cv_type_long_long" = xyes; then :
24508
24509 cat >>confdefs.h <<_ACEOF
24510 #define HAVE_LONG_LONG 1
24511 _ACEOF
24512
24513 # The cast to long int works around a bug in the HP C Compiler
24514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24516 # This bug is HP SR number 8606223364.
24517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24518 $as_echo_n "checking size of long long... " >&6; }
24519 if ${ac_cv_sizeof_long_long+:} false; then :
24520 $as_echo_n "(cached) " >&6
24521 else
24522 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
24523
24524 else
24525 if test "$ac_cv_type_long_long" = yes; then
24526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24528 as_fn_error 77 "cannot compute sizeof (long long)
24529 See \`config.log' for more details" "$LINENO" 5; }
24530 else
24531 ac_cv_sizeof_long_long=0
24532 fi
24533 fi
24534
24535 fi
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24537 $as_echo "$ac_cv_sizeof_long_long" >&6; }
24538
24539
24540
24541 cat >>confdefs.h <<_ACEOF
24542 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24543 _ACEOF
24544
24545
24546 fi
24547
24548
24549 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
24550 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
24551 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
24552 ac_have_decl=1
24553 else
24554 ac_have_decl=0
24555 fi
24556
24557 cat >>confdefs.h <<_ACEOF
24558 #define HAVE_DECL_BASENAME $ac_have_decl
24559 _ACEOF
24560 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
24561 if test "x$ac_cv_have_decl_ffs" = xyes; then :
24562 ac_have_decl=1
24563 else
24564 ac_have_decl=0
24565 fi
24566
24567 cat >>confdefs.h <<_ACEOF
24568 #define HAVE_DECL_FFS $ac_have_decl
24569 _ACEOF
24570 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
24571 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
24572 ac_have_decl=1
24573 else
24574 ac_have_decl=0
24575 fi
24576
24577 cat >>confdefs.h <<_ACEOF
24578 #define HAVE_DECL_ASPRINTF $ac_have_decl
24579 _ACEOF
24580 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
24581 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
24582 ac_have_decl=1
24583 else
24584 ac_have_decl=0
24585 fi
24586
24587 cat >>confdefs.h <<_ACEOF
24588 #define HAVE_DECL_VASPRINTF $ac_have_decl
24589 _ACEOF
24590 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
24591 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
24592 ac_have_decl=1
24593 else
24594 ac_have_decl=0
24595 fi
24596
24597 cat >>confdefs.h <<_ACEOF
24598 #define HAVE_DECL_SNPRINTF $ac_have_decl
24599 _ACEOF
24600 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
24601 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
24602 ac_have_decl=1
24603 else
24604 ac_have_decl=0
24605 fi
24606
24607 cat >>confdefs.h <<_ACEOF
24608 #define HAVE_DECL_VSNPRINTF $ac_have_decl
24609 _ACEOF
24610
24611 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
24612 if test "x$ac_cv_have_decl_strtol" = xyes; then :
24613 ac_have_decl=1
24614 else
24615 ac_have_decl=0
24616 fi
24617
24618 cat >>confdefs.h <<_ACEOF
24619 #define HAVE_DECL_STRTOL $ac_have_decl
24620 _ACEOF
24621 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
24622 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
24623 ac_have_decl=1
24624 else
24625 ac_have_decl=0
24626 fi
24627
24628 cat >>confdefs.h <<_ACEOF
24629 #define HAVE_DECL_STRTOUL $ac_have_decl
24630 _ACEOF
24631 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
24632 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
24633 ac_have_decl=1
24634 else
24635 ac_have_decl=0
24636 fi
24637
24638 cat >>confdefs.h <<_ACEOF
24639 #define HAVE_DECL_STRTOLL $ac_have_decl
24640 _ACEOF
24641 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
24642 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
24643 ac_have_decl=1
24644 else
24645 ac_have_decl=0
24646 fi
24647
24648 cat >>confdefs.h <<_ACEOF
24649 #define HAVE_DECL_STRTOULL $ac_have_decl
24650 _ACEOF
24651
24652 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
24653 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
24654 ac_have_decl=1
24655 else
24656 ac_have_decl=0
24657 fi
24658
24659 cat >>confdefs.h <<_ACEOF
24660 #define HAVE_DECL_STRVERSCMP $ac_have_decl
24661 _ACEOF
24662
24663
24664
24665 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
24666 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
24667 ac_have_decl=1
24668 else
24669 ac_have_decl=0
24670 fi
24671
24672 cat >>confdefs.h <<_ACEOF
24673 #define HAVE_DECL_SNPRINTF $ac_have_decl
24674 _ACEOF
24675
24676
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
24678 $as_echo_n "checking for LC_MESSAGES... " >&6; }
24679 if ${am_cv_val_LC_MESSAGES+:} false; then :
24680 $as_echo_n "(cached) " >&6
24681 else
24682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24683 /* end confdefs.h. */
24684 #include <locale.h>
24685 int
24686 main ()
24687 {
24688 return LC_MESSAGES
24689 ;
24690 return 0;
24691 }
24692 _ACEOF
24693 if ac_fn_c_try_link "$LINENO"; then :
24694 am_cv_val_LC_MESSAGES=yes
24695 else
24696 am_cv_val_LC_MESSAGES=no
24697 fi
24698 rm -f core conftest.err conftest.$ac_objext \
24699 conftest$ac_exeext conftest.$ac_ext
24700 fi
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
24702 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
24703 if test $am_cv_val_LC_MESSAGES = yes; then
24704
24705 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
24706
24707 fi
24708
24709
24710 # ------------------ #
24711 # Checks for types. #
24712 # ------------------ #
24713
24714 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
24715 #if HAVE_SYS_SOCKET_H
24716 # include <sys/socket.h>
24717 #elif HAVE_WS2TCPIP_H
24718 # include <ws2tcpip.h>
24719 #endif
24720
24721 "
24722 if test "x$ac_cv_type_socklen_t" = xyes; then :
24723
24724 cat >>confdefs.h <<_ACEOF
24725 #define HAVE_SOCKLEN_T 1
24726 _ACEOF
24727
24728
24729 fi
24730
24731
24732 # ------------------------------------- #
24733 # Checks for compiler characteristics. #
24734 # ------------------------------------- #
24735
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
24737 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
24738 if ${ac_cv_c_const+:} false; then :
24739 $as_echo_n "(cached) " >&6
24740 else
24741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24742 /* end confdefs.h. */
24743
24744 int
24745 main ()
24746 {
24747
24748 #ifndef __cplusplus
24749 /* Ultrix mips cc rejects this sort of thing. */
24750 typedef int charset[2];
24751 const charset cs = { 0, 0 };
24752 /* SunOS 4.1.1 cc rejects this. */
24753 char const *const *pcpcc;
24754 char **ppc;
24755 /* NEC SVR4.0.2 mips cc rejects this. */
24756 struct point {int x, y;};
24757 static struct point const zero = {0,0};
24758 /* AIX XL C 1.02.0.0 rejects this.
24759 It does not let you subtract one const X* pointer from another in
24760 an arm of an if-expression whose if-part is not a constant
24761 expression */
24762 const char *g = "string";
24763 pcpcc = &g + (g ? g-g : 0);
24764 /* HPUX 7.0 cc rejects these. */
24765 ++pcpcc;
24766 ppc = (char**) pcpcc;
24767 pcpcc = (char const *const *) ppc;
24768 { /* SCO 3.2v4 cc rejects this sort of thing. */
24769 char tx;
24770 char *t = &tx;
24771 char const *s = 0 ? (char *) 0 : (char const *) 0;
24772
24773 *t++ = 0;
24774 if (s) return 0;
24775 }
24776 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24777 int x[] = {25, 17};
24778 const int *foo = &x[0];
24779 ++foo;
24780 }
24781 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24782 typedef const int *iptr;
24783 iptr p = 0;
24784 ++p;
24785 }
24786 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
24787 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24788 struct s { int j; const int *ap[3]; } bx;
24789 struct s *b = &bx; b->j = 5;
24790 }
24791 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24792 const int foo = 10;
24793 if (!foo) return 0;
24794 }
24795 return !cs[0] && !zero.x;
24796 #endif
24797
24798 ;
24799 return 0;
24800 }
24801 _ACEOF
24802 if ac_fn_c_try_compile "$LINENO"; then :
24803 ac_cv_c_const=yes
24804 else
24805 ac_cv_c_const=no
24806 fi
24807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24808 fi
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
24810 $as_echo "$ac_cv_c_const" >&6; }
24811 if test $ac_cv_c_const = no; then
24812
24813 $as_echo "#define const /**/" >>confdefs.h
24814
24815 fi
24816
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24818 $as_echo_n "checking for inline... " >&6; }
24819 if ${ac_cv_c_inline+:} false; then :
24820 $as_echo_n "(cached) " >&6
24821 else
24822 ac_cv_c_inline=no
24823 for ac_kw in inline __inline__ __inline; do
24824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24825 /* end confdefs.h. */
24826 #ifndef __cplusplus
24827 typedef int foo_t;
24828 static $ac_kw foo_t static_foo () {return 0; }
24829 $ac_kw foo_t foo () {return 0; }
24830 #endif
24831
24832 _ACEOF
24833 if ac_fn_c_try_compile "$LINENO"; then :
24834 ac_cv_c_inline=$ac_kw
24835 fi
24836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24837 test "$ac_cv_c_inline" != no && break
24838 done
24839
24840 fi
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24842 $as_echo "$ac_cv_c_inline" >&6; }
24843
24844 case $ac_cv_c_inline in
24845 inline | yes) ;;
24846 *)
24847 case $ac_cv_c_inline in
24848 no) ac_val=;;
24849 *) ac_val=$ac_cv_c_inline;;
24850 esac
24851 cat >>confdefs.h <<_ACEOF
24852 #ifndef __cplusplus
24853 #define inline $ac_val
24854 #endif
24855 _ACEOF
24856 ;;
24857 esac
24858
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24860 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
24861 if ${ac_cv_c_bigendian+:} false; then :
24862 $as_echo_n "(cached) " >&6
24863 else
24864 ac_cv_c_bigendian=unknown
24865 # See if we're dealing with a universal compiler.
24866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24867 /* end confdefs.h. */
24868 #ifndef __APPLE_CC__
24869 not a universal capable compiler
24870 #endif
24871 typedef int dummy;
24872
24873 _ACEOF
24874 if ac_fn_c_try_compile "$LINENO"; then :
24875
24876 # Check for potential -arch flags. It is not universal unless
24877 # there are at least two -arch flags with different values.
24878 ac_arch=
24879 ac_prev=
24880 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24881 if test -n "$ac_prev"; then
24882 case $ac_word in
24883 i?86 | x86_64 | ppc | ppc64)
24884 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24885 ac_arch=$ac_word
24886 else
24887 ac_cv_c_bigendian=universal
24888 break
24889 fi
24890 ;;
24891 esac
24892 ac_prev=
24893 elif test "x$ac_word" = "x-arch"; then
24894 ac_prev=arch
24895 fi
24896 done
24897 fi
24898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24899 if test $ac_cv_c_bigendian = unknown; then
24900 # See if sys/param.h defines the BYTE_ORDER macro.
24901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24902 /* end confdefs.h. */
24903 #include <sys/types.h>
24904 #include <sys/param.h>
24905
24906 int
24907 main ()
24908 {
24909 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24910 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24911 && LITTLE_ENDIAN)
24912 bogus endian macros
24913 #endif
24914
24915 ;
24916 return 0;
24917 }
24918 _ACEOF
24919 if ac_fn_c_try_compile "$LINENO"; then :
24920 # It does; now see whether it defined to BIG_ENDIAN or not.
24921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24922 /* end confdefs.h. */
24923 #include <sys/types.h>
24924 #include <sys/param.h>
24925
24926 int
24927 main ()
24928 {
24929 #if BYTE_ORDER != BIG_ENDIAN
24930 not big endian
24931 #endif
24932
24933 ;
24934 return 0;
24935 }
24936 _ACEOF
24937 if ac_fn_c_try_compile "$LINENO"; then :
24938 ac_cv_c_bigendian=yes
24939 else
24940 ac_cv_c_bigendian=no
24941 fi
24942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24943 fi
24944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24945 fi
24946 if test $ac_cv_c_bigendian = unknown; then
24947 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24949 /* end confdefs.h. */
24950 #include <limits.h>
24951
24952 int
24953 main ()
24954 {
24955 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24956 bogus endian macros
24957 #endif
24958
24959 ;
24960 return 0;
24961 }
24962 _ACEOF
24963 if ac_fn_c_try_compile "$LINENO"; then :
24964 # It does; now see whether it defined to _BIG_ENDIAN or not.
24965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24966 /* end confdefs.h. */
24967 #include <limits.h>
24968
24969 int
24970 main ()
24971 {
24972 #ifndef _BIG_ENDIAN
24973 not big endian
24974 #endif
24975
24976 ;
24977 return 0;
24978 }
24979 _ACEOF
24980 if ac_fn_c_try_compile "$LINENO"; then :
24981 ac_cv_c_bigendian=yes
24982 else
24983 ac_cv_c_bigendian=no
24984 fi
24985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24986 fi
24987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24988 fi
24989 if test $ac_cv_c_bigendian = unknown; then
24990 # Compile a test program.
24991 if test "$cross_compiling" = yes; then :
24992 # Try to guess by grepping values from an object file.
24993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24994 /* end confdefs.h. */
24995 short int ascii_mm[] =
24996 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24997 short int ascii_ii[] =
24998 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24999 int use_ascii (int i) {
25000 return ascii_mm[i] + ascii_ii[i];
25001 }
25002 short int ebcdic_ii[] =
25003 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25004 short int ebcdic_mm[] =
25005 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25006 int use_ebcdic (int i) {
25007 return ebcdic_mm[i] + ebcdic_ii[i];
25008 }
25009 extern int foo;
25010
25011 int
25012 main ()
25013 {
25014 return use_ascii (foo) == use_ebcdic (foo);
25015 ;
25016 return 0;
25017 }
25018 _ACEOF
25019 if ac_fn_c_try_compile "$LINENO"; then :
25020 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25021 ac_cv_c_bigendian=yes
25022 fi
25023 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25024 if test "$ac_cv_c_bigendian" = unknown; then
25025 ac_cv_c_bigendian=no
25026 else
25027 # finding both strings is unlikely to happen, but who knows?
25028 ac_cv_c_bigendian=unknown
25029 fi
25030 fi
25031 fi
25032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25033 else
25034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25035 /* end confdefs.h. */
25036 $ac_includes_default
25037 int
25038 main ()
25039 {
25040
25041 /* Are we little or big endian? From Harbison&Steele. */
25042 union
25043 {
25044 long int l;
25045 char c[sizeof (long int)];
25046 } u;
25047 u.l = 1;
25048 return u.c[sizeof (long int) - 1] == 1;
25049
25050 ;
25051 return 0;
25052 }
25053 _ACEOF
25054 if ac_fn_c_try_run "$LINENO"; then :
25055 ac_cv_c_bigendian=no
25056 else
25057 ac_cv_c_bigendian=yes
25058 fi
25059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25060 conftest.$ac_objext conftest.beam conftest.$ac_ext
25061 fi
25062
25063 fi
25064 fi
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25066 $as_echo "$ac_cv_c_bigendian" >&6; }
25067 case $ac_cv_c_bigendian in #(
25068 yes)
25069 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
25070 ;; #(
25071 no)
25072 ;; #(
25073 universal)
25074
25075 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25076
25077 ;; #(
25078 *)
25079 as_fn_error $? "unknown endianness
25080 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
25081 esac
25082
25083
25084 # ------------------------------ #
25085 # Checks for library functions. #
25086 # ------------------------------ #
25087
25088 for ac_func in getuid getgid \
25089 pread pread64 pwrite resize_term \
25090 getpgid setsid \
25091 sigsetmask \
25092 ttrace wresize setlocale iconvlist libiconvlist btowc \
25093 setrlimit getrlimit posix_madvise waitpid \
25094 use_default_colors
25095 do :
25096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25097 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25098 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25099 cat >>confdefs.h <<_ACEOF
25100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25101 _ACEOF
25102
25103 fi
25104 done
25105
25106
25107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
25108 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25109 if ${am_cv_langinfo_codeset+:} false; then :
25110 $as_echo_n "(cached) " >&6
25111 else
25112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25113 /* end confdefs.h. */
25114 #include <langinfo.h>
25115 int
25116 main ()
25117 {
25118 char* cs = nl_langinfo(CODESET);
25119 ;
25120 return 0;
25121 }
25122 _ACEOF
25123 if ac_fn_c_try_link "$LINENO"; then :
25124 am_cv_langinfo_codeset=yes
25125 else
25126 am_cv_langinfo_codeset=no
25127 fi
25128 rm -f core conftest.err conftest.$ac_objext \
25129 conftest$ac_exeext conftest.$ac_ext
25130
25131 fi
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
25133 $as_echo "$am_cv_langinfo_codeset" >&6; }
25134 if test $am_cv_langinfo_codeset = yes; then
25135
25136 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
25137
25138 fi
25139
25140 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
25141 if test "x$ac_cv_type_size_t" = xyes; then :
25142
25143 else
25144
25145 cat >>confdefs.h <<_ACEOF
25146 #define size_t unsigned int
25147 _ACEOF
25148
25149 fi
25150
25151
25152
25153
25154 for ac_header in $ac_header_list
25155 do :
25156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25157 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
25158 "
25159 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25160 cat >>confdefs.h <<_ACEOF
25161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25162 _ACEOF
25163
25164 fi
25165
25166 done
25167
25168
25169
25170
25171
25172
25173
25174 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
25175 if test "x$ac_cv_type_pid_t" = xyes; then :
25176
25177 else
25178
25179 cat >>confdefs.h <<_ACEOF
25180 #define pid_t int
25181 _ACEOF
25182
25183 fi
25184
25185
25186 # Set the 'development' global.
25187 . $srcdir/../bfd/development.sh
25188
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25190 $as_echo_n "checking for ANSI C header files... " >&6; }
25191 if ${ac_cv_header_stdc+:} false; then :
25192 $as_echo_n "(cached) " >&6
25193 else
25194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25195 /* end confdefs.h. */
25196 #include <stdlib.h>
25197 #include <stdarg.h>
25198 #include <string.h>
25199 #include <float.h>
25200
25201 int
25202 main ()
25203 {
25204
25205 ;
25206 return 0;
25207 }
25208 _ACEOF
25209 if ac_fn_c_try_compile "$LINENO"; then :
25210 ac_cv_header_stdc=yes
25211 else
25212 ac_cv_header_stdc=no
25213 fi
25214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25215
25216 if test $ac_cv_header_stdc = yes; then
25217 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25219 /* end confdefs.h. */
25220 #include <string.h>
25221
25222 _ACEOF
25223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25224 $EGREP "memchr" >/dev/null 2>&1; then :
25225
25226 else
25227 ac_cv_header_stdc=no
25228 fi
25229 rm -f conftest*
25230
25231 fi
25232
25233 if test $ac_cv_header_stdc = yes; then
25234 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25236 /* end confdefs.h. */
25237 #include <stdlib.h>
25238
25239 _ACEOF
25240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25241 $EGREP "free" >/dev/null 2>&1; then :
25242
25243 else
25244 ac_cv_header_stdc=no
25245 fi
25246 rm -f conftest*
25247
25248 fi
25249
25250 if test $ac_cv_header_stdc = yes; then
25251 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25252 if test "$cross_compiling" = yes; then :
25253 :
25254 else
25255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25256 /* end confdefs.h. */
25257 #include <ctype.h>
25258 #include <stdlib.h>
25259 #if ((' ' & 0x0FF) == 0x020)
25260 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25261 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25262 #else
25263 # define ISLOWER(c) \
25264 (('a' <= (c) && (c) <= 'i') \
25265 || ('j' <= (c) && (c) <= 'r') \
25266 || ('s' <= (c) && (c) <= 'z'))
25267 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25268 #endif
25269
25270 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25271 int
25272 main ()
25273 {
25274 int i;
25275 for (i = 0; i < 256; i++)
25276 if (XOR (islower (i), ISLOWER (i))
25277 || toupper (i) != TOUPPER (i))
25278 return 2;
25279 return 0;
25280 }
25281 _ACEOF
25282 if ac_fn_c_try_run "$LINENO"; then :
25283
25284 else
25285 ac_cv_header_stdc=no
25286 fi
25287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25288 conftest.$ac_objext conftest.beam conftest.$ac_ext
25289 fi
25290
25291 fi
25292 fi
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25294 $as_echo "$ac_cv_header_stdc" >&6; }
25295 if test $ac_cv_header_stdc = yes; then
25296
25297 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25298
25299 fi
25300
25301 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25302 # for constant arguments. Useless!
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
25304 $as_echo_n "checking for working alloca.h... " >&6; }
25305 if ${ac_cv_working_alloca_h+:} false; then :
25306 $as_echo_n "(cached) " >&6
25307 else
25308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25309 /* end confdefs.h. */
25310 #include <alloca.h>
25311 int
25312 main ()
25313 {
25314 char *p = (char *) alloca (2 * sizeof (int));
25315 if (p) return 0;
25316 ;
25317 return 0;
25318 }
25319 _ACEOF
25320 if ac_fn_c_try_link "$LINENO"; then :
25321 ac_cv_working_alloca_h=yes
25322 else
25323 ac_cv_working_alloca_h=no
25324 fi
25325 rm -f core conftest.err conftest.$ac_objext \
25326 conftest$ac_exeext conftest.$ac_ext
25327 fi
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
25329 $as_echo "$ac_cv_working_alloca_h" >&6; }
25330 if test $ac_cv_working_alloca_h = yes; then
25331
25332 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
25333
25334 fi
25335
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
25337 $as_echo_n "checking for alloca... " >&6; }
25338 if ${ac_cv_func_alloca_works+:} false; then :
25339 $as_echo_n "(cached) " >&6
25340 else
25341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25342 /* end confdefs.h. */
25343 #ifdef __GNUC__
25344 # define alloca __builtin_alloca
25345 #else
25346 # ifdef _MSC_VER
25347 # include <malloc.h>
25348 # define alloca _alloca
25349 # else
25350 # ifdef HAVE_ALLOCA_H
25351 # include <alloca.h>
25352 # else
25353 # ifdef _AIX
25354 #pragma alloca
25355 # else
25356 # ifndef alloca /* predefined by HP cc +Olibcalls */
25357 void *alloca (size_t);
25358 # endif
25359 # endif
25360 # endif
25361 # endif
25362 #endif
25363
25364 int
25365 main ()
25366 {
25367 char *p = (char *) alloca (1);
25368 if (p) return 0;
25369 ;
25370 return 0;
25371 }
25372 _ACEOF
25373 if ac_fn_c_try_link "$LINENO"; then :
25374 ac_cv_func_alloca_works=yes
25375 else
25376 ac_cv_func_alloca_works=no
25377 fi
25378 rm -f core conftest.err conftest.$ac_objext \
25379 conftest$ac_exeext conftest.$ac_ext
25380 fi
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
25382 $as_echo "$ac_cv_func_alloca_works" >&6; }
25383
25384 if test $ac_cv_func_alloca_works = yes; then
25385
25386 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
25387
25388 else
25389 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25390 # that cause trouble. Some versions do not even contain alloca or
25391 # contain a buggy version. If you still want to use their alloca,
25392 # use ar to extract alloca.o from them instead of compiling alloca.c.
25393
25394 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25395
25396 $as_echo "#define C_ALLOCA 1" >>confdefs.h
25397
25398
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
25400 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
25401 if ${ac_cv_os_cray+:} false; then :
25402 $as_echo_n "(cached) " >&6
25403 else
25404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25405 /* end confdefs.h. */
25406 #if defined CRAY && ! defined CRAY2
25407 webecray
25408 #else
25409 wenotbecray
25410 #endif
25411
25412 _ACEOF
25413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25414 $EGREP "webecray" >/dev/null 2>&1; then :
25415 ac_cv_os_cray=yes
25416 else
25417 ac_cv_os_cray=no
25418 fi
25419 rm -f conftest*
25420
25421 fi
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
25423 $as_echo "$ac_cv_os_cray" >&6; }
25424 if test $ac_cv_os_cray = yes; then
25425 for ac_func in _getb67 GETB67 getb67; do
25426 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25427 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25428 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25429
25430 cat >>confdefs.h <<_ACEOF
25431 #define CRAY_STACKSEG_END $ac_func
25432 _ACEOF
25433
25434 break
25435 fi
25436
25437 done
25438 fi
25439
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
25441 $as_echo_n "checking stack direction for C alloca... " >&6; }
25442 if ${ac_cv_c_stack_direction+:} false; then :
25443 $as_echo_n "(cached) " >&6
25444 else
25445 if test "$cross_compiling" = yes; then :
25446 ac_cv_c_stack_direction=0
25447 else
25448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25449 /* end confdefs.h. */
25450 $ac_includes_default
25451 int
25452 find_stack_direction (int *addr, int depth)
25453 {
25454 int dir, dummy = 0;
25455 if (! addr)
25456 addr = &dummy;
25457 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
25458 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
25459 return dir + dummy;
25460 }
25461
25462 int
25463 main (int argc, char **argv)
25464 {
25465 return find_stack_direction (0, argc + !argv + 20) < 0;
25466 }
25467 _ACEOF
25468 if ac_fn_c_try_run "$LINENO"; then :
25469 ac_cv_c_stack_direction=1
25470 else
25471 ac_cv_c_stack_direction=-1
25472 fi
25473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25474 conftest.$ac_objext conftest.beam conftest.$ac_ext
25475 fi
25476
25477 fi
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
25479 $as_echo "$ac_cv_c_stack_direction" >&6; }
25480 cat >>confdefs.h <<_ACEOF
25481 #define STACK_DIRECTION $ac_cv_c_stack_direction
25482 _ACEOF
25483
25484
25485 fi
25486
25487
25488 WIN32APILIBS=
25489 case ${host} in
25490 *mingw32*)
25491
25492 $as_echo "#define USE_WIN32API 1" >>confdefs.h
25493
25494 WIN32APILIBS="-lws2_32"
25495 ;;
25496 esac
25497
25498
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
25500 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25501 if ${am_cv_langinfo_codeset+:} false; then :
25502 $as_echo_n "(cached) " >&6
25503 else
25504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25505 /* end confdefs.h. */
25506 #include <langinfo.h>
25507 int
25508 main ()
25509 {
25510 char* cs = nl_langinfo(CODESET);
25511 ;
25512 return 0;
25513 }
25514 _ACEOF
25515 if ac_fn_c_try_link "$LINENO"; then :
25516 am_cv_langinfo_codeset=yes
25517 else
25518 am_cv_langinfo_codeset=no
25519 fi
25520 rm -f core conftest.err conftest.$ac_objext \
25521 conftest$ac_exeext conftest.$ac_ext
25522
25523 fi
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
25525 $as_echo "$am_cv_langinfo_codeset" >&6; }
25526 if test $am_cv_langinfo_codeset = yes; then
25527
25528 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
25529
25530 fi
25531
25532
25533 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
25534 do :
25535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25536 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25537 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25538 cat >>confdefs.h <<_ACEOF
25539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25540 _ACEOF
25541
25542 fi
25543
25544 done
25545
25546
25547
25548 for ac_func in getpagesize
25549 do :
25550 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
25551 if test "x$ac_cv_func_getpagesize" = xyes; then :
25552 cat >>confdefs.h <<_ACEOF
25553 #define HAVE_GETPAGESIZE 1
25554 _ACEOF
25555
25556 fi
25557 done
25558
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
25560 $as_echo_n "checking for working mmap... " >&6; }
25561 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
25562 $as_echo_n "(cached) " >&6
25563 else
25564 if test "$cross_compiling" = yes; then :
25565 ac_cv_func_mmap_fixed_mapped=no
25566 else
25567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25568 /* end confdefs.h. */
25569 $ac_includes_default
25570 /* malloc might have been renamed as rpl_malloc. */
25571 #undef malloc
25572
25573 /* Thanks to Mike Haertel and Jim Avera for this test.
25574 Here is a matrix of mmap possibilities:
25575 mmap private not fixed
25576 mmap private fixed at somewhere currently unmapped
25577 mmap private fixed at somewhere already mapped
25578 mmap shared not fixed
25579 mmap shared fixed at somewhere currently unmapped
25580 mmap shared fixed at somewhere already mapped
25581 For private mappings, we should verify that changes cannot be read()
25582 back from the file, nor mmap's back from the file at a different
25583 address. (There have been systems where private was not correctly
25584 implemented like the infamous i386 svr4.0, and systems where the
25585 VM page cache was not coherent with the file system buffer cache
25586 like early versions of FreeBSD and possibly contemporary NetBSD.)
25587 For shared mappings, we should conversely verify that changes get
25588 propagated back to all the places they're supposed to be.
25589
25590 Grep wants private fixed already mapped.
25591 The main things grep needs to know about mmap are:
25592 * does it exist and is it safe to write into the mmap'd area
25593 * how to use it (BSD variants) */
25594
25595 #include <fcntl.h>
25596 #include <sys/mman.h>
25597
25598 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25599 char *malloc ();
25600 #endif
25601
25602 /* This mess was copied from the GNU getpagesize.h. */
25603 #ifndef HAVE_GETPAGESIZE
25604 # ifdef _SC_PAGESIZE
25605 # define getpagesize() sysconf(_SC_PAGESIZE)
25606 # else /* no _SC_PAGESIZE */
25607 # ifdef HAVE_SYS_PARAM_H
25608 # include <sys/param.h>
25609 # ifdef EXEC_PAGESIZE
25610 # define getpagesize() EXEC_PAGESIZE
25611 # else /* no EXEC_PAGESIZE */
25612 # ifdef NBPG
25613 # define getpagesize() NBPG * CLSIZE
25614 # ifndef CLSIZE
25615 # define CLSIZE 1
25616 # endif /* no CLSIZE */
25617 # else /* no NBPG */
25618 # ifdef NBPC
25619 # define getpagesize() NBPC
25620 # else /* no NBPC */
25621 # ifdef PAGESIZE
25622 # define getpagesize() PAGESIZE
25623 # endif /* PAGESIZE */
25624 # endif /* no NBPC */
25625 # endif /* no NBPG */
25626 # endif /* no EXEC_PAGESIZE */
25627 # else /* no HAVE_SYS_PARAM_H */
25628 # define getpagesize() 8192 /* punt totally */
25629 # endif /* no HAVE_SYS_PARAM_H */
25630 # endif /* no _SC_PAGESIZE */
25631
25632 #endif /* no HAVE_GETPAGESIZE */
25633
25634 int
25635 main ()
25636 {
25637 char *data, *data2, *data3;
25638 const char *cdata2;
25639 int i, pagesize;
25640 int fd, fd2;
25641
25642 pagesize = getpagesize ();
25643
25644 /* First, make a file with some known garbage in it. */
25645 data = (char *) malloc (pagesize);
25646 if (!data)
25647 return 1;
25648 for (i = 0; i < pagesize; ++i)
25649 *(data + i) = rand ();
25650 umask (0);
25651 fd = creat ("conftest.mmap", 0600);
25652 if (fd < 0)
25653 return 2;
25654 if (write (fd, data, pagesize) != pagesize)
25655 return 3;
25656 close (fd);
25657
25658 /* Next, check that the tail of a page is zero-filled. File must have
25659 non-zero length, otherwise we risk SIGBUS for entire page. */
25660 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
25661 if (fd2 < 0)
25662 return 4;
25663 cdata2 = "";
25664 if (write (fd2, cdata2, 1) != 1)
25665 return 5;
25666 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
25667 if (data2 == MAP_FAILED)
25668 return 6;
25669 for (i = 0; i < pagesize; ++i)
25670 if (*(data2 + i))
25671 return 7;
25672 close (fd2);
25673 if (munmap (data2, pagesize))
25674 return 8;
25675
25676 /* Next, try to mmap the file at a fixed address which already has
25677 something else allocated at it. If we can, also make sure that
25678 we see the same garbage. */
25679 fd = open ("conftest.mmap", O_RDWR);
25680 if (fd < 0)
25681 return 9;
25682 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25683 MAP_PRIVATE | MAP_FIXED, fd, 0L))
25684 return 10;
25685 for (i = 0; i < pagesize; ++i)
25686 if (*(data + i) != *(data2 + i))
25687 return 11;
25688
25689 /* Finally, make sure that changes to the mapped area do not
25690 percolate back to the file as seen by read(). (This is a bug on
25691 some variants of i386 svr4.0.) */
25692 for (i = 0; i < pagesize; ++i)
25693 *(data2 + i) = *(data2 + i) + 1;
25694 data3 = (char *) malloc (pagesize);
25695 if (!data3)
25696 return 12;
25697 if (read (fd, data3, pagesize) != pagesize)
25698 return 13;
25699 for (i = 0; i < pagesize; ++i)
25700 if (*(data + i) != *(data3 + i))
25701 return 14;
25702 close (fd);
25703 return 0;
25704 }
25705 _ACEOF
25706 if ac_fn_c_try_run "$LINENO"; then :
25707 ac_cv_func_mmap_fixed_mapped=yes
25708 else
25709 ac_cv_func_mmap_fixed_mapped=no
25710 fi
25711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25712 conftest.$ac_objext conftest.beam conftest.$ac_ext
25713 fi
25714
25715 fi
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
25717 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
25718 if test $ac_cv_func_mmap_fixed_mapped = yes; then
25719
25720 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
25721
25722 fi
25723 rm -f conftest.mmap conftest.txt
25724
25725 for ac_header in vfork.h
25726 do :
25727 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
25728 if test "x$ac_cv_header_vfork_h" = xyes; then :
25729 cat >>confdefs.h <<_ACEOF
25730 #define HAVE_VFORK_H 1
25731 _ACEOF
25732
25733 fi
25734
25735 done
25736
25737 for ac_func in fork vfork
25738 do :
25739 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25740 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25741 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25742 cat >>confdefs.h <<_ACEOF
25743 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25744 _ACEOF
25745
25746 fi
25747 done
25748
25749 if test "x$ac_cv_func_fork" = xyes; then
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
25751 $as_echo_n "checking for working fork... " >&6; }
25752 if ${ac_cv_func_fork_works+:} false; then :
25753 $as_echo_n "(cached) " >&6
25754 else
25755 if test "$cross_compiling" = yes; then :
25756 ac_cv_func_fork_works=cross
25757 else
25758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25759 /* end confdefs.h. */
25760 $ac_includes_default
25761 int
25762 main ()
25763 {
25764
25765 /* By Ruediger Kuhlmann. */
25766 return fork () < 0;
25767
25768 ;
25769 return 0;
25770 }
25771 _ACEOF
25772 if ac_fn_c_try_run "$LINENO"; then :
25773 ac_cv_func_fork_works=yes
25774 else
25775 ac_cv_func_fork_works=no
25776 fi
25777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25778 conftest.$ac_objext conftest.beam conftest.$ac_ext
25779 fi
25780
25781 fi
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
25783 $as_echo "$ac_cv_func_fork_works" >&6; }
25784
25785 else
25786 ac_cv_func_fork_works=$ac_cv_func_fork
25787 fi
25788 if test "x$ac_cv_func_fork_works" = xcross; then
25789 case $host in
25790 *-*-amigaos* | *-*-msdosdjgpp*)
25791 # Override, as these systems have only a dummy fork() stub
25792 ac_cv_func_fork_works=no
25793 ;;
25794 *)
25795 ac_cv_func_fork_works=yes
25796 ;;
25797 esac
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25799 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25800 fi
25801 ac_cv_func_vfork_works=$ac_cv_func_vfork
25802 if test "x$ac_cv_func_vfork" = xyes; then
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
25804 $as_echo_n "checking for working vfork... " >&6; }
25805 if ${ac_cv_func_vfork_works+:} false; then :
25806 $as_echo_n "(cached) " >&6
25807 else
25808 if test "$cross_compiling" = yes; then :
25809 ac_cv_func_vfork_works=cross
25810 else
25811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25812 /* end confdefs.h. */
25813 /* Thanks to Paul Eggert for this test. */
25814 $ac_includes_default
25815 #include <sys/wait.h>
25816 #ifdef HAVE_VFORK_H
25817 # include <vfork.h>
25818 #endif
25819 /* On some sparc systems, changes by the child to local and incoming
25820 argument registers are propagated back to the parent. The compiler
25821 is told about this with #include <vfork.h>, but some compilers
25822 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25823 static variable whose address is put into a register that is
25824 clobbered by the vfork. */
25825 static void
25826 #ifdef __cplusplus
25827 sparc_address_test (int arg)
25828 # else
25829 sparc_address_test (arg) int arg;
25830 #endif
25831 {
25832 static pid_t child;
25833 if (!child) {
25834 child = vfork ();
25835 if (child < 0) {
25836 perror ("vfork");
25837 _exit(2);
25838 }
25839 if (!child) {
25840 arg = getpid();
25841 write(-1, "", 0);
25842 _exit (arg);
25843 }
25844 }
25845 }
25846
25847 int
25848 main ()
25849 {
25850 pid_t parent = getpid ();
25851 pid_t child;
25852
25853 sparc_address_test (0);
25854
25855 child = vfork ();
25856
25857 if (child == 0) {
25858 /* Here is another test for sparc vfork register problems. This
25859 test uses lots of local variables, at least as many local
25860 variables as main has allocated so far including compiler
25861 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25862 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25863 reuse the register of parent for one of the local variables,
25864 since it will think that parent can't possibly be used any more
25865 in this routine. Assigning to the local variable will thus
25866 munge parent in the parent process. */
25867 pid_t
25868 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25869 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25870 /* Convince the compiler that p..p7 are live; otherwise, it might
25871 use the same hardware register for all 8 local variables. */
25872 if (p != p1 || p != p2 || p != p3 || p != p4
25873 || p != p5 || p != p6 || p != p7)
25874 _exit(1);
25875
25876 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25877 from child file descriptors. If the child closes a descriptor
25878 before it execs or exits, this munges the parent's descriptor
25879 as well. Test for this by closing stdout in the child. */
25880 _exit(close(fileno(stdout)) != 0);
25881 } else {
25882 int status;
25883 struct stat st;
25884
25885 while (wait(&status) != child)
25886 ;
25887 return (
25888 /* Was there some problem with vforking? */
25889 child < 0
25890
25891 /* Did the child fail? (This shouldn't happen.) */
25892 || status
25893
25894 /* Did the vfork/compiler bug occur? */
25895 || parent != getpid()
25896
25897 /* Did the file descriptor bug occur? */
25898 || fstat(fileno(stdout), &st) != 0
25899 );
25900 }
25901 }
25902 _ACEOF
25903 if ac_fn_c_try_run "$LINENO"; then :
25904 ac_cv_func_vfork_works=yes
25905 else
25906 ac_cv_func_vfork_works=no
25907 fi
25908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25909 conftest.$ac_objext conftest.beam conftest.$ac_ext
25910 fi
25911
25912 fi
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
25914 $as_echo "$ac_cv_func_vfork_works" >&6; }
25915
25916 fi;
25917 if test "x$ac_cv_func_fork_works" = xcross; then
25918 ac_cv_func_vfork_works=$ac_cv_func_vfork
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25920 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25921 fi
25922
25923 if test "x$ac_cv_func_vfork_works" = xyes; then
25924
25925 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
25926
25927 else
25928
25929 $as_echo "#define vfork fork" >>confdefs.h
25930
25931 fi
25932 if test "x$ac_cv_func_fork_works" = xyes; then
25933
25934 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
25935
25936 fi
25937
25938 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
25940 $as_echo_n "checking for library containing socketpair... " >&6; }
25941 if ${ac_cv_search_socketpair+:} false; then :
25942 $as_echo_n "(cached) " >&6
25943 else
25944 ac_func_search_save_LIBS=$LIBS
25945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25946 /* end confdefs.h. */
25947
25948 /* Override any GCC internal prototype to avoid an error.
25949 Use char because int might match the return type of a GCC
25950 builtin and then its argument prototype would still apply. */
25951 #ifdef __cplusplus
25952 extern "C"
25953 #endif
25954 char socketpair ();
25955 int
25956 main ()
25957 {
25958 return socketpair ();
25959 ;
25960 return 0;
25961 }
25962 _ACEOF
25963 for ac_lib in '' socket; do
25964 if test -z "$ac_lib"; then
25965 ac_res="none required"
25966 else
25967 ac_res=-l$ac_lib
25968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25969 fi
25970 if ac_fn_c_try_link "$LINENO"; then :
25971 ac_cv_search_socketpair=$ac_res
25972 fi
25973 rm -f core conftest.err conftest.$ac_objext \
25974 conftest$ac_exeext
25975 if ${ac_cv_search_socketpair+:} false; then :
25976 break
25977 fi
25978 done
25979 if ${ac_cv_search_socketpair+:} false; then :
25980
25981 else
25982 ac_cv_search_socketpair=no
25983 fi
25984 rm conftest.$ac_ext
25985 LIBS=$ac_func_search_save_LIBS
25986 fi
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
25988 $as_echo "$ac_cv_search_socketpair" >&6; }
25989 ac_res=$ac_cv_search_socketpair
25990 if test "$ac_res" != no; then :
25991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25992
25993 fi
25994
25995 for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
25996 ptrace64 sbrk setns sigaltstack sigprocmask \
25997 setpgid setpgrp getrusage getauxval sigtimedwait
25998 do :
25999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26000 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26001 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26002 cat >>confdefs.h <<_ACEOF
26003 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26004 _ACEOF
26005
26006 fi
26007 done
26008
26009
26010 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
26011 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
26012 # only in linux/personality.h.
26013 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
26014 "
26015 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
26016 ac_have_decl=1
26017 else
26018 ac_have_decl=0
26019 fi
26020
26021 cat >>confdefs.h <<_ACEOF
26022 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
26023 _ACEOF
26024
26025
26026 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
26027 if test "x$ac_cv_have_decl_strstr" = xyes; then :
26028 ac_have_decl=1
26029 else
26030 ac_have_decl=0
26031 fi
26032
26033 cat >>confdefs.h <<_ACEOF
26034 #define HAVE_DECL_STRSTR $ac_have_decl
26035 _ACEOF
26036
26037
26038 # ----------------------- #
26039 # Checks for structures. #
26040 # ----------------------- #
26041
26042 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26043 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26044
26045 cat >>confdefs.h <<_ACEOF
26046 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26047 _ACEOF
26048
26049
26050 fi
26051 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26052 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26053
26054 cat >>confdefs.h <<_ACEOF
26055 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26056 _ACEOF
26057
26058
26059 fi
26060
26061
26062 # On FreeBSD we need libutil for the kinfo_get* functions. On
26063 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
26064 # Figure out which one to use.
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
26066 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
26067 if ${ac_cv_search_kinfo_getfile+:} false; then :
26068 $as_echo_n "(cached) " >&6
26069 else
26070 ac_func_search_save_LIBS=$LIBS
26071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26072 /* end confdefs.h. */
26073
26074 /* Override any GCC internal prototype to avoid an error.
26075 Use char because int might match the return type of a GCC
26076 builtin and then its argument prototype would still apply. */
26077 #ifdef __cplusplus
26078 extern "C"
26079 #endif
26080 char kinfo_getfile ();
26081 int
26082 main ()
26083 {
26084 return kinfo_getfile ();
26085 ;
26086 return 0;
26087 }
26088 _ACEOF
26089 for ac_lib in '' util util-freebsd; do
26090 if test -z "$ac_lib"; then
26091 ac_res="none required"
26092 else
26093 ac_res=-l$ac_lib
26094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26095 fi
26096 if ac_fn_c_try_link "$LINENO"; then :
26097 ac_cv_search_kinfo_getfile=$ac_res
26098 fi
26099 rm -f core conftest.err conftest.$ac_objext \
26100 conftest$ac_exeext
26101 if ${ac_cv_search_kinfo_getfile+:} false; then :
26102 break
26103 fi
26104 done
26105 if ${ac_cv_search_kinfo_getfile+:} false; then :
26106
26107 else
26108 ac_cv_search_kinfo_getfile=no
26109 fi
26110 rm conftest.$ac_ext
26111 LIBS=$ac_func_search_save_LIBS
26112 fi
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
26114 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
26115 ac_res=$ac_cv_search_kinfo_getfile
26116 if test "$ac_res" != no; then :
26117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26118
26119 fi
26120
26121
26122 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
26123 for ac_func in kinfo_getfile
26124 do :
26125 ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
26126 if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
26127 cat >>confdefs.h <<_ACEOF
26128 #define HAVE_KINFO_GETFILE 1
26129 _ACEOF
26130
26131 fi
26132 done
26133
26134
26135 # ----------------------- #
26136 # Check for threading. #
26137 # ----------------------- #
26138
26139 # Check whether --enable-threading was given.
26140 if test "${enable_threading+set}" = set; then :
26141 enableval=$enable_threading; case "$enableval" in
26142 yes) want_threading=yes ;;
26143 no) want_threading=no ;;
26144 *) as_fn_error $? "bad value $enableval for threading" "$LINENO" 5 ;;
26145 esac
26146 else
26147 want_threading=yes
26148 fi
26149
26150
26151 # Check for std::thread. This does not work on some platforms, like
26152 # mingw and DJGPP.
26153 ac_ext=cpp
26154 ac_cpp='$CXXCPP $CPPFLAGS'
26155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26158
26159
26160
26161
26162
26163 ac_ext=c
26164 ac_cpp='$CPP $CPPFLAGS'
26165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26168
26169 ax_pthread_ok=no
26170
26171 # We used to check for pthread.h first, but this fails if pthread.h
26172 # requires special compiler flags (e.g. on Tru64 or Sequent).
26173 # It gets checked for in the link test anyway.
26174
26175 # First of all, check if the user has set any of the PTHREAD_LIBS,
26176 # etcetera environment variables, and if threads linking works using
26177 # them:
26178 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
26179 ax_pthread_save_CC="$CC"
26180 ax_pthread_save_CFLAGS="$CFLAGS"
26181 ax_pthread_save_LIBS="$LIBS"
26182 if test "x$PTHREAD_CC" != "x"; then :
26183 CC="$PTHREAD_CC"
26184 fi
26185 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
26186 LIBS="$PTHREAD_LIBS $LIBS"
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
26188 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
26189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26190 /* end confdefs.h. */
26191
26192 /* Override any GCC internal prototype to avoid an error.
26193 Use char because int might match the return type of a GCC
26194 builtin and then its argument prototype would still apply. */
26195 #ifdef __cplusplus
26196 extern "C"
26197 #endif
26198 char pthread_join ();
26199 int
26200 main ()
26201 {
26202 return pthread_join ();
26203 ;
26204 return 0;
26205 }
26206 _ACEOF
26207 if ac_fn_c_try_link "$LINENO"; then :
26208 ax_pthread_ok=yes
26209 fi
26210 rm -f core conftest.err conftest.$ac_objext \
26211 conftest$ac_exeext conftest.$ac_ext
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
26213 $as_echo "$ax_pthread_ok" >&6; }
26214 if test "x$ax_pthread_ok" = "xno"; then
26215 PTHREAD_LIBS=""
26216 PTHREAD_CFLAGS=""
26217 fi
26218 CC="$ax_pthread_save_CC"
26219 CFLAGS="$ax_pthread_save_CFLAGS"
26220 LIBS="$ax_pthread_save_LIBS"
26221 fi
26222
26223 # We must check for the threads library under a number of different
26224 # names; the ordering is very important because some systems
26225 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
26226 # libraries is broken (non-POSIX).
26227
26228 # Create a list of thread flags to try. Items starting with a "-" are
26229 # C compiler flags, and other items are library names, except for "none"
26230 # which indicates that we try without any flags at all, and "pthread-config"
26231 # which is a program returning the flags for the Pth emulation library.
26232
26233 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
26234
26235 # The ordering *is* (sometimes) important. Some notes on the
26236 # individual items follow:
26237
26238 # pthreads: AIX (must check this before -lpthread)
26239 # none: in case threads are in libc; should be tried before -Kthread and
26240 # other compiler flags to prevent continual compiler warnings
26241 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
26242 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
26243 # (Note: HP C rejects this with "bad form for `-t' option")
26244 # -pthreads: Solaris/gcc (Note: HP C also rejects)
26245 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
26246 # doesn't hurt to check since this sometimes defines pthreads and
26247 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
26248 # is present but should not be used directly; and before -mthreads,
26249 # because the compiler interprets this as "-mt" + "-hreads")
26250 # -mthreads: Mingw32/gcc, Lynx/gcc
26251 # pthread: Linux, etcetera
26252 # --thread-safe: KAI C++
26253 # pthread-config: use pthread-config program (for GNU Pth library)
26254
26255 case $host_os in
26256
26257 freebsd*)
26258
26259 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
26260 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
26261
26262 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
26263 ;;
26264
26265 hpux*)
26266
26267 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
26268 # multi-threading and also sets -lpthread."
26269
26270 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
26271 ;;
26272
26273 openedition*)
26274
26275 # IBM z/OS requires a feature-test macro to be defined in order to
26276 # enable POSIX threads at all, so give the user a hint if this is
26277 # not set. (We don't define these ourselves, as they can affect
26278 # other portions of the system API in unpredictable ways.)
26279
26280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26281 /* end confdefs.h. */
26282
26283 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
26284 AX_PTHREAD_ZOS_MISSING
26285 # endif
26286
26287 _ACEOF
26288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26289 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
26291 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
26292 fi
26293 rm -f conftest*
26294
26295 ;;
26296
26297 solaris*)
26298
26299 # On Solaris (at least, for some versions), libc contains stubbed
26300 # (non-functional) versions of the pthreads routines, so link-based
26301 # tests will erroneously succeed. (N.B.: The stubs are missing
26302 # pthread_cleanup_push, or rather a function called by this macro,
26303 # so we could check for that, but who knows whether they'll stub
26304 # that too in a future libc.) So we'll check first for the
26305 # standard Solaris way of linking pthreads (-mt -lpthread).
26306
26307 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
26308 ;;
26309 esac
26310
26311 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
26312
26313 if test "x$GCC" = "xyes"; then :
26314 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
26315 fi
26316
26317 # The presence of a feature test macro requesting re-entrant function
26318 # definitions is, on some systems, a strong hint that pthreads support is
26319 # correctly enabled
26320
26321 case $host_os in
26322 darwin* | hpux* | linux* | osf* | solaris*)
26323 ax_pthread_check_macro="_REENTRANT"
26324 ;;
26325
26326 aix*)
26327 ax_pthread_check_macro="_THREAD_SAFE"
26328 ;;
26329
26330 *)
26331 ax_pthread_check_macro="--"
26332 ;;
26333 esac
26334 if test "x$ax_pthread_check_macro" = "x--"; then :
26335 ax_pthread_check_cond=0
26336 else
26337 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
26338 fi
26339
26340 # Are we compiling with Clang?
26341
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
26343 $as_echo_n "checking whether $CC is Clang... " >&6; }
26344 if ${ax_cv_PTHREAD_CLANG+:} false; then :
26345 $as_echo_n "(cached) " >&6
26346 else
26347 ax_cv_PTHREAD_CLANG=no
26348 # Note that Autoconf sets GCC=yes for Clang as well as GCC
26349 if test "x$GCC" = "xyes"; then
26350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26351 /* end confdefs.h. */
26352 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
26353 # if defined(__clang__) && defined(__llvm__)
26354 AX_PTHREAD_CC_IS_CLANG
26355 # endif
26356
26357 _ACEOF
26358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26359 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
26360 ax_cv_PTHREAD_CLANG=yes
26361 fi
26362 rm -f conftest*
26363
26364 fi
26365
26366 fi
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
26368 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
26369 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
26370
26371 ax_pthread_clang_warning=no
26372
26373 # Clang needs special handling, because older versions handle the -pthread
26374 # option in a rather... idiosyncratic way
26375
26376 if test "x$ax_pthread_clang" = "xyes"; then
26377
26378 # Clang takes -pthread; it has never supported any other flag
26379
26380 # (Note 1: This will need to be revisited if a system that Clang
26381 # supports has POSIX threads in a separate library. This tends not
26382 # to be the way of modern systems, but it's conceivable.)
26383
26384 # (Note 2: On some systems, notably Darwin, -pthread is not needed
26385 # to get POSIX threads support; the API is always present and
26386 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
26387 # -pthread does define _REENTRANT, and while the Darwin headers
26388 # ignore this macro, third-party headers might not.)
26389
26390 PTHREAD_CFLAGS="-pthread"
26391 PTHREAD_LIBS=
26392
26393 ax_pthread_ok=yes
26394
26395 # However, older versions of Clang make a point of warning the user
26396 # that, in an invocation where only linking and no compilation is
26397 # taking place, the -pthread option has no effect ("argument unused
26398 # during compilation"). They expect -pthread to be passed in only
26399 # when source code is being compiled.
26400 #
26401 # Problem is, this is at odds with the way Automake and most other
26402 # C build frameworks function, which is that the same flags used in
26403 # compilation (CFLAGS) are also used in linking. Many systems
26404 # supported by AX_PTHREAD require exactly this for POSIX threads
26405 # support, and in fact it is often not straightforward to specify a
26406 # flag that is used only in the compilation phase and not in
26407 # linking. Such a scenario is extremely rare in practice.
26408 #
26409 # Even though use of the -pthread flag in linking would only print
26410 # a warning, this can be a nuisance for well-run software projects
26411 # that build with -Werror. So if the active version of Clang has
26412 # this misfeature, we search for an option to squash it.
26413
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
26415 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
26416 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
26417 $as_echo_n "(cached) " >&6
26418 else
26419 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
26420 # Create an alternate version of $ac_link that compiles and
26421 # links in two steps (.c -> .o, .o -> exe) instead of one
26422 # (.c -> exe), because the warning occurs only in the second
26423 # step
26424 ax_pthread_save_ac_link="$ac_link"
26425 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
26426 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
26427 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
26428 ax_pthread_save_CFLAGS="$CFLAGS"
26429 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
26430 if test "x$ax_pthread_try" = "xunknown"; then :
26431 break
26432 fi
26433 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
26434 ac_link="$ax_pthread_save_ac_link"
26435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26436 /* end confdefs.h. */
26437 int main(void){return 0;}
26438 _ACEOF
26439 if ac_fn_c_try_link "$LINENO"; then :
26440 ac_link="$ax_pthread_2step_ac_link"
26441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26442 /* end confdefs.h. */
26443 int main(void){return 0;}
26444 _ACEOF
26445 if ac_fn_c_try_link "$LINENO"; then :
26446 break
26447 fi
26448 rm -f core conftest.err conftest.$ac_objext \
26449 conftest$ac_exeext conftest.$ac_ext
26450
26451 fi
26452 rm -f core conftest.err conftest.$ac_objext \
26453 conftest$ac_exeext conftest.$ac_ext
26454 done
26455 ac_link="$ax_pthread_save_ac_link"
26456 CFLAGS="$ax_pthread_save_CFLAGS"
26457 if test "x$ax_pthread_try" = "x"; then :
26458 ax_pthread_try=no
26459 fi
26460 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
26461
26462 fi
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
26464 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
26465
26466 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
26467 no | unknown) ;;
26468 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
26469 esac
26470
26471 fi # $ax_pthread_clang = yes
26472
26473 if test "x$ax_pthread_ok" = "xno"; then
26474 for ax_pthread_try_flag in $ax_pthread_flags; do
26475
26476 case $ax_pthread_try_flag in
26477 none)
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
26479 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
26480 ;;
26481
26482 -mt,pthread)
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
26484 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
26485 PTHREAD_CFLAGS="-mt"
26486 PTHREAD_LIBS="-lpthread"
26487 ;;
26488
26489 -*)
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
26491 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
26492 PTHREAD_CFLAGS="$ax_pthread_try_flag"
26493 ;;
26494
26495 pthread-config)
26496 # Extract the first word of "pthread-config", so it can be a program name with args.
26497 set dummy pthread-config; ac_word=$2
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26499 $as_echo_n "checking for $ac_word... " >&6; }
26500 if ${ac_cv_prog_ax_pthread_config+:} false; then :
26501 $as_echo_n "(cached) " >&6
26502 else
26503 if test -n "$ax_pthread_config"; then
26504 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
26505 else
26506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26507 for as_dir in $PATH
26508 do
26509 IFS=$as_save_IFS
26510 test -z "$as_dir" && as_dir=.
26511 for ac_exec_ext in '' $ac_executable_extensions; do
26512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26513 ac_cv_prog_ax_pthread_config="yes"
26514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26515 break 2
26516 fi
26517 done
26518 done
26519 IFS=$as_save_IFS
26520
26521 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
26522 fi
26523 fi
26524 ax_pthread_config=$ac_cv_prog_ax_pthread_config
26525 if test -n "$ax_pthread_config"; then
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
26527 $as_echo "$ax_pthread_config" >&6; }
26528 else
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26530 $as_echo "no" >&6; }
26531 fi
26532
26533
26534 if test "x$ax_pthread_config" = "xno"; then :
26535 continue
26536 fi
26537 PTHREAD_CFLAGS="`pthread-config --cflags`"
26538 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
26539 ;;
26540
26541 *)
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
26543 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
26544 PTHREAD_LIBS="-l$ax_pthread_try_flag"
26545 ;;
26546 esac
26547
26548 ax_pthread_save_CFLAGS="$CFLAGS"
26549 ax_pthread_save_LIBS="$LIBS"
26550 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
26551 LIBS="$PTHREAD_LIBS $LIBS"
26552
26553 # Check for various functions. We must include pthread.h,
26554 # since some functions may be macros. (On the Sequent, we
26555 # need a special flag -Kthread to make this header compile.)
26556 # We check for pthread_join because it is in -lpthread on IRIX
26557 # while pthread_create is in libc. We check for pthread_attr_init
26558 # due to DEC craziness with -lpthreads. We check for
26559 # pthread_cleanup_push because it is one of the few pthread
26560 # functions on Solaris that doesn't have a non-functional libc stub.
26561 # We try pthread_create on general principles.
26562
26563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26564 /* end confdefs.h. */
26565 #include <pthread.h>
26566 # if $ax_pthread_check_cond
26567 # error "$ax_pthread_check_macro must be defined"
26568 # endif
26569 static void routine(void *a) { a = 0; }
26570 static void *start_routine(void *a) { return a; }
26571 int
26572 main ()
26573 {
26574 pthread_t th; pthread_attr_t attr;
26575 pthread_create(&th, 0, start_routine, 0);
26576 pthread_join(th, 0);
26577 pthread_attr_init(&attr);
26578 pthread_cleanup_push(routine, 0);
26579 pthread_cleanup_pop(0) /* ; */
26580 ;
26581 return 0;
26582 }
26583 _ACEOF
26584 if ac_fn_c_try_link "$LINENO"; then :
26585 ax_pthread_ok=yes
26586 fi
26587 rm -f core conftest.err conftest.$ac_objext \
26588 conftest$ac_exeext conftest.$ac_ext
26589
26590 CFLAGS="$ax_pthread_save_CFLAGS"
26591 LIBS="$ax_pthread_save_LIBS"
26592
26593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
26594 $as_echo "$ax_pthread_ok" >&6; }
26595 if test "x$ax_pthread_ok" = "xyes"; then :
26596 break
26597 fi
26598
26599 PTHREAD_LIBS=""
26600 PTHREAD_CFLAGS=""
26601 done
26602 fi
26603
26604 # Various other checks:
26605 if test "x$ax_pthread_ok" = "xyes"; then
26606 ax_pthread_save_CFLAGS="$CFLAGS"
26607 ax_pthread_save_LIBS="$LIBS"
26608 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
26609 LIBS="$PTHREAD_LIBS $LIBS"
26610
26611 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
26613 $as_echo_n "checking for joinable pthread attribute... " >&6; }
26614 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
26615 $as_echo_n "(cached) " >&6
26616 else
26617 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
26618 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
26619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26620 /* end confdefs.h. */
26621 #include <pthread.h>
26622 int
26623 main ()
26624 {
26625 int attr = $ax_pthread_attr; return attr /* ; */
26626 ;
26627 return 0;
26628 }
26629 _ACEOF
26630 if ac_fn_c_try_link "$LINENO"; then :
26631 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
26632 fi
26633 rm -f core conftest.err conftest.$ac_objext \
26634 conftest$ac_exeext conftest.$ac_ext
26635 done
26636
26637 fi
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
26639 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
26640 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
26641 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
26642 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
26643
26644 cat >>confdefs.h <<_ACEOF
26645 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
26646 _ACEOF
26647
26648 ax_pthread_joinable_attr_defined=yes
26649
26650 fi
26651
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
26653 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
26654 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
26655 $as_echo_n "(cached) " >&6
26656 else
26657 ax_cv_PTHREAD_SPECIAL_FLAGS=no
26658 case $host_os in
26659 solaris*)
26660 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
26661 ;;
26662 esac
26663
26664 fi
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
26666 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
26667 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
26668 test "x$ax_pthread_special_flags_added" != "xyes"; then :
26669 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
26670 ax_pthread_special_flags_added=yes
26671 fi
26672
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
26674 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
26675 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
26676 $as_echo_n "(cached) " >&6
26677 else
26678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26679 /* end confdefs.h. */
26680 #include <pthread.h>
26681 int
26682 main ()
26683 {
26684 int i = PTHREAD_PRIO_INHERIT;
26685 ;
26686 return 0;
26687 }
26688 _ACEOF
26689 if ac_fn_c_try_link "$LINENO"; then :
26690 ax_cv_PTHREAD_PRIO_INHERIT=yes
26691 else
26692 ax_cv_PTHREAD_PRIO_INHERIT=no
26693 fi
26694 rm -f core conftest.err conftest.$ac_objext \
26695 conftest$ac_exeext conftest.$ac_ext
26696
26697 fi
26698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
26699 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
26700 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
26701 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
26702
26703 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
26704
26705 ax_pthread_prio_inherit_defined=yes
26706
26707 fi
26708
26709 CFLAGS="$ax_pthread_save_CFLAGS"
26710 LIBS="$ax_pthread_save_LIBS"
26711
26712 # More AIX lossage: compile with *_r variant
26713 if test "x$GCC" != "xyes"; then
26714 case $host_os in
26715 aix*)
26716 case "x/$CC" in #(
26717 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
26718 #handle absolute path differently from PATH based program lookup
26719 case "x$CC" in #(
26720 x/*) :
26721 if as_fn_executable_p ${CC}_r; then :
26722 PTHREAD_CC="${CC}_r"
26723 fi ;; #(
26724 *) :
26725 for ac_prog in ${CC}_r
26726 do
26727 # Extract the first word of "$ac_prog", so it can be a program name with args.
26728 set dummy $ac_prog; ac_word=$2
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26730 $as_echo_n "checking for $ac_word... " >&6; }
26731 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
26732 $as_echo_n "(cached) " >&6
26733 else
26734 if test -n "$PTHREAD_CC"; then
26735 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
26736 else
26737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26738 for as_dir in $PATH
26739 do
26740 IFS=$as_save_IFS
26741 test -z "$as_dir" && as_dir=.
26742 for ac_exec_ext in '' $ac_executable_extensions; do
26743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26744 ac_cv_prog_PTHREAD_CC="$ac_prog"
26745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26746 break 2
26747 fi
26748 done
26749 done
26750 IFS=$as_save_IFS
26751
26752 fi
26753 fi
26754 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
26755 if test -n "$PTHREAD_CC"; then
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
26757 $as_echo "$PTHREAD_CC" >&6; }
26758 else
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26760 $as_echo "no" >&6; }
26761 fi
26762
26763
26764 test -n "$PTHREAD_CC" && break
26765 done
26766 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
26767 ;;
26768 esac ;; #(
26769 *) :
26770 ;;
26771 esac
26772 ;;
26773 esac
26774 fi
26775 fi
26776
26777 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
26778
26779
26780
26781
26782
26783 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
26784 if test "x$ax_pthread_ok" = "xyes"; then
26785 threads=yes
26786 :
26787 else
26788 ax_pthread_ok=no
26789 threads=no
26790 fi
26791 ac_ext=cpp
26792 ac_cpp='$CXXCPP $CPPFLAGS'
26793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26796
26797
26798 save_LIBS="$LIBS"
26799 LIBS="$PTHREAD_LIBS $LIBS"
26800 save_CXXFLAGS="$CXXFLAGS"
26801 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
26803 $as_echo_n "checking for std::thread... " >&6; }
26804 if ${gdb_cv_cxx_std_thread+:} false; then :
26805 $as_echo_n "(cached) " >&6
26806 else
26807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26808 /* end confdefs.h. */
26809 #if defined (__MINGW32__) || defined (__CYGWIN__)
26810 # ifdef _WIN32_WINNT
26811 # if _WIN32_WINNT < 0x0501
26812 # undef _WIN32_WINNT
26813 # define _WIN32_WINNT 0x0501
26814 # endif
26815 # else
26816 # define _WIN32_WINNT 0x0501
26817 # endif
26818 #endif /* __MINGW32__ || __CYGWIN__ */
26819 #include <thread>
26820 void callback() { }
26821 int
26822 main ()
26823 {
26824 std::thread t(callback);
26825 ;
26826 return 0;
26827 }
26828 _ACEOF
26829 if ac_fn_cxx_try_compile "$LINENO"; then :
26830 gdb_cv_cxx_std_thread=yes
26831 else
26832 gdb_cv_cxx_std_thread=no
26833 fi
26834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26835 fi
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
26837 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
26838
26839 if test "$threads" = "yes"; then
26840 # This check must be here, while LIBS includes any necessary
26841 # threading library.
26842 for ac_func in pthread_sigmask pthread_setname_np
26843 do :
26844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26845 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
26846 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26847 cat >>confdefs.h <<_ACEOF
26848 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26849 _ACEOF
26850
26851 fi
26852 done
26853
26854 fi
26855 LIBS="$save_LIBS"
26856 CXXFLAGS="$save_CXXFLAGS"
26857
26858 if test "$want_threading" = "yes"; then
26859 if test "$gdb_cv_cxx_std_thread" = "yes"; then
26860
26861 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
26862
26863 fi
26864 fi
26865 ac_ext=c
26866 ac_cpp='$CPP $CPPFLAGS'
26867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26870
26871
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
26873 $as_echo_n "checking for sigsetjmp... " >&6; }
26874 if ${gdb_cv_func_sigsetjmp+:} false; then :
26875 $as_echo_n "(cached) " >&6
26876 else
26877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26878 /* end confdefs.h. */
26879 #include <setjmp.h>
26880 int
26881 main ()
26882 {
26883 sigjmp_buf env;
26884 while (! sigsetjmp (env, 1))
26885 siglongjmp (env, 1);
26886
26887 ;
26888 return 0;
26889 }
26890 _ACEOF
26891 if ac_fn_c_try_compile "$LINENO"; then :
26892 gdb_cv_func_sigsetjmp=yes
26893 else
26894 gdb_cv_func_sigsetjmp=no
26895
26896 fi
26897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26898
26899 fi
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
26901 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
26902 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
26903
26904 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
26905
26906 fi
26907
26908
26909 # Check whether --with-intel_pt was given.
26910 if test "${with_intel_pt+set}" = set; then :
26911 withval=$with_intel_pt;
26912 else
26913 with_intel_pt=auto
26914 fi
26915
26916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
26917 $as_echo_n "checking whether to use intel pt... " >&6; }
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
26919 $as_echo "$with_intel_pt" >&6; }
26920
26921 if test "${with_intel_pt}" = no; then
26922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
26923 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
26924 HAVE_LIBIPT=no
26925 else
26926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26927 /* end confdefs.h. */
26928
26929 #include <linux/perf_event.h>
26930 #ifndef PERF_ATTR_SIZE_VER5
26931 # error
26932 #endif
26933
26934 _ACEOF
26935 if ac_fn_c_try_cpp "$LINENO"; then :
26936 perf_event=yes
26937 else
26938 perf_event=no
26939 fi
26940 rm -f conftest.err conftest.i conftest.$ac_ext
26941 if test "$perf_event" != yes; then
26942 if test "$with_intel_pt" = yes; then
26943 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
26944 else
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
26946 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
26947 fi
26948 fi
26949
26950
26951
26952
26953
26954
26955
26956
26957
26958 use_additional=yes
26959
26960 acl_save_prefix="$prefix"
26961 prefix="$acl_final_prefix"
26962 acl_save_exec_prefix="$exec_prefix"
26963 exec_prefix="$acl_final_exec_prefix"
26964
26965 eval additional_includedir=\"$includedir\"
26966 eval additional_libdir=\"$libdir\"
26967
26968 exec_prefix="$acl_save_exec_prefix"
26969 prefix="$acl_save_prefix"
26970
26971
26972 # Check whether --with-libipt-prefix was given.
26973 if test "${with_libipt_prefix+set}" = set; then :
26974 withval=$with_libipt_prefix;
26975 if test "X$withval" = "Xno"; then
26976 use_additional=no
26977 else
26978 if test "X$withval" = "X"; then
26979
26980 acl_save_prefix="$prefix"
26981 prefix="$acl_final_prefix"
26982 acl_save_exec_prefix="$exec_prefix"
26983 exec_prefix="$acl_final_exec_prefix"
26984
26985 eval additional_includedir=\"$includedir\"
26986 eval additional_libdir=\"$libdir\"
26987
26988 exec_prefix="$acl_save_exec_prefix"
26989 prefix="$acl_save_prefix"
26990
26991 else
26992 additional_includedir="$withval/include"
26993 additional_libdir="$withval/lib"
26994 fi
26995 fi
26996
26997 fi
26998
26999
27000 # Check whether --with-libipt-type was given.
27001 if test "${with_libipt_type+set}" = set; then :
27002 withval=$with_libipt_type; with_libipt_type=$withval
27003 else
27004 with_libipt_type=auto
27005 fi
27006
27007 lib_type=`eval echo \$with_libipt_type`
27008
27009 LIBIPT=
27010 LTLIBIPT=
27011 INCIPT=
27012 rpathdirs=
27013 ltrpathdirs=
27014 names_already_handled=
27015 names_next_round='ipt '
27016 while test -n "$names_next_round"; do
27017 names_this_round="$names_next_round"
27018 names_next_round=
27019 for name in $names_this_round; do
27020 already_handled=
27021 for n in $names_already_handled; do
27022 if test "$n" = "$name"; then
27023 already_handled=yes
27024 break
27025 fi
27026 done
27027 if test -z "$already_handled"; then
27028 names_already_handled="$names_already_handled $name"
27029 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27030 eval value=\"\$HAVE_LIB$uppername\"
27031 if test -n "$value"; then
27032 if test "$value" = yes; then
27033 eval value=\"\$LIB$uppername\"
27034 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
27035 eval value=\"\$LTLIB$uppername\"
27036 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
27037 else
27038 :
27039 fi
27040 else
27041 found_dir=
27042 found_la=
27043 found_so=
27044 found_a=
27045 if test $use_additional = yes; then
27046 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
27047 found_dir="$additional_libdir"
27048 found_so="$additional_libdir/lib$name.$shlibext"
27049 if test -f "$additional_libdir/lib$name.la"; then
27050 found_la="$additional_libdir/lib$name.la"
27051 fi
27052 elif test x$lib_type != xshared; then
27053 if test -f "$additional_libdir/lib$name.$libext"; then
27054 found_dir="$additional_libdir"
27055 found_a="$additional_libdir/lib$name.$libext"
27056 if test -f "$additional_libdir/lib$name.la"; then
27057 found_la="$additional_libdir/lib$name.la"
27058 fi
27059 fi
27060 fi
27061 fi
27062 if test "X$found_dir" = "X"; then
27063 for x in $LDFLAGS $LTLIBIPT; do
27064
27065 acl_save_prefix="$prefix"
27066 prefix="$acl_final_prefix"
27067 acl_save_exec_prefix="$exec_prefix"
27068 exec_prefix="$acl_final_exec_prefix"
27069 eval x=\"$x\"
27070 exec_prefix="$acl_save_exec_prefix"
27071 prefix="$acl_save_prefix"
27072
27073 case "$x" in
27074 -L*)
27075 dir=`echo "X$x" | sed -e 's/^X-L//'`
27076 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
27077 found_dir="$dir"
27078 found_so="$dir/lib$name.$shlibext"
27079 if test -f "$dir/lib$name.la"; then
27080 found_la="$dir/lib$name.la"
27081 fi
27082 elif test x$lib_type != xshared; then
27083 if test -f "$dir/lib$name.$libext"; then
27084 found_dir="$dir"
27085 found_a="$dir/lib$name.$libext"
27086 if test -f "$dir/lib$name.la"; then
27087 found_la="$dir/lib$name.la"
27088 fi
27089 fi
27090 fi
27091 ;;
27092 esac
27093 if test "X$found_dir" != "X"; then
27094 break
27095 fi
27096 done
27097 fi
27098 if test "X$found_dir" != "X"; then
27099 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
27100 if test "X$found_so" != "X"; then
27101 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
27102 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
27103 else
27104 haveit=
27105 for x in $ltrpathdirs; do
27106 if test "X$x" = "X$found_dir"; then
27107 haveit=yes
27108 break
27109 fi
27110 done
27111 if test -z "$haveit"; then
27112 ltrpathdirs="$ltrpathdirs $found_dir"
27113 fi
27114 if test "$hardcode_direct" = yes; then
27115 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
27116 else
27117 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
27118 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
27119 haveit=
27120 for x in $rpathdirs; do
27121 if test "X$x" = "X$found_dir"; then
27122 haveit=yes
27123 break
27124 fi
27125 done
27126 if test -z "$haveit"; then
27127 rpathdirs="$rpathdirs $found_dir"
27128 fi
27129 else
27130 haveit=
27131 for x in $LDFLAGS $LIBIPT; do
27132
27133 acl_save_prefix="$prefix"
27134 prefix="$acl_final_prefix"
27135 acl_save_exec_prefix="$exec_prefix"
27136 exec_prefix="$acl_final_exec_prefix"
27137 eval x=\"$x\"
27138 exec_prefix="$acl_save_exec_prefix"
27139 prefix="$acl_save_prefix"
27140
27141 if test "X$x" = "X-L$found_dir"; then
27142 haveit=yes
27143 break
27144 fi
27145 done
27146 if test -z "$haveit"; then
27147 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
27148 fi
27149 if test "$hardcode_minus_L" != no; then
27150 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
27151 else
27152 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
27153 fi
27154 fi
27155 fi
27156 fi
27157 else
27158 if test "X$found_a" != "X"; then
27159 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
27160 else
27161 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
27162 fi
27163 fi
27164 additional_includedir=
27165 case "$found_dir" in
27166 */lib | */lib/)
27167 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
27168 additional_includedir="$basedir/include"
27169 ;;
27170 esac
27171 if test "X$additional_includedir" != "X"; then
27172 if test "X$additional_includedir" != "X/usr/include"; then
27173 haveit=
27174 if test "X$additional_includedir" = "X/usr/local/include"; then
27175 if test -n "$GCC"; then
27176 case $host_os in
27177 linux*) haveit=yes;;
27178 esac
27179 fi
27180 fi
27181 if test -z "$haveit"; then
27182 for x in $CPPFLAGS $INCIPT; do
27183
27184 acl_save_prefix="$prefix"
27185 prefix="$acl_final_prefix"
27186 acl_save_exec_prefix="$exec_prefix"
27187 exec_prefix="$acl_final_exec_prefix"
27188 eval x=\"$x\"
27189 exec_prefix="$acl_save_exec_prefix"
27190 prefix="$acl_save_prefix"
27191
27192 if test "X$x" = "X-I$additional_includedir"; then
27193 haveit=yes
27194 break
27195 fi
27196 done
27197 if test -z "$haveit"; then
27198 if test -d "$additional_includedir"; then
27199 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
27200 fi
27201 fi
27202 fi
27203 fi
27204 fi
27205 if test -n "$found_la"; then
27206 save_libdir="$libdir"
27207 case "$found_la" in
27208 */* | *\\*) . "$found_la" ;;
27209 *) . "./$found_la" ;;
27210 esac
27211 libdir="$save_libdir"
27212 for dep in $dependency_libs; do
27213 case "$dep" in
27214 -L*)
27215 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27216 if test "X$additional_libdir" != "X/usr/lib"; then
27217 haveit=
27218 if test "X$additional_libdir" = "X/usr/local/lib"; then
27219 if test -n "$GCC"; then
27220 case $host_os in
27221 linux*) haveit=yes;;
27222 esac
27223 fi
27224 fi
27225 if test -z "$haveit"; then
27226 haveit=
27227 for x in $LDFLAGS $LIBIPT; do
27228
27229 acl_save_prefix="$prefix"
27230 prefix="$acl_final_prefix"
27231 acl_save_exec_prefix="$exec_prefix"
27232 exec_prefix="$acl_final_exec_prefix"
27233 eval x=\"$x\"
27234 exec_prefix="$acl_save_exec_prefix"
27235 prefix="$acl_save_prefix"
27236
27237 if test "X$x" = "X-L$additional_libdir"; then
27238 haveit=yes
27239 break
27240 fi
27241 done
27242 if test -z "$haveit"; then
27243 if test -d "$additional_libdir"; then
27244 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
27245 fi
27246 fi
27247 haveit=
27248 for x in $LDFLAGS $LTLIBIPT; do
27249
27250 acl_save_prefix="$prefix"
27251 prefix="$acl_final_prefix"
27252 acl_save_exec_prefix="$exec_prefix"
27253 exec_prefix="$acl_final_exec_prefix"
27254 eval x=\"$x\"
27255 exec_prefix="$acl_save_exec_prefix"
27256 prefix="$acl_save_prefix"
27257
27258 if test "X$x" = "X-L$additional_libdir"; then
27259 haveit=yes
27260 break
27261 fi
27262 done
27263 if test -z "$haveit"; then
27264 if test -d "$additional_libdir"; then
27265 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
27266 fi
27267 fi
27268 fi
27269 fi
27270 ;;
27271 -R*)
27272 dir=`echo "X$dep" | sed -e 's/^X-R//'`
27273 if test "$enable_rpath" != no; then
27274 haveit=
27275 for x in $rpathdirs; do
27276 if test "X$x" = "X$dir"; then
27277 haveit=yes
27278 break
27279 fi
27280 done
27281 if test -z "$haveit"; then
27282 rpathdirs="$rpathdirs $dir"
27283 fi
27284 haveit=
27285 for x in $ltrpathdirs; do
27286 if test "X$x" = "X$dir"; then
27287 haveit=yes
27288 break
27289 fi
27290 done
27291 if test -z "$haveit"; then
27292 ltrpathdirs="$ltrpathdirs $dir"
27293 fi
27294 fi
27295 ;;
27296 -l*)
27297 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27298 ;;
27299 *.la)
27300 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27301 ;;
27302 *)
27303 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
27304 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
27305 ;;
27306 esac
27307 done
27308 fi
27309 else
27310 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
27311 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
27312 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
27313 else
27314 LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
27315 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
27316 fi
27317 fi
27318 fi
27319 fi
27320 done
27321 done
27322 if test "X$rpathdirs" != "X"; then
27323 if test -n "$hardcode_libdir_separator"; then
27324 alldirs=
27325 for found_dir in $rpathdirs; do
27326 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27327 done
27328 acl_save_libdir="$libdir"
27329 libdir="$alldirs"
27330 eval flag=\"$hardcode_libdir_flag_spec\"
27331 libdir="$acl_save_libdir"
27332 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
27333 else
27334 for found_dir in $rpathdirs; do
27335 acl_save_libdir="$libdir"
27336 libdir="$found_dir"
27337 eval flag=\"$hardcode_libdir_flag_spec\"
27338 libdir="$acl_save_libdir"
27339 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
27340 done
27341 fi
27342 fi
27343 if test "X$ltrpathdirs" != "X"; then
27344 for found_dir in $ltrpathdirs; do
27345 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
27346 done
27347 fi
27348
27349
27350 ac_save_CPPFLAGS="$CPPFLAGS"
27351
27352 for element in $INCIPT; do
27353 haveit=
27354 for x in $CPPFLAGS; do
27355
27356 acl_save_prefix="$prefix"
27357 prefix="$acl_final_prefix"
27358 acl_save_exec_prefix="$exec_prefix"
27359 exec_prefix="$acl_final_exec_prefix"
27360 eval x=\"$x\"
27361 exec_prefix="$acl_save_exec_prefix"
27362 prefix="$acl_save_prefix"
27363
27364 if test "X$x" = "X$element"; then
27365 haveit=yes
27366 break
27367 fi
27368 done
27369 if test -z "$haveit"; then
27370 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27371 fi
27372 done
27373
27374
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
27376 $as_echo_n "checking for libipt... " >&6; }
27377 if ${ac_cv_libipt+:} false; then :
27378 $as_echo_n "(cached) " >&6
27379 else
27380
27381 ac_save_LIBS="$LIBS"
27382 LIBS="$LIBS $LIBIPT"
27383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27384 /* end confdefs.h. */
27385 #include "intel-pt.h"
27386 int
27387 main ()
27388 {
27389 pt_insn_alloc_decoder (0);
27390 ;
27391 return 0;
27392 }
27393 _ACEOF
27394 if ac_fn_c_try_link "$LINENO"; then :
27395 ac_cv_libipt=yes
27396 else
27397 ac_cv_libipt=no
27398 fi
27399 rm -f core conftest.err conftest.$ac_objext \
27400 conftest$ac_exeext conftest.$ac_ext
27401 LIBS="$ac_save_LIBS"
27402
27403 fi
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
27405 $as_echo "$ac_cv_libipt" >&6; }
27406 if test "$ac_cv_libipt" = yes; then
27407 HAVE_LIBIPT=yes
27408
27409 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
27410
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
27412 $as_echo_n "checking how to link with libipt... " >&6; }
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
27414 $as_echo "$LIBIPT" >&6; }
27415 else
27416 HAVE_LIBIPT=no
27417 CPPFLAGS="$ac_save_CPPFLAGS"
27418 LIBIPT=
27419 LTLIBIPT=
27420 fi
27421
27422
27423
27424
27425
27426
27427 if test "$HAVE_LIBIPT" != yes; then
27428 if test "$with_intel_pt" = yes; then
27429 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
27430 else
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
27432 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
27433 fi
27434 else
27435 save_LIBS=$LIBS
27436 LIBS="$LIBS $LIBIPT"
27437 for ac_func in pt_insn_event
27438 do :
27439 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
27440 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
27441 cat >>confdefs.h <<_ACEOF
27442 #define HAVE_PT_INSN_EVENT 1
27443 _ACEOF
27444
27445 fi
27446 done
27447
27448 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
27449 "
27450 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
27451
27452 cat >>confdefs.h <<_ACEOF
27453 #define HAVE_STRUCT_PT_INSN_ENABLED 1
27454 _ACEOF
27455
27456
27457 fi
27458 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
27459 "
27460 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
27461
27462 cat >>confdefs.h <<_ACEOF
27463 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
27464 _ACEOF
27465
27466
27467 fi
27468
27469 LIBS=$save_LIBS
27470 fi
27471 fi
27472
27473 # Check if the compiler and runtime support printing long longs.
27474
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
27476 $as_echo_n "checking for long long support in printf... " >&6; }
27477 if ${gdb_cv_printf_has_long_long+:} false; then :
27478 $as_echo_n "(cached) " >&6
27479 else
27480 if test "$cross_compiling" = yes; then :
27481 gdb_cv_printf_has_long_long=no
27482 else
27483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27484 /* end confdefs.h. */
27485 $ac_includes_default
27486 int
27487 main ()
27488 {
27489 char buf[32];
27490 long long l = 0;
27491 l = (l << 16) + 0x0123;
27492 l = (l << 16) + 0x4567;
27493 l = (l << 16) + 0x89ab;
27494 l = (l << 16) + 0xcdef;
27495 sprintf (buf, "0x%016llx", l);
27496 return (strcmp ("0x0123456789abcdef", buf));
27497 ;
27498 return 0;
27499 }
27500 _ACEOF
27501 if ac_fn_c_try_run "$LINENO"; then :
27502 gdb_cv_printf_has_long_long=yes
27503 else
27504 gdb_cv_printf_has_long_long=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_printf_has_long_long" >&5
27512 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
27513 if test "$gdb_cv_printf_has_long_long" = yes; then
27514
27515 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
27516
27517 fi
27518
27519
27520 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
27521
27522 for ac_header in sys/procfs.h
27523 do :
27524 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
27525 if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
27526 cat >>confdefs.h <<_ACEOF
27527 #define HAVE_SYS_PROCFS_H 1
27528 _ACEOF
27529
27530 fi
27531
27532 done
27533
27534 if test "$ac_cv_header_sys_procfs_h" = yes; then
27535
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
27537 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
27538 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
27539 $as_echo_n "(cached) " >&6
27540 else
27541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27542 /* end confdefs.h. */
27543
27544 #define _SYSCALL32
27545 #include <sys/procfs.h>
27546 int
27547 main ()
27548 {
27549 gregset_t avar
27550 ;
27551 return 0;
27552 }
27553 _ACEOF
27554 if ac_fn_c_try_compile "$LINENO"; then :
27555 bfd_cv_have_sys_procfs_type_gregset_t=yes
27556 else
27557 bfd_cv_have_sys_procfs_type_gregset_t=no
27558
27559 fi
27560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27561 fi
27562
27563 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
27564
27565 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
27566
27567 fi
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
27569 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
27570
27571
27572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
27573 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
27574 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
27575 $as_echo_n "(cached) " >&6
27576 else
27577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27578 /* end confdefs.h. */
27579
27580 #define _SYSCALL32
27581 #include <sys/procfs.h>
27582 int
27583 main ()
27584 {
27585 fpregset_t avar
27586 ;
27587 return 0;
27588 }
27589 _ACEOF
27590 if ac_fn_c_try_compile "$LINENO"; then :
27591 bfd_cv_have_sys_procfs_type_fpregset_t=yes
27592 else
27593 bfd_cv_have_sys_procfs_type_fpregset_t=no
27594
27595 fi
27596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27597 fi
27598
27599 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
27600
27601 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
27602
27603 fi
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
27605 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
27606
27607
27608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
27609 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
27610 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
27611 $as_echo_n "(cached) " >&6
27612 else
27613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27614 /* end confdefs.h. */
27615
27616 #define _SYSCALL32
27617 #include <sys/procfs.h>
27618 int
27619 main ()
27620 {
27621 prgregset_t avar
27622 ;
27623 return 0;
27624 }
27625 _ACEOF
27626 if ac_fn_c_try_compile "$LINENO"; then :
27627 bfd_cv_have_sys_procfs_type_prgregset_t=yes
27628 else
27629 bfd_cv_have_sys_procfs_type_prgregset_t=no
27630
27631 fi
27632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27633 fi
27634
27635 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
27636
27637 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
27638
27639 fi
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
27641 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
27642
27643
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
27645 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
27646 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
27647 $as_echo_n "(cached) " >&6
27648 else
27649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27650 /* end confdefs.h. */
27651
27652 #define _SYSCALL32
27653 #include <sys/procfs.h>
27654 int
27655 main ()
27656 {
27657 prfpregset_t avar
27658 ;
27659 return 0;
27660 }
27661 _ACEOF
27662 if ac_fn_c_try_compile "$LINENO"; then :
27663 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
27664 else
27665 bfd_cv_have_sys_procfs_type_prfpregset_t=no
27666
27667 fi
27668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27669 fi
27670
27671 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
27672
27673 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
27674
27675 fi
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
27677 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
27678
27679
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
27681 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
27682 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
27683 $as_echo_n "(cached) " >&6
27684 else
27685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27686 /* end confdefs.h. */
27687
27688 #define _SYSCALL32
27689 #include <sys/procfs.h>
27690 int
27691 main ()
27692 {
27693 prgregset32_t avar
27694 ;
27695 return 0;
27696 }
27697 _ACEOF
27698 if ac_fn_c_try_compile "$LINENO"; then :
27699 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
27700 else
27701 bfd_cv_have_sys_procfs_type_prgregset32_t=no
27702
27703 fi
27704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27705 fi
27706
27707 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
27708
27709 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
27710
27711 fi
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
27713 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
27714
27715
27716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
27717 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
27718 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
27719 $as_echo_n "(cached) " >&6
27720 else
27721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27722 /* end confdefs.h. */
27723
27724 #define _SYSCALL32
27725 #include <sys/procfs.h>
27726 int
27727 main ()
27728 {
27729 lwpid_t avar
27730 ;
27731 return 0;
27732 }
27733 _ACEOF
27734 if ac_fn_c_try_compile "$LINENO"; then :
27735 bfd_cv_have_sys_procfs_type_lwpid_t=yes
27736 else
27737 bfd_cv_have_sys_procfs_type_lwpid_t=no
27738
27739 fi
27740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27741 fi
27742
27743 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
27744
27745 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
27746
27747 fi
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
27749 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
27750
27751
27752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
27753 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
27754 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
27755 $as_echo_n "(cached) " >&6
27756 else
27757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27758 /* end confdefs.h. */
27759
27760 #define _SYSCALL32
27761 #include <sys/procfs.h>
27762 int
27763 main ()
27764 {
27765 psaddr_t avar
27766 ;
27767 return 0;
27768 }
27769 _ACEOF
27770 if ac_fn_c_try_compile "$LINENO"; then :
27771 bfd_cv_have_sys_procfs_type_psaddr_t=yes
27772 else
27773 bfd_cv_have_sys_procfs_type_psaddr_t=no
27774
27775 fi
27776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27777 fi
27778
27779 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
27780
27781 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
27782
27783 fi
27784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
27785 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
27786
27787
27788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
27789 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
27790 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
27791 $as_echo_n "(cached) " >&6
27792 else
27793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27794 /* end confdefs.h. */
27795
27796 #define _SYSCALL32
27797 #include <sys/procfs.h>
27798 int
27799 main ()
27800 {
27801 elf_fpregset_t avar
27802 ;
27803 return 0;
27804 }
27805 _ACEOF
27806 if ac_fn_c_try_compile "$LINENO"; then :
27807 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
27808 else
27809 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
27810
27811 fi
27812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27813 fi
27814
27815 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
27816
27817 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
27818
27819 fi
27820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
27821 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
27822
27823 fi
27824
27825 # Check for xxhash
27826
27827 # Check whether --with-xxhash was given.
27828 if test "${with_xxhash+set}" = set; then :
27829 withval=$with_xxhash;
27830 else
27831 with_xxhash=auto
27832 fi
27833
27834
27835 if test "x$with_xxhash" != "xno"; then
27836
27837
27838
27839
27840
27841
27842
27843
27844 use_additional=yes
27845
27846 acl_save_prefix="$prefix"
27847 prefix="$acl_final_prefix"
27848 acl_save_exec_prefix="$exec_prefix"
27849 exec_prefix="$acl_final_exec_prefix"
27850
27851 eval additional_includedir=\"$includedir\"
27852 eval additional_libdir=\"$libdir\"
27853
27854 exec_prefix="$acl_save_exec_prefix"
27855 prefix="$acl_save_prefix"
27856
27857
27858 # Check whether --with-libxxhash-prefix was given.
27859 if test "${with_libxxhash_prefix+set}" = set; then :
27860 withval=$with_libxxhash_prefix;
27861 if test "X$withval" = "Xno"; then
27862 use_additional=no
27863 else
27864 if test "X$withval" = "X"; then
27865
27866 acl_save_prefix="$prefix"
27867 prefix="$acl_final_prefix"
27868 acl_save_exec_prefix="$exec_prefix"
27869 exec_prefix="$acl_final_exec_prefix"
27870
27871 eval additional_includedir=\"$includedir\"
27872 eval additional_libdir=\"$libdir\"
27873
27874 exec_prefix="$acl_save_exec_prefix"
27875 prefix="$acl_save_prefix"
27876
27877 else
27878 additional_includedir="$withval/include"
27879 additional_libdir="$withval/lib"
27880 fi
27881 fi
27882
27883 fi
27884
27885
27886 # Check whether --with-libxxhash-type was given.
27887 if test "${with_libxxhash_type+set}" = set; then :
27888 withval=$with_libxxhash_type; with_libxxhash_type=$withval
27889 else
27890 with_libxxhash_type=auto
27891 fi
27892
27893 lib_type=`eval echo \$with_libxxhash_type`
27894
27895 LIBXXHASH=
27896 LTLIBXXHASH=
27897 INCXXHASH=
27898 rpathdirs=
27899 ltrpathdirs=
27900 names_already_handled=
27901 names_next_round='xxhash '
27902 while test -n "$names_next_round"; do
27903 names_this_round="$names_next_round"
27904 names_next_round=
27905 for name in $names_this_round; do
27906 already_handled=
27907 for n in $names_already_handled; do
27908 if test "$n" = "$name"; then
27909 already_handled=yes
27910 break
27911 fi
27912 done
27913 if test -z "$already_handled"; then
27914 names_already_handled="$names_already_handled $name"
27915 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27916 eval value=\"\$HAVE_LIB$uppername\"
27917 if test -n "$value"; then
27918 if test "$value" = yes; then
27919 eval value=\"\$LIB$uppername\"
27920 test -z "$value" || LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$value"
27921 eval value=\"\$LTLIB$uppername\"
27922 test -z "$value" || LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
27923 else
27924 :
27925 fi
27926 else
27927 found_dir=
27928 found_la=
27929 found_so=
27930 found_a=
27931 if test $use_additional = yes; then
27932 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
27933 found_dir="$additional_libdir"
27934 found_so="$additional_libdir/lib$name.$shlibext"
27935 if test -f "$additional_libdir/lib$name.la"; then
27936 found_la="$additional_libdir/lib$name.la"
27937 fi
27938 elif test x$lib_type != xshared; then
27939 if test -f "$additional_libdir/lib$name.$libext"; then
27940 found_dir="$additional_libdir"
27941 found_a="$additional_libdir/lib$name.$libext"
27942 if test -f "$additional_libdir/lib$name.la"; then
27943 found_la="$additional_libdir/lib$name.la"
27944 fi
27945 fi
27946 fi
27947 fi
27948 if test "X$found_dir" = "X"; then
27949 for x in $LDFLAGS $LTLIBXXHASH; do
27950
27951 acl_save_prefix="$prefix"
27952 prefix="$acl_final_prefix"
27953 acl_save_exec_prefix="$exec_prefix"
27954 exec_prefix="$acl_final_exec_prefix"
27955 eval x=\"$x\"
27956 exec_prefix="$acl_save_exec_prefix"
27957 prefix="$acl_save_prefix"
27958
27959 case "$x" in
27960 -L*)
27961 dir=`echo "X$x" | sed -e 's/^X-L//'`
27962 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
27963 found_dir="$dir"
27964 found_so="$dir/lib$name.$shlibext"
27965 if test -f "$dir/lib$name.la"; then
27966 found_la="$dir/lib$name.la"
27967 fi
27968 elif test x$lib_type != xshared; then
27969 if test -f "$dir/lib$name.$libext"; then
27970 found_dir="$dir"
27971 found_a="$dir/lib$name.$libext"
27972 if test -f "$dir/lib$name.la"; then
27973 found_la="$dir/lib$name.la"
27974 fi
27975 fi
27976 fi
27977 ;;
27978 esac
27979 if test "X$found_dir" != "X"; then
27980 break
27981 fi
27982 done
27983 fi
27984 if test "X$found_dir" != "X"; then
27985 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
27986 if test "X$found_so" != "X"; then
27987 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
27988 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
27989 else
27990 haveit=
27991 for x in $ltrpathdirs; do
27992 if test "X$x" = "X$found_dir"; then
27993 haveit=yes
27994 break
27995 fi
27996 done
27997 if test -z "$haveit"; then
27998 ltrpathdirs="$ltrpathdirs $found_dir"
27999 fi
28000 if test "$hardcode_direct" = yes; then
28001 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
28002 else
28003 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28004 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
28005 haveit=
28006 for x in $rpathdirs; do
28007 if test "X$x" = "X$found_dir"; then
28008 haveit=yes
28009 break
28010 fi
28011 done
28012 if test -z "$haveit"; then
28013 rpathdirs="$rpathdirs $found_dir"
28014 fi
28015 else
28016 haveit=
28017 for x in $LDFLAGS $LIBXXHASH; do
28018
28019 acl_save_prefix="$prefix"
28020 prefix="$acl_final_prefix"
28021 acl_save_exec_prefix="$exec_prefix"
28022 exec_prefix="$acl_final_exec_prefix"
28023 eval x=\"$x\"
28024 exec_prefix="$acl_save_exec_prefix"
28025 prefix="$acl_save_prefix"
28026
28027 if test "X$x" = "X-L$found_dir"; then
28028 haveit=yes
28029 break
28030 fi
28031 done
28032 if test -z "$haveit"; then
28033 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
28034 fi
28035 if test "$hardcode_minus_L" != no; then
28036 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
28037 else
28038 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
28039 fi
28040 fi
28041 fi
28042 fi
28043 else
28044 if test "X$found_a" != "X"; then
28045 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
28046 else
28047 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
28048 fi
28049 fi
28050 additional_includedir=
28051 case "$found_dir" in
28052 */lib | */lib/)
28053 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28054 additional_includedir="$basedir/include"
28055 ;;
28056 esac
28057 if test "X$additional_includedir" != "X"; then
28058 if test "X$additional_includedir" != "X/usr/include"; then
28059 haveit=
28060 if test "X$additional_includedir" = "X/usr/local/include"; then
28061 if test -n "$GCC"; then
28062 case $host_os in
28063 linux*) haveit=yes;;
28064 esac
28065 fi
28066 fi
28067 if test -z "$haveit"; then
28068 for x in $CPPFLAGS $INCXXHASH; do
28069
28070 acl_save_prefix="$prefix"
28071 prefix="$acl_final_prefix"
28072 acl_save_exec_prefix="$exec_prefix"
28073 exec_prefix="$acl_final_exec_prefix"
28074 eval x=\"$x\"
28075 exec_prefix="$acl_save_exec_prefix"
28076 prefix="$acl_save_prefix"
28077
28078 if test "X$x" = "X-I$additional_includedir"; then
28079 haveit=yes
28080 break
28081 fi
28082 done
28083 if test -z "$haveit"; then
28084 if test -d "$additional_includedir"; then
28085 INCXXHASH="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
28086 fi
28087 fi
28088 fi
28089 fi
28090 fi
28091 if test -n "$found_la"; then
28092 save_libdir="$libdir"
28093 case "$found_la" in
28094 */* | *\\*) . "$found_la" ;;
28095 *) . "./$found_la" ;;
28096 esac
28097 libdir="$save_libdir"
28098 for dep in $dependency_libs; do
28099 case "$dep" in
28100 -L*)
28101 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28102 if test "X$additional_libdir" != "X/usr/lib"; then
28103 haveit=
28104 if test "X$additional_libdir" = "X/usr/local/lib"; then
28105 if test -n "$GCC"; then
28106 case $host_os in
28107 linux*) haveit=yes;;
28108 esac
28109 fi
28110 fi
28111 if test -z "$haveit"; then
28112 haveit=
28113 for x in $LDFLAGS $LIBXXHASH; do
28114
28115 acl_save_prefix="$prefix"
28116 prefix="$acl_final_prefix"
28117 acl_save_exec_prefix="$exec_prefix"
28118 exec_prefix="$acl_final_exec_prefix"
28119 eval x=\"$x\"
28120 exec_prefix="$acl_save_exec_prefix"
28121 prefix="$acl_save_prefix"
28122
28123 if test "X$x" = "X-L$additional_libdir"; then
28124 haveit=yes
28125 break
28126 fi
28127 done
28128 if test -z "$haveit"; then
28129 if test -d "$additional_libdir"; then
28130 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
28131 fi
28132 fi
28133 haveit=
28134 for x in $LDFLAGS $LTLIBXXHASH; do
28135
28136 acl_save_prefix="$prefix"
28137 prefix="$acl_final_prefix"
28138 acl_save_exec_prefix="$exec_prefix"
28139 exec_prefix="$acl_final_exec_prefix"
28140 eval x=\"$x\"
28141 exec_prefix="$acl_save_exec_prefix"
28142 prefix="$acl_save_prefix"
28143
28144 if test "X$x" = "X-L$additional_libdir"; then
28145 haveit=yes
28146 break
28147 fi
28148 done
28149 if test -z "$haveit"; then
28150 if test -d "$additional_libdir"; then
28151 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
28152 fi
28153 fi
28154 fi
28155 fi
28156 ;;
28157 -R*)
28158 dir=`echo "X$dep" | sed -e 's/^X-R//'`
28159 if test "$enable_rpath" != no; then
28160 haveit=
28161 for x in $rpathdirs; do
28162 if test "X$x" = "X$dir"; then
28163 haveit=yes
28164 break
28165 fi
28166 done
28167 if test -z "$haveit"; then
28168 rpathdirs="$rpathdirs $dir"
28169 fi
28170 haveit=
28171 for x in $ltrpathdirs; do
28172 if test "X$x" = "X$dir"; then
28173 haveit=yes
28174 break
28175 fi
28176 done
28177 if test -z "$haveit"; then
28178 ltrpathdirs="$ltrpathdirs $dir"
28179 fi
28180 fi
28181 ;;
28182 -l*)
28183 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28184 ;;
28185 *.la)
28186 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28187 ;;
28188 *)
28189 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$dep"
28190 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
28191 ;;
28192 esac
28193 done
28194 fi
28195 else
28196 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
28197 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
28198 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
28199 else
28200 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
28201 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
28202 fi
28203 fi
28204 fi
28205 fi
28206 done
28207 done
28208 if test "X$rpathdirs" != "X"; then
28209 if test -n "$hardcode_libdir_separator"; then
28210 alldirs=
28211 for found_dir in $rpathdirs; do
28212 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28213 done
28214 acl_save_libdir="$libdir"
28215 libdir="$alldirs"
28216 eval flag=\"$hardcode_libdir_flag_spec\"
28217 libdir="$acl_save_libdir"
28218 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
28219 else
28220 for found_dir in $rpathdirs; do
28221 acl_save_libdir="$libdir"
28222 libdir="$found_dir"
28223 eval flag=\"$hardcode_libdir_flag_spec\"
28224 libdir="$acl_save_libdir"
28225 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
28226 done
28227 fi
28228 fi
28229 if test "X$ltrpathdirs" != "X"; then
28230 for found_dir in $ltrpathdirs; do
28231 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
28232 done
28233 fi
28234
28235
28236 ac_save_CPPFLAGS="$CPPFLAGS"
28237
28238 for element in $INCXXHASH; do
28239 haveit=
28240 for x in $CPPFLAGS; do
28241
28242 acl_save_prefix="$prefix"
28243 prefix="$acl_final_prefix"
28244 acl_save_exec_prefix="$exec_prefix"
28245 exec_prefix="$acl_final_exec_prefix"
28246 eval x=\"$x\"
28247 exec_prefix="$acl_save_exec_prefix"
28248 prefix="$acl_save_prefix"
28249
28250 if test "X$x" = "X$element"; then
28251 haveit=yes
28252 break
28253 fi
28254 done
28255 if test -z "$haveit"; then
28256 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28257 fi
28258 done
28259
28260
28261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
28262 $as_echo_n "checking for libxxhash... " >&6; }
28263 if ${ac_cv_libxxhash+:} false; then :
28264 $as_echo_n "(cached) " >&6
28265 else
28266
28267 ac_save_LIBS="$LIBS"
28268 LIBS="$LIBS $LIBXXHASH"
28269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28270 /* end confdefs.h. */
28271 #include <xxhash.h>
28272 int
28273 main ()
28274 {
28275 XXH32("foo", 3, 0);
28276
28277 ;
28278 return 0;
28279 }
28280 _ACEOF
28281 if ac_fn_c_try_link "$LINENO"; then :
28282 ac_cv_libxxhash=yes
28283 else
28284 ac_cv_libxxhash=no
28285 fi
28286 rm -f core conftest.err conftest.$ac_objext \
28287 conftest$ac_exeext conftest.$ac_ext
28288 LIBS="$ac_save_LIBS"
28289
28290 fi
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
28292 $as_echo "$ac_cv_libxxhash" >&6; }
28293 if test "$ac_cv_libxxhash" = yes; then
28294 HAVE_LIBXXHASH=yes
28295
28296 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
28297
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
28299 $as_echo_n "checking how to link with libxxhash... " >&6; }
28300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
28301 $as_echo "$LIBXXHASH" >&6; }
28302 else
28303 HAVE_LIBXXHASH=no
28304 CPPFLAGS="$ac_save_CPPFLAGS"
28305 LIBXXHASH=
28306 LTLIBXXHASH=
28307 fi
28308
28309
28310
28311
28312
28313
28314 if test "$HAVE_LIBXXHASH" != yes; then
28315 if test "$with_xxhash" = yes; then
28316 as_fn_error $? "xxhash is missing or unusable" "$LINENO" 5
28317 fi
28318 fi
28319 if test "x$with_xxhash" = "xauto"; then
28320 with_xxhash="$HAVE_LIBXXHASH"
28321 fi
28322 fi
28323
28324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
28325 $as_echo_n "checking whether to use xxhash... " >&6; }
28326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
28327 $as_echo "$with_xxhash" >&6; }
28328
28329
28330 # Check the return and argument types of ptrace.
28331
28332
28333 for ac_header in sys/ptrace.h ptrace.h
28334 do :
28335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28336 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28337 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28338 cat >>confdefs.h <<_ACEOF
28339 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28340 _ACEOF
28341
28342 fi
28343
28344 done
28345
28346
28347 gdb_ptrace_headers='
28348 #include <sys/types.h>
28349 #if HAVE_SYS_PTRACE_H
28350 # include <sys/ptrace.h>
28351 #endif
28352 #if HAVE_UNISTD_H
28353 # include <unistd.h>
28354 #endif
28355 '
28356
28357 # Check return type. Varargs (used on GNU/Linux) conflict with the
28358 # empty argument list, so check for that explicitly.
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
28360 $as_echo_n "checking return type of ptrace... " >&6; }
28361 if ${gdb_cv_func_ptrace_ret+:} false; then :
28362 $as_echo_n "(cached) " >&6
28363 else
28364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28365 /* end confdefs.h. */
28366  $gdb_ptrace_headers
28367 int
28368 main ()
28369 {
28370 extern long ptrace (enum __ptrace_request, ...);
28371
28372 ;
28373 return 0;
28374 }
28375 _ACEOF
28376 if ac_fn_c_try_compile "$LINENO"; then :
28377 gdb_cv_func_ptrace_ret='long'
28378 else
28379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28380 /* end confdefs.h. */
28381 $gdb_ptrace_headers
28382 int
28383 main ()
28384 {
28385 extern int ptrace ();
28386
28387 ;
28388 return 0;
28389 }
28390 _ACEOF
28391 if ac_fn_c_try_compile "$LINENO"; then :
28392 gdb_cv_func_ptrace_ret='int'
28393 else
28394 gdb_cv_func_ptrace_ret='long'
28395
28396 fi
28397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28398
28399 fi
28400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28401
28402 fi
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
28404 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
28405
28406
28407 cat >>confdefs.h <<_ACEOF
28408 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
28409 _ACEOF
28410
28411
28412 # Check argument types.
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
28414 $as_echo_n "checking types of arguments for ptrace... " >&6; }
28415 if ${gdb_cv_func_ptrace_args+:} false; then :
28416 $as_echo_n "(cached) " >&6
28417 else
28418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28419 /* end confdefs.h. */
28420 $gdb_ptrace_headers
28421 int
28422 main ()
28423 {
28424 extern long ptrace (enum __ptrace_request, ...);
28425
28426 ;
28427 return 0;
28428 }
28429 _ACEOF
28430 if ac_fn_c_try_compile "$LINENO"; then :
28431 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
28432 else
28433 for gdb_arg1 in 'int' 'long'; do
28434 for gdb_arg2 in 'pid_t' 'int' 'long'; do
28435 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
28436 for gdb_arg4 in 'int' 'long' 'void *'; do
28437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28438 /* end confdefs.h. */
28439 $gdb_ptrace_headers
28440 int
28441 main ()
28442 {
28443 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
28444
28445 ;
28446 return 0;
28447 }
28448 _ACEOF
28449 if ac_fn_c_try_compile "$LINENO"; then :
28450 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
28451 break 4;
28452
28453 fi
28454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28455
28456 for gdb_arg5 in 'int *' 'int' 'long'; do
28457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28458 /* end confdefs.h. */
28459 $gdb_ptrace_headers
28460 int
28461 main ()
28462 {
28463 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
28464
28465 ;
28466 return 0;
28467 }
28468 _ACEOF
28469 if ac_fn_c_try_compile "$LINENO"; then :
28470 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
28471 break 5;
28472
28473 fi
28474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28475 done
28476 done
28477 done
28478 done
28479 done
28480 # Provide a safe default value.
28481 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
28482
28483 fi
28484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28485
28486 fi
28487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
28488 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
28489
28490 ac_save_IFS=$IFS; IFS=','
28491 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
28492 IFS=$ac_save_IFS
28493 shift
28494
28495 cat >>confdefs.h <<_ACEOF
28496 #define PTRACE_TYPE_ARG1 $1
28497 _ACEOF
28498
28499
28500 cat >>confdefs.h <<_ACEOF
28501 #define PTRACE_TYPE_ARG3 $3
28502 _ACEOF
28503
28504
28505 cat >>confdefs.h <<_ACEOF
28506 #define PTRACE_TYPE_ARG4 $4
28507 _ACEOF
28508
28509 if test -n "$5"; then
28510
28511 cat >>confdefs.h <<_ACEOF
28512 #define PTRACE_TYPE_ARG5 $5
28513 _ACEOF
28514
28515 fi
28516
28517
28518 if test "$cross_compiling" = no; then
28519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28520 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28521 if ${ac_cv_func_setpgrp_void+:} false; then :
28522 $as_echo_n "(cached) " >&6
28523 else
28524 if test "$cross_compiling" = yes; then :
28525 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28526 else
28527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28528 /* end confdefs.h. */
28529 $ac_includes_default
28530 int
28531 main ()
28532 {
28533 /* If this system has a BSD-style setpgrp which takes arguments,
28534 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28535 exit successfully. */
28536 return setpgrp (1,1) != -1;
28537 ;
28538 return 0;
28539 }
28540 _ACEOF
28541 if ac_fn_c_try_run "$LINENO"; then :
28542 ac_cv_func_setpgrp_void=no
28543 else
28544 ac_cv_func_setpgrp_void=yes
28545 fi
28546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28547 conftest.$ac_objext conftest.beam conftest.$ac_ext
28548 fi
28549
28550 fi
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28552 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28553 if test $ac_cv_func_setpgrp_void = yes; then
28554
28555 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28556
28557 fi
28558
28559 else
28560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28561 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28562 if ${ac_cv_func_setpgrp_void+:} false; then :
28563 $as_echo_n "(cached) " >&6
28564 else
28565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28566 /* end confdefs.h. */
28567 #include <unistd.h>
28568 int
28569 main ()
28570 {
28571 if (setpgrp(1,1) == -1)
28572 exit (0);
28573 else
28574 exit (1);
28575
28576 ;
28577 return 0;
28578 }
28579 _ACEOF
28580 if ac_fn_c_try_compile "$LINENO"; then :
28581 ac_cv_func_setpgrp_void=no
28582 else
28583 ac_cv_func_setpgrp_void=yes
28584
28585 fi
28586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28587
28588 fi
28589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28590 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28591 if test "$ac_cv_func_setpgrp_void" = yes; then
28592 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28593
28594 fi
28595 fi
28596
28597 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
28598 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
28599 #include <sys/proc.h>
28600
28601 "
28602 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
28603
28604 cat >>confdefs.h <<_ACEOF
28605 #define HAVE_STRUCT_THREAD_TD_PCB 1
28606 _ACEOF
28607
28608
28609 fi
28610
28611
28612 # See if <sys/lwp.h> defines `struct lwp`.
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
28614 $as_echo_n "checking for struct lwp... " >&6; }
28615 if ${gdb_cv_struct_lwp+:} false; then :
28616 $as_echo_n "(cached) " >&6
28617 else
28618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28619 /* end confdefs.h. */
28620 #include <sys/param.h>
28621 #define _KMEMUSER
28622 #include <sys/lwp.h>
28623 int
28624 main ()
28625 {
28626 struct lwp l;
28627
28628 ;
28629 return 0;
28630 }
28631 _ACEOF
28632 if ac_fn_c_try_compile "$LINENO"; then :
28633 gdb_cv_struct_lwp=yes
28634 else
28635 gdb_cv_struct_lwp=no
28636
28637 fi
28638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28639
28640 fi
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
28642 $as_echo "$gdb_cv_struct_lwp" >&6; }
28643 if test "$gdb_cv_struct_lwp" = yes; then
28644
28645 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
28646
28647 fi
28648
28649 # See if <machine/reg.h> degines `struct reg'.
28650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
28651 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
28652 if ${gdb_cv_struct_reg+:} false; then :
28653 $as_echo_n "(cached) " >&6
28654 else
28655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28656 /* end confdefs.h. */
28657 #include <sys/types.h>
28658 #include <machine/reg.h>
28659 int
28660 main ()
28661 {
28662 struct reg r;
28663
28664 ;
28665 return 0;
28666 }
28667 _ACEOF
28668 if ac_fn_c_try_compile "$LINENO"; then :
28669 gdb_cv_struct_reg=yes
28670 else
28671 gdb_cv_struct_reg=no
28672
28673 fi
28674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28675
28676 fi
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
28678 $as_echo "$gdb_cv_struct_reg" >&6; }
28679 if test "$gdb_cv_struct_reg" = yes; then
28680
28681 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
28682
28683 fi
28684
28685 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
28686 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
28687 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
28688 #include <machine/reg.h>
28689 "
28690 if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
28691
28692 cat >>confdefs.h <<_ACEOF
28693 #define HAVE_STRUCT_REG_R_FS 1
28694 _ACEOF
28695
28696
28697 fi
28698 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
28699 #include <machine/reg.h>
28700 "
28701 if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
28702
28703 cat >>confdefs.h <<_ACEOF
28704 #define HAVE_STRUCT_REG_R_GS 1
28705 _ACEOF
28706
28707
28708 fi
28709
28710
28711 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
28712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
28713 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
28714 if ${gdb_cv_have_ptrace_getregs+:} false; then :
28715 $as_echo_n "(cached) " >&6
28716 else
28717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28718 /* end confdefs.h. */
28719 #include <sys/ptrace.h>
28720 int
28721 main ()
28722 {
28723 PTRACE_GETREGS;
28724 ;
28725 return 0;
28726 }
28727 _ACEOF
28728 if ac_fn_c_try_compile "$LINENO"; then :
28729 gdb_cv_have_ptrace_getregs=yes
28730 else
28731 gdb_cv_have_ptrace_getregs=no
28732
28733 fi
28734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28735
28736 fi
28737
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
28739 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
28740 if test "$gdb_cv_have_ptrace_getregs" = yes; then
28741
28742 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
28743
28744 fi
28745
28746 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
28748 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
28749 if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
28750 $as_echo_n "(cached) " >&6
28751 else
28752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28753 /* end confdefs.h. */
28754 #include <sys/ptrace.h>
28755 int
28756 main ()
28757 {
28758 PTRACE_GETFPXREGS;
28759 ;
28760 return 0;
28761 }
28762 _ACEOF
28763 if ac_fn_c_try_compile "$LINENO"; then :
28764 gdb_cv_have_ptrace_getfpxregs=yes
28765 else
28766 gdb_cv_have_ptrace_getfpxregs=no
28767
28768 fi
28769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28770
28771 fi
28772
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
28774 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
28775 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
28776
28777 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
28778
28779 fi
28780
28781 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
28782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
28783 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
28784 if ${gdb_cv_have_pt_getdbregs+:} false; then :
28785 $as_echo_n "(cached) " >&6
28786 else
28787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28788 /* end confdefs.h. */
28789 #include <sys/types.h>
28790 #include <sys/ptrace.h>
28791 int
28792 main ()
28793 {
28794 PT_GETDBREGS;
28795
28796 ;
28797 return 0;
28798 }
28799 _ACEOF
28800 if ac_fn_c_try_compile "$LINENO"; then :
28801 gdb_cv_have_pt_getdbregs=yes
28802 else
28803 gdb_cv_have_pt_getdbregs=no
28804
28805 fi
28806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28807
28808 fi
28809
28810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
28811 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
28812 if test "$gdb_cv_have_pt_getdbregs" = yes; then
28813
28814 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
28815
28816 fi
28817
28818 # See if <sys/ptrace.h> supports LWP names on FreeBSD
28819 # Older FreeBSD versions don't have the pl_tdname member of
28820 # `struct ptrace_lwpinfo'.
28821 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
28822 "
28823 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
28824
28825 cat >>confdefs.h <<_ACEOF
28826 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
28827 _ACEOF
28828
28829
28830 fi
28831
28832
28833 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
28834 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
28835 # FreeBSD 10.3.
28836 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>
28837 "
28838 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
28839
28840 cat >>confdefs.h <<_ACEOF
28841 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
28842 _ACEOF
28843
28844
28845 fi
28846
28847
28848 # Check if the compiler supports the `long long' type.
28849
28850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
28851 $as_echo_n "checking for long long support in compiler... " >&6; }
28852 if ${gdb_cv_c_long_long+:} false; then :
28853 $as_echo_n "(cached) " >&6
28854 else
28855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28856 /* end confdefs.h. */
28857 extern long long foo;
28858 int
28859 main ()
28860 {
28861 switch (foo & 2) { case 0: return 1; }
28862 ;
28863 return 0;
28864 }
28865 _ACEOF
28866 if ac_fn_c_try_compile "$LINENO"; then :
28867 gdb_cv_c_long_long=yes
28868 else
28869 gdb_cv_c_long_long=no
28870 fi
28871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28872 fi
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
28874 $as_echo "$gdb_cv_c_long_long" >&6; }
28875 if test "$gdb_cv_c_long_long" != yes; then
28876 # libdecnumber requires long long.
28877 as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
28878 fi
28879
28880 # Check if the compiler and runtime support printing decfloats.
28881
28882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
28883 $as_echo_n "checking for decfloat support in printf... " >&6; }
28884 if ${gdb_cv_printf_has_decfloat+:} false; then :
28885 $as_echo_n "(cached) " >&6
28886 else
28887 if test "$cross_compiling" = yes; then :
28888 gdb_cv_printf_has_decfloat=no
28889 else
28890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28891 /* end confdefs.h. */
28892 $ac_includes_default
28893 int
28894 main ()
28895 {
28896 char buf[64];
28897 _Decimal32 d32 = 1.2345df;
28898 _Decimal64 d64 = 1.2345dd;
28899 _Decimal128 d128 = 1.2345dl;
28900 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
28901 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
28902 ;
28903 return 0;
28904 }
28905 _ACEOF
28906 if ac_fn_c_try_run "$LINENO"; then :
28907 gdb_cv_printf_has_decfloat=yes
28908 else
28909 gdb_cv_printf_has_decfloat=no
28910 fi
28911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28912 conftest.$ac_objext conftest.beam conftest.$ac_ext
28913 fi
28914
28915 fi
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
28917 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
28918 if test "$gdb_cv_printf_has_decfloat" = yes; then
28919
28920 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
28921
28922 fi
28923
28924 # Check if the compiler supports the `long double' type. We can't use
28925 # AC_C_LONG_DOUBLE because that one does additional checks on the
28926 # constants defined in <float.h> that fail on some systems,
28927 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
28928
28929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
28930 $as_echo_n "checking for long double support in compiler... " >&6; }
28931 if ${gdb_cv_c_long_double+:} false; then :
28932 $as_echo_n "(cached) " >&6
28933 else
28934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28935 /* end confdefs.h. */
28936 long double foo;
28937 _ACEOF
28938 if ac_fn_c_try_compile "$LINENO"; then :
28939 gdb_cv_c_long_double=yes
28940 else
28941 gdb_cv_c_long_double=no
28942 fi
28943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28944 fi
28945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
28946 $as_echo "$gdb_cv_c_long_double" >&6; }
28947 if test "$gdb_cv_c_long_double" = yes; then
28948
28949 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
28950
28951 fi
28952
28953 # Check if the compiler and runtime support printing long doubles.
28954
28955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
28956 $as_echo_n "checking for long double support in printf... " >&6; }
28957 if ${gdb_cv_printf_has_long_double+:} false; then :
28958 $as_echo_n "(cached) " >&6
28959 else
28960 if test "$cross_compiling" = yes; then :
28961 gdb_cv_printf_has_long_double=no
28962 else
28963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28964 /* end confdefs.h. */
28965 $ac_includes_default
28966 int
28967 main ()
28968 {
28969 char buf[16];
28970 long double f = 3.141592653;
28971 sprintf (buf, "%Lg", f);
28972 return (strncmp ("3.14159", buf, 7));
28973 ;
28974 return 0;
28975 }
28976 _ACEOF
28977 if ac_fn_c_try_run "$LINENO"; then :
28978 gdb_cv_printf_has_long_double=yes
28979 else
28980 gdb_cv_printf_has_long_double=no
28981 fi
28982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28983 conftest.$ac_objext conftest.beam conftest.$ac_ext
28984 fi
28985
28986 fi
28987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
28988 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
28989 if test "$gdb_cv_printf_has_long_double" = yes; then
28990
28991 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
28992
28993 fi
28994
28995 # Check if the compiler and runtime support scanning long doubles.
28996
28997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
28998 $as_echo_n "checking for long double support in scanf... " >&6; }
28999 if ${gdb_cv_scanf_has_long_double+:} false; then :
29000 $as_echo_n "(cached) " >&6
29001 else
29002 if test "$cross_compiling" = yes; then :
29003 gdb_cv_scanf_has_long_double=no
29004 else
29005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29006 /* end confdefs.h. */
29007 #include <stdio.h>
29008 int
29009 main ()
29010 {
29011 char *buf = "3.141592653";
29012 long double f = 0;
29013 sscanf (buf, "%Lg", &f);
29014 return !(f > 3.14159 && f < 3.14160);
29015 ;
29016 return 0;
29017 }
29018 _ACEOF
29019 if ac_fn_c_try_run "$LINENO"; then :
29020 gdb_cv_scanf_has_long_double=yes
29021 else
29022 gdb_cv_scanf_has_long_double=no
29023 fi
29024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29025 conftest.$ac_objext conftest.beam conftest.$ac_ext
29026 fi
29027
29028 fi
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
29030 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
29031 if test "$gdb_cv_scanf_has_long_double" = yes; then
29032
29033 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
29034
29035 fi
29036
29037 case ${host_os} in
29038 aix*)
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
29040 $as_echo_n "checking for -bbigtoc option... " >&6; }
29041 if ${gdb_cv_bigtoc+:} false; then :
29042 $as_echo_n "(cached) " >&6
29043 else
29044 SAVE_LDFLAGS=$LDFLAGS
29045
29046 case $GCC in
29047 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
29048 *) gdb_cv_bigtoc=-bbigtoc ;;
29049 esac
29050
29051 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
29052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29053 /* end confdefs.h. */
29054
29055 int
29056 main ()
29057 {
29058 int i;
29059 ;
29060 return 0;
29061 }
29062 _ACEOF
29063 if ac_fn_c_try_link "$LINENO"; then :
29064
29065 else
29066 gdb_cv_bigtoc=
29067
29068 fi
29069 rm -f core conftest.err conftest.$ac_objext \
29070 conftest$ac_exeext conftest.$ac_ext
29071 LDFLAGS="${SAVE_LDFLAGS}"
29072
29073 fi
29074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
29075 $as_echo "$gdb_cv_bigtoc" >&6; }
29076 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
29077 ;;
29078 esac
29079
29080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
29081 $as_echo_n "checking for the dynamic export flag... " >&6; }
29082 dynamic_list=false
29083 if test "${gdb_native}" = yes; then
29084 # The dynamically loaded libthread_db needs access to symbols in the gdb
29085 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
29086 # may not be supported there.
29087 old_LDFLAGS="$LDFLAGS"
29088 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
29089 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
29090 LDFLAGS="$LDFLAGS $RDYNAMIC"
29091 if test "${have_libpython}" = no; then
29092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29093 /* end confdefs.h. */
29094
29095 int
29096 main ()
29097 {
29098
29099 ;
29100 return 0;
29101 }
29102 _ACEOF
29103 if ac_fn_c_try_link "$LINENO"; then :
29104 dynamic_list=true
29105 fi
29106 rm -f core conftest.err conftest.$ac_objext \
29107 conftest$ac_exeext conftest.$ac_ext
29108 else
29109 # Workaround http://bugs.python.org/issue4434 where static
29110 # libpythonX.Y.a would get its symbols required for
29111 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
29112 # Problem does not happen for the recommended libpythonX.Y.so linkage.
29113
29114 # Note the workaround for Python
29115 # http://bugs.python.org/issue10112 earlier has removed
29116 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
29117 # here too, as otherwise it'd make this -Wl,--dynamic-list test
29118 # always pass.
29119 old_CFLAGS="$CFLAGS"
29120 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
29121 old_LIBS="$LIBS"
29122 LIBS="$LIBS $PYTHON_LIBS"
29123 old_CPPFLAGS="$CPPFLAGS"
29124 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
29125 if test "$cross_compiling" = yes; then :
29126 true
29127 else
29128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29129 /* end confdefs.h. */
29130 #include "Python.h"
29131 int
29132 main ()
29133 {
29134 int err;
29135 Py_Initialize ();
29136 err = PyRun_SimpleString ("import ctypes\n");
29137 Py_Finalize ();
29138 return err == 0 ? 0 : 1;
29139 ;
29140 return 0;
29141 }
29142 _ACEOF
29143 if ac_fn_c_try_run "$LINENO"; then :
29144 dynamic_list=true
29145 fi
29146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29147 conftest.$ac_objext conftest.beam conftest.$ac_ext
29148 fi
29149
29150 LIBS="$old_LIBS"
29151 CFLAGS="$old_CFLAGS"
29152 CPPFLAGS="$old_CPPFLAGS"
29153 fi
29154 LDFLAGS="$old_LDFLAGS"
29155 fi
29156 if $dynamic_list; then
29157 found="-Wl,--dynamic-list"
29158 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
29159 else
29160 found="-rdynamic"
29161 RDYNAMIC="-rdynamic"
29162 fi
29163
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
29165 $as_echo "$found" >&6; }
29166
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
29168 $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
29169 if ${gdb_cv_execinfo_backtrace+:} false; then :
29170 $as_echo_n "(cached) " >&6
29171 else
29172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29173 /* end confdefs.h. */
29174
29175 #include <execinfo.h>
29176
29177 int
29178 main ()
29179 {
29180
29181 int f;
29182 void *b[2];
29183 f = backtrace (b, 2);
29184 backtrace_symbols_fd (b, f, 2);
29185
29186 ;
29187 return 0;
29188 }
29189 _ACEOF
29190 if ac_fn_c_try_link "$LINENO"; then :
29191 gdb_cv_execinfo_backtrace=yes
29192 else
29193 gdb_cv_execinfo_backtrace=no
29194 fi
29195 rm -f core conftest.err conftest.$ac_objext \
29196 conftest$ac_exeext conftest.$ac_ext
29197 fi
29198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
29199 $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
29200 if test "$gdb_cv_execinfo_backtrace" = yes; then
29201
29202 $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
29203
29204 fi
29205
29206
29207 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
29208 case ${host_os} in
29209 aix*)
29210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
29211 $as_echo_n "checking for AiX thread debugging library... " >&6; }
29212 if ${gdb_cv_have_aix_thread_debug+:} false; then :
29213 $as_echo_n "(cached) " >&6
29214 else
29215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29216 /* end confdefs.h. */
29217 #include <sys/pthdebug.h>
29218 int
29219 main ()
29220 {
29221 #ifndef PTHDB_VERSION_3
29222 #error
29223 #endif
29224
29225 ;
29226 return 0;
29227 }
29228 _ACEOF
29229 if ac_fn_c_try_compile "$LINENO"; then :
29230 gdb_cv_have_aix_thread_debug=yes
29231 else
29232 gdb_cv_have_aix_thread_debug=no
29233
29234 fi
29235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29236
29237 fi
29238
29239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
29240 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
29241 if test "$gdb_cv_have_aix_thread_debug" = yes; then
29242 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
29243 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
29244 LIBS="$LIBS -lpthdebug"
29245
29246 # Older versions of AIX do not provide the declaration for
29247 # the getthrds function (it appears that it was introduced
29248 # with AIX 6.x).
29249 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
29250 "
29251 if test "x$ac_cv_have_decl_getthrds" = xyes; then :
29252 ac_have_decl=1
29253 else
29254 ac_have_decl=0
29255 fi
29256
29257 cat >>confdefs.h <<_ACEOF
29258 #define HAVE_DECL_GETTHRDS $ac_have_decl
29259 _ACEOF
29260
29261 fi
29262 ;;
29263 esac
29264
29265 fi
29266
29267 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
29269 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
29270 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
29271 $as_echo_n "(cached) " >&6
29272 else
29273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29274 /* end confdefs.h. */
29275 #include <thread_db.h>
29276 int
29277 main ()
29278 {
29279 int i = TD_NOTALLOC;
29280
29281 ;
29282 return 0;
29283 }
29284 _ACEOF
29285 if ac_fn_c_try_compile "$LINENO"; then :
29286 gdb_cv_thread_db_h_has_td_notalloc=yes
29287 else
29288 gdb_cv_thread_db_h_has_td_notalloc=no
29289
29290 fi
29291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29292
29293 fi
29294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
29295 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
29296
29297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
29298 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
29299 if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
29300 $as_echo_n "(cached) " >&6
29301 else
29302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29303 /* end confdefs.h. */
29304 #include <thread_db.h>
29305 int
29306 main ()
29307 {
29308 int i = TD_VERSION;
29309
29310 ;
29311 return 0;
29312 }
29313 _ACEOF
29314 if ac_fn_c_try_compile "$LINENO"; then :
29315 gdb_cv_thread_db_h_has_td_version=yes
29316 else
29317 gdb_cv_thread_db_h_has_td_version=no
29318
29319 fi
29320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29321
29322 fi
29323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
29324 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
29325
29326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
29327 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
29328 if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
29329 $as_echo_n "(cached) " >&6
29330 else
29331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29332 /* end confdefs.h. */
29333 #include <thread_db.h>
29334 int
29335 main ()
29336 {
29337 int i = TD_NOTLS;
29338
29339 ;
29340 return 0;
29341 }
29342 _ACEOF
29343 if ac_fn_c_try_compile "$LINENO"; then :
29344 gdb_cv_thread_db_h_has_td_notls=yes
29345 else
29346 gdb_cv_thread_db_h_has_td_notls=no
29347
29348 fi
29349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29350
29351 fi
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
29353 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
29354 fi
29355 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
29356
29357 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
29358
29359 fi
29360 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
29361
29362 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
29363
29364 fi
29365 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
29366
29367 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
29368
29369 fi
29370
29371 case $host_os in
29372 go32* | *djgpp*)
29373 gdbinit=gdb.ini
29374 ;;
29375 *)
29376 gdbinit=.gdbinit
29377 ;;
29378 esac
29379
29380 cat >>confdefs.h <<_ACEOF
29381 #define GDBINIT "$gdbinit"
29382 _ACEOF
29383
29384
29385
29386 cat >>confdefs.h <<_ACEOF
29387 #define GDBEARLYINIT ".gdbearlyinit"
29388 _ACEOF
29389
29390
29391
29392 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
29393 # except that the argument to --with-sysroot is optional.
29394 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
29395 if test "x$with_sysroot" = xyes; then
29396 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
29397 fi
29398
29399 # Check whether --with-sysroot was given.
29400 if test "${with_sysroot+set}" = set; then :
29401 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
29402 else
29403 TARGET_SYSTEM_ROOT=
29404 fi
29405
29406
29407 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
29408 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29409 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
29410 ac_define_dir=`eval echo $ac_define_dir`
29411
29412 cat >>confdefs.h <<_ACEOF
29413 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
29414 _ACEOF
29415
29416
29417
29418
29419 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
29420 if test "x$prefix" = xNONE; then
29421 test_prefix=/usr/local
29422 else
29423 test_prefix=$prefix
29424 fi
29425 else
29426 test_prefix=$exec_prefix
29427 fi
29428 value=0
29429 case ${ac_define_dir} in
29430 "${test_prefix}"|"${test_prefix}/"*|\
29431 '${exec_prefix}'|'${exec_prefix}/'*)
29432 value=1
29433 ;;
29434 esac
29435
29436 cat >>confdefs.h <<_ACEOF
29437 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
29438 _ACEOF
29439
29440
29441
29442
29443
29444 # Check whether --with-system-gdbinit was given.
29445 if test "${with_system_gdbinit+set}" = set; then :
29446 withval=$with_system_gdbinit;
29447 SYSTEM_GDBINIT=$withval
29448 else
29449 SYSTEM_GDBINIT=
29450 fi
29451
29452
29453 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
29454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29455 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
29456 ac_define_dir=`eval echo $ac_define_dir`
29457
29458 cat >>confdefs.h <<_ACEOF
29459 #define SYSTEM_GDBINIT "$ac_define_dir"
29460 _ACEOF
29461
29462
29463
29464
29465 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
29466 if test "x$prefix" = xNONE; then
29467 test_prefix=/usr/local
29468 else
29469 test_prefix=$prefix
29470 fi
29471 else
29472 test_prefix=$exec_prefix
29473 fi
29474 value=0
29475 case ${ac_define_dir} in
29476 "${test_prefix}"|"${test_prefix}/"*|\
29477 '${exec_prefix}'|'${exec_prefix}/'*)
29478 value=1
29479 ;;
29480 esac
29481
29482 cat >>confdefs.h <<_ACEOF
29483 #define SYSTEM_GDBINIT_RELOCATABLE $value
29484 _ACEOF
29485
29486
29487
29488
29489
29490 # Check whether --with-system-gdbinit-dir was given.
29491 if test "${with_system_gdbinit_dir+set}" = set; then :
29492 withval=$with_system_gdbinit_dir;
29493 SYSTEM_GDBINIT_DIR=$withval
29494 else
29495 SYSTEM_GDBINIT_DIR=
29496 fi
29497
29498
29499 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
29500 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29501 ac_define_dir=`eval echo $SYSTEM_GDBINIT_DIR`
29502 ac_define_dir=`eval echo $ac_define_dir`
29503
29504 cat >>confdefs.h <<_ACEOF
29505 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
29506 _ACEOF
29507
29508
29509
29510
29511 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
29512 if test "x$prefix" = xNONE; then
29513 test_prefix=/usr/local
29514 else
29515 test_prefix=$prefix
29516 fi
29517 else
29518 test_prefix=$exec_prefix
29519 fi
29520 value=0
29521 case ${ac_define_dir} in
29522 "${test_prefix}"|"${test_prefix}/"*|\
29523 '${exec_prefix}'|'${exec_prefix}/'*)
29524 value=1
29525 ;;
29526 esac
29527
29528 cat >>confdefs.h <<_ACEOF
29529 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
29530 _ACEOF
29531
29532
29533
29534
29535
29536
29537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
29538 $as_echo_n "checking the compiler type... " >&6; }
29539 if ${gdb_cv_compiler_type+:} false; then :
29540 $as_echo_n "(cached) " >&6
29541 else
29542 gdb_cv_compiler_type=unknown
29543 if test "$gdb_cv_compiler_type" = unknown; then
29544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29545 /* end confdefs.h. */
29546
29547 int
29548 main ()
29549 {
29550
29551 #if !defined __GNUC__ || defined __clang__
29552 #error not gcc
29553 #endif
29554
29555 ;
29556 return 0;
29557 }
29558 _ACEOF
29559 if ac_fn_c_try_compile "$LINENO"; then :
29560 gdb_cv_compiler_type=gcc
29561 fi
29562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29563 fi
29564
29565 if test "$gdb_cv_compiler_type" = unknown; then
29566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29567 /* end confdefs.h. */
29568
29569 int
29570 main ()
29571 {
29572
29573 #ifndef __clang__
29574 #error not clang
29575 #endif
29576
29577 ;
29578 return 0;
29579 }
29580 _ACEOF
29581 if ac_fn_c_try_compile "$LINENO"; then :
29582 gdb_cv_compiler_type=clang
29583 fi
29584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29585 fi
29586
29587 fi
29588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
29589 $as_echo "$gdb_cv_compiler_type" >&6; }
29590
29591 GDB_COMPILER_TYPE="$gdb_cv_compiler_type"
29592
29593
29594 # Check whether --enable-werror was given.
29595 if test "${enable_werror+set}" = set; then :
29596 enableval=$enable_werror; case "${enableval}" in
29597 yes | y) ERROR_ON_WARNING="yes" ;;
29598 no | n) ERROR_ON_WARNING="no" ;;
29599 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
29600 esac
29601 fi
29602
29603
29604 # Enable -Werror by default when using gcc. Turn it off for releases.
29605 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
29606 ERROR_ON_WARNING=yes
29607 fi
29608
29609 WERROR_CFLAGS=""
29610 if test "${ERROR_ON_WARNING}" = yes ; then
29611 WERROR_CFLAGS="-Werror"
29612 fi
29613
29614 # The options we'll try to enable.
29615 build_warnings="-Wall -Wpointer-arith \
29616 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
29617 -Wno-switch -Wno-char-subscripts \
29618 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
29619 -Wno-sign-compare -Wno-error=maybe-uninitialized \
29620 -Wno-mismatched-tags \
29621 -Wno-error=deprecated-register \
29622 -Wsuggest-override \
29623 -Wimplicit-fallthrough=3 \
29624 -Wduplicated-cond \
29625 -Wshadow=local \
29626 -Wdeprecated-copy \
29627 -Wdeprecated-copy-dtor \
29628 -Wredundant-move \
29629 -Wmissing-declarations \
29630 -Wstrict-null-sentinel \
29631 "
29632
29633 # The -Wmissing-prototypes flag will be accepted by GCC, but results
29634 # in a warning being printed about the flag not being valid for C++,
29635 # this is something to do with using ccache, and argument ordering.
29636 if test "$GDB_COMPILER_TYPE" != gcc; then
29637 build_warnings="$build_warnings -Wmissing-prototypes"
29638 fi
29639
29640 case "${host}" in
29641 *-*-mingw32*)
29642 # Enable -Wno-format by default when using gcc on mingw since many
29643 # GCC versions complain about %I64.
29644 build_warnings="$build_warnings -Wno-format" ;;
29645 *-*-solaris*)
29646 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
29647 # doesn't understand.
29648 build_warnings="$build_warnings -Wno-unknown-pragmas"
29649 # Solaris 11 <unistd.h> marks vfork deprecated.
29650 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
29651 *)
29652 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
29653 # but there's a special case for this below.
29654 build_warnings="$build_warnings -Wformat-nonliteral" ;;
29655 esac
29656
29657 # Check whether --enable-build-warnings was given.
29658 if test "${enable_build_warnings+set}" = set; then :
29659 enableval=$enable_build_warnings; case "${enableval}" in
29660 yes) ;;
29661 no) build_warnings="-w";;
29662 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
29663 build_warnings="${build_warnings} ${t}";;
29664 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
29665 build_warnings="${t} ${build_warnings}";;
29666 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
29667 esac
29668 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
29669 echo "Setting compiler warning flags = $build_warnings" 6>&1
29670 fi
29671 fi
29672 # Check whether --enable-gdb-build-warnings was given.
29673 if test "${enable_gdb_build_warnings+set}" = set; then :
29674 enableval=$enable_gdb_build_warnings; case "${enableval}" in
29675 yes) ;;
29676 no) build_warnings="-w";;
29677 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
29678 build_warnings="${build_warnings} ${t}";;
29679 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
29680 build_warnings="${t} ${build_warnings}";;
29681 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
29682 esac
29683 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
29684 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
29685 fi
29686 fi
29687
29688 # The set of warnings supported by a C++ compiler is not the same as
29689 # of the C compiler.
29690 ac_ext=cpp
29691 ac_cpp='$CXXCPP $CPPFLAGS'
29692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29695
29696
29697 WARN_CFLAGS=""
29698 if test "x${build_warnings}" != x -a "x$GCC" = xyes
29699 then
29700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
29701 $as_echo_n "checking compiler warning flags... " >&6; }
29702 # Separate out the -Werror flag as some files just cannot be
29703 # compiled with it enabled.
29704 for w in ${build_warnings}; do
29705 # GCC does not complain about -Wno-unknown-warning. Invert
29706 # and test -Wunknown-warning instead.
29707 case $w in
29708 -Wno-*)
29709 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
29710 -Wformat-nonliteral)
29711 # gcc requires -Wformat before -Wformat-nonliteral
29712 # will work, so stick them together.
29713 w="-Wformat $w"
29714 wtest="$w"
29715 ;;
29716 *)
29717 wtest=$w ;;
29718 esac
29719
29720 case $w in
29721 -Werr*) WERROR_CFLAGS=-Werror ;;
29722 *)
29723 # Check whether GCC accepts it.
29724 saved_CFLAGS="$CFLAGS"
29725 CFLAGS="$CFLAGS -Werror $wtest"
29726 saved_CXXFLAGS="$CXXFLAGS"
29727 CXXFLAGS="$CXXFLAGS -Werror $wtest"
29728 if test "x$w" = "x-Wunused-variable"; then
29729 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
29730 # fixed in GCC 4.9. This test is derived from the gdb
29731 # source code that triggered this bug in GCC.
29732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29733 /* end confdefs.h. */
29734 struct scoped_restore_base {};
29735 struct scoped_restore_tmpl : public scoped_restore_base {
29736 ~scoped_restore_tmpl() {}
29737 };
29738 int
29739 main ()
29740 {
29741 const scoped_restore_base &b = scoped_restore_tmpl();
29742
29743 ;
29744 return 0;
29745 }
29746 _ACEOF
29747 if ac_fn_cxx_try_compile "$LINENO"; then :
29748 WARN_CFLAGS="${WARN_CFLAGS} $w"
29749 fi
29750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29751 else
29752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29753 /* end confdefs.h. */
29754
29755 int
29756 main ()
29757 {
29758
29759 ;
29760 return 0;
29761 }
29762 _ACEOF
29763 if ac_fn_cxx_try_compile "$LINENO"; then :
29764 WARN_CFLAGS="${WARN_CFLAGS} $w"
29765 fi
29766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29767 fi
29768 CFLAGS="$saved_CFLAGS"
29769 CXXFLAGS="$saved_CXXFLAGS"
29770 esac
29771 done
29772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
29773 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
29774 fi
29775
29776
29777
29778 ac_ext=c
29779 ac_cpp='$CPP $CPPFLAGS'
29780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29783
29784
29785
29786 # Check whether --enable-ubsan was given.
29787 if test "${enable_ubsan+set}" = set; then :
29788 enableval=$enable_ubsan;
29789 else
29790 enable_ubsan=no
29791 fi
29792
29793 if test "x$enable_ubsan" = xauto; then
29794 if $development; then
29795 enable_ubsan=yes
29796 fi
29797 fi
29798 ac_ext=cpp
29799 ac_cpp='$CXXCPP $CPPFLAGS'
29800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29803
29804 if test "x$enable_ubsan" = xyes; then
29805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5
29806 $as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; }
29807 saved_CXXFLAGS="$CXXFLAGS"
29808 CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
29809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29810 /* end confdefs.h. */
29811
29812 int
29813 main ()
29814 {
29815
29816 ;
29817 return 0;
29818 }
29819 _ACEOF
29820 if ac_fn_cxx_try_link "$LINENO"; then :
29821 enable_ubsan=yes
29822 else
29823 enable_ubsan=no
29824
29825 fi
29826 rm -f core conftest.err conftest.$ac_objext \
29827 conftest$ac_exeext conftest.$ac_ext
29828 CXXFLAGS="$saved_CXXFLAGS"
29829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
29830 $as_echo "$enable_ubsan" >&6; }
29831 if test "x$enable_ubsan" = xyes; then
29832 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
29833 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined"
29834 fi
29835 fi
29836 ac_ext=c
29837 ac_cpp='$CPP $CPPFLAGS'
29838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29841
29842
29843
29844 # In the Cygwin environment, we need some additional flags.
29845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
29846 $as_echo_n "checking for cygwin... " >&6; }
29847 if ${gdb_cv_os_cygwin+:} false; then :
29848 $as_echo_n "(cached) " >&6
29849 else
29850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29851 /* end confdefs.h. */
29852
29853 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
29854 lose
29855 #endif
29856 _ACEOF
29857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29858 $EGREP "^lose$" >/dev/null 2>&1; then :
29859 gdb_cv_os_cygwin=yes
29860 else
29861 gdb_cv_os_cygwin=no
29862 fi
29863 rm -f conftest*
29864
29865 fi
29866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
29867 $as_echo "$gdb_cv_os_cygwin" >&6; }
29868
29869
29870 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
29871 case ${host} in
29872 *go32* ) SER_HARDWIRE=ser-go32.o ;;
29873 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
29874 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
29875 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;;
29876 esac
29877
29878
29879 # libreadline needs libuser32.a in a cygwin environment
29880 WIN32LIBS=
29881 if test x"$gdb_cv_os_cygwin" = xyes; then
29882 WIN32LIBS="-luser32"
29883 case "${target}" in
29884 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
29885 ;;
29886 esac
29887 fi
29888
29889 # The ser-tcp.c module requires sockets.
29890 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
29891 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
29892
29893 # Add ELF support to GDB, but only if BFD includes ELF support.
29894
29895 OLD_CFLAGS=$CFLAGS
29896 OLD_LDFLAGS=$LDFLAGS
29897 OLD_LIBS=$LIBS
29898 OLD_CC=$CC
29899 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
29900 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
29901 # always want our bfd.
29902 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
29903 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
29904 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
29905 LIBS="-lbfd -liberty $intl $LIBS"
29906 CC="./libtool --quiet --mode=link $CC"
29907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
29908 $as_echo_n "checking for ELF support in BFD... " >&6; }
29909 if ${gdb_cv_var_elf+:} false; then :
29910 $as_echo_n "(cached) " >&6
29911 else
29912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29913 /* end confdefs.h. */
29914 #include <stdlib.h>
29915 #include <string.h>
29916 #include "bfd.h"
29917 #include "elf-bfd.h"
29918 int
29919 main ()
29920 {
29921 return bfd_get_elf_phdr_upper_bound (NULL);
29922
29923 ;
29924 return 0;
29925 }
29926 _ACEOF
29927 if ac_fn_c_try_link "$LINENO"; then :
29928 gdb_cv_var_elf=yes
29929 else
29930 gdb_cv_var_elf=no
29931
29932 fi
29933 rm -f core conftest.err conftest.$ac_objext \
29934 conftest$ac_exeext conftest.$ac_ext
29935
29936 fi
29937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
29938 $as_echo "$gdb_cv_var_elf" >&6; }
29939 CC=$OLD_CC
29940 CFLAGS=$OLD_CFLAGS
29941 LDFLAGS=$OLD_LDFLAGS
29942 LIBS=$OLD_LIBS
29943 if test "$gdb_cv_var_elf" = yes; then
29944 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
29945 gcore-elf.o elf-none-tdep.o"
29946
29947 $as_echo "#define HAVE_ELF 1" >>confdefs.h
29948
29949 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
29950 if test "$plugins" = "yes"; then
29951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29952 $as_echo_n "checking for library containing dlopen... " >&6; }
29953 if ${ac_cv_search_dlopen+:} false; then :
29954 $as_echo_n "(cached) " >&6
29955 else
29956 ac_func_search_save_LIBS=$LIBS
29957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29958 /* end confdefs.h. */
29959
29960 /* Override any GCC internal prototype to avoid an error.
29961 Use char because int might match the return type of a GCC
29962 builtin and then its argument prototype would still apply. */
29963 #ifdef __cplusplus
29964 extern "C"
29965 #endif
29966 char dlopen ();
29967 int
29968 main ()
29969 {
29970 return dlopen ();
29971 ;
29972 return 0;
29973 }
29974 _ACEOF
29975 for ac_lib in '' dl; do
29976 if test -z "$ac_lib"; then
29977 ac_res="none required"
29978 else
29979 ac_res=-l$ac_lib
29980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29981 fi
29982 if ac_fn_c_try_link "$LINENO"; then :
29983 ac_cv_search_dlopen=$ac_res
29984 fi
29985 rm -f core conftest.err conftest.$ac_objext \
29986 conftest$ac_exeext
29987 if ${ac_cv_search_dlopen+:} false; then :
29988 break
29989 fi
29990 done
29991 if ${ac_cv_search_dlopen+:} false; then :
29992
29993 else
29994 ac_cv_search_dlopen=no
29995 fi
29996 rm conftest.$ac_ext
29997 LIBS=$ac_func_search_save_LIBS
29998 fi
29999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30000 $as_echo "$ac_cv_search_dlopen" >&6; }
30001 ac_res=$ac_cv_search_dlopen
30002 if test "$ac_res" != no; then :
30003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30004
30005 fi
30006
30007 fi
30008 fi
30009
30010 # Add macho support to GDB, but only if BFD includes it.
30011
30012 OLD_CFLAGS=$CFLAGS
30013 OLD_LDFLAGS=$LDFLAGS
30014 OLD_LIBS=$LIBS
30015 OLD_CC=$CC
30016 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
30017 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
30018 # always want our bfd.
30019 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
30020 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
30021 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
30022 LIBS="-lbfd -liberty $intl $LIBS"
30023 CC="./libtool --quiet --mode=link $CC"
30024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
30025 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
30026 if ${gdb_cv_var_macho+:} false; then :
30027 $as_echo_n "(cached) " >&6
30028 else
30029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30030 /* end confdefs.h. */
30031 #include <stdlib.h>
30032 #include <string.h>
30033 #include "bfd.h"
30034 #include "mach-o.h"
30035 int
30036 main ()
30037 {
30038 return bfd_mach_o_lookup_command (NULL, 0, NULL);
30039
30040 ;
30041 return 0;
30042 }
30043 _ACEOF
30044 if ac_fn_c_try_link "$LINENO"; then :
30045 gdb_cv_var_macho=yes
30046 else
30047 gdb_cv_var_macho=no
30048
30049 fi
30050 rm -f core conftest.err conftest.$ac_objext \
30051 conftest$ac_exeext conftest.$ac_ext
30052
30053 fi
30054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
30055 $as_echo "$gdb_cv_var_macho" >&6; }
30056 CC=$OLD_CC
30057 CFLAGS=$OLD_CFLAGS
30058 LDFLAGS=$OLD_LDFLAGS
30059 LIBS=$OLD_LIBS
30060 if test "$gdb_cv_var_macho" = yes; then
30061 CONFIG_OBS="$CONFIG_OBS machoread.o"
30062 fi
30063
30064 # Add any host-specific objects to GDB.
30065 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
30066
30067 # If building on ELF, look for lzma support for embedded compressed debug info.
30068 if test "$gdb_cv_var_elf" = yes; then
30069
30070 # Check whether --with-lzma was given.
30071 if test "${with_lzma+set}" = set; then :
30072 withval=$with_lzma;
30073 else
30074 with_lzma=auto
30075 fi
30076
30077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
30078 $as_echo_n "checking whether to use lzma... " >&6; }
30079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
30080 $as_echo "$with_lzma" >&6; }
30081
30082 if test "${with_lzma}" != no; then
30083
30084
30085
30086
30087
30088
30089
30090
30091 use_additional=yes
30092
30093 acl_save_prefix="$prefix"
30094 prefix="$acl_final_prefix"
30095 acl_save_exec_prefix="$exec_prefix"
30096 exec_prefix="$acl_final_exec_prefix"
30097
30098 eval additional_includedir=\"$includedir\"
30099 eval additional_libdir=\"$libdir\"
30100
30101 exec_prefix="$acl_save_exec_prefix"
30102 prefix="$acl_save_prefix"
30103
30104
30105 # Check whether --with-liblzma-prefix was given.
30106 if test "${with_liblzma_prefix+set}" = set; then :
30107 withval=$with_liblzma_prefix;
30108 if test "X$withval" = "Xno"; then
30109 use_additional=no
30110 else
30111 if test "X$withval" = "X"; then
30112
30113 acl_save_prefix="$prefix"
30114 prefix="$acl_final_prefix"
30115 acl_save_exec_prefix="$exec_prefix"
30116 exec_prefix="$acl_final_exec_prefix"
30117
30118 eval additional_includedir=\"$includedir\"
30119 eval additional_libdir=\"$libdir\"
30120
30121 exec_prefix="$acl_save_exec_prefix"
30122 prefix="$acl_save_prefix"
30123
30124 else
30125 additional_includedir="$withval/include"
30126 additional_libdir="$withval/lib"
30127 fi
30128 fi
30129
30130 fi
30131
30132
30133 # Check whether --with-liblzma-type was given.
30134 if test "${with_liblzma_type+set}" = set; then :
30135 withval=$with_liblzma_type; with_liblzma_type=$withval
30136 else
30137 with_liblzma_type=auto
30138 fi
30139
30140 lib_type=`eval echo \$with_liblzma_type`
30141
30142 LIBLZMA=
30143 LTLIBLZMA=
30144 INCLZMA=
30145 rpathdirs=
30146 ltrpathdirs=
30147 names_already_handled=
30148 names_next_round='lzma '
30149 while test -n "$names_next_round"; do
30150 names_this_round="$names_next_round"
30151 names_next_round=
30152 for name in $names_this_round; do
30153 already_handled=
30154 for n in $names_already_handled; do
30155 if test "$n" = "$name"; then
30156 already_handled=yes
30157 break
30158 fi
30159 done
30160 if test -z "$already_handled"; then
30161 names_already_handled="$names_already_handled $name"
30162 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
30163 eval value=\"\$HAVE_LIB$uppername\"
30164 if test -n "$value"; then
30165 if test "$value" = yes; then
30166 eval value=\"\$LIB$uppername\"
30167 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
30168 eval value=\"\$LTLIB$uppername\"
30169 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
30170 else
30171 :
30172 fi
30173 else
30174 found_dir=
30175 found_la=
30176 found_so=
30177 found_a=
30178 if test $use_additional = yes; then
30179 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
30180 found_dir="$additional_libdir"
30181 found_so="$additional_libdir/lib$name.$shlibext"
30182 if test -f "$additional_libdir/lib$name.la"; then
30183 found_la="$additional_libdir/lib$name.la"
30184 fi
30185 elif test x$lib_type != xshared; then
30186 if test -f "$additional_libdir/lib$name.$libext"; then
30187 found_dir="$additional_libdir"
30188 found_a="$additional_libdir/lib$name.$libext"
30189 if test -f "$additional_libdir/lib$name.la"; then
30190 found_la="$additional_libdir/lib$name.la"
30191 fi
30192 fi
30193 fi
30194 fi
30195 if test "X$found_dir" = "X"; then
30196 for x in $LDFLAGS $LTLIBLZMA; do
30197
30198 acl_save_prefix="$prefix"
30199 prefix="$acl_final_prefix"
30200 acl_save_exec_prefix="$exec_prefix"
30201 exec_prefix="$acl_final_exec_prefix"
30202 eval x=\"$x\"
30203 exec_prefix="$acl_save_exec_prefix"
30204 prefix="$acl_save_prefix"
30205
30206 case "$x" in
30207 -L*)
30208 dir=`echo "X$x" | sed -e 's/^X-L//'`
30209 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
30210 found_dir="$dir"
30211 found_so="$dir/lib$name.$shlibext"
30212 if test -f "$dir/lib$name.la"; then
30213 found_la="$dir/lib$name.la"
30214 fi
30215 elif test x$lib_type != xshared; then
30216 if test -f "$dir/lib$name.$libext"; then
30217 found_dir="$dir"
30218 found_a="$dir/lib$name.$libext"
30219 if test -f "$dir/lib$name.la"; then
30220 found_la="$dir/lib$name.la"
30221 fi
30222 fi
30223 fi
30224 ;;
30225 esac
30226 if test "X$found_dir" != "X"; then
30227 break
30228 fi
30229 done
30230 fi
30231 if test "X$found_dir" != "X"; then
30232 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
30233 if test "X$found_so" != "X"; then
30234 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
30235 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
30236 else
30237 haveit=
30238 for x in $ltrpathdirs; do
30239 if test "X$x" = "X$found_dir"; then
30240 haveit=yes
30241 break
30242 fi
30243 done
30244 if test -z "$haveit"; then
30245 ltrpathdirs="$ltrpathdirs $found_dir"
30246 fi
30247 if test "$hardcode_direct" = yes; then
30248 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
30249 else
30250 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
30251 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
30252 haveit=
30253 for x in $rpathdirs; do
30254 if test "X$x" = "X$found_dir"; then
30255 haveit=yes
30256 break
30257 fi
30258 done
30259 if test -z "$haveit"; then
30260 rpathdirs="$rpathdirs $found_dir"
30261 fi
30262 else
30263 haveit=
30264 for x in $LDFLAGS $LIBLZMA; do
30265
30266 acl_save_prefix="$prefix"
30267 prefix="$acl_final_prefix"
30268 acl_save_exec_prefix="$exec_prefix"
30269 exec_prefix="$acl_final_exec_prefix"
30270 eval x=\"$x\"
30271 exec_prefix="$acl_save_exec_prefix"
30272 prefix="$acl_save_prefix"
30273
30274 if test "X$x" = "X-L$found_dir"; then
30275 haveit=yes
30276 break
30277 fi
30278 done
30279 if test -z "$haveit"; then
30280 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
30281 fi
30282 if test "$hardcode_minus_L" != no; then
30283 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
30284 else
30285 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
30286 fi
30287 fi
30288 fi
30289 fi
30290 else
30291 if test "X$found_a" != "X"; then
30292 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
30293 else
30294 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
30295 fi
30296 fi
30297 additional_includedir=
30298 case "$found_dir" in
30299 */lib | */lib/)
30300 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30301 additional_includedir="$basedir/include"
30302 ;;
30303 esac
30304 if test "X$additional_includedir" != "X"; then
30305 if test "X$additional_includedir" != "X/usr/include"; then
30306 haveit=
30307 if test "X$additional_includedir" = "X/usr/local/include"; then
30308 if test -n "$GCC"; then
30309 case $host_os in
30310 linux*) haveit=yes;;
30311 esac
30312 fi
30313 fi
30314 if test -z "$haveit"; then
30315 for x in $CPPFLAGS $INCLZMA; do
30316
30317 acl_save_prefix="$prefix"
30318 prefix="$acl_final_prefix"
30319 acl_save_exec_prefix="$exec_prefix"
30320 exec_prefix="$acl_final_exec_prefix"
30321 eval x=\"$x\"
30322 exec_prefix="$acl_save_exec_prefix"
30323 prefix="$acl_save_prefix"
30324
30325 if test "X$x" = "X-I$additional_includedir"; then
30326 haveit=yes
30327 break
30328 fi
30329 done
30330 if test -z "$haveit"; then
30331 if test -d "$additional_includedir"; then
30332 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
30333 fi
30334 fi
30335 fi
30336 fi
30337 fi
30338 if test -n "$found_la"; then
30339 save_libdir="$libdir"
30340 case "$found_la" in
30341 */* | *\\*) . "$found_la" ;;
30342 *) . "./$found_la" ;;
30343 esac
30344 libdir="$save_libdir"
30345 for dep in $dependency_libs; do
30346 case "$dep" in
30347 -L*)
30348 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
30349 if test "X$additional_libdir" != "X/usr/lib"; then
30350 haveit=
30351 if test "X$additional_libdir" = "X/usr/local/lib"; then
30352 if test -n "$GCC"; then
30353 case $host_os in
30354 linux*) haveit=yes;;
30355 esac
30356 fi
30357 fi
30358 if test -z "$haveit"; then
30359 haveit=
30360 for x in $LDFLAGS $LIBLZMA; do
30361
30362 acl_save_prefix="$prefix"
30363 prefix="$acl_final_prefix"
30364 acl_save_exec_prefix="$exec_prefix"
30365 exec_prefix="$acl_final_exec_prefix"
30366 eval x=\"$x\"
30367 exec_prefix="$acl_save_exec_prefix"
30368 prefix="$acl_save_prefix"
30369
30370 if test "X$x" = "X-L$additional_libdir"; then
30371 haveit=yes
30372 break
30373 fi
30374 done
30375 if test -z "$haveit"; then
30376 if test -d "$additional_libdir"; then
30377 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
30378 fi
30379 fi
30380 haveit=
30381 for x in $LDFLAGS $LTLIBLZMA; do
30382
30383 acl_save_prefix="$prefix"
30384 prefix="$acl_final_prefix"
30385 acl_save_exec_prefix="$exec_prefix"
30386 exec_prefix="$acl_final_exec_prefix"
30387 eval x=\"$x\"
30388 exec_prefix="$acl_save_exec_prefix"
30389 prefix="$acl_save_prefix"
30390
30391 if test "X$x" = "X-L$additional_libdir"; then
30392 haveit=yes
30393 break
30394 fi
30395 done
30396 if test -z "$haveit"; then
30397 if test -d "$additional_libdir"; then
30398 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
30399 fi
30400 fi
30401 fi
30402 fi
30403 ;;
30404 -R*)
30405 dir=`echo "X$dep" | sed -e 's/^X-R//'`
30406 if test "$enable_rpath" != no; then
30407 haveit=
30408 for x in $rpathdirs; do
30409 if test "X$x" = "X$dir"; then
30410 haveit=yes
30411 break
30412 fi
30413 done
30414 if test -z "$haveit"; then
30415 rpathdirs="$rpathdirs $dir"
30416 fi
30417 haveit=
30418 for x in $ltrpathdirs; do
30419 if test "X$x" = "X$dir"; then
30420 haveit=yes
30421 break
30422 fi
30423 done
30424 if test -z "$haveit"; then
30425 ltrpathdirs="$ltrpathdirs $dir"
30426 fi
30427 fi
30428 ;;
30429 -l*)
30430 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30431 ;;
30432 *.la)
30433 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
30434 ;;
30435 *)
30436 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
30437 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
30438 ;;
30439 esac
30440 done
30441 fi
30442 else
30443 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
30444 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
30445 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
30446 else
30447 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
30448 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
30449 fi
30450 fi
30451 fi
30452 fi
30453 done
30454 done
30455 if test "X$rpathdirs" != "X"; then
30456 if test -n "$hardcode_libdir_separator"; then
30457 alldirs=
30458 for found_dir in $rpathdirs; do
30459 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
30460 done
30461 acl_save_libdir="$libdir"
30462 libdir="$alldirs"
30463 eval flag=\"$hardcode_libdir_flag_spec\"
30464 libdir="$acl_save_libdir"
30465 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
30466 else
30467 for found_dir in $rpathdirs; do
30468 acl_save_libdir="$libdir"
30469 libdir="$found_dir"
30470 eval flag=\"$hardcode_libdir_flag_spec\"
30471 libdir="$acl_save_libdir"
30472 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
30473 done
30474 fi
30475 fi
30476 if test "X$ltrpathdirs" != "X"; then
30477 for found_dir in $ltrpathdirs; do
30478 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
30479 done
30480 fi
30481
30482
30483 ac_save_CPPFLAGS="$CPPFLAGS"
30484
30485 for element in $INCLZMA; do
30486 haveit=
30487 for x in $CPPFLAGS; do
30488
30489 acl_save_prefix="$prefix"
30490 prefix="$acl_final_prefix"
30491 acl_save_exec_prefix="$exec_prefix"
30492 exec_prefix="$acl_final_exec_prefix"
30493 eval x=\"$x\"
30494 exec_prefix="$acl_save_exec_prefix"
30495 prefix="$acl_save_prefix"
30496
30497 if test "X$x" = "X$element"; then
30498 haveit=yes
30499 break
30500 fi
30501 done
30502 if test -z "$haveit"; then
30503 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
30504 fi
30505 done
30506
30507
30508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
30509 $as_echo_n "checking for liblzma... " >&6; }
30510 if ${ac_cv_liblzma+:} false; then :
30511 $as_echo_n "(cached) " >&6
30512 else
30513
30514 ac_save_LIBS="$LIBS"
30515 LIBS="$LIBS $LIBLZMA"
30516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30517 /* end confdefs.h. */
30518 #include "lzma.h"
30519 int
30520 main ()
30521 {
30522 lzma_index_iter iter;
30523 lzma_index_iter_init (&iter, 0);
30524 lzma_mf_is_supported (LZMA_MF_HC3);
30525 ;
30526 return 0;
30527 }
30528 _ACEOF
30529 if ac_fn_c_try_link "$LINENO"; then :
30530 ac_cv_liblzma=yes
30531 else
30532 ac_cv_liblzma=no
30533 fi
30534 rm -f core conftest.err conftest.$ac_objext \
30535 conftest$ac_exeext conftest.$ac_ext
30536 LIBS="$ac_save_LIBS"
30537
30538 fi
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
30540 $as_echo "$ac_cv_liblzma" >&6; }
30541 if test "$ac_cv_liblzma" = yes; then
30542 HAVE_LIBLZMA=yes
30543
30544 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
30545
30546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
30547 $as_echo_n "checking how to link with liblzma... " >&6; }
30548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
30549 $as_echo "$LIBLZMA" >&6; }
30550 else
30551 HAVE_LIBLZMA=no
30552 CPPFLAGS="$ac_save_CPPFLAGS"
30553 LIBLZMA=
30554 LTLIBLZMA=
30555 fi
30556
30557
30558
30559
30560
30561
30562 if test "$HAVE_LIBLZMA" != yes; then
30563 if test "$with_lzma" = yes; then
30564 as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
30565 fi
30566 fi
30567 fi
30568 fi
30569
30570 LIBGUI="../libgui/src/libgui.a"
30571 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
30572
30573
30574
30575 WIN32LDAPP=
30576
30577
30578
30579 case "${host}" in
30580 *-*-cygwin* | *-*-mingw* )
30581 configdir="win"
30582 ;;
30583 *)
30584 configdir="unix"
30585 ;;
30586 esac
30587
30588 GDBTKLIBS=
30589 if test "${enable_gdbtk}" = "yes"; then
30590
30591 # Gdbtk must have an absolute path to srcdir in order to run
30592 # properly when not installed.
30593 here=`pwd`
30594 cd ${srcdir}
30595 GDBTK_SRC_DIR=`pwd`
30596 cd $here
30597
30598
30599 #
30600 # Ok, lets find the tcl configuration
30601 # First, look for one uninstalled.
30602 # the alternative search directory is invoked by --with-tcl
30603 #
30604
30605 if test x"${no_tcl}" = x ; then
30606 # we reset no_tcl in case something fails here
30607 no_tcl=true
30608
30609 # Check whether --with-tcl was given.
30610 if test "${with_tcl+set}" = set; then :
30611 withval=$with_tcl; with_tclconfig=${withval}
30612 fi
30613
30614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
30615 $as_echo_n "checking for Tcl configuration... " >&6; }
30616 if ${ac_cv_c_tclconfig+:} false; then :
30617 $as_echo_n "(cached) " >&6
30618 else
30619
30620
30621 # First check to see if --with-tcl was specified.
30622 case "${host}" in
30623 *-*-cygwin*) platDir="win" ;;
30624 *) platDir="unix" ;;
30625 esac
30626 if test x"${with_tclconfig}" != x ; then
30627 if test -f "${with_tclconfig}/tclConfig.sh" ; then
30628 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
30629 else
30630 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
30631 fi
30632 fi
30633
30634 # then check for a private Tcl installation
30635 if test x"${ac_cv_c_tclconfig}" = x ; then
30636 for i in \
30637 ../tcl \
30638 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
30639 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
30640 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
30641 ../../tcl \
30642 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
30643 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
30644 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
30645 ../../../tcl \
30646 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
30647 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
30648 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
30649 if test -f "$i/$platDir/tclConfig.sh" ; then
30650 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
30651 break
30652 fi
30653 done
30654 fi
30655
30656 # on Darwin, check in Framework installation locations
30657 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
30658 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
30659 `ls -d /Library/Frameworks 2>/dev/null` \
30660 `ls -d /Network/Library/Frameworks 2>/dev/null` \
30661 `ls -d /System/Library/Frameworks 2>/dev/null` \
30662 ; do
30663 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
30664 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
30665 break
30666 fi
30667 done
30668 fi
30669
30670 # check in a few common install locations
30671 if test x"${ac_cv_c_tclconfig}" = x ; then
30672 for i in `ls -d ${libdir} 2>/dev/null` \
30673 `ls -d ${exec_prefix}/lib 2>/dev/null` \
30674 `ls -d ${prefix}/lib 2>/dev/null` \
30675 `ls -d /usr/local/lib 2>/dev/null` \
30676 `ls -d /usr/contrib/lib 2>/dev/null` \
30677 `ls -d /usr/lib 2>/dev/null` \
30678 ; do
30679 if test -f "$i/tclConfig.sh" ; then
30680 ac_cv_c_tclconfig=`(cd $i; pwd)`
30681 break
30682 fi
30683 done
30684 fi
30685
30686 # check in a few other private locations
30687 if test x"${ac_cv_c_tclconfig}" = x ; then
30688 for i in \
30689 ${srcdir}/../tcl \
30690 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
30691 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
30692 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
30693 if test -f "$i/$platDir/tclConfig.sh" ; then
30694 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
30695 break
30696 fi
30697 done
30698 fi
30699
30700 fi
30701
30702
30703 if test x"${ac_cv_c_tclconfig}" = x ; then
30704 TCL_BIN_DIR="# no Tcl configs found"
30705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
30706 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
30707 else
30708 no_tcl=
30709 TCL_BIN_DIR=${ac_cv_c_tclconfig}
30710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
30711 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
30712 fi
30713 fi
30714
30715
30716 # If $no_tk is nonempty, then we can't do Tk, and there is no
30717 # point to doing Tcl.
30718
30719 #
30720 # Ok, lets find the tk configuration
30721 # First, look for one uninstalled.
30722 # the alternative search directory is invoked by --with-tk
30723 #
30724
30725 if test x"${no_tk}" = x ; then
30726 # we reset no_tk in case something fails here
30727 no_tk=true
30728
30729 # Check whether --with-tk was given.
30730 if test "${with_tk+set}" = set; then :
30731 withval=$with_tk; with_tkconfig=${withval}
30732 fi
30733
30734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
30735 $as_echo_n "checking for Tk configuration... " >&6; }
30736 if ${ac_cv_c_tkconfig+:} false; then :
30737 $as_echo_n "(cached) " >&6
30738 else
30739
30740
30741 # First check to see if --with-tkconfig was specified.
30742 if test x"${with_tkconfig}" != x ; then
30743 if test -f "${with_tkconfig}/tkConfig.sh" ; then
30744 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
30745 else
30746 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
30747 fi
30748 fi
30749
30750 # then check for a private Tk library
30751 case "${host}" in
30752 *-*-cygwin*) platDir="win" ;;
30753 *) platDir="unix" ;;
30754 esac
30755 if test x"${ac_cv_c_tkconfig}" = x ; then
30756 for i in \
30757 ../tk \
30758 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
30759 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
30760 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
30761 ../../tk \
30762 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
30763 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
30764 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
30765 ../../../tk \
30766 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
30767 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
30768 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
30769 if test -f "$i/$platDir/tkConfig.sh" ; then
30770 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
30771 break
30772 fi
30773 done
30774 fi
30775
30776 # on Darwin, check in Framework installation locations
30777 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
30778 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
30779 `ls -d /Library/Frameworks 2>/dev/null` \
30780 `ls -d /Network/Library/Frameworks 2>/dev/null` \
30781 `ls -d /System/Library/Frameworks 2>/dev/null` \
30782 ; do
30783 if test -f "$i/Tk.framework/tkConfig.sh" ; then
30784 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
30785 break
30786 fi
30787 done
30788 fi
30789
30790 # check in a few common install locations
30791 if test x"${ac_cv_c_tkconfig}" = x ; then
30792 for i in `ls -d ${libdir} 2>/dev/null` \
30793 `ls -d ${exec_prefix}/lib 2>/dev/null` \
30794 `ls -d ${prefix}/lib 2>/dev/null` \
30795 `ls -d /usr/local/lib 2>/dev/null` \
30796 `ls -d /usr/contrib/lib 2>/dev/null` \
30797 `ls -d /usr/lib 2>/dev/null` \
30798 ; do
30799 if test -f "$i/tkConfig.sh" ; then
30800 ac_cv_c_tkconfig=`(cd $i; pwd)`
30801 break
30802 fi
30803 done
30804 fi
30805 # check in a few other private locations
30806 if test x"${ac_cv_c_tkconfig}" = x ; then
30807 for i in \
30808 ${srcdir}/../tk \
30809 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
30810 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
30811 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
30812 if test -f "$i/$platDir/tkConfig.sh" ; then
30813 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
30814 break
30815 fi
30816 done
30817 fi
30818
30819 fi
30820
30821
30822 if test x"${ac_cv_c_tkconfig}" = x ; then
30823 TK_BIN_DIR="# no Tk configs found"
30824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
30825 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
30826 else
30827 no_tk=
30828 TK_BIN_DIR=${ac_cv_c_tkconfig}
30829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
30830 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
30831 fi
30832 fi
30833
30834
30835 if test -z "${no_tcl}" -a -z "${no_tk}"; then
30836
30837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
30838 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
30839
30840 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
30842 $as_echo "loading" >&6; }
30843 . ${TCL_BIN_DIR}/tclConfig.sh
30844 else
30845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
30846 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
30847 fi
30848
30849 # eval is required to do the TCL_DBGX substitution
30850 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
30851 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
30852
30853 # If the TCL_BIN_DIR is the build directory (not the install directory),
30854 # then set the common variable name to the value of the build variables.
30855 # For example, the variable TCL_LIB_SPEC will be set to the value
30856 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
30857 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
30858 # installed and uninstalled version of Tcl.
30859 if test -f "${TCL_BIN_DIR}/Makefile" ; then
30860 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
30861 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
30862 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
30863 elif test "`uname -s`" = "Darwin"; then
30864 # If Tcl was built as a framework, attempt to use the libraries
30865 # from the framework at the given location so that linking works
30866 # against Tcl.framework installed in an arbitrary location.
30867 case ${TCL_DEFS} in
30868 *TCL_FRAMEWORK*)
30869 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
30870 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
30871 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
30872 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
30873 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
30874 break
30875 fi
30876 done
30877 fi
30878 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
30879 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
30880 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
30881 fi
30882 ;;
30883 esac
30884 fi
30885
30886 # eval is required to do the TCL_DBGX substitution
30887 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
30888 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
30889 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
30890 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
30891
30892
30893
30894
30895
30896
30897
30898
30899
30900
30901
30902
30903
30904
30905
30906 # Check for in-tree tcl
30907 here=`pwd`
30908 cd ${srcdir}/..
30909 topdir=`pwd`
30910 cd ${here}
30911
30912 intree="no"
30913 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
30914 intree="yes"
30915 fi
30916
30917 # Find Tcl private headers
30918 if test x"${intree}" = xno; then
30919
30920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
30921 $as_echo_n "checking for Tcl private headers... " >&6; }
30922 private_dir=""
30923 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
30924 if test -f ${dir}/tclInt.h ; then
30925 private_dir=${dir}
30926 fi
30927
30928 if test x"${private_dir}" = x; then
30929 as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
30930 else
30931 TCL_PRIVATE_INCLUDE="-I${private_dir}"
30932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
30933 $as_echo "${private_dir}" >&6; }
30934 fi
30935
30936 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
30937 TCL_LIBRARY="${TCL_LIB_SPEC}"
30938 TCL_DEPS=""
30939 else
30940 # If building tcl in the same src tree, private headers
30941 # are not needed, but we need to be sure to use the right
30942 # headers library
30943 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
30944 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
30945 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
30946 fi
30947
30948
30949
30950
30951
30952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
30953 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
30954
30955 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
30956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
30957 $as_echo "loading" >&6; }
30958 . ${TK_BIN_DIR}/tkConfig.sh
30959 else
30960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
30961 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
30962 fi
30963
30964 # eval is required to do the TK_DBGX substitution
30965 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
30966 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
30967
30968 # If the TK_BIN_DIR is the build directory (not the install directory),
30969 # then set the common variable name to the value of the build variables.
30970 # For example, the variable TK_LIB_SPEC will be set to the value
30971 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
30972 # instead of TK_BUILD_LIB_SPEC since it will work with both an
30973 # installed and uninstalled version of Tcl.
30974 if test -f "${TK_BIN_DIR}/Makefile" ; then
30975 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
30976 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
30977 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
30978 elif test "`uname -s`" = "Darwin"; then
30979 # If Tk was built as a framework, attempt to use the libraries
30980 # from the framework at the given location so that linking works
30981 # against Tk.framework installed in an arbitrary location.
30982 case ${TK_DEFS} in
30983 *TK_FRAMEWORK*)
30984 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
30985 for i in "`cd ${TK_BIN_DIR}; pwd`" \
30986 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
30987 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
30988 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
30989 break
30990 fi
30991 done
30992 fi
30993 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
30994 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
30995 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
30996 fi
30997 ;;
30998 esac
30999 fi
31000
31001 # eval is required to do the TK_DBGX substitution
31002 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
31003 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
31004 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
31005 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
31006
31007
31008
31009
31010
31011
31012
31013
31014
31015
31016
31017
31018
31019
31020 # Check for in-tree Tk
31021 intree="no"
31022 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
31023 intree="yes"
31024 fi
31025
31026 # Find Tk private headers
31027 if test x"${intree}" = xno; then
31028
31029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
31030 $as_echo_n "checking for Tk private headers... " >&6; }
31031 private_dir=""
31032 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
31033 if test -f ${dir}/tkInt.h; then
31034 private_dir=${dir}
31035 fi
31036
31037 if test x"${private_dir}" = x; then
31038 as_fn_error $? "could not find Tk private headers" "$LINENO" 5
31039 else
31040 TK_PRIVATE_INCLUDE="-I${private_dir}"
31041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
31042 $as_echo "${private_dir}" >&6; }
31043 fi
31044
31045 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
31046 TK_LIBRARY=${TK_LIB_SPEC}
31047 TK_DEPS=""
31048 else
31049 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
31050 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
31051 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
31052 fi
31053
31054
31055
31056
31057
31058 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
31059
31060 # Include some libraries that Tcl and Tk want.
31061 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
31062 # Yes, the ordering seems wrong here. But it isn't.
31063 # TK_LIBS is the list of libraries that need to be linked
31064 # after Tcl/Tk. Note that this isn't put into LIBS. If it
31065 # were in LIBS then any link tests after this point would
31066 # try to include things like `$(LIBGUI)', which wouldn't work.
31067 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
31068
31069 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
31070 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
31071 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
31072 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
31073 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
31074 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
31075 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
31076
31077 if test x"$gdb_cv_os_cygwin" = xyes; then
31078 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
31079 WIN32LDAPP="-Wl,--subsystem,console"
31080 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
31081 fi
31082
31083 subdirs="$subdirs gdbtk"
31084
31085 fi
31086 fi
31087
31088
31089
31090
31091
31092
31093
31094
31095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
31096 $as_echo_n "checking for X... " >&6; }
31097
31098
31099 # Check whether --with-x was given.
31100 if test "${with_x+set}" = set; then :
31101 withval=$with_x;
31102 fi
31103
31104 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
31105 if test "x$with_x" = xno; then
31106 # The user explicitly disabled X.
31107 have_x=disabled
31108 else
31109 case $x_includes,$x_libraries in #(
31110 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
31111 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
31112 $as_echo_n "(cached) " >&6
31113 else
31114 # One or both of the vars are not set, and there is no cached value.
31115 ac_x_includes=no ac_x_libraries=no
31116 rm -f -r conftest.dir
31117 if mkdir conftest.dir; then
31118 cd conftest.dir
31119 cat >Imakefile <<'_ACEOF'
31120 incroot:
31121 @echo incroot='${INCROOT}'
31122 usrlibdir:
31123 @echo usrlibdir='${USRLIBDIR}'
31124 libdir:
31125 @echo libdir='${LIBDIR}'
31126 _ACEOF
31127 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
31128 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
31129 for ac_var in incroot usrlibdir libdir; do
31130 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
31131 done
31132 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
31133 for ac_extension in a so sl dylib la dll; do
31134 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
31135 test -f "$ac_im_libdir/libX11.$ac_extension"; then
31136 ac_im_usrlibdir=$ac_im_libdir; break
31137 fi
31138 done
31139 # Screen out bogus values from the imake configuration. They are
31140 # bogus both because they are the default anyway, and because
31141 # using them would break gcc on systems where it needs fixed includes.
31142 case $ac_im_incroot in
31143 /usr/include) ac_x_includes= ;;
31144 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
31145 esac
31146 case $ac_im_usrlibdir in
31147 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
31148 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
31149 esac
31150 fi
31151 cd ..
31152 rm -f -r conftest.dir
31153 fi
31154
31155 # Standard set of common directories for X headers.
31156 # Check X11 before X11Rn because it is often a symlink to the current release.
31157 ac_x_header_dirs='
31158 /usr/X11/include
31159 /usr/X11R7/include
31160 /usr/X11R6/include
31161 /usr/X11R5/include
31162 /usr/X11R4/include
31163
31164 /usr/include/X11
31165 /usr/include/X11R7
31166 /usr/include/X11R6
31167 /usr/include/X11R5
31168 /usr/include/X11R4
31169
31170 /usr/local/X11/include
31171 /usr/local/X11R7/include
31172 /usr/local/X11R6/include
31173 /usr/local/X11R5/include
31174 /usr/local/X11R4/include
31175
31176 /usr/local/include/X11
31177 /usr/local/include/X11R7
31178 /usr/local/include/X11R6
31179 /usr/local/include/X11R5
31180 /usr/local/include/X11R4
31181
31182 /usr/X386/include
31183 /usr/x386/include
31184 /usr/XFree86/include/X11
31185
31186 /usr/include
31187 /usr/local/include
31188 /usr/unsupported/include
31189 /usr/athena/include
31190 /usr/local/x11r5/include
31191 /usr/lpp/Xamples/include
31192
31193 /usr/openwin/include
31194 /usr/openwin/share/include'
31195
31196 if test "$ac_x_includes" = no; then
31197 # Guess where to find include files, by looking for Xlib.h.
31198 # First, try using that file with no special directory specified.
31199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31200 /* end confdefs.h. */
31201 #include <X11/Xlib.h>
31202 _ACEOF
31203 if ac_fn_c_try_cpp "$LINENO"; then :
31204 # We can compile using X headers with no special include directory.
31205 ac_x_includes=
31206 else
31207 for ac_dir in $ac_x_header_dirs; do
31208 if test -r "$ac_dir/X11/Xlib.h"; then
31209 ac_x_includes=$ac_dir
31210 break
31211 fi
31212 done
31213 fi
31214 rm -f conftest.err conftest.i conftest.$ac_ext
31215 fi # $ac_x_includes = no
31216
31217 if test "$ac_x_libraries" = no; then
31218 # Check for the libraries.
31219 # See if we find them without any special options.
31220 # Don't add to $LIBS permanently.
31221 ac_save_LIBS=$LIBS
31222 LIBS="-lX11 $LIBS"
31223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31224 /* end confdefs.h. */
31225 #include <X11/Xlib.h>
31226 int
31227 main ()
31228 {
31229 XrmInitialize ()
31230 ;
31231 return 0;
31232 }
31233 _ACEOF
31234 if ac_fn_c_try_link "$LINENO"; then :
31235 LIBS=$ac_save_LIBS
31236 # We can link X programs with no special library path.
31237 ac_x_libraries=
31238 else
31239 LIBS=$ac_save_LIBS
31240 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
31241 do
31242 # Don't even attempt the hair of trying to link an X program!
31243 for ac_extension in a so sl dylib la dll; do
31244 if test -r "$ac_dir/libX11.$ac_extension"; then
31245 ac_x_libraries=$ac_dir
31246 break 2
31247 fi
31248 done
31249 done
31250 fi
31251 rm -f core conftest.err conftest.$ac_objext \
31252 conftest$ac_exeext conftest.$ac_ext
31253 fi # $ac_x_libraries = no
31254
31255 case $ac_x_includes,$ac_x_libraries in #(
31256 no,* | *,no | *\'*)
31257 # Didn't find X, or a directory has "'" in its name.
31258 ac_cv_have_x="have_x=no";; #(
31259 *)
31260 # Record where we found X for the cache.
31261 ac_cv_have_x="have_x=yes\
31262 ac_x_includes='$ac_x_includes'\
31263 ac_x_libraries='$ac_x_libraries'"
31264 esac
31265 fi
31266 ;; #(
31267 *) have_x=yes;;
31268 esac
31269 eval "$ac_cv_have_x"
31270 fi # $with_x != no
31271
31272 if test "$have_x" != yes; then
31273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
31274 $as_echo "$have_x" >&6; }
31275 no_x=yes
31276 else
31277 # If each of the values was on the command line, it overrides each guess.
31278 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
31279 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
31280 # Update the cache value to reflect the command line values.
31281 ac_cv_have_x="have_x=yes\
31282 ac_x_includes='$x_includes'\
31283 ac_x_libraries='$x_libraries'"
31284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
31285 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
31286 fi
31287
31288
31289 # Unlike the sim directory, whether a simulator is linked is controlled by
31290 # presence of a gdb_sim definition in the target configure.tgt entry.
31291 # This code just checks for a few cases where we'd like to ignore those
31292 # definitions, even when they're present in the '.mt' file. These cases
31293 # are when --disable-sim is specified, or if the simulator directory is
31294 # not part of the source tree.
31295 #
31296 # Check whether --enable-sim was given.
31297 if test "${enable_sim+set}" = set; then :
31298 enableval=$enable_sim; echo "enable_sim = $enable_sim";
31299 echo "enableval = ${enableval}";
31300 case "${enableval}" in
31301 yes) ignore_sim=false ;;
31302 no) ignore_sim=true ;;
31303 *) ignore_sim=false ;;
31304 esac
31305 else
31306 ignore_sim=false
31307 fi
31308
31309
31310 if test ! -d "${srcdir}/../sim"; then
31311 ignore_sim=true
31312 fi
31313
31314 SIM=
31315 SIM_OBS=
31316 if test "${ignore_sim}" = "false"; then
31317 if test x"${gdb_sim}" != x ; then
31318 SIM="${gdb_sim}"
31319 SIM_OBS="remote-sim.o"
31320
31321 # Some tdep code should only be compiled in when the ppc sim is
31322 # built. PR sim/13418.
31323 case $target in
31324 powerpc*-*-*)
31325
31326 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
31327
31328 ;;
31329 esac
31330 fi
31331 fi
31332
31333
31334
31335
31336
31337
31338
31339
31340
31341
31342
31343
31344
31345
31346 # List of host floatformats.
31347
31348 cat >>confdefs.h <<_ACEOF
31349 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
31350 _ACEOF
31351
31352
31353 cat >>confdefs.h <<_ACEOF
31354 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
31355 _ACEOF
31356
31357
31358 cat >>confdefs.h <<_ACEOF
31359 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
31360 _ACEOF
31361
31362
31363 # target_subdir is used by the testsuite to find the target libraries.
31364 target_subdir=
31365 if test "${host}" != "${target}"; then
31366 target_subdir="${target_alias}/"
31367 fi
31368
31369
31370 # Import nat definitions.
31371 nat_makefile_frag=/dev/null
31372 if test "${gdb_native}" = "yes"; then
31373 . ${srcdir}/configure.nat
31374 nativefile=$NAT_FILE
31375 fi
31376
31377
31378
31379
31380
31381
31382
31383
31384
31385
31386
31387 if test x"${gdb_osabi}" != x ; then
31388
31389 cat >>confdefs.h <<_ACEOF
31390 #define GDB_OSABI_DEFAULT $gdb_osabi
31391 _ACEOF
31392
31393 fi
31394
31395 # Setup possible use of libbacktrace.
31396 # Check whether --enable-libbacktrace was given.
31397 if test "${enable_libbacktrace+set}" = set; then :
31398 enableval=$enable_libbacktrace;
31399 case $enableval in
31400 yes | no)
31401 ;;
31402 *)
31403 as_fn_error $? "bad value $enableval for --enable-libbacktrace" "$LINENO" 5
31404 ;;
31405 esac
31406
31407 else
31408 enable_libbacktrace=yes
31409 fi
31410
31411
31412 if test "${enable_libbacktrace}" = "yes"; then
31413 LIBBACKTRACE_INC="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
31414 LIBBACKTRACE_LIB=../libbacktrace/libbacktrace.la
31415
31416 $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
31417
31418 else
31419 LIBBACKTRACE_INC=
31420 LIBBACKTRACE_LIB=
31421 fi
31422
31423
31424
31425
31426 # Check for babeltrace and babeltrace-ctf
31427
31428 # Check whether --with-babeltrace was given.
31429 if test "${with_babeltrace+set}" = set; then :
31430 withval=$with_babeltrace;
31431 else
31432 with_babeltrace=auto
31433 fi
31434
31435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
31436 $as_echo_n "checking whether to use babeltrace... " >&6; }
31437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
31438 $as_echo "$with_babeltrace" >&6; }
31439
31440 if test "x$with_babeltrace" = "xno"; then
31441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
31442 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
31443 else
31444 # Append -Werror to CFLAGS so that configure can catch the warning
31445 # "assignment from incompatible pointer type", which is related to
31446 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
31447 # in GDB, while babeltrace 1.0.3 is broken.
31448 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
31449 # safe to save and restore CFLAGS here.
31450 saved_CFLAGS=$CFLAGS
31451 CFLAGS="$CFLAGS -Werror"
31452
31453
31454
31455
31456
31457
31458
31459
31460 use_additional=yes
31461
31462 acl_save_prefix="$prefix"
31463 prefix="$acl_final_prefix"
31464 acl_save_exec_prefix="$exec_prefix"
31465 exec_prefix="$acl_final_exec_prefix"
31466
31467 eval additional_includedir=\"$includedir\"
31468 eval additional_libdir=\"$libdir\"
31469
31470 exec_prefix="$acl_save_exec_prefix"
31471 prefix="$acl_save_prefix"
31472
31473
31474 # Check whether --with-libbabeltrace-prefix was given.
31475 if test "${with_libbabeltrace_prefix+set}" = set; then :
31476 withval=$with_libbabeltrace_prefix;
31477 if test "X$withval" = "Xno"; then
31478 use_additional=no
31479 else
31480 if test "X$withval" = "X"; then
31481
31482 acl_save_prefix="$prefix"
31483 prefix="$acl_final_prefix"
31484 acl_save_exec_prefix="$exec_prefix"
31485 exec_prefix="$acl_final_exec_prefix"
31486
31487 eval additional_includedir=\"$includedir\"
31488 eval additional_libdir=\"$libdir\"
31489
31490 exec_prefix="$acl_save_exec_prefix"
31491 prefix="$acl_save_prefix"
31492
31493 else
31494 additional_includedir="$withval/include"
31495 additional_libdir="$withval/lib"
31496 fi
31497 fi
31498
31499 fi
31500
31501
31502 # Check whether --with-libbabeltrace-type was given.
31503 if test "${with_libbabeltrace_type+set}" = set; then :
31504 withval=$with_libbabeltrace_type; with_libbabeltrace_type=$withval
31505 else
31506 with_libbabeltrace_type=auto
31507 fi
31508
31509 lib_type=`eval echo \$with_libbabeltrace_type`
31510
31511 LIBBABELTRACE=
31512 LTLIBBABELTRACE=
31513 INCBABELTRACE=
31514 rpathdirs=
31515 ltrpathdirs=
31516 names_already_handled=
31517 names_next_round='babeltrace babeltrace-ctf'
31518 while test -n "$names_next_round"; do
31519 names_this_round="$names_next_round"
31520 names_next_round=
31521 for name in $names_this_round; do
31522 already_handled=
31523 for n in $names_already_handled; do
31524 if test "$n" = "$name"; then
31525 already_handled=yes
31526 break
31527 fi
31528 done
31529 if test -z "$already_handled"; then
31530 names_already_handled="$names_already_handled $name"
31531 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
31532 eval value=\"\$HAVE_LIB$uppername\"
31533 if test -n "$value"; then
31534 if test "$value" = yes; then
31535 eval value=\"\$LIB$uppername\"
31536 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
31537 eval value=\"\$LTLIB$uppername\"
31538 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
31539 else
31540 :
31541 fi
31542 else
31543 found_dir=
31544 found_la=
31545 found_so=
31546 found_a=
31547 if test $use_additional = yes; then
31548 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
31549 found_dir="$additional_libdir"
31550 found_so="$additional_libdir/lib$name.$shlibext"
31551 if test -f "$additional_libdir/lib$name.la"; then
31552 found_la="$additional_libdir/lib$name.la"
31553 fi
31554 elif test x$lib_type != xshared; then
31555 if test -f "$additional_libdir/lib$name.$libext"; then
31556 found_dir="$additional_libdir"
31557 found_a="$additional_libdir/lib$name.$libext"
31558 if test -f "$additional_libdir/lib$name.la"; then
31559 found_la="$additional_libdir/lib$name.la"
31560 fi
31561 fi
31562 fi
31563 fi
31564 if test "X$found_dir" = "X"; then
31565 for x in $LDFLAGS $LTLIBBABELTRACE; do
31566
31567 acl_save_prefix="$prefix"
31568 prefix="$acl_final_prefix"
31569 acl_save_exec_prefix="$exec_prefix"
31570 exec_prefix="$acl_final_exec_prefix"
31571 eval x=\"$x\"
31572 exec_prefix="$acl_save_exec_prefix"
31573 prefix="$acl_save_prefix"
31574
31575 case "$x" in
31576 -L*)
31577 dir=`echo "X$x" | sed -e 's/^X-L//'`
31578 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
31579 found_dir="$dir"
31580 found_so="$dir/lib$name.$shlibext"
31581 if test -f "$dir/lib$name.la"; then
31582 found_la="$dir/lib$name.la"
31583 fi
31584 elif test x$lib_type != xshared; then
31585 if test -f "$dir/lib$name.$libext"; then
31586 found_dir="$dir"
31587 found_a="$dir/lib$name.$libext"
31588 if test -f "$dir/lib$name.la"; then
31589 found_la="$dir/lib$name.la"
31590 fi
31591 fi
31592 fi
31593 ;;
31594 esac
31595 if test "X$found_dir" != "X"; then
31596 break
31597 fi
31598 done
31599 fi
31600 if test "X$found_dir" != "X"; then
31601 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
31602 if test "X$found_so" != "X"; then
31603 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
31604 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
31605 else
31606 haveit=
31607 for x in $ltrpathdirs; do
31608 if test "X$x" = "X$found_dir"; then
31609 haveit=yes
31610 break
31611 fi
31612 done
31613 if test -z "$haveit"; then
31614 ltrpathdirs="$ltrpathdirs $found_dir"
31615 fi
31616 if test "$hardcode_direct" = yes; then
31617 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
31618 else
31619 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
31620 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
31621 haveit=
31622 for x in $rpathdirs; do
31623 if test "X$x" = "X$found_dir"; then
31624 haveit=yes
31625 break
31626 fi
31627 done
31628 if test -z "$haveit"; then
31629 rpathdirs="$rpathdirs $found_dir"
31630 fi
31631 else
31632 haveit=
31633 for x in $LDFLAGS $LIBBABELTRACE; do
31634
31635 acl_save_prefix="$prefix"
31636 prefix="$acl_final_prefix"
31637 acl_save_exec_prefix="$exec_prefix"
31638 exec_prefix="$acl_final_exec_prefix"
31639 eval x=\"$x\"
31640 exec_prefix="$acl_save_exec_prefix"
31641 prefix="$acl_save_prefix"
31642
31643 if test "X$x" = "X-L$found_dir"; then
31644 haveit=yes
31645 break
31646 fi
31647 done
31648 if test -z "$haveit"; then
31649 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
31650 fi
31651 if test "$hardcode_minus_L" != no; then
31652 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
31653 else
31654 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
31655 fi
31656 fi
31657 fi
31658 fi
31659 else
31660 if test "X$found_a" != "X"; then
31661 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
31662 else
31663 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
31664 fi
31665 fi
31666 additional_includedir=
31667 case "$found_dir" in
31668 */lib | */lib/)
31669 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
31670 additional_includedir="$basedir/include"
31671 ;;
31672 esac
31673 if test "X$additional_includedir" != "X"; then
31674 if test "X$additional_includedir" != "X/usr/include"; then
31675 haveit=
31676 if test "X$additional_includedir" = "X/usr/local/include"; then
31677 if test -n "$GCC"; then
31678 case $host_os in
31679 linux*) haveit=yes;;
31680 esac
31681 fi
31682 fi
31683 if test -z "$haveit"; then
31684 for x in $CPPFLAGS $INCBABELTRACE; do
31685
31686 acl_save_prefix="$prefix"
31687 prefix="$acl_final_prefix"
31688 acl_save_exec_prefix="$exec_prefix"
31689 exec_prefix="$acl_final_exec_prefix"
31690 eval x=\"$x\"
31691 exec_prefix="$acl_save_exec_prefix"
31692 prefix="$acl_save_prefix"
31693
31694 if test "X$x" = "X-I$additional_includedir"; then
31695 haveit=yes
31696 break
31697 fi
31698 done
31699 if test -z "$haveit"; then
31700 if test -d "$additional_includedir"; then
31701 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
31702 fi
31703 fi
31704 fi
31705 fi
31706 fi
31707 if test -n "$found_la"; then
31708 save_libdir="$libdir"
31709 case "$found_la" in
31710 */* | *\\*) . "$found_la" ;;
31711 *) . "./$found_la" ;;
31712 esac
31713 libdir="$save_libdir"
31714 for dep in $dependency_libs; do
31715 case "$dep" in
31716 -L*)
31717 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
31718 if test "X$additional_libdir" != "X/usr/lib"; then
31719 haveit=
31720 if test "X$additional_libdir" = "X/usr/local/lib"; then
31721 if test -n "$GCC"; then
31722 case $host_os in
31723 linux*) haveit=yes;;
31724 esac
31725 fi
31726 fi
31727 if test -z "$haveit"; then
31728 haveit=
31729 for x in $LDFLAGS $LIBBABELTRACE; do
31730
31731 acl_save_prefix="$prefix"
31732 prefix="$acl_final_prefix"
31733 acl_save_exec_prefix="$exec_prefix"
31734 exec_prefix="$acl_final_exec_prefix"
31735 eval x=\"$x\"
31736 exec_prefix="$acl_save_exec_prefix"
31737 prefix="$acl_save_prefix"
31738
31739 if test "X$x" = "X-L$additional_libdir"; then
31740 haveit=yes
31741 break
31742 fi
31743 done
31744 if test -z "$haveit"; then
31745 if test -d "$additional_libdir"; then
31746 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
31747 fi
31748 fi
31749 haveit=
31750 for x in $LDFLAGS $LTLIBBABELTRACE; do
31751
31752 acl_save_prefix="$prefix"
31753 prefix="$acl_final_prefix"
31754 acl_save_exec_prefix="$exec_prefix"
31755 exec_prefix="$acl_final_exec_prefix"
31756 eval x=\"$x\"
31757 exec_prefix="$acl_save_exec_prefix"
31758 prefix="$acl_save_prefix"
31759
31760 if test "X$x" = "X-L$additional_libdir"; then
31761 haveit=yes
31762 break
31763 fi
31764 done
31765 if test -z "$haveit"; then
31766 if test -d "$additional_libdir"; then
31767 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
31768 fi
31769 fi
31770 fi
31771 fi
31772 ;;
31773 -R*)
31774 dir=`echo "X$dep" | sed -e 's/^X-R//'`
31775 if test "$enable_rpath" != no; then
31776 haveit=
31777 for x in $rpathdirs; do
31778 if test "X$x" = "X$dir"; then
31779 haveit=yes
31780 break
31781 fi
31782 done
31783 if test -z "$haveit"; then
31784 rpathdirs="$rpathdirs $dir"
31785 fi
31786 haveit=
31787 for x in $ltrpathdirs; do
31788 if test "X$x" = "X$dir"; then
31789 haveit=yes
31790 break
31791 fi
31792 done
31793 if test -z "$haveit"; then
31794 ltrpathdirs="$ltrpathdirs $dir"
31795 fi
31796 fi
31797 ;;
31798 -l*)
31799 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
31800 ;;
31801 *.la)
31802 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
31803 ;;
31804 *)
31805 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
31806 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
31807 ;;
31808 esac
31809 done
31810 fi
31811 else
31812 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
31813 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
31814 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
31815 else
31816 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
31817 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
31818 fi
31819 fi
31820 fi
31821 fi
31822 done
31823 done
31824 if test "X$rpathdirs" != "X"; then
31825 if test -n "$hardcode_libdir_separator"; then
31826 alldirs=
31827 for found_dir in $rpathdirs; do
31828 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
31829 done
31830 acl_save_libdir="$libdir"
31831 libdir="$alldirs"
31832 eval flag=\"$hardcode_libdir_flag_spec\"
31833 libdir="$acl_save_libdir"
31834 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
31835 else
31836 for found_dir in $rpathdirs; do
31837 acl_save_libdir="$libdir"
31838 libdir="$found_dir"
31839 eval flag=\"$hardcode_libdir_flag_spec\"
31840 libdir="$acl_save_libdir"
31841 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
31842 done
31843 fi
31844 fi
31845 if test "X$ltrpathdirs" != "X"; then
31846 for found_dir in $ltrpathdirs; do
31847 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
31848 done
31849 fi
31850
31851
31852 ac_save_CPPFLAGS="$CPPFLAGS"
31853
31854 for element in $INCBABELTRACE; do
31855 haveit=
31856 for x in $CPPFLAGS; do
31857
31858 acl_save_prefix="$prefix"
31859 prefix="$acl_final_prefix"
31860 acl_save_exec_prefix="$exec_prefix"
31861 exec_prefix="$acl_final_exec_prefix"
31862 eval x=\"$x\"
31863 exec_prefix="$acl_save_exec_prefix"
31864 prefix="$acl_save_prefix"
31865
31866 if test "X$x" = "X$element"; then
31867 haveit=yes
31868 break
31869 fi
31870 done
31871 if test -z "$haveit"; then
31872 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
31873 fi
31874 done
31875
31876
31877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
31878 $as_echo_n "checking for libbabeltrace... " >&6; }
31879 if ${ac_cv_libbabeltrace+:} false; then :
31880 $as_echo_n "(cached) " >&6
31881 else
31882
31883 ac_save_LIBS="$LIBS"
31884 LIBS="$LIBS $LIBBABELTRACE"
31885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31886 /* end confdefs.h. */
31887 #include <babeltrace/babeltrace.h>
31888 #include <babeltrace/ctf/events.h>
31889 #include <babeltrace/ctf/iterator.h>
31890 int
31891 main ()
31892 {
31893 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
31894 struct bt_ctf_event *event = NULL;
31895 const struct bt_definition *scope;
31896
31897 pos->type = BT_SEEK_BEGIN;
31898 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
31899 scope = bt_ctf_get_top_level_scope (event,
31900 BT_STREAM_EVENT_HEADER);
31901 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
31902
31903 ;
31904 return 0;
31905 }
31906 _ACEOF
31907 if ac_fn_c_try_link "$LINENO"; then :
31908 ac_cv_libbabeltrace=yes
31909 else
31910 ac_cv_libbabeltrace=no
31911 fi
31912 rm -f core conftest.err conftest.$ac_objext \
31913 conftest$ac_exeext conftest.$ac_ext
31914 LIBS="$ac_save_LIBS"
31915
31916 fi
31917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
31918 $as_echo "$ac_cv_libbabeltrace" >&6; }
31919 if test "$ac_cv_libbabeltrace" = yes; then
31920 HAVE_LIBBABELTRACE=yes
31921
31922 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
31923
31924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
31925 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
31926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
31927 $as_echo "$LIBBABELTRACE" >&6; }
31928 else
31929 HAVE_LIBBABELTRACE=no
31930 CPPFLAGS="$ac_save_CPPFLAGS"
31931 LIBBABELTRACE=
31932 LTLIBBABELTRACE=
31933 fi
31934
31935
31936
31937
31938
31939
31940 CFLAGS=$saved_CFLAGS
31941
31942 if test "$HAVE_LIBBABELTRACE" != yes; then
31943 if test "$with_babeltrace" = yes; then
31944 as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
31945 else
31946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
31947 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
31948 fi
31949 fi
31950 fi
31951
31952 # Check whether --enable-libctf was given.
31953 if test "${enable_libctf+set}" = set; then :
31954 enableval=$enable_libctf;
31955 case "$enableval" in
31956 yes|no) ;;
31957 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
31958 esac
31959
31960 else
31961 enable_libctf=yes
31962 fi
31963
31964
31965 if test "${enable_libctf}" = yes; then
31966
31967 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
31968
31969 LIBCTF="../libctf/libctf.la"
31970 CTF_DEPS="../libctf/libctf.la"
31971 else
31972 LIBCTF=
31973 CTF_DEPS=
31974 fi
31975
31976
31977
31978 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
31979 # empty version.
31980
31981 NM_H=
31982 rm -f nm.h
31983 if test "${nativefile}" != ""; then
31984 case "${nativefile}" in
31985 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
31986 * ) GDB_NM_FILE="${nativefile}"
31987 esac
31988 ac_config_links="$ac_config_links nm.h:$GDB_NM_FILE"
31989
31990
31991 cat >>confdefs.h <<_ACEOF
31992 #define GDB_NM_FILE "${GDB_NM_FILE}"
31993 _ACEOF
31994
31995 NM_H=nm.h
31996 fi
31997
31998
31999
32000 for ac_prog in xsltproc
32001 do
32002 # Extract the first word of "$ac_prog", so it can be a program name with args.
32003 set dummy $ac_prog; ac_word=$2
32004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32005 $as_echo_n "checking for $ac_word... " >&6; }
32006 if ${ac_cv_path_XSLTPROC+:} false; then :
32007 $as_echo_n "(cached) " >&6
32008 else
32009 case $XSLTPROC in
32010 [\\/]* | ?:[\\/]*)
32011 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
32012 ;;
32013 *)
32014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32015 for as_dir in $PATH
32016 do
32017 IFS=$as_save_IFS
32018 test -z "$as_dir" && as_dir=.
32019 for ac_exec_ext in '' $ac_executable_extensions; do
32020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32021 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
32022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32023 break 2
32024 fi
32025 done
32026 done
32027 IFS=$as_save_IFS
32028
32029 ;;
32030 esac
32031 fi
32032 XSLTPROC=$ac_cv_path_XSLTPROC
32033 if test -n "$XSLTPROC"; then
32034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
32035 $as_echo "$XSLTPROC" >&6; }
32036 else
32037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32038 $as_echo "no" >&6; }
32039 fi
32040
32041
32042 test -n "$XSLTPROC" && break
32043 done
32044 test -n "$XSLTPROC" || XSLTPROC="missing"
32045
32046 if test "x$USE_MAINTAINER_MODE" = xyes; then
32047 if test "${XSLTPROC}" = missing; then
32048 as_fn_error $? "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
32049 fi
32050 fi
32051
32052
32053
32054
32055
32056 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
32057
32058
32059
32060 # Check whether we will enable the inclusion of unit tests when
32061 # compiling GDB.
32062 #
32063 # The default value of this option changes depending whether we're on
32064 # development mode (in which case it's "true") or not (in which case
32065 # it's "false"). The $development variable is set by the GDB_AC_COMMON
32066 # macro, which must therefore be used before GDB_AC_SELFTEST.
32067
32068 if test "x$development" != xtrue && test "x$development" != xfalse; then :
32069 as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
32070 fi
32071
32072 # Check whether --enable-unit-tests was given.
32073 if test "${enable_unit_tests+set}" = set; then :
32074 enableval=$enable_unit_tests; case "${enableval}" in
32075 yes) enable_unittests=true ;;
32076 no) enable_unittests=false ;;
32077 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
32078 esac
32079 else
32080 enable_unittests=$development
32081 fi
32082
32083
32084 if $enable_unittests; then
32085
32086 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
32087
32088
32089 CONFIG_OBS="$CONFIG_OBS \$(SELFTESTS_OBS)"
32090 CONFIG_SRCS="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
32091
32092 fi
32093
32094
32095
32096 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
32097 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
32098 if test "x$GDB_TRANSFORM_NAME" = x; then
32099 GDB_TRANSFORM_NAME=gdb
32100 fi
32101
32102
32103
32104 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
32105 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
32106 if test "x$GCORE_TRANSFORM_NAME" = x; then
32107 GCORE_TRANSFORM_NAME=gcore
32108 fi
32109
32110
32111 ac_config_files="$ac_config_files gcore"
32112
32113 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
32114
32115
32116 cat >confcache <<\_ACEOF
32117 # This file is a shell script that caches the results of configure
32118 # tests run on this system so they can be shared between configure
32119 # scripts and configure runs, see configure's option --config-cache.
32120 # It is not useful on other systems. If it contains results you don't
32121 # want to keep, you may remove or edit it.
32122 #
32123 # config.status only pays attention to the cache file if you give it
32124 # the --recheck option to rerun configure.
32125 #
32126 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32127 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32128 # following values.
32129
32130 _ACEOF
32131
32132 # The following way of writing the cache mishandles newlines in values,
32133 # but we know of no workaround that is simple, portable, and efficient.
32134 # So, we kill variables containing newlines.
32135 # Ultrix sh set writes to stderr and can't be redirected directly,
32136 # and sets the high bit in the cache file unless we assign to the vars.
32137 (
32138 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32139 eval ac_val=\$$ac_var
32140 case $ac_val in #(
32141 *${as_nl}*)
32142 case $ac_var in #(
32143 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32144 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32145 esac
32146 case $ac_var in #(
32147 _ | IFS | as_nl) ;; #(
32148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32149 *) { eval $ac_var=; unset $ac_var;} ;;
32150 esac ;;
32151 esac
32152 done
32153
32154 (set) 2>&1 |
32155 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32156 *${as_nl}ac_space=\ *)
32157 # `set' does not quote correctly, so add quotes: double-quote
32158 # substitution turns \\\\ into \\, and sed turns \\ into \.
32159 sed -n \
32160 "s/'/'\\\\''/g;
32161 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32162 ;; #(
32163 *)
32164 # `set' quotes correctly as required by POSIX, so do not add quotes.
32165 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32166 ;;
32167 esac |
32168 sort
32169 ) |
32170 sed '
32171 /^ac_cv_env_/b end
32172 t clear
32173 :clear
32174 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32175 t end
32176 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32177 :end' >>confcache
32178 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32179 if test -w "$cache_file"; then
32180 if test "x$cache_file" != "x/dev/null"; then
32181 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32182 $as_echo "$as_me: updating cache $cache_file" >&6;}
32183 if test ! -f "$cache_file" || test -h "$cache_file"; then
32184 cat confcache >"$cache_file"
32185 else
32186 case $cache_file in #(
32187 */* | ?:*)
32188 mv -f confcache "$cache_file"$$ &&
32189 mv -f "$cache_file"$$ "$cache_file" ;; #(
32190 *)
32191 mv -f confcache "$cache_file" ;;
32192 esac
32193 fi
32194 fi
32195 else
32196 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32197 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32198 fi
32199 fi
32200 rm -f confcache
32201
32202 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32203 # Let make expand exec_prefix.
32204 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32205
32206 DEFS=-DHAVE_CONFIG_H
32207
32208 ac_libobjs=
32209 ac_ltlibobjs=
32210 U=
32211 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32212 # 1. Remove the extension, and $U if already installed.
32213 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32214 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32215 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32216 # will be set to the directory where LIBOBJS objects are built.
32217 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32218 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32219 done
32220 LIBOBJS=$ac_libobjs
32221
32222 LTLIBOBJS=$ac_ltlibobjs
32223
32224
32225 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32226 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
32227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32228 fi
32229 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
32230 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
32231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32232 fi
32233 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
32234 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
32235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32236 fi
32237 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
32238 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
32239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32240 fi
32241
32242
32243 : "${CONFIG_STATUS=./config.status}"
32244 ac_write_fail=0
32245 ac_clean_files_save=$ac_clean_files
32246 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32248 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32249 as_write_fail=0
32250 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32251 #! $SHELL
32252 # Generated by $as_me.
32253 # Run this file to recreate the current configuration.
32254 # Compiler output produced by configure, useful for debugging
32255 # configure, is in config.log if it exists.
32256
32257 debug=false
32258 ac_cs_recheck=false
32259 ac_cs_silent=false
32260
32261 SHELL=\${CONFIG_SHELL-$SHELL}
32262 export SHELL
32263 _ASEOF
32264 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32265 ## -------------------- ##
32266 ## M4sh Initialization. ##
32267 ## -------------------- ##
32268
32269 # Be more Bourne compatible
32270 DUALCASE=1; export DUALCASE # for MKS sh
32271 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32272 emulate sh
32273 NULLCMD=:
32274 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32275 # is contrary to our usage. Disable this feature.
32276 alias -g '${1+"$@"}'='"$@"'
32277 setopt NO_GLOB_SUBST
32278 else
32279 case `(set -o) 2>/dev/null` in #(
32280 *posix*) :
32281 set -o posix ;; #(
32282 *) :
32283 ;;
32284 esac
32285 fi
32286
32287
32288 as_nl='
32289 '
32290 export as_nl
32291 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32292 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32293 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32294 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32295 # Prefer a ksh shell builtin over an external printf program on Solaris,
32296 # but without wasting forks for bash or zsh.
32297 if test -z "$BASH_VERSION$ZSH_VERSION" \
32298 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32299 as_echo='print -r --'
32300 as_echo_n='print -rn --'
32301 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32302 as_echo='printf %s\n'
32303 as_echo_n='printf %s'
32304 else
32305 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32306 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32307 as_echo_n='/usr/ucb/echo -n'
32308 else
32309 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32310 as_echo_n_body='eval
32311 arg=$1;
32312 case $arg in #(
32313 *"$as_nl"*)
32314 expr "X$arg" : "X\\(.*\\)$as_nl";
32315 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32316 esac;
32317 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32318 '
32319 export as_echo_n_body
32320 as_echo_n='sh -c $as_echo_n_body as_echo'
32321 fi
32322 export as_echo_body
32323 as_echo='sh -c $as_echo_body as_echo'
32324 fi
32325
32326 # The user is always right.
32327 if test "${PATH_SEPARATOR+set}" != set; then
32328 PATH_SEPARATOR=:
32329 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32330 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32331 PATH_SEPARATOR=';'
32332 }
32333 fi
32334
32335
32336 # IFS
32337 # We need space, tab and new line, in precisely that order. Quoting is
32338 # there to prevent editors from complaining about space-tab.
32339 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32340 # splitting by setting IFS to empty value.)
32341 IFS=" "" $as_nl"
32342
32343 # Find who we are. Look in the path if we contain no directory separator.
32344 as_myself=
32345 case $0 in #((
32346 *[\\/]* ) as_myself=$0 ;;
32347 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32348 for as_dir in $PATH
32349 do
32350 IFS=$as_save_IFS
32351 test -z "$as_dir" && as_dir=.
32352 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32353 done
32354 IFS=$as_save_IFS
32355
32356 ;;
32357 esac
32358 # We did not find ourselves, most probably we were run as `sh COMMAND'
32359 # in which case we are not to be found in the path.
32360 if test "x$as_myself" = x; then
32361 as_myself=$0
32362 fi
32363 if test ! -f "$as_myself"; then
32364 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32365 exit 1
32366 fi
32367
32368 # Unset variables that we do not need and which cause bugs (e.g. in
32369 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32370 # suppresses any "Segmentation fault" message there. '((' could
32371 # trigger a bug in pdksh 5.2.14.
32372 for as_var in BASH_ENV ENV MAIL MAILPATH
32373 do eval test x\${$as_var+set} = xset \
32374 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32375 done
32376 PS1='$ '
32377 PS2='> '
32378 PS4='+ '
32379
32380 # NLS nuisances.
32381 LC_ALL=C
32382 export LC_ALL
32383 LANGUAGE=C
32384 export LANGUAGE
32385
32386 # CDPATH.
32387 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32388
32389
32390 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32391 # ----------------------------------------
32392 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32393 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32394 # script with STATUS, using 1 if that was 0.
32395 as_fn_error ()
32396 {
32397 as_status=$1; test $as_status -eq 0 && as_status=1
32398 if test "$4"; then
32399 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32400 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32401 fi
32402 $as_echo "$as_me: error: $2" >&2
32403 as_fn_exit $as_status
32404 } # as_fn_error
32405
32406
32407 # as_fn_set_status STATUS
32408 # -----------------------
32409 # Set $? to STATUS, without forking.
32410 as_fn_set_status ()
32411 {
32412 return $1
32413 } # as_fn_set_status
32414
32415 # as_fn_exit STATUS
32416 # -----------------
32417 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32418 as_fn_exit ()
32419 {
32420 set +e
32421 as_fn_set_status $1
32422 exit $1
32423 } # as_fn_exit
32424
32425 # as_fn_unset VAR
32426 # ---------------
32427 # Portably unset VAR.
32428 as_fn_unset ()
32429 {
32430 { eval $1=; unset $1;}
32431 }
32432 as_unset=as_fn_unset
32433 # as_fn_append VAR VALUE
32434 # ----------------------
32435 # Append the text in VALUE to the end of the definition contained in VAR. Take
32436 # advantage of any shell optimizations that allow amortized linear growth over
32437 # repeated appends, instead of the typical quadratic growth present in naive
32438 # implementations.
32439 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32440 eval 'as_fn_append ()
32441 {
32442 eval $1+=\$2
32443 }'
32444 else
32445 as_fn_append ()
32446 {
32447 eval $1=\$$1\$2
32448 }
32449 fi # as_fn_append
32450
32451 # as_fn_arith ARG...
32452 # ------------------
32453 # Perform arithmetic evaluation on the ARGs, and store the result in the
32454 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32455 # must be portable across $(()) and expr.
32456 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32457 eval 'as_fn_arith ()
32458 {
32459 as_val=$(( $* ))
32460 }'
32461 else
32462 as_fn_arith ()
32463 {
32464 as_val=`expr "$@" || test $? -eq 1`
32465 }
32466 fi # as_fn_arith
32467
32468
32469 if expr a : '\(a\)' >/dev/null 2>&1 &&
32470 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32471 as_expr=expr
32472 else
32473 as_expr=false
32474 fi
32475
32476 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32477 as_basename=basename
32478 else
32479 as_basename=false
32480 fi
32481
32482 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32483 as_dirname=dirname
32484 else
32485 as_dirname=false
32486 fi
32487
32488 as_me=`$as_basename -- "$0" ||
32489 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32490 X"$0" : 'X\(//\)$' \| \
32491 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32492 $as_echo X/"$0" |
32493 sed '/^.*\/\([^/][^/]*\)\/*$/{
32494 s//\1/
32495 q
32496 }
32497 /^X\/\(\/\/\)$/{
32498 s//\1/
32499 q
32500 }
32501 /^X\/\(\/\).*/{
32502 s//\1/
32503 q
32504 }
32505 s/.*/./; q'`
32506
32507 # Avoid depending upon Character Ranges.
32508 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32509 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32510 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32511 as_cr_digits='0123456789'
32512 as_cr_alnum=$as_cr_Letters$as_cr_digits
32513
32514 ECHO_C= ECHO_N= ECHO_T=
32515 case `echo -n x` in #(((((
32516 -n*)
32517 case `echo 'xy\c'` in
32518 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32519 xy) ECHO_C='\c';;
32520 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32521 ECHO_T=' ';;
32522 esac;;
32523 *)
32524 ECHO_N='-n';;
32525 esac
32526
32527 rm -f conf$$ conf$$.exe conf$$.file
32528 if test -d conf$$.dir; then
32529 rm -f conf$$.dir/conf$$.file
32530 else
32531 rm -f conf$$.dir
32532 mkdir conf$$.dir 2>/dev/null
32533 fi
32534 if (echo >conf$$.file) 2>/dev/null; then
32535 if ln -s conf$$.file conf$$ 2>/dev/null; then
32536 as_ln_s='ln -s'
32537 # ... but there are two gotchas:
32538 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32539 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32540 # In both cases, we have to default to `cp -pR'.
32541 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32542 as_ln_s='cp -pR'
32543 elif ln conf$$.file conf$$ 2>/dev/null; then
32544 as_ln_s=ln
32545 else
32546 as_ln_s='cp -pR'
32547 fi
32548 else
32549 as_ln_s='cp -pR'
32550 fi
32551 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32552 rmdir conf$$.dir 2>/dev/null
32553
32554
32555 # as_fn_mkdir_p
32556 # -------------
32557 # Create "$as_dir" as a directory, including parents if necessary.
32558 as_fn_mkdir_p ()
32559 {
32560
32561 case $as_dir in #(
32562 -*) as_dir=./$as_dir;;
32563 esac
32564 test -d "$as_dir" || eval $as_mkdir_p || {
32565 as_dirs=
32566 while :; do
32567 case $as_dir in #(
32568 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32569 *) as_qdir=$as_dir;;
32570 esac
32571 as_dirs="'$as_qdir' $as_dirs"
32572 as_dir=`$as_dirname -- "$as_dir" ||
32573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32574 X"$as_dir" : 'X\(//\)[^/]' \| \
32575 X"$as_dir" : 'X\(//\)$' \| \
32576 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32577 $as_echo X"$as_dir" |
32578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32579 s//\1/
32580 q
32581 }
32582 /^X\(\/\/\)[^/].*/{
32583 s//\1/
32584 q
32585 }
32586 /^X\(\/\/\)$/{
32587 s//\1/
32588 q
32589 }
32590 /^X\(\/\).*/{
32591 s//\1/
32592 q
32593 }
32594 s/.*/./; q'`
32595 test -d "$as_dir" && break
32596 done
32597 test -z "$as_dirs" || eval "mkdir $as_dirs"
32598 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32599
32600
32601 } # as_fn_mkdir_p
32602 if mkdir -p . 2>/dev/null; then
32603 as_mkdir_p='mkdir -p "$as_dir"'
32604 else
32605 test -d ./-p && rmdir ./-p
32606 as_mkdir_p=false
32607 fi
32608
32609
32610 # as_fn_executable_p FILE
32611 # -----------------------
32612 # Test if FILE is an executable regular file.
32613 as_fn_executable_p ()
32614 {
32615 test -f "$1" && test -x "$1"
32616 } # as_fn_executable_p
32617 as_test_x='test -x'
32618 as_executable_p=as_fn_executable_p
32619
32620 # Sed expression to map a string onto a valid CPP name.
32621 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32622
32623 # Sed expression to map a string onto a valid variable name.
32624 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32625
32626
32627 exec 6>&1
32628 ## ----------------------------------- ##
32629 ## Main body of $CONFIG_STATUS script. ##
32630 ## ----------------------------------- ##
32631 _ASEOF
32632 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32633
32634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32635 # Save the log message, to keep $0 and so on meaningful, and to
32636 # report actual input values of CONFIG_FILES etc. instead of their
32637 # values after options handling.
32638 ac_log="
32639 This file was extended by $as_me, which was
32640 generated by GNU Autoconf 2.69. Invocation command line was
32641
32642 CONFIG_FILES = $CONFIG_FILES
32643 CONFIG_HEADERS = $CONFIG_HEADERS
32644 CONFIG_LINKS = $CONFIG_LINKS
32645 CONFIG_COMMANDS = $CONFIG_COMMANDS
32646 $ $0 $@
32647
32648 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32649 "
32650
32651 _ACEOF
32652
32653 case $ac_config_files in *"
32654 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32655 esac
32656
32657 case $ac_config_headers in *"
32658 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32659 esac
32660
32661
32662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32663 # Files that config.status was made for.
32664 config_files="$ac_config_files"
32665 config_headers="$ac_config_headers"
32666 config_links="$ac_config_links"
32667 config_commands="$ac_config_commands"
32668
32669 _ACEOF
32670
32671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32672 ac_cs_usage="\
32673 \`$as_me' instantiates files and other configuration actions
32674 from templates according to the current configuration. Unless the files
32675 and actions are specified as TAGs, all are instantiated by default.
32676
32677 Usage: $0 [OPTION]... [TAG]...
32678
32679 -h, --help print this help, then exit
32680 -V, --version print version number and configuration settings, then exit
32681 --config print configuration, then exit
32682 -q, --quiet, --silent
32683 do not print progress messages
32684 -d, --debug don't remove temporary files
32685 --recheck update $as_me by reconfiguring in the same conditions
32686 --file=FILE[:TEMPLATE]
32687 instantiate the configuration file FILE
32688 --header=FILE[:TEMPLATE]
32689 instantiate the configuration header FILE
32690
32691 Configuration files:
32692 $config_files
32693
32694 Configuration headers:
32695 $config_headers
32696
32697 Configuration links:
32698 $config_links
32699
32700 Configuration commands:
32701 $config_commands
32702
32703 Report bugs to the package provider."
32704
32705 _ACEOF
32706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32707 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32708 ac_cs_version="\\
32709 config.status
32710 configured by $0, generated by GNU Autoconf 2.69,
32711 with options \\"\$ac_cs_config\\"
32712
32713 Copyright (C) 2012 Free Software Foundation, Inc.
32714 This config.status script is free software; the Free Software Foundation
32715 gives unlimited permission to copy, distribute and modify it."
32716
32717 ac_pwd='$ac_pwd'
32718 srcdir='$srcdir'
32719 INSTALL='$INSTALL'
32720 AWK='$AWK'
32721 test -n "\$AWK" || AWK=awk
32722 _ACEOF
32723
32724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32725 # The default lists apply if the user does not specify any file.
32726 ac_need_defaults=:
32727 while test $# != 0
32728 do
32729 case $1 in
32730 --*=?*)
32731 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32732 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32733 ac_shift=:
32734 ;;
32735 --*=)
32736 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32737 ac_optarg=
32738 ac_shift=:
32739 ;;
32740 *)
32741 ac_option=$1
32742 ac_optarg=$2
32743 ac_shift=shift
32744 ;;
32745 esac
32746
32747 case $ac_option in
32748 # Handling of the options.
32749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32750 ac_cs_recheck=: ;;
32751 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32752 $as_echo "$ac_cs_version"; exit ;;
32753 --config | --confi | --conf | --con | --co | --c )
32754 $as_echo "$ac_cs_config"; exit ;;
32755 --debug | --debu | --deb | --de | --d | -d )
32756 debug=: ;;
32757 --file | --fil | --fi | --f )
32758 $ac_shift
32759 case $ac_optarg in
32760 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32761 '') as_fn_error $? "missing file argument" ;;
32762 esac
32763 as_fn_append CONFIG_FILES " '$ac_optarg'"
32764 ac_need_defaults=false;;
32765 --header | --heade | --head | --hea )
32766 $ac_shift
32767 case $ac_optarg in
32768 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32769 esac
32770 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32771 ac_need_defaults=false;;
32772 --he | --h)
32773 # Conflict between --help and --header
32774 as_fn_error $? "ambiguous option: \`$1'
32775 Try \`$0 --help' for more information.";;
32776 --help | --hel | -h )
32777 $as_echo "$ac_cs_usage"; exit ;;
32778 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32779 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32780 ac_cs_silent=: ;;
32781
32782 # This is an error.
32783 -*) as_fn_error $? "unrecognized option: \`$1'
32784 Try \`$0 --help' for more information." ;;
32785
32786 *) as_fn_append ac_config_targets " $1"
32787 ac_need_defaults=false ;;
32788
32789 esac
32790 shift
32791 done
32792
32793 ac_configure_extra_args=
32794
32795 if $ac_cs_silent; then
32796 exec 6>/dev/null
32797 ac_configure_extra_args="$ac_configure_extra_args --silent"
32798 fi
32799
32800 _ACEOF
32801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32802 if \$ac_cs_recheck; then
32803 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32804 shift
32805 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32806 CONFIG_SHELL='$SHELL'
32807 export CONFIG_SHELL
32808 exec "\$@"
32809 fi
32810
32811 _ACEOF
32812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32813 exec 5>>config.log
32814 {
32815 echo
32816 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32817 ## Running $as_me. ##
32818 _ASBOX
32819 $as_echo "$ac_log"
32820 } >&5
32821
32822 _ACEOF
32823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32824 #
32825 # INIT-COMMANDS
32826 #
32827
32828
32829 # The HP-UX ksh and POSIX shell print the target directory to stdout
32830 # if CDPATH is set.
32831 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32832
32833 sed_quote_subst='$sed_quote_subst'
32834 double_quote_subst='$double_quote_subst'
32835 delay_variable_subst='$delay_variable_subst'
32836 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
32837 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
32838 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
32839 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
32840 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
32841 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
32842 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
32843 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
32844 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
32845 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
32846 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
32847 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
32848 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
32849 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
32850 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
32851 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
32852 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
32853 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
32854 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
32855 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
32856 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
32857 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
32858 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
32859 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
32860 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
32861 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
32862 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
32863 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
32864 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
32865 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
32866 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
32867 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
32868 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
32869 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
32870 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
32871 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
32872 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
32873 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32874 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32875 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
32876 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
32877 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
32878 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
32879 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
32880 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
32881 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
32882 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
32883 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
32884 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"`'
32885 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
32886 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
32887 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
32888 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
32889 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
32890 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
32891 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
32892 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
32893 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
32894 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
32895 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32896 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32897 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32898 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32899 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32900 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32901 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32902 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32903 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32904 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32905 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32906 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32907 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32908 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32909 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32910 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32911 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32912 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32913 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32914 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32915 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32916 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
32917 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32918 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32919 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32920 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32921 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32922 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32923 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32924 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32925 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
32926 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32927 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32928 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32929 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32930 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32931 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32932 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32933 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32934 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32935 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32936 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32937 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32938 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32939 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32940 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32941 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32942 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32943 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32944 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32945 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32946 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32947 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32948 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32949 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
32950 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32951 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32952 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32953 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32954 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32955 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32956 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32957 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32958 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32959 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32960 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32961 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32962 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32963 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32964 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32965 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32966 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32967 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32968 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32969 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32970 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32971 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32972 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32973 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32974 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32975 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32976 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32977 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32978 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32979 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32980 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32981 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32982 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32983 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32984 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32985 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32986 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32987 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32988 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
32989 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32990 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32991 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32992 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32993 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32994 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32995 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32996 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32997 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
32998 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32999 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33000 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33001 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33002 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33003 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33004 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33005 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33006 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33007 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33008 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33009 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33010 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
33011
33012 LTCC='$LTCC'
33013 LTCFLAGS='$LTCFLAGS'
33014 compiler='$compiler_DEFAULT'
33015
33016 # A function that is used when there is no print builtin or printf.
33017 func_fallback_echo ()
33018 {
33019 eval 'cat <<_LTECHO_EOF
33020 \$1
33021 _LTECHO_EOF'
33022 }
33023
33024 # Quote evaled strings.
33025 for var in SHELL \
33026 ECHO \
33027 SED \
33028 GREP \
33029 EGREP \
33030 FGREP \
33031 LD \
33032 NM \
33033 LN_S \
33034 lt_SP2NL \
33035 lt_NL2SP \
33036 reload_flag \
33037 OBJDUMP \
33038 deplibs_check_method \
33039 file_magic_cmd \
33040 AR \
33041 AR_FLAGS \
33042 STRIP \
33043 RANLIB \
33044 CC \
33045 CFLAGS \
33046 compiler \
33047 lt_cv_sys_global_symbol_pipe \
33048 lt_cv_sys_global_symbol_to_cdecl \
33049 lt_cv_sys_global_symbol_to_c_name_address \
33050 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33051 lt_prog_compiler_no_builtin_flag \
33052 lt_prog_compiler_wl \
33053 lt_prog_compiler_pic \
33054 lt_prog_compiler_static \
33055 lt_cv_prog_compiler_c_o \
33056 need_locks \
33057 DSYMUTIL \
33058 NMEDIT \
33059 LIPO \
33060 OTOOL \
33061 OTOOL64 \
33062 shrext_cmds \
33063 export_dynamic_flag_spec \
33064 whole_archive_flag_spec \
33065 compiler_needs_object \
33066 with_gnu_ld \
33067 allow_undefined_flag \
33068 no_undefined_flag \
33069 hardcode_libdir_flag_spec \
33070 hardcode_libdir_flag_spec_ld \
33071 hardcode_libdir_separator \
33072 fix_srcfile_path \
33073 exclude_expsyms \
33074 include_expsyms \
33075 file_list_spec \
33076 variables_saved_for_relink \
33077 libname_spec \
33078 library_names_spec \
33079 soname_spec \
33080 install_override_mode \
33081 finish_eval \
33082 old_striplib \
33083 striplib \
33084 compiler_lib_search_dirs \
33085 predep_objects \
33086 postdep_objects \
33087 predeps \
33088 postdeps \
33089 compiler_lib_search_path \
33090 LD_CXX \
33091 reload_flag_CXX \
33092 compiler_CXX \
33093 lt_prog_compiler_no_builtin_flag_CXX \
33094 lt_prog_compiler_wl_CXX \
33095 lt_prog_compiler_pic_CXX \
33096 lt_prog_compiler_static_CXX \
33097 lt_cv_prog_compiler_c_o_CXX \
33098 export_dynamic_flag_spec_CXX \
33099 whole_archive_flag_spec_CXX \
33100 compiler_needs_object_CXX \
33101 with_gnu_ld_CXX \
33102 allow_undefined_flag_CXX \
33103 no_undefined_flag_CXX \
33104 hardcode_libdir_flag_spec_CXX \
33105 hardcode_libdir_flag_spec_ld_CXX \
33106 hardcode_libdir_separator_CXX \
33107 fix_srcfile_path_CXX \
33108 exclude_expsyms_CXX \
33109 include_expsyms_CXX \
33110 file_list_spec_CXX \
33111 compiler_lib_search_dirs_CXX \
33112 predep_objects_CXX \
33113 postdep_objects_CXX \
33114 predeps_CXX \
33115 postdeps_CXX \
33116 compiler_lib_search_path_CXX; do
33117 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33118 *[\\\\\\\`\\"\\\$]*)
33119 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
33120 ;;
33121 *)
33122 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33123 ;;
33124 esac
33125 done
33126
33127 # Double-quote double-evaled strings.
33128 for var in reload_cmds \
33129 old_postinstall_cmds \
33130 old_postuninstall_cmds \
33131 old_archive_cmds \
33132 extract_expsyms_cmds \
33133 old_archive_from_new_cmds \
33134 old_archive_from_expsyms_cmds \
33135 archive_cmds \
33136 archive_expsym_cmds \
33137 module_cmds \
33138 module_expsym_cmds \
33139 export_symbols_cmds \
33140 prelink_cmds \
33141 postinstall_cmds \
33142 postuninstall_cmds \
33143 finish_cmds \
33144 sys_lib_search_path_spec \
33145 sys_lib_dlsearch_path_spec \
33146 reload_cmds_CXX \
33147 old_archive_cmds_CXX \
33148 old_archive_from_new_cmds_CXX \
33149 old_archive_from_expsyms_cmds_CXX \
33150 archive_cmds_CXX \
33151 archive_expsym_cmds_CXX \
33152 module_cmds_CXX \
33153 module_expsym_cmds_CXX \
33154 export_symbols_cmds_CXX \
33155 prelink_cmds_CXX; do
33156 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33157 *[\\\\\\\`\\"\\\$]*)
33158 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
33159 ;;
33160 *)
33161 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33162 ;;
33163 esac
33164 done
33165
33166 ac_aux_dir='$ac_aux_dir'
33167 xsi_shell='$xsi_shell'
33168 lt_shell_append='$lt_shell_append'
33169
33170 # See if we are running on zsh, and set the options which allow our
33171 # commands through without removal of \ escapes INIT.
33172 if test -n "\${ZSH_VERSION+set}" ; then
33173 setopt NO_GLOB_SUBST
33174 fi
33175
33176
33177 PACKAGE='$PACKAGE'
33178 VERSION='$VERSION'
33179 TIMESTAMP='$TIMESTAMP'
33180 RM='$RM'
33181 ofile='$ofile'
33182
33183
33184
33185 ac_aux_dir='$ac_aux_dir'
33186
33187
33188 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33189 GDB_NM_FILE=$GDB_NM_FILE
33190
33191 _ACEOF
33192
33193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33194
33195 # Handling of arguments.
33196 for ac_config_target in $ac_config_targets
33197 do
33198 case $ac_config_target in
33199 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
33200 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33201 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33202 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
33203 "nm.h") CONFIG_LINKS="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
33204 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
33205 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33206 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
33207 "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
33208 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33209 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
33210
33211 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33212 esac
33213 done
33214
33215
33216 # If the user did not use the arguments to specify the items to instantiate,
33217 # then the envvar interface is used. Set only those that are not.
33218 # We use the long form for the default assignment because of an extremely
33219 # bizarre bug on SunOS 4.1.3.
33220 if $ac_need_defaults; then
33221 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33222 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33223 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33224 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33225 fi
33226
33227 # Have a temporary directory for convenience. Make it in the build tree
33228 # simply because there is no reason against having it here, and in addition,
33229 # creating and moving files from /tmp can sometimes cause problems.
33230 # Hook for its removal unless debugging.
33231 # Note that there is a small window in which the directory will not be cleaned:
33232 # after its creation but before its name has been assigned to `$tmp'.
33233 $debug ||
33234 {
33235 tmp= ac_tmp=
33236 trap 'exit_status=$?
33237 : "${ac_tmp:=$tmp}"
33238 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33239 ' 0
33240 trap 'as_fn_exit 1' 1 2 13 15
33241 }
33242 # Create a (secure) tmp directory for tmp files.
33243
33244 {
33245 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33246 test -d "$tmp"
33247 } ||
33248 {
33249 tmp=./conf$$-$RANDOM
33250 (umask 077 && mkdir "$tmp")
33251 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33252 ac_tmp=$tmp
33253
33254 # Set up the scripts for CONFIG_FILES section.
33255 # No need to generate them if there are no CONFIG_FILES.
33256 # This happens for instance with `./config.status config.h'.
33257 if test -n "$CONFIG_FILES"; then
33258
33259 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33260 ac_cs_awk_getline=:
33261 ac_cs_awk_pipe_init=
33262 ac_cs_awk_read_file='
33263 while ((getline aline < (F[key])) > 0)
33264 print(aline)
33265 close(F[key])'
33266 ac_cs_awk_pipe_fini=
33267 else
33268 ac_cs_awk_getline=false
33269 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33270 ac_cs_awk_read_file='
33271 print "|#_!!_#|"
33272 print "cat " F[key] " &&"
33273 '$ac_cs_awk_pipe_init
33274 # The final `:' finishes the AND list.
33275 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33276 fi
33277 ac_cr=`echo X | tr X '\015'`
33278 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33279 # But we know of no other shell where ac_cr would be empty at this
33280 # point, so we can use a bashism as a fallback.
33281 if test "x$ac_cr" = x; then
33282 eval ac_cr=\$\'\\r\'
33283 fi
33284 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33285 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33286 ac_cs_awk_cr='\\r'
33287 else
33288 ac_cs_awk_cr=$ac_cr
33289 fi
33290
33291 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33292 _ACEOF
33293
33294 # Create commands to substitute file output variables.
33295 {
33296 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33297 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33298 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33299 echo "_ACAWK" &&
33300 echo "_ACEOF"
33301 } >conf$$files.sh &&
33302 . ./conf$$files.sh ||
33303 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33304 rm -f conf$$files.sh
33305
33306 {
33307 echo "cat >conf$$subs.awk <<_ACEOF" &&
33308 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33309 echo "_ACEOF"
33310 } >conf$$subs.sh ||
33311 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33312 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33313 ac_delim='%!_!# '
33314 for ac_last_try in false false false false false :; do
33315 . ./conf$$subs.sh ||
33316 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33317
33318 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33319 if test $ac_delim_n = $ac_delim_num; then
33320 break
33321 elif $ac_last_try; then
33322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33323 else
33324 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33325 fi
33326 done
33327 rm -f conf$$subs.sh
33328
33329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33330 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33331 _ACEOF
33332 sed -n '
33333 h
33334 s/^/S["/; s/!.*/"]=/
33335 p
33336 g
33337 s/^[^!]*!//
33338 :repl
33339 t repl
33340 s/'"$ac_delim"'$//
33341 t delim
33342 :nl
33343 h
33344 s/\(.\{148\}\)..*/\1/
33345 t more1
33346 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33347 p
33348 n
33349 b repl
33350 :more1
33351 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33352 p
33353 g
33354 s/.\{148\}//
33355 t nl
33356 :delim
33357 h
33358 s/\(.\{148\}\)..*/\1/
33359 t more2
33360 s/["\\]/\\&/g; s/^/"/; s/$/"/
33361 p
33362 b
33363 :more2
33364 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33365 p
33366 g
33367 s/.\{148\}//
33368 t delim
33369 ' <conf$$subs.awk | sed '
33370 /^[^""]/{
33371 N
33372 s/\n//
33373 }
33374 ' >>$CONFIG_STATUS || ac_write_fail=1
33375 rm -f conf$$subs.awk
33376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33377 _ACAWK
33378 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33379 for (key in S) S_is_set[key] = 1
33380 FS = "\a"
33381 \$ac_cs_awk_pipe_init
33382 }
33383 {
33384 line = $ 0
33385 nfields = split(line, field, "@")
33386 substed = 0
33387 len = length(field[1])
33388 for (i = 2; i < nfields; i++) {
33389 key = field[i]
33390 keylen = length(key)
33391 if (S_is_set[key]) {
33392 value = S[key]
33393 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33394 len += length(value) + length(field[++i])
33395 substed = 1
33396 } else
33397 len += 1 + keylen
33398 }
33399 if (nfields == 3 && !substed) {
33400 key = field[2]
33401 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33402 \$ac_cs_awk_read_file
33403 next
33404 }
33405 }
33406 print line
33407 }
33408 \$ac_cs_awk_pipe_fini
33409 _ACAWK
33410 _ACEOF
33411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33412 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33413 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33414 else
33415 cat
33416 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33417 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33418 _ACEOF
33419
33420 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33421 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33422 # trailing colons and then remove the whole line if VPATH becomes empty
33423 # (actually we leave an empty line to preserve line numbers).
33424 if test "x$srcdir" = x.; then
33425 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33426 h
33427 s///
33428 s/^/:/
33429 s/[ ]*$/:/
33430 s/:\$(srcdir):/:/g
33431 s/:\${srcdir}:/:/g
33432 s/:@srcdir@:/:/g
33433 s/^:*//
33434 s/:*$//
33435 x
33436 s/\(=[ ]*\).*/\1/
33437 G
33438 s/\n//
33439 s/^[^=]*=[ ]*$//
33440 }'
33441 fi
33442
33443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33444 fi # test -n "$CONFIG_FILES"
33445
33446 # Set up the scripts for CONFIG_HEADERS section.
33447 # No need to generate them if there are no CONFIG_HEADERS.
33448 # This happens for instance with `./config.status Makefile'.
33449 if test -n "$CONFIG_HEADERS"; then
33450 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33451 BEGIN {
33452 _ACEOF
33453
33454 # Transform confdefs.h into an awk script `defines.awk', embedded as
33455 # here-document in config.status, that substitutes the proper values into
33456 # config.h.in to produce config.h.
33457
33458 # Create a delimiter string that does not exist in confdefs.h, to ease
33459 # handling of long lines.
33460 ac_delim='%!_!# '
33461 for ac_last_try in false false :; do
33462 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33463 if test -z "$ac_tt"; then
33464 break
33465 elif $ac_last_try; then
33466 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33467 else
33468 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33469 fi
33470 done
33471
33472 # For the awk script, D is an array of macro values keyed by name,
33473 # likewise P contains macro parameters if any. Preserve backslash
33474 # newline sequences.
33475
33476 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33477 sed -n '
33478 s/.\{148\}/&'"$ac_delim"'/g
33479 t rset
33480 :rset
33481 s/^[ ]*#[ ]*define[ ][ ]*/ /
33482 t def
33483 d
33484 :def
33485 s/\\$//
33486 t bsnl
33487 s/["\\]/\\&/g
33488 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33489 D["\1"]=" \3"/p
33490 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33491 d
33492 :bsnl
33493 s/["\\]/\\&/g
33494 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33495 D["\1"]=" \3\\\\\\n"\\/p
33496 t cont
33497 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33498 t cont
33499 d
33500 :cont
33501 n
33502 s/.\{148\}/&'"$ac_delim"'/g
33503 t clear
33504 :clear
33505 s/\\$//
33506 t bsnlc
33507 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33508 d
33509 :bsnlc
33510 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33511 b cont
33512 ' <confdefs.h | sed '
33513 s/'"$ac_delim"'/"\\\
33514 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33515
33516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33517 for (key in D) D_is_set[key] = 1
33518 FS = "\a"
33519 }
33520 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33521 line = \$ 0
33522 split(line, arg, " ")
33523 if (arg[1] == "#") {
33524 defundef = arg[2]
33525 mac1 = arg[3]
33526 } else {
33527 defundef = substr(arg[1], 2)
33528 mac1 = arg[2]
33529 }
33530 split(mac1, mac2, "(") #)
33531 macro = mac2[1]
33532 prefix = substr(line, 1, index(line, defundef) - 1)
33533 if (D_is_set[macro]) {
33534 # Preserve the white space surrounding the "#".
33535 print prefix "define", macro P[macro] D[macro]
33536 next
33537 } else {
33538 # Replace #undef with comments. This is necessary, for example,
33539 # in the case of _POSIX_SOURCE, which is predefined and required
33540 # on some systems where configure will not decide to define it.
33541 if (defundef == "undef") {
33542 print "/*", prefix defundef, macro, "*/"
33543 next
33544 }
33545 }
33546 }
33547 { print }
33548 _ACAWK
33549 _ACEOF
33550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33551 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33552 fi # test -n "$CONFIG_HEADERS"
33553
33554
33555 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33556 shift
33557 for ac_tag
33558 do
33559 case $ac_tag in
33560 :[FHLC]) ac_mode=$ac_tag; continue;;
33561 esac
33562 case $ac_mode$ac_tag in
33563 :[FHL]*:*);;
33564 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33565 :[FH]-) ac_tag=-:-;;
33566 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33567 esac
33568 ac_save_IFS=$IFS
33569 IFS=:
33570 set x $ac_tag
33571 IFS=$ac_save_IFS
33572 shift
33573 ac_file=$1
33574 shift
33575
33576 case $ac_mode in
33577 :L) ac_source=$1;;
33578 :[FH])
33579 ac_file_inputs=
33580 for ac_f
33581 do
33582 case $ac_f in
33583 -) ac_f="$ac_tmp/stdin";;
33584 *) # Look for the file first in the build tree, then in the source tree
33585 # (if the path is not absolute). The absolute path cannot be DOS-style,
33586 # because $ac_f cannot contain `:'.
33587 test -f "$ac_f" ||
33588 case $ac_f in
33589 [\\/$]*) false;;
33590 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33591 esac ||
33592 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33593 esac
33594 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33595 as_fn_append ac_file_inputs " '$ac_f'"
33596 done
33597
33598 # Let's still pretend it is `configure' which instantiates (i.e., don't
33599 # use $as_me), people would be surprised to read:
33600 # /* config.h. Generated by config.status. */
33601 configure_input='Generated from '`
33602 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33603 `' by configure.'
33604 if test x"$ac_file" != x-; then
33605 configure_input="$ac_file. $configure_input"
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33607 $as_echo "$as_me: creating $ac_file" >&6;}
33608 fi
33609 # Neutralize special characters interpreted by sed in replacement strings.
33610 case $configure_input in #(
33611 *\&* | *\|* | *\\* )
33612 ac_sed_conf_input=`$as_echo "$configure_input" |
33613 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33614 *) ac_sed_conf_input=$configure_input;;
33615 esac
33616
33617 case $ac_tag in
33618 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33620 esac
33621 ;;
33622 esac
33623
33624 ac_dir=`$as_dirname -- "$ac_file" ||
33625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33626 X"$ac_file" : 'X\(//\)[^/]' \| \
33627 X"$ac_file" : 'X\(//\)$' \| \
33628 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33629 $as_echo X"$ac_file" |
33630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33631 s//\1/
33632 q
33633 }
33634 /^X\(\/\/\)[^/].*/{
33635 s//\1/
33636 q
33637 }
33638 /^X\(\/\/\)$/{
33639 s//\1/
33640 q
33641 }
33642 /^X\(\/\).*/{
33643 s//\1/
33644 q
33645 }
33646 s/.*/./; q'`
33647 as_dir="$ac_dir"; as_fn_mkdir_p
33648 ac_builddir=.
33649
33650 case "$ac_dir" in
33651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33652 *)
33653 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33654 # A ".." for each directory in $ac_dir_suffix.
33655 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33656 case $ac_top_builddir_sub in
33657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33659 esac ;;
33660 esac
33661 ac_abs_top_builddir=$ac_pwd
33662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33663 # for backward compatibility:
33664 ac_top_builddir=$ac_top_build_prefix
33665
33666 case $srcdir in
33667 .) # We are building in place.
33668 ac_srcdir=.
33669 ac_top_srcdir=$ac_top_builddir_sub
33670 ac_abs_top_srcdir=$ac_pwd ;;
33671 [\\/]* | ?:[\\/]* ) # Absolute name.
33672 ac_srcdir=$srcdir$ac_dir_suffix;
33673 ac_top_srcdir=$srcdir
33674 ac_abs_top_srcdir=$srcdir ;;
33675 *) # Relative name.
33676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33677 ac_top_srcdir=$ac_top_build_prefix$srcdir
33678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33679 esac
33680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33681
33682
33683 case $ac_mode in
33684 :F)
33685 #
33686 # CONFIG_FILE
33687 #
33688
33689 case $INSTALL in
33690 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33691 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33692 esac
33693 _ACEOF
33694
33695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33696 # If the template does not know about datarootdir, expand it.
33697 # FIXME: This hack should be removed a few years after 2.60.
33698 ac_datarootdir_hack=; ac_datarootdir_seen=
33699 ac_sed_dataroot='
33700 /datarootdir/ {
33701 p
33702 q
33703 }
33704 /@datadir@/p
33705 /@docdir@/p
33706 /@infodir@/p
33707 /@localedir@/p
33708 /@mandir@/p'
33709 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33710 *datarootdir*) ac_datarootdir_seen=yes;;
33711 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33713 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33714 _ACEOF
33715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33716 ac_datarootdir_hack='
33717 s&@datadir@&$datadir&g
33718 s&@docdir@&$docdir&g
33719 s&@infodir@&$infodir&g
33720 s&@localedir@&$localedir&g
33721 s&@mandir@&$mandir&g
33722 s&\\\${datarootdir}&$datarootdir&g' ;;
33723 esac
33724 _ACEOF
33725
33726 # Neutralize VPATH when `$srcdir' = `.'.
33727 # Shell code in configure.ac might set extrasub.
33728 # FIXME: do we really want to maintain this feature?
33729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33730 ac_sed_extra="$ac_vpsub
33731 $extrasub
33732 _ACEOF
33733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33734 :t
33735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33736 s|@configure_input@|$ac_sed_conf_input|;t t
33737 s&@top_builddir@&$ac_top_builddir_sub&;t t
33738 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33739 s&@srcdir@&$ac_srcdir&;t t
33740 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33741 s&@top_srcdir@&$ac_top_srcdir&;t t
33742 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33743 s&@builddir@&$ac_builddir&;t t
33744 s&@abs_builddir@&$ac_abs_builddir&;t t
33745 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33746 s&@INSTALL@&$ac_INSTALL&;t t
33747 $ac_datarootdir_hack
33748 "
33749 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33750 if $ac_cs_awk_getline; then
33751 $AWK -f "$ac_tmp/subs.awk"
33752 else
33753 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33754 fi \
33755 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33756
33757 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33758 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33759 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33760 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33762 which seems to be undefined. Please make sure it is defined" >&5
33763 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33764 which seems to be undefined. Please make sure it is defined" >&2;}
33765
33766 rm -f "$ac_tmp/stdin"
33767 case $ac_file in
33768 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33769 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33770 esac \
33771 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33772 ;;
33773 :H)
33774 #
33775 # CONFIG_HEADER
33776 #
33777 if test x"$ac_file" != x-; then
33778 {
33779 $as_echo "/* $configure_input */" \
33780 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33781 } >"$ac_tmp/config.h" \
33782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33783 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33784 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33785 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33786 else
33787 rm -f "$ac_file"
33788 mv "$ac_tmp/config.h" "$ac_file" \
33789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33790 fi
33791 else
33792 $as_echo "/* $configure_input */" \
33793 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33794 || as_fn_error $? "could not create -" "$LINENO" 5
33795 fi
33796 ;;
33797 :L)
33798 #
33799 # CONFIG_LINK
33800 #
33801
33802 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33803 :
33804 else
33805 # Prefer the file from the source tree if names are identical.
33806 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33807 ac_source=$srcdir/$ac_source
33808 fi
33809
33810 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33811 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33812
33813 if test ! -r "$ac_source"; then
33814 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33815 fi
33816 rm -f "$ac_file"
33817
33818 # Try a relative symlink, then a hard link, then a copy.
33819 case $ac_source in
33820 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33821 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33822 esac
33823 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33824 ln "$ac_source" "$ac_file" 2>/dev/null ||
33825 cp -p "$ac_source" "$ac_file" ||
33826 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33827 fi
33828 ;;
33829 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33830 $as_echo "$as_me: executing $ac_file commands" >&6;}
33831 ;;
33832 esac
33833
33834
33835 case $ac_file$ac_mode in
33836 "config.h":H) echo > stamp-h ;;
33837 "libtool":C)
33838
33839 # See if we are running on zsh, and set the options which allow our
33840 # commands through without removal of \ escapes.
33841 if test -n "${ZSH_VERSION+set}" ; then
33842 setopt NO_GLOB_SUBST
33843 fi
33844
33845 cfgfile="${ofile}T"
33846 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33847 $RM "$cfgfile"
33848
33849 cat <<_LT_EOF >> "$cfgfile"
33850 #! $SHELL
33851
33852 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33853 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33855 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33856 #
33857 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33858 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
33859 # Written by Gordon Matzigkeit, 1996
33860 #
33861 # This file is part of GNU Libtool.
33862 #
33863 # GNU Libtool is free software; you can redistribute it and/or
33864 # modify it under the terms of the GNU General Public License as
33865 # published by the Free Software Foundation; either version 2 of
33866 # the License, or (at your option) any later version.
33867 #
33868 # As a special exception to the GNU General Public License,
33869 # if you distribute this file as part of a program or library that
33870 # is built using GNU Libtool, you may include this file under the
33871 # same distribution terms that you use for the rest of that program.
33872 #
33873 # GNU Libtool is distributed in the hope that it will be useful,
33874 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33875 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33876 # GNU General Public License for more details.
33877 #
33878 # You should have received a copy of the GNU General Public License
33879 # along with GNU Libtool; see the file COPYING. If not, a copy
33880 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33881 # obtained by writing to the Free Software Foundation, Inc.,
33882 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33883
33884
33885 # The names of the tagged configurations supported by this script.
33886 available_tags="CXX "
33887
33888 # ### BEGIN LIBTOOL CONFIG
33889
33890 # Which release of libtool.m4 was used?
33891 macro_version=$macro_version
33892 macro_revision=$macro_revision
33893
33894 # Whether or not to build shared libraries.
33895 build_libtool_libs=$enable_shared
33896
33897 # Whether or not to build static libraries.
33898 build_old_libs=$enable_static
33899
33900 # What type of objects to build.
33901 pic_mode=$pic_mode
33902
33903 # Whether or not to optimize for fast installation.
33904 fast_install=$enable_fast_install
33905
33906 # Shell to use when invoking shell scripts.
33907 SHELL=$lt_SHELL
33908
33909 # An echo program that protects backslashes.
33910 ECHO=$lt_ECHO
33911
33912 # The host system.
33913 host_alias=$host_alias
33914 host=$host
33915 host_os=$host_os
33916
33917 # The build system.
33918 build_alias=$build_alias
33919 build=$build
33920 build_os=$build_os
33921
33922 # A sed program that does not truncate output.
33923 SED=$lt_SED
33924
33925 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33926 Xsed="\$SED -e 1s/^X//"
33927
33928 # A grep program that handles long lines.
33929 GREP=$lt_GREP
33930
33931 # An ERE matcher.
33932 EGREP=$lt_EGREP
33933
33934 # A literal string matcher.
33935 FGREP=$lt_FGREP
33936
33937 # A BSD- or MS-compatible name lister.
33938 NM=$lt_NM
33939
33940 # Whether we need soft or hard links.
33941 LN_S=$lt_LN_S
33942
33943 # What is the maximum length of a command?
33944 max_cmd_len=$max_cmd_len
33945
33946 # Object file suffix (normally "o").
33947 objext=$ac_objext
33948
33949 # Executable file suffix (normally "").
33950 exeext=$exeext
33951
33952 # whether the shell understands "unset".
33953 lt_unset=$lt_unset
33954
33955 # turn spaces into newlines.
33956 SP2NL=$lt_lt_SP2NL
33957
33958 # turn newlines into spaces.
33959 NL2SP=$lt_lt_NL2SP
33960
33961 # An object symbol dumper.
33962 OBJDUMP=$lt_OBJDUMP
33963
33964 # Method to check whether dependent libraries are shared objects.
33965 deplibs_check_method=$lt_deplibs_check_method
33966
33967 # Command to use when deplibs_check_method == "file_magic".
33968 file_magic_cmd=$lt_file_magic_cmd
33969
33970 # The archiver.
33971 AR=$lt_AR
33972 AR_FLAGS=$lt_AR_FLAGS
33973
33974 # A symbol stripping program.
33975 STRIP=$lt_STRIP
33976
33977 # Commands used to install an old-style archive.
33978 RANLIB=$lt_RANLIB
33979 old_postinstall_cmds=$lt_old_postinstall_cmds
33980 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33981
33982 # Whether to use a lock for old archive extraction.
33983 lock_old_archive_extraction=$lock_old_archive_extraction
33984
33985 # A C compiler.
33986 LTCC=$lt_CC
33987
33988 # LTCC compiler flags.
33989 LTCFLAGS=$lt_CFLAGS
33990
33991 # Take the output of nm and produce a listing of raw symbols and C names.
33992 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33993
33994 # Transform the output of nm in a proper C declaration.
33995 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33996
33997 # Transform the output of nm in a C name address pair.
33998 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33999
34000 # Transform the output of nm in a C name address pair when lib prefix is needed.
34001 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34002
34003 # The name of the directory that contains temporary libtool files.
34004 objdir=$objdir
34005
34006 # Used to examine libraries when file_magic_cmd begins with "file".
34007 MAGIC_CMD=$MAGIC_CMD
34008
34009 # Must we lock files when doing compilation?
34010 need_locks=$lt_need_locks
34011
34012 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34013 DSYMUTIL=$lt_DSYMUTIL
34014
34015 # Tool to change global to local symbols on Mac OS X.
34016 NMEDIT=$lt_NMEDIT
34017
34018 # Tool to manipulate fat objects and archives on Mac OS X.
34019 LIPO=$lt_LIPO
34020
34021 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
34022 OTOOL=$lt_OTOOL
34023
34024 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34025 OTOOL64=$lt_OTOOL64
34026
34027 # Old archive suffix (normally "a").
34028 libext=$libext
34029
34030 # Shared library suffix (normally ".so").
34031 shrext_cmds=$lt_shrext_cmds
34032
34033 # The commands to extract the exported symbol list from a shared archive.
34034 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34035
34036 # Variables whose values should be saved in libtool wrapper scripts and
34037 # restored at link time.
34038 variables_saved_for_relink=$lt_variables_saved_for_relink
34039
34040 # Do we need the "lib" prefix for modules?
34041 need_lib_prefix=$need_lib_prefix
34042
34043 # Do we need a version for libraries?
34044 need_version=$need_version
34045
34046 # Library versioning type.
34047 version_type=$version_type
34048
34049 # Shared library runtime path variable.
34050 runpath_var=$runpath_var
34051
34052 # Shared library path variable.
34053 shlibpath_var=$shlibpath_var
34054
34055 # Is shlibpath searched before the hard-coded library search path?
34056 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34057
34058 # Format of library name prefix.
34059 libname_spec=$lt_libname_spec
34060
34061 # List of archive names. First name is the real one, the rest are links.
34062 # The last name is the one that the linker finds with -lNAME
34063 library_names_spec=$lt_library_names_spec
34064
34065 # The coded name of the library, if different from the real name.
34066 soname_spec=$lt_soname_spec
34067
34068 # Permission mode override for installation of shared libraries.
34069 install_override_mode=$lt_install_override_mode
34070
34071 # Command to use after installation of a shared archive.
34072 postinstall_cmds=$lt_postinstall_cmds
34073
34074 # Command to use after uninstallation of a shared archive.
34075 postuninstall_cmds=$lt_postuninstall_cmds
34076
34077 # Commands used to finish a libtool library installation in a directory.
34078 finish_cmds=$lt_finish_cmds
34079
34080 # As "finish_cmds", except a single script fragment to be evaled but
34081 # not shown.
34082 finish_eval=$lt_finish_eval
34083
34084 # Whether we should hardcode library paths into libraries.
34085 hardcode_into_libs=$hardcode_into_libs
34086
34087 # Compile-time system search path for libraries.
34088 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34089
34090 # Run-time system search path for libraries.
34091 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34092
34093 # Whether dlopen is supported.
34094 dlopen_support=$enable_dlopen
34095
34096 # Whether dlopen of programs is supported.
34097 dlopen_self=$enable_dlopen_self
34098
34099 # Whether dlopen of statically linked programs is supported.
34100 dlopen_self_static=$enable_dlopen_self_static
34101
34102 # Commands to strip libraries.
34103 old_striplib=$lt_old_striplib
34104 striplib=$lt_striplib
34105
34106
34107 # The linker used to build libraries.
34108 LD=$lt_LD
34109
34110 # How to create reloadable object files.
34111 reload_flag=$lt_reload_flag
34112 reload_cmds=$lt_reload_cmds
34113
34114 # Commands used to build an old-style archive.
34115 old_archive_cmds=$lt_old_archive_cmds
34116
34117 # A language specific compiler.
34118 CC=$lt_compiler
34119
34120 # Is the compiler the GNU compiler?
34121 with_gcc=$GCC
34122
34123 # Compiler flag to turn off builtin functions.
34124 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34125
34126 # How to pass a linker flag through the compiler.
34127 wl=$lt_lt_prog_compiler_wl
34128
34129 # Additional compiler flags for building library objects.
34130 pic_flag=$lt_lt_prog_compiler_pic
34131
34132 # Compiler flag to prevent dynamic linking.
34133 link_static_flag=$lt_lt_prog_compiler_static
34134
34135 # Does compiler simultaneously support -c and -o options?
34136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34137
34138 # Whether or not to add -lc for building shared libraries.
34139 build_libtool_need_lc=$archive_cmds_need_lc
34140
34141 # Whether or not to disallow shared libs when runtime libs are static.
34142 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34143
34144 # Compiler flag to allow reflexive dlopens.
34145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34146
34147 # Compiler flag to generate shared objects directly from archives.
34148 whole_archive_flag_spec=$lt_whole_archive_flag_spec
34149
34150 # Whether the compiler copes with passing no objects directly.
34151 compiler_needs_object=$lt_compiler_needs_object
34152
34153 # Create an old-style archive from a shared archive.
34154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34155
34156 # Create a temporary old-style archive to link instead of a shared archive.
34157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34158
34159 # Commands used to build a shared archive.
34160 archive_cmds=$lt_archive_cmds
34161 archive_expsym_cmds=$lt_archive_expsym_cmds
34162
34163 # Commands used to build a loadable module if different from building
34164 # a shared archive.
34165 module_cmds=$lt_module_cmds
34166 module_expsym_cmds=$lt_module_expsym_cmds
34167
34168 # Whether we are building with GNU ld or not.
34169 with_gnu_ld=$lt_with_gnu_ld
34170
34171 # Flag that allows shared libraries with undefined symbols to be built.
34172 allow_undefined_flag=$lt_allow_undefined_flag
34173
34174 # Flag that enforces no undefined symbols.
34175 no_undefined_flag=$lt_no_undefined_flag
34176
34177 # Flag to hardcode \$libdir into a binary during linking.
34178 # This must work even if \$libdir does not exist
34179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34180
34181 # If ld is used when linking, flag to hardcode \$libdir into a binary
34182 # during linking. This must work even if \$libdir does not exist.
34183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34184
34185 # Whether we need a single "-rpath" flag with a separated argument.
34186 hardcode_libdir_separator=$lt_hardcode_libdir_separator
34187
34188 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34189 # DIR into the resulting binary.
34190 hardcode_direct=$hardcode_direct
34191
34192 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34193 # DIR into the resulting binary and the resulting library dependency is
34194 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34195 # library is relocated.
34196 hardcode_direct_absolute=$hardcode_direct_absolute
34197
34198 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34199 # into the resulting binary.
34200 hardcode_minus_L=$hardcode_minus_L
34201
34202 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34203 # into the resulting binary.
34204 hardcode_shlibpath_var=$hardcode_shlibpath_var
34205
34206 # Set to "yes" if building a shared library automatically hardcodes DIR
34207 # into the library and all subsequent libraries and executables linked
34208 # against it.
34209 hardcode_automatic=$hardcode_automatic
34210
34211 # Set to yes if linker adds runtime paths of dependent libraries
34212 # to runtime path list.
34213 inherit_rpath=$inherit_rpath
34214
34215 # Whether libtool must link a program against all its dependency libraries.
34216 link_all_deplibs=$link_all_deplibs
34217
34218 # Fix the shell variable \$srcfile for the compiler.
34219 fix_srcfile_path=$lt_fix_srcfile_path
34220
34221 # Set to "yes" if exported symbols are required.
34222 always_export_symbols=$always_export_symbols
34223
34224 # The commands to list exported symbols.
34225 export_symbols_cmds=$lt_export_symbols_cmds
34226
34227 # Symbols that should not be listed in the preloaded symbols.
34228 exclude_expsyms=$lt_exclude_expsyms
34229
34230 # Symbols that must always be exported.
34231 include_expsyms=$lt_include_expsyms
34232
34233 # Commands necessary for linking programs (against libraries) with templates.
34234 prelink_cmds=$lt_prelink_cmds
34235
34236 # Specify filename containing input files.
34237 file_list_spec=$lt_file_list_spec
34238
34239 # How to hardcode a shared library path into an executable.
34240 hardcode_action=$hardcode_action
34241
34242 # The directories searched by this compiler when creating a shared library.
34243 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34244
34245 # Dependencies to place before and after the objects being linked to
34246 # create a shared library.
34247 predep_objects=$lt_predep_objects
34248 postdep_objects=$lt_postdep_objects
34249 predeps=$lt_predeps
34250 postdeps=$lt_postdeps
34251
34252 # The library search path used internally by the compiler when linking
34253 # a shared library.
34254 compiler_lib_search_path=$lt_compiler_lib_search_path
34255
34256 # ### END LIBTOOL CONFIG
34257
34258 _LT_EOF
34259
34260 case $host_os in
34261 aix3*)
34262 cat <<\_LT_EOF >> "$cfgfile"
34263 # AIX sometimes has problems with the GCC collect2 program. For some
34264 # reason, if we set the COLLECT_NAMES environment variable, the problems
34265 # vanish in a puff of smoke.
34266 if test "X${COLLECT_NAMES+set}" != Xset; then
34267 COLLECT_NAMES=
34268 export COLLECT_NAMES
34269 fi
34270 _LT_EOF
34271 ;;
34272 esac
34273
34274
34275 ltmain="$ac_aux_dir/ltmain.sh"
34276
34277
34278 # We use sed instead of cat because bash on DJGPP gets confused if
34279 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34280 # text mode, it properly converts lines to CR/LF. This bash problem
34281 # is reportedly fixed, but why not run on old versions too?
34282 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
34283 || (rm -f "$cfgfile"; exit 1)
34284
34285 case $xsi_shell in
34286 yes)
34287 cat << \_LT_EOF >> "$cfgfile"
34288
34289 # func_dirname file append nondir_replacement
34290 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
34291 # otherwise set result to NONDIR_REPLACEMENT.
34292 func_dirname ()
34293 {
34294 case ${1} in
34295 */*) func_dirname_result="${1%/*}${2}" ;;
34296 * ) func_dirname_result="${3}" ;;
34297 esac
34298 }
34299
34300 # func_basename file
34301 func_basename ()
34302 {
34303 func_basename_result="${1##*/}"
34304 }
34305
34306 # func_dirname_and_basename file append nondir_replacement
34307 # perform func_basename and func_dirname in a single function
34308 # call:
34309 # dirname: Compute the dirname of FILE. If nonempty,
34310 # add APPEND to the result, otherwise set result
34311 # to NONDIR_REPLACEMENT.
34312 # value returned in "$func_dirname_result"
34313 # basename: Compute filename of FILE.
34314 # value retuned in "$func_basename_result"
34315 # Implementation must be kept synchronized with func_dirname
34316 # and func_basename. For efficiency, we do not delegate to
34317 # those functions but instead duplicate the functionality here.
34318 func_dirname_and_basename ()
34319 {
34320 case ${1} in
34321 */*) func_dirname_result="${1%/*}${2}" ;;
34322 * ) func_dirname_result="${3}" ;;
34323 esac
34324 func_basename_result="${1##*/}"
34325 }
34326
34327 # func_stripname prefix suffix name
34328 # strip PREFIX and SUFFIX off of NAME.
34329 # PREFIX and SUFFIX must not contain globbing or regex special
34330 # characters, hashes, percent signs, but SUFFIX may contain a leading
34331 # dot (in which case that matches only a dot).
34332 func_stripname ()
34333 {
34334 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
34335 # positional parameters, so assign one to ordinary parameter first.
34336 func_stripname_result=${3}
34337 func_stripname_result=${func_stripname_result#"${1}"}
34338 func_stripname_result=${func_stripname_result%"${2}"}
34339 }
34340
34341 # func_opt_split
34342 func_opt_split ()
34343 {
34344 func_opt_split_opt=${1%%=*}
34345 func_opt_split_arg=${1#*=}
34346 }
34347
34348 # func_lo2o object
34349 func_lo2o ()
34350 {
34351 case ${1} in
34352 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
34353 *) func_lo2o_result=${1} ;;
34354 esac
34355 }
34356
34357 # func_xform libobj-or-source
34358 func_xform ()
34359 {
34360 func_xform_result=${1%.*}.lo
34361 }
34362
34363 # func_arith arithmetic-term...
34364 func_arith ()
34365 {
34366 func_arith_result=$(( $* ))
34367 }
34368
34369 # func_len string
34370 # STRING may not start with a hyphen.
34371 func_len ()
34372 {
34373 func_len_result=${#1}
34374 }
34375
34376 _LT_EOF
34377 ;;
34378 *) # Bourne compatible functions.
34379 cat << \_LT_EOF >> "$cfgfile"
34380
34381 # func_dirname file append nondir_replacement
34382 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
34383 # otherwise set result to NONDIR_REPLACEMENT.
34384 func_dirname ()
34385 {
34386 # Extract subdirectory from the argument.
34387 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
34388 if test "X$func_dirname_result" = "X${1}"; then
34389 func_dirname_result="${3}"
34390 else
34391 func_dirname_result="$func_dirname_result${2}"
34392 fi
34393 }
34394
34395 # func_basename file
34396 func_basename ()
34397 {
34398 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
34399 }
34400
34401
34402 # func_stripname prefix suffix name
34403 # strip PREFIX and SUFFIX off of NAME.
34404 # PREFIX and SUFFIX must not contain globbing or regex special
34405 # characters, hashes, percent signs, but SUFFIX may contain a leading
34406 # dot (in which case that matches only a dot).
34407 # func_strip_suffix prefix name
34408 func_stripname ()
34409 {
34410 case ${2} in
34411 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
34412 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
34413 esac
34414 }
34415
34416 # sed scripts:
34417 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
34418 my_sed_long_arg='1s/^-[^=]*=//'
34419
34420 # func_opt_split
34421 func_opt_split ()
34422 {
34423 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
34424 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
34425 }
34426
34427 # func_lo2o object
34428 func_lo2o ()
34429 {
34430 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
34431 }
34432
34433 # func_xform libobj-or-source
34434 func_xform ()
34435 {
34436 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
34437 }
34438
34439 # func_arith arithmetic-term...
34440 func_arith ()
34441 {
34442 func_arith_result=`expr "$@"`
34443 }
34444
34445 # func_len string
34446 # STRING may not start with a hyphen.
34447 func_len ()
34448 {
34449 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
34450 }
34451
34452 _LT_EOF
34453 esac
34454
34455 case $lt_shell_append in
34456 yes)
34457 cat << \_LT_EOF >> "$cfgfile"
34458
34459 # func_append var value
34460 # Append VALUE to the end of shell variable VAR.
34461 func_append ()
34462 {
34463 eval "$1+=\$2"
34464 }
34465 _LT_EOF
34466 ;;
34467 *)
34468 cat << \_LT_EOF >> "$cfgfile"
34469
34470 # func_append var value
34471 # Append VALUE to the end of shell variable VAR.
34472 func_append ()
34473 {
34474 eval "$1=\$$1\$2"
34475 }
34476
34477 _LT_EOF
34478 ;;
34479 esac
34480
34481
34482 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
34483 || (rm -f "$cfgfile"; exit 1)
34484
34485 mv -f "$cfgfile" "$ofile" ||
34486 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34487 chmod +x "$ofile"
34488
34489
34490 cat <<_LT_EOF >> "$ofile"
34491
34492 # ### BEGIN LIBTOOL TAG CONFIG: CXX
34493
34494 # The linker used to build libraries.
34495 LD=$lt_LD_CXX
34496
34497 # How to create reloadable object files.
34498 reload_flag=$lt_reload_flag_CXX
34499 reload_cmds=$lt_reload_cmds_CXX
34500
34501 # Commands used to build an old-style archive.
34502 old_archive_cmds=$lt_old_archive_cmds_CXX
34503
34504 # A language specific compiler.
34505 CC=$lt_compiler_CXX
34506
34507 # Is the compiler the GNU compiler?
34508 with_gcc=$GCC_CXX
34509
34510 # Compiler flag to turn off builtin functions.
34511 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
34512
34513 # How to pass a linker flag through the compiler.
34514 wl=$lt_lt_prog_compiler_wl_CXX
34515
34516 # Additional compiler flags for building library objects.
34517 pic_flag=$lt_lt_prog_compiler_pic_CXX
34518
34519 # Compiler flag to prevent dynamic linking.
34520 link_static_flag=$lt_lt_prog_compiler_static_CXX
34521
34522 # Does compiler simultaneously support -c and -o options?
34523 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
34524
34525 # Whether or not to add -lc for building shared libraries.
34526 build_libtool_need_lc=$archive_cmds_need_lc_CXX
34527
34528 # Whether or not to disallow shared libs when runtime libs are static.
34529 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
34530
34531 # Compiler flag to allow reflexive dlopens.
34532 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
34533
34534 # Compiler flag to generate shared objects directly from archives.
34535 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
34536
34537 # Whether the compiler copes with passing no objects directly.
34538 compiler_needs_object=$lt_compiler_needs_object_CXX
34539
34540 # Create an old-style archive from a shared archive.
34541 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
34542
34543 # Create a temporary old-style archive to link instead of a shared archive.
34544 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
34545
34546 # Commands used to build a shared archive.
34547 archive_cmds=$lt_archive_cmds_CXX
34548 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
34549
34550 # Commands used to build a loadable module if different from building
34551 # a shared archive.
34552 module_cmds=$lt_module_cmds_CXX
34553 module_expsym_cmds=$lt_module_expsym_cmds_CXX
34554
34555 # Whether we are building with GNU ld or not.
34556 with_gnu_ld=$lt_with_gnu_ld_CXX
34557
34558 # Flag that allows shared libraries with undefined symbols to be built.
34559 allow_undefined_flag=$lt_allow_undefined_flag_CXX
34560
34561 # Flag that enforces no undefined symbols.
34562 no_undefined_flag=$lt_no_undefined_flag_CXX
34563
34564 # Flag to hardcode \$libdir into a binary during linking.
34565 # This must work even if \$libdir does not exist
34566 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
34567
34568 # If ld is used when linking, flag to hardcode \$libdir into a binary
34569 # during linking. This must work even if \$libdir does not exist.
34570 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
34571
34572 # Whether we need a single "-rpath" flag with a separated argument.
34573 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
34574
34575 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34576 # DIR into the resulting binary.
34577 hardcode_direct=$hardcode_direct_CXX
34578
34579 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34580 # DIR into the resulting binary and the resulting library dependency is
34581 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34582 # library is relocated.
34583 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
34584
34585 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34586 # into the resulting binary.
34587 hardcode_minus_L=$hardcode_minus_L_CXX
34588
34589 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34590 # into the resulting binary.
34591 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
34592
34593 # Set to "yes" if building a shared library automatically hardcodes DIR
34594 # into the library and all subsequent libraries and executables linked
34595 # against it.
34596 hardcode_automatic=$hardcode_automatic_CXX
34597
34598 # Set to yes if linker adds runtime paths of dependent libraries
34599 # to runtime path list.
34600 inherit_rpath=$inherit_rpath_CXX
34601
34602 # Whether libtool must link a program against all its dependency libraries.
34603 link_all_deplibs=$link_all_deplibs_CXX
34604
34605 # Fix the shell variable \$srcfile for the compiler.
34606 fix_srcfile_path=$lt_fix_srcfile_path_CXX
34607
34608 # Set to "yes" if exported symbols are required.
34609 always_export_symbols=$always_export_symbols_CXX
34610
34611 # The commands to list exported symbols.
34612 export_symbols_cmds=$lt_export_symbols_cmds_CXX
34613
34614 # Symbols that should not be listed in the preloaded symbols.
34615 exclude_expsyms=$lt_exclude_expsyms_CXX
34616
34617 # Symbols that must always be exported.
34618 include_expsyms=$lt_include_expsyms_CXX
34619
34620 # Commands necessary for linking programs (against libraries) with templates.
34621 prelink_cmds=$lt_prelink_cmds_CXX
34622
34623 # Specify filename containing input files.
34624 file_list_spec=$lt_file_list_spec_CXX
34625
34626 # How to hardcode a shared library path into an executable.
34627 hardcode_action=$hardcode_action_CXX
34628
34629 # The directories searched by this compiler when creating a shared library.
34630 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
34631
34632 # Dependencies to place before and after the objects being linked to
34633 # create a shared library.
34634 predep_objects=$lt_predep_objects_CXX
34635 postdep_objects=$lt_postdep_objects_CXX
34636 predeps=$lt_predeps_CXX
34637 postdeps=$lt_postdeps_CXX
34638
34639 # The library search path used internally by the compiler when linking
34640 # a shared library.
34641 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
34642
34643 # ### END LIBTOOL TAG CONFIG: CXX
34644 _LT_EOF
34645
34646 ;;
34647 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
34648 "nm.h":L) echo > stamp-nmh ;;
34649 "gcore":F) chmod +x gcore ;;
34650
34651 esac
34652 done # for ac_tag
34653
34654
34655 as_fn_exit 0
34656 _ACEOF
34657 ac_clean_files=$ac_clean_files_save
34658
34659 test $ac_write_fail = 0 ||
34660 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34661
34662
34663 # configure is writing to config.log, and then calls config.status.
34664 # config.status does its own redirection, appending to config.log.
34665 # Unfortunately, on DOS this fails, as config.log is still kept open
34666 # by configure, so config.status won't be able to write to it; its
34667 # output is simply discarded. So we exec the FD to /dev/null,
34668 # effectively closing config.log, so it can be properly (re)opened and
34669 # appended to by config.status. When coming back to configure, we
34670 # need to make the FD available again.
34671 if test "$no_create" != yes; then
34672 ac_cs_success=:
34673 ac_config_status_args=
34674 test "$silent" = yes &&
34675 ac_config_status_args="$ac_config_status_args --quiet"
34676 exec 5>/dev/null
34677 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34678 exec 5>>config.log
34679 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34680 # would make configure fail if this is the last instruction.
34681 $ac_cs_success || as_fn_exit 1
34682 fi
34683
34684 #
34685 # CONFIG_SUBDIRS section.
34686 #
34687 if test "$no_recursion" != yes; then
34688
34689 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
34690 # so they do not pile up.
34691 ac_sub_configure_args=
34692 ac_prev=
34693 eval "set x $ac_configure_args"
34694 shift
34695 for ac_arg
34696 do
34697 if test -n "$ac_prev"; then
34698 ac_prev=
34699 continue
34700 fi
34701 case $ac_arg in
34702 -cache-file | --cache-file | --cache-fil | --cache-fi \
34703 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34704 ac_prev=cache_file ;;
34705 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34706 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34707 | --c=*)
34708 ;;
34709 --config-cache | -C)
34710 ;;
34711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34712 ac_prev=srcdir ;;
34713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34714 ;;
34715 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34716 ac_prev=prefix ;;
34717 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34718 ;;
34719 --disable-option-checking)
34720 ;;
34721 *)
34722 case $ac_arg in
34723 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34724 esac
34725 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
34726 esac
34727 done
34728
34729 # Always prepend --prefix to ensure using the same prefix
34730 # in subdir configurations.
34731 ac_arg="--prefix=$prefix"
34732 case $ac_arg in
34733 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34734 esac
34735 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
34736
34737 # Pass --silent
34738 if test "$silent" = yes; then
34739 ac_sub_configure_args="--silent $ac_sub_configure_args"
34740 fi
34741
34742 # Always prepend --disable-option-checking to silence warnings, since
34743 # different subdirs can have different --enable and --with options.
34744 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
34745
34746 ac_popdir=`pwd`
34747 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34748
34749 # Do not complain, so a configure script can configure whichever
34750 # parts of a large source tree are present.
34751 test -d "$srcdir/$ac_dir" || continue
34752
34753 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34754 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
34755 $as_echo "$ac_msg" >&6
34756 as_dir="$ac_dir"; as_fn_mkdir_p
34757 ac_builddir=.
34758
34759 case "$ac_dir" in
34760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34761 *)
34762 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34763 # A ".." for each directory in $ac_dir_suffix.
34764 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34765 case $ac_top_builddir_sub in
34766 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34767 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34768 esac ;;
34769 esac
34770 ac_abs_top_builddir=$ac_pwd
34771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34772 # for backward compatibility:
34773 ac_top_builddir=$ac_top_build_prefix
34774
34775 case $srcdir in
34776 .) # We are building in place.
34777 ac_srcdir=.
34778 ac_top_srcdir=$ac_top_builddir_sub
34779 ac_abs_top_srcdir=$ac_pwd ;;
34780 [\\/]* | ?:[\\/]* ) # Absolute name.
34781 ac_srcdir=$srcdir$ac_dir_suffix;
34782 ac_top_srcdir=$srcdir
34783 ac_abs_top_srcdir=$srcdir ;;
34784 *) # Relative name.
34785 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34786 ac_top_srcdir=$ac_top_build_prefix$srcdir
34787 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34788 esac
34789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34790
34791
34792 cd "$ac_dir"
34793
34794 # Check for guested configure; otherwise get Cygnus style configure.
34795 if test -f "$ac_srcdir/configure.gnu"; then
34796 ac_sub_configure=$ac_srcdir/configure.gnu
34797 elif test -f "$ac_srcdir/configure"; then
34798 ac_sub_configure=$ac_srcdir/configure
34799 elif test -f "$ac_srcdir/configure.in"; then
34800 # This should be Cygnus configure.
34801 ac_sub_configure=$ac_aux_dir/configure
34802 else
34803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
34804 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34805 ac_sub_configure=
34806 fi
34807
34808 # The recursion is here.
34809 if test -n "$ac_sub_configure"; then
34810 # Make the cache file name correct relative to the subdirectory.
34811 case $cache_file in
34812 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34813 *) # Relative name.
34814 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34815 esac
34816
34817 { $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
34818 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34819 # The eval makes quoting arguments work.
34820 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34821 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34822 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
34823 fi
34824
34825 cd "$ac_popdir"
34826 done
34827 fi
34828 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34830 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34831 fi
34832