Daily bump.
[gcc.git] / libitm / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU TM Runtime Library 1.0.
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
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || 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='GNU TM Runtime Library'
589 PACKAGE_TARNAME='libitm'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='GNU TM Runtime Library 1.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libitm/'
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 get_gcc_base_ver
636 ARCH_FUTEX_FALSE
637 ARCH_FUTEX_TRUE
638 ARCH_X86_AVX_FALSE
639 ARCH_X86_AVX_TRUE
640 ARCH_X86_FALSE
641 ARCH_X86_TRUE
642 ARCH_ARM_FALSE
643 ARCH_ARM_TRUE
644 link_itm
645 XLDFLAGS
646 XCFLAGS
647 config_path
648 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
649 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
650 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
651 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
652 LIBITM_BUILD_VERSIONED_SHLIB_FALSE
653 LIBITM_BUILD_VERSIONED_SHLIB_TRUE
654 OPT_LDFLAGS
655 SECTION_LDFLAGS
656 HAVE_HWCAP_FALSE
657 HAVE_HWCAP_TRUE
658 HWCAP_LDFLAGS
659 libtool_VERSION
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 enable_static
664 enable_shared
665 CXXCPP
666 CPP
667 OTOOL64
668 OTOOL
669 LIPO
670 NMEDIT
671 DSYMUTIL
672 OBJDUMP
673 LN_S
674 ac_ct_DUMPBIN
675 DUMPBIN
676 LD
677 FGREP
678 EGREP
679 GREP
680 SED
681 LIBTOOL
682 BUILD_INFO_FALSE
683 BUILD_INFO_TRUE
684 PERL
685 RANLIB
686 NM
687 AR
688 am__fastdepCCAS_FALSE
689 am__fastdepCCAS_TRUE
690 CCASDEPMODE
691 CCASFLAGS
692 CCAS
693 am__fastdepCXX_FALSE
694 am__fastdepCXX_TRUE
695 CXXDEPMODE
696 ac_ct_CXX
697 CXXFLAGS
698 CXX
699 am__fastdepCC_FALSE
700 am__fastdepCC_TRUE
701 CCDEPMODE
702 am__nodep
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__quote
707 am__include
708 DEPDIR
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 toolexeclibdir
717 toolexecdir
718 multi_basedir
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
728 AWK
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 VERSION
740 PACKAGE
741 CYGPATH_W
742 am__isrc
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_os
747 target_vendor
748 target_cpu
749 target
750 host_os
751 host_vendor
752 host_cpu
753 host
754 build_os
755 build_vendor
756 build_cpu
757 build
758 GENINSRC_FALSE
759 GENINSRC_TRUE
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 enable_version_specific_runtime_libs
802 enable_generated_files_in_srcdir
803 enable_silent_rules
804 enable_multilib
805 with_toolexeclibdir
806 enable_dependency_tracking
807 enable_shared
808 enable_static
809 with_pic
810 enable_fast_install
811 with_gnu_ld
812 enable_libtool_lock
813 enable_maintainer_mode
814 enable_linux_futex
815 enable_tls
816 enable_symvers
817 enable_cet
818 with_gcc_major_version_only
819 '
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
823 CPP
824 CPPFLAGS
825 CXXCPP'
826
827
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
883 ac_prev=
884 continue
885 fi
886
887 case $ac_option in
888 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *=) ac_optarg= ;;
890 *) ac_optarg=yes ;;
891 esac
892
893 # Accept the important Cygnus configure options, so we can diagnose typos.
894
895 case $ac_dashdash$ac_option in
896 --)
897 ac_dashdash=yes ;;
898
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 bindir=$ac_optarg ;;
903
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
908
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
915
916 --config-cache | -C)
917 cache_file=config.cache ;;
918
919 -datadir | --datadir | --datadi | --datad)
920 ac_prev=datadir ;;
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
923
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
930
931 -disable-* | --disable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
939 *"
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=no ;;
946
947 -docdir | --docdir | --docdi | --doc | --do)
948 ac_prev=docdir ;;
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 docdir=$ac_optarg ;;
951
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953 ac_prev=dvidir ;;
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 dvidir=$ac_optarg ;;
956
957 -enable-* | --enable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966 "enable_$ac_useropt"
967 "*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=\$ac_optarg ;;
972
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev=exec_prefix ;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
980 exec_prefix=$ac_optarg ;;
981
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
984 with_gas=yes ;;
985
986 -help | --help | --hel | --he | -h)
987 ac_init_help=long ;;
988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989 ac_init_help=recursive ;;
990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991 ac_init_help=short ;;
992
993 -host | --host | --hos | --ho)
994 ac_prev=host_alias ;;
995 -host=* | --host=* | --hos=* | --ho=*)
996 host_alias=$ac_optarg ;;
997
998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999 ac_prev=htmldir ;;
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001 | --ht=*)
1002 htmldir=$ac_optarg ;;
1003
1004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev=includedir ;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
1009 includedir=$ac_optarg ;;
1010
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1012 ac_prev=infodir ;;
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014 infodir=$ac_optarg ;;
1015
1016 -libdir | --libdir | --libdi | --libd)
1017 ac_prev=libdir ;;
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019 libdir=$ac_optarg ;;
1020
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev=libexecdir ;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
1026 libexecdir=$ac_optarg ;;
1027
1028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev=localedir ;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir=$ac_optarg ;;
1032
1033 -localstatedir | --localstatedir | --localstatedi | --localstated \
1034 | --localstate | --localstat | --localsta | --localst | --locals)
1035 ac_prev=localstatedir ;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038 localstatedir=$ac_optarg ;;
1039
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041 ac_prev=mandir ;;
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043 mandir=$ac_optarg ;;
1044
1045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1047 with_fp=no ;;
1048
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050 | --no-cr | --no-c | -n)
1051 no_create=yes ;;
1052
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055 no_recursion=yes ;;
1056
1057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev=oldincludedir ;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064 oldincludedir=$ac_optarg ;;
1065
1066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067 ac_prev=prefix ;;
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069 prefix=$ac_optarg ;;
1070
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev=program_prefix ;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076 program_prefix=$ac_optarg ;;
1077
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev=program_suffix ;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083 program_suffix=$ac_optarg ;;
1084
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev=program_transform_name ;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
1100 program_transform_name=$ac_optarg ;;
1101
1102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103 ac_prev=pdfdir ;;
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir=$ac_optarg ;;
1106
1107 -psdir | --psdir | --psdi | --psd | --ps)
1108 ac_prev=psdir ;;
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110 psdir=$ac_optarg ;;
1111
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1114 silent=yes ;;
1115
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117 ac_prev=sbindir ;;
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119 | --sbi=* | --sb=*)
1120 sbindir=$ac_optarg ;;
1121
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1125 | --sha | --sh)
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130 | --sha=* | --sh=*)
1131 sharedstatedir=$ac_optarg ;;
1132
1133 -site | --site | --sit)
1134 ac_prev=site ;;
1135 -site=* | --site=* | --sit=*)
1136 site=$ac_optarg ;;
1137
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139 ac_prev=srcdir ;;
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141 srcdir=$ac_optarg ;;
1142
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148 sysconfdir=$ac_optarg ;;
1149
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
1151 ac_prev=target_alias ;;
1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153 target_alias=$ac_optarg ;;
1154
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 verbose=yes ;;
1157
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
1160
1161 -with-* | --with-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1169 *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=\$ac_optarg ;;
1176
1177 -without-* | --without-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1185 *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=no ;;
1192
1193 --x)
1194 # Obsolete; use --with-x.
1195 with_x=yes ;;
1196
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1203
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1210
1211 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1212 Try \`$0 --help' for more information"
1213 ;;
1214
1215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 case $ac_envvar in #(
1219 '' | [0-9]* | *[!_$as_cr_alnum]* )
1220 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1221 esac
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1224
1225 *)
1226 # FIXME: should be removed in autoconf 3.0.
1227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231 ;;
1232
1233 esac
1234 done
1235
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 as_fn_error $? "missing argument to $ac_option"
1239 fi
1240
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1243 no) ;;
1244 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 esac
1247 fi
1248
1249 # Check all directory arguments for consistency.
1250 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir
1254 do
1255 eval ac_val=\$$ac_var
1256 # Remove trailing slashes.
1257 case $ac_val in
1258 */ )
1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\$ac_val;;
1261 esac
1262 # Be sure to have absolute directory names.
1263 case $ac_val in
1264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266 esac
1267 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268 done
1269
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1276
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 elif test "x$build_alias" != "x$host_alias"; then
1282 cross_compiling=yes
1283 fi
1284 fi
1285
1286 ac_tool_prefix=
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288
1289 test "$silent" = yes && exec 6>/dev/null
1290
1291
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 as_fn_error $? "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 as_fn_error $? "pwd does not report name of working directory"
1298
1299
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\/\)[^/].*/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\).*/{
1323 s//\1/
1324 q
1325 }
1326 s/.*/./; q'`
1327 srcdir=$ac_confdir
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 srcdir=..
1330 fi
1331 else
1332 ac_srcdir_defaulted=no
1333 fi
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1337 fi
1338 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339 ac_abs_confdir=`(
1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341 pwd)`
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344 srcdir=.
1345 fi
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1349 case $srcdir in
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351 esac
1352 for ac_var in $ac_precious_vars; do
1353 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_env_${ac_var}_value=\$${ac_var}
1355 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 done
1358
1359 #
1360 # Report the --help message.
1361 #
1362 if test "$ac_init_help" = "long"; then
1363 # Omit some internal or obsolete options to make the list less imposing.
1364 # This message is too long to be a string in the A/UX 3.1 sh.
1365 cat <<_ACEOF
1366 \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1367
1368 Usage: $0 [OPTION]... [VAR=VALUE]...
1369
1370 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371 VAR=VALUE. See below for descriptions of some of the useful variables.
1372
1373 Defaults for the options are specified in brackets.
1374
1375 Configuration:
1376 -h, --help display this help and exit
1377 --help=short display options specific to this package
1378 --help=recursive display the short help of all the included packages
1379 -V, --version display version information and exit
1380 -q, --quiet, --silent do not print \`checking ...' messages
1381 --cache-file=FILE cache test results in FILE [disabled]
1382 -C, --config-cache alias for \`--cache-file=config.cache'
1383 -n, --no-create do not create output files
1384 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1385
1386 Installation directories:
1387 --prefix=PREFIX install architecture-independent files in PREFIX
1388 [$ac_default_prefix]
1389 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1390 [PREFIX]
1391
1392 By default, \`make install' will install all the files in
1393 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1394 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1395 for instance \`--prefix=\$HOME'.
1396
1397 For better control, use the options below.
1398
1399 Fine tuning of the installation directories:
1400 --bindir=DIR user executables [EPREFIX/bin]
1401 --sbindir=DIR system admin executables [EPREFIX/sbin]
1402 --libexecdir=DIR program executables [EPREFIX/libexec]
1403 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1404 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1405 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1406 --libdir=DIR object code libraries [EPREFIX/lib]
1407 --includedir=DIR C header files [PREFIX/include]
1408 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1409 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1410 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1411 --infodir=DIR info documentation [DATAROOTDIR/info]
1412 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1413 --mandir=DIR man documentation [DATAROOTDIR/man]
1414 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1415 --htmldir=DIR html documentation [DOCDIR]
1416 --dvidir=DIR dvi documentation [DOCDIR]
1417 --pdfdir=DIR pdf documentation [DOCDIR]
1418 --psdir=DIR ps documentation [DOCDIR]
1419 _ACEOF
1420
1421 cat <<\_ACEOF
1422
1423 Program names:
1424 --program-prefix=PREFIX prepend PREFIX to installed program names
1425 --program-suffix=SUFFIX append SUFFIX to installed program names
1426 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1427
1428 System types:
1429 --build=BUILD configure for building on BUILD [guessed]
1430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431 --target=TARGET configure for building compilers for TARGET [HOST]
1432 _ACEOF
1433 fi
1434
1435 if test -n "$ac_init_help"; then
1436 case $ac_init_help in
1437 short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1438 esac
1439 cat <<\_ACEOF
1440
1441 Optional Features:
1442 --disable-option-checking ignore unrecognized --enable/--with options
1443 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1444 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1445 --enable-version-specific-runtime-libs
1446 Specify that runtime libraries should be installed
1447 in a compiler-specific directory [default=no]
1448 --enable-generated-files-in-srcdir
1449 put copies of generated files in source dir intended
1450 for creating source tarballs for users without
1451 texinfo bison or flex. [default=no]
1452 --enable-silent-rules less verbose build output (undo: "make V=1")
1453 --disable-silent-rules verbose build output (undo: "make V=0")
1454 --enable-multilib build many library versions (default)
1455 --enable-dependency-tracking
1456 do not reject slow dependency extractors
1457 --disable-dependency-tracking
1458 speeds up one-time build
1459 --enable-shared[=PKGS] build shared libraries [default=yes]
1460 --enable-static[=PKGS] build static libraries [default=yes]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --disable-libtool-lock avoid locking (might break parallel builds)
1464 --enable-maintainer-mode
1465 enable make rules and dependencies not useful (and
1466 sometimes confusing) to the casual installer
1467 --enable-linux-futex use the Linux futex system call [default=default]
1468 --enable-tls Use thread-local storage [default=yes]
1469 --enable-symvers=STYLE enables symbol versioning of the shared library
1470 [default=yes]
1471 --enable-cet enable Intel CET in target libraries [default=auto]
1472
1473 Optional Packages:
1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1476 --with-toolexeclibdir=DIR
1477 install libraries built with a cross compiler within
1478 DIR
1479 --with-pic try to use only PIC/non-PIC objects [default=use
1480 both]
1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-gcc-major-version-only
1483 use only GCC major number in filesystem paths
1484
1485 Some influential environment variables:
1486 CC C compiler command
1487 CFLAGS C compiler flags
1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1489 nonstandard directory <lib dir>
1490 LIBS libraries to pass to the linker, e.g. -l<library>
1491 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1492 you have headers in a nonstandard directory <include dir>
1493 CXX C++ compiler command
1494 CXXFLAGS C++ compiler flags
1495 CCAS assembler compiler command (defaults to CC)
1496 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1497 CPP C preprocessor
1498 CXXCPP C++ preprocessor
1499
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1502
1503 Report bugs to the package provider.
1504 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1505 General help using GNU software: <http://www.gnu.org/gethelp/>.
1506 _ACEOF
1507 ac_status=$?
1508 fi
1509
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" ||
1514 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515 continue
1516 ac_builddir=.
1517
1518 case "$ac_dir" in
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *)
1521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 esac ;;
1528 esac
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1533
1534 case $srcdir in
1535 .) # We are building in place.
1536 ac_srcdir=.
1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
1540 ac_srcdir=$srcdir$ac_dir_suffix;
1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1543 *) # Relative name.
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 esac
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
1558 else
1559 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
1562 done
1563 fi
1564
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1567 cat <<\_ACEOF
1568 GNU TM Runtime Library configure 1.0
1569 generated by GNU Autoconf 2.69
1570
1571 Copyright (C) 2012 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1574 _ACEOF
1575 exit
1576 fi
1577
1578 ## ------------------------ ##
1579 ## Autoconf initialization. ##
1580 ## ------------------------ ##
1581
1582 # ac_fn_c_try_compile LINENO
1583 # --------------------------
1584 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_compile ()
1586 {
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext
1589 if { { ac_try="$ac_compile"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_compile") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest.$ac_objext; then :
1608 ac_retval=0
1609 else
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1
1614 fi
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1617
1618 } # ac_fn_c_try_compile
1619
1620 # ac_fn_cxx_try_compile LINENO
1621 # ----------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_cxx_try_compile ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext
1627 if { { ac_try="$ac_compile"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_cxx_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext; then :
1646 ac_retval=0
1647 else
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651 ac_retval=1
1652 fi
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1655
1656 } # ac_fn_cxx_try_compile
1657
1658 # ac_fn_c_try_link LINENO
1659 # -----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_link ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext conftest$ac_exeext
1665 if { { ac_try="$ac_link"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest$ac_exeext && {
1684 test "$cross_compiling" = yes ||
1685 test -x conftest$ac_exeext
1686 }; then :
1687 ac_retval=0
1688 else
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1
1693 fi
1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696 # interfere with the next link command; also delete a directory that is
1697 # left behind by Apple's compiler. We do this before executing the actions.
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_link
1703
1704 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1705 # -------------------------------------------------------
1706 # Tests whether HEADER exists and can be compiled using the include files in
1707 # INCLUDES, setting the cache variable VAR accordingly.
1708 ac_fn_c_check_header_compile ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if eval \${$3+:} false; then :
1714 $as_echo_n "(cached) " >&6
1715 else
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1718 $4
1719 #include <$2>
1720 _ACEOF
1721 if ac_fn_c_try_compile "$LINENO"; then :
1722 eval "$3=yes"
1723 else
1724 eval "$3=no"
1725 fi
1726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 fi
1728 eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733 } # ac_fn_c_check_header_compile
1734
1735 # ac_fn_c_try_cpp LINENO
1736 # ----------------------
1737 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_c_try_cpp ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if { { ac_try="$ac_cpp conftest.$ac_ext"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1754 fi
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } > conftest.i && {
1757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 }; then :
1760 ac_retval=0
1761 else
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766 fi
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1769
1770 } # ac_fn_c_try_cpp
1771
1772 # ac_fn_c_try_run LINENO
1773 # ----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1775 # that executables *can* be run.
1776 ac_fn_c_try_run ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_link"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>&5
1787 ac_status=$?
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1790 { { case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_try") 2>&5
1797 ac_status=$?
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; }; }; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: program exited with status $ac_status" >&5
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=$ac_status
1807 fi
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
1811
1812 } # ac_fn_c_try_run
1813
1814 # ac_fn_c_check_func LINENO FUNC VAR
1815 # ----------------------------------
1816 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1817 ac_fn_c_check_func ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1824 else
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1829 #define $2 innocuous_$2
1830
1831 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (); below.
1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834 <limits.h> exists even on freestanding compilers. */
1835
1836 #ifdef __STDC__
1837 # include <limits.h>
1838 #else
1839 # include <assert.h>
1840 #endif
1841
1842 #undef $2
1843
1844 /* Override any GCC internal prototype to avoid an error.
1845 Use char because int might match the return type of a GCC
1846 builtin and then its argument prototype would still apply. */
1847 #ifdef __cplusplus
1848 extern "C"
1849 #endif
1850 char $2 ();
1851 /* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854 #if defined __stub_$2 || defined __stub___$2
1855 choke me
1856 #endif
1857
1858 int
1859 main ()
1860 {
1861 return $2 ();
1862 ;
1863 return 0;
1864 }
1865 _ACEOF
1866 if ac_fn_c_try_link "$LINENO"; then :
1867 eval "$3=yes"
1868 else
1869 eval "$3=no"
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext \
1872 conftest$ac_exeext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } # ac_fn_c_check_func
1880
1881 # ac_fn_cxx_try_cpp LINENO
1882 # ------------------------
1883 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_cxx_try_cpp ()
1885 {
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { { ac_try="$ac_cpp conftest.$ac_ext"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1900 fi
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } > conftest.i && {
1903 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1904 test ! -s conftest.err
1905 }; then :
1906 ac_retval=0
1907 else
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1910
1911 ac_retval=1
1912 fi
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 as_fn_set_status $ac_retval
1915
1916 } # ac_fn_cxx_try_cpp
1917
1918 # ac_fn_cxx_try_link LINENO
1919 # -------------------------
1920 # Try to link conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_cxx_try_link ()
1922 {
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 rm -f conftest.$ac_objext conftest$ac_exeext
1925 if { { ac_try="$ac_link"
1926 case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_link") 2>conftest.err
1933 ac_status=$?
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1938 fi
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && {
1941 test -z "$ac_cxx_werror_flag" ||
1942 test ! -s conftest.err
1943 } && test -s conftest$ac_exeext && {
1944 test "$cross_compiling" = yes ||
1945 test -x conftest$ac_exeext
1946 }; then :
1947 ac_retval=0
1948 else
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1951
1952 ac_retval=1
1953 fi
1954 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1955 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1956 # interfere with the next link command; also delete a directory that is
1957 # left behind by Apple's compiler. We do this before executing the actions.
1958 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 as_fn_set_status $ac_retval
1961
1962 } # ac_fn_cxx_try_link
1963
1964 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1965 # -------------------------------------------------------
1966 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1967 # the include files in INCLUDES and setting the cache variable VAR
1968 # accordingly.
1969 ac_fn_c_check_header_mongrel ()
1970 {
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 if eval \${$3+:} false; then :
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \${$3+:} false; then :
1976 $as_echo_n "(cached) " >&6
1977 fi
1978 eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 else
1982 # Is the header compilable?
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1984 $as_echo_n "checking $2 usability... " >&6; }
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 $4
1988 #include <$2>
1989 _ACEOF
1990 if ac_fn_c_try_compile "$LINENO"; then :
1991 ac_header_compiler=yes
1992 else
1993 ac_header_compiler=no
1994 fi
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1997 $as_echo "$ac_header_compiler" >&6; }
1998
1999 # Is the header present?
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2001 $as_echo_n "checking $2 presence... " >&6; }
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2004 #include <$2>
2005 _ACEOF
2006 if ac_fn_c_try_cpp "$LINENO"; then :
2007 ac_header_preproc=yes
2008 else
2009 ac_header_preproc=no
2010 fi
2011 rm -f conftest.err conftest.i conftest.$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2013 $as_echo "$ac_header_preproc" >&6; }
2014
2015 # So? What about this header?
2016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2017 yes:no: )
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2019 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2022 ;;
2023 no:yes:* )
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2025 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2027 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2029 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2031 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 ;;
2035 esac
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval \${$3+:} false; then :
2039 $as_echo_n "(cached) " >&6
2040 else
2041 eval "$3=\$ac_header_compiler"
2042 fi
2043 eval ac_res=\$$3
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 fi
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048
2049 } # ac_fn_c_check_header_mongrel
2050
2051 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2052 # -------------------------------------------
2053 # Tests whether TYPE exists after having included INCLUDES, setting cache
2054 # variable VAR accordingly.
2055 ac_fn_c_check_type ()
2056 {
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 $as_echo_n "checking for $2... " >&6; }
2060 if eval \${$3+:} false; then :
2061 $as_echo_n "(cached) " >&6
2062 else
2063 eval "$3=no"
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2066 $4
2067 int
2068 main ()
2069 {
2070 if (sizeof ($2))
2071 return 0;
2072 ;
2073 return 0;
2074 }
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2079 $4
2080 int
2081 main ()
2082 {
2083 if (sizeof (($2)))
2084 return 0;
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090
2091 else
2092 eval "$3=yes"
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 fi
2098 eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102
2103 } # ac_fn_c_check_type
2104
2105 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2106 # --------------------------------------------
2107 # Tries to find the compile-time value of EXPR in a program that includes
2108 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2109 # computed
2110 ac_fn_c_compute_int ()
2111 {
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 if test "$cross_compiling" = yes; then
2114 # Depending upon the size, compute the lo and hi bounds.
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117 $4
2118 int
2119 main ()
2120 {
2121 static int test_array [1 - 2 * !(($2) >= 0)];
2122 test_array [0] = 0;
2123 return test_array [0];
2124
2125 ;
2126 return 0;
2127 }
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 ac_lo=0 ac_mid=0
2131 while :; do
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2134 $4
2135 int
2136 main ()
2137 {
2138 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2139 test_array [0] = 0;
2140 return test_array [0];
2141
2142 ;
2143 return 0;
2144 }
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_hi=$ac_mid; break
2148 else
2149 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2150 if test $ac_lo -le $ac_mid; then
2151 ac_lo= ac_hi=
2152 break
2153 fi
2154 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2155 fi
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 done
2158 else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2161 $4
2162 int
2163 main ()
2164 {
2165 static int test_array [1 - 2 * !(($2) < 0)];
2166 test_array [0] = 0;
2167 return test_array [0];
2168
2169 ;
2170 return 0;
2171 }
2172 _ACEOF
2173 if ac_fn_c_try_compile "$LINENO"; then :
2174 ac_hi=-1 ac_mid=-1
2175 while :; do
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2178 $4
2179 int
2180 main ()
2181 {
2182 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2183 test_array [0] = 0;
2184 return test_array [0];
2185
2186 ;
2187 return 0;
2188 }
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_lo=$ac_mid; break
2192 else
2193 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2194 if test $ac_mid -le $ac_hi; then
2195 ac_lo= ac_hi=
2196 break
2197 fi
2198 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2199 fi
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 done
2202 else
2203 ac_lo= ac_hi=
2204 fi
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 fi
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 # Binary search between lo and hi bounds.
2209 while test "x$ac_lo" != "x$ac_hi"; do
2210 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2213 $4
2214 int
2215 main ()
2216 {
2217 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2218 test_array [0] = 0;
2219 return test_array [0];
2220
2221 ;
2222 return 0;
2223 }
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 ac_hi=$ac_mid
2227 else
2228 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2229 fi
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 done
2232 case $ac_lo in #((
2233 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2234 '') ac_retval=1 ;;
2235 esac
2236 else
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2239 $4
2240 static long int longval () { return $2; }
2241 static unsigned long int ulongval () { return $2; }
2242 #include <stdio.h>
2243 #include <stdlib.h>
2244 int
2245 main ()
2246 {
2247
2248 FILE *f = fopen ("conftest.val", "w");
2249 if (! f)
2250 return 1;
2251 if (($2) < 0)
2252 {
2253 long int i = longval ();
2254 if (i != ($2))
2255 return 1;
2256 fprintf (f, "%ld", i);
2257 }
2258 else
2259 {
2260 unsigned long int i = ulongval ();
2261 if (i != ($2))
2262 return 1;
2263 fprintf (f, "%lu", i);
2264 }
2265 /* Do not output a trailing newline, as this causes \r\n confusion
2266 on some platforms. */
2267 return ferror (f) || fclose (f) != 0;
2268
2269 ;
2270 return 0;
2271 }
2272 _ACEOF
2273 if ac_fn_c_try_run "$LINENO"; then :
2274 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2275 else
2276 ac_retval=1
2277 fi
2278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2279 conftest.$ac_objext conftest.beam conftest.$ac_ext
2280 rm -f conftest.val
2281
2282 fi
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284 as_fn_set_status $ac_retval
2285
2286 } # ac_fn_c_compute_int
2287
2288 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2289 # ---------------------------------------------
2290 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2291 # accordingly.
2292 ac_fn_c_check_decl ()
2293 {
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 as_decl_name=`echo $2|sed 's/ *(.*//'`
2296 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2298 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2299 if eval \${$3+:} false; then :
2300 $as_echo_n "(cached) " >&6
2301 else
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2304 $4
2305 int
2306 main ()
2307 {
2308 #ifndef $as_decl_name
2309 #ifdef __cplusplus
2310 (void) $as_decl_use;
2311 #else
2312 (void) $as_decl_name;
2313 #endif
2314 #endif
2315
2316 ;
2317 return 0;
2318 }
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321 eval "$3=yes"
2322 else
2323 eval "$3=no"
2324 fi
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 fi
2327 eval ac_res=\$$3
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331
2332 } # ac_fn_c_check_decl
2333 cat >config.log <<_ACEOF
2334 This file contains any messages produced by compilers while
2335 running configure, to aid debugging if configure makes a mistake.
2336
2337 It was created by GNU TM Runtime Library $as_me 1.0, which was
2338 generated by GNU Autoconf 2.69. Invocation command line was
2339
2340 $ $0 $@
2341
2342 _ACEOF
2343 exec 5>>config.log
2344 {
2345 cat <<_ASUNAME
2346 ## --------- ##
2347 ## Platform. ##
2348 ## --------- ##
2349
2350 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2351 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2352 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2353 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2354 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2355
2356 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2357 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2358
2359 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2360 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2361 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2362 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2363 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2364 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2365 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2366
2367 _ASUNAME
2368
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 $as_echo "PATH: $as_dir"
2375 done
2376 IFS=$as_save_IFS
2377
2378 } >&5
2379
2380 cat >&5 <<_ACEOF
2381
2382
2383 ## ----------- ##
2384 ## Core tests. ##
2385 ## ----------- ##
2386
2387 _ACEOF
2388
2389
2390 # Keep a trace of the command line.
2391 # Strip out --no-create and --no-recursion so they do not pile up.
2392 # Strip out --silent because we don't want to record it for future runs.
2393 # Also quote any args containing shell meta-characters.
2394 # Make two passes to allow for proper duplicate-argument suppression.
2395 ac_configure_args=
2396 ac_configure_args0=
2397 ac_configure_args1=
2398 ac_must_keep_next=false
2399 for ac_pass in 1 2
2400 do
2401 for ac_arg
2402 do
2403 case $ac_arg in
2404 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2406 | -silent | --silent | --silen | --sile | --sil)
2407 continue ;;
2408 *\'*)
2409 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2410 esac
2411 case $ac_pass in
2412 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2413 2)
2414 as_fn_append ac_configure_args1 " '$ac_arg'"
2415 if test $ac_must_keep_next = true; then
2416 ac_must_keep_next=false # Got value, back to normal.
2417 else
2418 case $ac_arg in
2419 *=* | --config-cache | -C | -disable-* | --disable-* \
2420 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2421 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2422 | -with-* | --with-* | -without-* | --without-* | --x)
2423 case "$ac_configure_args0 " in
2424 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2425 esac
2426 ;;
2427 -* ) ac_must_keep_next=true ;;
2428 esac
2429 fi
2430 as_fn_append ac_configure_args " '$ac_arg'"
2431 ;;
2432 esac
2433 done
2434 done
2435 { ac_configure_args0=; unset ac_configure_args0;}
2436 { ac_configure_args1=; unset ac_configure_args1;}
2437
2438 # When interrupted or exit'd, cleanup temporary files, and complete
2439 # config.log. We remove comments because anyway the quotes in there
2440 # would cause problems or look ugly.
2441 # WARNING: Use '\'' to represent an apostrophe within the trap.
2442 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2443 trap 'exit_status=$?
2444 # Save into config.log some information that might help in debugging.
2445 {
2446 echo
2447
2448 $as_echo "## ---------------- ##
2449 ## Cache variables. ##
2450 ## ---------------- ##"
2451 echo
2452 # The following way of writing the cache mishandles newlines in values,
2453 (
2454 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2455 eval ac_val=\$$ac_var
2456 case $ac_val in #(
2457 *${as_nl}*)
2458 case $ac_var in #(
2459 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2460 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2461 esac
2462 case $ac_var in #(
2463 _ | IFS | as_nl) ;; #(
2464 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2465 *) { eval $ac_var=; unset $ac_var;} ;;
2466 esac ;;
2467 esac
2468 done
2469 (set) 2>&1 |
2470 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2471 *${as_nl}ac_space=\ *)
2472 sed -n \
2473 "s/'\''/'\''\\\\'\'''\''/g;
2474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2475 ;; #(
2476 *)
2477 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2478 ;;
2479 esac |
2480 sort
2481 )
2482 echo
2483
2484 $as_echo "## ----------------- ##
2485 ## Output variables. ##
2486 ## ----------------- ##"
2487 echo
2488 for ac_var in $ac_subst_vars
2489 do
2490 eval ac_val=\$$ac_var
2491 case $ac_val in
2492 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493 esac
2494 $as_echo "$ac_var='\''$ac_val'\''"
2495 done | sort
2496 echo
2497
2498 if test -n "$ac_subst_files"; then
2499 $as_echo "## ------------------- ##
2500 ## File substitutions. ##
2501 ## ------------------- ##"
2502 echo
2503 for ac_var in $ac_subst_files
2504 do
2505 eval ac_val=\$$ac_var
2506 case $ac_val in
2507 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2508 esac
2509 $as_echo "$ac_var='\''$ac_val'\''"
2510 done | sort
2511 echo
2512 fi
2513
2514 if test -s confdefs.h; then
2515 $as_echo "## ----------- ##
2516 ## confdefs.h. ##
2517 ## ----------- ##"
2518 echo
2519 cat confdefs.h
2520 echo
2521 fi
2522 test "$ac_signal" != 0 &&
2523 $as_echo "$as_me: caught signal $ac_signal"
2524 $as_echo "$as_me: exit $exit_status"
2525 } >&5
2526 rm -f core *.core core.conftest.* &&
2527 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2528 exit $exit_status
2529 ' 0
2530 for ac_signal in 1 2 13 15; do
2531 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2532 done
2533 ac_signal=0
2534
2535 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2536 rm -f -r conftest* confdefs.h
2537
2538 $as_echo "/* confdefs.h */" > confdefs.h
2539
2540 # Predefined preprocessor variables.
2541
2542 cat >>confdefs.h <<_ACEOF
2543 #define PACKAGE_NAME "$PACKAGE_NAME"
2544 _ACEOF
2545
2546 cat >>confdefs.h <<_ACEOF
2547 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2548 _ACEOF
2549
2550 cat >>confdefs.h <<_ACEOF
2551 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2552 _ACEOF
2553
2554 cat >>confdefs.h <<_ACEOF
2555 #define PACKAGE_STRING "$PACKAGE_STRING"
2556 _ACEOF
2557
2558 cat >>confdefs.h <<_ACEOF
2559 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2560 _ACEOF
2561
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE_URL "$PACKAGE_URL"
2564 _ACEOF
2565
2566
2567 # Let the site file select an alternate cache file if it wants to.
2568 # Prefer an explicitly selected file to automatically selected ones.
2569 ac_site_file1=NONE
2570 ac_site_file2=NONE
2571 if test -n "$CONFIG_SITE"; then
2572 # We do not want a PATH search for config.site.
2573 case $CONFIG_SITE in #((
2574 -*) ac_site_file1=./$CONFIG_SITE;;
2575 */*) ac_site_file1=$CONFIG_SITE;;
2576 *) ac_site_file1=./$CONFIG_SITE;;
2577 esac
2578 elif test "x$prefix" != xNONE; then
2579 ac_site_file1=$prefix/share/config.site
2580 ac_site_file2=$prefix/etc/config.site
2581 else
2582 ac_site_file1=$ac_default_prefix/share/config.site
2583 ac_site_file2=$ac_default_prefix/etc/config.site
2584 fi
2585 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2586 do
2587 test "x$ac_site_file" = xNONE && continue
2588 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2590 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2591 sed 's/^/| /' "$ac_site_file" >&5
2592 . "$ac_site_file" \
2593 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2595 as_fn_error $? "failed to load site script $ac_site_file
2596 See \`config.log' for more details" "$LINENO" 5; }
2597 fi
2598 done
2599
2600 if test -r "$cache_file"; then
2601 # Some versions of bash will fail to source /dev/null (special files
2602 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2603 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2605 $as_echo "$as_me: loading cache $cache_file" >&6;}
2606 case $cache_file in
2607 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2608 *) . "./$cache_file";;
2609 esac
2610 fi
2611 else
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2613 $as_echo "$as_me: creating cache $cache_file" >&6;}
2614 >$cache_file
2615 fi
2616
2617 # Check that the precious variables saved in the cache have kept the same
2618 # value.
2619 ac_cache_corrupted=false
2620 for ac_var in $ac_precious_vars; do
2621 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2622 eval ac_new_set=\$ac_env_${ac_var}_set
2623 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2624 eval ac_new_val=\$ac_env_${ac_var}_value
2625 case $ac_old_set,$ac_new_set in
2626 set,)
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2628 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2629 ac_cache_corrupted=: ;;
2630 ,set)
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2632 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2633 ac_cache_corrupted=: ;;
2634 ,);;
2635 *)
2636 if test "x$ac_old_val" != "x$ac_new_val"; then
2637 # differences in whitespace do not lead to failure.
2638 ac_old_val_w=`echo x $ac_old_val`
2639 ac_new_val_w=`echo x $ac_new_val`
2640 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2642 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2643 ac_cache_corrupted=:
2644 else
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2646 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2647 eval $ac_var=\$ac_old_val
2648 fi
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2650 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2652 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2653 fi;;
2654 esac
2655 # Pass precious variables to config.status.
2656 if test "$ac_new_set" = set; then
2657 case $ac_new_val in
2658 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2659 *) ac_arg=$ac_var=$ac_new_val ;;
2660 esac
2661 case " $ac_configure_args " in
2662 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2663 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2664 esac
2665 fi
2666 done
2667 if $ac_cache_corrupted; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2671 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2672 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2673 fi
2674 ## -------------------- ##
2675 ## Main body of script. ##
2676 ## -------------------- ##
2677
2678 ac_ext=c
2679 ac_cpp='$CPP $CPPFLAGS'
2680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2683
2684
2685
2686
2687
2688 ac_config_headers="$ac_config_headers config.h"
2689
2690
2691 # -------
2692 # Options
2693 # -------
2694
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2696 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2697 # Check whether --enable-version-specific-runtime-libs was given.
2698 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2699 enableval=$enable_version_specific_runtime_libs;
2700 case "$enableval" in
2701 yes|no) ;;
2702 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2703 esac
2704
2705 else
2706 enable_version_specific_runtime_libs=no
2707 fi
2708
2709
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2711 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2712
2713 # We would like our source tree to be readonly. However when releases or
2714 # pre-releases are generated, the flex/bison generated files as well as the
2715 # various formats of manuals need to be included along with the rest of the
2716 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2717 # just that.
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2719 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2720 # Check whether --enable-generated-files-in-srcdir was given.
2721 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2722 enableval=$enable_generated_files_in_srcdir;
2723 case "$enableval" in
2724 yes|no) ;;
2725 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2726 esac
2727
2728 else
2729 enable_generated_files_in_srcdir=no
2730 fi
2731
2732
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2734 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2735 if test "$enable_generated_files_in_srcdir" = yes; then
2736 GENINSRC_TRUE=
2737 GENINSRC_FALSE='#'
2738 else
2739 GENINSRC_TRUE='#'
2740 GENINSRC_FALSE=
2741 fi
2742
2743
2744
2745 # -------
2746 # -------
2747
2748 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2749 #
2750 # You will slowly go insane if you do not grok the following fact: when
2751 # building this library, the top-level /target/ becomes the library's /host/.
2752 #
2753 # configure then causes --target to default to --host, exactly like any
2754 # other package using autoconf. Therefore, 'target' and 'host' will
2755 # always be the same. This makes sense both for native and cross compilers
2756 # just think about it for a little while. :-)
2757 #
2758 # Also, if this library is being configured as part of a cross compiler, the
2759 # top-level configure script will pass the "real" host as $with_cross_host.
2760 #
2761 # Do not delete or change the following two lines. For why, see
2762 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2763 ac_aux_dir=
2764 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2765 if test -f "$ac_dir/install-sh"; then
2766 ac_aux_dir=$ac_dir
2767 ac_install_sh="$ac_aux_dir/install-sh -c"
2768 break
2769 elif test -f "$ac_dir/install.sh"; then
2770 ac_aux_dir=$ac_dir
2771 ac_install_sh="$ac_aux_dir/install.sh -c"
2772 break
2773 elif test -f "$ac_dir/shtool"; then
2774 ac_aux_dir=$ac_dir
2775 ac_install_sh="$ac_aux_dir/shtool install -c"
2776 break
2777 fi
2778 done
2779 if test -z "$ac_aux_dir"; then
2780 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2781 fi
2782
2783 # These three variables are undocumented and unsupported,
2784 # and are intended to be withdrawn in a future Autoconf release.
2785 # They can cause serious problems if a builder's source tree is in a directory
2786 # whose full name contains unusual characters.
2787 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2788 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2789 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2790
2791
2792 # Make sure we can run config.sub.
2793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2794 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2795
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2797 $as_echo_n "checking build system type... " >&6; }
2798 if ${ac_cv_build+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 ac_build_alias=$build_alias
2802 test "x$ac_build_alias" = x &&
2803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2804 test "x$ac_build_alias" = x &&
2805 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2808
2809 fi
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2811 $as_echo "$ac_cv_build" >&6; }
2812 case $ac_cv_build in
2813 *-*-*) ;;
2814 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2815 esac
2816 build=$ac_cv_build
2817 ac_save_IFS=$IFS; IFS='-'
2818 set x $ac_cv_build
2819 shift
2820 build_cpu=$1
2821 build_vendor=$2
2822 shift; shift
2823 # Remember, the first character of IFS is used to create $*,
2824 # except with old shells:
2825 build_os=$*
2826 IFS=$ac_save_IFS
2827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2828
2829
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2831 $as_echo_n "checking host system type... " >&6; }
2832 if ${ac_cv_host+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test "x$host_alias" = x; then
2836 ac_cv_host=$ac_cv_build
2837 else
2838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2840 fi
2841
2842 fi
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2844 $as_echo "$ac_cv_host" >&6; }
2845 case $ac_cv_host in
2846 *-*-*) ;;
2847 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2848 esac
2849 host=$ac_cv_host
2850 ac_save_IFS=$IFS; IFS='-'
2851 set x $ac_cv_host
2852 shift
2853 host_cpu=$1
2854 host_vendor=$2
2855 shift; shift
2856 # Remember, the first character of IFS is used to create $*,
2857 # except with old shells:
2858 host_os=$*
2859 IFS=$ac_save_IFS
2860 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2861
2862
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2864 $as_echo_n "checking target system type... " >&6; }
2865 if ${ac_cv_target+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if test "x$target_alias" = x; then
2869 ac_cv_target=$ac_cv_host
2870 else
2871 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2872 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2873 fi
2874
2875 fi
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2877 $as_echo "$ac_cv_target" >&6; }
2878 case $ac_cv_target in
2879 *-*-*) ;;
2880 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2881 esac
2882 target=$ac_cv_target
2883 ac_save_IFS=$IFS; IFS='-'
2884 set x $ac_cv_target
2885 shift
2886 target_cpu=$1
2887 target_vendor=$2
2888 shift; shift
2889 # Remember, the first character of IFS is used to create $*,
2890 # except with old shells:
2891 target_os=$*
2892 IFS=$ac_save_IFS
2893 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2894
2895
2896 # The aliases save the names the user supplied, while $host etc.
2897 # will get canonicalized.
2898 test -n "$target_alias" &&
2899 test "$program_prefix$program_suffix$program_transform_name" = \
2900 NONENONEs,x,x, &&
2901 program_prefix=${target_alias}-
2902
2903 target_alias=${target_alias-$host_alias}
2904
2905 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2906 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2907 # 1.9.0: minimum required version
2908 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2909 # of other PACKAGE_* variables will, however, and there's nothing
2910 # we can do about that; they come from AC_INIT).
2911 # no-dist: we don't want 'dist' and related rules.
2912 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2913 # file in the top srcdir, etc, etc), so stop complaining.
2914 # -Wall: turns on all automake warnings...
2915 # -Wno-portability: ...except this one, since GNU make is required.
2916 # -Wno-override: ... and this one, since we do want this in testsuite.
2917 am__api_version='1.15'
2918
2919 # Find a good install program. We prefer a C program (faster),
2920 # so one script is as good as another. But avoid the broken or
2921 # incompatible versions:
2922 # SysV /etc/install, /usr/sbin/install
2923 # SunOS /usr/etc/install
2924 # IRIX /sbin/install
2925 # AIX /bin/install
2926 # AmigaOS /C/install, which installs bootblocks on floppy discs
2927 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2928 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2929 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2930 # OS/2's system install, which has a completely different semantic
2931 # ./install, which can be erroneously created by make from ./install.sh.
2932 # Reject install programs that cannot install multiple files.
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2934 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2935 if test -z "$INSTALL"; then
2936 if ${ac_cv_path_install+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 # Account for people who put trailing slashes in PATH elements.
2945 case $as_dir/ in #((
2946 ./ | .// | /[cC]/* | \
2947 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2948 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2949 /usr/ucb/* ) ;;
2950 *)
2951 # OSF1 and SCO ODT 3.0 have their own names for install.
2952 # Don't use installbsd from OSF since it installs stuff as root
2953 # by default.
2954 for ac_prog in ginstall scoinst install; do
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2957 if test $ac_prog = install &&
2958 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2959 # AIX install. It has an incompatible calling convention.
2960 :
2961 elif test $ac_prog = install &&
2962 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2963 # program-specific install script used by HP pwplus--don't use.
2964 :
2965 else
2966 rm -rf conftest.one conftest.two conftest.dir
2967 echo one > conftest.one
2968 echo two > conftest.two
2969 mkdir conftest.dir
2970 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2971 test -s conftest.one && test -s conftest.two &&
2972 test -s conftest.dir/conftest.one &&
2973 test -s conftest.dir/conftest.two
2974 then
2975 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2976 break 3
2977 fi
2978 fi
2979 fi
2980 done
2981 done
2982 ;;
2983 esac
2984
2985 done
2986 IFS=$as_save_IFS
2987
2988 rm -rf conftest.one conftest.two conftest.dir
2989
2990 fi
2991 if test "${ac_cv_path_install+set}" = set; then
2992 INSTALL=$ac_cv_path_install
2993 else
2994 # As a last resort, use the slow shell script. Don't cache a
2995 # value for INSTALL within a source directory, because that will
2996 # break other packages using the cache if that directory is
2997 # removed, or if the value is a relative name.
2998 INSTALL=$ac_install_sh
2999 fi
3000 fi
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3002 $as_echo "$INSTALL" >&6; }
3003
3004 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3005 # It thinks the first close brace ends the variable substitution.
3006 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3007
3008 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3009
3010 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3011
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3013 $as_echo_n "checking whether build environment is sane... " >&6; }
3014 # Reject unsafe characters in $srcdir or the absolute working directory
3015 # name. Accept space and tab only in the latter.
3016 am_lf='
3017 '
3018 case `pwd` in
3019 *[\\\"\#\$\&\'\`$am_lf]*)
3020 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3021 esac
3022 case $srcdir in
3023 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3024 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3025 esac
3026
3027 # Do 'set' in a subshell so we don't clobber the current shell's
3028 # arguments. Must try -L first in case configure is actually a
3029 # symlink; some systems play weird games with the mod time of symlinks
3030 # (eg FreeBSD returns the mod time of the symlink's containing
3031 # directory).
3032 if (
3033 am_has_slept=no
3034 for am_try in 1 2; do
3035 echo "timestamp, slept: $am_has_slept" > conftest.file
3036 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3037 if test "$*" = "X"; then
3038 # -L didn't work.
3039 set X `ls -t "$srcdir/configure" conftest.file`
3040 fi
3041 if test "$*" != "X $srcdir/configure conftest.file" \
3042 && test "$*" != "X conftest.file $srcdir/configure"; then
3043
3044 # If neither matched, then we have a broken ls. This can happen
3045 # if, for instance, CONFIG_SHELL is bash and it inherits a
3046 # broken ls alias from the environment. This has actually
3047 # happened. Such a system could not be considered "sane".
3048 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3049 alias in your environment" "$LINENO" 5
3050 fi
3051 if test "$2" = conftest.file || test $am_try -eq 2; then
3052 break
3053 fi
3054 # Just in case.
3055 sleep 1
3056 am_has_slept=yes
3057 done
3058 test "$2" = conftest.file
3059 )
3060 then
3061 # Ok.
3062 :
3063 else
3064 as_fn_error $? "newly created file is older than distributed files!
3065 Check your system clock" "$LINENO" 5
3066 fi
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3068 $as_echo "yes" >&6; }
3069 # If we didn't sleep, we still need to ensure time stamps of config.status and
3070 # generated files are strictly newer.
3071 am_sleep_pid=
3072 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3073 ( sleep 1 ) &
3074 am_sleep_pid=$!
3075 fi
3076
3077 rm -f conftest.file
3078
3079 test "$program_prefix" != NONE &&
3080 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3081 # Use a double $ so make ignores it.
3082 test "$program_suffix" != NONE &&
3083 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3084 # Double any \ or $.
3085 # By default was `s,x,x', remove it if useless.
3086 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3087 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3088
3089 # Expand $ac_aux_dir to an absolute path.
3090 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3091
3092 if test x"${MISSING+set}" != xset; then
3093 case $am_aux_dir in
3094 *\ * | *\ *)
3095 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3096 *)
3097 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3098 esac
3099 fi
3100 # Use eval to expand $SHELL
3101 if eval "$MISSING --is-lightweight"; then
3102 am_missing_run="$MISSING "
3103 else
3104 am_missing_run=
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3106 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3107 fi
3108
3109 if test x"${install_sh+set}" != xset; then
3110 case $am_aux_dir in
3111 *\ * | *\ *)
3112 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3113 *)
3114 install_sh="\${SHELL} $am_aux_dir/install-sh"
3115 esac
3116 fi
3117
3118 # Installed binaries are usually stripped using 'strip' when the user
3119 # run "make install-strip". However 'strip' might not be the right
3120 # tool to use in cross-compilation environments, therefore Automake
3121 # will honor the 'STRIP' environment variable to overrule this program.
3122 if test "$cross_compiling" != no; then
3123 if test -n "$ac_tool_prefix"; then
3124 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}strip; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_prog_STRIP+:} false; then :
3129 $as_echo_n "(cached) " >&6
3130 else
3131 if test -n "$STRIP"; then
3132 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3133 else
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3136 do
3137 IFS=$as_save_IFS
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 break 2
3144 fi
3145 done
3146 done
3147 IFS=$as_save_IFS
3148
3149 fi
3150 fi
3151 STRIP=$ac_cv_prog_STRIP
3152 if test -n "$STRIP"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3154 $as_echo "$STRIP" >&6; }
3155 else
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3158 fi
3159
3160
3161 fi
3162 if test -z "$ac_cv_prog_STRIP"; then
3163 ac_ct_STRIP=$STRIP
3164 # Extract the first word of "strip", so it can be a program name with args.
3165 set dummy strip; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 if test -n "$ac_ct_STRIP"; then
3172 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_ac_ct_STRIP="strip"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185 done
3186 done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3192 if test -n "$ac_ct_STRIP"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3194 $as_echo "$ac_ct_STRIP" >&6; }
3195 else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200 if test "x$ac_ct_STRIP" = x; then
3201 STRIP=":"
3202 else
3203 case $cross_compiling:$ac_tool_warned in
3204 yes:)
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3207 ac_tool_warned=yes ;;
3208 esac
3209 STRIP=$ac_ct_STRIP
3210 fi
3211 else
3212 STRIP="$ac_cv_prog_STRIP"
3213 fi
3214
3215 fi
3216 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3217
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3219 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3220 if test -z "$MKDIR_P"; then
3221 if ${ac_cv_path_mkdir+:} false; then :
3222 $as_echo_n "(cached) " >&6
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3226 do
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_prog in mkdir gmkdir; do
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3232 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3233 'mkdir (GNU coreutils) '* | \
3234 'mkdir (coreutils) '* | \
3235 'mkdir (fileutils) '4.1*)
3236 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3237 break 3;;
3238 esac
3239 done
3240 done
3241 done
3242 IFS=$as_save_IFS
3243
3244 fi
3245
3246 test -d ./--version && rmdir ./--version
3247 if test "${ac_cv_path_mkdir+set}" = set; then
3248 MKDIR_P="$ac_cv_path_mkdir -p"
3249 else
3250 # As a last resort, use the slow shell script. Don't cache a
3251 # value for MKDIR_P within a source directory, because that will
3252 # break other packages using the cache if that directory is
3253 # removed, or if the value is a relative name.
3254 MKDIR_P="$ac_install_sh -d"
3255 fi
3256 fi
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3258 $as_echo "$MKDIR_P" >&6; }
3259
3260 for ac_prog in gawk mawk nawk awk
3261 do
3262 # Extract the first word of "$ac_prog", so it can be a program name with args.
3263 set dummy $ac_prog; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if ${ac_cv_prog_AWK+:} false; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 if test -n "$AWK"; then
3270 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_AWK="$ac_prog"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3282 fi
3283 done
3284 done
3285 IFS=$as_save_IFS
3286
3287 fi
3288 fi
3289 AWK=$ac_cv_prog_AWK
3290 if test -n "$AWK"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3292 $as_echo "$AWK" >&6; }
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 fi
3297
3298
3299 test -n "$AWK" && break
3300 done
3301
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3303 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3304 set x ${MAKE-make}
3305 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3306 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 cat >conftest.make <<\_ACEOF
3310 SHELL = /bin/sh
3311 all:
3312 @echo '@@@%%%=$(MAKE)=@@@%%%'
3313 _ACEOF
3314 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3315 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3316 *@@@%%%=?*=@@@%%%*)
3317 eval ac_cv_prog_make_${ac_make}_set=yes;;
3318 *)
3319 eval ac_cv_prog_make_${ac_make}_set=no;;
3320 esac
3321 rm -f conftest.make
3322 fi
3323 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3325 $as_echo "yes" >&6; }
3326 SET_MAKE=
3327 else
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 SET_MAKE="MAKE=${MAKE-make}"
3331 fi
3332
3333 rm -rf .tst 2>/dev/null
3334 mkdir .tst 2>/dev/null
3335 if test -d .tst; then
3336 am__leading_dot=.
3337 else
3338 am__leading_dot=_
3339 fi
3340 rmdir .tst 2>/dev/null
3341
3342 # Check whether --enable-silent-rules was given.
3343 if test "${enable_silent_rules+set}" = set; then :
3344 enableval=$enable_silent_rules;
3345 fi
3346
3347 case $enable_silent_rules in # (((
3348 yes) AM_DEFAULT_VERBOSITY=0;;
3349 no) AM_DEFAULT_VERBOSITY=1;;
3350 *) AM_DEFAULT_VERBOSITY=1;;
3351 esac
3352 am_make=${MAKE-make}
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3354 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3355 if ${am_cv_make_support_nested_variables+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 if $as_echo 'TRUE=$(BAR$(V))
3359 BAR0=false
3360 BAR1=true
3361 V=1
3362 am__doit:
3363 @$(TRUE)
3364 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3365 am_cv_make_support_nested_variables=yes
3366 else
3367 am_cv_make_support_nested_variables=no
3368 fi
3369 fi
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3371 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3372 if test $am_cv_make_support_nested_variables = yes; then
3373 AM_V='$(V)'
3374 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3375 else
3376 AM_V=$AM_DEFAULT_VERBOSITY
3377 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3378 fi
3379 AM_BACKSLASH='\'
3380
3381 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3382 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3383 # is not polluted with repeated "-I."
3384 am__isrc=' -I$(srcdir)'
3385 # test to see if srcdir already configured
3386 if test -f $srcdir/config.status; then
3387 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3388 fi
3389 fi
3390
3391 # test whether we have cygpath
3392 if test -z "$CYGPATH_W"; then
3393 if (cygpath --version) >/dev/null 2>/dev/null; then
3394 CYGPATH_W='cygpath -w'
3395 else
3396 CYGPATH_W=echo
3397 fi
3398 fi
3399
3400
3401 # Define the identity of the package.
3402 PACKAGE='libitm'
3403 VERSION='1.0'
3404
3405
3406 cat >>confdefs.h <<_ACEOF
3407 #define PACKAGE "$PACKAGE"
3408 _ACEOF
3409
3410
3411 cat >>confdefs.h <<_ACEOF
3412 #define VERSION "$VERSION"
3413 _ACEOF
3414
3415 # Some tools Automake needs.
3416
3417 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3418
3419
3420 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3421
3422
3423 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3424
3425
3426 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3427
3428
3429 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3430
3431 # For better backward compatibility. To be removed once Automake 1.9.x
3432 # dies out for good. For more background, see:
3433 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3434 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3435 mkdir_p='$(MKDIR_P)'
3436
3437 # We need awk for the "check" target (and possibly the TAP driver). The
3438 # system "awk" is bad on some platforms.
3439 # Always define AMTAR for backward compatibility. Yes, it's still used
3440 # in the wild :-( We should find a proper way to deprecate it ...
3441 AMTAR='$${TAR-tar}'
3442
3443
3444 # We'll loop over all known methods to create a tar archive until one works.
3445 _am_tools='gnutar pax cpio none'
3446
3447 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3448
3449
3450
3451
3452
3453
3454 # POSIX will say in a future version that running "rm -f" with no argument
3455 # is OK; and we want to be able to make that assumption in our Makefile
3456 # recipes. So use an aggressive probe to check that the usage we want is
3457 # actually supported "in the wild" to an acceptable degree.
3458 # See automake bug#10828.
3459 # To make any issue more visible, cause the running configure to be aborted
3460 # by default if the 'rm' program in use doesn't match our expectations; the
3461 # user can still override this though.
3462 if rm -f && rm -fr && rm -rf; then : OK; else
3463 cat >&2 <<'END'
3464 Oops!
3465
3466 Your 'rm' program seems unable to run without file operands specified
3467 on the command line, even when the '-f' option is present. This is contrary
3468 to the behaviour of most rm programs out there, and not conforming with
3469 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3470
3471 Please tell bug-automake@gnu.org about your system, including the value
3472 of your $PATH and any error possibly output before this message. This
3473 can help us improve future automake versions.
3474
3475 END
3476 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3477 echo 'Configuration will proceed anyway, since you have set the' >&2
3478 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3479 echo >&2
3480 else
3481 cat >&2 <<'END'
3482 Aborting the configuration process, to ensure you take notice of the issue.
3483
3484 You can download and install GNU coreutils to get an 'rm' implementation
3485 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3486
3487 If you want to complete the configuration process using your problematic
3488 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3489 to "yes", and re-run configure.
3490
3491 END
3492 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3493 fi
3494 fi
3495
3496 # Default to --enable-multilib
3497 # Check whether --enable-multilib was given.
3498 if test "${enable_multilib+set}" = set; then :
3499 enableval=$enable_multilib; case "$enableval" in
3500 yes) multilib=yes ;;
3501 no) multilib=no ;;
3502 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3503 esac
3504 else
3505 multilib=yes
3506 fi
3507
3508
3509 # We may get other options which we leave undocumented:
3510 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3511 # See config-ml.in if you want the gory details.
3512
3513 if test "$srcdir" = "."; then
3514 if test "$with_target_subdir" != "."; then
3515 multi_basedir="$srcdir/$with_multisrctop../.."
3516 else
3517 multi_basedir="$srcdir/$with_multisrctop.."
3518 fi
3519 else
3520 multi_basedir="$srcdir/.."
3521 fi
3522
3523
3524 # Even if the default multilib is not a cross compilation,
3525 # it may be that some of the other multilibs are.
3526 if test $cross_compiling = no && test $multilib = yes \
3527 && test "x${with_multisubdir}" != x ; then
3528 cross_compiling=maybe
3529 fi
3530
3531 ac_config_commands="$ac_config_commands default-1"
3532
3533
3534
3535 # Check whether --with-toolexeclibdir was given.
3536 if test "${with_toolexeclibdir+set}" = set; then :
3537 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3538 /)
3539 ;;
3540 */)
3541 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3542 ;;
3543 esac
3544 else
3545 with_toolexeclibdir=no
3546 fi
3547
3548
3549
3550 # Calculate toolexeclibdir
3551 # Also toolexecdir, though it's only used in toolexeclibdir
3552 case ${enable_version_specific_runtime_libs} in
3553 yes)
3554 # Need the gcc compiler version to know where to install libraries
3555 # and header files if --enable-version-specific-runtime-libs option
3556 # is selected.
3557 toolexecdir='$(libdir)/gcc/$(target_alias)'
3558 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3559 ;;
3560 no)
3561 if test -n "$with_cross_host" &&
3562 test x"$with_cross_host" != x"no"; then
3563 # Install a library built with a cross compiler in tooldir, not libdir.
3564 toolexecdir='$(exec_prefix)/$(target_alias)'
3565 case ${with_toolexeclibdir} in
3566 no)
3567 toolexeclibdir='$(toolexecdir)/lib'
3568 ;;
3569 *)
3570 toolexeclibdir=${with_toolexeclibdir}
3571 ;;
3572 esac
3573 else
3574 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3575 toolexeclibdir='$(libdir)'
3576 fi
3577 multi_os_directory=`$CC -print-multi-os-directory`
3578 case $multi_os_directory in
3579 .) ;; # Avoid trailing /.
3580 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3581 esac
3582 ;;
3583 esac
3584
3585
3586
3587 # Check the compiler.
3588 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3589 # We must force CC to /not/ be precious variables; otherwise
3590 # the wrong, non-multilib-adjusted value will be used in multilibs.
3591 # As a side effect, we have to subst CFLAGS ourselves.
3592
3593
3594
3595 ac_ext=c
3596 ac_cpp='$CPP $CPPFLAGS'
3597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600 if test -n "$ac_tool_prefix"; then
3601 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3602 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if ${ac_cv_prog_CC+:} false; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 if test -n "$CC"; then
3609 ac_cv_prog_CC="$CC" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3621 fi
3622 done
3623 done
3624 IFS=$as_save_IFS
3625
3626 fi
3627 fi
3628 CC=$ac_cv_prog_CC
3629 if test -n "$CC"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3631 $as_echo "$CC" >&6; }
3632 else
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3635 fi
3636
3637
3638 fi
3639 if test -z "$ac_cv_prog_CC"; then
3640 ac_ct_CC=$CC
3641 # Extract the first word of "gcc", so it can be a program name with args.
3642 set dummy gcc; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 if test -n "$ac_ct_CC"; then
3649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3653 do
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 ac_cv_prog_ac_ct_CC="gcc"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 break 2
3661 fi
3662 done
3663 done
3664 IFS=$as_save_IFS
3665
3666 fi
3667 fi
3668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3669 if test -n "$ac_ct_CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3671 $as_echo "$ac_ct_CC" >&6; }
3672 else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 fi
3676
3677 if test "x$ac_ct_CC" = x; then
3678 CC=""
3679 else
3680 case $cross_compiling:$ac_tool_warned in
3681 yes:)
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3684 ac_tool_warned=yes ;;
3685 esac
3686 CC=$ac_ct_CC
3687 fi
3688 else
3689 CC="$ac_cv_prog_CC"
3690 fi
3691
3692 if test -z "$CC"; then
3693 if test -n "$ac_tool_prefix"; then
3694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3695 set dummy ${ac_tool_prefix}cc; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if ${ac_cv_prog_CC+:} false; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 if test -n "$CC"; then
3702 ac_cv_prog_CC="$CC" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711 ac_cv_prog_CC="${ac_tool_prefix}cc"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3714 fi
3715 done
3716 done
3717 IFS=$as_save_IFS
3718
3719 fi
3720 fi
3721 CC=$ac_cv_prog_CC
3722 if test -n "$CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3724 $as_echo "$CC" >&6; }
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 fi
3729
3730
3731 fi
3732 fi
3733 if test -z "$CC"; then
3734 # Extract the first word of "cc", so it can be a program name with args.
3735 set dummy cc; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if ${ac_cv_prog_CC+:} false; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 if test -n "$CC"; then
3742 ac_cv_prog_CC="$CC" # Let the user override the test.
3743 else
3744 ac_prog_rejected=no
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3753 ac_prog_rejected=yes
3754 continue
3755 fi
3756 ac_cv_prog_CC="cc"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760 done
3761 done
3762 IFS=$as_save_IFS
3763
3764 if test $ac_prog_rejected = yes; then
3765 # We found a bogon in the path, so make sure we never use it.
3766 set dummy $ac_cv_prog_CC
3767 shift
3768 if test $# != 0; then
3769 # We chose a different compiler from the bogus one.
3770 # However, it has the same basename, so the bogon will be chosen
3771 # first if we set CC to just the basename; use the full file name.
3772 shift
3773 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3774 fi
3775 fi
3776 fi
3777 fi
3778 CC=$ac_cv_prog_CC
3779 if test -n "$CC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3781 $as_echo "$CC" >&6; }
3782 else
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3785 fi
3786
3787
3788 fi
3789 if test -z "$CC"; then
3790 if test -n "$ac_tool_prefix"; then
3791 for ac_prog in cl.exe
3792 do
3793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_prog_CC+:} false; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 if test -n "$CC"; then
3801 ac_cv_prog_CC="$CC" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 break 2
3813 fi
3814 done
3815 done
3816 IFS=$as_save_IFS
3817
3818 fi
3819 fi
3820 CC=$ac_cv_prog_CC
3821 if test -n "$CC"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3823 $as_echo "$CC" >&6; }
3824 else
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3827 fi
3828
3829
3830 test -n "$CC" && break
3831 done
3832 fi
3833 if test -z "$CC"; then
3834 ac_ct_CC=$CC
3835 for ac_prog in cl.exe
3836 do
3837 # Extract the first word of "$ac_prog", so it can be a program name with args.
3838 set dummy $ac_prog; ac_word=$2
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840 $as_echo_n "checking for $ac_word... " >&6; }
3841 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 if test -n "$ac_ct_CC"; then
3845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3846 else
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH
3849 do
3850 IFS=$as_save_IFS
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3854 ac_cv_prog_ac_ct_CC="$ac_prog"
3855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 break 2
3857 fi
3858 done
3859 done
3860 IFS=$as_save_IFS
3861
3862 fi
3863 fi
3864 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3865 if test -n "$ac_ct_CC"; then
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3867 $as_echo "$ac_ct_CC" >&6; }
3868 else
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 $as_echo "no" >&6; }
3871 fi
3872
3873
3874 test -n "$ac_ct_CC" && break
3875 done
3876
3877 if test "x$ac_ct_CC" = x; then
3878 CC=""
3879 else
3880 case $cross_compiling:$ac_tool_warned in
3881 yes:)
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3884 ac_tool_warned=yes ;;
3885 esac
3886 CC=$ac_ct_CC
3887 fi
3888 fi
3889
3890 fi
3891
3892
3893 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3895 as_fn_error $? "no acceptable C compiler found in \$PATH
3896 See \`config.log' for more details" "$LINENO" 5; }
3897
3898 # Provide some information about the compiler.
3899 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3900 set X $ac_compile
3901 ac_compiler=$2
3902 for ac_option in --version -v -V -qversion; do
3903 { { ac_try="$ac_compiler $ac_option >&5"
3904 case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3907 esac
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 $as_echo "$ac_try_echo"; } >&5
3910 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3911 ac_status=$?
3912 if test -s conftest.err; then
3913 sed '10a\
3914 ... rest of stderr output deleted ...
3915 10q' conftest.err >conftest.er1
3916 cat conftest.er1 >&5
3917 fi
3918 rm -f conftest.er1 conftest.err
3919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3920 test $ac_status = 0; }
3921 done
3922
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3925
3926 int
3927 main ()
3928 {
3929
3930 ;
3931 return 0;
3932 }
3933 _ACEOF
3934 ac_clean_files_save=$ac_clean_files
3935 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3936 # Try to create an executable without -o first, disregard a.out.
3937 # It will help us diagnose broken compilers, and finding out an intuition
3938 # of exeext.
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3940 $as_echo_n "checking whether the C compiler works... " >&6; }
3941 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3942
3943 # The possible output files:
3944 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3945
3946 ac_rmfiles=
3947 for ac_file in $ac_files
3948 do
3949 case $ac_file in
3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3951 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3952 esac
3953 done
3954 rm -f $ac_rmfiles
3955
3956 if { { ac_try="$ac_link_default"
3957 case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_link_default") 2>&5
3964 ac_status=$?
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }; then :
3967 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3968 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3969 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3970 # so that the user can short-circuit this test for compilers unknown to
3971 # Autoconf.
3972 for ac_file in $ac_files ''
3973 do
3974 test -f "$ac_file" || continue
3975 case $ac_file in
3976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3977 ;;
3978 [ab].out )
3979 # We found the default executable, but exeext='' is most
3980 # certainly right.
3981 break;;
3982 *.* )
3983 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3984 then :; else
3985 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3986 fi
3987 # We set ac_cv_exeext here because the later test for it is not
3988 # safe: cross compilers may not add the suffix if given an `-o'
3989 # argument, so we may need to know it at that point already.
3990 # Even if this section looks crufty: it has the advantage of
3991 # actually working.
3992 break;;
3993 * )
3994 break;;
3995 esac
3996 done
3997 test "$ac_cv_exeext" = no && ac_cv_exeext=
3998
3999 else
4000 ac_file=''
4001 fi
4002 if test -z "$ac_file"; then :
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 $as_echo "no" >&6; }
4005 $as_echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4007
4008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4010 as_fn_error 77 "C compiler cannot create executables
4011 See \`config.log' for more details" "$LINENO" 5; }
4012 else
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4014 $as_echo "yes" >&6; }
4015 fi
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4017 $as_echo_n "checking for C compiler default output file name... " >&6; }
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4019 $as_echo "$ac_file" >&6; }
4020 ac_exeext=$ac_cv_exeext
4021
4022 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4023 ac_clean_files=$ac_clean_files_save
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4025 $as_echo_n "checking for suffix of executables... " >&6; }
4026 if { { ac_try="$ac_link"
4027 case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030 esac
4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032 $as_echo "$ac_try_echo"; } >&5
4033 (eval "$ac_link") 2>&5
4034 ac_status=$?
4035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036 test $ac_status = 0; }; then :
4037 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4038 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4039 # work properly (i.e., refer to `conftest.exe'), while it won't with
4040 # `rm'.
4041 for ac_file in conftest.exe conftest conftest.*; do
4042 test -f "$ac_file" || continue
4043 case $ac_file in
4044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4045 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4046 break;;
4047 * ) break;;
4048 esac
4049 done
4050 else
4051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4054 See \`config.log' for more details" "$LINENO" 5; }
4055 fi
4056 rm -f conftest conftest$ac_cv_exeext
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4058 $as_echo "$ac_cv_exeext" >&6; }
4059
4060 rm -f conftest.$ac_ext
4061 EXEEXT=$ac_cv_exeext
4062 ac_exeext=$EXEEXT
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #include <stdio.h>
4066 int
4067 main ()
4068 {
4069 FILE *f = fopen ("conftest.out", "w");
4070 return ferror (f) || fclose (f) != 0;
4071
4072 ;
4073 return 0;
4074 }
4075 _ACEOF
4076 ac_clean_files="$ac_clean_files conftest.out"
4077 # Check that the compiler produces executables we can run. If not, either
4078 # the compiler is broken, or we cross compile.
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4080 $as_echo_n "checking whether we are cross compiling... " >&6; }
4081 if test "$cross_compiling" != yes; then
4082 { { ac_try="$ac_link"
4083 case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086 esac
4087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4088 $as_echo "$ac_try_echo"; } >&5
4089 (eval "$ac_link") 2>&5
4090 ac_status=$?
4091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4092 test $ac_status = 0; }
4093 if { ac_try='./conftest$ac_cv_exeext'
4094 { { case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097 esac
4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099 $as_echo "$ac_try_echo"; } >&5
4100 (eval "$ac_try") 2>&5
4101 ac_status=$?
4102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103 test $ac_status = 0; }; }; then
4104 cross_compiling=no
4105 else
4106 if test "$cross_compiling" = maybe; then
4107 cross_compiling=yes
4108 else
4109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111 as_fn_error $? "cannot run C compiled programs.
4112 If you meant to cross compile, use \`--host'.
4113 See \`config.log' for more details" "$LINENO" 5; }
4114 fi
4115 fi
4116 fi
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4118 $as_echo "$cross_compiling" >&6; }
4119
4120 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4121 ac_clean_files=$ac_clean_files_save
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4123 $as_echo_n "checking for suffix of object files... " >&6; }
4124 if ${ac_cv_objext+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4129
4130 int
4131 main ()
4132 {
4133
4134 ;
4135 return 0;
4136 }
4137 _ACEOF
4138 rm -f conftest.o conftest.obj
4139 if { { ac_try="$ac_compile"
4140 case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4143 esac
4144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4145 $as_echo "$ac_try_echo"; } >&5
4146 (eval "$ac_compile") 2>&5
4147 ac_status=$?
4148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4149 test $ac_status = 0; }; then :
4150 for ac_file in conftest.o conftest.obj conftest.*; do
4151 test -f "$ac_file" || continue;
4152 case $ac_file in
4153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4154 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4155 break;;
4156 esac
4157 done
4158 else
4159 $as_echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4161
4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 as_fn_error $? "cannot compute suffix of object files: cannot compile
4165 See \`config.log' for more details" "$LINENO" 5; }
4166 fi
4167 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4168 fi
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4170 $as_echo "$ac_cv_objext" >&6; }
4171 OBJEXT=$ac_cv_objext
4172 ac_objext=$OBJEXT
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4174 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4175 if ${ac_cv_c_compiler_gnu+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180
4181 int
4182 main ()
4183 {
4184 #ifndef __GNUC__
4185 choke me
4186 #endif
4187
4188 ;
4189 return 0;
4190 }
4191 _ACEOF
4192 if ac_fn_c_try_compile "$LINENO"; then :
4193 ac_compiler_gnu=yes
4194 else
4195 ac_compiler_gnu=no
4196 fi
4197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4199
4200 fi
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4202 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4203 if test $ac_compiler_gnu = yes; then
4204 GCC=yes
4205 else
4206 GCC=
4207 fi
4208 ac_test_CFLAGS=${CFLAGS+set}
4209 ac_save_CFLAGS=$CFLAGS
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4211 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4212 if ${ac_cv_prog_cc_g+:} false; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 ac_save_c_werror_flag=$ac_c_werror_flag
4216 ac_c_werror_flag=yes
4217 ac_cv_prog_cc_g=no
4218 CFLAGS="-g"
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4221
4222 int
4223 main ()
4224 {
4225
4226 ;
4227 return 0;
4228 }
4229 _ACEOF
4230 if ac_fn_c_try_compile "$LINENO"; then :
4231 ac_cv_prog_cc_g=yes
4232 else
4233 CFLAGS=""
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236
4237 int
4238 main ()
4239 {
4240
4241 ;
4242 return 0;
4243 }
4244 _ACEOF
4245 if ac_fn_c_try_compile "$LINENO"; then :
4246
4247 else
4248 ac_c_werror_flag=$ac_save_c_werror_flag
4249 CFLAGS="-g"
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252
4253 int
4254 main ()
4255 {
4256
4257 ;
4258 return 0;
4259 }
4260 _ACEOF
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262 ac_cv_prog_cc_g=yes
4263 fi
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265 fi
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4267 fi
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 ac_c_werror_flag=$ac_save_c_werror_flag
4270 fi
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4272 $as_echo "$ac_cv_prog_cc_g" >&6; }
4273 if test "$ac_test_CFLAGS" = set; then
4274 CFLAGS=$ac_save_CFLAGS
4275 elif test $ac_cv_prog_cc_g = yes; then
4276 if test "$GCC" = yes; then
4277 CFLAGS="-g -O2"
4278 else
4279 CFLAGS="-g"
4280 fi
4281 else
4282 if test "$GCC" = yes; then
4283 CFLAGS="-O2"
4284 else
4285 CFLAGS=
4286 fi
4287 fi
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4289 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4290 if ${ac_cv_prog_cc_c89+:} false; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 ac_cv_prog_cc_c89=no
4294 ac_save_CC=$CC
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297 #include <stdarg.h>
4298 #include <stdio.h>
4299 struct stat;
4300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4301 struct buf { int x; };
4302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4303 static char *e (p, i)
4304 char **p;
4305 int i;
4306 {
4307 return p[i];
4308 }
4309 static char *f (char * (*g) (char **, int), char **p, ...)
4310 {
4311 char *s;
4312 va_list v;
4313 va_start (v,p);
4314 s = g (p, va_arg (v,int));
4315 va_end (v);
4316 return s;
4317 }
4318
4319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4320 function prototypes and stuff, but not '\xHH' hex character constants.
4321 These don't provoke an error unfortunately, instead are silently treated
4322 as 'x'. The following induces an error, until -std is added to get
4323 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4324 array size at least. It's necessary to write '\x00'==0 to get something
4325 that's true only with -std. */
4326 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4327
4328 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4329 inside strings and character constants. */
4330 #define FOO(x) 'x'
4331 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4332
4333 int test (int i, double x);
4334 struct s1 {int (*f) (int a);};
4335 struct s2 {int (*f) (double a);};
4336 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4337 int argc;
4338 char **argv;
4339 int
4340 main ()
4341 {
4342 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4343 ;
4344 return 0;
4345 }
4346 _ACEOF
4347 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4348 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4349 do
4350 CC="$ac_save_CC $ac_arg"
4351 if ac_fn_c_try_compile "$LINENO"; then :
4352 ac_cv_prog_cc_c89=$ac_arg
4353 fi
4354 rm -f core conftest.err conftest.$ac_objext
4355 test "x$ac_cv_prog_cc_c89" != "xno" && break
4356 done
4357 rm -f conftest.$ac_ext
4358 CC=$ac_save_CC
4359
4360 fi
4361 # AC_CACHE_VAL
4362 case "x$ac_cv_prog_cc_c89" in
4363 x)
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4365 $as_echo "none needed" >&6; } ;;
4366 xno)
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4368 $as_echo "unsupported" >&6; } ;;
4369 *)
4370 CC="$CC $ac_cv_prog_cc_c89"
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4372 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4373 esac
4374 if test "x$ac_cv_prog_cc_c89" != xno; then :
4375
4376 fi
4377
4378 ac_ext=c
4379 ac_cpp='$CPP $CPPFLAGS'
4380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383
4384 ac_ext=c
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4390 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4391 if ${am_cv_prog_cc_c_o+:} false; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396
4397 int
4398 main ()
4399 {
4400
4401 ;
4402 return 0;
4403 }
4404 _ACEOF
4405 # Make sure it works both with $CC and with simple cc.
4406 # Following AC_PROG_CC_C_O, we do the test twice because some
4407 # compilers refuse to overwrite an existing .o file with -o,
4408 # though they will create one.
4409 am_cv_prog_cc_c_o=yes
4410 for am_i in 1 2; do
4411 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4412 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } \
4416 && test -f conftest2.$ac_objext; then
4417 : OK
4418 else
4419 am_cv_prog_cc_c_o=no
4420 break
4421 fi
4422 done
4423 rm -f core conftest*
4424 unset am_i
4425 fi
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4427 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4428 if test "$am_cv_prog_cc_c_o" != yes; then
4429 # Losing compiler, so override with the script.
4430 # FIXME: It is wrong to rewrite CC.
4431 # But if we don't then we get into trouble of one sort or another.
4432 # A longer-term fix would be to have automake use am__CC in this case,
4433 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4434 CC="$am_aux_dir/compile $CC"
4435 fi
4436 ac_ext=c
4437 ac_cpp='$CPP $CPPFLAGS'
4438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4441
4442 DEPDIR="${am__leading_dot}deps"
4443
4444 ac_config_commands="$ac_config_commands depfiles"
4445
4446
4447 am_make=${MAKE-make}
4448 cat > confinc << 'END'
4449 am__doit:
4450 @echo this is the am__doit target
4451 .PHONY: am__doit
4452 END
4453 # If we don't find an include directive, just comment out the code.
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4455 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4456 am__include="#"
4457 am__quote=
4458 _am_result=none
4459 # First try GNU make style include.
4460 echo "include confinc" > confmf
4461 # Ignore all kinds of additional output from 'make'.
4462 case `$am_make -s -f confmf 2> /dev/null` in #(
4463 *the\ am__doit\ target*)
4464 am__include=include
4465 am__quote=
4466 _am_result=GNU
4467 ;;
4468 esac
4469 # Now try BSD make style include.
4470 if test "$am__include" = "#"; then
4471 echo '.include "confinc"' > confmf
4472 case `$am_make -s -f confmf 2> /dev/null` in #(
4473 *the\ am__doit\ target*)
4474 am__include=.include
4475 am__quote="\""
4476 _am_result=BSD
4477 ;;
4478 esac
4479 fi
4480
4481
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4483 $as_echo "$_am_result" >&6; }
4484 rm -f confinc confmf
4485
4486 # Check whether --enable-dependency-tracking was given.
4487 if test "${enable_dependency_tracking+set}" = set; then :
4488 enableval=$enable_dependency_tracking;
4489 fi
4490
4491 if test "x$enable_dependency_tracking" != xno; then
4492 am_depcomp="$ac_aux_dir/depcomp"
4493 AMDEPBACKSLASH='\'
4494 am__nodep='_no'
4495 fi
4496 if test "x$enable_dependency_tracking" != xno; then
4497 AMDEP_TRUE=
4498 AMDEP_FALSE='#'
4499 else
4500 AMDEP_TRUE='#'
4501 AMDEP_FALSE=
4502 fi
4503
4504
4505
4506 depcc="$CC" am_compiler_list=
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4509 $as_echo_n "checking dependency style of $depcc... " >&6; }
4510 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4514 # We make a subdir and do the tests there. Otherwise we can end up
4515 # making bogus files that we don't know about and never remove. For
4516 # instance it was reported that on HP-UX the gcc test will end up
4517 # making a dummy file named 'D' -- because '-MD' means "put the output
4518 # in D".
4519 rm -rf conftest.dir
4520 mkdir conftest.dir
4521 # Copy depcomp to subdir because otherwise we won't find it if we're
4522 # using a relative directory.
4523 cp "$am_depcomp" conftest.dir
4524 cd conftest.dir
4525 # We will build objects and dependencies in a subdirectory because
4526 # it helps to detect inapplicable dependency modes. For instance
4527 # both Tru64's cc and ICC support -MD to output dependencies as a
4528 # side effect of compilation, but ICC will put the dependencies in
4529 # the current directory while Tru64 will put them in the object
4530 # directory.
4531 mkdir sub
4532
4533 am_cv_CC_dependencies_compiler_type=none
4534 if test "$am_compiler_list" = ""; then
4535 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4536 fi
4537 am__universal=false
4538 case " $depcc " in #(
4539 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4540 esac
4541
4542 for depmode in $am_compiler_list; do
4543 # Setup a source with many dependencies, because some compilers
4544 # like to wrap large dependency lists on column 80 (with \), and
4545 # we should not choose a depcomp mode which is confused by this.
4546 #
4547 # We need to recreate these files for each test, as the compiler may
4548 # overwrite some of them when testing with obscure command lines.
4549 # This happens at least with the AIX C compiler.
4550 : > sub/conftest.c
4551 for i in 1 2 3 4 5 6; do
4552 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4553 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4554 # Solaris 10 /bin/sh.
4555 echo '/* dummy */' > sub/conftst$i.h
4556 done
4557 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4558
4559 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4560 # mode. It turns out that the SunPro C++ compiler does not properly
4561 # handle '-M -o', and we need to detect this. Also, some Intel
4562 # versions had trouble with output in subdirs.
4563 am__obj=sub/conftest.${OBJEXT-o}
4564 am__minus_obj="-o $am__obj"
4565 case $depmode in
4566 gcc)
4567 # This depmode causes a compiler race in universal mode.
4568 test "$am__universal" = false || continue
4569 ;;
4570 nosideeffect)
4571 # After this tag, mechanisms are not by side-effect, so they'll
4572 # only be used when explicitly requested.
4573 if test "x$enable_dependency_tracking" = xyes; then
4574 continue
4575 else
4576 break
4577 fi
4578 ;;
4579 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4580 # This compiler won't grok '-c -o', but also, the minuso test has
4581 # not run yet. These depmodes are late enough in the game, and
4582 # so weak that their functioning should not be impacted.
4583 am__obj=conftest.${OBJEXT-o}
4584 am__minus_obj=
4585 ;;
4586 none) break ;;
4587 esac
4588 if depmode=$depmode \
4589 source=sub/conftest.c object=$am__obj \
4590 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4591 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4592 >/dev/null 2>conftest.err &&
4593 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4594 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4595 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4596 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4597 # icc doesn't choke on unknown options, it will just issue warnings
4598 # or remarks (even with -Werror). So we grep stderr for any message
4599 # that says an option was ignored or not supported.
4600 # When given -MP, icc 7.0 and 7.1 complain thusly:
4601 # icc: Command line warning: ignoring option '-M'; no argument required
4602 # The diagnosis changed in icc 8.0:
4603 # icc: Command line remark: option '-MP' not supported
4604 if (grep 'ignoring option' conftest.err ||
4605 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4606 am_cv_CC_dependencies_compiler_type=$depmode
4607 break
4608 fi
4609 fi
4610 done
4611
4612 cd ..
4613 rm -rf conftest.dir
4614 else
4615 am_cv_CC_dependencies_compiler_type=none
4616 fi
4617
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4620 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4621 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4622
4623 if
4624 test "x$enable_dependency_tracking" != xno \
4625 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4626 am__fastdepCC_TRUE=
4627 am__fastdepCC_FALSE='#'
4628 else
4629 am__fastdepCC_TRUE='#'
4630 am__fastdepCC_FALSE=
4631 fi
4632
4633
4634 ac_ext=cpp
4635 ac_cpp='$CXXCPP $CPPFLAGS'
4636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4639 if test -z "$CXX"; then
4640 if test -n "$CCC"; then
4641 CXX=$CCC
4642 else
4643 if test -n "$ac_tool_prefix"; then
4644 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4645 do
4646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if ${ac_cv_prog_CXX+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 if test -n "$CXX"; then
4654 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667 done
4668 done
4669 IFS=$as_save_IFS
4670
4671 fi
4672 fi
4673 CXX=$ac_cv_prog_CXX
4674 if test -n "$CXX"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4676 $as_echo "$CXX" >&6; }
4677 else
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4680 fi
4681
4682
4683 test -n "$CXX" && break
4684 done
4685 fi
4686 if test -z "$CXX"; then
4687 ac_ct_CXX=$CXX
4688 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4689 do
4690 # Extract the first word of "$ac_prog", so it can be a program name with args.
4691 set dummy $ac_prog; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4695 $as_echo_n "(cached) " >&6
4696 else
4697 if test -n "$ac_ct_CXX"; then
4698 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_prog_ac_ct_CXX="$ac_prog"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711 done
4712 done
4713 IFS=$as_save_IFS
4714
4715 fi
4716 fi
4717 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4718 if test -n "$ac_ct_CXX"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4720 $as_echo "$ac_ct_CXX" >&6; }
4721 else
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4724 fi
4725
4726
4727 test -n "$ac_ct_CXX" && break
4728 done
4729
4730 if test "x$ac_ct_CXX" = x; then
4731 CXX="g++"
4732 else
4733 case $cross_compiling:$ac_tool_warned in
4734 yes:)
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4737 ac_tool_warned=yes ;;
4738 esac
4739 CXX=$ac_ct_CXX
4740 fi
4741 fi
4742
4743 fi
4744 fi
4745 # Provide some information about the compiler.
4746 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4747 set X $ac_compile
4748 ac_compiler=$2
4749 for ac_option in --version -v -V -qversion; do
4750 { { ac_try="$ac_compiler $ac_option >&5"
4751 case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754 esac
4755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4756 $as_echo "$ac_try_echo"; } >&5
4757 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4758 ac_status=$?
4759 if test -s conftest.err; then
4760 sed '10a\
4761 ... rest of stderr output deleted ...
4762 10q' conftest.err >conftest.er1
4763 cat conftest.er1 >&5
4764 fi
4765 rm -f conftest.er1 conftest.err
4766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4767 test $ac_status = 0; }
4768 done
4769
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4771 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4772 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777
4778 int
4779 main ()
4780 {
4781 #ifndef __GNUC__
4782 choke me
4783 #endif
4784
4785 ;
4786 return 0;
4787 }
4788 _ACEOF
4789 if ac_fn_cxx_try_compile "$LINENO"; then :
4790 ac_compiler_gnu=yes
4791 else
4792 ac_compiler_gnu=no
4793 fi
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4796
4797 fi
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4799 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4800 if test $ac_compiler_gnu = yes; then
4801 GXX=yes
4802 else
4803 GXX=
4804 fi
4805 ac_test_CXXFLAGS=${CXXFLAGS+set}
4806 ac_save_CXXFLAGS=$CXXFLAGS
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4808 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4809 if ${ac_cv_prog_cxx_g+:} false; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4813 ac_cxx_werror_flag=yes
4814 ac_cv_prog_cxx_g=no
4815 CXXFLAGS="-g"
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818
4819 int
4820 main ()
4821 {
4822
4823 ;
4824 return 0;
4825 }
4826 _ACEOF
4827 if ac_fn_cxx_try_compile "$LINENO"; then :
4828 ac_cv_prog_cxx_g=yes
4829 else
4830 CXXFLAGS=""
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833
4834 int
4835 main ()
4836 {
4837
4838 ;
4839 return 0;
4840 }
4841 _ACEOF
4842 if ac_fn_cxx_try_compile "$LINENO"; then :
4843
4844 else
4845 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4846 CXXFLAGS="-g"
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849
4850 int
4851 main ()
4852 {
4853
4854 ;
4855 return 0;
4856 }
4857 _ACEOF
4858 if ac_fn_cxx_try_compile "$LINENO"; then :
4859 ac_cv_prog_cxx_g=yes
4860 fi
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 fi
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 fi
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4867 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4869 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4870 if test "$ac_test_CXXFLAGS" = set; then
4871 CXXFLAGS=$ac_save_CXXFLAGS
4872 elif test $ac_cv_prog_cxx_g = yes; then
4873 if test "$GXX" = yes; then
4874 CXXFLAGS="-g -O2"
4875 else
4876 CXXFLAGS="-g"
4877 fi
4878 else
4879 if test "$GXX" = yes; then
4880 CXXFLAGS="-O2"
4881 else
4882 CXXFLAGS=
4883 fi
4884 fi
4885 ac_ext=c
4886 ac_cpp='$CPP $CPPFLAGS'
4887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4890
4891 depcc="$CXX" am_compiler_list=
4892
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4894 $as_echo_n "checking dependency style of $depcc... " >&6; }
4895 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4899 # We make a subdir and do the tests there. Otherwise we can end up
4900 # making bogus files that we don't know about and never remove. For
4901 # instance it was reported that on HP-UX the gcc test will end up
4902 # making a dummy file named 'D' -- because '-MD' means "put the output
4903 # in D".
4904 rm -rf conftest.dir
4905 mkdir conftest.dir
4906 # Copy depcomp to subdir because otherwise we won't find it if we're
4907 # using a relative directory.
4908 cp "$am_depcomp" conftest.dir
4909 cd conftest.dir
4910 # We will build objects and dependencies in a subdirectory because
4911 # it helps to detect inapplicable dependency modes. For instance
4912 # both Tru64's cc and ICC support -MD to output dependencies as a
4913 # side effect of compilation, but ICC will put the dependencies in
4914 # the current directory while Tru64 will put them in the object
4915 # directory.
4916 mkdir sub
4917
4918 am_cv_CXX_dependencies_compiler_type=none
4919 if test "$am_compiler_list" = ""; then
4920 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4921 fi
4922 am__universal=false
4923 case " $depcc " in #(
4924 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4925 esac
4926
4927 for depmode in $am_compiler_list; do
4928 # Setup a source with many dependencies, because some compilers
4929 # like to wrap large dependency lists on column 80 (with \), and
4930 # we should not choose a depcomp mode which is confused by this.
4931 #
4932 # We need to recreate these files for each test, as the compiler may
4933 # overwrite some of them when testing with obscure command lines.
4934 # This happens at least with the AIX C compiler.
4935 : > sub/conftest.c
4936 for i in 1 2 3 4 5 6; do
4937 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4938 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4939 # Solaris 10 /bin/sh.
4940 echo '/* dummy */' > sub/conftst$i.h
4941 done
4942 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4943
4944 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4945 # mode. It turns out that the SunPro C++ compiler does not properly
4946 # handle '-M -o', and we need to detect this. Also, some Intel
4947 # versions had trouble with output in subdirs.
4948 am__obj=sub/conftest.${OBJEXT-o}
4949 am__minus_obj="-o $am__obj"
4950 case $depmode in
4951 gcc)
4952 # This depmode causes a compiler race in universal mode.
4953 test "$am__universal" = false || continue
4954 ;;
4955 nosideeffect)
4956 # After this tag, mechanisms are not by side-effect, so they'll
4957 # only be used when explicitly requested.
4958 if test "x$enable_dependency_tracking" = xyes; then
4959 continue
4960 else
4961 break
4962 fi
4963 ;;
4964 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4965 # This compiler won't grok '-c -o', but also, the minuso test has
4966 # not run yet. These depmodes are late enough in the game, and
4967 # so weak that their functioning should not be impacted.
4968 am__obj=conftest.${OBJEXT-o}
4969 am__minus_obj=
4970 ;;
4971 none) break ;;
4972 esac
4973 if depmode=$depmode \
4974 source=sub/conftest.c object=$am__obj \
4975 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4976 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4977 >/dev/null 2>conftest.err &&
4978 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4979 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4980 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4981 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4982 # icc doesn't choke on unknown options, it will just issue warnings
4983 # or remarks (even with -Werror). So we grep stderr for any message
4984 # that says an option was ignored or not supported.
4985 # When given -MP, icc 7.0 and 7.1 complain thusly:
4986 # icc: Command line warning: ignoring option '-M'; no argument required
4987 # The diagnosis changed in icc 8.0:
4988 # icc: Command line remark: option '-MP' not supported
4989 if (grep 'ignoring option' conftest.err ||
4990 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4991 am_cv_CXX_dependencies_compiler_type=$depmode
4992 break
4993 fi
4994 fi
4995 done
4996
4997 cd ..
4998 rm -rf conftest.dir
4999 else
5000 am_cv_CXX_dependencies_compiler_type=none
5001 fi
5002
5003 fi
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5005 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5006 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5007
5008 if
5009 test "x$enable_dependency_tracking" != xno \
5010 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5011 am__fastdepCXX_TRUE=
5012 am__fastdepCXX_FALSE='#'
5013 else
5014 am__fastdepCXX_TRUE='#'
5015 am__fastdepCXX_FALSE=
5016 fi
5017
5018
5019 # By default we simply use the C compiler to build assembly code.
5020
5021 test "${CCAS+set}" = set || CCAS=$CC
5022 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5023
5024
5025
5026 depcc="$CCAS" am_compiler_list=
5027
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5029 $as_echo_n "checking dependency style of $depcc... " >&6; }
5030 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5034 # We make a subdir and do the tests there. Otherwise we can end up
5035 # making bogus files that we don't know about and never remove. For
5036 # instance it was reported that on HP-UX the gcc test will end up
5037 # making a dummy file named 'D' -- because '-MD' means "put the output
5038 # in D".
5039 rm -rf conftest.dir
5040 mkdir conftest.dir
5041 # Copy depcomp to subdir because otherwise we won't find it if we're
5042 # using a relative directory.
5043 cp "$am_depcomp" conftest.dir
5044 cd conftest.dir
5045 # We will build objects and dependencies in a subdirectory because
5046 # it helps to detect inapplicable dependency modes. For instance
5047 # both Tru64's cc and ICC support -MD to output dependencies as a
5048 # side effect of compilation, but ICC will put the dependencies in
5049 # the current directory while Tru64 will put them in the object
5050 # directory.
5051 mkdir sub
5052
5053 am_cv_CCAS_dependencies_compiler_type=none
5054 if test "$am_compiler_list" = ""; then
5055 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5056 fi
5057 am__universal=false
5058
5059
5060 for depmode in $am_compiler_list; do
5061 # Setup a source with many dependencies, because some compilers
5062 # like to wrap large dependency lists on column 80 (with \), and
5063 # we should not choose a depcomp mode which is confused by this.
5064 #
5065 # We need to recreate these files for each test, as the compiler may
5066 # overwrite some of them when testing with obscure command lines.
5067 # This happens at least with the AIX C compiler.
5068 : > sub/conftest.c
5069 for i in 1 2 3 4 5 6; do
5070 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5071 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5072 # Solaris 10 /bin/sh.
5073 echo '/* dummy */' > sub/conftst$i.h
5074 done
5075 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5076
5077 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5078 # mode. It turns out that the SunPro C++ compiler does not properly
5079 # handle '-M -o', and we need to detect this. Also, some Intel
5080 # versions had trouble with output in subdirs.
5081 am__obj=sub/conftest.${OBJEXT-o}
5082 am__minus_obj="-o $am__obj"
5083 case $depmode in
5084 gcc)
5085 # This depmode causes a compiler race in universal mode.
5086 test "$am__universal" = false || continue
5087 ;;
5088 nosideeffect)
5089 # After this tag, mechanisms are not by side-effect, so they'll
5090 # only be used when explicitly requested.
5091 if test "x$enable_dependency_tracking" = xyes; then
5092 continue
5093 else
5094 break
5095 fi
5096 ;;
5097 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5098 # This compiler won't grok '-c -o', but also, the minuso test has
5099 # not run yet. These depmodes are late enough in the game, and
5100 # so weak that their functioning should not be impacted.
5101 am__obj=conftest.${OBJEXT-o}
5102 am__minus_obj=
5103 ;;
5104 none) break ;;
5105 esac
5106 if depmode=$depmode \
5107 source=sub/conftest.c object=$am__obj \
5108 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5109 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5110 >/dev/null 2>conftest.err &&
5111 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5112 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5113 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5114 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5115 # icc doesn't choke on unknown options, it will just issue warnings
5116 # or remarks (even with -Werror). So we grep stderr for any message
5117 # that says an option was ignored or not supported.
5118 # When given -MP, icc 7.0 and 7.1 complain thusly:
5119 # icc: Command line warning: ignoring option '-M'; no argument required
5120 # The diagnosis changed in icc 8.0:
5121 # icc: Command line remark: option '-MP' not supported
5122 if (grep 'ignoring option' conftest.err ||
5123 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5124 am_cv_CCAS_dependencies_compiler_type=$depmode
5125 break
5126 fi
5127 fi
5128 done
5129
5130 cd ..
5131 rm -rf conftest.dir
5132 else
5133 am_cv_CCAS_dependencies_compiler_type=none
5134 fi
5135
5136 fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5138 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5139 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5140
5141 if
5142 test "x$enable_dependency_tracking" != xno \
5143 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5144 am__fastdepCCAS_TRUE=
5145 am__fastdepCCAS_FALSE='#'
5146 else
5147 am__fastdepCCAS_TRUE='#'
5148 am__fastdepCCAS_FALSE=
5149 fi
5150
5151
5152
5153
5154
5155
5156 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
5157 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
5158 # in both places for now and restore CFLAGS at the end of config.
5159 save_CFLAGS="$CFLAGS"
5160
5161 # Find other programs we need.
5162 if test -n "$ac_tool_prefix"; then
5163 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5164 set dummy ${ac_tool_prefix}ar; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_prog_AR+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 if test -n "$AR"; then
5171 ac_cv_prog_AR="$AR" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_AR="${ac_tool_prefix}ar"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
5184 done
5185 done
5186 IFS=$as_save_IFS
5187
5188 fi
5189 fi
5190 AR=$ac_cv_prog_AR
5191 if test -n "$AR"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5193 $as_echo "$AR" >&6; }
5194 else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5197 fi
5198
5199
5200 fi
5201 if test -z "$ac_cv_prog_AR"; then
5202 ac_ct_AR=$AR
5203 # Extract the first word of "ar", so it can be a program name with args.
5204 set dummy ar; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if test -n "$ac_ct_AR"; then
5211 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220 ac_cv_prog_ac_ct_AR="ar"
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5223 fi
5224 done
5225 done
5226 IFS=$as_save_IFS
5227
5228 fi
5229 fi
5230 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5231 if test -n "$ac_ct_AR"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5233 $as_echo "$ac_ct_AR" >&6; }
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5237 fi
5238
5239 if test "x$ac_ct_AR" = x; then
5240 AR=""
5241 else
5242 case $cross_compiling:$ac_tool_warned in
5243 yes:)
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5246 ac_tool_warned=yes ;;
5247 esac
5248 AR=$ac_ct_AR
5249 fi
5250 else
5251 AR="$ac_cv_prog_AR"
5252 fi
5253
5254 if test -n "$ac_tool_prefix"; then
5255 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5256 set dummy ${ac_tool_prefix}nm; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_NM+:} false; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 if test -n "$NM"; then
5263 ac_cv_prog_NM="$NM" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272 ac_cv_prog_NM="${ac_tool_prefix}nm"
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5275 fi
5276 done
5277 done
5278 IFS=$as_save_IFS
5279
5280 fi
5281 fi
5282 NM=$ac_cv_prog_NM
5283 if test -n "$NM"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5285 $as_echo "$NM" >&6; }
5286 else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5289 fi
5290
5291
5292 fi
5293 if test -z "$ac_cv_prog_NM"; then
5294 ac_ct_NM=$NM
5295 # Extract the first word of "nm", so it can be a program name with args.
5296 set dummy nm; ac_word=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 if test -n "$ac_ct_NM"; then
5303 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5307 do
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5312 ac_cv_prog_ac_ct_NM="nm"
5313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5315 fi
5316 done
5317 done
5318 IFS=$as_save_IFS
5319
5320 fi
5321 fi
5322 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5323 if test -n "$ac_ct_NM"; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5325 $as_echo "$ac_ct_NM" >&6; }
5326 else
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5329 fi
5330
5331 if test "x$ac_ct_NM" = x; then
5332 NM=""
5333 else
5334 case $cross_compiling:$ac_tool_warned in
5335 yes:)
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5338 ac_tool_warned=yes ;;
5339 esac
5340 NM=$ac_ct_NM
5341 fi
5342 else
5343 NM="$ac_cv_prog_NM"
5344 fi
5345
5346 if test -n "$ac_tool_prefix"; then
5347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350 $as_echo_n "checking for $ac_word... " >&6; }
5351 if ${ac_cv_prog_RANLIB+:} false; then :
5352 $as_echo_n "(cached) " >&6
5353 else
5354 if test -n "$RANLIB"; then
5355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5356 else
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5359 do
5360 IFS=$as_save_IFS
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 break 2
5367 fi
5368 done
5369 done
5370 IFS=$as_save_IFS
5371
5372 fi
5373 fi
5374 RANLIB=$ac_cv_prog_RANLIB
5375 if test -n "$RANLIB"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5377 $as_echo "$RANLIB" >&6; }
5378 else
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 $as_echo "no" >&6; }
5381 fi
5382
5383
5384 fi
5385 if test -z "$ac_cv_prog_RANLIB"; then
5386 ac_ct_RANLIB=$RANLIB
5387 # Extract the first word of "ranlib", so it can be a program name with args.
5388 set dummy ranlib; ac_word=$2
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 if test -n "$ac_ct_RANLIB"; then
5395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5396 else
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5399 do
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_prog_ac_ct_RANLIB="ranlib"
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5407 fi
5408 done
5409 done
5410 IFS=$as_save_IFS
5411
5412 fi
5413 fi
5414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5415 if test -n "$ac_ct_RANLIB"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5417 $as_echo "$ac_ct_RANLIB" >&6; }
5418 else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5421 fi
5422
5423 if test "x$ac_ct_RANLIB" = x; then
5424 RANLIB="ranlib-not-found-in-path-error"
5425 else
5426 case $cross_compiling:$ac_tool_warned in
5427 yes:)
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5430 ac_tool_warned=yes ;;
5431 esac
5432 RANLIB=$ac_ct_RANLIB
5433 fi
5434 else
5435 RANLIB="$ac_cv_prog_RANLIB"
5436 fi
5437
5438 # Extract the first word of "perl", so it can be a program name with args.
5439 set dummy perl; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if ${ac_cv_path_PERL+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 case $PERL in
5446 [\\/]* | ?:[\\/]*)
5447 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5448 ;;
5449 *)
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5452 do
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5457 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5460 fi
5461 done
5462 done
5463 IFS=$as_save_IFS
5464
5465 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5466 ;;
5467 esac
5468 fi
5469 PERL=$ac_cv_path_PERL
5470 if test -n "$PERL"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5472 $as_echo "$PERL" >&6; }
5473 else
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5476 fi
5477
5478
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5480 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5481 set x ${MAKE-make}
5482 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5483 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 cat >conftest.make <<\_ACEOF
5487 SHELL = /bin/sh
5488 all:
5489 @echo '@@@%%%=$(MAKE)=@@@%%%'
5490 _ACEOF
5491 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5492 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5493 *@@@%%%=?*=@@@%%%*)
5494 eval ac_cv_prog_make_${ac_make}_set=yes;;
5495 *)
5496 eval ac_cv_prog_make_${ac_make}_set=no;;
5497 esac
5498 rm -f conftest.make
5499 fi
5500 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5502 $as_echo "yes" >&6; }
5503 SET_MAKE=
5504 else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5507 SET_MAKE="MAKE=${MAKE-make}"
5508 fi
5509
5510
5511
5512 # See if makeinfo has been installed and is modern enough
5513 # that we can use it.
5514
5515 # Extract the first word of "makeinfo", so it can be a program name with args.
5516 set dummy makeinfo; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_MAKEINFO+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test -n "$MAKEINFO"; then
5523 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532 ac_cv_prog_MAKEINFO="makeinfo"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5535 fi
5536 done
5537 done
5538 IFS=$as_save_IFS
5539
5540 fi
5541 fi
5542 MAKEINFO=$ac_cv_prog_MAKEINFO
5543 if test -n "$MAKEINFO"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5545 $as_echo "$MAKEINFO" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5549 fi
5550
5551
5552 if test -n "$MAKEINFO"; then
5553 # Found it, now check the version.
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5555 $as_echo_n "checking for modern makeinfo... " >&6; }
5556 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5560 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5561
5562 case $ac_prog_version in
5563 '') gcc_cv_prog_makeinfo_modern=no;;
5564 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5565 *) gcc_cv_prog_makeinfo_modern=no;;
5566 esac
5567
5568 fi
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5570 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5571 else
5572 gcc_cv_prog_makeinfo_modern=no
5573 fi
5574 if test $gcc_cv_prog_makeinfo_modern = no; then
5575 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5576 fi
5577
5578 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5579 BUILD_INFO_TRUE=
5580 BUILD_INFO_FALSE='#'
5581 else
5582 BUILD_INFO_TRUE='#'
5583 BUILD_INFO_FALSE=
5584 fi
5585
5586
5587
5588 # Configure libtool
5589 case `pwd` in
5590 *\ * | *\ *)
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5592 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5593 esac
5594
5595
5596
5597 macro_version='2.2.7a'
5598 macro_revision='1.3134'
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612 ltmain="$ac_aux_dir/ltmain.sh"
5613
5614 # Backslashify metacharacters that are still active within
5615 # double-quoted strings.
5616 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5617
5618 # Same as above, but do not quote variable references.
5619 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5620
5621 # Sed substitution to delay expansion of an escaped shell variable in a
5622 # double_quote_subst'ed string.
5623 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5624
5625 # Sed substitution to delay expansion of an escaped single quote.
5626 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5627
5628 # Sed substitution to avoid accidental globbing in evaled expressions
5629 no_glob_subst='s/\*/\\\*/g'
5630
5631 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5632 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5633 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5634
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5636 $as_echo_n "checking how to print strings... " >&6; }
5637 # Test print first, because it will be a builtin if present.
5638 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5639 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5640 ECHO='print -r --'
5641 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5642 ECHO='printf %s\n'
5643 else
5644 # Use this function as a fallback that always works.
5645 func_fallback_echo ()
5646 {
5647 eval 'cat <<_LTECHO_EOF
5648 $1
5649 _LTECHO_EOF'
5650 }
5651 ECHO='func_fallback_echo'
5652 fi
5653
5654 # func_echo_all arg...
5655 # Invoke $ECHO with all args, space-separated.
5656 func_echo_all ()
5657 {
5658 $ECHO ""
5659 }
5660
5661 case "$ECHO" in
5662 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5663 $as_echo "printf" >&6; } ;;
5664 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5665 $as_echo "print -r" >&6; } ;;
5666 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5667 $as_echo "cat" >&6; } ;;
5668 esac
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5684 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5685 if ${ac_cv_path_SED+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5689 for ac_i in 1 2 3 4 5 6 7; do
5690 ac_script="$ac_script$as_nl$ac_script"
5691 done
5692 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5693 { ac_script=; unset ac_script;}
5694 if test -z "$SED"; then
5695 ac_path_SED_found=false
5696 # Loop through the user's path and test for each of PROGNAME-LIST
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5699 do
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_prog in sed gsed; do
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5705 as_fn_executable_p "$ac_path_SED" || continue
5706 # Check for GNU ac_path_SED and select it if it is found.
5707 # Check for GNU $ac_path_SED
5708 case `"$ac_path_SED" --version 2>&1` in
5709 *GNU*)
5710 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5711 *)
5712 ac_count=0
5713 $as_echo_n 0123456789 >"conftest.in"
5714 while :
5715 do
5716 cat "conftest.in" "conftest.in" >"conftest.tmp"
5717 mv "conftest.tmp" "conftest.in"
5718 cp "conftest.in" "conftest.nl"
5719 $as_echo '' >> "conftest.nl"
5720 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5722 as_fn_arith $ac_count + 1 && ac_count=$as_val
5723 if test $ac_count -gt ${ac_path_SED_max-0}; then
5724 # Best one so far, save it but keep looking for a better one
5725 ac_cv_path_SED="$ac_path_SED"
5726 ac_path_SED_max=$ac_count
5727 fi
5728 # 10*(2^10) chars as input seems more than enough
5729 test $ac_count -gt 10 && break
5730 done
5731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5732 esac
5733
5734 $ac_path_SED_found && break 3
5735 done
5736 done
5737 done
5738 IFS=$as_save_IFS
5739 if test -z "$ac_cv_path_SED"; then
5740 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5741 fi
5742 else
5743 ac_cv_path_SED=$SED
5744 fi
5745
5746 fi
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5748 $as_echo "$ac_cv_path_SED" >&6; }
5749 SED="$ac_cv_path_SED"
5750 rm -f conftest.sed
5751
5752 test -z "$SED" && SED=sed
5753 Xsed="$SED -e 1s/^X//"
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5766 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5767 if ${ac_cv_path_GREP+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 if test -z "$GREP"; then
5771 ac_path_GREP_found=false
5772 # Loop through the user's path and test for each of PROGNAME-LIST
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5775 do
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_prog in grep ggrep; do
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5781 as_fn_executable_p "$ac_path_GREP" || continue
5782 # Check for GNU ac_path_GREP and select it if it is found.
5783 # Check for GNU $ac_path_GREP
5784 case `"$ac_path_GREP" --version 2>&1` in
5785 *GNU*)
5786 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5787 *)
5788 ac_count=0
5789 $as_echo_n 0123456789 >"conftest.in"
5790 while :
5791 do
5792 cat "conftest.in" "conftest.in" >"conftest.tmp"
5793 mv "conftest.tmp" "conftest.in"
5794 cp "conftest.in" "conftest.nl"
5795 $as_echo 'GREP' >> "conftest.nl"
5796 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5798 as_fn_arith $ac_count + 1 && ac_count=$as_val
5799 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5800 # Best one so far, save it but keep looking for a better one
5801 ac_cv_path_GREP="$ac_path_GREP"
5802 ac_path_GREP_max=$ac_count
5803 fi
5804 # 10*(2^10) chars as input seems more than enough
5805 test $ac_count -gt 10 && break
5806 done
5807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5808 esac
5809
5810 $ac_path_GREP_found && break 3
5811 done
5812 done
5813 done
5814 IFS=$as_save_IFS
5815 if test -z "$ac_cv_path_GREP"; then
5816 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5817 fi
5818 else
5819 ac_cv_path_GREP=$GREP
5820 fi
5821
5822 fi
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5824 $as_echo "$ac_cv_path_GREP" >&6; }
5825 GREP="$ac_cv_path_GREP"
5826
5827
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5829 $as_echo_n "checking for egrep... " >&6; }
5830 if ${ac_cv_path_EGREP+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5834 then ac_cv_path_EGREP="$GREP -E"
5835 else
5836 if test -z "$EGREP"; then
5837 ac_path_EGREP_found=false
5838 # Loop through the user's path and test for each of PROGNAME-LIST
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5841 do
5842 IFS=$as_save_IFS
5843 test -z "$as_dir" && as_dir=.
5844 for ac_prog in egrep; do
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5847 as_fn_executable_p "$ac_path_EGREP" || continue
5848 # Check for GNU ac_path_EGREP and select it if it is found.
5849 # Check for GNU $ac_path_EGREP
5850 case `"$ac_path_EGREP" --version 2>&1` in
5851 *GNU*)
5852 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5853 *)
5854 ac_count=0
5855 $as_echo_n 0123456789 >"conftest.in"
5856 while :
5857 do
5858 cat "conftest.in" "conftest.in" >"conftest.tmp"
5859 mv "conftest.tmp" "conftest.in"
5860 cp "conftest.in" "conftest.nl"
5861 $as_echo 'EGREP' >> "conftest.nl"
5862 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5863 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5864 as_fn_arith $ac_count + 1 && ac_count=$as_val
5865 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5866 # Best one so far, save it but keep looking for a better one
5867 ac_cv_path_EGREP="$ac_path_EGREP"
5868 ac_path_EGREP_max=$ac_count
5869 fi
5870 # 10*(2^10) chars as input seems more than enough
5871 test $ac_count -gt 10 && break
5872 done
5873 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5874 esac
5875
5876 $ac_path_EGREP_found && break 3
5877 done
5878 done
5879 done
5880 IFS=$as_save_IFS
5881 if test -z "$ac_cv_path_EGREP"; then
5882 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5883 fi
5884 else
5885 ac_cv_path_EGREP=$EGREP
5886 fi
5887
5888 fi
5889 fi
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5891 $as_echo "$ac_cv_path_EGREP" >&6; }
5892 EGREP="$ac_cv_path_EGREP"
5893
5894
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5896 $as_echo_n "checking for fgrep... " >&6; }
5897 if ${ac_cv_path_FGREP+:} false; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5901 then ac_cv_path_FGREP="$GREP -F"
5902 else
5903 if test -z "$FGREP"; then
5904 ac_path_FGREP_found=false
5905 # Loop through the user's path and test for each of PROGNAME-LIST
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5908 do
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
5911 for ac_prog in fgrep; do
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5914 as_fn_executable_p "$ac_path_FGREP" || continue
5915 # Check for GNU ac_path_FGREP and select it if it is found.
5916 # Check for GNU $ac_path_FGREP
5917 case `"$ac_path_FGREP" --version 2>&1` in
5918 *GNU*)
5919 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5920 *)
5921 ac_count=0
5922 $as_echo_n 0123456789 >"conftest.in"
5923 while :
5924 do
5925 cat "conftest.in" "conftest.in" >"conftest.tmp"
5926 mv "conftest.tmp" "conftest.in"
5927 cp "conftest.in" "conftest.nl"
5928 $as_echo 'FGREP' >> "conftest.nl"
5929 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5931 as_fn_arith $ac_count + 1 && ac_count=$as_val
5932 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5933 # Best one so far, save it but keep looking for a better one
5934 ac_cv_path_FGREP="$ac_path_FGREP"
5935 ac_path_FGREP_max=$ac_count
5936 fi
5937 # 10*(2^10) chars as input seems more than enough
5938 test $ac_count -gt 10 && break
5939 done
5940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5941 esac
5942
5943 $ac_path_FGREP_found && break 3
5944 done
5945 done
5946 done
5947 IFS=$as_save_IFS
5948 if test -z "$ac_cv_path_FGREP"; then
5949 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5950 fi
5951 else
5952 ac_cv_path_FGREP=$FGREP
5953 fi
5954
5955 fi
5956 fi
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5958 $as_echo "$ac_cv_path_FGREP" >&6; }
5959 FGREP="$ac_cv_path_FGREP"
5960
5961
5962 test -z "$GREP" && GREP=grep
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982 # Check whether --with-gnu-ld was given.
5983 if test "${with_gnu_ld+set}" = set; then :
5984 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5985 else
5986 with_gnu_ld=no
5987 fi
5988
5989 ac_prog=ld
5990 if test "$GCC" = yes; then
5991 # Check if gcc -print-prog-name=ld gives a path.
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5993 $as_echo_n "checking for ld used by $CC... " >&6; }
5994 case $host in
5995 *-*-mingw*)
5996 # gcc leaves a trailing carriage return which upsets mingw
5997 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5998 *)
5999 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6000 esac
6001 case $ac_prog in
6002 # Accept absolute paths.
6003 [\\/]* | ?:[\\/]*)
6004 re_direlt='/[^/][^/]*/\.\./'
6005 # Canonicalize the pathname of ld
6006 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6007 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6008 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6009 done
6010 test -z "$LD" && LD="$ac_prog"
6011 ;;
6012 "")
6013 # If it fails, then pretend we aren't using GCC.
6014 ac_prog=ld
6015 ;;
6016 *)
6017 # If it is relative, then search for the first ld in PATH.
6018 with_gnu_ld=unknown
6019 ;;
6020 esac
6021 elif test "$with_gnu_ld" = yes; then
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6023 $as_echo_n "checking for GNU ld... " >&6; }
6024 else
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6026 $as_echo_n "checking for non-GNU ld... " >&6; }
6027 fi
6028 if ${lt_cv_path_LD+:} false; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 if test -z "$LD"; then
6032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6033 for ac_dir in $PATH; do
6034 IFS="$lt_save_ifs"
6035 test -z "$ac_dir" && ac_dir=.
6036 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6037 lt_cv_path_LD="$ac_dir/$ac_prog"
6038 # Check to see if the program is GNU ld. I'd rather use --version,
6039 # but apparently some variants of GNU ld only accept -v.
6040 # Break only if it was the GNU/non-GNU ld that we prefer.
6041 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6042 *GNU* | *'with BFD'*)
6043 test "$with_gnu_ld" != no && break
6044 ;;
6045 *)
6046 test "$with_gnu_ld" != yes && break
6047 ;;
6048 esac
6049 fi
6050 done
6051 IFS="$lt_save_ifs"
6052 else
6053 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6054 fi
6055 fi
6056
6057 LD="$lt_cv_path_LD"
6058 if test -n "$LD"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6060 $as_echo "$LD" >&6; }
6061 else
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6064 fi
6065 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6067 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6068 if ${lt_cv_prog_gnu_ld+:} false; then :
6069 $as_echo_n "(cached) " >&6
6070 else
6071 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6072 case `$LD -v 2>&1 </dev/null` in
6073 *GNU* | *'with BFD'*)
6074 lt_cv_prog_gnu_ld=yes
6075 ;;
6076 *)
6077 lt_cv_prog_gnu_ld=no
6078 ;;
6079 esac
6080 fi
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6082 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6083 with_gnu_ld=$lt_cv_prog_gnu_ld
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6094 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6095 if ${lt_cv_path_NM+:} false; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 if test -n "$NM"; then
6099 # Let the user override the test.
6100 lt_cv_path_NM="$NM"
6101 else
6102 lt_nm_to_check="${ac_tool_prefix}nm"
6103 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6104 lt_nm_to_check="$lt_nm_to_check nm"
6105 fi
6106 for lt_tmp_nm in $lt_nm_to_check; do
6107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6108 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6109 IFS="$lt_save_ifs"
6110 test -z "$ac_dir" && ac_dir=.
6111 tmp_nm="$ac_dir/$lt_tmp_nm"
6112 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6113 # Check to see if the nm accepts a BSD-compat flag.
6114 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6115 # nm: unknown option "B" ignored
6116 # Tru64's nm complains that /dev/null is an invalid object file
6117 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6118 */dev/null* | *'Invalid file or object type'*)
6119 lt_cv_path_NM="$tmp_nm -B"
6120 break
6121 ;;
6122 *)
6123 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6124 */dev/null*)
6125 lt_cv_path_NM="$tmp_nm -p"
6126 break
6127 ;;
6128 *)
6129 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6130 continue # so that we can try to find one that supports BSD flags
6131 ;;
6132 esac
6133 ;;
6134 esac
6135 fi
6136 done
6137 IFS="$lt_save_ifs"
6138 done
6139 : ${lt_cv_path_NM=no}
6140 fi
6141 fi
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6143 $as_echo "$lt_cv_path_NM" >&6; }
6144 if test "$lt_cv_path_NM" != "no"; then
6145 NM="$lt_cv_path_NM"
6146 else
6147 # Didn't find any BSD compatible name lister, look for dumpbin.
6148 if test -n "$DUMPBIN"; then :
6149 # Let the user override the test.
6150 else
6151 if test -n "$ac_tool_prefix"; then
6152 for ac_prog in dumpbin "link -dump"
6153 do
6154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if ${ac_cv_prog_DUMPBIN+:} false; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 if test -n "$DUMPBIN"; then
6162 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6171 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6174 fi
6175 done
6176 done
6177 IFS=$as_save_IFS
6178
6179 fi
6180 fi
6181 DUMPBIN=$ac_cv_prog_DUMPBIN
6182 if test -n "$DUMPBIN"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6184 $as_echo "$DUMPBIN" >&6; }
6185 else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6188 fi
6189
6190
6191 test -n "$DUMPBIN" && break
6192 done
6193 fi
6194 if test -z "$DUMPBIN"; then
6195 ac_ct_DUMPBIN=$DUMPBIN
6196 for ac_prog in dumpbin "link -dump"
6197 do
6198 # Extract the first word of "$ac_prog", so it can be a program name with args.
6199 set dummy $ac_prog; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 if test -n "$ac_ct_DUMPBIN"; then
6206 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6210 do
6211 IFS=$as_save_IFS
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6215 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 break 2
6218 fi
6219 done
6220 done
6221 IFS=$as_save_IFS
6222
6223 fi
6224 fi
6225 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6226 if test -n "$ac_ct_DUMPBIN"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6228 $as_echo "$ac_ct_DUMPBIN" >&6; }
6229 else
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6232 fi
6233
6234
6235 test -n "$ac_ct_DUMPBIN" && break
6236 done
6237
6238 if test "x$ac_ct_DUMPBIN" = x; then
6239 DUMPBIN=":"
6240 else
6241 case $cross_compiling:$ac_tool_warned in
6242 yes:)
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned=yes ;;
6246 esac
6247 DUMPBIN=$ac_ct_DUMPBIN
6248 fi
6249 fi
6250
6251 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6252 *COFF*)
6253 DUMPBIN="$DUMPBIN -symbols"
6254 ;;
6255 *)
6256 DUMPBIN=:
6257 ;;
6258 esac
6259 fi
6260
6261 if test "$DUMPBIN" != ":"; then
6262 NM="$DUMPBIN"
6263 fi
6264 fi
6265 test -z "$NM" && NM=nm
6266
6267
6268
6269
6270
6271
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6273 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6274 if ${lt_cv_nm_interface+:} false; then :
6275 $as_echo_n "(cached) " >&6
6276 else
6277 lt_cv_nm_interface="BSD nm"
6278 echo "int some_variable = 0;" > conftest.$ac_ext
6279 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6280 (eval "$ac_compile" 2>conftest.err)
6281 cat conftest.err >&5
6282 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6283 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6284 cat conftest.err >&5
6285 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6286 cat conftest.out >&5
6287 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6288 lt_cv_nm_interface="MS dumpbin"
6289 fi
6290 rm -f conftest*
6291 fi
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6293 $as_echo "$lt_cv_nm_interface" >&6; }
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6296 $as_echo_n "checking whether ln -s works... " >&6; }
6297 LN_S=$as_ln_s
6298 if test "$LN_S" = "ln -s"; then
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6300 $as_echo "yes" >&6; }
6301 else
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6303 $as_echo "no, using $LN_S" >&6; }
6304 fi
6305
6306 # find the maximum length of command line arguments
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6308 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6309 if ${lt_cv_sys_max_cmd_len+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 i=0
6313 teststring="ABCD"
6314
6315 case $build_os in
6316 msdosdjgpp*)
6317 # On DJGPP, this test can blow up pretty badly due to problems in libc
6318 # (any single argument exceeding 2000 bytes causes a buffer overrun
6319 # during glob expansion). Even if it were fixed, the result of this
6320 # check would be larger than it should be.
6321 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6322 ;;
6323
6324 gnu*)
6325 # Under GNU Hurd, this test is not required because there is
6326 # no limit to the length of command line arguments.
6327 # Libtool will interpret -1 as no limit whatsoever
6328 lt_cv_sys_max_cmd_len=-1;
6329 ;;
6330
6331 cygwin* | mingw* | cegcc*)
6332 # On Win9x/ME, this test blows up -- it succeeds, but takes
6333 # about 5 minutes as the teststring grows exponentially.
6334 # Worse, since 9x/ME are not pre-emptively multitasking,
6335 # you end up with a "frozen" computer, even though with patience
6336 # the test eventually succeeds (with a max line length of 256k).
6337 # Instead, let's just punt: use the minimum linelength reported by
6338 # all of the supported platforms: 8192 (on NT/2K/XP).
6339 lt_cv_sys_max_cmd_len=8192;
6340 ;;
6341
6342 mint*)
6343 # On MiNT this can take a long time and run out of memory.
6344 lt_cv_sys_max_cmd_len=8192;
6345 ;;
6346
6347 amigaos*)
6348 # On AmigaOS with pdksh, this test takes hours, literally.
6349 # So we just punt and use a minimum line length of 8192.
6350 lt_cv_sys_max_cmd_len=8192;
6351 ;;
6352
6353 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6354 # This has been around since 386BSD, at least. Likely further.
6355 if test -x /sbin/sysctl; then
6356 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6357 elif test -x /usr/sbin/sysctl; then
6358 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6359 else
6360 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6361 fi
6362 # And add a safety zone
6363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6365 ;;
6366
6367 interix*)
6368 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6369 lt_cv_sys_max_cmd_len=196608
6370 ;;
6371
6372 osf*)
6373 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6374 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6375 # nice to cause kernel panics so lets avoid the loop below.
6376 # First set a reasonable default.
6377 lt_cv_sys_max_cmd_len=16384
6378 #
6379 if test -x /sbin/sysconfig; then
6380 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6381 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6382 esac
6383 fi
6384 ;;
6385 sco3.2v5*)
6386 lt_cv_sys_max_cmd_len=102400
6387 ;;
6388 sysv5* | sco5v6* | sysv4.2uw2*)
6389 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6390 if test -n "$kargmax"; then
6391 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6392 else
6393 lt_cv_sys_max_cmd_len=32768
6394 fi
6395 ;;
6396 *)
6397 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6398 if test -n "$lt_cv_sys_max_cmd_len"; then
6399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6401 else
6402 # Make teststring a little bigger before we do anything with it.
6403 # a 1K string should be a reasonable start.
6404 for i in 1 2 3 4 5 6 7 8 ; do
6405 teststring=$teststring$teststring
6406 done
6407 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6408 # If test is not a shell built-in, we'll probably end up computing a
6409 # maximum length that is only half of the actual maximum length, but
6410 # we can't tell.
6411 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6412 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6413 test $i != 17 # 1/2 MB should be enough
6414 do
6415 i=`expr $i + 1`
6416 teststring=$teststring$teststring
6417 done
6418 # Only check the string length outside the loop.
6419 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6420 teststring=
6421 # Add a significant safety factor because C++ compilers can tack on
6422 # massive amounts of additional arguments before passing them to the
6423 # linker. It appears as though 1/2 is a usable value.
6424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6425 fi
6426 ;;
6427 esac
6428
6429 fi
6430
6431 if test -n $lt_cv_sys_max_cmd_len ; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6433 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6434 else
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6436 $as_echo "none" >&6; }
6437 fi
6438 max_cmd_len=$lt_cv_sys_max_cmd_len
6439
6440
6441
6442
6443
6444
6445 : ${CP="cp -f"}
6446 : ${MV="mv -f"}
6447 : ${RM="rm -f"}
6448
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6450 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6451 # Try some XSI features
6452 xsi_shell=no
6453 ( _lt_dummy="a/b/c"
6454 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6455 = c,a/b,, \
6456 && eval 'test $(( 1 + 1 )) -eq 2 \
6457 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6458 && xsi_shell=yes
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6460 $as_echo "$xsi_shell" >&6; }
6461
6462
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6464 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6465 lt_shell_append=no
6466 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6467 >/dev/null 2>&1 \
6468 && lt_shell_append=yes
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6470 $as_echo "$lt_shell_append" >&6; }
6471
6472
6473 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6474 lt_unset=unset
6475 else
6476 lt_unset=false
6477 fi
6478
6479
6480
6481
6482
6483 # test EBCDIC or ASCII
6484 case `echo X|tr X '\101'` in
6485 A) # ASCII based system
6486 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6487 lt_SP2NL='tr \040 \012'
6488 lt_NL2SP='tr \015\012 \040\040'
6489 ;;
6490 *) # EBCDIC based system
6491 lt_SP2NL='tr \100 \n'
6492 lt_NL2SP='tr \r\n \100\100'
6493 ;;
6494 esac
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6505 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6506 if ${lt_cv_ld_reload_flag+:} false; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 lt_cv_ld_reload_flag='-r'
6510 fi
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6512 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6513 reload_flag=$lt_cv_ld_reload_flag
6514 case $reload_flag in
6515 "" | " "*) ;;
6516 *) reload_flag=" $reload_flag" ;;
6517 esac
6518 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6519 case $host_os in
6520 darwin*)
6521 if test "$GCC" = yes; then
6522 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6523 else
6524 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6525 fi
6526 ;;
6527 esac
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537 if test -n "$ac_tool_prefix"; then
6538 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6539 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if ${ac_cv_prog_OBJDUMP+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 if test -n "$OBJDUMP"; then
6546 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6550 do
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6555 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6558 fi
6559 done
6560 done
6561 IFS=$as_save_IFS
6562
6563 fi
6564 fi
6565 OBJDUMP=$ac_cv_prog_OBJDUMP
6566 if test -n "$OBJDUMP"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6568 $as_echo "$OBJDUMP" >&6; }
6569 else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6572 fi
6573
6574
6575 fi
6576 if test -z "$ac_cv_prog_OBJDUMP"; then
6577 ac_ct_OBJDUMP=$OBJDUMP
6578 # Extract the first word of "objdump", so it can be a program name with args.
6579 set dummy objdump; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 if test -n "$ac_ct_OBJDUMP"; then
6586 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6587 else
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6590 do
6591 IFS=$as_save_IFS
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6595 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 break 2
6598 fi
6599 done
6600 done
6601 IFS=$as_save_IFS
6602
6603 fi
6604 fi
6605 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6606 if test -n "$ac_ct_OBJDUMP"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6608 $as_echo "$ac_ct_OBJDUMP" >&6; }
6609 else
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6612 fi
6613
6614 if test "x$ac_ct_OBJDUMP" = x; then
6615 OBJDUMP="false"
6616 else
6617 case $cross_compiling:$ac_tool_warned in
6618 yes:)
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6621 ac_tool_warned=yes ;;
6622 esac
6623 OBJDUMP=$ac_ct_OBJDUMP
6624 fi
6625 else
6626 OBJDUMP="$ac_cv_prog_OBJDUMP"
6627 fi
6628
6629 test -z "$OBJDUMP" && OBJDUMP=objdump
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6640 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6641 if ${lt_cv_deplibs_check_method+:} false; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 lt_cv_file_magic_cmd='$MAGIC_CMD'
6645 lt_cv_file_magic_test_file=
6646 lt_cv_deplibs_check_method='unknown'
6647 # Need to set the preceding variable on all platforms that support
6648 # interlibrary dependencies.
6649 # 'none' -- dependencies not supported.
6650 # `unknown' -- same as none, but documents that we really don't know.
6651 # 'pass_all' -- all dependencies passed with no checks.
6652 # 'test_compile' -- check by making test program.
6653 # 'file_magic [[regex]]' -- check by looking for files in library path
6654 # which responds to the $file_magic_cmd with a given extended regex.
6655 # If you have `file' or equivalent on your system and you're not sure
6656 # whether `pass_all' will *always* work, you probably want this one.
6657
6658 case $host_os in
6659 aix[4-9]*)
6660 lt_cv_deplibs_check_method=pass_all
6661 ;;
6662
6663 beos*)
6664 lt_cv_deplibs_check_method=pass_all
6665 ;;
6666
6667 bsdi[45]*)
6668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6669 lt_cv_file_magic_cmd='/usr/bin/file -L'
6670 lt_cv_file_magic_test_file=/shlib/libc.so
6671 ;;
6672
6673 cygwin*)
6674 # func_win32_libid is a shell function defined in ltmain.sh
6675 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6676 lt_cv_file_magic_cmd='func_win32_libid'
6677 ;;
6678
6679 mingw* | pw32*)
6680 # Base MSYS/MinGW do not provide the 'file' command needed by
6681 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6682 # unless we find 'file', for example because we are cross-compiling.
6683 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6684 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6685 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6686 lt_cv_file_magic_cmd='func_win32_libid'
6687 else
6688 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6689 lt_cv_file_magic_cmd='$OBJDUMP -f'
6690 fi
6691 ;;
6692
6693 cegcc*)
6694 # use the weaker test based on 'objdump'. See mingw*.
6695 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6696 lt_cv_file_magic_cmd='$OBJDUMP -f'
6697 ;;
6698
6699 darwin* | rhapsody*)
6700 lt_cv_deplibs_check_method=pass_all
6701 ;;
6702
6703 freebsd* | dragonfly*)
6704 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6705 case $host_cpu in
6706 i*86 )
6707 # Not sure whether the presence of OpenBSD here was a mistake.
6708 # Let's accept both of them until this is cleared up.
6709 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6710 lt_cv_file_magic_cmd=/usr/bin/file
6711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6712 ;;
6713 esac
6714 else
6715 lt_cv_deplibs_check_method=pass_all
6716 fi
6717 ;;
6718
6719 gnu*)
6720 lt_cv_deplibs_check_method=pass_all
6721 ;;
6722
6723 haiku*)
6724 lt_cv_deplibs_check_method=pass_all
6725 ;;
6726
6727 hpux10.20* | hpux11*)
6728 lt_cv_file_magic_cmd=/usr/bin/file
6729 case $host_cpu in
6730 ia64*)
6731 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6732 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6733 ;;
6734 hppa*64*)
6735 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]'
6736 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6737 ;;
6738 *)
6739 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6740 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6741 ;;
6742 esac
6743 ;;
6744
6745 interix[3-9]*)
6746 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6748 ;;
6749
6750 irix5* | irix6* | nonstopux*)
6751 case $LD in
6752 *-32|*"-32 ") libmagic=32-bit;;
6753 *-n32|*"-n32 ") libmagic=N32;;
6754 *-64|*"-64 ") libmagic=64-bit;;
6755 *) libmagic=never-match;;
6756 esac
6757 lt_cv_deplibs_check_method=pass_all
6758 ;;
6759
6760 # This must be Linux ELF.
6761 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6762 lt_cv_deplibs_check_method=pass_all
6763 ;;
6764
6765 netbsd*)
6766 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6767 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6768 else
6769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6770 fi
6771 ;;
6772
6773 newos6*)
6774 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6775 lt_cv_file_magic_cmd=/usr/bin/file
6776 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6777 ;;
6778
6779 *nto* | *qnx*)
6780 lt_cv_deplibs_check_method=pass_all
6781 ;;
6782
6783 openbsd*)
6784 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6786 else
6787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6788 fi
6789 ;;
6790
6791 osf3* | osf4* | osf5*)
6792 lt_cv_deplibs_check_method=pass_all
6793 ;;
6794
6795 rdos*)
6796 lt_cv_deplibs_check_method=pass_all
6797 ;;
6798
6799 solaris*)
6800 lt_cv_deplibs_check_method=pass_all
6801 ;;
6802
6803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6804 lt_cv_deplibs_check_method=pass_all
6805 ;;
6806
6807 sysv4 | sysv4.3*)
6808 case $host_vendor in
6809 motorola)
6810 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]'
6811 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6812 ;;
6813 ncr)
6814 lt_cv_deplibs_check_method=pass_all
6815 ;;
6816 sequent)
6817 lt_cv_file_magic_cmd='/bin/file'
6818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6819 ;;
6820 sni)
6821 lt_cv_file_magic_cmd='/bin/file'
6822 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6823 lt_cv_file_magic_test_file=/lib/libc.so
6824 ;;
6825 siemens)
6826 lt_cv_deplibs_check_method=pass_all
6827 ;;
6828 pc)
6829 lt_cv_deplibs_check_method=pass_all
6830 ;;
6831 esac
6832 ;;
6833
6834 tpf*)
6835 lt_cv_deplibs_check_method=pass_all
6836 ;;
6837 esac
6838
6839 fi
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6841 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6842 file_magic_cmd=$lt_cv_file_magic_cmd
6843 deplibs_check_method=$lt_cv_deplibs_check_method
6844 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857 if test -n "$ac_tool_prefix"; then
6858 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6859 set dummy ${ac_tool_prefix}ar; ac_word=$2
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 $as_echo_n "checking for $ac_word... " >&6; }
6862 if ${ac_cv_prog_AR+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 if test -n "$AR"; then
6866 ac_cv_prog_AR="$AR" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6875 ac_cv_prog_AR="${ac_tool_prefix}ar"
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6878 fi
6879 done
6880 done
6881 IFS=$as_save_IFS
6882
6883 fi
6884 fi
6885 AR=$ac_cv_prog_AR
6886 if test -n "$AR"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6888 $as_echo "$AR" >&6; }
6889 else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6892 fi
6893
6894
6895 fi
6896 if test -z "$ac_cv_prog_AR"; then
6897 ac_ct_AR=$AR
6898 # Extract the first word of "ar", so it can be a program name with args.
6899 set dummy ar; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6903 $as_echo_n "(cached) " >&6
6904 else
6905 if test -n "$ac_ct_AR"; then
6906 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6910 do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6915 ac_cv_prog_ac_ct_AR="ar"
6916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6918 fi
6919 done
6920 done
6921 IFS=$as_save_IFS
6922
6923 fi
6924 fi
6925 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6926 if test -n "$ac_ct_AR"; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6928 $as_echo "$ac_ct_AR" >&6; }
6929 else
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6932 fi
6933
6934 if test "x$ac_ct_AR" = x; then
6935 AR="false"
6936 else
6937 case $cross_compiling:$ac_tool_warned in
6938 yes:)
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6941 ac_tool_warned=yes ;;
6942 esac
6943 AR=$ac_ct_AR
6944 fi
6945 else
6946 AR="$ac_cv_prog_AR"
6947 fi
6948
6949 test -z "$AR" && AR=ar
6950 test -z "$AR_FLAGS" && AR_FLAGS=cru
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962 if test -n "$ac_tool_prefix"; then
6963 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6964 set dummy ${ac_tool_prefix}strip; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if ${ac_cv_prog_STRIP+:} false; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 if test -n "$STRIP"; then
6971 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6972 else
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6975 do
6976 IFS=$as_save_IFS
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 break 2
6983 fi
6984 done
6985 done
6986 IFS=$as_save_IFS
6987
6988 fi
6989 fi
6990 STRIP=$ac_cv_prog_STRIP
6991 if test -n "$STRIP"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6993 $as_echo "$STRIP" >&6; }
6994 else
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6997 fi
6998
6999
7000 fi
7001 if test -z "$ac_cv_prog_STRIP"; then
7002 ac_ct_STRIP=$STRIP
7003 # Extract the first word of "strip", so it can be a program name with args.
7004 set dummy strip; ac_word=$2
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 $as_echo_n "checking for $ac_word... " >&6; }
7007 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010 if test -n "$ac_ct_STRIP"; then
7011 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7012 else
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH
7015 do
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7020 ac_cv_prog_ac_ct_STRIP="strip"
7021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 break 2
7023 fi
7024 done
7025 done
7026 IFS=$as_save_IFS
7027
7028 fi
7029 fi
7030 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7031 if test -n "$ac_ct_STRIP"; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7033 $as_echo "$ac_ct_STRIP" >&6; }
7034 else
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 $as_echo "no" >&6; }
7037 fi
7038
7039 if test "x$ac_ct_STRIP" = x; then
7040 STRIP=":"
7041 else
7042 case $cross_compiling:$ac_tool_warned in
7043 yes:)
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7046 ac_tool_warned=yes ;;
7047 esac
7048 STRIP=$ac_ct_STRIP
7049 fi
7050 else
7051 STRIP="$ac_cv_prog_STRIP"
7052 fi
7053
7054 test -z "$STRIP" && STRIP=:
7055
7056
7057
7058
7059
7060
7061 if test -n "$ac_tool_prefix"; then
7062 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7063 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 $as_echo_n "checking for $ac_word... " >&6; }
7066 if ${ac_cv_prog_RANLIB+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 if test -n "$RANLIB"; then
7070 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7082 fi
7083 done
7084 done
7085 IFS=$as_save_IFS
7086
7087 fi
7088 fi
7089 RANLIB=$ac_cv_prog_RANLIB
7090 if test -n "$RANLIB"; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7092 $as_echo "$RANLIB" >&6; }
7093 else
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7096 fi
7097
7098
7099 fi
7100 if test -z "$ac_cv_prog_RANLIB"; then
7101 ac_ct_RANLIB=$RANLIB
7102 # Extract the first word of "ranlib", so it can be a program name with args.
7103 set dummy ranlib; ac_word=$2
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105 $as_echo_n "checking for $ac_word... " >&6; }
7106 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7107 $as_echo_n "(cached) " >&6
7108 else
7109 if test -n "$ac_ct_RANLIB"; then
7110 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7111 else
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7114 do
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119 ac_cv_prog_ac_ct_RANLIB="ranlib"
7120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 break 2
7122 fi
7123 done
7124 done
7125 IFS=$as_save_IFS
7126
7127 fi
7128 fi
7129 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7130 if test -n "$ac_ct_RANLIB"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7132 $as_echo "$ac_ct_RANLIB" >&6; }
7133 else
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7136 fi
7137
7138 if test "x$ac_ct_RANLIB" = x; then
7139 RANLIB=":"
7140 else
7141 case $cross_compiling:$ac_tool_warned in
7142 yes:)
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7145 ac_tool_warned=yes ;;
7146 esac
7147 RANLIB=$ac_ct_RANLIB
7148 fi
7149 else
7150 RANLIB="$ac_cv_prog_RANLIB"
7151 fi
7152
7153 test -z "$RANLIB" && RANLIB=:
7154
7155
7156
7157
7158
7159
7160 # Determine commands to create old-style static archives.
7161 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7162 old_postinstall_cmds='chmod 644 $oldlib'
7163 old_postuninstall_cmds=
7164
7165 if test -n "$RANLIB"; then
7166 case $host_os in
7167 openbsd*)
7168 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7169 ;;
7170 *)
7171 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7172 ;;
7173 esac
7174 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7175 fi
7176
7177 case $host_os in
7178 darwin*)
7179 lock_old_archive_extraction=yes ;;
7180 *)
7181 lock_old_archive_extraction=no ;;
7182 esac
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222 # If no C compiler was specified, use CC.
7223 LTCC=${LTCC-"$CC"}
7224
7225 # If no C compiler flags were specified, use CFLAGS.
7226 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7227
7228 # Allow CC to be a program name with arguments.
7229 compiler=$CC
7230
7231
7232 # Check for command to grab the raw symbol name followed by C symbol from nm.
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7234 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7235 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238
7239 # These are sane defaults that work on at least a few old systems.
7240 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7241
7242 # Character class describing NM global symbol codes.
7243 symcode='[BCDEGRST]'
7244
7245 # Regexp to match symbols that can be accessed directly from C.
7246 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7247
7248 # Define system-specific variables.
7249 case $host_os in
7250 aix*)
7251 symcode='[BCDT]'
7252 ;;
7253 cygwin* | mingw* | pw32* | cegcc*)
7254 symcode='[ABCDGISTW]'
7255 ;;
7256 hpux*)
7257 if test "$host_cpu" = ia64; then
7258 symcode='[ABCDEGRST]'
7259 fi
7260 ;;
7261 irix* | nonstopux*)
7262 symcode='[BCDEGRST]'
7263 ;;
7264 osf*)
7265 symcode='[BCDEGQRST]'
7266 ;;
7267 solaris*)
7268 symcode='[BDRT]'
7269 ;;
7270 sco3.2v5*)
7271 symcode='[DT]'
7272 ;;
7273 sysv4.2uw2*)
7274 symcode='[DT]'
7275 ;;
7276 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7277 symcode='[ABDT]'
7278 ;;
7279 sysv4)
7280 symcode='[DFNSTU]'
7281 ;;
7282 esac
7283
7284 # If we're using GNU nm, then use its standard symbol codes.
7285 case `$NM -V 2>&1` in
7286 *GNU* | *'with BFD'*)
7287 symcode='[ABCDGIRSTW]' ;;
7288 esac
7289
7290 # Transform an extracted symbol line into a proper C declaration.
7291 # Some systems (esp. on ia64) link data and code symbols differently,
7292 # so use this general approach.
7293 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7294
7295 # Transform an extracted symbol line into symbol name and symbol address
7296 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7297 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'"
7298
7299 # Handle CRLF in mingw tool chain
7300 opt_cr=
7301 case $build_os in
7302 mingw*)
7303 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7304 ;;
7305 esac
7306
7307 # Try without a prefix underscore, then with it.
7308 for ac_symprfx in "" "_"; do
7309
7310 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7311 symxfrm="\\1 $ac_symprfx\\2 \\2"
7312
7313 # Write the raw and C identifiers.
7314 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7315 # Fake it for dumpbin and say T for any non-static function
7316 # and D for any global variable.
7317 # Also find C++ and __fastcall symbols from MSVC++,
7318 # which start with @ or ?.
7319 lt_cv_sys_global_symbol_pipe="$AWK '"\
7320 " {last_section=section; section=\$ 3};"\
7321 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7322 " \$ 0!~/External *\|/{next};"\
7323 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7324 " {if(hide[section]) next};"\
7325 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7326 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7327 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7328 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7329 " ' prfx=^$ac_symprfx"
7330 else
7331 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7332 fi
7333
7334 # Check to see that the pipe works correctly.
7335 pipe_works=no
7336
7337 rm -f conftest*
7338 cat > conftest.$ac_ext <<_LT_EOF
7339 #ifdef __cplusplus
7340 extern "C" {
7341 #endif
7342 char nm_test_var;
7343 void nm_test_func(void);
7344 void nm_test_func(void){}
7345 #ifdef __cplusplus
7346 }
7347 #endif
7348 int main(){nm_test_var='a';nm_test_func();return(0);}
7349 _LT_EOF
7350
7351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7352 (eval $ac_compile) 2>&5
7353 ac_status=$?
7354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7355 test $ac_status = 0; }; then
7356 # Now try to grab the symbols.
7357 nlist=conftest.nm
7358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7359 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7360 ac_status=$?
7361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7362 test $ac_status = 0; } && test -s "$nlist"; then
7363 # Try sorting and uniquifying the output.
7364 if sort "$nlist" | uniq > "$nlist"T; then
7365 mv -f "$nlist"T "$nlist"
7366 else
7367 rm -f "$nlist"T
7368 fi
7369
7370 # Make sure that we snagged all the symbols we need.
7371 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7372 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7373 cat <<_LT_EOF > conftest.$ac_ext
7374 #ifdef __cplusplus
7375 extern "C" {
7376 #endif
7377
7378 _LT_EOF
7379 # Now generate the symbol file.
7380 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7381
7382 cat <<_LT_EOF >> conftest.$ac_ext
7383
7384 /* The mapping between symbol names and symbols. */
7385 const struct {
7386 const char *name;
7387 void *address;
7388 }
7389 lt__PROGRAM__LTX_preloaded_symbols[] =
7390 {
7391 { "@PROGRAM@", (void *) 0 },
7392 _LT_EOF
7393 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7394 cat <<\_LT_EOF >> conftest.$ac_ext
7395 {0, (void *) 0}
7396 };
7397
7398 /* This works around a problem in FreeBSD linker */
7399 #ifdef FREEBSD_WORKAROUND
7400 static const void *lt_preloaded_setup() {
7401 return lt__PROGRAM__LTX_preloaded_symbols;
7402 }
7403 #endif
7404
7405 #ifdef __cplusplus
7406 }
7407 #endif
7408 _LT_EOF
7409 # Now try linking the two files.
7410 mv conftest.$ac_objext conftstm.$ac_objext
7411 lt_save_LIBS="$LIBS"
7412 lt_save_CFLAGS="$CFLAGS"
7413 LIBS="conftstm.$ac_objext"
7414 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7416 (eval $ac_link) 2>&5
7417 ac_status=$?
7418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7419 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7420 pipe_works=yes
7421 fi
7422 LIBS="$lt_save_LIBS"
7423 CFLAGS="$lt_save_CFLAGS"
7424 else
7425 echo "cannot find nm_test_func in $nlist" >&5
7426 fi
7427 else
7428 echo "cannot find nm_test_var in $nlist" >&5
7429 fi
7430 else
7431 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7432 fi
7433 else
7434 echo "$progname: failed program was:" >&5
7435 cat conftest.$ac_ext >&5
7436 fi
7437 rm -rf conftest* conftst*
7438
7439 # Do not use the global_symbol_pipe unless it works.
7440 if test "$pipe_works" = yes; then
7441 break
7442 else
7443 lt_cv_sys_global_symbol_pipe=
7444 fi
7445 done
7446
7447 fi
7448
7449 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7450 lt_cv_sys_global_symbol_to_cdecl=
7451 fi
7452 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7454 $as_echo "failed" >&6; }
7455 else
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7457 $as_echo "ok" >&6; }
7458 fi
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482 # Check whether --enable-libtool-lock was given.
7483 if test "${enable_libtool_lock+set}" = set; then :
7484 enableval=$enable_libtool_lock;
7485 fi
7486
7487 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7488
7489 # Some flags need to be propagated to the compiler or linker for good
7490 # libtool support.
7491 case $host in
7492 ia64-*-hpux*)
7493 # Find out which ABI we are using.
7494 echo 'int i;' > conftest.$ac_ext
7495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7496 (eval $ac_compile) 2>&5
7497 ac_status=$?
7498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499 test $ac_status = 0; }; then
7500 case `/usr/bin/file conftest.$ac_objext` in
7501 *ELF-32*)
7502 HPUX_IA64_MODE="32"
7503 ;;
7504 *ELF-64*)
7505 HPUX_IA64_MODE="64"
7506 ;;
7507 esac
7508 fi
7509 rm -rf conftest*
7510 ;;
7511 *-*-irix6*)
7512 # Find out which ABI we are using.
7513 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7515 (eval $ac_compile) 2>&5
7516 ac_status=$?
7517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7518 test $ac_status = 0; }; then
7519 if test "$lt_cv_prog_gnu_ld" = yes; then
7520 case `/usr/bin/file conftest.$ac_objext` in
7521 *32-bit*)
7522 LD="${LD-ld} -melf32bsmip"
7523 ;;
7524 *N32*)
7525 LD="${LD-ld} -melf32bmipn32"
7526 ;;
7527 *64-bit*)
7528 LD="${LD-ld} -melf64bmip"
7529 ;;
7530 esac
7531 else
7532 case `/usr/bin/file conftest.$ac_objext` in
7533 *32-bit*)
7534 LD="${LD-ld} -32"
7535 ;;
7536 *N32*)
7537 LD="${LD-ld} -n32"
7538 ;;
7539 *64-bit*)
7540 LD="${LD-ld} -64"
7541 ;;
7542 esac
7543 fi
7544 fi
7545 rm -rf conftest*
7546 ;;
7547
7548 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7549 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7550 # Find out which ABI we are using.
7551 echo 'int i;' > conftest.$ac_ext
7552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7553 (eval $ac_compile) 2>&5
7554 ac_status=$?
7555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7556 test $ac_status = 0; }; then
7557 case `/usr/bin/file conftest.o` in
7558 *32-bit*)
7559 case $host in
7560 x86_64-*kfreebsd*-gnu)
7561 LD="${LD-ld} -m elf_i386_fbsd"
7562 ;;
7563 x86_64-*linux*)
7564 case `/usr/bin/file conftest.o` in
7565 *x86-64*)
7566 LD="${LD-ld} -m elf32_x86_64"
7567 ;;
7568 *)
7569 LD="${LD-ld} -m elf_i386"
7570 ;;
7571 esac
7572 ;;
7573 powerpc64le-*linux*)
7574 LD="${LD-ld} -m elf32lppclinux"
7575 ;;
7576 powerpc64-*linux*)
7577 LD="${LD-ld} -m elf32ppclinux"
7578 ;;
7579 s390x-*linux*)
7580 LD="${LD-ld} -m elf_s390"
7581 ;;
7582 sparc64-*linux*)
7583 LD="${LD-ld} -m elf32_sparc"
7584 ;;
7585 esac
7586 ;;
7587 *64-bit*)
7588 case $host in
7589 x86_64-*kfreebsd*-gnu)
7590 LD="${LD-ld} -m elf_x86_64_fbsd"
7591 ;;
7592 x86_64-*linux*)
7593 LD="${LD-ld} -m elf_x86_64"
7594 ;;
7595 powerpcle-*linux*)
7596 LD="${LD-ld} -m elf64lppc"
7597 ;;
7598 powerpc-*linux*)
7599 LD="${LD-ld} -m elf64ppc"
7600 ;;
7601 s390*-*linux*|s390*-*tpf*)
7602 LD="${LD-ld} -m elf64_s390"
7603 ;;
7604 sparc*-*linux*)
7605 LD="${LD-ld} -m elf64_sparc"
7606 ;;
7607 esac
7608 ;;
7609 esac
7610 fi
7611 rm -rf conftest*
7612 ;;
7613
7614 *-*-sco3.2v5*)
7615 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7616 SAVE_CFLAGS="$CFLAGS"
7617 CFLAGS="$CFLAGS -belf"
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7619 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7620 if ${lt_cv_cc_needs_belf+:} false; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 ac_ext=c
7624 ac_cpp='$CPP $CPPFLAGS'
7625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7628
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7631
7632 int
7633 main ()
7634 {
7635
7636 ;
7637 return 0;
7638 }
7639 _ACEOF
7640 if ac_fn_c_try_link "$LINENO"; then :
7641 lt_cv_cc_needs_belf=yes
7642 else
7643 lt_cv_cc_needs_belf=no
7644 fi
7645 rm -f core conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7647 ac_ext=c
7648 ac_cpp='$CPP $CPPFLAGS'
7649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7652
7653 fi
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7655 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7656 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7657 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7658 CFLAGS="$SAVE_CFLAGS"
7659 fi
7660 ;;
7661 sparc*-*solaris*)
7662 # Find out which ABI we are using.
7663 echo 'int i;' > conftest.$ac_ext
7664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7665 (eval $ac_compile) 2>&5
7666 ac_status=$?
7667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7668 test $ac_status = 0; }; then
7669 case `/usr/bin/file conftest.o` in
7670 *64-bit*)
7671 case $lt_cv_prog_gnu_ld in
7672 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7673 *)
7674 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7675 LD="${LD-ld} -64"
7676 fi
7677 ;;
7678 esac
7679 ;;
7680 esac
7681 fi
7682 rm -rf conftest*
7683 ;;
7684 esac
7685
7686 need_locks="$enable_libtool_lock"
7687
7688
7689 case $host_os in
7690 rhapsody* | darwin*)
7691 if test -n "$ac_tool_prefix"; then
7692 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7693 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 if test -n "$DSYMUTIL"; then
7700 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705 IFS=$as_save_IFS
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7709 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 break 2
7712 fi
7713 done
7714 done
7715 IFS=$as_save_IFS
7716
7717 fi
7718 fi
7719 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7720 if test -n "$DSYMUTIL"; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7722 $as_echo "$DSYMUTIL" >&6; }
7723 else
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727
7728
7729 fi
7730 if test -z "$ac_cv_prog_DSYMUTIL"; then
7731 ac_ct_DSYMUTIL=$DSYMUTIL
7732 # Extract the first word of "dsymutil", so it can be a program name with args.
7733 set dummy dsymutil; ac_word=$2
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7737 $as_echo_n "(cached) " >&6
7738 else
7739 if test -n "$ac_ct_DSYMUTIL"; then
7740 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7741 else
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7744 do
7745 IFS=$as_save_IFS
7746 test -z "$as_dir" && as_dir=.
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 break 2
7752 fi
7753 done
7754 done
7755 IFS=$as_save_IFS
7756
7757 fi
7758 fi
7759 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7760 if test -n "$ac_ct_DSYMUTIL"; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7762 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7763 else
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7766 fi
7767
7768 if test "x$ac_ct_DSYMUTIL" = x; then
7769 DSYMUTIL=":"
7770 else
7771 case $cross_compiling:$ac_tool_warned in
7772 yes:)
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7775 ac_tool_warned=yes ;;
7776 esac
7777 DSYMUTIL=$ac_ct_DSYMUTIL
7778 fi
7779 else
7780 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7781 fi
7782
7783 if test -n "$ac_tool_prefix"; then
7784 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7785 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7787 $as_echo_n "checking for $ac_word... " >&6; }
7788 if ${ac_cv_prog_NMEDIT+:} false; then :
7789 $as_echo_n "(cached) " >&6
7790 else
7791 if test -n "$NMEDIT"; then
7792 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7793 else
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7796 do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7801 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7804 fi
7805 done
7806 done
7807 IFS=$as_save_IFS
7808
7809 fi
7810 fi
7811 NMEDIT=$ac_cv_prog_NMEDIT
7812 if test -n "$NMEDIT"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7814 $as_echo "$NMEDIT" >&6; }
7815 else
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7818 fi
7819
7820
7821 fi
7822 if test -z "$ac_cv_prog_NMEDIT"; then
7823 ac_ct_NMEDIT=$NMEDIT
7824 # Extract the first word of "nmedit", so it can be a program name with args.
7825 set dummy nmedit; ac_word=$2
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7829 $as_echo_n "(cached) " >&6
7830 else
7831 if test -n "$ac_ct_NMEDIT"; then
7832 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7833 else
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7836 do
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7841 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 break 2
7844 fi
7845 done
7846 done
7847 IFS=$as_save_IFS
7848
7849 fi
7850 fi
7851 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7852 if test -n "$ac_ct_NMEDIT"; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7854 $as_echo "$ac_ct_NMEDIT" >&6; }
7855 else
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7858 fi
7859
7860 if test "x$ac_ct_NMEDIT" = x; then
7861 NMEDIT=":"
7862 else
7863 case $cross_compiling:$ac_tool_warned in
7864 yes:)
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7867 ac_tool_warned=yes ;;
7868 esac
7869 NMEDIT=$ac_ct_NMEDIT
7870 fi
7871 else
7872 NMEDIT="$ac_cv_prog_NMEDIT"
7873 fi
7874
7875 if test -n "$ac_tool_prefix"; then
7876 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7877 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if ${ac_cv_prog_LIPO+:} false; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 if test -n "$LIPO"; then
7884 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7885 else
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7888 do
7889 IFS=$as_save_IFS
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 break 2
7896 fi
7897 done
7898 done
7899 IFS=$as_save_IFS
7900
7901 fi
7902 fi
7903 LIPO=$ac_cv_prog_LIPO
7904 if test -n "$LIPO"; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7906 $as_echo "$LIPO" >&6; }
7907 else
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7910 fi
7911
7912
7913 fi
7914 if test -z "$ac_cv_prog_LIPO"; then
7915 ac_ct_LIPO=$LIPO
7916 # Extract the first word of "lipo", so it can be a program name with args.
7917 set dummy lipo; ac_word=$2
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7919 $as_echo_n "checking for $ac_word... " >&6; }
7920 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 if test -n "$ac_ct_LIPO"; then
7924 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7925 else
7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927 for as_dir in $PATH
7928 do
7929 IFS=$as_save_IFS
7930 test -z "$as_dir" && as_dir=.
7931 for ac_exec_ext in '' $ac_executable_extensions; do
7932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7933 ac_cv_prog_ac_ct_LIPO="lipo"
7934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7935 break 2
7936 fi
7937 done
7938 done
7939 IFS=$as_save_IFS
7940
7941 fi
7942 fi
7943 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7944 if test -n "$ac_ct_LIPO"; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7946 $as_echo "$ac_ct_LIPO" >&6; }
7947 else
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7950 fi
7951
7952 if test "x$ac_ct_LIPO" = x; then
7953 LIPO=":"
7954 else
7955 case $cross_compiling:$ac_tool_warned in
7956 yes:)
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7959 ac_tool_warned=yes ;;
7960 esac
7961 LIPO=$ac_ct_LIPO
7962 fi
7963 else
7964 LIPO="$ac_cv_prog_LIPO"
7965 fi
7966
7967 if test -n "$ac_tool_prefix"; then
7968 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7969 set dummy ${ac_tool_prefix}otool; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if ${ac_cv_prog_OTOOL+:} false; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 if test -n "$OTOOL"; then
7976 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7977 else
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 for as_dir in $PATH
7980 do
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7985 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 break 2
7988 fi
7989 done
7990 done
7991 IFS=$as_save_IFS
7992
7993 fi
7994 fi
7995 OTOOL=$ac_cv_prog_OTOOL
7996 if test -n "$OTOOL"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7998 $as_echo "$OTOOL" >&6; }
7999 else
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8002 fi
8003
8004
8005 fi
8006 if test -z "$ac_cv_prog_OTOOL"; then
8007 ac_ct_OTOOL=$OTOOL
8008 # Extract the first word of "otool", so it can be a program name with args.
8009 set dummy otool; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 if test -n "$ac_ct_OTOOL"; then
8016 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8017 else
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8020 do
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025 ac_cv_prog_ac_ct_OTOOL="otool"
8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 break 2
8028 fi
8029 done
8030 done
8031 IFS=$as_save_IFS
8032
8033 fi
8034 fi
8035 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8036 if test -n "$ac_ct_OTOOL"; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8038 $as_echo "$ac_ct_OTOOL" >&6; }
8039 else
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8042 fi
8043
8044 if test "x$ac_ct_OTOOL" = x; then
8045 OTOOL=":"
8046 else
8047 case $cross_compiling:$ac_tool_warned in
8048 yes:)
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8051 ac_tool_warned=yes ;;
8052 esac
8053 OTOOL=$ac_ct_OTOOL
8054 fi
8055 else
8056 OTOOL="$ac_cv_prog_OTOOL"
8057 fi
8058
8059 if test -n "$ac_tool_prefix"; then
8060 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8061 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 $as_echo_n "checking for $ac_word... " >&6; }
8064 if ${ac_cv_prog_OTOOL64+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 if test -n "$OTOOL64"; then
8068 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8069 else
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8072 do
8073 IFS=$as_save_IFS
8074 test -z "$as_dir" && as_dir=.
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8077 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 break 2
8080 fi
8081 done
8082 done
8083 IFS=$as_save_IFS
8084
8085 fi
8086 fi
8087 OTOOL64=$ac_cv_prog_OTOOL64
8088 if test -n "$OTOOL64"; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8090 $as_echo "$OTOOL64" >&6; }
8091 else
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8094 fi
8095
8096
8097 fi
8098 if test -z "$ac_cv_prog_OTOOL64"; then
8099 ac_ct_OTOOL64=$OTOOL64
8100 # Extract the first word of "otool64", so it can be a program name with args.
8101 set dummy otool64; ac_word=$2
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103 $as_echo_n "checking for $ac_word... " >&6; }
8104 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 if test -n "$ac_ct_OTOOL64"; then
8108 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8109 else
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8112 do
8113 IFS=$as_save_IFS
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8117 ac_cv_prog_ac_ct_OTOOL64="otool64"
8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 break 2
8120 fi
8121 done
8122 done
8123 IFS=$as_save_IFS
8124
8125 fi
8126 fi
8127 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8128 if test -n "$ac_ct_OTOOL64"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8130 $as_echo "$ac_ct_OTOOL64" >&6; }
8131 else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8134 fi
8135
8136 if test "x$ac_ct_OTOOL64" = x; then
8137 OTOOL64=":"
8138 else
8139 case $cross_compiling:$ac_tool_warned in
8140 yes:)
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8143 ac_tool_warned=yes ;;
8144 esac
8145 OTOOL64=$ac_ct_OTOOL64
8146 fi
8147 else
8148 OTOOL64="$ac_cv_prog_OTOOL64"
8149 fi
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8178 $as_echo_n "checking for -single_module linker flag... " >&6; }
8179 if ${lt_cv_apple_cc_single_mod+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 lt_cv_apple_cc_single_mod=no
8183 if test -z "${LT_MULTI_MODULE}"; then
8184 # By default we will add the -single_module flag. You can override
8185 # by either setting the environment variable LT_MULTI_MODULE
8186 # non-empty at configure time, or by adding -multi_module to the
8187 # link flags.
8188 rm -rf libconftest.dylib*
8189 echo "int foo(void){return 1;}" > conftest.c
8190 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8191 -dynamiclib -Wl,-single_module conftest.c" >&5
8192 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8193 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8194 _lt_result=$?
8195 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8196 lt_cv_apple_cc_single_mod=yes
8197 else
8198 cat conftest.err >&5
8199 fi
8200 rm -rf libconftest.dylib*
8201 rm -f conftest.*
8202 fi
8203 fi
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8205 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8207 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8208 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 lt_cv_ld_exported_symbols_list=no
8212 save_LDFLAGS=$LDFLAGS
8213 echo "_main" > conftest.sym
8214 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8217
8218 int
8219 main ()
8220 {
8221
8222 ;
8223 return 0;
8224 }
8225 _ACEOF
8226 if ac_fn_c_try_link "$LINENO"; then :
8227 lt_cv_ld_exported_symbols_list=yes
8228 else
8229 lt_cv_ld_exported_symbols_list=no
8230 fi
8231 rm -f core conftest.err conftest.$ac_objext \
8232 conftest$ac_exeext conftest.$ac_ext
8233 LDFLAGS="$save_LDFLAGS"
8234
8235 fi
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8237 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8239 $as_echo_n "checking for -force_load linker flag... " >&6; }
8240 if ${lt_cv_ld_force_load+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 lt_cv_ld_force_load=no
8244 cat > conftest.c << _LT_EOF
8245 int forced_loaded() { return 2;}
8246 _LT_EOF
8247 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8248 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8249 echo "$AR cru libconftest.a conftest.o" >&5
8250 $AR cru libconftest.a conftest.o 2>&5
8251 cat > conftest.c << _LT_EOF
8252 int main() { return 0;}
8253 _LT_EOF
8254 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8255 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8256 _lt_result=$?
8257 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8258 lt_cv_ld_force_load=yes
8259 else
8260 cat conftest.err >&5
8261 fi
8262 rm -f conftest.err libconftest.a conftest conftest.c
8263 rm -rf conftest.dSYM
8264
8265 fi
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8267 $as_echo "$lt_cv_ld_force_load" >&6; }
8268 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8269 # build without first building modern cctools / linker.
8270 case $host_cpu-$host_os in
8271 *-rhapsody* | *-darwin1.[012])
8272 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8273 *-darwin1.*)
8274 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8275 *-darwin*)
8276 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8277 # deployment target is forced to an earlier version.
8278 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8279 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8280 ;;
8281 10.[012][,.]*)
8282 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8283 ;;
8284 *)
8285 ;;
8286 esac
8287 ;;
8288 esac
8289 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8290 _lt_dar_single_mod='$single_module'
8291 fi
8292 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8293 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8294 else
8295 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8296 fi
8297 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8298 _lt_dsymutil='~$DSYMUTIL $lib || :'
8299 else
8300 _lt_dsymutil=
8301 fi
8302 ;;
8303 esac
8304
8305 ac_ext=c
8306 ac_cpp='$CPP $CPPFLAGS'
8307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8311 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8312 # On Suns, sometimes $CPP names a directory.
8313 if test -n "$CPP" && test -d "$CPP"; then
8314 CPP=
8315 fi
8316 if test -z "$CPP"; then
8317 if ${ac_cv_prog_CPP+:} false; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 # Double quotes because CPP needs to be expanded
8321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8322 do
8323 ac_preproc_ok=false
8324 for ac_c_preproc_warn_flag in '' yes
8325 do
8326 # Use a header file that comes with gcc, so configuring glibc
8327 # with a fresh cross-compiler works.
8328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8329 # <limits.h> exists even on freestanding compilers.
8330 # On the NeXT, cc -E runs the code through the compiler's parser,
8331 # not just through cpp. "Syntax error" is here to catch this case.
8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h. */
8334 #ifdef __STDC__
8335 # include <limits.h>
8336 #else
8337 # include <assert.h>
8338 #endif
8339 Syntax error
8340 _ACEOF
8341 if ac_fn_c_try_cpp "$LINENO"; then :
8342
8343 else
8344 # Broken: fails on valid input.
8345 continue
8346 fi
8347 rm -f conftest.err conftest.i conftest.$ac_ext
8348
8349 # OK, works on sane cases. Now check whether nonexistent headers
8350 # can be detected and how.
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8353 #include <ac_nonexistent.h>
8354 _ACEOF
8355 if ac_fn_c_try_cpp "$LINENO"; then :
8356 # Broken: success on invalid input.
8357 continue
8358 else
8359 # Passes both tests.
8360 ac_preproc_ok=:
8361 break
8362 fi
8363 rm -f conftest.err conftest.i conftest.$ac_ext
8364
8365 done
8366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8367 rm -f conftest.i conftest.err conftest.$ac_ext
8368 if $ac_preproc_ok; then :
8369 break
8370 fi
8371
8372 done
8373 ac_cv_prog_CPP=$CPP
8374
8375 fi
8376 CPP=$ac_cv_prog_CPP
8377 else
8378 ac_cv_prog_CPP=$CPP
8379 fi
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8381 $as_echo "$CPP" >&6; }
8382 ac_preproc_ok=false
8383 for ac_c_preproc_warn_flag in '' yes
8384 do
8385 # Use a header file that comes with gcc, so configuring glibc
8386 # with a fresh cross-compiler works.
8387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8388 # <limits.h> exists even on freestanding compilers.
8389 # On the NeXT, cc -E runs the code through the compiler's parser,
8390 # not just through cpp. "Syntax error" is here to catch this case.
8391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392 /* end confdefs.h. */
8393 #ifdef __STDC__
8394 # include <limits.h>
8395 #else
8396 # include <assert.h>
8397 #endif
8398 Syntax error
8399 _ACEOF
8400 if ac_fn_c_try_cpp "$LINENO"; then :
8401
8402 else
8403 # Broken: fails on valid input.
8404 continue
8405 fi
8406 rm -f conftest.err conftest.i conftest.$ac_ext
8407
8408 # OK, works on sane cases. Now check whether nonexistent headers
8409 # can be detected and how.
8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 #include <ac_nonexistent.h>
8413 _ACEOF
8414 if ac_fn_c_try_cpp "$LINENO"; then :
8415 # Broken: success on invalid input.
8416 continue
8417 else
8418 # Passes both tests.
8419 ac_preproc_ok=:
8420 break
8421 fi
8422 rm -f conftest.err conftest.i conftest.$ac_ext
8423
8424 done
8425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8426 rm -f conftest.i conftest.err conftest.$ac_ext
8427 if $ac_preproc_ok; then :
8428
8429 else
8430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8432 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8433 See \`config.log' for more details" "$LINENO" 5; }
8434 fi
8435
8436 ac_ext=c
8437 ac_cpp='$CPP $CPPFLAGS'
8438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8441
8442
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8444 $as_echo_n "checking for ANSI C header files... " >&6; }
8445 if ${ac_cv_header_stdc+:} false; then :
8446 $as_echo_n "(cached) " >&6
8447 else
8448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449 /* end confdefs.h. */
8450 #include <stdlib.h>
8451 #include <stdarg.h>
8452 #include <string.h>
8453 #include <float.h>
8454
8455 int
8456 main ()
8457 {
8458
8459 ;
8460 return 0;
8461 }
8462 _ACEOF
8463 if ac_fn_c_try_compile "$LINENO"; then :
8464 ac_cv_header_stdc=yes
8465 else
8466 ac_cv_header_stdc=no
8467 fi
8468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8469
8470 if test $ac_cv_header_stdc = yes; then
8471 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8474 #include <string.h>
8475
8476 _ACEOF
8477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8478 $EGREP "memchr" >/dev/null 2>&1; then :
8479
8480 else
8481 ac_cv_header_stdc=no
8482 fi
8483 rm -f conftest*
8484
8485 fi
8486
8487 if test $ac_cv_header_stdc = yes; then
8488 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8491 #include <stdlib.h>
8492
8493 _ACEOF
8494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8495 $EGREP "free" >/dev/null 2>&1; then :
8496
8497 else
8498 ac_cv_header_stdc=no
8499 fi
8500 rm -f conftest*
8501
8502 fi
8503
8504 if test $ac_cv_header_stdc = yes; then
8505 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8506 if test "$cross_compiling" = yes; then :
8507 :
8508 else
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8511 #include <ctype.h>
8512 #include <stdlib.h>
8513 #if ((' ' & 0x0FF) == 0x020)
8514 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8515 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8516 #else
8517 # define ISLOWER(c) \
8518 (('a' <= (c) && (c) <= 'i') \
8519 || ('j' <= (c) && (c) <= 'r') \
8520 || ('s' <= (c) && (c) <= 'z'))
8521 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8522 #endif
8523
8524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8525 int
8526 main ()
8527 {
8528 int i;
8529 for (i = 0; i < 256; i++)
8530 if (XOR (islower (i), ISLOWER (i))
8531 || toupper (i) != TOUPPER (i))
8532 return 2;
8533 return 0;
8534 }
8535 _ACEOF
8536 if ac_fn_c_try_run "$LINENO"; then :
8537
8538 else
8539 ac_cv_header_stdc=no
8540 fi
8541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8542 conftest.$ac_objext conftest.beam conftest.$ac_ext
8543 fi
8544
8545 fi
8546 fi
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8548 $as_echo "$ac_cv_header_stdc" >&6; }
8549 if test $ac_cv_header_stdc = yes; then
8550
8551 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8552
8553 fi
8554
8555 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8556 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8557 inttypes.h stdint.h unistd.h
8558 do :
8559 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8560 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8561 "
8562 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8563 cat >>confdefs.h <<_ACEOF
8564 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8565 _ACEOF
8566
8567 fi
8568
8569 done
8570
8571
8572 for ac_header in dlfcn.h
8573 do :
8574 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8575 "
8576 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8577 cat >>confdefs.h <<_ACEOF
8578 #define HAVE_DLFCN_H 1
8579 _ACEOF
8580
8581 fi
8582
8583 done
8584
8585
8586
8587
8588
8589
8590 # Set options
8591
8592
8593
8594 enable_dlopen=no
8595
8596
8597 enable_win32_dll=no
8598
8599
8600 # Check whether --enable-shared was given.
8601 if test "${enable_shared+set}" = set; then :
8602 enableval=$enable_shared; p=${PACKAGE-default}
8603 case $enableval in
8604 yes) enable_shared=yes ;;
8605 no) enable_shared=no ;;
8606 *)
8607 enable_shared=no
8608 # Look at the argument we got. We use all the common list separators.
8609 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8610 for pkg in $enableval; do
8611 IFS="$lt_save_ifs"
8612 if test "X$pkg" = "X$p"; then
8613 enable_shared=yes
8614 fi
8615 done
8616 IFS="$lt_save_ifs"
8617 ;;
8618 esac
8619 else
8620 enable_shared=yes
8621 fi
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631 # Check whether --enable-static was given.
8632 if test "${enable_static+set}" = set; then :
8633 enableval=$enable_static; p=${PACKAGE-default}
8634 case $enableval in
8635 yes) enable_static=yes ;;
8636 no) enable_static=no ;;
8637 *)
8638 enable_static=no
8639 # Look at the argument we got. We use all the common list separators.
8640 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8641 for pkg in $enableval; do
8642 IFS="$lt_save_ifs"
8643 if test "X$pkg" = "X$p"; then
8644 enable_static=yes
8645 fi
8646 done
8647 IFS="$lt_save_ifs"
8648 ;;
8649 esac
8650 else
8651 enable_static=yes
8652 fi
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663 # Check whether --with-pic was given.
8664 if test "${with_pic+set}" = set; then :
8665 withval=$with_pic; pic_mode="$withval"
8666 else
8667 pic_mode=default
8668 fi
8669
8670
8671 test -z "$pic_mode" && pic_mode=default
8672
8673
8674
8675
8676
8677
8678
8679 # Check whether --enable-fast-install was given.
8680 if test "${enable_fast_install+set}" = set; then :
8681 enableval=$enable_fast_install; p=${PACKAGE-default}
8682 case $enableval in
8683 yes) enable_fast_install=yes ;;
8684 no) enable_fast_install=no ;;
8685 *)
8686 enable_fast_install=no
8687 # Look at the argument we got. We use all the common list separators.
8688 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8689 for pkg in $enableval; do
8690 IFS="$lt_save_ifs"
8691 if test "X$pkg" = "X$p"; then
8692 enable_fast_install=yes
8693 fi
8694 done
8695 IFS="$lt_save_ifs"
8696 ;;
8697 esac
8698 else
8699 enable_fast_install=yes
8700 fi
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712 # This can be used to rebuild libtool when needed
8713 LIBTOOL_DEPS="$ltmain"
8714
8715 # Always use our own libtool.
8716 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743 test -z "$LN_S" && LN_S="ln -s"
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758 if test -n "${ZSH_VERSION+set}" ; then
8759 setopt NO_GLOB_SUBST
8760 fi
8761
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8763 $as_echo_n "checking for objdir... " >&6; }
8764 if ${lt_cv_objdir+:} false; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 rm -f .libs 2>/dev/null
8768 mkdir .libs 2>/dev/null
8769 if test -d .libs; then
8770 lt_cv_objdir=.libs
8771 else
8772 # MS-DOS does not allow filenames that begin with a dot.
8773 lt_cv_objdir=_libs
8774 fi
8775 rmdir .libs 2>/dev/null
8776 fi
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8778 $as_echo "$lt_cv_objdir" >&6; }
8779 objdir=$lt_cv_objdir
8780
8781
8782
8783
8784
8785 cat >>confdefs.h <<_ACEOF
8786 #define LT_OBJDIR "$lt_cv_objdir/"
8787 _ACEOF
8788
8789
8790
8791
8792 case $host_os in
8793 aix3*)
8794 # AIX sometimes has problems with the GCC collect2 program. For some
8795 # reason, if we set the COLLECT_NAMES environment variable, the problems
8796 # vanish in a puff of smoke.
8797 if test "X${COLLECT_NAMES+set}" != Xset; then
8798 COLLECT_NAMES=
8799 export COLLECT_NAMES
8800 fi
8801 ;;
8802 esac
8803
8804 # Global variables:
8805 ofile=libtool
8806 can_build_shared=yes
8807
8808 # All known linkers require a `.a' archive for static linking (except MSVC,
8809 # which needs '.lib').
8810 libext=a
8811
8812 with_gnu_ld="$lt_cv_prog_gnu_ld"
8813
8814 old_CC="$CC"
8815 old_CFLAGS="$CFLAGS"
8816
8817 # Set sane defaults for various variables
8818 test -z "$CC" && CC=cc
8819 test -z "$LTCC" && LTCC=$CC
8820 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8821 test -z "$LD" && LD=ld
8822 test -z "$ac_objext" && ac_objext=o
8823
8824 for cc_temp in $compiler""; do
8825 case $cc_temp in
8826 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8827 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8828 \-*) ;;
8829 *) break;;
8830 esac
8831 done
8832 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8833
8834
8835 # Only perform the check for file, if the check method requires it
8836 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8837 case $deplibs_check_method in
8838 file_magic*)
8839 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8841 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8842 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 case $MAGIC_CMD in
8846 [\\/*] | ?:[\\/]*)
8847 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8848 ;;
8849 *)
8850 lt_save_MAGIC_CMD="$MAGIC_CMD"
8851 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8852 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8853 for ac_dir in $ac_dummy; do
8854 IFS="$lt_save_ifs"
8855 test -z "$ac_dir" && ac_dir=.
8856 if test -f $ac_dir/${ac_tool_prefix}file; then
8857 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8858 if test -n "$file_magic_test_file"; then
8859 case $deplibs_check_method in
8860 "file_magic "*)
8861 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8862 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8863 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8864 $EGREP "$file_magic_regex" > /dev/null; then
8865 :
8866 else
8867 cat <<_LT_EOF 1>&2
8868
8869 *** Warning: the command libtool uses to detect shared libraries,
8870 *** $file_magic_cmd, produces output that libtool cannot recognize.
8871 *** The result is that libtool may fail to recognize shared libraries
8872 *** as such. This will affect the creation of libtool libraries that
8873 *** depend on shared libraries, but programs linked with such libtool
8874 *** libraries will work regardless of this problem. Nevertheless, you
8875 *** may want to report the problem to your system manager and/or to
8876 *** bug-libtool@gnu.org
8877
8878 _LT_EOF
8879 fi ;;
8880 esac
8881 fi
8882 break
8883 fi
8884 done
8885 IFS="$lt_save_ifs"
8886 MAGIC_CMD="$lt_save_MAGIC_CMD"
8887 ;;
8888 esac
8889 fi
8890
8891 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8892 if test -n "$MAGIC_CMD"; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8894 $as_echo "$MAGIC_CMD" >&6; }
8895 else
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8898 fi
8899
8900
8901
8902
8903
8904 if test -z "$lt_cv_path_MAGIC_CMD"; then
8905 if test -n "$ac_tool_prefix"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8907 $as_echo_n "checking for file... " >&6; }
8908 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8909 $as_echo_n "(cached) " >&6
8910 else
8911 case $MAGIC_CMD in
8912 [\\/*] | ?:[\\/]*)
8913 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8914 ;;
8915 *)
8916 lt_save_MAGIC_CMD="$MAGIC_CMD"
8917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8918 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8919 for ac_dir in $ac_dummy; do
8920 IFS="$lt_save_ifs"
8921 test -z "$ac_dir" && ac_dir=.
8922 if test -f $ac_dir/file; then
8923 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8924 if test -n "$file_magic_test_file"; then
8925 case $deplibs_check_method in
8926 "file_magic "*)
8927 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8929 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8930 $EGREP "$file_magic_regex" > /dev/null; then
8931 :
8932 else
8933 cat <<_LT_EOF 1>&2
8934
8935 *** Warning: the command libtool uses to detect shared libraries,
8936 *** $file_magic_cmd, produces output that libtool cannot recognize.
8937 *** The result is that libtool may fail to recognize shared libraries
8938 *** as such. This will affect the creation of libtool libraries that
8939 *** depend on shared libraries, but programs linked with such libtool
8940 *** libraries will work regardless of this problem. Nevertheless, you
8941 *** may want to report the problem to your system manager and/or to
8942 *** bug-libtool@gnu.org
8943
8944 _LT_EOF
8945 fi ;;
8946 esac
8947 fi
8948 break
8949 fi
8950 done
8951 IFS="$lt_save_ifs"
8952 MAGIC_CMD="$lt_save_MAGIC_CMD"
8953 ;;
8954 esac
8955 fi
8956
8957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8958 if test -n "$MAGIC_CMD"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8960 $as_echo "$MAGIC_CMD" >&6; }
8961 else
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963 $as_echo "no" >&6; }
8964 fi
8965
8966
8967 else
8968 MAGIC_CMD=:
8969 fi
8970 fi
8971
8972 fi
8973 ;;
8974 esac
8975
8976 # Use C for the default configuration in the libtool script
8977
8978 lt_save_CC="$CC"
8979 ac_ext=c
8980 ac_cpp='$CPP $CPPFLAGS'
8981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8984
8985
8986 # Source file extension for C test sources.
8987 ac_ext=c
8988
8989 # Object file extension for compiled C test sources.
8990 objext=o
8991 objext=$objext
8992
8993 # Code to be used in simple compile tests
8994 lt_simple_compile_test_code="int some_variable = 0;"
8995
8996 # Code to be used in simple link tests
8997 lt_simple_link_test_code='int main(){return(0);}'
8998
8999
9000
9001
9002
9003
9004
9005 # If no C compiler was specified, use CC.
9006 LTCC=${LTCC-"$CC"}
9007
9008 # If no C compiler flags were specified, use CFLAGS.
9009 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9010
9011 # Allow CC to be a program name with arguments.
9012 compiler=$CC
9013
9014 # Save the default compiler, since it gets overwritten when the other
9015 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9016 compiler_DEFAULT=$CC
9017
9018 # save warnings/boilerplate of simple test code
9019 ac_outfile=conftest.$ac_objext
9020 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9021 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9022 _lt_compiler_boilerplate=`cat conftest.err`
9023 $RM conftest*
9024
9025 ac_outfile=conftest.$ac_objext
9026 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9027 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9028 _lt_linker_boilerplate=`cat conftest.err`
9029 $RM -r conftest*
9030
9031
9032 ## CAVEAT EMPTOR:
9033 ## There is no encapsulation within the following macros, do not change
9034 ## the running order or otherwise move them around unless you know exactly
9035 ## what you are doing...
9036 if test -n "$compiler"; then
9037
9038 lt_prog_compiler_no_builtin_flag=
9039
9040 if test "$GCC" = yes; then
9041 case $cc_basename in
9042 nvcc*)
9043 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9044 *)
9045 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9046 esac
9047
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9049 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9050 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9051 $as_echo_n "(cached) " >&6
9052 else
9053 lt_cv_prog_compiler_rtti_exceptions=no
9054 ac_outfile=conftest.$ac_objext
9055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9056 lt_compiler_flag="-fno-rtti -fno-exceptions"
9057 # Insert the option either (1) after the last *FLAGS variable, or
9058 # (2) before a word containing "conftest.", or (3) at the end.
9059 # Note that $ac_compile itself does not contain backslashes and begins
9060 # with a dollar sign (not a hyphen), so the echo should work correctly.
9061 # The option is referenced via a variable to avoid confusing sed.
9062 lt_compile=`echo "$ac_compile" | $SED \
9063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9065 -e 's:$: $lt_compiler_flag:'`
9066 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9067 (eval "$lt_compile" 2>conftest.err)
9068 ac_status=$?
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 if (exit $ac_status) && test -s "$ac_outfile"; then
9072 # The compiler can only warn and ignore the option if not recognized
9073 # So say no if there are warnings other than the usual output.
9074 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9076 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9077 lt_cv_prog_compiler_rtti_exceptions=yes
9078 fi
9079 fi
9080 $RM conftest*
9081
9082 fi
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9084 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9085
9086 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9087 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9088 else
9089 :
9090 fi
9091
9092 fi
9093
9094
9095
9096
9097
9098
9099 lt_prog_compiler_wl=
9100 lt_prog_compiler_pic=
9101 lt_prog_compiler_static=
9102
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9104 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9105
9106 if test "$GCC" = yes; then
9107 lt_prog_compiler_wl='-Wl,'
9108 lt_prog_compiler_static='-static'
9109
9110 case $host_os in
9111 aix*)
9112 # All AIX code is PIC.
9113 if test "$host_cpu" = ia64; then
9114 # AIX 5 now supports IA64 processor
9115 lt_prog_compiler_static='-Bstatic'
9116 fi
9117 lt_prog_compiler_pic='-fPIC'
9118 ;;
9119
9120 amigaos*)
9121 case $host_cpu in
9122 powerpc)
9123 # see comment about AmigaOS4 .so support
9124 lt_prog_compiler_pic='-fPIC'
9125 ;;
9126 m68k)
9127 # FIXME: we need at least 68020 code to build shared libraries, but
9128 # adding the `-m68020' flag to GCC prevents building anything better,
9129 # like `-m68040'.
9130 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9131 ;;
9132 esac
9133 ;;
9134
9135 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9136 # PIC is the default for these OSes.
9137 ;;
9138
9139 mingw* | cygwin* | pw32* | os2* | cegcc*)
9140 # This hack is so that the source file can tell whether it is being
9141 # built for inclusion in a dll (and should export symbols for example).
9142 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9143 # (--disable-auto-import) libraries
9144 lt_prog_compiler_pic='-DDLL_EXPORT'
9145 ;;
9146
9147 darwin* | rhapsody*)
9148 # PIC is the default on this platform
9149 # Common symbols not allowed in MH_DYLIB files
9150 lt_prog_compiler_pic='-fno-common'
9151 ;;
9152
9153 haiku*)
9154 # PIC is the default for Haiku.
9155 # The "-static" flag exists, but is broken.
9156 lt_prog_compiler_static=
9157 ;;
9158
9159 hpux*)
9160 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9161 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9162 # sets the default TLS model and affects inlining.
9163 case $host_cpu in
9164 hppa*64*)
9165 # +Z the default
9166 ;;
9167 *)
9168 lt_prog_compiler_pic='-fPIC'
9169 ;;
9170 esac
9171 ;;
9172
9173 interix[3-9]*)
9174 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9175 # Instead, we relocate shared libraries at runtime.
9176 ;;
9177
9178 msdosdjgpp*)
9179 # Just because we use GCC doesn't mean we suddenly get shared libraries
9180 # on systems that don't support them.
9181 lt_prog_compiler_can_build_shared=no
9182 enable_shared=no
9183 ;;
9184
9185 *nto* | *qnx*)
9186 # QNX uses GNU C++, but need to define -shared option too, otherwise
9187 # it will coredump.
9188 lt_prog_compiler_pic='-fPIC -shared'
9189 ;;
9190
9191 sysv4*MP*)
9192 if test -d /usr/nec; then
9193 lt_prog_compiler_pic=-Kconform_pic
9194 fi
9195 ;;
9196
9197 *)
9198 lt_prog_compiler_pic='-fPIC'
9199 ;;
9200 esac
9201
9202 case $cc_basename in
9203 nvcc*) # Cuda Compiler Driver 2.2
9204 lt_prog_compiler_wl='-Xlinker '
9205 lt_prog_compiler_pic='-Xcompiler -fPIC'
9206 ;;
9207 esac
9208 else
9209 # PORTME Check for flag to pass linker flags through the system compiler.
9210 case $host_os in
9211 aix*)
9212 lt_prog_compiler_wl='-Wl,'
9213 if test "$host_cpu" = ia64; then
9214 # AIX 5 now supports IA64 processor
9215 lt_prog_compiler_static='-Bstatic'
9216 else
9217 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9218 fi
9219 ;;
9220
9221 mingw* | cygwin* | pw32* | os2* | cegcc*)
9222 # This hack is so that the source file can tell whether it is being
9223 # built for inclusion in a dll (and should export symbols for example).
9224 lt_prog_compiler_pic='-DDLL_EXPORT'
9225 ;;
9226
9227 hpux9* | hpux10* | hpux11*)
9228 lt_prog_compiler_wl='-Wl,'
9229 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9230 # not for PA HP-UX.
9231 case $host_cpu in
9232 hppa*64*|ia64*)
9233 # +Z the default
9234 ;;
9235 *)
9236 lt_prog_compiler_pic='+Z'
9237 ;;
9238 esac
9239 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9240 lt_prog_compiler_static='${wl}-a ${wl}archive'
9241 ;;
9242
9243 irix5* | irix6* | nonstopux*)
9244 lt_prog_compiler_wl='-Wl,'
9245 # PIC (with -KPIC) is the default.
9246 lt_prog_compiler_static='-non_shared'
9247 ;;
9248
9249 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9250 case $cc_basename in
9251 # old Intel for x86_64 which still supported -KPIC.
9252 ecc*)
9253 lt_prog_compiler_wl='-Wl,'
9254 lt_prog_compiler_pic='-KPIC'
9255 lt_prog_compiler_static='-static'
9256 ;;
9257 # icc used to be incompatible with GCC.
9258 # ICC 10 doesn't accept -KPIC any more.
9259 icc* | ifort*)
9260 lt_prog_compiler_wl='-Wl,'
9261 lt_prog_compiler_pic='-fPIC'
9262 lt_prog_compiler_static='-static'
9263 ;;
9264 # Lahey Fortran 8.1.
9265 lf95*)
9266 lt_prog_compiler_wl='-Wl,'
9267 lt_prog_compiler_pic='--shared'
9268 lt_prog_compiler_static='--static'
9269 ;;
9270 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9271 # Portland Group compilers (*not* the Pentium gcc compiler,
9272 # which looks to be a dead project)
9273 lt_prog_compiler_wl='-Wl,'
9274 lt_prog_compiler_pic='-fpic'
9275 lt_prog_compiler_static='-Bstatic'
9276 ;;
9277 ccc*)
9278 lt_prog_compiler_wl='-Wl,'
9279 # All Alpha code is PIC.
9280 lt_prog_compiler_static='-non_shared'
9281 ;;
9282 xl* | bgxl* | bgf* | mpixl*)
9283 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9284 lt_prog_compiler_wl='-Wl,'
9285 lt_prog_compiler_pic='-qpic'
9286 lt_prog_compiler_static='-qstaticlink'
9287 ;;
9288 *)
9289 case `$CC -V 2>&1 | sed 5q` in
9290 *Sun\ F* | *Sun*Fortran*)
9291 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9292 lt_prog_compiler_pic='-KPIC'
9293 lt_prog_compiler_static='-Bstatic'
9294 lt_prog_compiler_wl=''
9295 ;;
9296 *Sun\ C*)
9297 # Sun C 5.9
9298 lt_prog_compiler_pic='-KPIC'
9299 lt_prog_compiler_static='-Bstatic'
9300 lt_prog_compiler_wl='-Wl,'
9301 ;;
9302 esac
9303 ;;
9304 esac
9305 ;;
9306
9307 newsos6)
9308 lt_prog_compiler_pic='-KPIC'
9309 lt_prog_compiler_static='-Bstatic'
9310 ;;
9311
9312 *nto* | *qnx*)
9313 # QNX uses GNU C++, but need to define -shared option too, otherwise
9314 # it will coredump.
9315 lt_prog_compiler_pic='-fPIC -shared'
9316 ;;
9317
9318 osf3* | osf4* | osf5*)
9319 lt_prog_compiler_wl='-Wl,'
9320 # All OSF/1 code is PIC.
9321 lt_prog_compiler_static='-non_shared'
9322 ;;
9323
9324 rdos*)
9325 lt_prog_compiler_static='-non_shared'
9326 ;;
9327
9328 solaris*)
9329 lt_prog_compiler_pic='-KPIC'
9330 lt_prog_compiler_static='-Bstatic'
9331 case $cc_basename in
9332 f77* | f90* | f95*)
9333 lt_prog_compiler_wl='-Qoption ld ';;
9334 *)
9335 lt_prog_compiler_wl='-Wl,';;
9336 esac
9337 ;;
9338
9339 sunos4*)
9340 lt_prog_compiler_wl='-Qoption ld '
9341 lt_prog_compiler_pic='-PIC'
9342 lt_prog_compiler_static='-Bstatic'
9343 ;;
9344
9345 sysv4 | sysv4.2uw2* | sysv4.3*)
9346 lt_prog_compiler_wl='-Wl,'
9347 lt_prog_compiler_pic='-KPIC'
9348 lt_prog_compiler_static='-Bstatic'
9349 ;;
9350
9351 sysv4*MP*)
9352 if test -d /usr/nec ;then
9353 lt_prog_compiler_pic='-Kconform_pic'
9354 lt_prog_compiler_static='-Bstatic'
9355 fi
9356 ;;
9357
9358 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9359 lt_prog_compiler_wl='-Wl,'
9360 lt_prog_compiler_pic='-KPIC'
9361 lt_prog_compiler_static='-Bstatic'
9362 ;;
9363
9364 unicos*)
9365 lt_prog_compiler_wl='-Wl,'
9366 lt_prog_compiler_can_build_shared=no
9367 ;;
9368
9369 uts4*)
9370 lt_prog_compiler_pic='-pic'
9371 lt_prog_compiler_static='-Bstatic'
9372 ;;
9373
9374 *)
9375 lt_prog_compiler_can_build_shared=no
9376 ;;
9377 esac
9378 fi
9379
9380 case $host_os in
9381 # For platforms which do not support PIC, -DPIC is meaningless:
9382 *djgpp*)
9383 lt_prog_compiler_pic=
9384 ;;
9385 *)
9386 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9387 ;;
9388 esac
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9390 $as_echo "$lt_prog_compiler_pic" >&6; }
9391
9392
9393
9394
9395
9396
9397 #
9398 # Check to make sure the PIC flag actually works.
9399 #
9400 if test -n "$lt_prog_compiler_pic"; then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9402 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9403 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9404 $as_echo_n "(cached) " >&6
9405 else
9406 lt_cv_prog_compiler_pic_works=no
9407 ac_outfile=conftest.$ac_objext
9408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9409 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9410 # Insert the option either (1) after the last *FLAGS variable, or
9411 # (2) before a word containing "conftest.", or (3) at the end.
9412 # Note that $ac_compile itself does not contain backslashes and begins
9413 # with a dollar sign (not a hyphen), so the echo should work correctly.
9414 # The option is referenced via a variable to avoid confusing sed.
9415 lt_compile=`echo "$ac_compile" | $SED \
9416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9418 -e 's:$: $lt_compiler_flag:'`
9419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9420 (eval "$lt_compile" 2>conftest.err)
9421 ac_status=$?
9422 cat conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 if (exit $ac_status) && test -s "$ac_outfile"; then
9425 # The compiler can only warn and ignore the option if not recognized
9426 # So say no if there are warnings other than the usual output.
9427 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9429 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9430 lt_cv_prog_compiler_pic_works=yes
9431 fi
9432 fi
9433 $RM conftest*
9434
9435 fi
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9437 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9438
9439 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9440 case $lt_prog_compiler_pic in
9441 "" | " "*) ;;
9442 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9443 esac
9444 else
9445 lt_prog_compiler_pic=
9446 lt_prog_compiler_can_build_shared=no
9447 fi
9448
9449 fi
9450
9451
9452
9453
9454
9455
9456 #
9457 # Check to make sure the static flag actually works.
9458 #
9459 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9461 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9462 if ${lt_cv_prog_compiler_static_works+:} false; then :
9463 $as_echo_n "(cached) " >&6
9464 else
9465 lt_cv_prog_compiler_static_works=no
9466 save_LDFLAGS="$LDFLAGS"
9467 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9468 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9470 # The linker can only warn and ignore the option if not recognized
9471 # So say no if there are warnings
9472 if test -s conftest.err; then
9473 # Append any errors to the config.log.
9474 cat conftest.err 1>&5
9475 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9477 if diff conftest.exp conftest.er2 >/dev/null; then
9478 lt_cv_prog_compiler_static_works=yes
9479 fi
9480 else
9481 lt_cv_prog_compiler_static_works=yes
9482 fi
9483 fi
9484 $RM -r conftest*
9485 LDFLAGS="$save_LDFLAGS"
9486
9487 fi
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9489 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9490
9491 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9492 :
9493 else
9494 lt_prog_compiler_static=
9495 fi
9496
9497
9498
9499
9500
9501
9502
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9504 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9505 if ${lt_cv_prog_compiler_c_o+:} false; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 lt_cv_prog_compiler_c_o=no
9509 $RM -r conftest 2>/dev/null
9510 mkdir conftest
9511 cd conftest
9512 mkdir out
9513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9514
9515 lt_compiler_flag="-o out/conftest2.$ac_objext"
9516 # Insert the option either (1) after the last *FLAGS variable, or
9517 # (2) before a word containing "conftest.", or (3) at the end.
9518 # Note that $ac_compile itself does not contain backslashes and begins
9519 # with a dollar sign (not a hyphen), so the echo should work correctly.
9520 lt_compile=`echo "$ac_compile" | $SED \
9521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9523 -e 's:$: $lt_compiler_flag:'`
9524 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9525 (eval "$lt_compile" 2>out/conftest.err)
9526 ac_status=$?
9527 cat out/conftest.err >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9530 then
9531 # The compiler can only warn and ignore the option if not recognized
9532 # So say no if there are warnings
9533 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9534 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9535 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9536 lt_cv_prog_compiler_c_o=yes
9537 fi
9538 fi
9539 chmod u+w . 2>&5
9540 $RM conftest*
9541 # SGI C++ compiler will create directory out/ii_files/ for
9542 # template instantiation
9543 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9544 $RM out/* && rmdir out
9545 cd ..
9546 $RM -r conftest
9547 $RM conftest*
9548
9549 fi
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9551 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9552
9553
9554
9555
9556
9557
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9559 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9560 if ${lt_cv_prog_compiler_c_o+:} false; then :
9561 $as_echo_n "(cached) " >&6
9562 else
9563 lt_cv_prog_compiler_c_o=no
9564 $RM -r conftest 2>/dev/null
9565 mkdir conftest
9566 cd conftest
9567 mkdir out
9568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9569
9570 lt_compiler_flag="-o out/conftest2.$ac_objext"
9571 # Insert the option either (1) after the last *FLAGS variable, or
9572 # (2) before a word containing "conftest.", or (3) at the end.
9573 # Note that $ac_compile itself does not contain backslashes and begins
9574 # with a dollar sign (not a hyphen), so the echo should work correctly.
9575 lt_compile=`echo "$ac_compile" | $SED \
9576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9578 -e 's:$: $lt_compiler_flag:'`
9579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9580 (eval "$lt_compile" 2>out/conftest.err)
9581 ac_status=$?
9582 cat out/conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9585 then
9586 # The compiler can only warn and ignore the option if not recognized
9587 # So say no if there are warnings
9588 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9589 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9590 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9591 lt_cv_prog_compiler_c_o=yes
9592 fi
9593 fi
9594 chmod u+w . 2>&5
9595 $RM conftest*
9596 # SGI C++ compiler will create directory out/ii_files/ for
9597 # template instantiation
9598 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9599 $RM out/* && rmdir out
9600 cd ..
9601 $RM -r conftest
9602 $RM conftest*
9603
9604 fi
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9606 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9607
9608
9609
9610
9611 hard_links="nottested"
9612 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9613 # do not overwrite the value of need_locks provided by the user
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9615 $as_echo_n "checking if we can lock with hard links... " >&6; }
9616 hard_links=yes
9617 $RM conftest*
9618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9619 touch conftest.a
9620 ln conftest.a conftest.b 2>&5 || hard_links=no
9621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9623 $as_echo "$hard_links" >&6; }
9624 if test "$hard_links" = no; then
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9626 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9627 need_locks=warn
9628 fi
9629 else
9630 need_locks=no
9631 fi
9632
9633
9634
9635
9636
9637
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9639 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9640
9641 runpath_var=
9642 allow_undefined_flag=
9643 always_export_symbols=no
9644 archive_cmds=
9645 archive_expsym_cmds=
9646 compiler_needs_object=no
9647 enable_shared_with_static_runtimes=no
9648 export_dynamic_flag_spec=
9649 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9650 hardcode_automatic=no
9651 hardcode_direct=no
9652 hardcode_direct_absolute=no
9653 hardcode_libdir_flag_spec=
9654 hardcode_libdir_flag_spec_ld=
9655 hardcode_libdir_separator=
9656 hardcode_minus_L=no
9657 hardcode_shlibpath_var=unsupported
9658 inherit_rpath=no
9659 link_all_deplibs=unknown
9660 module_cmds=
9661 module_expsym_cmds=
9662 old_archive_from_new_cmds=
9663 old_archive_from_expsyms_cmds=
9664 thread_safe_flag_spec=
9665 whole_archive_flag_spec=
9666 # include_expsyms should be a list of space-separated symbols to be *always*
9667 # included in the symbol list
9668 include_expsyms=
9669 # exclude_expsyms can be an extended regexp of symbols to exclude
9670 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9671 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9672 # as well as any symbol that contains `d'.
9673 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9674 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9675 # platforms (ab)use it in PIC code, but their linkers get confused if
9676 # the symbol is explicitly referenced. Since portable code cannot
9677 # rely on this symbol name, it's probably fine to never include it in
9678 # preloaded symbol tables.
9679 # Exclude shared library initialization/finalization symbols.
9680 extract_expsyms_cmds=
9681
9682 case $host_os in
9683 cygwin* | mingw* | pw32* | cegcc*)
9684 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9685 # When not using gcc, we currently assume that we are using
9686 # Microsoft Visual C++.
9687 if test "$GCC" != yes; then
9688 with_gnu_ld=no
9689 fi
9690 ;;
9691 interix*)
9692 # we just hope/assume this is gcc and not c89 (= MSVC++)
9693 with_gnu_ld=yes
9694 ;;
9695 openbsd*)
9696 with_gnu_ld=no
9697 ;;
9698 esac
9699
9700 ld_shlibs=yes
9701
9702 # On some targets, GNU ld is compatible enough with the native linker
9703 # that we're better off using the native interface for both.
9704 lt_use_gnu_ld_interface=no
9705 if test "$with_gnu_ld" = yes; then
9706 case $host_os in
9707 aix*)
9708 # The AIX port of GNU ld has always aspired to compatibility
9709 # with the native linker. However, as the warning in the GNU ld
9710 # block says, versions before 2.19.5* couldn't really create working
9711 # shared libraries, regardless of the interface used.
9712 case `$LD -v 2>&1` in
9713 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9714 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9715 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9716 *)
9717 lt_use_gnu_ld_interface=yes
9718 ;;
9719 esac
9720 ;;
9721 *)
9722 lt_use_gnu_ld_interface=yes
9723 ;;
9724 esac
9725 fi
9726
9727 if test "$lt_use_gnu_ld_interface" = yes; then
9728 # If archive_cmds runs LD, not CC, wlarc should be empty
9729 wlarc='${wl}'
9730
9731 # Set some defaults for GNU ld with shared library support. These
9732 # are reset later if shared libraries are not supported. Putting them
9733 # here allows them to be overridden if necessary.
9734 runpath_var=LD_RUN_PATH
9735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9736 export_dynamic_flag_spec='${wl}--export-dynamic'
9737 # ancient GNU ld didn't support --whole-archive et. al.
9738 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9739 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9740 else
9741 whole_archive_flag_spec=
9742 fi
9743 supports_anon_versioning=no
9744 case `$LD -v 2>&1` in
9745 *GNU\ gold*) supports_anon_versioning=yes ;;
9746 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9747 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9748 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9749 *\ 2.11.*) ;; # other 2.11 versions
9750 *) supports_anon_versioning=yes ;;
9751 esac
9752
9753 # See if GNU ld supports shared libraries.
9754 case $host_os in
9755 aix[3-9]*)
9756 # On AIX/PPC, the GNU linker is very broken
9757 if test "$host_cpu" != ia64; then
9758 ld_shlibs=no
9759 cat <<_LT_EOF 1>&2
9760
9761 *** Warning: the GNU linker, at least up to release 2.19, is reported
9762 *** to be unable to reliably create shared libraries on AIX.
9763 *** Therefore, libtool is disabling shared libraries support. If you
9764 *** really care for shared libraries, you may want to install binutils
9765 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9766 *** You will then need to restart the configuration process.
9767
9768 _LT_EOF
9769 fi
9770 ;;
9771
9772 amigaos*)
9773 case $host_cpu in
9774 powerpc)
9775 # see comment about AmigaOS4 .so support
9776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9777 archive_expsym_cmds=''
9778 ;;
9779 m68k)
9780 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)'
9781 hardcode_libdir_flag_spec='-L$libdir'
9782 hardcode_minus_L=yes
9783 ;;
9784 esac
9785 ;;
9786
9787 beos*)
9788 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9789 allow_undefined_flag=unsupported
9790 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9791 # support --undefined. This deserves some investigation. FIXME
9792 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793 else
9794 ld_shlibs=no
9795 fi
9796 ;;
9797
9798 cygwin* | mingw* | pw32* | cegcc*)
9799 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9800 # as there is no search path for DLLs.
9801 hardcode_libdir_flag_spec='-L$libdir'
9802 export_dynamic_flag_spec='${wl}--export-all-symbols'
9803 allow_undefined_flag=unsupported
9804 always_export_symbols=no
9805 enable_shared_with_static_runtimes=yes
9806 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9807
9808 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9810 # If the export-symbols file already is a .def file (1st line
9811 # is EXPORTS), use it as is; otherwise, prepend...
9812 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9813 cp $export_symbols $output_objdir/$soname.def;
9814 else
9815 echo EXPORTS > $output_objdir/$soname.def;
9816 cat $export_symbols >> $output_objdir/$soname.def;
9817 fi~
9818 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9819 else
9820 ld_shlibs=no
9821 fi
9822 ;;
9823
9824 haiku*)
9825 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9826 link_all_deplibs=yes
9827 ;;
9828
9829 interix[3-9]*)
9830 hardcode_direct=no
9831 hardcode_shlibpath_var=no
9832 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9833 export_dynamic_flag_spec='${wl}-E'
9834 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9835 # Instead, shared libraries are loaded at an image base (0x10000000 by
9836 # default) and relocated if they conflict, which is a slow very memory
9837 # consuming and fragmenting process. To avoid this, we pick a random,
9838 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9839 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9840 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9841 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'
9842 ;;
9843
9844 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9845 tmp_diet=no
9846 if test "$host_os" = linux-dietlibc; then
9847 case $cc_basename in
9848 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9849 esac
9850 fi
9851 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9852 && test "$tmp_diet" = no
9853 then
9854 tmp_addflag=' $pic_flag'
9855 tmp_sharedflag='-shared'
9856 case $cc_basename,$host_cpu in
9857 pgcc*) # Portland Group C compiler
9858 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'
9859 tmp_addflag=' $pic_flag'
9860 ;;
9861 pgf77* | pgf90* | pgf95* | pgfortran*)
9862 # Portland Group f77 and f90 compilers
9863 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'
9864 tmp_addflag=' $pic_flag -Mnomain' ;;
9865 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9866 tmp_addflag=' -i_dynamic' ;;
9867 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9868 tmp_addflag=' -i_dynamic -nofor_main' ;;
9869 ifc* | ifort*) # Intel Fortran compiler
9870 tmp_addflag=' -nofor_main' ;;
9871 lf95*) # Lahey Fortran 8.1
9872 whole_archive_flag_spec=
9873 tmp_sharedflag='--shared' ;;
9874 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9875 tmp_sharedflag='-qmkshrobj'
9876 tmp_addflag= ;;
9877 nvcc*) # Cuda Compiler Driver 2.2
9878 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'
9879 compiler_needs_object=yes
9880 ;;
9881 esac
9882 case `$CC -V 2>&1 | sed 5q` in
9883 *Sun\ C*) # Sun C 5.9
9884 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'
9885 compiler_needs_object=yes
9886 tmp_sharedflag='-G' ;;
9887 *Sun\ F*) # Sun Fortran 8.3
9888 tmp_sharedflag='-G' ;;
9889 esac
9890 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9891
9892 if test "x$supports_anon_versioning" = xyes; then
9893 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9894 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9895 echo "local: *; };" >> $output_objdir/$libname.ver~
9896 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9897 fi
9898
9899 case $cc_basename in
9900 xlf* | bgf* | bgxlf* | mpixlf*)
9901 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9902 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9903 hardcode_libdir_flag_spec=
9904 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9905 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9906 if test "x$supports_anon_versioning" = xyes; then
9907 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9908 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9909 echo "local: *; };" >> $output_objdir/$libname.ver~
9910 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9911 fi
9912 ;;
9913 esac
9914 else
9915 ld_shlibs=no
9916 fi
9917 ;;
9918
9919 netbsd*)
9920 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9921 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9922 wlarc=
9923 else
9924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9925 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9926 fi
9927 ;;
9928
9929 solaris*)
9930 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9931 ld_shlibs=no
9932 cat <<_LT_EOF 1>&2
9933
9934 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9935 *** create shared libraries on Solaris systems. Therefore, libtool
9936 *** is disabling shared libraries support. We urge you to upgrade GNU
9937 *** binutils to release 2.9.1 or newer. Another option is to modify
9938 *** your PATH or compiler configuration so that the native linker is
9939 *** used, and then restart.
9940
9941 _LT_EOF
9942 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9944 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9945 else
9946 ld_shlibs=no
9947 fi
9948 ;;
9949
9950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9951 case `$LD -v 2>&1` in
9952 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9953 ld_shlibs=no
9954 cat <<_LT_EOF 1>&2
9955
9956 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9957 *** reliably create shared libraries on SCO systems. Therefore, libtool
9958 *** is disabling shared libraries support. We urge you to upgrade GNU
9959 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9960 *** your PATH or compiler configuration so that the native linker is
9961 *** used, and then restart.
9962
9963 _LT_EOF
9964 ;;
9965 *)
9966 # For security reasons, it is highly recommended that you always
9967 # use absolute paths for naming shared libraries, and exclude the
9968 # DT_RUNPATH tag from executables and libraries. But doing so
9969 # requires that you compile everything twice, which is a pain.
9970 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9973 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9974 else
9975 ld_shlibs=no
9976 fi
9977 ;;
9978 esac
9979 ;;
9980
9981 sunos4*)
9982 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9983 wlarc=
9984 hardcode_direct=yes
9985 hardcode_shlibpath_var=no
9986 ;;
9987
9988 *)
9989 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9991 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9992 else
9993 ld_shlibs=no
9994 fi
9995 ;;
9996 esac
9997
9998 if test "$ld_shlibs" = no; then
9999 runpath_var=
10000 hardcode_libdir_flag_spec=
10001 export_dynamic_flag_spec=
10002 whole_archive_flag_spec=
10003 fi
10004 else
10005 # PORTME fill in a description of your system's linker (not GNU ld)
10006 case $host_os in
10007 aix3*)
10008 allow_undefined_flag=unsupported
10009 always_export_symbols=yes
10010 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'
10011 # Note: this linker hardcodes the directories in LIBPATH if there
10012 # are no directories specified by -L.
10013 hardcode_minus_L=yes
10014 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10015 # Neither direct hardcoding nor static linking is supported with a
10016 # broken collect2.
10017 hardcode_direct=unsupported
10018 fi
10019 ;;
10020
10021 aix[4-9]*)
10022 if test "$host_cpu" = ia64; then
10023 # On IA64, the linker does run time linking by default, so we don't
10024 # have to do anything special.
10025 aix_use_runtimelinking=no
10026 exp_sym_flag='-Bexport'
10027 no_entry_flag=""
10028 else
10029 # If we're using GNU nm, then we don't want the "-C" option.
10030 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10031 # Also, AIX nm treats weak defined symbols like other global
10032 # defined symbols, whereas GNU nm marks them as "W".
10033 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10034 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'
10035 else
10036 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'
10037 fi
10038 aix_use_runtimelinking=no
10039
10040 # Test if we are trying to use run time linking or normal
10041 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10042 # need to do runtime linking.
10043 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10044 for ld_flag in $LDFLAGS; do
10045 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10046 aix_use_runtimelinking=yes
10047 break
10048 fi
10049 done
10050 ;;
10051 esac
10052
10053 exp_sym_flag='-bexport'
10054 no_entry_flag='-bnoentry'
10055 fi
10056
10057 # When large executables or shared objects are built, AIX ld can
10058 # have problems creating the table of contents. If linking a library
10059 # or program results in "error TOC overflow" add -mminimal-toc to
10060 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10061 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10062
10063 archive_cmds=''
10064 hardcode_direct=yes
10065 hardcode_direct_absolute=yes
10066 hardcode_libdir_separator=':'
10067 link_all_deplibs=yes
10068 file_list_spec='${wl}-f,'
10069
10070 if test "$GCC" = yes; then
10071 case $host_os in aix4.[012]|aix4.[012].*)
10072 # We only want to do this on AIX 4.2 and lower, the check
10073 # below for broken collect2 doesn't work under 4.3+
10074 collect2name=`${CC} -print-prog-name=collect2`
10075 if test -f "$collect2name" &&
10076 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10077 then
10078 # We have reworked collect2
10079 :
10080 else
10081 # We have old collect2
10082 hardcode_direct=unsupported
10083 # It fails to find uninstalled libraries when the uninstalled
10084 # path is not listed in the libpath. Setting hardcode_minus_L
10085 # to unsupported forces relinking
10086 hardcode_minus_L=yes
10087 hardcode_libdir_flag_spec='-L$libdir'
10088 hardcode_libdir_separator=
10089 fi
10090 ;;
10091 esac
10092 shared_flag='-shared'
10093 if test "$aix_use_runtimelinking" = yes; then
10094 shared_flag="$shared_flag "'${wl}-G'
10095 fi
10096 else
10097 # not using gcc
10098 if test "$host_cpu" = ia64; then
10099 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10100 # chokes on -Wl,-G. The following line is correct:
10101 shared_flag='-G'
10102 else
10103 if test "$aix_use_runtimelinking" = yes; then
10104 shared_flag='${wl}-G'
10105 else
10106 shared_flag='${wl}-bM:SRE'
10107 fi
10108 fi
10109 fi
10110
10111 export_dynamic_flag_spec='${wl}-bexpall'
10112 # It seems that -bexpall does not export symbols beginning with
10113 # underscore (_), so it is better to generate a list of symbols to export.
10114 always_export_symbols=yes
10115 if test "$aix_use_runtimelinking" = yes; then
10116 # Warning - without using the other runtime loading flags (-brtl),
10117 # -berok will link without error, but may produce a broken library.
10118 allow_undefined_flag='-berok'
10119 # Determine the default libpath from the value encoded in an
10120 # empty executable.
10121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10123
10124 int
10125 main ()
10126 {
10127
10128 ;
10129 return 0;
10130 }
10131 _ACEOF
10132 if ac_fn_c_try_link "$LINENO"; then :
10133
10134 lt_aix_libpath_sed='
10135 /Import File Strings/,/^$/ {
10136 /^0/ {
10137 s/^0 *\(.*\)$/\1/
10138 p
10139 }
10140 }'
10141 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10142 # Check for a 64-bit object if we didn't find anything.
10143 if test -z "$aix_libpath"; then
10144 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10145 fi
10146 fi
10147 rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10149 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10150
10151 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10152 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"
10153 else
10154 if test "$host_cpu" = ia64; then
10155 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10156 allow_undefined_flag="-z nodefs"
10157 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"
10158 else
10159 # Determine the default libpath from the value encoded in an
10160 # empty executable.
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163
10164 int
10165 main ()
10166 {
10167
10168 ;
10169 return 0;
10170 }
10171 _ACEOF
10172 if ac_fn_c_try_link "$LINENO"; then :
10173
10174 lt_aix_libpath_sed='
10175 /Import File Strings/,/^$/ {
10176 /^0/ {
10177 s/^0 *\(.*\)$/\1/
10178 p
10179 }
10180 }'
10181 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10182 # Check for a 64-bit object if we didn't find anything.
10183 if test -z "$aix_libpath"; then
10184 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10185 fi
10186 fi
10187 rm -f core conftest.err conftest.$ac_objext \
10188 conftest$ac_exeext conftest.$ac_ext
10189 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10190
10191 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10192 # Warning - without using the other run time loading flags,
10193 # -berok will link without error, but may produce a broken library.
10194 no_undefined_flag=' ${wl}-bernotok'
10195 allow_undefined_flag=' ${wl}-berok'
10196 if test "$with_gnu_ld" = yes; then
10197 # We only use this code for GNU lds that support --whole-archive.
10198 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10199 else
10200 # Exported symbols can be pulled into shared objects from archives
10201 whole_archive_flag_spec='$convenience'
10202 fi
10203 archive_cmds_need_lc=yes
10204 # This is similar to how AIX traditionally builds its shared libraries.
10205 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'
10206 fi
10207 fi
10208 ;;
10209
10210 amigaos*)
10211 case $host_cpu in
10212 powerpc)
10213 # see comment about AmigaOS4 .so support
10214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10215 archive_expsym_cmds=''
10216 ;;
10217 m68k)
10218 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)'
10219 hardcode_libdir_flag_spec='-L$libdir'
10220 hardcode_minus_L=yes
10221 ;;
10222 esac
10223 ;;
10224
10225 bsdi[45]*)
10226 export_dynamic_flag_spec=-rdynamic
10227 ;;
10228
10229 cygwin* | mingw* | pw32* | cegcc*)
10230 # When not using gcc, we currently assume that we are using
10231 # Microsoft Visual C++.
10232 # hardcode_libdir_flag_spec is actually meaningless, as there is
10233 # no search path for DLLs.
10234 hardcode_libdir_flag_spec=' '
10235 allow_undefined_flag=unsupported
10236 # Tell ltmain to make .lib files, not .a files.
10237 libext=lib
10238 # Tell ltmain to make .dll files, not .so files.
10239 shrext_cmds=".dll"
10240 # FIXME: Setting linknames here is a bad hack.
10241 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10242 # The linker will automatically build a .lib file if we build a DLL.
10243 old_archive_from_new_cmds='true'
10244 # FIXME: Should let the user specify the lib program.
10245 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10246 fix_srcfile_path='`cygpath -w "$srcfile"`'
10247 enable_shared_with_static_runtimes=yes
10248 ;;
10249
10250 darwin* | rhapsody*)
10251
10252
10253 archive_cmds_need_lc=no
10254 hardcode_direct=no
10255 hardcode_automatic=yes
10256 hardcode_shlibpath_var=unsupported
10257 if test "$lt_cv_ld_force_load" = "yes"; then
10258 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\"`'
10259 else
10260 whole_archive_flag_spec=''
10261 fi
10262 link_all_deplibs=yes
10263 allow_undefined_flag="$_lt_dar_allow_undefined"
10264 case $cc_basename in
10265 ifort*) _lt_dar_can_shared=yes ;;
10266 *) _lt_dar_can_shared=$GCC ;;
10267 esac
10268 if test "$_lt_dar_can_shared" = "yes"; then
10269 output_verbose_link_cmd=func_echo_all
10270 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10271 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10272 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}"
10273 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}"
10274
10275 else
10276 ld_shlibs=no
10277 fi
10278
10279 ;;
10280
10281 dgux*)
10282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10283 hardcode_libdir_flag_spec='-L$libdir'
10284 hardcode_shlibpath_var=no
10285 ;;
10286
10287 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10288 # support. Future versions do this automatically, but an explicit c++rt0.o
10289 # does not break anything, and helps significantly (at the cost of a little
10290 # extra space).
10291 freebsd2.2*)
10292 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10293 hardcode_libdir_flag_spec='-R$libdir'
10294 hardcode_direct=yes
10295 hardcode_shlibpath_var=no
10296 ;;
10297
10298 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10299 freebsd2.*)
10300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10301 hardcode_direct=yes
10302 hardcode_minus_L=yes
10303 hardcode_shlibpath_var=no
10304 ;;
10305
10306 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10307 freebsd* | dragonfly*)
10308 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10309 hardcode_libdir_flag_spec='-R$libdir'
10310 hardcode_direct=yes
10311 hardcode_shlibpath_var=no
10312 ;;
10313
10314 hpux9*)
10315 if test "$GCC" = yes; then
10316 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'
10317 else
10318 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'
10319 fi
10320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10321 hardcode_libdir_separator=:
10322 hardcode_direct=yes
10323
10324 # hardcode_minus_L: Not really in the search PATH,
10325 # but as the default location of the library.
10326 hardcode_minus_L=yes
10327 export_dynamic_flag_spec='${wl}-E'
10328 ;;
10329
10330 hpux10*)
10331 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10332 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10333 else
10334 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10335 fi
10336 if test "$with_gnu_ld" = no; then
10337 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10338 hardcode_libdir_flag_spec_ld='+b $libdir'
10339 hardcode_libdir_separator=:
10340 hardcode_direct=yes
10341 hardcode_direct_absolute=yes
10342 export_dynamic_flag_spec='${wl}-E'
10343 # hardcode_minus_L: Not really in the search PATH,
10344 # but as the default location of the library.
10345 hardcode_minus_L=yes
10346 fi
10347 ;;
10348
10349 hpux11*)
10350 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10351 case $host_cpu in
10352 hppa*64*)
10353 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10354 ;;
10355 ia64*)
10356 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10357 ;;
10358 *)
10359 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10360 ;;
10361 esac
10362 else
10363 case $host_cpu in
10364 hppa*64*)
10365 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10366 ;;
10367 ia64*)
10368 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10369 ;;
10370 *)
10371
10372 # Older versions of the 11.00 compiler do not understand -b yet
10373 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10375 $as_echo_n "checking if $CC understands -b... " >&6; }
10376 if ${lt_cv_prog_compiler__b+:} false; then :
10377 $as_echo_n "(cached) " >&6
10378 else
10379 lt_cv_prog_compiler__b=no
10380 save_LDFLAGS="$LDFLAGS"
10381 LDFLAGS="$LDFLAGS -b"
10382 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10383 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10384 # The linker can only warn and ignore the option if not recognized
10385 # So say no if there are warnings
10386 if test -s conftest.err; then
10387 # Append any errors to the config.log.
10388 cat conftest.err 1>&5
10389 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10391 if diff conftest.exp conftest.er2 >/dev/null; then
10392 lt_cv_prog_compiler__b=yes
10393 fi
10394 else
10395 lt_cv_prog_compiler__b=yes
10396 fi
10397 fi
10398 $RM -r conftest*
10399 LDFLAGS="$save_LDFLAGS"
10400
10401 fi
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10403 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10404
10405 if test x"$lt_cv_prog_compiler__b" = xyes; then
10406 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10407 else
10408 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10409 fi
10410
10411 ;;
10412 esac
10413 fi
10414 if test "$with_gnu_ld" = no; then
10415 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10416 hardcode_libdir_separator=:
10417
10418 case $host_cpu in
10419 hppa*64*|ia64*)
10420 hardcode_direct=no
10421 hardcode_shlibpath_var=no
10422 ;;
10423 *)
10424 hardcode_direct=yes
10425 hardcode_direct_absolute=yes
10426 export_dynamic_flag_spec='${wl}-E'
10427
10428 # hardcode_minus_L: Not really in the search PATH,
10429 # but as the default location of the library.
10430 hardcode_minus_L=yes
10431 ;;
10432 esac
10433 fi
10434 ;;
10435
10436 irix5* | irix6* | nonstopux*)
10437 if test "$GCC" = yes; then
10438 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'
10439 # Try to use the -exported_symbol ld option, if it does not
10440 # work, assume that -exports_file does not work either and
10441 # implicitly export all symbols.
10442 save_LDFLAGS="$LDFLAGS"
10443 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445 /* end confdefs.h. */
10446 int foo(void) {}
10447 _ACEOF
10448 if ac_fn_c_try_link "$LINENO"; then :
10449 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'
10450
10451 fi
10452 rm -f core conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10454 LDFLAGS="$save_LDFLAGS"
10455 else
10456 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'
10457 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'
10458 fi
10459 archive_cmds_need_lc='no'
10460 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10461 hardcode_libdir_separator=:
10462 inherit_rpath=yes
10463 link_all_deplibs=yes
10464 ;;
10465
10466 netbsd*)
10467 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10469 else
10470 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10471 fi
10472 hardcode_libdir_flag_spec='-R$libdir'
10473 hardcode_direct=yes
10474 hardcode_shlibpath_var=no
10475 ;;
10476
10477 newsos6)
10478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10479 hardcode_direct=yes
10480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10481 hardcode_libdir_separator=:
10482 hardcode_shlibpath_var=no
10483 ;;
10484
10485 *nto* | *qnx*)
10486 ;;
10487
10488 openbsd*)
10489 if test -f /usr/libexec/ld.so; then
10490 hardcode_direct=yes
10491 hardcode_shlibpath_var=no
10492 hardcode_direct_absolute=yes
10493 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10494 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10495 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10496 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10497 export_dynamic_flag_spec='${wl}-E'
10498 else
10499 case $host_os in
10500 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10501 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10502 hardcode_libdir_flag_spec='-R$libdir'
10503 ;;
10504 *)
10505 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10506 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10507 ;;
10508 esac
10509 fi
10510 else
10511 ld_shlibs=no
10512 fi
10513 ;;
10514
10515 os2*)
10516 hardcode_libdir_flag_spec='-L$libdir'
10517 hardcode_minus_L=yes
10518 allow_undefined_flag=unsupported
10519 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'
10520 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10521 ;;
10522
10523 osf3*)
10524 if test "$GCC" = yes; then
10525 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10526 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'
10527 else
10528 allow_undefined_flag=' -expect_unresolved \*'
10529 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'
10530 fi
10531 archive_cmds_need_lc='no'
10532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10533 hardcode_libdir_separator=:
10534 ;;
10535
10536 osf4* | osf5*) # as osf3* with the addition of -msym flag
10537 if test "$GCC" = yes; then
10538 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10539 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'
10540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10541 else
10542 allow_undefined_flag=' -expect_unresolved \*'
10543 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'
10544 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~
10545 $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'
10546
10547 # Both c and cxx compiler support -rpath directly
10548 hardcode_libdir_flag_spec='-rpath $libdir'
10549 fi
10550 archive_cmds_need_lc='no'
10551 hardcode_libdir_separator=:
10552 ;;
10553
10554 solaris*)
10555 no_undefined_flag=' -z defs'
10556 if test "$GCC" = yes; then
10557 wlarc='${wl}'
10558 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10559 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10560 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10561 else
10562 case `$CC -V 2>&1` in
10563 *"Compilers 5.0"*)
10564 wlarc=''
10565 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10566 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10567 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10568 ;;
10569 *)
10570 wlarc='${wl}'
10571 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10572 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10573 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10574 ;;
10575 esac
10576 fi
10577 hardcode_libdir_flag_spec='-R$libdir'
10578 hardcode_shlibpath_var=no
10579 case $host_os in
10580 solaris2.[0-5] | solaris2.[0-5].*) ;;
10581 *)
10582 # The compiler driver will combine and reorder linker options,
10583 # but understands `-z linker_flag'. GCC discards it without `$wl',
10584 # but is careful enough not to reorder.
10585 # Supported since Solaris 2.6 (maybe 2.5.1?)
10586 if test "$GCC" = yes; then
10587 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10588 else
10589 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10590 fi
10591 ;;
10592 esac
10593 link_all_deplibs=yes
10594 ;;
10595
10596 sunos4*)
10597 if test "x$host_vendor" = xsequent; then
10598 # Use $CC to link under sequent, because it throws in some extra .o
10599 # files that make .init and .fini sections work.
10600 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10601 else
10602 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10603 fi
10604 hardcode_libdir_flag_spec='-L$libdir'
10605 hardcode_direct=yes
10606 hardcode_minus_L=yes
10607 hardcode_shlibpath_var=no
10608 ;;
10609
10610 sysv4)
10611 case $host_vendor in
10612 sni)
10613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10614 hardcode_direct=yes # is this really true???
10615 ;;
10616 siemens)
10617 ## LD is ld it makes a PLAMLIB
10618 ## CC just makes a GrossModule.
10619 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10620 reload_cmds='$CC -r -o $output$reload_objs'
10621 hardcode_direct=no
10622 ;;
10623 motorola)
10624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10625 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10626 ;;
10627 esac
10628 runpath_var='LD_RUN_PATH'
10629 hardcode_shlibpath_var=no
10630 ;;
10631
10632 sysv4.3*)
10633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10634 hardcode_shlibpath_var=no
10635 export_dynamic_flag_spec='-Bexport'
10636 ;;
10637
10638 sysv4*MP*)
10639 if test -d /usr/nec; then
10640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10641 hardcode_shlibpath_var=no
10642 runpath_var=LD_RUN_PATH
10643 hardcode_runpath_var=yes
10644 ld_shlibs=yes
10645 fi
10646 ;;
10647
10648 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10649 no_undefined_flag='${wl}-z,text'
10650 archive_cmds_need_lc=no
10651 hardcode_shlibpath_var=no
10652 runpath_var='LD_RUN_PATH'
10653
10654 if test "$GCC" = yes; then
10655 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10656 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10657 else
10658 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10659 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10660 fi
10661 ;;
10662
10663 sysv5* | sco3.2v5* | sco5v6*)
10664 # Note: We can NOT use -z defs as we might desire, because we do not
10665 # link with -lc, and that would cause any symbols used from libc to
10666 # always be unresolved, which means just about no library would
10667 # ever link correctly. If we're not using GNU ld we use -z text
10668 # though, which does catch some bad symbols but isn't as heavy-handed
10669 # as -z defs.
10670 no_undefined_flag='${wl}-z,text'
10671 allow_undefined_flag='${wl}-z,nodefs'
10672 archive_cmds_need_lc=no
10673 hardcode_shlibpath_var=no
10674 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10675 hardcode_libdir_separator=':'
10676 link_all_deplibs=yes
10677 export_dynamic_flag_spec='${wl}-Bexport'
10678 runpath_var='LD_RUN_PATH'
10679
10680 if test "$GCC" = yes; then
10681 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10682 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10683 else
10684 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10685 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10686 fi
10687 ;;
10688
10689 uts4*)
10690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691 hardcode_libdir_flag_spec='-L$libdir'
10692 hardcode_shlibpath_var=no
10693 ;;
10694
10695 *)
10696 ld_shlibs=no
10697 ;;
10698 esac
10699
10700 if test x$host_vendor = xsni; then
10701 case $host in
10702 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10703 export_dynamic_flag_spec='${wl}-Blargedynsym'
10704 ;;
10705 esac
10706 fi
10707 fi
10708
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10710 $as_echo "$ld_shlibs" >&6; }
10711 test "$ld_shlibs" = no && can_build_shared=no
10712
10713 with_gnu_ld=$with_gnu_ld
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729 #
10730 # Do we need to explicitly link libc?
10731 #
10732 case "x$archive_cmds_need_lc" in
10733 x|xyes)
10734 # Assume -lc should be added
10735 archive_cmds_need_lc=yes
10736
10737 if test "$enable_shared" = yes && test "$GCC" = yes; then
10738 case $archive_cmds in
10739 *'~'*)
10740 # FIXME: we may have to deal with multi-command sequences.
10741 ;;
10742 '$CC '*)
10743 # Test whether the compiler implicitly links with -lc since on some
10744 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10745 # to ld, don't add -lc before -lgcc.
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10747 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10748 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10749 $as_echo_n "(cached) " >&6
10750 else
10751 $RM conftest*
10752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10753
10754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10755 (eval $ac_compile) 2>&5
10756 ac_status=$?
10757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10758 test $ac_status = 0; } 2>conftest.err; then
10759 soname=conftest
10760 lib=conftest
10761 libobjs=conftest.$ac_objext
10762 deplibs=
10763 wl=$lt_prog_compiler_wl
10764 pic_flag=$lt_prog_compiler_pic
10765 compiler_flags=-v
10766 linker_flags=-v
10767 verstring=
10768 output_objdir=.
10769 libname=conftest
10770 lt_save_allow_undefined_flag=$allow_undefined_flag
10771 allow_undefined_flag=
10772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10773 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10774 ac_status=$?
10775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10776 test $ac_status = 0; }
10777 then
10778 lt_cv_archive_cmds_need_lc=no
10779 else
10780 lt_cv_archive_cmds_need_lc=yes
10781 fi
10782 allow_undefined_flag=$lt_save_allow_undefined_flag
10783 else
10784 cat conftest.err 1>&5
10785 fi
10786 $RM conftest*
10787
10788 fi
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10790 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10791 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10792 ;;
10793 esac
10794 fi
10795 ;;
10796 esac
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10955 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10956
10957 if test "$GCC" = yes; then
10958 case $host_os in
10959 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10960 *) lt_awk_arg="/^libraries:/" ;;
10961 esac
10962 case $host_os in
10963 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10964 *) lt_sed_strip_eq="s,=/,/,g" ;;
10965 esac
10966 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10967 case $lt_search_path_spec in
10968 *\;*)
10969 # if the path contains ";" then we assume it to be the separator
10970 # otherwise default to the standard path separator (i.e. ":") - it is
10971 # assumed that no part of a normal pathname contains ";" but that should
10972 # okay in the real world where ";" in dirpaths is itself problematic.
10973 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10974 ;;
10975 *)
10976 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10977 ;;
10978 esac
10979 # Ok, now we have the path, separated by spaces, we can step through it
10980 # and add multilib dir if necessary.
10981 lt_tmp_lt_search_path_spec=
10982 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10983 for lt_sys_path in $lt_search_path_spec; do
10984 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10985 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10986 else
10987 test -d "$lt_sys_path" && \
10988 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10989 fi
10990 done
10991 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10992 BEGIN {RS=" "; FS="/|\n";} {
10993 lt_foo="";
10994 lt_count=0;
10995 for (lt_i = NF; lt_i > 0; lt_i--) {
10996 if ($lt_i != "" && $lt_i != ".") {
10997 if ($lt_i == "..") {
10998 lt_count++;
10999 } else {
11000 if (lt_count == 0) {
11001 lt_foo="/" $lt_i lt_foo;
11002 } else {
11003 lt_count--;
11004 }
11005 }
11006 }
11007 }
11008 if (lt_foo != "") { lt_freq[lt_foo]++; }
11009 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11010 }'`
11011 # AWK program above erroneously prepends '/' to C:/dos/paths
11012 # for these hosts.
11013 case $host_os in
11014 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11015 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11016 esac
11017 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11018 else
11019 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11020 fi
11021 library_names_spec=
11022 libname_spec='lib$name'
11023 soname_spec=
11024 shrext_cmds=".so"
11025 postinstall_cmds=
11026 postuninstall_cmds=
11027 finish_cmds=
11028 finish_eval=
11029 shlibpath_var=
11030 shlibpath_overrides_runpath=unknown
11031 version_type=none
11032 dynamic_linker="$host_os ld.so"
11033 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11034 need_lib_prefix=unknown
11035 hardcode_into_libs=no
11036
11037 # when you set need_version to no, make sure it does not cause -set_version
11038 # flags to be left without arguments
11039 need_version=unknown
11040
11041 case $host_os in
11042 aix3*)
11043 version_type=linux
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11045 shlibpath_var=LIBPATH
11046
11047 # AIX 3 has no versioning support, so we append a major version to the name.
11048 soname_spec='${libname}${release}${shared_ext}$major'
11049 ;;
11050
11051 aix[4-9]*)
11052 version_type=linux
11053 need_lib_prefix=no
11054 need_version=no
11055 hardcode_into_libs=yes
11056 if test "$host_cpu" = ia64; then
11057 # AIX 5 supports IA64
11058 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11059 shlibpath_var=LD_LIBRARY_PATH
11060 else
11061 # With GCC up to 2.95.x, collect2 would create an import file
11062 # for dependence libraries. The import file would start with
11063 # the line `#! .'. This would cause the generated library to
11064 # depend on `.', always an invalid library. This was fixed in
11065 # development snapshots of GCC prior to 3.0.
11066 case $host_os in
11067 aix4 | aix4.[01] | aix4.[01].*)
11068 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11069 echo ' yes '
11070 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11071 :
11072 else
11073 can_build_shared=no
11074 fi
11075 ;;
11076 esac
11077 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11078 # soname into executable. Probably we can add versioning support to
11079 # collect2, so additional links can be useful in future.
11080 if test "$aix_use_runtimelinking" = yes; then
11081 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11082 # instead of lib<name>.a to let people know that these are not
11083 # typical AIX shared libraries.
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085 else
11086 # We preserve .a as extension for shared libraries through AIX4.2
11087 # and later when we are not doing run time linking.
11088 library_names_spec='${libname}${release}.a $libname.a'
11089 soname_spec='${libname}${release}${shared_ext}$major'
11090 fi
11091 shlibpath_var=LIBPATH
11092 fi
11093 ;;
11094
11095 amigaos*)
11096 case $host_cpu in
11097 powerpc)
11098 # Since July 2007 AmigaOS4 officially supports .so libraries.
11099 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11101 ;;
11102 m68k)
11103 library_names_spec='$libname.ixlibrary $libname.a'
11104 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11105 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'
11106 ;;
11107 esac
11108 ;;
11109
11110 beos*)
11111 library_names_spec='${libname}${shared_ext}'
11112 dynamic_linker="$host_os ld.so"
11113 shlibpath_var=LIBRARY_PATH
11114 ;;
11115
11116 bsdi[45]*)
11117 version_type=linux
11118 need_version=no
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11120 soname_spec='${libname}${release}${shared_ext}$major'
11121 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11122 shlibpath_var=LD_LIBRARY_PATH
11123 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11124 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11125 # the default ld.so.conf also contains /usr/contrib/lib and
11126 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11127 # libtool to hard-code these into programs
11128 ;;
11129
11130 cygwin* | mingw* | pw32* | cegcc*)
11131 version_type=windows
11132 shrext_cmds=".dll"
11133 need_version=no
11134 need_lib_prefix=no
11135
11136 case $GCC,$host_os in
11137 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11138 library_names_spec='$libname.dll.a'
11139 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11140 postinstall_cmds='base_file=`basename \${file}`~
11141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11142 dldir=$destdir/`dirname \$dlpath`~
11143 test -d \$dldir || mkdir -p \$dldir~
11144 $install_prog $dir/$dlname \$dldir/$dlname~
11145 chmod a+x \$dldir/$dlname~
11146 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11147 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11148 fi'
11149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11150 dlpath=$dir/\$dldll~
11151 $RM \$dlpath'
11152 shlibpath_overrides_runpath=yes
11153
11154 case $host_os in
11155 cygwin*)
11156 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11157 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11158
11159 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11160 ;;
11161 mingw* | cegcc*)
11162 # MinGW DLLs use traditional 'lib' prefix
11163 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11164 ;;
11165 pw32*)
11166 # pw32 DLLs use 'pw' prefix rather than 'lib'
11167 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11168 ;;
11169 esac
11170 ;;
11171
11172 *)
11173 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11174 ;;
11175 esac
11176 dynamic_linker='Win32 ld.exe'
11177 # FIXME: first we should search . and the directory the executable is in
11178 shlibpath_var=PATH
11179 ;;
11180
11181 darwin* | rhapsody*)
11182 dynamic_linker="$host_os dyld"
11183 version_type=darwin
11184 need_lib_prefix=no
11185 need_version=no
11186 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11187 soname_spec='${libname}${release}${major}$shared_ext'
11188 shlibpath_overrides_runpath=yes
11189 shlibpath_var=DYLD_LIBRARY_PATH
11190 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11191
11192 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11193 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11194 ;;
11195
11196 dgux*)
11197 version_type=linux
11198 need_lib_prefix=no
11199 need_version=no
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11201 soname_spec='${libname}${release}${shared_ext}$major'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 ;;
11204
11205 freebsd* | dragonfly*)
11206 # DragonFly does not have aout. When/if they implement a new
11207 # versioning mechanism, adjust this.
11208 if test -x /usr/bin/objformat; then
11209 objformat=`/usr/bin/objformat`
11210 else
11211 case $host_os in
11212 freebsd[23].*) objformat=aout ;;
11213 *) objformat=elf ;;
11214 esac
11215 fi
11216 version_type=freebsd-$objformat
11217 case $version_type in
11218 freebsd-elf*)
11219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11220 need_version=no
11221 need_lib_prefix=no
11222 ;;
11223 freebsd-*)
11224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11225 need_version=yes
11226 ;;
11227 esac
11228 shlibpath_var=LD_LIBRARY_PATH
11229 case $host_os in
11230 freebsd2.*)
11231 shlibpath_overrides_runpath=yes
11232 ;;
11233 freebsd3.[01]* | freebsdelf3.[01]*)
11234 shlibpath_overrides_runpath=yes
11235 hardcode_into_libs=yes
11236 ;;
11237 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11238 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11239 shlibpath_overrides_runpath=no
11240 hardcode_into_libs=yes
11241 ;;
11242 *) # from 4.6 on, and DragonFly
11243 shlibpath_overrides_runpath=yes
11244 hardcode_into_libs=yes
11245 ;;
11246 esac
11247 ;;
11248
11249 haiku*)
11250 version_type=linux
11251 need_lib_prefix=no
11252 need_version=no
11253 dynamic_linker="$host_os runtime_loader"
11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11255 soname_spec='${libname}${release}${shared_ext}$major'
11256 shlibpath_var=LIBRARY_PATH
11257 shlibpath_overrides_runpath=yes
11258 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11259 hardcode_into_libs=yes
11260 ;;
11261
11262 hpux9* | hpux10* | hpux11*)
11263 # Give a soname corresponding to the major version so that dld.sl refuses to
11264 # link against other versions.
11265 version_type=sunos
11266 need_lib_prefix=no
11267 need_version=no
11268 case $host_cpu in
11269 ia64*)
11270 shrext_cmds='.so'
11271 hardcode_into_libs=yes
11272 dynamic_linker="$host_os dld.so"
11273 shlibpath_var=LD_LIBRARY_PATH
11274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11277 if test "X$HPUX_IA64_MODE" = X32; then
11278 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11279 else
11280 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11281 fi
11282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11283 ;;
11284 hppa*64*)
11285 shrext_cmds='.sl'
11286 hardcode_into_libs=yes
11287 dynamic_linker="$host_os dld.sl"
11288 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291 soname_spec='${libname}${release}${shared_ext}$major'
11292 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11294 ;;
11295 *)
11296 shrext_cmds='.sl'
11297 dynamic_linker="$host_os dld.sl"
11298 shlibpath_var=SHLIB_PATH
11299 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11301 soname_spec='${libname}${release}${shared_ext}$major'
11302 ;;
11303 esac
11304 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11305 postinstall_cmds='chmod 555 $lib'
11306 # or fails outright, so override atomically:
11307 install_override_mode=555
11308 ;;
11309
11310 interix[3-9]*)
11311 version_type=linux
11312 need_lib_prefix=no
11313 need_version=no
11314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11315 soname_spec='${libname}${release}${shared_ext}$major'
11316 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11317 shlibpath_var=LD_LIBRARY_PATH
11318 shlibpath_overrides_runpath=no
11319 hardcode_into_libs=yes
11320 ;;
11321
11322 irix5* | irix6* | nonstopux*)
11323 case $host_os in
11324 nonstopux*) version_type=nonstopux ;;
11325 *)
11326 if test "$lt_cv_prog_gnu_ld" = yes; then
11327 version_type=linux
11328 else
11329 version_type=irix
11330 fi ;;
11331 esac
11332 need_lib_prefix=no
11333 need_version=no
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11336 case $host_os in
11337 irix5* | nonstopux*)
11338 libsuff= shlibsuff=
11339 ;;
11340 *)
11341 case $LD in # libtool.m4 will add one of these switches to LD
11342 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11343 libsuff= shlibsuff= libmagic=32-bit;;
11344 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11345 libsuff=32 shlibsuff=N32 libmagic=N32;;
11346 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11347 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11348 *) libsuff= shlibsuff= libmagic=never-match;;
11349 esac
11350 ;;
11351 esac
11352 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11353 shlibpath_overrides_runpath=no
11354 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11355 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11356 hardcode_into_libs=yes
11357 ;;
11358
11359 # No shared lib support for Linux oldld, aout, or coff.
11360 linux*oldld* | linux*aout* | linux*coff*)
11361 dynamic_linker=no
11362 ;;
11363
11364 # This must be Linux ELF.
11365
11366 # uclinux* changes (here and below) have been submitted to the libtool
11367 # project, but have not yet been accepted: they are GCC-local changes
11368 # for the time being. (See
11369 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11370 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11371 version_type=linux
11372 need_lib_prefix=no
11373 need_version=no
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375 soname_spec='${libname}${release}${shared_ext}$major'
11376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11377 shlibpath_var=LD_LIBRARY_PATH
11378 shlibpath_overrides_runpath=no
11379
11380 # Some binutils ld are patched to set DT_RUNPATH
11381 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 lt_cv_shlibpath_overrides_runpath=no
11385 save_LDFLAGS=$LDFLAGS
11386 save_libdir=$libdir
11387 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11388 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h. */
11391
11392 int
11393 main ()
11394 {
11395
11396 ;
11397 return 0;
11398 }
11399 _ACEOF
11400 if ac_fn_c_try_link "$LINENO"; then :
11401 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11402 lt_cv_shlibpath_overrides_runpath=yes
11403 fi
11404 fi
11405 rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407 LDFLAGS=$save_LDFLAGS
11408 libdir=$save_libdir
11409
11410 fi
11411
11412 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11413
11414 # This implies no fast_install, which is unacceptable.
11415 # Some rework will be needed to allow for fast_install
11416 # before this can be enabled.
11417 hardcode_into_libs=yes
11418
11419 # Append ld.so.conf contents to the search path
11420 if test -f /etc/ld.so.conf; then
11421 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' ' '`
11422 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11423 fi
11424
11425 # We used to test for /lib/ld.so.1 and disable shared libraries on
11426 # powerpc, because MkLinux only supported shared libraries with the
11427 # GNU dynamic linker. Since this was broken with cross compilers,
11428 # most powerpc-linux boxes support dynamic linking these days and
11429 # people can always --disable-shared, the test was removed, and we
11430 # assume the GNU/Linux dynamic linker is in use.
11431 dynamic_linker='GNU/Linux ld.so'
11432 ;;
11433
11434 netbsd*)
11435 version_type=sunos
11436 need_lib_prefix=no
11437 need_version=no
11438 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11441 dynamic_linker='NetBSD (a.out) ld.so'
11442 else
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11444 soname_spec='${libname}${release}${shared_ext}$major'
11445 dynamic_linker='NetBSD ld.elf_so'
11446 fi
11447 shlibpath_var=LD_LIBRARY_PATH
11448 shlibpath_overrides_runpath=yes
11449 hardcode_into_libs=yes
11450 ;;
11451
11452 newsos6)
11453 version_type=linux
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455 shlibpath_var=LD_LIBRARY_PATH
11456 shlibpath_overrides_runpath=yes
11457 ;;
11458
11459 *nto* | *qnx*)
11460 version_type=qnx
11461 need_lib_prefix=no
11462 need_version=no
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11464 soname_spec='${libname}${release}${shared_ext}$major'
11465 shlibpath_var=LD_LIBRARY_PATH
11466 shlibpath_overrides_runpath=no
11467 hardcode_into_libs=yes
11468 dynamic_linker='ldqnx.so'
11469 ;;
11470
11471 openbsd*)
11472 version_type=sunos
11473 sys_lib_dlsearch_path_spec="/usr/lib"
11474 need_lib_prefix=no
11475 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11476 case $host_os in
11477 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11478 *) need_version=no ;;
11479 esac
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11482 shlibpath_var=LD_LIBRARY_PATH
11483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11484 case $host_os in
11485 openbsd2.[89] | openbsd2.[89].*)
11486 shlibpath_overrides_runpath=no
11487 ;;
11488 *)
11489 shlibpath_overrides_runpath=yes
11490 ;;
11491 esac
11492 else
11493 shlibpath_overrides_runpath=yes
11494 fi
11495 ;;
11496
11497 os2*)
11498 libname_spec='$name'
11499 shrext_cmds=".dll"
11500 need_lib_prefix=no
11501 library_names_spec='$libname${shared_ext} $libname.a'
11502 dynamic_linker='OS/2 ld.exe'
11503 shlibpath_var=LIBPATH
11504 ;;
11505
11506 osf3* | osf4* | osf5*)
11507 version_type=osf
11508 need_lib_prefix=no
11509 need_version=no
11510 soname_spec='${libname}${release}${shared_ext}$major'
11511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512 shlibpath_var=LD_LIBRARY_PATH
11513 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11514 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11515 ;;
11516
11517 rdos*)
11518 dynamic_linker=no
11519 ;;
11520
11521 solaris*)
11522 version_type=linux
11523 need_lib_prefix=no
11524 need_version=no
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11526 soname_spec='${libname}${release}${shared_ext}$major'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 shlibpath_overrides_runpath=yes
11529 hardcode_into_libs=yes
11530 # ldd complains unless libraries are executable
11531 postinstall_cmds='chmod +x $lib'
11532 ;;
11533
11534 sunos4*)
11535 version_type=sunos
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11537 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11538 shlibpath_var=LD_LIBRARY_PATH
11539 shlibpath_overrides_runpath=yes
11540 if test "$with_gnu_ld" = yes; then
11541 need_lib_prefix=no
11542 fi
11543 need_version=yes
11544 ;;
11545
11546 sysv4 | sysv4.3*)
11547 version_type=linux
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549 soname_spec='${libname}${release}${shared_ext}$major'
11550 shlibpath_var=LD_LIBRARY_PATH
11551 case $host_vendor in
11552 sni)
11553 shlibpath_overrides_runpath=no
11554 need_lib_prefix=no
11555 runpath_var=LD_RUN_PATH
11556 ;;
11557 siemens)
11558 need_lib_prefix=no
11559 ;;
11560 motorola)
11561 need_lib_prefix=no
11562 need_version=no
11563 shlibpath_overrides_runpath=no
11564 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11565 ;;
11566 esac
11567 ;;
11568
11569 sysv4*MP*)
11570 if test -d /usr/nec ;then
11571 version_type=linux
11572 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11573 soname_spec='$libname${shared_ext}.$major'
11574 shlibpath_var=LD_LIBRARY_PATH
11575 fi
11576 ;;
11577
11578 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11579 version_type=freebsd-elf
11580 need_lib_prefix=no
11581 need_version=no
11582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11583 soname_spec='${libname}${release}${shared_ext}$major'
11584 shlibpath_var=LD_LIBRARY_PATH
11585 shlibpath_overrides_runpath=yes
11586 hardcode_into_libs=yes
11587 if test "$with_gnu_ld" = yes; then
11588 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11589 else
11590 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11591 case $host_os in
11592 sco3.2v5*)
11593 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11594 ;;
11595 esac
11596 fi
11597 sys_lib_dlsearch_path_spec='/usr/lib'
11598 ;;
11599
11600 tpf*)
11601 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11602 version_type=linux
11603 need_lib_prefix=no
11604 need_version=no
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606 shlibpath_var=LD_LIBRARY_PATH
11607 shlibpath_overrides_runpath=no
11608 hardcode_into_libs=yes
11609 ;;
11610
11611 uts4*)
11612 version_type=linux
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11614 soname_spec='${libname}${release}${shared_ext}$major'
11615 shlibpath_var=LD_LIBRARY_PATH
11616 ;;
11617
11618 *)
11619 dynamic_linker=no
11620 ;;
11621 esac
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11623 $as_echo "$dynamic_linker" >&6; }
11624 test "$dynamic_linker" = no && can_build_shared=no
11625
11626 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11627 if test "$GCC" = yes; then
11628 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11629 fi
11630
11631 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11632 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11633 fi
11634 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11635 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11636 fi
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11730 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11731 hardcode_action=
11732 if test -n "$hardcode_libdir_flag_spec" ||
11733 test -n "$runpath_var" ||
11734 test "X$hardcode_automatic" = "Xyes" ; then
11735
11736 # We can hardcode non-existent directories.
11737 if test "$hardcode_direct" != no &&
11738 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11739 # have to relink, otherwise we might link with an installed library
11740 # when we should be linking with a yet-to-be-installed one
11741 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11742 test "$hardcode_minus_L" != no; then
11743 # Linking always hardcodes the temporary library directory.
11744 hardcode_action=relink
11745 else
11746 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11747 hardcode_action=immediate
11748 fi
11749 else
11750 # We cannot hardcode anything, or else we can only hardcode existing
11751 # directories.
11752 hardcode_action=unsupported
11753 fi
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11755 $as_echo "$hardcode_action" >&6; }
11756
11757 if test "$hardcode_action" = relink ||
11758 test "$inherit_rpath" = yes; then
11759 # Fast installation is not supported
11760 enable_fast_install=no
11761 elif test "$shlibpath_overrides_runpath" = yes ||
11762 test "$enable_shared" = no; then
11763 # Fast installation is not necessary
11764 enable_fast_install=needless
11765 fi
11766
11767
11768
11769
11770
11771
11772 if test "x$enable_dlopen" != xyes; then
11773 enable_dlopen=unknown
11774 enable_dlopen_self=unknown
11775 enable_dlopen_self_static=unknown
11776 else
11777 lt_cv_dlopen=no
11778 lt_cv_dlopen_libs=
11779
11780 case $host_os in
11781 beos*)
11782 lt_cv_dlopen="load_add_on"
11783 lt_cv_dlopen_libs=
11784 lt_cv_dlopen_self=yes
11785 ;;
11786
11787 mingw* | pw32* | cegcc*)
11788 lt_cv_dlopen="LoadLibrary"
11789 lt_cv_dlopen_libs=
11790 ;;
11791
11792 cygwin*)
11793 lt_cv_dlopen="dlopen"
11794 lt_cv_dlopen_libs=
11795 ;;
11796
11797 darwin*)
11798 # if libdl is installed we need to link against it
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11800 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11801 if ${ac_cv_lib_dl_dlopen+:} false; then :
11802 $as_echo_n "(cached) " >&6
11803 else
11804 ac_check_lib_save_LIBS=$LIBS
11805 LIBS="-ldl $LIBS"
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807 /* end confdefs.h. */
11808
11809 /* Override any GCC internal prototype to avoid an error.
11810 Use char because int might match the return type of a GCC
11811 builtin and then its argument prototype would still apply. */
11812 #ifdef __cplusplus
11813 extern "C"
11814 #endif
11815 char dlopen ();
11816 int
11817 main ()
11818 {
11819 return dlopen ();
11820 ;
11821 return 0;
11822 }
11823 _ACEOF
11824 if ac_fn_c_try_link "$LINENO"; then :
11825 ac_cv_lib_dl_dlopen=yes
11826 else
11827 ac_cv_lib_dl_dlopen=no
11828 fi
11829 rm -f core conftest.err conftest.$ac_objext \
11830 conftest$ac_exeext conftest.$ac_ext
11831 LIBS=$ac_check_lib_save_LIBS
11832 fi
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11834 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11835 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11836 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11837 else
11838
11839 lt_cv_dlopen="dyld"
11840 lt_cv_dlopen_libs=
11841 lt_cv_dlopen_self=yes
11842
11843 fi
11844
11845 ;;
11846
11847 *)
11848 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11849 if test "x$ac_cv_func_shl_load" = xyes; then :
11850 lt_cv_dlopen="shl_load"
11851 else
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11853 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11854 if ${ac_cv_lib_dld_shl_load+:} false; then :
11855 $as_echo_n "(cached) " >&6
11856 else
11857 ac_check_lib_save_LIBS=$LIBS
11858 LIBS="-ldld $LIBS"
11859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860 /* end confdefs.h. */
11861
11862 /* Override any GCC internal prototype to avoid an error.
11863 Use char because int might match the return type of a GCC
11864 builtin and then its argument prototype would still apply. */
11865 #ifdef __cplusplus
11866 extern "C"
11867 #endif
11868 char shl_load ();
11869 int
11870 main ()
11871 {
11872 return shl_load ();
11873 ;
11874 return 0;
11875 }
11876 _ACEOF
11877 if ac_fn_c_try_link "$LINENO"; then :
11878 ac_cv_lib_dld_shl_load=yes
11879 else
11880 ac_cv_lib_dld_shl_load=no
11881 fi
11882 rm -f core conftest.err conftest.$ac_objext \
11883 conftest$ac_exeext conftest.$ac_ext
11884 LIBS=$ac_check_lib_save_LIBS
11885 fi
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11887 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11888 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11889 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11890 else
11891 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11892 if test "x$ac_cv_func_dlopen" = xyes; then :
11893 lt_cv_dlopen="dlopen"
11894 else
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11896 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11897 if ${ac_cv_lib_dl_dlopen+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 ac_check_lib_save_LIBS=$LIBS
11901 LIBS="-ldl $LIBS"
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11904
11905 /* Override any GCC internal prototype to avoid an error.
11906 Use char because int might match the return type of a GCC
11907 builtin and then its argument prototype would still apply. */
11908 #ifdef __cplusplus
11909 extern "C"
11910 #endif
11911 char dlopen ();
11912 int
11913 main ()
11914 {
11915 return dlopen ();
11916 ;
11917 return 0;
11918 }
11919 _ACEOF
11920 if ac_fn_c_try_link "$LINENO"; then :
11921 ac_cv_lib_dl_dlopen=yes
11922 else
11923 ac_cv_lib_dl_dlopen=no
11924 fi
11925 rm -f core conftest.err conftest.$ac_objext \
11926 conftest$ac_exeext conftest.$ac_ext
11927 LIBS=$ac_check_lib_save_LIBS
11928 fi
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11930 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11931 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11932 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11933 else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11935 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11936 if ${ac_cv_lib_svld_dlopen+:} false; then :
11937 $as_echo_n "(cached) " >&6
11938 else
11939 ac_check_lib_save_LIBS=$LIBS
11940 LIBS="-lsvld $LIBS"
11941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11942 /* end confdefs.h. */
11943
11944 /* Override any GCC internal prototype to avoid an error.
11945 Use char because int might match the return type of a GCC
11946 builtin and then its argument prototype would still apply. */
11947 #ifdef __cplusplus
11948 extern "C"
11949 #endif
11950 char dlopen ();
11951 int
11952 main ()
11953 {
11954 return dlopen ();
11955 ;
11956 return 0;
11957 }
11958 _ACEOF
11959 if ac_fn_c_try_link "$LINENO"; then :
11960 ac_cv_lib_svld_dlopen=yes
11961 else
11962 ac_cv_lib_svld_dlopen=no
11963 fi
11964 rm -f core conftest.err conftest.$ac_objext \
11965 conftest$ac_exeext conftest.$ac_ext
11966 LIBS=$ac_check_lib_save_LIBS
11967 fi
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11969 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11970 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11972 else
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11974 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11975 if ${ac_cv_lib_dld_dld_link+:} false; then :
11976 $as_echo_n "(cached) " >&6
11977 else
11978 ac_check_lib_save_LIBS=$LIBS
11979 LIBS="-ldld $LIBS"
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982
11983 /* Override any GCC internal prototype to avoid an error.
11984 Use char because int might match the return type of a GCC
11985 builtin and then its argument prototype would still apply. */
11986 #ifdef __cplusplus
11987 extern "C"
11988 #endif
11989 char dld_link ();
11990 int
11991 main ()
11992 {
11993 return dld_link ();
11994 ;
11995 return 0;
11996 }
11997 _ACEOF
11998 if ac_fn_c_try_link "$LINENO"; then :
11999 ac_cv_lib_dld_dld_link=yes
12000 else
12001 ac_cv_lib_dld_dld_link=no
12002 fi
12003 rm -f core conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12006 fi
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12008 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12009 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12010 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12011 fi
12012
12013
12014 fi
12015
12016
12017 fi
12018
12019
12020 fi
12021
12022
12023 fi
12024
12025
12026 fi
12027
12028 ;;
12029 esac
12030
12031 if test "x$lt_cv_dlopen" != xno; then
12032 enable_dlopen=yes
12033 else
12034 enable_dlopen=no
12035 fi
12036
12037 case $lt_cv_dlopen in
12038 dlopen)
12039 save_CPPFLAGS="$CPPFLAGS"
12040 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12041
12042 save_LDFLAGS="$LDFLAGS"
12043 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12044
12045 save_LIBS="$LIBS"
12046 LIBS="$lt_cv_dlopen_libs $LIBS"
12047
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12049 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12050 if ${lt_cv_dlopen_self+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 if test "$cross_compiling" = yes; then :
12054 lt_cv_dlopen_self=cross
12055 else
12056 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12057 lt_status=$lt_dlunknown
12058 cat > conftest.$ac_ext <<_LT_EOF
12059 #line 12069 "configure"
12060 #include "confdefs.h"
12061
12062 #if HAVE_DLFCN_H
12063 #include <dlfcn.h>
12064 #endif
12065
12066 #include <stdio.h>
12067
12068 #ifdef RTLD_GLOBAL
12069 # define LT_DLGLOBAL RTLD_GLOBAL
12070 #else
12071 # ifdef DL_GLOBAL
12072 # define LT_DLGLOBAL DL_GLOBAL
12073 # else
12074 # define LT_DLGLOBAL 0
12075 # endif
12076 #endif
12077
12078 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12079 find out it does not work in some platform. */
12080 #ifndef LT_DLLAZY_OR_NOW
12081 # ifdef RTLD_LAZY
12082 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12083 # else
12084 # ifdef DL_LAZY
12085 # define LT_DLLAZY_OR_NOW DL_LAZY
12086 # else
12087 # ifdef RTLD_NOW
12088 # define LT_DLLAZY_OR_NOW RTLD_NOW
12089 # else
12090 # ifdef DL_NOW
12091 # define LT_DLLAZY_OR_NOW DL_NOW
12092 # else
12093 # define LT_DLLAZY_OR_NOW 0
12094 # endif
12095 # endif
12096 # endif
12097 # endif
12098 #endif
12099
12100 /* When -fvisbility=hidden is used, assume the code has been annotated
12101 correspondingly for the symbols needed. */
12102 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12103 void fnord () __attribute__((visibility("default")));
12104 #endif
12105
12106 void fnord () { int i=42; }
12107 int main ()
12108 {
12109 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12110 int status = $lt_dlunknown;
12111
12112 if (self)
12113 {
12114 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12115 else
12116 {
12117 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12118 else puts (dlerror ());
12119 }
12120 /* dlclose (self); */
12121 }
12122 else
12123 puts (dlerror ());
12124
12125 return status;
12126 }
12127 _LT_EOF
12128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12129 (eval $ac_link) 2>&5
12130 ac_status=$?
12131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12132 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12133 (./conftest; exit; ) >&5 2>/dev/null
12134 lt_status=$?
12135 case x$lt_status in
12136 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12137 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12138 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12139 esac
12140 else :
12141 # compilation failed
12142 lt_cv_dlopen_self=no
12143 fi
12144 fi
12145 rm -fr conftest*
12146
12147
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12150 $as_echo "$lt_cv_dlopen_self" >&6; }
12151
12152 if test "x$lt_cv_dlopen_self" = xyes; then
12153 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12155 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12156 if ${lt_cv_dlopen_self_static+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 if test "$cross_compiling" = yes; then :
12160 lt_cv_dlopen_self_static=cross
12161 else
12162 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12163 lt_status=$lt_dlunknown
12164 cat > conftest.$ac_ext <<_LT_EOF
12165 #line 12175 "configure"
12166 #include "confdefs.h"
12167
12168 #if HAVE_DLFCN_H
12169 #include <dlfcn.h>
12170 #endif
12171
12172 #include <stdio.h>
12173
12174 #ifdef RTLD_GLOBAL
12175 # define LT_DLGLOBAL RTLD_GLOBAL
12176 #else
12177 # ifdef DL_GLOBAL
12178 # define LT_DLGLOBAL DL_GLOBAL
12179 # else
12180 # define LT_DLGLOBAL 0
12181 # endif
12182 #endif
12183
12184 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12185 find out it does not work in some platform. */
12186 #ifndef LT_DLLAZY_OR_NOW
12187 # ifdef RTLD_LAZY
12188 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12189 # else
12190 # ifdef DL_LAZY
12191 # define LT_DLLAZY_OR_NOW DL_LAZY
12192 # else
12193 # ifdef RTLD_NOW
12194 # define LT_DLLAZY_OR_NOW RTLD_NOW
12195 # else
12196 # ifdef DL_NOW
12197 # define LT_DLLAZY_OR_NOW DL_NOW
12198 # else
12199 # define LT_DLLAZY_OR_NOW 0
12200 # endif
12201 # endif
12202 # endif
12203 # endif
12204 #endif
12205
12206 /* When -fvisbility=hidden is used, assume the code has been annotated
12207 correspondingly for the symbols needed. */
12208 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12209 void fnord () __attribute__((visibility("default")));
12210 #endif
12211
12212 void fnord () { int i=42; }
12213 int main ()
12214 {
12215 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12216 int status = $lt_dlunknown;
12217
12218 if (self)
12219 {
12220 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12221 else
12222 {
12223 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12224 else puts (dlerror ());
12225 }
12226 /* dlclose (self); */
12227 }
12228 else
12229 puts (dlerror ());
12230
12231 return status;
12232 }
12233 _LT_EOF
12234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12235 (eval $ac_link) 2>&5
12236 ac_status=$?
12237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12238 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12239 (./conftest; exit; ) >&5 2>/dev/null
12240 lt_status=$?
12241 case x$lt_status in
12242 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12243 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12244 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12245 esac
12246 else :
12247 # compilation failed
12248 lt_cv_dlopen_self_static=no
12249 fi
12250 fi
12251 rm -fr conftest*
12252
12253
12254 fi
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12256 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12257 fi
12258
12259 CPPFLAGS="$save_CPPFLAGS"
12260 LDFLAGS="$save_LDFLAGS"
12261 LIBS="$save_LIBS"
12262 ;;
12263 esac
12264
12265 case $lt_cv_dlopen_self in
12266 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12267 *) enable_dlopen_self=unknown ;;
12268 esac
12269
12270 case $lt_cv_dlopen_self_static in
12271 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12272 *) enable_dlopen_self_static=unknown ;;
12273 esac
12274 fi
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292 striplib=
12293 old_striplib=
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12295 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12296 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12297 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12298 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12300 $as_echo "yes" >&6; }
12301 else
12302 # FIXME - insert some real tests, host_os isn't really good enough
12303 case $host_os in
12304 darwin*)
12305 if test -n "$STRIP" ; then
12306 striplib="$STRIP -x"
12307 old_striplib="$STRIP -S"
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12309 $as_echo "yes" >&6; }
12310 else
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312 $as_echo "no" >&6; }
12313 fi
12314 ;;
12315 *)
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12317 $as_echo "no" >&6; }
12318 ;;
12319 esac
12320 fi
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333 # Report which library types will actually be built
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12335 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12337 $as_echo "$can_build_shared" >&6; }
12338
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12340 $as_echo_n "checking whether to build shared libraries... " >&6; }
12341 test "$can_build_shared" = "no" && enable_shared=no
12342
12343 # On AIX, shared libraries and static libraries use the same namespace, and
12344 # are all built from PIC.
12345 case $host_os in
12346 aix3*)
12347 test "$enable_shared" = yes && enable_static=no
12348 if test -n "$RANLIB"; then
12349 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12350 postinstall_cmds='$RANLIB $lib'
12351 fi
12352 ;;
12353
12354 aix[4-9]*)
12355 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12356 test "$enable_shared" = yes && enable_static=no
12357 fi
12358 ;;
12359 esac
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12361 $as_echo "$enable_shared" >&6; }
12362
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12364 $as_echo_n "checking whether to build static libraries... " >&6; }
12365 # Make sure either enable_shared or enable_static is yes.
12366 test "$enable_shared" = yes || enable_static=yes
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12368 $as_echo "$enable_static" >&6; }
12369
12370
12371
12372
12373 fi
12374 ac_ext=c
12375 ac_cpp='$CPP $CPPFLAGS'
12376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12379
12380 CC="$lt_save_CC"
12381
12382 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12383 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12384 (test "X$CXX" != "Xg++"))) ; then
12385 ac_ext=cpp
12386 ac_cpp='$CXXCPP $CPPFLAGS'
12387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12391 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12392 if test -z "$CXXCPP"; then
12393 if ${ac_cv_prog_CXXCPP+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 # Double quotes because CXXCPP needs to be expanded
12397 for CXXCPP in "$CXX -E" "/lib/cpp"
12398 do
12399 ac_preproc_ok=false
12400 for ac_cxx_preproc_warn_flag in '' yes
12401 do
12402 # Use a header file that comes with gcc, so configuring glibc
12403 # with a fresh cross-compiler works.
12404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12405 # <limits.h> exists even on freestanding compilers.
12406 # On the NeXT, cc -E runs the code through the compiler's parser,
12407 # not just through cpp. "Syntax error" is here to catch this case.
12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h. */
12410 #ifdef __STDC__
12411 # include <limits.h>
12412 #else
12413 # include <assert.h>
12414 #endif
12415 Syntax error
12416 _ACEOF
12417 if ac_fn_cxx_try_cpp "$LINENO"; then :
12418
12419 else
12420 # Broken: fails on valid input.
12421 continue
12422 fi
12423 rm -f conftest.err conftest.i conftest.$ac_ext
12424
12425 # OK, works on sane cases. Now check whether nonexistent headers
12426 # can be detected and how.
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12429 #include <ac_nonexistent.h>
12430 _ACEOF
12431 if ac_fn_cxx_try_cpp "$LINENO"; then :
12432 # Broken: success on invalid input.
12433 continue
12434 else
12435 # Passes both tests.
12436 ac_preproc_ok=:
12437 break
12438 fi
12439 rm -f conftest.err conftest.i conftest.$ac_ext
12440
12441 done
12442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12443 rm -f conftest.i conftest.err conftest.$ac_ext
12444 if $ac_preproc_ok; then :
12445 break
12446 fi
12447
12448 done
12449 ac_cv_prog_CXXCPP=$CXXCPP
12450
12451 fi
12452 CXXCPP=$ac_cv_prog_CXXCPP
12453 else
12454 ac_cv_prog_CXXCPP=$CXXCPP
12455 fi
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12457 $as_echo "$CXXCPP" >&6; }
12458 ac_preproc_ok=false
12459 for ac_cxx_preproc_warn_flag in '' yes
12460 do
12461 # Use a header file that comes with gcc, so configuring glibc
12462 # with a fresh cross-compiler works.
12463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12464 # <limits.h> exists even on freestanding compilers.
12465 # On the NeXT, cc -E runs the code through the compiler's parser,
12466 # not just through cpp. "Syntax error" is here to catch this case.
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h. */
12469 #ifdef __STDC__
12470 # include <limits.h>
12471 #else
12472 # include <assert.h>
12473 #endif
12474 Syntax error
12475 _ACEOF
12476 if ac_fn_cxx_try_cpp "$LINENO"; then :
12477
12478 else
12479 # Broken: fails on valid input.
12480 continue
12481 fi
12482 rm -f conftest.err conftest.i conftest.$ac_ext
12483
12484 # OK, works on sane cases. Now check whether nonexistent headers
12485 # can be detected and how.
12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487 /* end confdefs.h. */
12488 #include <ac_nonexistent.h>
12489 _ACEOF
12490 if ac_fn_cxx_try_cpp "$LINENO"; then :
12491 # Broken: success on invalid input.
12492 continue
12493 else
12494 # Passes both tests.
12495 ac_preproc_ok=:
12496 break
12497 fi
12498 rm -f conftest.err conftest.i conftest.$ac_ext
12499
12500 done
12501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12502 rm -f conftest.i conftest.err conftest.$ac_ext
12503 if $ac_preproc_ok; then :
12504
12505 else
12506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12508 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12509 See \`config.log' for more details" "$LINENO" 5; }
12510 fi
12511
12512 ac_ext=c
12513 ac_cpp='$CPP $CPPFLAGS'
12514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12517
12518 else
12519 _lt_caught_CXX_error=yes
12520 fi
12521
12522 ac_ext=cpp
12523 ac_cpp='$CXXCPP $CPPFLAGS'
12524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12527
12528 archive_cmds_need_lc_CXX=no
12529 allow_undefined_flag_CXX=
12530 always_export_symbols_CXX=no
12531 archive_expsym_cmds_CXX=
12532 compiler_needs_object_CXX=no
12533 export_dynamic_flag_spec_CXX=
12534 hardcode_direct_CXX=no
12535 hardcode_direct_absolute_CXX=no
12536 hardcode_libdir_flag_spec_CXX=
12537 hardcode_libdir_flag_spec_ld_CXX=
12538 hardcode_libdir_separator_CXX=
12539 hardcode_minus_L_CXX=no
12540 hardcode_shlibpath_var_CXX=unsupported
12541 hardcode_automatic_CXX=no
12542 inherit_rpath_CXX=no
12543 module_cmds_CXX=
12544 module_expsym_cmds_CXX=
12545 link_all_deplibs_CXX=unknown
12546 old_archive_cmds_CXX=$old_archive_cmds
12547 reload_flag_CXX=$reload_flag
12548 reload_cmds_CXX=$reload_cmds
12549 no_undefined_flag_CXX=
12550 whole_archive_flag_spec_CXX=
12551 enable_shared_with_static_runtimes_CXX=no
12552
12553 # Source file extension for C++ test sources.
12554 ac_ext=cpp
12555
12556 # Object file extension for compiled C++ test sources.
12557 objext=o
12558 objext_CXX=$objext
12559
12560 # No sense in running all these tests if we already determined that
12561 # the CXX compiler isn't working. Some variables (like enable_shared)
12562 # are currently assumed to apply to all compilers on this platform,
12563 # and will be corrupted by setting them based on a non-working compiler.
12564 if test "$_lt_caught_CXX_error" != yes; then
12565 # Code to be used in simple compile tests
12566 lt_simple_compile_test_code="int some_variable = 0;"
12567
12568 # Code to be used in simple link tests
12569 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12570
12571 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12572
12573
12574
12575
12576
12577
12578 # If no C compiler was specified, use CC.
12579 LTCC=${LTCC-"$CC"}
12580
12581 # If no C compiler flags were specified, use CFLAGS.
12582 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12583
12584 # Allow CC to be a program name with arguments.
12585 compiler=$CC
12586
12587
12588 # save warnings/boilerplate of simple test code
12589 ac_outfile=conftest.$ac_objext
12590 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12591 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12592 _lt_compiler_boilerplate=`cat conftest.err`
12593 $RM conftest*
12594
12595 ac_outfile=conftest.$ac_objext
12596 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12597 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12598 _lt_linker_boilerplate=`cat conftest.err`
12599 $RM -r conftest*
12600
12601
12602 # Allow CC to be a program name with arguments.
12603 lt_save_CC=$CC
12604 lt_save_LD=$LD
12605 lt_save_GCC=$GCC
12606 GCC=$GXX
12607 lt_save_with_gnu_ld=$with_gnu_ld
12608 lt_save_path_LD=$lt_cv_path_LD
12609 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12610 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12611 else
12612 $as_unset lt_cv_prog_gnu_ld
12613 fi
12614 if test -n "${lt_cv_path_LDCXX+set}"; then
12615 lt_cv_path_LD=$lt_cv_path_LDCXX
12616 else
12617 $as_unset lt_cv_path_LD
12618 fi
12619 test -z "${LDCXX+set}" || LD=$LDCXX
12620 CC=${CXX-"c++"}
12621 compiler=$CC
12622 compiler_CXX=$CC
12623 for cc_temp in $compiler""; do
12624 case $cc_temp in
12625 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12626 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12627 \-*) ;;
12628 *) break;;
12629 esac
12630 done
12631 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12632
12633
12634 if test -n "$compiler"; then
12635 # We don't want -fno-exception when compiling C++ code, so set the
12636 # no_builtin_flag separately
12637 if test "$GXX" = yes; then
12638 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12639 else
12640 lt_prog_compiler_no_builtin_flag_CXX=
12641 fi
12642
12643 if test "$GXX" = yes; then
12644 # Set up default GNU C++ configuration
12645
12646
12647
12648 # Check whether --with-gnu-ld was given.
12649 if test "${with_gnu_ld+set}" = set; then :
12650 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12651 else
12652 with_gnu_ld=no
12653 fi
12654
12655 ac_prog=ld
12656 if test "$GCC" = yes; then
12657 # Check if gcc -print-prog-name=ld gives a path.
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12659 $as_echo_n "checking for ld used by $CC... " >&6; }
12660 case $host in
12661 *-*-mingw*)
12662 # gcc leaves a trailing carriage return which upsets mingw
12663 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12664 *)
12665 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12666 esac
12667 case $ac_prog in
12668 # Accept absolute paths.
12669 [\\/]* | ?:[\\/]*)
12670 re_direlt='/[^/][^/]*/\.\./'
12671 # Canonicalize the pathname of ld
12672 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12673 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12674 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12675 done
12676 test -z "$LD" && LD="$ac_prog"
12677 ;;
12678 "")
12679 # If it fails, then pretend we aren't using GCC.
12680 ac_prog=ld
12681 ;;
12682 *)
12683 # If it is relative, then search for the first ld in PATH.
12684 with_gnu_ld=unknown
12685 ;;
12686 esac
12687 elif test "$with_gnu_ld" = yes; then
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12689 $as_echo_n "checking for GNU ld... " >&6; }
12690 else
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12692 $as_echo_n "checking for non-GNU ld... " >&6; }
12693 fi
12694 if ${lt_cv_path_LD+:} false; then :
12695 $as_echo_n "(cached) " >&6
12696 else
12697 if test -z "$LD"; then
12698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12699 for ac_dir in $PATH; do
12700 IFS="$lt_save_ifs"
12701 test -z "$ac_dir" && ac_dir=.
12702 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12703 lt_cv_path_LD="$ac_dir/$ac_prog"
12704 # Check to see if the program is GNU ld. I'd rather use --version,
12705 # but apparently some variants of GNU ld only accept -v.
12706 # Break only if it was the GNU/non-GNU ld that we prefer.
12707 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12708 *GNU* | *'with BFD'*)
12709 test "$with_gnu_ld" != no && break
12710 ;;
12711 *)
12712 test "$with_gnu_ld" != yes && break
12713 ;;
12714 esac
12715 fi
12716 done
12717 IFS="$lt_save_ifs"
12718 else
12719 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12720 fi
12721 fi
12722
12723 LD="$lt_cv_path_LD"
12724 if test -n "$LD"; then
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12726 $as_echo "$LD" >&6; }
12727 else
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12730 fi
12731 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12733 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12734 if ${lt_cv_prog_gnu_ld+:} false; then :
12735 $as_echo_n "(cached) " >&6
12736 else
12737 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12738 case `$LD -v 2>&1 </dev/null` in
12739 *GNU* | *'with BFD'*)
12740 lt_cv_prog_gnu_ld=yes
12741 ;;
12742 *)
12743 lt_cv_prog_gnu_ld=no
12744 ;;
12745 esac
12746 fi
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12748 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12749 with_gnu_ld=$lt_cv_prog_gnu_ld
12750
12751
12752
12753
12754
12755
12756
12757 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12758 # archiving commands below assume that GNU ld is being used.
12759 if test "$with_gnu_ld" = yes; then
12760 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12761 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'
12762
12763 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12764 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12765
12766 # If archive_cmds runs LD, not CC, wlarc should be empty
12767 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12768 # investigate it a little bit more. (MM)
12769 wlarc='${wl}'
12770
12771 # ancient GNU ld didn't support --whole-archive et. al.
12772 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12773 $GREP 'no-whole-archive' > /dev/null; then
12774 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12775 else
12776 whole_archive_flag_spec_CXX=
12777 fi
12778 else
12779 with_gnu_ld=no
12780 wlarc=
12781
12782 # A generic and very simple default shared library creation
12783 # command for GNU C++ for the case where it uses the native
12784 # linker, instead of GNU ld. If possible, this setting should
12785 # overridden to take advantage of the native linker features on
12786 # the platform it is being used on.
12787 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12788 fi
12789
12790 # Commands to make compiler produce verbose output that lists
12791 # what "hidden" libraries, object files and flags are used when
12792 # linking a shared library.
12793 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12794
12795 else
12796 GXX=no
12797 with_gnu_ld=no
12798 wlarc=
12799 fi
12800
12801 # PORTME: fill in a description of your system's C++ link characteristics
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12803 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12804 ld_shlibs_CXX=yes
12805 case $host_os in
12806 aix3*)
12807 # FIXME: insert proper C++ library support
12808 ld_shlibs_CXX=no
12809 ;;
12810 aix[4-9]*)
12811 if test "$host_cpu" = ia64; then
12812 # On IA64, the linker does run time linking by default, so we don't
12813 # have to do anything special.
12814 aix_use_runtimelinking=no
12815 exp_sym_flag='-Bexport'
12816 no_entry_flag=""
12817 else
12818 aix_use_runtimelinking=no
12819
12820 # Test if we are trying to use run time linking or normal
12821 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12822 # need to do runtime linking.
12823 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12824 for ld_flag in $LDFLAGS; do
12825 case $ld_flag in
12826 *-brtl*)
12827 aix_use_runtimelinking=yes
12828 break
12829 ;;
12830 esac
12831 done
12832 ;;
12833 esac
12834
12835 exp_sym_flag='-bexport'
12836 no_entry_flag='-bnoentry'
12837 fi
12838
12839 # When large executables or shared objects are built, AIX ld can
12840 # have problems creating the table of contents. If linking a library
12841 # or program results in "error TOC overflow" add -mminimal-toc to
12842 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12843 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12844
12845 archive_cmds_CXX=''
12846 hardcode_direct_CXX=yes
12847 hardcode_direct_absolute_CXX=yes
12848 hardcode_libdir_separator_CXX=':'
12849 link_all_deplibs_CXX=yes
12850 file_list_spec_CXX='${wl}-f,'
12851
12852 if test "$GXX" = yes; then
12853 case $host_os in aix4.[012]|aix4.[012].*)
12854 # We only want to do this on AIX 4.2 and lower, the check
12855 # below for broken collect2 doesn't work under 4.3+
12856 collect2name=`${CC} -print-prog-name=collect2`
12857 if test -f "$collect2name" &&
12858 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12859 then
12860 # We have reworked collect2
12861 :
12862 else
12863 # We have old collect2
12864 hardcode_direct_CXX=unsupported
12865 # It fails to find uninstalled libraries when the uninstalled
12866 # path is not listed in the libpath. Setting hardcode_minus_L
12867 # to unsupported forces relinking
12868 hardcode_minus_L_CXX=yes
12869 hardcode_libdir_flag_spec_CXX='-L$libdir'
12870 hardcode_libdir_separator_CXX=
12871 fi
12872 esac
12873 shared_flag='-shared'
12874 if test "$aix_use_runtimelinking" = yes; then
12875 shared_flag="$shared_flag "'${wl}-G'
12876 fi
12877 else
12878 # not using gcc
12879 if test "$host_cpu" = ia64; then
12880 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12881 # chokes on -Wl,-G. The following line is correct:
12882 shared_flag='-G'
12883 else
12884 if test "$aix_use_runtimelinking" = yes; then
12885 shared_flag='${wl}-G'
12886 else
12887 shared_flag='${wl}-bM:SRE'
12888 fi
12889 fi
12890 fi
12891
12892 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12893 # It seems that -bexpall does not export symbols beginning with
12894 # underscore (_), so it is better to generate a list of symbols to
12895 # export.
12896 always_export_symbols_CXX=yes
12897 if test "$aix_use_runtimelinking" = yes; then
12898 # Warning - without using the other runtime loading flags (-brtl),
12899 # -berok will link without error, but may produce a broken library.
12900 allow_undefined_flag_CXX='-berok'
12901 # Determine the default libpath from the value encoded in an empty
12902 # executable.
12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h. */
12905
12906 int
12907 main ()
12908 {
12909
12910 ;
12911 return 0;
12912 }
12913 _ACEOF
12914 if ac_fn_cxx_try_link "$LINENO"; then :
12915
12916 lt_aix_libpath_sed='
12917 /Import File Strings/,/^$/ {
12918 /^0/ {
12919 s/^0 *\(.*\)$/\1/
12920 p
12921 }
12922 }'
12923 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12924 # Check for a 64-bit object if we didn't find anything.
12925 if test -z "$aix_libpath"; then
12926 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12927 fi
12928 fi
12929 rm -f core conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12931 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12932
12933 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12934
12935 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"
12936 else
12937 if test "$host_cpu" = ia64; then
12938 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12939 allow_undefined_flag_CXX="-z nodefs"
12940 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"
12941 else
12942 # Determine the default libpath from the value encoded in an
12943 # empty executable.
12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12946
12947 int
12948 main ()
12949 {
12950
12951 ;
12952 return 0;
12953 }
12954 _ACEOF
12955 if ac_fn_cxx_try_link "$LINENO"; then :
12956
12957 lt_aix_libpath_sed='
12958 /Import File Strings/,/^$/ {
12959 /^0/ {
12960 s/^0 *\(.*\)$/\1/
12961 p
12962 }
12963 }'
12964 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12965 # Check for a 64-bit object if we didn't find anything.
12966 if test -z "$aix_libpath"; then
12967 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12968 fi
12969 fi
12970 rm -f core conftest.err conftest.$ac_objext \
12971 conftest$ac_exeext conftest.$ac_ext
12972 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12973
12974 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12975 # Warning - without using the other run time loading flags,
12976 # -berok will link without error, but may produce a broken library.
12977 no_undefined_flag_CXX=' ${wl}-bernotok'
12978 allow_undefined_flag_CXX=' ${wl}-berok'
12979 if test "$with_gnu_ld" = yes; then
12980 # We only use this code for GNU lds that support --whole-archive.
12981 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12982 else
12983 # Exported symbols can be pulled into shared objects from archives
12984 whole_archive_flag_spec_CXX='$convenience'
12985 fi
12986 archive_cmds_need_lc_CXX=yes
12987 # This is similar to how AIX traditionally builds its shared
12988 # libraries.
12989 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'
12990 fi
12991 fi
12992 ;;
12993
12994 beos*)
12995 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12996 allow_undefined_flag_CXX=unsupported
12997 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12998 # support --undefined. This deserves some investigation. FIXME
12999 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13000 else
13001 ld_shlibs_CXX=no
13002 fi
13003 ;;
13004
13005 chorus*)
13006 case $cc_basename in
13007 *)
13008 # FIXME: insert proper C++ library support
13009 ld_shlibs_CXX=no
13010 ;;
13011 esac
13012 ;;
13013
13014 cygwin* | mingw* | pw32* | cegcc*)
13015 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13016 # as there is no search path for DLLs.
13017 hardcode_libdir_flag_spec_CXX='-L$libdir'
13018 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13019 allow_undefined_flag_CXX=unsupported
13020 always_export_symbols_CXX=no
13021 enable_shared_with_static_runtimes_CXX=yes
13022
13023 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13024 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'
13025 # If the export-symbols file already is a .def file (1st line
13026 # is EXPORTS), use it as is; otherwise, prepend...
13027 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13028 cp $export_symbols $output_objdir/$soname.def;
13029 else
13030 echo EXPORTS > $output_objdir/$soname.def;
13031 cat $export_symbols >> $output_objdir/$soname.def;
13032 fi~
13033 $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'
13034 else
13035 ld_shlibs_CXX=no
13036 fi
13037 ;;
13038 darwin* | rhapsody*)
13039
13040
13041 archive_cmds_need_lc_CXX=no
13042 hardcode_direct_CXX=no
13043 hardcode_automatic_CXX=yes
13044 hardcode_shlibpath_var_CXX=unsupported
13045 if test "$lt_cv_ld_force_load" = "yes"; then
13046 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\"`'
13047 else
13048 whole_archive_flag_spec_CXX=''
13049 fi
13050 link_all_deplibs_CXX=yes
13051 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13052 case $cc_basename in
13053 ifort*) _lt_dar_can_shared=yes ;;
13054 *) _lt_dar_can_shared=$GCC ;;
13055 esac
13056 if test "$_lt_dar_can_shared" = "yes"; then
13057 output_verbose_link_cmd=func_echo_all
13058 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}"
13059 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13060 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}"
13061 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}"
13062 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13063 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}"
13064 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}"
13065 fi
13066
13067 else
13068 ld_shlibs_CXX=no
13069 fi
13070
13071 ;;
13072
13073 dgux*)
13074 case $cc_basename in
13075 ec++*)
13076 # FIXME: insert proper C++ library support
13077 ld_shlibs_CXX=no
13078 ;;
13079 ghcx*)
13080 # Green Hills C++ Compiler
13081 # FIXME: insert proper C++ library support
13082 ld_shlibs_CXX=no
13083 ;;
13084 *)
13085 # FIXME: insert proper C++ library support
13086 ld_shlibs_CXX=no
13087 ;;
13088 esac
13089 ;;
13090
13091 freebsd2.*)
13092 # C++ shared libraries reported to be fairly broken before
13093 # switch to ELF
13094 ld_shlibs_CXX=no
13095 ;;
13096
13097 freebsd-elf*)
13098 archive_cmds_need_lc_CXX=no
13099 ;;
13100
13101 freebsd* | dragonfly*)
13102 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13103 # conventions
13104 ld_shlibs_CXX=yes
13105 ;;
13106
13107 gnu*)
13108 ;;
13109
13110 haiku*)
13111 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13112 link_all_deplibs_CXX=yes
13113 ;;
13114
13115 hpux9*)
13116 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13117 hardcode_libdir_separator_CXX=:
13118 export_dynamic_flag_spec_CXX='${wl}-E'
13119 hardcode_direct_CXX=yes
13120 hardcode_minus_L_CXX=yes # Not in the search PATH,
13121 # but as the default
13122 # location of the library.
13123
13124 case $cc_basename in
13125 CC*)
13126 # FIXME: insert proper C++ library support
13127 ld_shlibs_CXX=no
13128 ;;
13129 aCC*)
13130 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'
13131 # Commands to make compiler produce verbose output that lists
13132 # what "hidden" libraries, object files and flags are used when
13133 # linking a shared library.
13134 #
13135 # There doesn't appear to be a way to prevent this compiler from
13136 # explicitly linking system object files so we need to strip them
13137 # from the output so that they don't get included in the library
13138 # dependencies.
13139 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"'
13140 ;;
13141 *)
13142 if test "$GXX" = yes; then
13143 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'
13144 else
13145 # FIXME: insert proper C++ library support
13146 ld_shlibs_CXX=no
13147 fi
13148 ;;
13149 esac
13150 ;;
13151
13152 hpux10*|hpux11*)
13153 if test $with_gnu_ld = no; then
13154 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13155 hardcode_libdir_separator_CXX=:
13156
13157 case $host_cpu in
13158 hppa*64*|ia64*)
13159 ;;
13160 *)
13161 export_dynamic_flag_spec_CXX='${wl}-E'
13162 ;;
13163 esac
13164 fi
13165 case $host_cpu in
13166 hppa*64*|ia64*)
13167 hardcode_direct_CXX=no
13168 hardcode_shlibpath_var_CXX=no
13169 ;;
13170 *)
13171 hardcode_direct_CXX=yes
13172 hardcode_direct_absolute_CXX=yes
13173 hardcode_minus_L_CXX=yes # Not in the search PATH,
13174 # but as the default
13175 # location of the library.
13176 ;;
13177 esac
13178
13179 case $cc_basename in
13180 CC*)
13181 # FIXME: insert proper C++ library support
13182 ld_shlibs_CXX=no
13183 ;;
13184 aCC*)
13185 case $host_cpu in
13186 hppa*64*)
13187 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13188 ;;
13189 ia64*)
13190 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13191 ;;
13192 *)
13193 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13194 ;;
13195 esac
13196 # Commands to make compiler produce verbose output that lists
13197 # what "hidden" libraries, object files and flags are used when
13198 # linking a shared library.
13199 #
13200 # There doesn't appear to be a way to prevent this compiler from
13201 # explicitly linking system object files so we need to strip them
13202 # from the output so that they don't get included in the library
13203 # dependencies.
13204 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"'
13205 ;;
13206 *)
13207 if test "$GXX" = yes; then
13208 if test $with_gnu_ld = no; then
13209 case $host_cpu in
13210 hppa*64*)
13211 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13212 ;;
13213 ia64*)
13214 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13215 ;;
13216 *)
13217 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'
13218 ;;
13219 esac
13220 fi
13221 else
13222 # FIXME: insert proper C++ library support
13223 ld_shlibs_CXX=no
13224 fi
13225 ;;
13226 esac
13227 ;;
13228
13229 interix[3-9]*)
13230 hardcode_direct_CXX=no
13231 hardcode_shlibpath_var_CXX=no
13232 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13233 export_dynamic_flag_spec_CXX='${wl}-E'
13234 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13235 # Instead, shared libraries are loaded at an image base (0x10000000 by
13236 # default) and relocated if they conflict, which is a slow very memory
13237 # consuming and fragmenting process. To avoid this, we pick a random,
13238 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13239 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13240 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'
13241 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'
13242 ;;
13243 irix5* | irix6*)
13244 case $cc_basename in
13245 CC*)
13246 # SGI C++
13247 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'
13248
13249 # Archives containing C++ object files must be created using
13250 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13251 # necessary to make sure instantiated templates are included
13252 # in the archive.
13253 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13254 ;;
13255 *)
13256 if test "$GXX" = yes; then
13257 if test "$with_gnu_ld" = no; then
13258 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'
13259 else
13260 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'
13261 fi
13262 fi
13263 link_all_deplibs_CXX=yes
13264 ;;
13265 esac
13266 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13267 hardcode_libdir_separator_CXX=:
13268 inherit_rpath_CXX=yes
13269 ;;
13270
13271 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13272 case $cc_basename in
13273 KCC*)
13274 # Kuck and Associates, Inc. (KAI) C++ Compiler
13275
13276 # KCC will only create a shared library if the output file
13277 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13278 # to its proper name (with version) after linking.
13279 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'
13280 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'
13281 # Commands to make compiler produce verbose output that lists
13282 # what "hidden" libraries, object files and flags are used when
13283 # linking a shared library.
13284 #
13285 # There doesn't appear to be a way to prevent this compiler from
13286 # explicitly linking system object files so we need to strip them
13287 # from the output so that they don't get included in the library
13288 # dependencies.
13289 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"'
13290
13291 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13292 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13293
13294 # Archives containing C++ object files must be created using
13295 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13296 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13297 ;;
13298 icpc* | ecpc* )
13299 # Intel C++
13300 with_gnu_ld=yes
13301 # version 8.0 and above of icpc choke on multiply defined symbols
13302 # if we add $predep_objects and $postdep_objects, however 7.1 and
13303 # earlier do not add the objects themselves.
13304 case `$CC -V 2>&1` in
13305 *"Version 7."*)
13306 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13307 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'
13308 ;;
13309 *) # Version 8.0 or newer
13310 tmp_idyn=
13311 case $host_cpu in
13312 ia64*) tmp_idyn=' -i_dynamic';;
13313 esac
13314 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13315 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'
13316 ;;
13317 esac
13318 archive_cmds_need_lc_CXX=no
13319 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13320 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13321 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13322 ;;
13323 pgCC* | pgcpp*)
13324 # Portland Group C++ compiler
13325 case `$CC -V` in
13326 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13327 prelink_cmds_CXX='tpldir=Template.dir~
13328 rm -rf $tpldir~
13329 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13330 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13331 old_archive_cmds_CXX='tpldir=Template.dir~
13332 rm -rf $tpldir~
13333 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13334 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13335 $RANLIB $oldlib'
13336 archive_cmds_CXX='tpldir=Template.dir~
13337 rm -rf $tpldir~
13338 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13339 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13340 archive_expsym_cmds_CXX='tpldir=Template.dir~
13341 rm -rf $tpldir~
13342 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13343 $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'
13344 ;;
13345 *) # Version 6 and above use weak symbols
13346 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13347 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'
13348 ;;
13349 esac
13350
13351 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13352 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13353 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'
13354 ;;
13355 cxx*)
13356 # Compaq C++
13357 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13358 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'
13359
13360 runpath_var=LD_RUN_PATH
13361 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13362 hardcode_libdir_separator_CXX=:
13363
13364 # Commands to make compiler produce verbose output that lists
13365 # what "hidden" libraries, object files and flags are used when
13366 # linking a shared library.
13367 #
13368 # There doesn't appear to be a way to prevent this compiler from
13369 # explicitly linking system object files so we need to strip them
13370 # from the output so that they don't get included in the library
13371 # dependencies.
13372 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'
13373 ;;
13374 xl* | mpixl* | bgxl*)
13375 # IBM XL 8.0 on PPC, with GNU ld
13376 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13377 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13378 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13379 if test "x$supports_anon_versioning" = xyes; then
13380 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13381 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13382 echo "local: *; };" >> $output_objdir/$libname.ver~
13383 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13384 fi
13385 ;;
13386 *)
13387 case `$CC -V 2>&1 | sed 5q` in
13388 *Sun\ C*)
13389 # Sun C++ 5.9
13390 no_undefined_flag_CXX=' -zdefs'
13391 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13392 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'
13393 hardcode_libdir_flag_spec_CXX='-R$libdir'
13394 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'
13395 compiler_needs_object_CXX=yes
13396
13397 # Not sure whether something based on
13398 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13399 # would be better.
13400 output_verbose_link_cmd='func_echo_all'
13401
13402 # Archives containing C++ object files must be created using
13403 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13404 # necessary to make sure instantiated templates are included
13405 # in the archive.
13406 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13407 ;;
13408 esac
13409 ;;
13410 esac
13411 ;;
13412
13413 lynxos*)
13414 # FIXME: insert proper C++ library support
13415 ld_shlibs_CXX=no
13416 ;;
13417
13418 m88k*)
13419 # FIXME: insert proper C++ library support
13420 ld_shlibs_CXX=no
13421 ;;
13422
13423 mvs*)
13424 case $cc_basename in
13425 cxx*)
13426 # FIXME: insert proper C++ library support
13427 ld_shlibs_CXX=no
13428 ;;
13429 *)
13430 # FIXME: insert proper C++ library support
13431 ld_shlibs_CXX=no
13432 ;;
13433 esac
13434 ;;
13435
13436 netbsd*)
13437 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13438 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13439 wlarc=
13440 hardcode_libdir_flag_spec_CXX='-R$libdir'
13441 hardcode_direct_CXX=yes
13442 hardcode_shlibpath_var_CXX=no
13443 fi
13444 # Workaround some broken pre-1.5 toolchains
13445 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13446 ;;
13447
13448 *nto* | *qnx*)
13449 ld_shlibs_CXX=yes
13450 ;;
13451
13452 openbsd2*)
13453 # C++ shared libraries are fairly broken
13454 ld_shlibs_CXX=no
13455 ;;
13456
13457 openbsd*)
13458 if test -f /usr/libexec/ld.so; then
13459 hardcode_direct_CXX=yes
13460 hardcode_shlibpath_var_CXX=no
13461 hardcode_direct_absolute_CXX=yes
13462 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13463 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13464 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13465 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13466 export_dynamic_flag_spec_CXX='${wl}-E'
13467 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13468 fi
13469 output_verbose_link_cmd=func_echo_all
13470 else
13471 ld_shlibs_CXX=no
13472 fi
13473 ;;
13474
13475 osf3* | osf4* | osf5*)
13476 case $cc_basename in
13477 KCC*)
13478 # Kuck and Associates, Inc. (KAI) C++ Compiler
13479
13480 # KCC will only create a shared library if the output file
13481 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13482 # to its proper name (with version) after linking.
13483 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'
13484
13485 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13486 hardcode_libdir_separator_CXX=:
13487
13488 # Archives containing C++ object files must be created using
13489 # the KAI C++ compiler.
13490 case $host in
13491 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13492 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13493 esac
13494 ;;
13495 RCC*)
13496 # Rational C++ 2.4.1
13497 # FIXME: insert proper C++ library support
13498 ld_shlibs_CXX=no
13499 ;;
13500 cxx*)
13501 case $host in
13502 osf3*)
13503 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13504 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'
13505 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13506 ;;
13507 *)
13508 allow_undefined_flag_CXX=' -expect_unresolved \*'
13509 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'
13510 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13511 echo "-hidden">> $lib.exp~
13512 $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~
13513 $RM $lib.exp'
13514 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13515 ;;
13516 esac
13517
13518 hardcode_libdir_separator_CXX=:
13519
13520 # Commands to make compiler produce verbose output that lists
13521 # what "hidden" libraries, object files and flags are used when
13522 # linking a shared library.
13523 #
13524 # There doesn't appear to be a way to prevent this compiler from
13525 # explicitly linking system object files so we need to strip them
13526 # from the output so that they don't get included in the library
13527 # dependencies.
13528 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"'
13529 ;;
13530 *)
13531 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13532 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13533 case $host in
13534 osf3*)
13535 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'
13536 ;;
13537 *)
13538 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'
13539 ;;
13540 esac
13541
13542 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13543 hardcode_libdir_separator_CXX=:
13544
13545 # Commands to make compiler produce verbose output that lists
13546 # what "hidden" libraries, object files and flags are used when
13547 # linking a shared library.
13548 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13549
13550 else
13551 # FIXME: insert proper C++ library support
13552 ld_shlibs_CXX=no
13553 fi
13554 ;;
13555 esac
13556 ;;
13557
13558 psos*)
13559 # FIXME: insert proper C++ library support
13560 ld_shlibs_CXX=no
13561 ;;
13562
13563 sunos4*)
13564 case $cc_basename in
13565 CC*)
13566 # Sun C++ 4.x
13567 # FIXME: insert proper C++ library support
13568 ld_shlibs_CXX=no
13569 ;;
13570 lcc*)
13571 # Lucid
13572 # FIXME: insert proper C++ library support
13573 ld_shlibs_CXX=no
13574 ;;
13575 *)
13576 # FIXME: insert proper C++ library support
13577 ld_shlibs_CXX=no
13578 ;;
13579 esac
13580 ;;
13581
13582 solaris*)
13583 case $cc_basename in
13584 CC*)
13585 # Sun C++ 4.2, 5.x and Centerline C++
13586 archive_cmds_need_lc_CXX=yes
13587 no_undefined_flag_CXX=' -zdefs'
13588 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13589 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13590 $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'
13591
13592 hardcode_libdir_flag_spec_CXX='-R$libdir'
13593 hardcode_shlibpath_var_CXX=no
13594 case $host_os in
13595 solaris2.[0-5] | solaris2.[0-5].*) ;;
13596 *)
13597 # The compiler driver will combine and reorder linker options,
13598 # but understands `-z linker_flag'.
13599 # Supported since Solaris 2.6 (maybe 2.5.1?)
13600 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13601 ;;
13602 esac
13603 link_all_deplibs_CXX=yes
13604
13605 output_verbose_link_cmd='func_echo_all'
13606
13607 # Archives containing C++ object files must be created using
13608 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13609 # necessary to make sure instantiated templates are included
13610 # in the archive.
13611 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13612 ;;
13613 gcx*)
13614 # Green Hills C++ Compiler
13615 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13616
13617 # The C++ compiler must be used to create the archive.
13618 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13619 ;;
13620 *)
13621 # GNU C++ compiler with Solaris linker
13622 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13623 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13624 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13625 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13626 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13627 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13628
13629 # Commands to make compiler produce verbose output that lists
13630 # what "hidden" libraries, object files and flags are used when
13631 # linking a shared library.
13632 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13633 else
13634 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13635 # platform.
13636 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13637 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13638 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13639
13640 # Commands to make compiler produce verbose output that lists
13641 # what "hidden" libraries, object files and flags are used when
13642 # linking a shared library.
13643 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13644 fi
13645
13646 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13647 case $host_os in
13648 solaris2.[0-5] | solaris2.[0-5].*) ;;
13649 *)
13650 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13651 ;;
13652 esac
13653 fi
13654 ;;
13655 esac
13656 ;;
13657
13658 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13659 no_undefined_flag_CXX='${wl}-z,text'
13660 archive_cmds_need_lc_CXX=no
13661 hardcode_shlibpath_var_CXX=no
13662 runpath_var='LD_RUN_PATH'
13663
13664 case $cc_basename in
13665 CC*)
13666 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13667 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13668 ;;
13669 *)
13670 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13671 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13672 ;;
13673 esac
13674 ;;
13675
13676 sysv5* | sco3.2v5* | sco5v6*)
13677 # Note: We can NOT use -z defs as we might desire, because we do not
13678 # link with -lc, and that would cause any symbols used from libc to
13679 # always be unresolved, which means just about no library would
13680 # ever link correctly. If we're not using GNU ld we use -z text
13681 # though, which does catch some bad symbols but isn't as heavy-handed
13682 # as -z defs.
13683 no_undefined_flag_CXX='${wl}-z,text'
13684 allow_undefined_flag_CXX='${wl}-z,nodefs'
13685 archive_cmds_need_lc_CXX=no
13686 hardcode_shlibpath_var_CXX=no
13687 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13688 hardcode_libdir_separator_CXX=':'
13689 link_all_deplibs_CXX=yes
13690 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13691 runpath_var='LD_RUN_PATH'
13692
13693 case $cc_basename in
13694 CC*)
13695 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13696 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13697 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13698 '"$old_archive_cmds_CXX"
13699 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13700 '"$reload_cmds_CXX"
13701 ;;
13702 *)
13703 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13704 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13705 ;;
13706 esac
13707 ;;
13708
13709 tandem*)
13710 case $cc_basename in
13711 NCC*)
13712 # NonStop-UX NCC 3.20
13713 # FIXME: insert proper C++ library support
13714 ld_shlibs_CXX=no
13715 ;;
13716 *)
13717 # FIXME: insert proper C++ library support
13718 ld_shlibs_CXX=no
13719 ;;
13720 esac
13721 ;;
13722
13723 vxworks*)
13724 # FIXME: insert proper C++ library support
13725 ld_shlibs_CXX=no
13726 ;;
13727
13728 *)
13729 # FIXME: insert proper C++ library support
13730 ld_shlibs_CXX=no
13731 ;;
13732 esac
13733
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13735 $as_echo "$ld_shlibs_CXX" >&6; }
13736 test "$ld_shlibs_CXX" = no && can_build_shared=no
13737
13738 GCC_CXX="$GXX"
13739 LD_CXX="$LD"
13740
13741 ## CAVEAT EMPTOR:
13742 ## There is no encapsulation within the following macros, do not change
13743 ## the running order or otherwise move them around unless you know exactly
13744 ## what you are doing...
13745 # Dependencies to place before and after the object being linked:
13746 predep_objects_CXX=
13747 postdep_objects_CXX=
13748 predeps_CXX=
13749 postdeps_CXX=
13750 compiler_lib_search_path_CXX=
13751
13752 cat > conftest.$ac_ext <<_LT_EOF
13753 class Foo
13754 {
13755 public:
13756 Foo (void) { a = 0; }
13757 private:
13758 int a;
13759 };
13760 _LT_EOF
13761
13762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13763 (eval $ac_compile) 2>&5
13764 ac_status=$?
13765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13766 test $ac_status = 0; }; then
13767 # Parse the compiler output and extract the necessary
13768 # objects, libraries and library flags.
13769
13770 # Sentinel used to keep track of whether or not we are before
13771 # the conftest object file.
13772 pre_test_object_deps_done=no
13773
13774 for p in `eval "$output_verbose_link_cmd"`; do
13775 case $p in
13776
13777 -L* | -R* | -l*)
13778 # Some compilers place space between "-{L,R}" and the path.
13779 # Remove the space.
13780 if test $p = "-L" ||
13781 test $p = "-R"; then
13782 prev=$p
13783 continue
13784 else
13785 prev=
13786 fi
13787
13788 if test "$pre_test_object_deps_done" = no; then
13789 case $p in
13790 -L* | -R*)
13791 # Internal compiler library paths should come after those
13792 # provided the user. The postdeps already come after the
13793 # user supplied libs so there is no need to process them.
13794 if test -z "$compiler_lib_search_path_CXX"; then
13795 compiler_lib_search_path_CXX="${prev}${p}"
13796 else
13797 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13798 fi
13799 ;;
13800 # The "-l" case would never come before the object being
13801 # linked, so don't bother handling this case.
13802 esac
13803 else
13804 if test -z "$postdeps_CXX"; then
13805 postdeps_CXX="${prev}${p}"
13806 else
13807 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13808 fi
13809 fi
13810 ;;
13811
13812 *.$objext)
13813 # This assumes that the test object file only shows up
13814 # once in the compiler output.
13815 if test "$p" = "conftest.$objext"; then
13816 pre_test_object_deps_done=yes
13817 continue
13818 fi
13819
13820 if test "$pre_test_object_deps_done" = no; then
13821 if test -z "$predep_objects_CXX"; then
13822 predep_objects_CXX="$p"
13823 else
13824 predep_objects_CXX="$predep_objects_CXX $p"
13825 fi
13826 else
13827 if test -z "$postdep_objects_CXX"; then
13828 postdep_objects_CXX="$p"
13829 else
13830 postdep_objects_CXX="$postdep_objects_CXX $p"
13831 fi
13832 fi
13833 ;;
13834
13835 *) ;; # Ignore the rest.
13836
13837 esac
13838 done
13839
13840 # Clean up.
13841 rm -f a.out a.exe
13842 else
13843 echo "libtool.m4: error: problem compiling CXX test program"
13844 fi
13845
13846 $RM -f confest.$objext
13847
13848 # PORTME: override above test on systems where it is broken
13849 case $host_os in
13850 interix[3-9]*)
13851 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13852 # hack all around it, let's just trust "g++" to DTRT.
13853 predep_objects_CXX=
13854 postdep_objects_CXX=
13855 postdeps_CXX=
13856 ;;
13857
13858 linux*)
13859 case `$CC -V 2>&1 | sed 5q` in
13860 *Sun\ C*)
13861 # Sun C++ 5.9
13862
13863 # The more standards-conforming stlport4 library is
13864 # incompatible with the Cstd library. Avoid specifying
13865 # it if it's in CXXFLAGS. Ignore libCrun as
13866 # -library=stlport4 depends on it.
13867 case " $CXX $CXXFLAGS " in
13868 *" -library=stlport4 "*)
13869 solaris_use_stlport4=yes
13870 ;;
13871 esac
13872
13873 if test "$solaris_use_stlport4" != yes; then
13874 postdeps_CXX='-library=Cstd -library=Crun'
13875 fi
13876 ;;
13877 esac
13878 ;;
13879
13880 solaris*)
13881 case $cc_basename in
13882 CC*)
13883 # The more standards-conforming stlport4 library is
13884 # incompatible with the Cstd library. Avoid specifying
13885 # it if it's in CXXFLAGS. Ignore libCrun as
13886 # -library=stlport4 depends on it.
13887 case " $CXX $CXXFLAGS " in
13888 *" -library=stlport4 "*)
13889 solaris_use_stlport4=yes
13890 ;;
13891 esac
13892
13893 # Adding this requires a known-good setup of shared libraries for
13894 # Sun compiler versions before 5.6, else PIC objects from an old
13895 # archive will be linked into the output, leading to subtle bugs.
13896 if test "$solaris_use_stlport4" != yes; then
13897 postdeps_CXX='-library=Cstd -library=Crun'
13898 fi
13899 ;;
13900 esac
13901 ;;
13902 esac
13903
13904
13905 case " $postdeps_CXX " in
13906 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13907 esac
13908 compiler_lib_search_dirs_CXX=
13909 if test -n "${compiler_lib_search_path_CXX}"; then
13910 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13911 fi
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943 lt_prog_compiler_wl_CXX=
13944 lt_prog_compiler_pic_CXX=
13945 lt_prog_compiler_static_CXX=
13946
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13948 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13949
13950 # C++ specific cases for pic, static, wl, etc.
13951 if test "$GXX" = yes; then
13952 lt_prog_compiler_wl_CXX='-Wl,'
13953 lt_prog_compiler_static_CXX='-static'
13954
13955 case $host_os in
13956 aix*)
13957 # All AIX code is PIC.
13958 if test "$host_cpu" = ia64; then
13959 # AIX 5 now supports IA64 processor
13960 lt_prog_compiler_static_CXX='-Bstatic'
13961 fi
13962 lt_prog_compiler_pic_CXX='-fPIC'
13963 ;;
13964
13965 amigaos*)
13966 case $host_cpu in
13967 powerpc)
13968 # see comment about AmigaOS4 .so support
13969 lt_prog_compiler_pic_CXX='-fPIC'
13970 ;;
13971 m68k)
13972 # FIXME: we need at least 68020 code to build shared libraries, but
13973 # adding the `-m68020' flag to GCC prevents building anything better,
13974 # like `-m68040'.
13975 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13976 ;;
13977 esac
13978 ;;
13979
13980 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13981 # PIC is the default for these OSes.
13982 ;;
13983 mingw* | cygwin* | os2* | pw32* | cegcc*)
13984 # This hack is so that the source file can tell whether it is being
13985 # built for inclusion in a dll (and should export symbols for example).
13986 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13987 # (--disable-auto-import) libraries
13988 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13989 ;;
13990 darwin* | rhapsody*)
13991 # PIC is the default on this platform
13992 # Common symbols not allowed in MH_DYLIB files
13993 lt_prog_compiler_pic_CXX='-fno-common'
13994 ;;
13995 *djgpp*)
13996 # DJGPP does not support shared libraries at all
13997 lt_prog_compiler_pic_CXX=
13998 ;;
13999 haiku*)
14000 # PIC is the default for Haiku.
14001 # The "-static" flag exists, but is broken.
14002 lt_prog_compiler_static_CXX=
14003 ;;
14004 interix[3-9]*)
14005 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14006 # Instead, we relocate shared libraries at runtime.
14007 ;;
14008 sysv4*MP*)
14009 if test -d /usr/nec; then
14010 lt_prog_compiler_pic_CXX=-Kconform_pic
14011 fi
14012 ;;
14013 hpux*)
14014 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14015 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14016 # sets the default TLS model and affects inlining.
14017 case $host_cpu in
14018 hppa*64*)
14019 ;;
14020 *)
14021 lt_prog_compiler_pic_CXX='-fPIC'
14022 ;;
14023 esac
14024 ;;
14025 *qnx* | *nto*)
14026 # QNX uses GNU C++, but need to define -shared option too, otherwise
14027 # it will coredump.
14028 lt_prog_compiler_pic_CXX='-fPIC -shared'
14029 ;;
14030 *)
14031 lt_prog_compiler_pic_CXX='-fPIC'
14032 ;;
14033 esac
14034 else
14035 case $host_os in
14036 aix[4-9]*)
14037 # All AIX code is PIC.
14038 if test "$host_cpu" = ia64; then
14039 # AIX 5 now supports IA64 processor
14040 lt_prog_compiler_static_CXX='-Bstatic'
14041 else
14042 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14043 fi
14044 ;;
14045 chorus*)
14046 case $cc_basename in
14047 cxch68*)
14048 # Green Hills C++ Compiler
14049 # _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"
14050 ;;
14051 esac
14052 ;;
14053 dgux*)
14054 case $cc_basename in
14055 ec++*)
14056 lt_prog_compiler_pic_CXX='-KPIC'
14057 ;;
14058 ghcx*)
14059 # Green Hills C++ Compiler
14060 lt_prog_compiler_pic_CXX='-pic'
14061 ;;
14062 *)
14063 ;;
14064 esac
14065 ;;
14066 freebsd* | dragonfly*)
14067 # FreeBSD uses GNU C++
14068 ;;
14069 hpux9* | hpux10* | hpux11*)
14070 case $cc_basename in
14071 CC*)
14072 lt_prog_compiler_wl_CXX='-Wl,'
14073 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14074 if test "$host_cpu" != ia64; then
14075 lt_prog_compiler_pic_CXX='+Z'
14076 fi
14077 ;;
14078 aCC*)
14079 lt_prog_compiler_wl_CXX='-Wl,'
14080 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14081 case $host_cpu in
14082 hppa*64*|ia64*)
14083 # +Z the default
14084 ;;
14085 *)
14086 lt_prog_compiler_pic_CXX='+Z'
14087 ;;
14088 esac
14089 ;;
14090 *)
14091 ;;
14092 esac
14093 ;;
14094 interix*)
14095 # This is c89, which is MS Visual C++ (no shared libs)
14096 # Anyone wants to do a port?
14097 ;;
14098 irix5* | irix6* | nonstopux*)
14099 case $cc_basename in
14100 CC*)
14101 lt_prog_compiler_wl_CXX='-Wl,'
14102 lt_prog_compiler_static_CXX='-non_shared'
14103 # CC pic flag -KPIC is the default.
14104 ;;
14105 *)
14106 ;;
14107 esac
14108 ;;
14109 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14110 case $cc_basename in
14111 KCC*)
14112 # KAI C++ Compiler
14113 lt_prog_compiler_wl_CXX='--backend -Wl,'
14114 lt_prog_compiler_pic_CXX='-fPIC'
14115 ;;
14116 ecpc* )
14117 # old Intel C++ for x86_64 which still supported -KPIC.
14118 lt_prog_compiler_wl_CXX='-Wl,'
14119 lt_prog_compiler_pic_CXX='-KPIC'
14120 lt_prog_compiler_static_CXX='-static'
14121 ;;
14122 icpc* )
14123 # Intel C++, used to be incompatible with GCC.
14124 # ICC 10 doesn't accept -KPIC any more.
14125 lt_prog_compiler_wl_CXX='-Wl,'
14126 lt_prog_compiler_pic_CXX='-fPIC'
14127 lt_prog_compiler_static_CXX='-static'
14128 ;;
14129 pgCC* | pgcpp*)
14130 # Portland Group C++ compiler
14131 lt_prog_compiler_wl_CXX='-Wl,'
14132 lt_prog_compiler_pic_CXX='-fpic'
14133 lt_prog_compiler_static_CXX='-Bstatic'
14134 ;;
14135 cxx*)
14136 # Compaq C++
14137 # Make sure the PIC flag is empty. It appears that all Alpha
14138 # Linux and Compaq Tru64 Unix objects are PIC.
14139 lt_prog_compiler_pic_CXX=
14140 lt_prog_compiler_static_CXX='-non_shared'
14141 ;;
14142 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14143 # IBM XL 8.0, 9.0 on PPC and BlueGene
14144 lt_prog_compiler_wl_CXX='-Wl,'
14145 lt_prog_compiler_pic_CXX='-qpic'
14146 lt_prog_compiler_static_CXX='-qstaticlink'
14147 ;;
14148 *)
14149 case `$CC -V 2>&1 | sed 5q` in
14150 *Sun\ C*)
14151 # Sun C++ 5.9
14152 lt_prog_compiler_pic_CXX='-KPIC'
14153 lt_prog_compiler_static_CXX='-Bstatic'
14154 lt_prog_compiler_wl_CXX='-Qoption ld '
14155 ;;
14156 esac
14157 ;;
14158 esac
14159 ;;
14160 lynxos*)
14161 ;;
14162 m88k*)
14163 ;;
14164 mvs*)
14165 case $cc_basename in
14166 cxx*)
14167 lt_prog_compiler_pic_CXX='-W c,exportall'
14168 ;;
14169 *)
14170 ;;
14171 esac
14172 ;;
14173 netbsd*)
14174 ;;
14175 *qnx* | *nto*)
14176 # QNX uses GNU C++, but need to define -shared option too, otherwise
14177 # it will coredump.
14178 lt_prog_compiler_pic_CXX='-fPIC -shared'
14179 ;;
14180 osf3* | osf4* | osf5*)
14181 case $cc_basename in
14182 KCC*)
14183 lt_prog_compiler_wl_CXX='--backend -Wl,'
14184 ;;
14185 RCC*)
14186 # Rational C++ 2.4.1
14187 lt_prog_compiler_pic_CXX='-pic'
14188 ;;
14189 cxx*)
14190 # Digital/Compaq C++
14191 lt_prog_compiler_wl_CXX='-Wl,'
14192 # Make sure the PIC flag is empty. It appears that all Alpha
14193 # Linux and Compaq Tru64 Unix objects are PIC.
14194 lt_prog_compiler_pic_CXX=
14195 lt_prog_compiler_static_CXX='-non_shared'
14196 ;;
14197 *)
14198 ;;
14199 esac
14200 ;;
14201 psos*)
14202 ;;
14203 solaris*)
14204 case $cc_basename in
14205 CC*)
14206 # Sun C++ 4.2, 5.x and Centerline C++
14207 lt_prog_compiler_pic_CXX='-KPIC'
14208 lt_prog_compiler_static_CXX='-Bstatic'
14209 lt_prog_compiler_wl_CXX='-Qoption ld '
14210 ;;
14211 gcx*)
14212 # Green Hills C++ Compiler
14213 lt_prog_compiler_pic_CXX='-PIC'
14214 ;;
14215 *)
14216 ;;
14217 esac
14218 ;;
14219 sunos4*)
14220 case $cc_basename in
14221 CC*)
14222 # Sun C++ 4.x
14223 lt_prog_compiler_pic_CXX='-pic'
14224 lt_prog_compiler_static_CXX='-Bstatic'
14225 ;;
14226 lcc*)
14227 # Lucid
14228 lt_prog_compiler_pic_CXX='-pic'
14229 ;;
14230 *)
14231 ;;
14232 esac
14233 ;;
14234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14235 case $cc_basename in
14236 CC*)
14237 lt_prog_compiler_wl_CXX='-Wl,'
14238 lt_prog_compiler_pic_CXX='-KPIC'
14239 lt_prog_compiler_static_CXX='-Bstatic'
14240 ;;
14241 esac
14242 ;;
14243 tandem*)
14244 case $cc_basename in
14245 NCC*)
14246 # NonStop-UX NCC 3.20
14247 lt_prog_compiler_pic_CXX='-KPIC'
14248 ;;
14249 *)
14250 ;;
14251 esac
14252 ;;
14253 vxworks*)
14254 ;;
14255 *)
14256 lt_prog_compiler_can_build_shared_CXX=no
14257 ;;
14258 esac
14259 fi
14260
14261 case $host_os in
14262 # For platforms which do not support PIC, -DPIC is meaningless:
14263 *djgpp*)
14264 lt_prog_compiler_pic_CXX=
14265 ;;
14266 *)
14267 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14268 ;;
14269 esac
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14271 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14272
14273
14274
14275 #
14276 # Check to make sure the PIC flag actually works.
14277 #
14278 if test -n "$lt_prog_compiler_pic_CXX"; then
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14280 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14281 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14282 $as_echo_n "(cached) " >&6
14283 else
14284 lt_cv_prog_compiler_pic_works_CXX=no
14285 ac_outfile=conftest.$ac_objext
14286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14287 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14288 # Insert the option either (1) after the last *FLAGS variable, or
14289 # (2) before a word containing "conftest.", or (3) at the end.
14290 # Note that $ac_compile itself does not contain backslashes and begins
14291 # with a dollar sign (not a hyphen), so the echo should work correctly.
14292 # The option is referenced via a variable to avoid confusing sed.
14293 lt_compile=`echo "$ac_compile" | $SED \
14294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14296 -e 's:$: $lt_compiler_flag:'`
14297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14298 (eval "$lt_compile" 2>conftest.err)
14299 ac_status=$?
14300 cat conftest.err >&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 if (exit $ac_status) && test -s "$ac_outfile"; then
14303 # The compiler can only warn and ignore the option if not recognized
14304 # So say no if there are warnings other than the usual output.
14305 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14306 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14307 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14308 lt_cv_prog_compiler_pic_works_CXX=yes
14309 fi
14310 fi
14311 $RM conftest*
14312
14313 fi
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14315 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14316
14317 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14318 case $lt_prog_compiler_pic_CXX in
14319 "" | " "*) ;;
14320 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14321 esac
14322 else
14323 lt_prog_compiler_pic_CXX=
14324 lt_prog_compiler_can_build_shared_CXX=no
14325 fi
14326
14327 fi
14328
14329
14330
14331 #
14332 # Check to make sure the static flag actually works.
14333 #
14334 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14336 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14337 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14338 $as_echo_n "(cached) " >&6
14339 else
14340 lt_cv_prog_compiler_static_works_CXX=no
14341 save_LDFLAGS="$LDFLAGS"
14342 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14343 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14344 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14345 # The linker can only warn and ignore the option if not recognized
14346 # So say no if there are warnings
14347 if test -s conftest.err; then
14348 # Append any errors to the config.log.
14349 cat conftest.err 1>&5
14350 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14352 if diff conftest.exp conftest.er2 >/dev/null; then
14353 lt_cv_prog_compiler_static_works_CXX=yes
14354 fi
14355 else
14356 lt_cv_prog_compiler_static_works_CXX=yes
14357 fi
14358 fi
14359 $RM -r conftest*
14360 LDFLAGS="$save_LDFLAGS"
14361
14362 fi
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14364 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14365
14366 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14367 :
14368 else
14369 lt_prog_compiler_static_CXX=
14370 fi
14371
14372
14373
14374
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14376 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14377 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14378 $as_echo_n "(cached) " >&6
14379 else
14380 lt_cv_prog_compiler_c_o_CXX=no
14381 $RM -r conftest 2>/dev/null
14382 mkdir conftest
14383 cd conftest
14384 mkdir out
14385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14386
14387 lt_compiler_flag="-o out/conftest2.$ac_objext"
14388 # Insert the option either (1) after the last *FLAGS variable, or
14389 # (2) before a word containing "conftest.", or (3) at the end.
14390 # Note that $ac_compile itself does not contain backslashes and begins
14391 # with a dollar sign (not a hyphen), so the echo should work correctly.
14392 lt_compile=`echo "$ac_compile" | $SED \
14393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14395 -e 's:$: $lt_compiler_flag:'`
14396 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14397 (eval "$lt_compile" 2>out/conftest.err)
14398 ac_status=$?
14399 cat out/conftest.err >&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14402 then
14403 # The compiler can only warn and ignore the option if not recognized
14404 # So say no if there are warnings
14405 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14406 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14407 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14408 lt_cv_prog_compiler_c_o_CXX=yes
14409 fi
14410 fi
14411 chmod u+w . 2>&5
14412 $RM conftest*
14413 # SGI C++ compiler will create directory out/ii_files/ for
14414 # template instantiation
14415 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14416 $RM out/* && rmdir out
14417 cd ..
14418 $RM -r conftest
14419 $RM conftest*
14420
14421 fi
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14423 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14424
14425
14426
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14428 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14429 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14430 $as_echo_n "(cached) " >&6
14431 else
14432 lt_cv_prog_compiler_c_o_CXX=no
14433 $RM -r conftest 2>/dev/null
14434 mkdir conftest
14435 cd conftest
14436 mkdir out
14437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14438
14439 lt_compiler_flag="-o out/conftest2.$ac_objext"
14440 # Insert the option either (1) after the last *FLAGS variable, or
14441 # (2) before a word containing "conftest.", or (3) at the end.
14442 # Note that $ac_compile itself does not contain backslashes and begins
14443 # with a dollar sign (not a hyphen), so the echo should work correctly.
14444 lt_compile=`echo "$ac_compile" | $SED \
14445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14447 -e 's:$: $lt_compiler_flag:'`
14448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14449 (eval "$lt_compile" 2>out/conftest.err)
14450 ac_status=$?
14451 cat out/conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14454 then
14455 # The compiler can only warn and ignore the option if not recognized
14456 # So say no if there are warnings
14457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14458 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14459 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14460 lt_cv_prog_compiler_c_o_CXX=yes
14461 fi
14462 fi
14463 chmod u+w . 2>&5
14464 $RM conftest*
14465 # SGI C++ compiler will create directory out/ii_files/ for
14466 # template instantiation
14467 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14468 $RM out/* && rmdir out
14469 cd ..
14470 $RM -r conftest
14471 $RM conftest*
14472
14473 fi
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14475 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14476
14477
14478
14479
14480 hard_links="nottested"
14481 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14482 # do not overwrite the value of need_locks provided by the user
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14484 $as_echo_n "checking if we can lock with hard links... " >&6; }
14485 hard_links=yes
14486 $RM conftest*
14487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14488 touch conftest.a
14489 ln conftest.a conftest.b 2>&5 || hard_links=no
14490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14492 $as_echo "$hard_links" >&6; }
14493 if test "$hard_links" = no; then
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14495 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14496 need_locks=warn
14497 fi
14498 else
14499 need_locks=no
14500 fi
14501
14502
14503
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14505 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14506
14507 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14508 case $host_os in
14509 aix[4-9]*)
14510 # If we're using GNU nm, then we don't want the "-C" option.
14511 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14512 # Also, AIX nm treats weak defined symbols like other global defined
14513 # symbols, whereas GNU nm marks them as "W".
14514 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14515 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'
14516 else
14517 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'
14518 fi
14519 ;;
14520 pw32*)
14521 export_symbols_cmds_CXX="$ltdll_cmds"
14522 ;;
14523 cygwin* | mingw* | cegcc*)
14524 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'
14525 ;;
14526 *)
14527 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14528 ;;
14529 esac
14530 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14531
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14533 $as_echo "$ld_shlibs_CXX" >&6; }
14534 test "$ld_shlibs_CXX" = no && can_build_shared=no
14535
14536 with_gnu_ld_CXX=$with_gnu_ld
14537
14538
14539
14540
14541
14542
14543 #
14544 # Do we need to explicitly link libc?
14545 #
14546 case "x$archive_cmds_need_lc_CXX" in
14547 x|xyes)
14548 # Assume -lc should be added
14549 archive_cmds_need_lc_CXX=yes
14550
14551 if test "$enable_shared" = yes && test "$GCC" = yes; then
14552 case $archive_cmds_CXX in
14553 *'~'*)
14554 # FIXME: we may have to deal with multi-command sequences.
14555 ;;
14556 '$CC '*)
14557 # Test whether the compiler implicitly links with -lc since on some
14558 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14559 # to ld, don't add -lc before -lgcc.
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14561 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14562 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14563 $as_echo_n "(cached) " >&6
14564 else
14565 $RM conftest*
14566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14567
14568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14569 (eval $ac_compile) 2>&5
14570 ac_status=$?
14571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14572 test $ac_status = 0; } 2>conftest.err; then
14573 soname=conftest
14574 lib=conftest
14575 libobjs=conftest.$ac_objext
14576 deplibs=
14577 wl=$lt_prog_compiler_wl_CXX
14578 pic_flag=$lt_prog_compiler_pic_CXX
14579 compiler_flags=-v
14580 linker_flags=-v
14581 verstring=
14582 output_objdir=.
14583 libname=conftest
14584 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14585 allow_undefined_flag_CXX=
14586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14587 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14588 ac_status=$?
14589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14590 test $ac_status = 0; }
14591 then
14592 lt_cv_archive_cmds_need_lc_CXX=no
14593 else
14594 lt_cv_archive_cmds_need_lc_CXX=yes
14595 fi
14596 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14597 else
14598 cat conftest.err 1>&5
14599 fi
14600 $RM conftest*
14601
14602 fi
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14604 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14605 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14606 ;;
14607 esac
14608 fi
14609 ;;
14610 esac
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14676 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14677
14678 library_names_spec=
14679 libname_spec='lib$name'
14680 soname_spec=
14681 shrext_cmds=".so"
14682 postinstall_cmds=
14683 postuninstall_cmds=
14684 finish_cmds=
14685 finish_eval=
14686 shlibpath_var=
14687 shlibpath_overrides_runpath=unknown
14688 version_type=none
14689 dynamic_linker="$host_os ld.so"
14690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14691 need_lib_prefix=unknown
14692 hardcode_into_libs=no
14693
14694 # when you set need_version to no, make sure it does not cause -set_version
14695 # flags to be left without arguments
14696 need_version=unknown
14697
14698 case $host_os in
14699 aix3*)
14700 version_type=linux
14701 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14702 shlibpath_var=LIBPATH
14703
14704 # AIX 3 has no versioning support, so we append a major version to the name.
14705 soname_spec='${libname}${release}${shared_ext}$major'
14706 ;;
14707
14708 aix[4-9]*)
14709 version_type=linux
14710 need_lib_prefix=no
14711 need_version=no
14712 hardcode_into_libs=yes
14713 if test "$host_cpu" = ia64; then
14714 # AIX 5 supports IA64
14715 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14716 shlibpath_var=LD_LIBRARY_PATH
14717 else
14718 # With GCC up to 2.95.x, collect2 would create an import file
14719 # for dependence libraries. The import file would start with
14720 # the line `#! .'. This would cause the generated library to
14721 # depend on `.', always an invalid library. This was fixed in
14722 # development snapshots of GCC prior to 3.0.
14723 case $host_os in
14724 aix4 | aix4.[01] | aix4.[01].*)
14725 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14726 echo ' yes '
14727 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14728 :
14729 else
14730 can_build_shared=no
14731 fi
14732 ;;
14733 esac
14734 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14735 # soname into executable. Probably we can add versioning support to
14736 # collect2, so additional links can be useful in future.
14737 if test "$aix_use_runtimelinking" = yes; then
14738 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14739 # instead of lib<name>.a to let people know that these are not
14740 # typical AIX shared libraries.
14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14742 else
14743 # We preserve .a as extension for shared libraries through AIX4.2
14744 # and later when we are not doing run time linking.
14745 library_names_spec='${libname}${release}.a $libname.a'
14746 soname_spec='${libname}${release}${shared_ext}$major'
14747 fi
14748 shlibpath_var=LIBPATH
14749 fi
14750 ;;
14751
14752 amigaos*)
14753 case $host_cpu in
14754 powerpc)
14755 # Since July 2007 AmigaOS4 officially supports .so libraries.
14756 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14758 ;;
14759 m68k)
14760 library_names_spec='$libname.ixlibrary $libname.a'
14761 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14762 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'
14763 ;;
14764 esac
14765 ;;
14766
14767 beos*)
14768 library_names_spec='${libname}${shared_ext}'
14769 dynamic_linker="$host_os ld.so"
14770 shlibpath_var=LIBRARY_PATH
14771 ;;
14772
14773 bsdi[45]*)
14774 version_type=linux
14775 need_version=no
14776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14777 soname_spec='${libname}${release}${shared_ext}$major'
14778 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14779 shlibpath_var=LD_LIBRARY_PATH
14780 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14781 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14782 # the default ld.so.conf also contains /usr/contrib/lib and
14783 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14784 # libtool to hard-code these into programs
14785 ;;
14786
14787 cygwin* | mingw* | pw32* | cegcc*)
14788 version_type=windows
14789 shrext_cmds=".dll"
14790 need_version=no
14791 need_lib_prefix=no
14792
14793 case $GCC,$host_os in
14794 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14795 library_names_spec='$libname.dll.a'
14796 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14797 postinstall_cmds='base_file=`basename \${file}`~
14798 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14799 dldir=$destdir/`dirname \$dlpath`~
14800 test -d \$dldir || mkdir -p \$dldir~
14801 $install_prog $dir/$dlname \$dldir/$dlname~
14802 chmod a+x \$dldir/$dlname~
14803 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14804 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14805 fi'
14806 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14807 dlpath=$dir/\$dldll~
14808 $RM \$dlpath'
14809 shlibpath_overrides_runpath=yes
14810
14811 case $host_os in
14812 cygwin*)
14813 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14814 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14815
14816 ;;
14817 mingw* | cegcc*)
14818 # MinGW DLLs use traditional 'lib' prefix
14819 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14820 ;;
14821 pw32*)
14822 # pw32 DLLs use 'pw' prefix rather than 'lib'
14823 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14824 ;;
14825 esac
14826 ;;
14827
14828 *)
14829 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14830 ;;
14831 esac
14832 dynamic_linker='Win32 ld.exe'
14833 # FIXME: first we should search . and the directory the executable is in
14834 shlibpath_var=PATH
14835 ;;
14836
14837 darwin* | rhapsody*)
14838 dynamic_linker="$host_os dyld"
14839 version_type=darwin
14840 need_lib_prefix=no
14841 need_version=no
14842 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14843 soname_spec='${libname}${release}${major}$shared_ext'
14844 shlibpath_overrides_runpath=yes
14845 shlibpath_var=DYLD_LIBRARY_PATH
14846 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14847
14848 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14849 ;;
14850
14851 dgux*)
14852 version_type=linux
14853 need_lib_prefix=no
14854 need_version=no
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14856 soname_spec='${libname}${release}${shared_ext}$major'
14857 shlibpath_var=LD_LIBRARY_PATH
14858 ;;
14859
14860 freebsd* | dragonfly*)
14861 # DragonFly does not have aout. When/if they implement a new
14862 # versioning mechanism, adjust this.
14863 if test -x /usr/bin/objformat; then
14864 objformat=`/usr/bin/objformat`
14865 else
14866 case $host_os in
14867 freebsd[23].*) objformat=aout ;;
14868 *) objformat=elf ;;
14869 esac
14870 fi
14871 version_type=freebsd-$objformat
14872 case $version_type in
14873 freebsd-elf*)
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14875 need_version=no
14876 need_lib_prefix=no
14877 ;;
14878 freebsd-*)
14879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14880 need_version=yes
14881 ;;
14882 esac
14883 shlibpath_var=LD_LIBRARY_PATH
14884 case $host_os in
14885 freebsd2.*)
14886 shlibpath_overrides_runpath=yes
14887 ;;
14888 freebsd3.[01]* | freebsdelf3.[01]*)
14889 shlibpath_overrides_runpath=yes
14890 hardcode_into_libs=yes
14891 ;;
14892 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14893 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14894 shlibpath_overrides_runpath=no
14895 hardcode_into_libs=yes
14896 ;;
14897 *) # from 4.6 on, and DragonFly
14898 shlibpath_overrides_runpath=yes
14899 hardcode_into_libs=yes
14900 ;;
14901 esac
14902 ;;
14903
14904 gnu*)
14905 version_type=linux
14906 need_lib_prefix=no
14907 need_version=no
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14909 soname_spec='${libname}${release}${shared_ext}$major'
14910 shlibpath_var=LD_LIBRARY_PATH
14911 hardcode_into_libs=yes
14912 ;;
14913
14914 haiku*)
14915 version_type=linux
14916 need_lib_prefix=no
14917 need_version=no
14918 dynamic_linker="$host_os runtime_loader"
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 shlibpath_var=LIBRARY_PATH
14922 shlibpath_overrides_runpath=yes
14923 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14924 hardcode_into_libs=yes
14925 ;;
14926
14927 hpux9* | hpux10* | hpux11*)
14928 # Give a soname corresponding to the major version so that dld.sl refuses to
14929 # link against other versions.
14930 version_type=sunos
14931 need_lib_prefix=no
14932 need_version=no
14933 case $host_cpu in
14934 ia64*)
14935 shrext_cmds='.so'
14936 hardcode_into_libs=yes
14937 dynamic_linker="$host_os dld.so"
14938 shlibpath_var=LD_LIBRARY_PATH
14939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 soname_spec='${libname}${release}${shared_ext}$major'
14942 if test "X$HPUX_IA64_MODE" = X32; then
14943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14944 else
14945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14946 fi
14947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14948 ;;
14949 hppa*64*)
14950 shrext_cmds='.sl'
14951 hardcode_into_libs=yes
14952 dynamic_linker="$host_os dld.sl"
14953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14956 soname_spec='${libname}${release}${shared_ext}$major'
14957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14959 ;;
14960 *)
14961 shrext_cmds='.sl'
14962 dynamic_linker="$host_os dld.sl"
14963 shlibpath_var=SHLIB_PATH
14964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14966 soname_spec='${libname}${release}${shared_ext}$major'
14967 ;;
14968 esac
14969 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14970 postinstall_cmds='chmod 555 $lib'
14971 # or fails outright, so override atomically:
14972 install_override_mode=555
14973 ;;
14974
14975 interix[3-9]*)
14976 version_type=linux
14977 need_lib_prefix=no
14978 need_version=no
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14982 shlibpath_var=LD_LIBRARY_PATH
14983 shlibpath_overrides_runpath=no
14984 hardcode_into_libs=yes
14985 ;;
14986
14987 irix5* | irix6* | nonstopux*)
14988 case $host_os in
14989 nonstopux*) version_type=nonstopux ;;
14990 *)
14991 if test "$lt_cv_prog_gnu_ld" = yes; then
14992 version_type=linux
14993 else
14994 version_type=irix
14995 fi ;;
14996 esac
14997 need_lib_prefix=no
14998 need_version=no
14999 soname_spec='${libname}${release}${shared_ext}$major'
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15001 case $host_os in
15002 irix5* | nonstopux*)
15003 libsuff= shlibsuff=
15004 ;;
15005 *)
15006 case $LD in # libtool.m4 will add one of these switches to LD
15007 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15008 libsuff= shlibsuff= libmagic=32-bit;;
15009 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15010 libsuff=32 shlibsuff=N32 libmagic=N32;;
15011 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15012 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15013 *) libsuff= shlibsuff= libmagic=never-match;;
15014 esac
15015 ;;
15016 esac
15017 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15018 shlibpath_overrides_runpath=no
15019 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15020 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15021 hardcode_into_libs=yes
15022 ;;
15023
15024 # No shared lib support for Linux oldld, aout, or coff.
15025 linux*oldld* | linux*aout* | linux*coff*)
15026 dynamic_linker=no
15027 ;;
15028
15029 # This must be Linux ELF.
15030
15031 # uclinux* changes (here and below) have been submitted to the libtool
15032 # project, but have not yet been accepted: they are GCC-local changes
15033 # for the time being. (See
15034 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15035 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
15036 version_type=linux
15037 need_lib_prefix=no
15038 need_version=no
15039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15040 soname_spec='${libname}${release}${shared_ext}$major'
15041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15042 shlibpath_var=LD_LIBRARY_PATH
15043 shlibpath_overrides_runpath=no
15044
15045 # Some binutils ld are patched to set DT_RUNPATH
15046 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15047 $as_echo_n "(cached) " >&6
15048 else
15049 lt_cv_shlibpath_overrides_runpath=no
15050 save_LDFLAGS=$LDFLAGS
15051 save_libdir=$libdir
15052 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15053 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h. */
15056
15057 int
15058 main ()
15059 {
15060
15061 ;
15062 return 0;
15063 }
15064 _ACEOF
15065 if ac_fn_cxx_try_link "$LINENO"; then :
15066 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15067 lt_cv_shlibpath_overrides_runpath=yes
15068 fi
15069 fi
15070 rm -f core conftest.err conftest.$ac_objext \
15071 conftest$ac_exeext conftest.$ac_ext
15072 LDFLAGS=$save_LDFLAGS
15073 libdir=$save_libdir
15074
15075 fi
15076
15077 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15078
15079 # This implies no fast_install, which is unacceptable.
15080 # Some rework will be needed to allow for fast_install
15081 # before this can be enabled.
15082 hardcode_into_libs=yes
15083
15084 # Append ld.so.conf contents to the search path
15085 if test -f /etc/ld.so.conf; then
15086 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' ' '`
15087 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15088 fi
15089
15090 # We used to test for /lib/ld.so.1 and disable shared libraries on
15091 # powerpc, because MkLinux only supported shared libraries with the
15092 # GNU dynamic linker. Since this was broken with cross compilers,
15093 # most powerpc-linux boxes support dynamic linking these days and
15094 # people can always --disable-shared, the test was removed, and we
15095 # assume the GNU/Linux dynamic linker is in use.
15096 dynamic_linker='GNU/Linux ld.so'
15097 ;;
15098
15099 netbsd*)
15100 version_type=sunos
15101 need_lib_prefix=no
15102 need_version=no
15103 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15106 dynamic_linker='NetBSD (a.out) ld.so'
15107 else
15108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15109 soname_spec='${libname}${release}${shared_ext}$major'
15110 dynamic_linker='NetBSD ld.elf_so'
15111 fi
15112 shlibpath_var=LD_LIBRARY_PATH
15113 shlibpath_overrides_runpath=yes
15114 hardcode_into_libs=yes
15115 ;;
15116
15117 newsos6)
15118 version_type=linux
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15120 shlibpath_var=LD_LIBRARY_PATH
15121 shlibpath_overrides_runpath=yes
15122 ;;
15123
15124 *nto* | *qnx*)
15125 version_type=qnx
15126 need_lib_prefix=no
15127 need_version=no
15128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15129 soname_spec='${libname}${release}${shared_ext}$major'
15130 shlibpath_var=LD_LIBRARY_PATH
15131 shlibpath_overrides_runpath=no
15132 hardcode_into_libs=yes
15133 dynamic_linker='ldqnx.so'
15134 ;;
15135
15136 openbsd*)
15137 version_type=sunos
15138 sys_lib_dlsearch_path_spec="/usr/lib"
15139 need_lib_prefix=no
15140 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15141 case $host_os in
15142 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15143 *) need_version=no ;;
15144 esac
15145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15146 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15147 shlibpath_var=LD_LIBRARY_PATH
15148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15149 case $host_os in
15150 openbsd2.[89] | openbsd2.[89].*)
15151 shlibpath_overrides_runpath=no
15152 ;;
15153 *)
15154 shlibpath_overrides_runpath=yes
15155 ;;
15156 esac
15157 else
15158 shlibpath_overrides_runpath=yes
15159 fi
15160 ;;
15161
15162 os2*)
15163 libname_spec='$name'
15164 shrext_cmds=".dll"
15165 need_lib_prefix=no
15166 library_names_spec='$libname${shared_ext} $libname.a'
15167 dynamic_linker='OS/2 ld.exe'
15168 shlibpath_var=LIBPATH
15169 ;;
15170
15171 osf3* | osf4* | osf5*)
15172 version_type=osf
15173 need_lib_prefix=no
15174 need_version=no
15175 soname_spec='${libname}${release}${shared_ext}$major'
15176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15177 shlibpath_var=LD_LIBRARY_PATH
15178 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15179 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15180 ;;
15181
15182 rdos*)
15183 dynamic_linker=no
15184 ;;
15185
15186 solaris*)
15187 version_type=linux
15188 need_lib_prefix=no
15189 need_version=no
15190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15191 soname_spec='${libname}${release}${shared_ext}$major'
15192 shlibpath_var=LD_LIBRARY_PATH
15193 shlibpath_overrides_runpath=yes
15194 hardcode_into_libs=yes
15195 # ldd complains unless libraries are executable
15196 postinstall_cmds='chmod +x $lib'
15197 ;;
15198
15199 sunos4*)
15200 version_type=sunos
15201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15202 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15203 shlibpath_var=LD_LIBRARY_PATH
15204 shlibpath_overrides_runpath=yes
15205 if test "$with_gnu_ld" = yes; then
15206 need_lib_prefix=no
15207 fi
15208 need_version=yes
15209 ;;
15210
15211 sysv4 | sysv4.3*)
15212 version_type=linux
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 shlibpath_var=LD_LIBRARY_PATH
15216 case $host_vendor in
15217 sni)
15218 shlibpath_overrides_runpath=no
15219 need_lib_prefix=no
15220 runpath_var=LD_RUN_PATH
15221 ;;
15222 siemens)
15223 need_lib_prefix=no
15224 ;;
15225 motorola)
15226 need_lib_prefix=no
15227 need_version=no
15228 shlibpath_overrides_runpath=no
15229 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15230 ;;
15231 esac
15232 ;;
15233
15234 sysv4*MP*)
15235 if test -d /usr/nec ;then
15236 version_type=linux
15237 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15238 soname_spec='$libname${shared_ext}.$major'
15239 shlibpath_var=LD_LIBRARY_PATH
15240 fi
15241 ;;
15242
15243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15244 version_type=freebsd-elf
15245 need_lib_prefix=no
15246 need_version=no
15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15248 soname_spec='${libname}${release}${shared_ext}$major'
15249 shlibpath_var=LD_LIBRARY_PATH
15250 shlibpath_overrides_runpath=yes
15251 hardcode_into_libs=yes
15252 if test "$with_gnu_ld" = yes; then
15253 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15254 else
15255 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15256 case $host_os in
15257 sco3.2v5*)
15258 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15259 ;;
15260 esac
15261 fi
15262 sys_lib_dlsearch_path_spec='/usr/lib'
15263 ;;
15264
15265 tpf*)
15266 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15267 version_type=linux
15268 need_lib_prefix=no
15269 need_version=no
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15271 shlibpath_var=LD_LIBRARY_PATH
15272 shlibpath_overrides_runpath=no
15273 hardcode_into_libs=yes
15274 ;;
15275
15276 uts4*)
15277 version_type=linux
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279 soname_spec='${libname}${release}${shared_ext}$major'
15280 shlibpath_var=LD_LIBRARY_PATH
15281 ;;
15282
15283 *)
15284 dynamic_linker=no
15285 ;;
15286 esac
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15288 $as_echo "$dynamic_linker" >&6; }
15289 test "$dynamic_linker" = no && can_build_shared=no
15290
15291 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15292 if test "$GCC" = yes; then
15293 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15294 fi
15295
15296 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15297 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15298 fi
15299 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15300 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15301 fi
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15341 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15342 hardcode_action_CXX=
15343 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15344 test -n "$runpath_var_CXX" ||
15345 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15346
15347 # We can hardcode non-existent directories.
15348 if test "$hardcode_direct_CXX" != no &&
15349 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15350 # have to relink, otherwise we might link with an installed library
15351 # when we should be linking with a yet-to-be-installed one
15352 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15353 test "$hardcode_minus_L_CXX" != no; then
15354 # Linking always hardcodes the temporary library directory.
15355 hardcode_action_CXX=relink
15356 else
15357 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15358 hardcode_action_CXX=immediate
15359 fi
15360 else
15361 # We cannot hardcode anything, or else we can only hardcode existing
15362 # directories.
15363 hardcode_action_CXX=unsupported
15364 fi
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15366 $as_echo "$hardcode_action_CXX" >&6; }
15367
15368 if test "$hardcode_action_CXX" = relink ||
15369 test "$inherit_rpath_CXX" = yes; then
15370 # Fast installation is not supported
15371 enable_fast_install=no
15372 elif test "$shlibpath_overrides_runpath" = yes ||
15373 test "$enable_shared" = no; then
15374 # Fast installation is not necessary
15375 enable_fast_install=needless
15376 fi
15377
15378
15379
15380
15381
15382
15383
15384 fi # test -n "$compiler"
15385
15386 CC=$lt_save_CC
15387 LDCXX=$LD
15388 LD=$lt_save_LD
15389 GCC=$lt_save_GCC
15390 with_gnu_ld=$lt_save_with_gnu_ld
15391 lt_cv_path_LDCXX=$lt_cv_path_LD
15392 lt_cv_path_LD=$lt_save_path_LD
15393 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15394 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15395 fi # test "$_lt_caught_CXX_error" != yes
15396
15397 ac_ext=c
15398 ac_cpp='$CPP $CPPFLAGS'
15399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415 ac_config_commands="$ac_config_commands libtool"
15416
15417
15418
15419
15420 # Only expand once:
15421
15422
15423
15424
15425
15426
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15428 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15429 # Check whether --enable-maintainer-mode was given.
15430 if test "${enable_maintainer_mode+set}" = set; then :
15431 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15432 else
15433 USE_MAINTAINER_MODE=no
15434 fi
15435
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15437 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15438 if test $USE_MAINTAINER_MODE = yes; then
15439 MAINTAINER_MODE_TRUE=
15440 MAINTAINER_MODE_FALSE='#'
15441 else
15442 MAINTAINER_MODE_TRUE='#'
15443 MAINTAINER_MODE_FALSE=
15444 fi
15445
15446 MAINT=$MAINTAINER_MODE_TRUE
15447
15448
15449
15450 # For libtool versioning info, format is CURRENT:REVISION:AGE
15451 libtool_VERSION=1:0:0
15452
15453
15454 # Check header files.
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15456 $as_echo_n "checking for ANSI C header files... " >&6; }
15457 if ${ac_cv_header_stdc+:} false; then :
15458 $as_echo_n "(cached) " >&6
15459 else
15460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15461 /* end confdefs.h. */
15462 #include <stdlib.h>
15463 #include <stdarg.h>
15464 #include <string.h>
15465 #include <float.h>
15466
15467 int
15468 main ()
15469 {
15470
15471 ;
15472 return 0;
15473 }
15474 _ACEOF
15475 if ac_fn_c_try_compile "$LINENO"; then :
15476 ac_cv_header_stdc=yes
15477 else
15478 ac_cv_header_stdc=no
15479 fi
15480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15481
15482 if test $ac_cv_header_stdc = yes; then
15483 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h. */
15486 #include <string.h>
15487
15488 _ACEOF
15489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15490 $EGREP "memchr" >/dev/null 2>&1; then :
15491
15492 else
15493 ac_cv_header_stdc=no
15494 fi
15495 rm -f conftest*
15496
15497 fi
15498
15499 if test $ac_cv_header_stdc = yes; then
15500 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h. */
15503 #include <stdlib.h>
15504
15505 _ACEOF
15506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15507 $EGREP "free" >/dev/null 2>&1; then :
15508
15509 else
15510 ac_cv_header_stdc=no
15511 fi
15512 rm -f conftest*
15513
15514 fi
15515
15516 if test $ac_cv_header_stdc = yes; then
15517 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15518 if test "$cross_compiling" = yes; then :
15519 :
15520 else
15521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15522 /* end confdefs.h. */
15523 #include <ctype.h>
15524 #include <stdlib.h>
15525 #if ((' ' & 0x0FF) == 0x020)
15526 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15527 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15528 #else
15529 # define ISLOWER(c) \
15530 (('a' <= (c) && (c) <= 'i') \
15531 || ('j' <= (c) && (c) <= 'r') \
15532 || ('s' <= (c) && (c) <= 'z'))
15533 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15534 #endif
15535
15536 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15537 int
15538 main ()
15539 {
15540 int i;
15541 for (i = 0; i < 256; i++)
15542 if (XOR (islower (i), ISLOWER (i))
15543 || toupper (i) != TOUPPER (i))
15544 return 2;
15545 return 0;
15546 }
15547 _ACEOF
15548 if ac_fn_c_try_run "$LINENO"; then :
15549
15550 else
15551 ac_cv_header_stdc=no
15552 fi
15553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15554 conftest.$ac_objext conftest.beam conftest.$ac_ext
15555 fi
15556
15557 fi
15558 fi
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15560 $as_echo "$ac_cv_header_stdc" >&6; }
15561 if test $ac_cv_header_stdc = yes; then
15562
15563 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15564
15565 fi
15566
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15568 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15569 if ${ac_cv_header_time+:} false; then :
15570 $as_echo_n "(cached) " >&6
15571 else
15572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15573 /* end confdefs.h. */
15574 #include <sys/types.h>
15575 #include <sys/time.h>
15576 #include <time.h>
15577
15578 int
15579 main ()
15580 {
15581 if ((struct tm *) 0)
15582 return 0;
15583 ;
15584 return 0;
15585 }
15586 _ACEOF
15587 if ac_fn_c_try_compile "$LINENO"; then :
15588 ac_cv_header_time=yes
15589 else
15590 ac_cv_header_time=no
15591 fi
15592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15593 fi
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15595 $as_echo "$ac_cv_header_time" >&6; }
15596 if test $ac_cv_header_time = yes; then
15597
15598 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15599
15600 fi
15601
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15603 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15604 if ${gcc_cv_header_string+:} false; then :
15605 $as_echo_n "(cached) " >&6
15606 else
15607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15608 /* end confdefs.h. */
15609 #include <string.h>
15610 #include <strings.h>
15611 int
15612 main ()
15613 {
15614
15615 ;
15616 return 0;
15617 }
15618 _ACEOF
15619 if ac_fn_c_try_compile "$LINENO"; then :
15620 gcc_cv_header_string=yes
15621 else
15622 gcc_cv_header_string=no
15623 fi
15624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15625 fi
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15627 $as_echo "$gcc_cv_header_string" >&6; }
15628 if test $gcc_cv_header_string = yes; then
15629
15630 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15631
15632 fi
15633
15634 for ac_header in unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h
15635 do :
15636 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15637 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15638 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15639 cat >>confdefs.h <<_ACEOF
15640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15641 _ACEOF
15642
15643 fi
15644
15645 done
15646
15647
15648
15649
15650 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15651
15652 acx_cv_header_stdint=stddef.h
15653 acx_cv_header_stdint_kind="(already complete)"
15654 for i in stdint.h $inttype_headers; do
15655 unset ac_cv_type_uintptr_t
15656 unset ac_cv_type_uintmax_t
15657 unset ac_cv_type_int_least32_t
15658 unset ac_cv_type_int_fast32_t
15659 unset ac_cv_type_uint64_t
15660 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15661 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15662 #include <$i>
15663 "
15664 if test "x$ac_cv_type_uintmax_t" = xyes; then :
15665 acx_cv_header_stdint=$i
15666 else
15667 continue
15668 fi
15669
15670 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15671 #include <$i>
15672 "
15673 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15674
15675 else
15676 acx_cv_header_stdint_kind="(mostly complete)"
15677 fi
15678
15679 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15680 #include <$i>
15681 "
15682 if test "x$ac_cv_type_int_least32_t" = xyes; then :
15683
15684 else
15685 acx_cv_header_stdint_kind="(mostly complete)"
15686 fi
15687
15688 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15689 #include <$i>
15690 "
15691 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
15692
15693 else
15694 acx_cv_header_stdint_kind="(mostly complete)"
15695 fi
15696
15697 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15698 #include <$i>
15699 "
15700 if test "x$ac_cv_type_uint64_t" = xyes; then :
15701
15702 else
15703 acx_cv_header_stdint_kind="(lacks uint64_t)"
15704 fi
15705
15706 break
15707 done
15708 if test "$acx_cv_header_stdint" = stddef.h; then
15709 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15710 for i in stdint.h $inttype_headers; do
15711 unset ac_cv_type_uintptr_t
15712 unset ac_cv_type_uint32_t
15713 unset ac_cv_type_uint64_t
15714 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15715 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15716 #include <$i>
15717 "
15718 if test "x$ac_cv_type_uint32_t" = xyes; then :
15719 acx_cv_header_stdint=$i
15720 else
15721 continue
15722 fi
15723
15724 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15725 #include <$i>
15726 "
15727 if test "x$ac_cv_type_uint64_t" = xyes; then :
15728
15729 fi
15730
15731 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15732 #include <$i>
15733 "
15734 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15735
15736 fi
15737
15738 break
15739 done
15740 fi
15741 if test "$acx_cv_header_stdint" = stddef.h; then
15742 acx_cv_header_stdint_kind="(u_intXX_t style)"
15743 for i in sys/types.h $inttype_headers; do
15744 unset ac_cv_type_u_int32_t
15745 unset ac_cv_type_u_int64_t
15746 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15747 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15748 #include <$i>
15749 "
15750 if test "x$ac_cv_type_u_int32_t" = xyes; then :
15751 acx_cv_header_stdint=$i
15752 else
15753 continue
15754 fi
15755
15756 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15757 #include <$i>
15758 "
15759 if test "x$ac_cv_type_u_int64_t" = xyes; then :
15760
15761 fi
15762
15763 break
15764 done
15765 fi
15766 if test "$acx_cv_header_stdint" = stddef.h; then
15767 acx_cv_header_stdint_kind="(using manual detection)"
15768 fi
15769
15770 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15771 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15772 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15773 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15774 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15775
15776 # ----------------- Summarize what we found so far
15777
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15779 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15780
15781 case `$as_basename -- gstdint.h ||
15782 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15783 Xgstdint.h : 'X\(//\)$' \| \
15784 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15785 $as_echo X/gstdint.h |
15786 sed '/^.*\/\([^/][^/]*\)\/*$/{
15787 s//\1/
15788 q
15789 }
15790 /^X\/\(\/\/\)$/{
15791 s//\1/
15792 q
15793 }
15794 /^X\/\(\/\).*/{
15795 s//\1/
15796 q
15797 }
15798 s/.*/./; q'` in
15799 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15800 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15801 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15802 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15803 *) ;;
15804 esac
15805
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15807 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15808
15809 # ----------------- done included file, check C basic types --------
15810
15811 # Lacking an uintptr_t? Test size of void *
15812 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15813 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15816 # This bug is HP SR number 8606223364.
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15818 $as_echo_n "checking size of void *... " >&6; }
15819 if ${ac_cv_sizeof_void_p+:} false; then :
15820 $as_echo_n "(cached) " >&6
15821 else
15822 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15823
15824 else
15825 if test "$ac_cv_type_void_p" = yes; then
15826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15828 as_fn_error 77 "cannot compute sizeof (void *)
15829 See \`config.log' for more details" "$LINENO" 5; }
15830 else
15831 ac_cv_sizeof_void_p=0
15832 fi
15833 fi
15834
15835 fi
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15837 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15838
15839
15840
15841 cat >>confdefs.h <<_ACEOF
15842 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15843 _ACEOF
15844
15845 ;;
15846 esac
15847
15848 # Lacking an uint64_t? Test size of long
15849 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15850 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15853 # This bug is HP SR number 8606223364.
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15855 $as_echo_n "checking size of long... " >&6; }
15856 if ${ac_cv_sizeof_long+:} false; then :
15857 $as_echo_n "(cached) " >&6
15858 else
15859 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15860
15861 else
15862 if test "$ac_cv_type_long" = yes; then
15863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15865 as_fn_error 77 "cannot compute sizeof (long)
15866 See \`config.log' for more details" "$LINENO" 5; }
15867 else
15868 ac_cv_sizeof_long=0
15869 fi
15870 fi
15871
15872 fi
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15874 $as_echo "$ac_cv_sizeof_long" >&6; }
15875
15876
15877
15878 cat >>confdefs.h <<_ACEOF
15879 #define SIZEOF_LONG $ac_cv_sizeof_long
15880 _ACEOF
15881
15882 ;;
15883 esac
15884
15885 if test $acx_cv_header_stdint = stddef.h; then
15886 # Lacking a good header? Test size of everything and deduce all types.
15887 # The cast to long int works around a bug in the HP C Compiler
15888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15890 # This bug is HP SR number 8606223364.
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15892 $as_echo_n "checking size of int... " >&6; }
15893 if ${ac_cv_sizeof_int+:} false; then :
15894 $as_echo_n "(cached) " >&6
15895 else
15896 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15897
15898 else
15899 if test "$ac_cv_type_int" = yes; then
15900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15902 as_fn_error 77 "cannot compute sizeof (int)
15903 See \`config.log' for more details" "$LINENO" 5; }
15904 else
15905 ac_cv_sizeof_int=0
15906 fi
15907 fi
15908
15909 fi
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15911 $as_echo "$ac_cv_sizeof_int" >&6; }
15912
15913
15914
15915 cat >>confdefs.h <<_ACEOF
15916 #define SIZEOF_INT $ac_cv_sizeof_int
15917 _ACEOF
15918
15919
15920 # The cast to long int works around a bug in the HP C Compiler
15921 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15922 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15923 # This bug is HP SR number 8606223364.
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15925 $as_echo_n "checking size of short... " >&6; }
15926 if ${ac_cv_sizeof_short+:} false; then :
15927 $as_echo_n "(cached) " >&6
15928 else
15929 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15930
15931 else
15932 if test "$ac_cv_type_short" = yes; then
15933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15935 as_fn_error 77 "cannot compute sizeof (short)
15936 See \`config.log' for more details" "$LINENO" 5; }
15937 else
15938 ac_cv_sizeof_short=0
15939 fi
15940 fi
15941
15942 fi
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15944 $as_echo "$ac_cv_sizeof_short" >&6; }
15945
15946
15947
15948 cat >>confdefs.h <<_ACEOF
15949 #define SIZEOF_SHORT $ac_cv_sizeof_short
15950 _ACEOF
15951
15952
15953 # The cast to long int works around a bug in the HP C Compiler
15954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15956 # This bug is HP SR number 8606223364.
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15958 $as_echo_n "checking size of char... " >&6; }
15959 if ${ac_cv_sizeof_char+:} false; then :
15960 $as_echo_n "(cached) " >&6
15961 else
15962 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15963
15964 else
15965 if test "$ac_cv_type_char" = yes; then
15966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15968 as_fn_error 77 "cannot compute sizeof (char)
15969 See \`config.log' for more details" "$LINENO" 5; }
15970 else
15971 ac_cv_sizeof_char=0
15972 fi
15973 fi
15974
15975 fi
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15977 $as_echo "$ac_cv_sizeof_char" >&6; }
15978
15979
15980
15981 cat >>confdefs.h <<_ACEOF
15982 #define SIZEOF_CHAR $ac_cv_sizeof_char
15983 _ACEOF
15984
15985
15986
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15988 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15989 case "$ac_cv_sizeof_char" in
15990 1) acx_cv_type_int8_t=char ;;
15991 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
15992 esac
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15994 $as_echo "$acx_cv_type_int8_t" >&6; }
15995
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15997 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15998 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15999 2:*) acx_cv_type_int16_t=int ;;
16000 *:2) acx_cv_type_int16_t=short ;;
16001 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
16002 esac
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16004 $as_echo "$acx_cv_type_int16_t" >&6; }
16005
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16007 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16008 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16009 4:*) acx_cv_type_int32_t=int ;;
16010 *:4) acx_cv_type_int32_t=long ;;
16011 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16012 esac
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16014 $as_echo "$acx_cv_type_int32_t" >&6; }
16015 fi
16016
16017 # These tests are here to make the output prettier
16018
16019 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16020 case "$ac_cv_sizeof_long" in
16021 8) acx_cv_type_int64_t=long ;;
16022 esac
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16024 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16026 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16027 fi
16028
16029 # Now we can use the above types
16030
16031 if test "$ac_cv_type_uintptr_t" != yes; then
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16033 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16034 case $ac_cv_sizeof_void_p in
16035 2) acx_cv_type_intptr_t=int16_t ;;
16036 4) acx_cv_type_intptr_t=int32_t ;;
16037 8) acx_cv_type_intptr_t=int64_t ;;
16038 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16039 esac
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16041 $as_echo "$acx_cv_type_intptr_t" >&6; }
16042 fi
16043
16044 # ----------------- done all checks, emit header -------------
16045 ac_config_commands="$ac_config_commands gstdint.h"
16046
16047
16048
16049
16050
16051 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
16052 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
16053 gcc_header_sys_mman_h=yes
16054 else
16055 gcc_header_sys_mman_h=no
16056 fi
16057
16058
16059 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16060 if test "x$ac_cv_func_mmap" = xyes; then :
16061 gcc_func_mmap=yes
16062 else
16063 gcc_func_mmap=no
16064 fi
16065
16066 if test "$gcc_header_sys_mman_h" != yes \
16067 || test "$gcc_func_mmap" != yes; then
16068 gcc_cv_func_mmap_file=no
16069 gcc_cv_func_mmap_dev_zero=no
16070 gcc_cv_func_mmap_anon=no
16071 else
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
16073 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
16074 if ${gcc_cv_func_mmap_file+:} false; then :
16075 $as_echo_n "(cached) " >&6
16076 else
16077 # Add a system to this blacklist if
16078 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
16079 # memory area containing the same data that you'd get if you applied
16080 # read() to the same fd. The only system known to have a problem here
16081 # is VMS, where text files have record structure.
16082 case "$host_os" in
16083 *vms* | ultrix*)
16084 gcc_cv_func_mmap_file=no ;;
16085 *)
16086 gcc_cv_func_mmap_file=yes;;
16087 esac
16088 fi
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
16090 $as_echo "$gcc_cv_func_mmap_file" >&6; }
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
16092 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
16093 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
16094 $as_echo_n "(cached) " >&6
16095 else
16096 # Add a system to this blacklist if it has mmap() but /dev/zero
16097 # does not exist, or if mmapping /dev/zero does not give anonymous
16098 # zeroed pages with both the following properties:
16099 # 1. If you map N consecutive pages in with one call, and then
16100 # unmap any subset of those pages, the pages that were not
16101 # explicitly unmapped remain accessible.
16102 # 2. If you map two adjacent blocks of memory and then unmap them
16103 # both at once, they must both go away.
16104 # Systems known to be in this category are Windows (all variants),
16105 # VMS, and Darwin.
16106 case "$host_os" in
16107 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
16108 gcc_cv_func_mmap_dev_zero=no ;;
16109 *)
16110 gcc_cv_func_mmap_dev_zero=yes;;
16111 esac
16112 fi
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
16114 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
16115
16116 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
16118 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
16119 if ${gcc_cv_decl_map_anon+:} false; then :
16120 $as_echo_n "(cached) " >&6
16121 else
16122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16123 /* end confdefs.h. */
16124 #include <sys/types.h>
16125 #include <sys/mman.h>
16126 #include <unistd.h>
16127
16128 #ifndef MAP_ANONYMOUS
16129 #define MAP_ANONYMOUS MAP_ANON
16130 #endif
16131
16132 int
16133 main ()
16134 {
16135 int n = MAP_ANONYMOUS;
16136 ;
16137 return 0;
16138 }
16139 _ACEOF
16140 if ac_fn_c_try_compile "$LINENO"; then :
16141 gcc_cv_decl_map_anon=yes
16142 else
16143 gcc_cv_decl_map_anon=no
16144 fi
16145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16146 fi
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
16148 $as_echo "$gcc_cv_decl_map_anon" >&6; }
16149
16150 if test $gcc_cv_decl_map_anon = no; then
16151 gcc_cv_func_mmap_anon=no
16152 else
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
16154 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
16155 if ${gcc_cv_func_mmap_anon+:} false; then :
16156 $as_echo_n "(cached) " >&6
16157 else
16158 # Add a system to this blacklist if it has mmap() and MAP_ANON or
16159 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
16160 # doesn't give anonymous zeroed pages with the same properties listed
16161 # above for use of /dev/zero.
16162 # Systems known to be in this category are Windows, VMS, and SCO Unix.
16163 case "$host_os" in
16164 *vms* | cygwin* | pe | mingw* | sco* | udk* )
16165 gcc_cv_func_mmap_anon=no ;;
16166 *)
16167 gcc_cv_func_mmap_anon=yes;;
16168 esac
16169 fi
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
16171 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
16172 fi
16173 fi
16174
16175 if test $gcc_cv_func_mmap_file = yes; then
16176
16177 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
16178
16179 fi
16180 if test $gcc_cv_func_mmap_dev_zero = yes; then
16181
16182 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
16183
16184 fi
16185 if test $gcc_cv_func_mmap_anon = yes; then
16186
16187 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
16188
16189 fi
16190
16191
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16193 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16194 if ${ac_cv_c_bigendian+:} false; then :
16195 $as_echo_n "(cached) " >&6
16196 else
16197 ac_cv_c_bigendian=unknown
16198 # See if we're dealing with a universal compiler.
16199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200 /* end confdefs.h. */
16201 #ifndef __APPLE_CC__
16202 not a universal capable compiler
16203 #endif
16204 typedef int dummy;
16205
16206 _ACEOF
16207 if ac_fn_c_try_compile "$LINENO"; then :
16208
16209 # Check for potential -arch flags. It is not universal unless
16210 # there are at least two -arch flags with different values.
16211 ac_arch=
16212 ac_prev=
16213 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16214 if test -n "$ac_prev"; then
16215 case $ac_word in
16216 i?86 | x86_64 | ppc | ppc64)
16217 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16218 ac_arch=$ac_word
16219 else
16220 ac_cv_c_bigendian=universal
16221 break
16222 fi
16223 ;;
16224 esac
16225 ac_prev=
16226 elif test "x$ac_word" = "x-arch"; then
16227 ac_prev=arch
16228 fi
16229 done
16230 fi
16231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16232 if test $ac_cv_c_bigendian = unknown; then
16233 # See if sys/param.h defines the BYTE_ORDER macro.
16234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16235 /* end confdefs.h. */
16236 #include <sys/types.h>
16237 #include <sys/param.h>
16238
16239 int
16240 main ()
16241 {
16242 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16243 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16244 && LITTLE_ENDIAN)
16245 bogus endian macros
16246 #endif
16247
16248 ;
16249 return 0;
16250 }
16251 _ACEOF
16252 if ac_fn_c_try_compile "$LINENO"; then :
16253 # It does; now see whether it defined to BIG_ENDIAN or not.
16254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255 /* end confdefs.h. */
16256 #include <sys/types.h>
16257 #include <sys/param.h>
16258
16259 int
16260 main ()
16261 {
16262 #if BYTE_ORDER != BIG_ENDIAN
16263 not big endian
16264 #endif
16265
16266 ;
16267 return 0;
16268 }
16269 _ACEOF
16270 if ac_fn_c_try_compile "$LINENO"; then :
16271 ac_cv_c_bigendian=yes
16272 else
16273 ac_cv_c_bigendian=no
16274 fi
16275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276 fi
16277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16278 fi
16279 if test $ac_cv_c_bigendian = unknown; then
16280 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16283 #include <limits.h>
16284
16285 int
16286 main ()
16287 {
16288 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16289 bogus endian macros
16290 #endif
16291
16292 ;
16293 return 0;
16294 }
16295 _ACEOF
16296 if ac_fn_c_try_compile "$LINENO"; then :
16297 # It does; now see whether it defined to _BIG_ENDIAN or not.
16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299 /* end confdefs.h. */
16300 #include <limits.h>
16301
16302 int
16303 main ()
16304 {
16305 #ifndef _BIG_ENDIAN
16306 not big endian
16307 #endif
16308
16309 ;
16310 return 0;
16311 }
16312 _ACEOF
16313 if ac_fn_c_try_compile "$LINENO"; then :
16314 ac_cv_c_bigendian=yes
16315 else
16316 ac_cv_c_bigendian=no
16317 fi
16318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16319 fi
16320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16321 fi
16322 if test $ac_cv_c_bigendian = unknown; then
16323 # Compile a test program.
16324 if test "$cross_compiling" = yes; then :
16325 # Try to guess by grepping values from an object file.
16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327 /* end confdefs.h. */
16328 short int ascii_mm[] =
16329 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16330 short int ascii_ii[] =
16331 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16332 int use_ascii (int i) {
16333 return ascii_mm[i] + ascii_ii[i];
16334 }
16335 short int ebcdic_ii[] =
16336 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16337 short int ebcdic_mm[] =
16338 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16339 int use_ebcdic (int i) {
16340 return ebcdic_mm[i] + ebcdic_ii[i];
16341 }
16342 extern int foo;
16343
16344 int
16345 main ()
16346 {
16347 return use_ascii (foo) == use_ebcdic (foo);
16348 ;
16349 return 0;
16350 }
16351 _ACEOF
16352 if ac_fn_c_try_compile "$LINENO"; then :
16353 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16354 ac_cv_c_bigendian=yes
16355 fi
16356 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16357 if test "$ac_cv_c_bigendian" = unknown; then
16358 ac_cv_c_bigendian=no
16359 else
16360 # finding both strings is unlikely to happen, but who knows?
16361 ac_cv_c_bigendian=unknown
16362 fi
16363 fi
16364 fi
16365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16366 else
16367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16368 /* end confdefs.h. */
16369 $ac_includes_default
16370 int
16371 main ()
16372 {
16373
16374 /* Are we little or big endian? From Harbison&Steele. */
16375 union
16376 {
16377 long int l;
16378 char c[sizeof (long int)];
16379 } u;
16380 u.l = 1;
16381 return u.c[sizeof (long int) - 1] == 1;
16382
16383 ;
16384 return 0;
16385 }
16386 _ACEOF
16387 if ac_fn_c_try_run "$LINENO"; then :
16388 ac_cv_c_bigendian=no
16389 else
16390 ac_cv_c_bigendian=yes
16391 fi
16392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16393 conftest.$ac_objext conftest.beam conftest.$ac_ext
16394 fi
16395
16396 fi
16397 fi
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16399 $as_echo "$ac_cv_c_bigendian" >&6; }
16400 case $ac_cv_c_bigendian in #(
16401 yes)
16402 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16403 ;; #(
16404 no)
16405 ;; #(
16406 universal)
16407
16408 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16409
16410 ;; #(
16411 *)
16412 as_fn_error $? "unknown endianness
16413 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16414 esac
16415
16416 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16417
16418
16419 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16420 # In case the pthread.h system header is not found, this test will fail.
16421 XPCFLAGS=""
16422 CFLAGS="$CFLAGS -pthread"
16423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16424 /* end confdefs.h. */
16425 #include <pthread.h>
16426 void *g(void *d) { return NULL; }
16427 int
16428 main ()
16429 {
16430 pthread_t t; pthread_create(&t,NULL,g,NULL);
16431 ;
16432 return 0;
16433 }
16434 _ACEOF
16435 if ac_fn_c_try_link "$LINENO"; then :
16436 XPCFLAGS=" -Wc,-pthread"
16437 else
16438 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h. */
16441 #include <pthread.h>
16442 void *g(void *d) { return NULL; }
16443 int
16444 main ()
16445 {
16446 pthread_t t; pthread_create(&t,NULL,g,NULL);
16447 ;
16448 return 0;
16449 }
16450 _ACEOF
16451 if ac_fn_c_try_link "$LINENO"; then :
16452
16453 else
16454 as_fn_error $? "Pthreads are required to build libitm" "$LINENO" 5
16455 fi
16456 rm -f core conftest.err conftest.$ac_objext \
16457 conftest$ac_exeext conftest.$ac_ext
16458 fi
16459 rm -f core conftest.err conftest.$ac_objext \
16460 conftest$ac_exeext conftest.$ac_ext
16461
16462 # Check for functions needed.
16463 for ac_func in strtoull memalign posix_memalign getauxval
16464 do :
16465 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16466 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16467 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16468 cat >>confdefs.h <<_ACEOF
16469 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16470 _ACEOF
16471
16472 fi
16473 done
16474
16475
16476 # Check for broken semaphore implementation on darwin.
16477 # sem_init returns: sem_init error: Function not implemented.
16478 case "$host" in
16479 *-darwin*)
16480
16481 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16482
16483 ;;
16484 esac
16485
16486 # Check whether --enable-linux-futex was given.
16487 if test "${enable_linux_futex+set}" = set; then :
16488 enableval=$enable_linux_futex;
16489 case "$enableval" in
16490 yes|no|default) ;;
16491 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16492 esac
16493
16494 else
16495 enable_linux_futex=default
16496 fi
16497
16498
16499 case "$target" in
16500 *-linux* | *-uclinux*)
16501 case "$enable_linux_futex" in
16502 default)
16503 # If headers don't have gettid/futex syscalls definition, then
16504 # default to no, otherwise there will be compile time failures.
16505 # Otherwise, default to yes. If we don't detect we are
16506 # compiled/linked against NPTL and not cross-compiling, check
16507 # if programs are run by default against NPTL and if not, issue
16508 # a warning.
16509 enable_linux_futex=no
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16512 #include <sys/syscall.h>
16513 #include <unistd.h>
16514 int lk;
16515 int
16516 main ()
16517 {
16518 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16519 ;
16520 return 0;
16521 }
16522 _ACEOF
16523 if ac_fn_c_try_link "$LINENO"; then :
16524 save_LIBS="$LIBS"
16525 LIBS="-lpthread $LIBS"
16526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h. */
16528 #ifndef _GNU_SOURCE
16529 #define _GNU_SOURCE 1
16530 #endif
16531 #include <pthread.h>
16532 pthread_t th; void *status;
16533 int
16534 main ()
16535 {
16536 pthread_tryjoin_np (th, &status);
16537 ;
16538 return 0;
16539 }
16540 _ACEOF
16541 if ac_fn_c_try_link "$LINENO"; then :
16542 enable_linux_futex=yes
16543 else
16544 if test x$cross_compiling = xno; then
16545 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16546 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16548 If so, please configure with --disable-linux-futex" >&5
16549 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16550 If so, please configure with --disable-linux-futex" >&2;}
16551 fi
16552 fi
16553 enable_linux_futex=yes
16554 fi
16555 rm -f core conftest.err conftest.$ac_objext \
16556 conftest$ac_exeext conftest.$ac_ext
16557 LIBS="$save_LIBS"
16558 fi
16559 rm -f core conftest.err conftest.$ac_objext \
16560 conftest$ac_exeext conftest.$ac_ext
16561 ;;
16562 yes)
16563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16564 /* end confdefs.h. */
16565 #include <sys/syscall.h>
16566 #include <unistd.h>
16567 int lk;
16568 int
16569 main ()
16570 {
16571 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16572 ;
16573 return 0;
16574 }
16575 _ACEOF
16576 if ac_fn_c_try_link "$LINENO"; then :
16577
16578 else
16579 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16580 fi
16581 rm -f core conftest.err conftest.$ac_objext \
16582 conftest$ac_exeext conftest.$ac_ext
16583 ;;
16584 esac
16585 ;;
16586 *)
16587 enable_linux_futex=no
16588 ;;
16589 esac
16590 if test x$enable_linux_futex = xyes; then
16591 :
16592 fi
16593
16594
16595 # See if we support thread-local storage.
16596
16597
16598 # Check whether --enable-tls was given.
16599 if test "${enable_tls+set}" = set; then :
16600 enableval=$enable_tls;
16601 case "$enableval" in
16602 yes|no) ;;
16603 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16604 esac
16605
16606 else
16607 enable_tls=yes
16608 fi
16609
16610
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16612 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16613 if ${gcc_cv_have_tls+:} false; then :
16614 $as_echo_n "(cached) " >&6
16615 else
16616
16617 if test "$cross_compiling" = yes; then :
16618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16619 /* end confdefs.h. */
16620 __thread int a; int b; int main() { return a = b; }
16621 _ACEOF
16622 if ac_fn_c_try_link "$LINENO"; then :
16623 chktls_save_LDFLAGS="$LDFLAGS"
16624 case $host in
16625 *-*-linux* | -*-uclinuxfdpic*)
16626 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16627 ;;
16628 esac
16629 chktls_save_CFLAGS="$CFLAGS"
16630 CFLAGS="-fPIC $CFLAGS"
16631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h. */
16633 int f() { return 0; }
16634 _ACEOF
16635 if ac_fn_c_try_link "$LINENO"; then :
16636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16637 /* end confdefs.h. */
16638 __thread int a; int b; int f() { return a = b; }
16639 _ACEOF
16640 if ac_fn_c_try_link "$LINENO"; then :
16641 gcc_cv_have_tls=yes
16642 else
16643 gcc_cv_have_tls=no
16644 fi
16645 rm -f core conftest.err conftest.$ac_objext \
16646 conftest$ac_exeext conftest.$ac_ext
16647 else
16648 gcc_cv_have_tls=yes
16649 fi
16650 rm -f core conftest.err conftest.$ac_objext \
16651 conftest$ac_exeext conftest.$ac_ext
16652 CFLAGS="$chktls_save_CFLAGS"
16653 LDFLAGS="$chktls_save_LDFLAGS"
16654 else
16655 gcc_cv_have_tls=no
16656 fi
16657 rm -f core conftest.err conftest.$ac_objext \
16658 conftest$ac_exeext conftest.$ac_ext
16659
16660
16661 else
16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h. */
16664 __thread int a; int b; int main() { return a = b; }
16665 _ACEOF
16666 if ac_fn_c_try_run "$LINENO"; then :
16667 chktls_save_LDFLAGS="$LDFLAGS"
16668 LDFLAGS="-static $LDFLAGS"
16669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16670 /* end confdefs.h. */
16671 int main() { return 0; }
16672 _ACEOF
16673 if ac_fn_c_try_link "$LINENO"; then :
16674 if test "$cross_compiling" = yes; then :
16675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16677 as_fn_error $? "cannot run test program while cross compiling
16678 See \`config.log' for more details" "$LINENO" 5; }
16679 else
16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681 /* end confdefs.h. */
16682 __thread int a; int b; int main() { return a = b; }
16683 _ACEOF
16684 if ac_fn_c_try_run "$LINENO"; then :
16685 gcc_cv_have_tls=yes
16686 else
16687 gcc_cv_have_tls=no
16688 fi
16689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16690 conftest.$ac_objext conftest.beam conftest.$ac_ext
16691 fi
16692
16693 else
16694 gcc_cv_have_tls=yes
16695 fi
16696 rm -f core conftest.err conftest.$ac_objext \
16697 conftest$ac_exeext conftest.$ac_ext
16698 LDFLAGS="$chktls_save_LDFLAGS"
16699 if test $gcc_cv_have_tls = yes; then
16700 chktls_save_CFLAGS="$CFLAGS"
16701 thread_CFLAGS=failed
16702 for flag in '' '-pthread' '-lpthread'; do
16703 CFLAGS="$flag $chktls_save_CFLAGS"
16704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16705 /* end confdefs.h. */
16706 #include <pthread.h>
16707 void *g(void *d) { return NULL; }
16708 int
16709 main ()
16710 {
16711 pthread_t t; pthread_create(&t,NULL,g,NULL);
16712 ;
16713 return 0;
16714 }
16715 _ACEOF
16716 if ac_fn_c_try_link "$LINENO"; then :
16717 thread_CFLAGS="$flag"
16718 fi
16719 rm -f core conftest.err conftest.$ac_objext \
16720 conftest$ac_exeext conftest.$ac_ext
16721 if test "X$thread_CFLAGS" != Xfailed; then
16722 break
16723 fi
16724 done
16725 CFLAGS="$chktls_save_CFLAGS"
16726 if test "X$thread_CFLAGS" != Xfailed; then
16727 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16728 if test "$cross_compiling" = yes; then :
16729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16731 as_fn_error $? "cannot run test program while cross compiling
16732 See \`config.log' for more details" "$LINENO" 5; }
16733 else
16734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735 /* end confdefs.h. */
16736 #include <pthread.h>
16737 __thread int a;
16738 static int *volatile a_in_other_thread;
16739 static void *
16740 thread_func (void *arg)
16741 {
16742 a_in_other_thread = &a;
16743 return (void *)0;
16744 }
16745 int
16746 main ()
16747 {
16748 pthread_t thread;
16749 void *thread_retval;
16750 int *volatile a_in_main_thread;
16751 a_in_main_thread = &a;
16752 if (pthread_create (&thread, (pthread_attr_t *)0,
16753 thread_func, (void *)0))
16754 return 0;
16755 if (pthread_join (thread, &thread_retval))
16756 return 0;
16757 return (a_in_other_thread == a_in_main_thread);
16758 ;
16759 return 0;
16760 }
16761 _ACEOF
16762 if ac_fn_c_try_run "$LINENO"; then :
16763 gcc_cv_have_tls=yes
16764 else
16765 gcc_cv_have_tls=no
16766 fi
16767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16768 conftest.$ac_objext conftest.beam conftest.$ac_ext
16769 fi
16770
16771 CFLAGS="$chktls_save_CFLAGS"
16772 fi
16773 fi
16774 else
16775 gcc_cv_have_tls=no
16776 fi
16777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16778 conftest.$ac_objext conftest.beam conftest.$ac_ext
16779 fi
16780
16781 fi
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16783 $as_echo "$gcc_cv_have_tls" >&6; }
16784 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16785
16786 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16787
16788 fi
16789
16790 # See what sort of export controls are available.
16791
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16793 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16794 if ${libitm_cv_have_attribute_visibility+:} false; then :
16795 $as_echo_n "(cached) " >&6
16796 else
16797
16798 save_CFLAGS="$CFLAGS"
16799 CFLAGS="$CFLAGS -Werror"
16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801 /* end confdefs.h. */
16802 void __attribute__((visibility("hidden"))) foo(void) { }
16803 int
16804 main ()
16805 {
16806
16807 ;
16808 return 0;
16809 }
16810 _ACEOF
16811 if ac_fn_c_try_compile "$LINENO"; then :
16812 libitm_cv_have_attribute_visibility=yes
16813 else
16814 libitm_cv_have_attribute_visibility=no
16815 fi
16816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16817 CFLAGS="$save_CFLAGS"
16818 fi
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16820 $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16821 if test $libitm_cv_have_attribute_visibility = yes; then
16822
16823 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16824
16825 fi
16826
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16828 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16829 if ${libitm_cv_have_attribute_dllexport+:} false; then :
16830 $as_echo_n "(cached) " >&6
16831 else
16832
16833 save_CFLAGS="$CFLAGS"
16834 CFLAGS="$CFLAGS -Werror"
16835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836 /* end confdefs.h. */
16837 void __attribute__((dllexport)) foo(void) { }
16838 int
16839 main ()
16840 {
16841
16842 ;
16843 return 0;
16844 }
16845 _ACEOF
16846 if ac_fn_c_try_compile "$LINENO"; then :
16847 libitm_cv_have_attribute_dllexport=yes
16848 else
16849 libitm_cv_have_attribute_dllexport=no
16850 fi
16851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16852 CFLAGS="$save_CFLAGS"
16853 fi
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16855 $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16856 if test $libitm_cv_have_attribute_dllexport = yes; then
16857
16858 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16859
16860 fi
16861
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16863 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16864 if ${libitm_cv_have_attribute_alias+:} false; then :
16865 $as_echo_n "(cached) " >&6
16866 else
16867
16868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869 /* end confdefs.h. */
16870
16871 void foo(void) { }
16872 extern void bar(void) __attribute__((alias("foo")));
16873 int
16874 main ()
16875 {
16876 bar();
16877 ;
16878 return 0;
16879 }
16880 _ACEOF
16881 if ac_fn_c_try_link "$LINENO"; then :
16882 libitm_cv_have_attribute_alias=yes
16883 else
16884 libitm_cv_have_attribute_alias=no
16885 fi
16886 rm -f core conftest.err conftest.$ac_objext \
16887 conftest$ac_exeext conftest.$ac_ext
16888 fi
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16890 $as_echo "$libitm_cv_have_attribute_alias" >&6; }
16891 if test $libitm_cv_have_attribute_alias = yes; then
16892
16893 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16894
16895 fi
16896
16897 # Check linker hardware capability support.
16898
16899
16900 # Check whether --with-gnu-ld was given.
16901 if test "${with_gnu_ld+set}" = set; then :
16902 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16903 else
16904 with_gnu_ld=no
16905 fi
16906
16907 ac_prog=ld
16908 if test "$GCC" = yes; then
16909 # Check if gcc -print-prog-name=ld gives a path.
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16911 $as_echo_n "checking for ld used by $CC... " >&6; }
16912 case $host in
16913 *-*-mingw*)
16914 # gcc leaves a trailing carriage return which upsets mingw
16915 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16916 *)
16917 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16918 esac
16919 case $ac_prog in
16920 # Accept absolute paths.
16921 [\\/]* | ?:[\\/]*)
16922 re_direlt='/[^/][^/]*/\.\./'
16923 # Canonicalize the pathname of ld
16924 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16925 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16926 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16927 done
16928 test -z "$LD" && LD="$ac_prog"
16929 ;;
16930 "")
16931 # If it fails, then pretend we aren't using GCC.
16932 ac_prog=ld
16933 ;;
16934 *)
16935 # If it is relative, then search for the first ld in PATH.
16936 with_gnu_ld=unknown
16937 ;;
16938 esac
16939 elif test "$with_gnu_ld" = yes; then
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16941 $as_echo_n "checking for GNU ld... " >&6; }
16942 else
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16944 $as_echo_n "checking for non-GNU ld... " >&6; }
16945 fi
16946 if ${lt_cv_path_LD+:} false; then :
16947 $as_echo_n "(cached) " >&6
16948 else
16949 if test -z "$LD"; then
16950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16951 for ac_dir in $PATH; do
16952 IFS="$lt_save_ifs"
16953 test -z "$ac_dir" && ac_dir=.
16954 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16955 lt_cv_path_LD="$ac_dir/$ac_prog"
16956 # Check to see if the program is GNU ld. I'd rather use --version,
16957 # but apparently some variants of GNU ld only accept -v.
16958 # Break only if it was the GNU/non-GNU ld that we prefer.
16959 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16960 *GNU* | *'with BFD'*)
16961 test "$with_gnu_ld" != no && break
16962 ;;
16963 *)
16964 test "$with_gnu_ld" != yes && break
16965 ;;
16966 esac
16967 fi
16968 done
16969 IFS="$lt_save_ifs"
16970 else
16971 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16972 fi
16973 fi
16974
16975 LD="$lt_cv_path_LD"
16976 if test -n "$LD"; then
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16978 $as_echo "$LD" >&6; }
16979 else
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16981 $as_echo "no" >&6; }
16982 fi
16983 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16985 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16986 if ${lt_cv_prog_gnu_ld+:} false; then :
16987 $as_echo_n "(cached) " >&6
16988 else
16989 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16990 case `$LD -v 2>&1 </dev/null` in
16991 *GNU* | *'with BFD'*)
16992 lt_cv_prog_gnu_ld=yes
16993 ;;
16994 *)
16995 lt_cv_prog_gnu_ld=no
16996 ;;
16997 esac
16998 fi
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17000 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17001 with_gnu_ld=$lt_cv_prog_gnu_ld
17002
17003
17004
17005
17006
17007
17008
17009 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
17010
17011
17012 ac_save_LDFLAGS="$LDFLAGS"
17013 LDFLAGS="$LFLAGS -mclear-hwcap"
17014
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
17016 $as_echo_n "checking for -mclear-hwcap... " >&6; }
17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h. */
17019
17020 int
17021 main ()
17022 {
17023 return 0;
17024 ;
17025 return 0;
17026 }
17027 _ACEOF
17028 if ac_fn_c_try_link "$LINENO"; then :
17029 ac_hwcap_ldflags=yes
17030 else
17031 ac_hwcap_ldflags=no
17032 fi
17033 rm -f core conftest.err conftest.$ac_objext \
17034 conftest$ac_exeext conftest.$ac_ext
17035 if test "$ac_hwcap_ldflags" = "yes"; then
17036 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
17037 fi
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
17039 $as_echo "$ac_hwcap_ldflags" >&6; }
17040
17041 LDFLAGS="$ac_save_LDFLAGS"
17042
17043
17044
17045 if test $ac_hwcap_ldflags != no; then
17046 HAVE_HWCAP_TRUE=
17047 HAVE_HWCAP_FALSE='#'
17048 else
17049 HAVE_HWCAP_TRUE='#'
17050 HAVE_HWCAP_FALSE=
17051 fi
17052
17053
17054 # If defaulting to -mavx, don't clear hwcaps.
17055 ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
17056 if test "x$ac_cv_have_decl___AVX__" = xyes; then :
17057 HWCAP_LDFLAGS=''
17058 fi
17059
17060
17061
17062 # If we're not using GNU ld, then there's no point in even trying these
17063 # tests. Check for that first. We should have already tested for gld
17064 # by now (in libtool), but require it now just to be safe...
17065 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17066 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17067
17068
17069
17070 # The name set by libtool depends on the version of libtool. Shame on us
17071 # for depending on an impl detail, but c'est la vie. Older versions used
17072 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17073 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17074 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17075 # set (hence we're using an older libtool), then set it.
17076 if test x${with_gnu_ld+set} != xset; then
17077 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17078 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17079 with_gnu_ld=no
17080 else
17081 with_gnu_ld=$ac_cv_prog_gnu_ld
17082 fi
17083 fi
17084
17085 # Start by getting the version number. I think the libtool test already
17086 # does some of this, but throws away the result.
17087 libitm_ld_is_gold=no
17088 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
17089 libitm_ld_is_gold=yes
17090 fi
17091
17092 ldver=`$LD --version 2>/dev/null |
17093 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
17094
17095 libitm_gnu_ld_version=`echo $ldver | \
17096 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17097
17098 # Set --gc-sections.
17099 if test "$with_gnu_ld" = "notbroken"; then
17100 # GNU ld it is! Joy and bunny rabbits!
17101
17102 # All these tests are for C++; save the language and the compiler flags.
17103 # Need to do this so that g++ won't try to link in libstdc++
17104 ac_test_CFLAGS="${CFLAGS+set}"
17105 ac_save_CFLAGS="$CFLAGS"
17106 CFLAGS='-x c++ -Wl,--gc-sections'
17107
17108 # Check for -Wl,--gc-sections
17109 # XXX This test is broken at the moment, as symbols required for linking
17110 # are now in libsupc++ (not built yet). In addition, this test has
17111 # cored on solaris in the past. In addition, --gc-sections doesn't
17112 # really work at the moment (keeps on discarding used sections, first
17113 # .eh_frame and now some of the glibc sections for iconv).
17114 # Bzzzzt. Thanks for playing, maybe next time.
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
17116 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
17117 if test "$cross_compiling" = yes; then :
17118 ac_sectionLDflags=yes
17119 else
17120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17121 /* end confdefs.h. */
17122
17123 int main(void)
17124 {
17125 try { throw 1; }
17126 catch (...) { };
17127 return 0;
17128 }
17129
17130 _ACEOF
17131 if ac_fn_c_try_run "$LINENO"; then :
17132 ac_sectionLDflags=yes
17133 else
17134 ac_sectionLDflags=no
17135 fi
17136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17137 conftest.$ac_objext conftest.beam conftest.$ac_ext
17138 fi
17139
17140 if test "$ac_test_CFLAGS" = set; then
17141 CFLAGS="$ac_save_CFLAGS"
17142 else
17143 # this is the suspicious part
17144 CFLAGS=''
17145 fi
17146 if test "$ac_sectionLDflags" = "yes"; then
17147 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17148 fi
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
17150 $as_echo "$ac_sectionLDflags" >&6; }
17151 fi
17152
17153 # Set linker optimization flags.
17154 if test x"$with_gnu_ld" = x"yes"; then
17155 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17156 fi
17157
17158
17159
17160
17161
17162
17163 # Check whether --enable-symvers was given.
17164 if test "${enable_symvers+set}" = set; then :
17165 enableval=$enable_symvers;
17166 case "$enableval" in
17167 yes|no|gnu*|sun) ;;
17168 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
17169 esac
17170
17171 else
17172 enable_symvers=yes
17173 fi
17174
17175
17176
17177 # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
17178 # don't know enough about $LD to do tricks...
17179
17180
17181 # Turn a 'yes' into a suitable default.
17182 if test x$enable_symvers = xyes ; then
17183 # FIXME The following test is too strict, in theory.
17184 if test $enable_shared = no || test "x$LD" = x; then
17185 enable_symvers=no
17186 else
17187 if test $with_gnu_ld = yes ; then
17188 enable_symvers=gnu
17189 else
17190 case ${target_os} in
17191 # Sun symbol versioning exists since Solaris 2.5.
17192 solaris2.[5-9]* | solaris2.1[0-9]*)
17193 enable_symvers=sun ;;
17194 *)
17195 enable_symvers=no ;;
17196 esac
17197 fi
17198 fi
17199 fi
17200
17201 # Check if 'sun' was requested on non-Solaris 2 platforms.
17202 if test x$enable_symvers = xsun ; then
17203 case ${target_os} in
17204 solaris2*)
17205 # All fine.
17206 ;;
17207 *)
17208 # Unlikely to work.
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
17210 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
17212 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17214 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17215 enable_symvers=no
17216 ;;
17217 esac
17218 fi
17219
17220 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17221 if test $enable_symvers != no; then
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
17223 $as_echo_n "checking for shared libgcc... " >&6; }
17224 ac_save_CFLAGS="$CFLAGS"
17225 CFLAGS=' -lgcc_s'
17226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17227 /* end confdefs.h. */
17228
17229 int
17230 main ()
17231 {
17232 return 0;
17233 ;
17234 return 0;
17235 }
17236 _ACEOF
17237 if ac_fn_c_try_link "$LINENO"; then :
17238 libitm_shared_libgcc=yes
17239 else
17240 libitm_shared_libgcc=no
17241 fi
17242 rm -f core conftest.err conftest.$ac_objext \
17243 conftest$ac_exeext conftest.$ac_ext
17244 CFLAGS="$ac_save_CFLAGS"
17245 if test $libitm_shared_libgcc = no; then
17246 cat > conftest.c <<EOF
17247 int main (void) { return 0; }
17248 EOF
17249 libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17250 -shared -shared-libgcc -o conftest.so \
17251 conftest.c -v 2>&1 >/dev/null \
17252 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17253 rm -f conftest.c conftest.so
17254 if test x${libitm_libgcc_s_suffix+set} = xset; then
17255 CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
17256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257 /* end confdefs.h. */
17258
17259 int
17260 main ()
17261 {
17262 return 0;
17263 ;
17264 return 0;
17265 }
17266 _ACEOF
17267 if ac_fn_c_try_link "$LINENO"; then :
17268 libitm_shared_libgcc=yes
17269 fi
17270 rm -f core conftest.err conftest.$ac_objext \
17271 conftest$ac_exeext conftest.$ac_ext
17272 CFLAGS="$ac_save_CFLAGS"
17273 fi
17274 fi
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
17276 $as_echo "$libitm_shared_libgcc" >&6; }
17277 fi
17278
17279 # For GNU ld, we need at least this version. The format is described in
17280 # LIBITM_CHECK_LINKER_FEATURES above.
17281 libitm_min_gnu_ld_version=21400
17282 # XXXXXXXXXXX libitm_gnu_ld_version=21390
17283
17284 # Check to see if unspecified "yes" value can win, given results above.
17285 # Change "yes" into either "no" or a style name.
17286 if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
17287 if test $with_gnu_ld = yes; then
17288 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17289 enable_symvers=gnu
17290 elif test $libitm_ld_is_gold = yes ; then
17291 enable_symvers=gnu
17292 else
17293 # The right tools, the right setup, but too old. Fallbacks?
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17295 $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17297 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17299 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17301 $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17302 if test $libitm_gnu_ld_version -ge 21200 ; then
17303 # Globbing fix is present, proper block support is not.
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17305 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17306 enable_symvers=no
17307 else
17308 # 2.11 or older.
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17310 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17311 enable_symvers=no
17312 fi
17313 fi
17314 elif test $enable_symvers = sun; then
17315 : All interesting versions of Sun ld support sun style symbol versioning.
17316 else
17317 # just fail for now
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17319 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17321 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17323 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17325 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17326 enable_symvers=no
17327 fi
17328 fi
17329
17330 if test $enable_symvers != no; then
17331 LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
17332 LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
17333 else
17334 LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
17335 LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
17336 fi
17337
17338 if test $enable_symvers = gnu; then
17339 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17340 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17341 else
17342 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17343 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17344 fi
17345
17346 if test $enable_symvers = sun; then
17347 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17348 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17349 else
17350 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17351 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17352 fi
17353
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17355 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17356
17357 if test $enable_symvers = gnu; then
17358
17359 $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17360
17361 fi
17362
17363 # See if we can emit unwind info in the sjlj stub.
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17365 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
17366 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
17367 $as_echo_n "(cached) " >&6
17368 else
17369
17370 gcc_cv_as_cfi_pseudo_op=unknown
17371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17372 /* end confdefs.h. */
17373 asm (".cfi_startproc\n\t.cfi_endproc");
17374 int
17375 main ()
17376 {
17377
17378 ;
17379 return 0;
17380 }
17381 _ACEOF
17382 if ac_fn_c_try_compile "$LINENO"; then :
17383 gcc_cv_as_cfi_pseudo_op=yes
17384 else
17385 gcc_cv_as_cfi_pseudo_op=no
17386 fi
17387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17388
17389 fi
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17391 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17392 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17393
17394 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17395
17396 fi
17397
17398
17399 # Determine the proper ABI type for size_t.
17400
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17402 $as_echo_n "checking how size_t is mangled... " >&6; }
17403 if ${libitm_cv_size_t_mangling+:} false; then :
17404 $as_echo_n "(cached) " >&6
17405 else
17406
17407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408 /* end confdefs.h. */
17409
17410 int
17411 main ()
17412 {
17413 extern __SIZE_TYPE__ x; extern unsigned long x;
17414 ;
17415 return 0;
17416 }
17417 _ACEOF
17418 if ac_fn_c_try_compile "$LINENO"; then :
17419 libitm_cv_size_t_mangling=m
17420 else
17421
17422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17423 /* end confdefs.h. */
17424
17425 int
17426 main ()
17427 {
17428 extern __SIZE_TYPE__ x; extern unsigned int x;
17429 ;
17430 return 0;
17431 }
17432 _ACEOF
17433 if ac_fn_c_try_compile "$LINENO"; then :
17434 libitm_cv_size_t_mangling=j
17435 else
17436
17437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17438 /* end confdefs.h. */
17439
17440 int
17441 main ()
17442 {
17443 extern __SIZE_TYPE__ x; extern unsigned long long x;
17444 ;
17445 return 0;
17446 }
17447 _ACEOF
17448 if ac_fn_c_try_compile "$LINENO"; then :
17449 libitm_cv_size_t_mangling=y
17450 else
17451
17452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17453 /* end confdefs.h. */
17454
17455 int
17456 main ()
17457 {
17458 extern __SIZE_TYPE__ x; extern unsigned short x;
17459 ;
17460 return 0;
17461 }
17462 _ACEOF
17463 if ac_fn_c_try_compile "$LINENO"; then :
17464 libitm_cv_size_t_mangling=t
17465 else
17466 libitm_cv_size_t_mangling=x
17467 fi
17468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17469
17470 fi
17471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17472
17473 fi
17474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17475
17476 fi
17477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17478
17479 fi
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17481 $as_echo "$libitm_cv_size_t_mangling" >&6; }
17482 if test $libitm_cv_size_t_mangling = x; then
17483 as_fn_error $? "Unknown underlying type for size_t" "$LINENO" 5
17484 fi
17485
17486 cat >>confdefs.h <<_ACEOF
17487 #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17488 _ACEOF
17489
17490
17491
17492 # Get target configury.
17493 . ${srcdir}/configure.tgt
17494 if test -n "$UNSUPPORTED"; then
17495 as_fn_error $? "Configuration ${target} is unsupported." "$LINENO" 5
17496 fi
17497
17498 CFLAGS="$save_CFLAGS $XCFLAGS"
17499
17500 # Check for __sync_val_compare_and_swap, but only after the target has
17501 # had a chance to set XCFLAGS.
17502
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17504 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17505 if ${libitm_cv_have_sync_builtins+:} false; then :
17506 $as_echo_n "(cached) " >&6
17507 else
17508
17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510 /* end confdefs.h. */
17511
17512 int
17513 main ()
17514 {
17515 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17516 ;
17517 return 0;
17518 }
17519 _ACEOF
17520 if ac_fn_c_try_link "$LINENO"; then :
17521 libitm_cv_have_sync_builtins=yes
17522 else
17523 libitm_cv_have_sync_builtins=no
17524 fi
17525 rm -f core conftest.err conftest.$ac_objext \
17526 conftest$ac_exeext conftest.$ac_ext
17527 fi
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17529 $as_echo "$libitm_cv_have_sync_builtins" >&6; }
17530 if test $libitm_cv_have_sync_builtins = yes; then
17531
17532 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17533
17534 fi
17535
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17537 $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17538 if ${libitm_cv_have_64bit_sync_builtins+:} false; then :
17539 $as_echo_n "(cached) " >&6
17540 else
17541
17542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17543 /* end confdefs.h. */
17544 #include <stdint.h>
17545 int
17546 main ()
17547 {
17548 uint64_t foo, bar;
17549 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17550 ;
17551 return 0;
17552 }
17553 _ACEOF
17554 if ac_fn_c_try_link "$LINENO"; then :
17555 libitm_cv_have_64bit_sync_builtins=yes
17556 else
17557 libitm_cv_have_64bit_sync_builtins=no
17558 fi
17559 rm -f core conftest.err conftest.$ac_objext \
17560 conftest$ac_exeext conftest.$ac_ext
17561 fi
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17563 $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17564 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17565
17566 $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17567
17568 fi
17569
17570 case "${target_cpu}" in
17571 i[34567]86 | x86_64)
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17573 $as_echo_n "checking if the assembler supports AVX... " >&6; }
17574 if ${libitm_cv_as_avx+:} false; then :
17575 $as_echo_n "(cached) " >&6
17576 else
17577
17578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17579 /* end confdefs.h. */
17580
17581 int
17582 main ()
17583 {
17584 asm("vzeroupper");
17585 ;
17586 return 0;
17587 }
17588 _ACEOF
17589 if ac_fn_c_try_compile "$LINENO"; then :
17590 libitm_cv_as_avx=yes
17591 else
17592 libitm_cv_as_avx=no
17593 fi
17594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17595
17596 fi
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17598 $as_echo "$libitm_cv_as_avx" >&6; }
17599 if test x$libitm_cv_as_avx = xyes; then
17600
17601 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17602
17603 fi
17604 ;;
17605 esac
17606
17607 case "${target_cpu}" in
17608 i[34567]86 | x86_64)
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5
17610 $as_echo_n "checking if the assembler supports RTM... " >&6; }
17611 if ${libitm_cv_as_rtm+:} false; then :
17612 $as_echo_n "(cached) " >&6
17613 else
17614
17615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17616 /* end confdefs.h. */
17617
17618 int
17619 main ()
17620 {
17621 asm("1: xbegin 1b; xend");
17622 ;
17623 return 0;
17624 }
17625 _ACEOF
17626 if ac_fn_c_try_compile "$LINENO"; then :
17627 libitm_cv_as_rtm=yes
17628 else
17629 libitm_cv_as_rtm=no
17630 fi
17631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17632
17633 fi
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5
17635 $as_echo "$libitm_cv_as_rtm" >&6; }
17636 if test x$libitm_cv_as_rtm = xyes; then
17637
17638 $as_echo "#define HAVE_AS_RTM 1" >>confdefs.h
17639
17640 fi
17641 ;;
17642 esac
17643
17644 case "${target_cpu}" in
17645 powerpc*)
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17647 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17648 if ${libitm_cv_as_htm+:} false; then :
17649 $as_echo_n "(cached) " >&6
17650 else
17651
17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653 /* end confdefs.h. */
17654
17655 int
17656 main ()
17657 {
17658 asm("tbegin. 0; tend. 0");
17659 ;
17660 return 0;
17661 }
17662 _ACEOF
17663 if ac_fn_c_try_compile "$LINENO"; then :
17664 libitm_cv_as_htm=yes
17665 else
17666 libitm_cv_as_htm=no
17667 fi
17668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17669
17670 fi
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17672 $as_echo "$libitm_cv_as_htm" >&6; }
17673 if test x$libitm_cv_as_htm = xyes; then
17674
17675 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17676
17677 fi
17678 ;;
17679 s390*)
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17681 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17682 if ${libitm_cv_as_htm+:} false; then :
17683 $as_echo_n "(cached) " >&6
17684 else
17685
17686 save_CFLAGS="$CFLAGS"
17687 CFLAGS="$CFLAGS -march=zEC12"
17688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17689 /* end confdefs.h. */
17690
17691 int
17692 main ()
17693 {
17694 asm("tbegin 0,0; tend");
17695 ;
17696 return 0;
17697 }
17698 _ACEOF
17699 if ac_fn_c_try_compile "$LINENO"; then :
17700 libitm_cv_as_htm=yes
17701 else
17702 libitm_cv_as_htm=no
17703 fi
17704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17705 CFLAGS="$save_CFLAGS"
17706 fi
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17708 $as_echo "$libitm_cv_as_htm" >&6; }
17709 if test x$libitm_cv_as_htm = xyes; then
17710
17711 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17712
17713 fi
17714 ;;
17715 esac
17716
17717
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17719 $as_echo_n "checking whether weak refs work like ELF... " >&6; }
17720 if ${ac_cv_have_elf_style_weakref+:} false; then :
17721 $as_echo_n "(cached) " >&6
17722 else
17723
17724 weakref_m4_saved_CFLAGS="$CFLAGS"
17725 case "${host}" in
17726 *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17727 *) ;;
17728 esac
17729 if test "$cross_compiling" = yes; then :
17730
17731 case "${host}" in
17732 *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17733 *) ac_cv_have_elf_style_weakref=yes;;
17734 esac
17735 else
17736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17737 /* end confdefs.h. */
17738
17739 extern void fNotToBeFound(void) __attribute__((weak));
17740 int main ()
17741 {
17742 if (fNotToBeFound)
17743 return 1;
17744 else
17745 return 0;
17746 }
17747
17748 _ACEOF
17749 if ac_fn_c_try_run "$LINENO"; then :
17750 ac_cv_have_elf_style_weakref=yes
17751 else
17752 ac_cv_have_elf_style_weakref=no
17753 fi
17754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17755 conftest.$ac_objext conftest.beam conftest.$ac_ext
17756 fi
17757 CFLAGS="$weakref_m4_saved_CFLAGS"
17758 fi
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17760 $as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17761 if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17762
17763 $as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17764
17765 fi
17766
17767 # Cleanup and exit.
17768 CFLAGS="$save_CFLAGS"
17769 cat >confcache <<\_ACEOF
17770 # This file is a shell script that caches the results of configure
17771 # tests run on this system so they can be shared between configure
17772 # scripts and configure runs, see configure's option --config-cache.
17773 # It is not useful on other systems. If it contains results you don't
17774 # want to keep, you may remove or edit it.
17775 #
17776 # config.status only pays attention to the cache file if you give it
17777 # the --recheck option to rerun configure.
17778 #
17779 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17780 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17781 # following values.
17782
17783 _ACEOF
17784
17785 # The following way of writing the cache mishandles newlines in values,
17786 # but we know of no workaround that is simple, portable, and efficient.
17787 # So, we kill variables containing newlines.
17788 # Ultrix sh set writes to stderr and can't be redirected directly,
17789 # and sets the high bit in the cache file unless we assign to the vars.
17790 (
17791 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17792 eval ac_val=\$$ac_var
17793 case $ac_val in #(
17794 *${as_nl}*)
17795 case $ac_var in #(
17796 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17798 esac
17799 case $ac_var in #(
17800 _ | IFS | as_nl) ;; #(
17801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17802 *) { eval $ac_var=; unset $ac_var;} ;;
17803 esac ;;
17804 esac
17805 done
17806
17807 (set) 2>&1 |
17808 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17809 *${as_nl}ac_space=\ *)
17810 # `set' does not quote correctly, so add quotes: double-quote
17811 # substitution turns \\\\ into \\, and sed turns \\ into \.
17812 sed -n \
17813 "s/'/'\\\\''/g;
17814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17815 ;; #(
17816 *)
17817 # `set' quotes correctly as required by POSIX, so do not add quotes.
17818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17819 ;;
17820 esac |
17821 sort
17822 ) |
17823 sed '
17824 /^ac_cv_env_/b end
17825 t clear
17826 :clear
17827 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17828 t end
17829 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17830 :end' >>confcache
17831 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17832 if test -w "$cache_file"; then
17833 if test "x$cache_file" != "x/dev/null"; then
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17835 $as_echo "$as_me: updating cache $cache_file" >&6;}
17836 if test ! -f "$cache_file" || test -h "$cache_file"; then
17837 cat confcache >"$cache_file"
17838 else
17839 case $cache_file in #(
17840 */* | ?:*)
17841 mv -f confcache "$cache_file"$$ &&
17842 mv -f "$cache_file"$$ "$cache_file" ;; #(
17843 *)
17844 mv -f confcache "$cache_file" ;;
17845 esac
17846 fi
17847 fi
17848 else
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17850 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17851 fi
17852 fi
17853 rm -f confcache
17854
17855 # Add -Wall -Werror if we are using GCC.
17856 if test "x$GCC" = "xyes"; then
17857 XCFLAGS="$XCFLAGS -Wall -Werror"
17858 fi
17859
17860 XCFLAGS="$XCFLAGS $XPCFLAGS"
17861
17862 # Add CET specific flags if CET is enabled
17863 # Check whether --enable-cet was given.
17864 if test "${enable_cet+set}" = set; then :
17865 enableval=$enable_cet;
17866 case "$enableval" in
17867 yes|no|auto) ;;
17868 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
17869 esac
17870
17871 else
17872 enable_cet=auto
17873 fi
17874
17875
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
17877 $as_echo_n "checking for CET support... " >&6; }
17878
17879 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
17880 case "$host" in
17881 i[34567]86-*-linux* | x86_64-*-linux*)
17882 case "$enable_cet" in
17883 auto)
17884 # Check if target supports multi-byte NOPs
17885 # and if assembler supports CET insn.
17886 cet_save_CFLAGS="$CFLAGS"
17887 CFLAGS="$CFLAGS -fcf-protection"
17888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17889 /* end confdefs.h. */
17890
17891 int
17892 main ()
17893 {
17894
17895 #if !defined(__SSE2__)
17896 #error target does not support multi-byte NOPs
17897 #else
17898 asm ("setssbsy");
17899 #endif
17900
17901 ;
17902 return 0;
17903 }
17904 _ACEOF
17905 if ac_fn_c_try_compile "$LINENO"; then :
17906 enable_cet=yes
17907 else
17908 enable_cet=no
17909 fi
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911 CFLAGS="$cet_save_CFLAGS"
17912 ;;
17913 yes)
17914 # Check if assembler supports CET.
17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916 /* end confdefs.h. */
17917
17918 int
17919 main ()
17920 {
17921 asm ("setssbsy");
17922 ;
17923 return 0;
17924 }
17925 _ACEOF
17926 if ac_fn_c_try_compile "$LINENO"; then :
17927
17928 else
17929 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
17930 fi
17931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17932 ;;
17933 esac
17934 ;;
17935 *)
17936 enable_cet=no
17937 ;;
17938 esac
17939 if test x$enable_cet = xyes; then
17940 CET_FLAGS="-fcf-protection -mshstk"
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17942 $as_echo "yes" >&6; }
17943 else
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17945 $as_echo "no" >&6; }
17946 fi
17947
17948 XCFLAGS="$XCFLAGS $CET_FLAGS"
17949
17950
17951
17952
17953
17954 if test ${multilib} = yes; then
17955 multilib_arg="--enable-multilib"
17956 else
17957 multilib_arg=
17958 fi
17959
17960 # Set up the set of libraries that we need to link against for libitm.
17961 # Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
17962 # which will force linkage against -lpthread (or equivalent for the system).
17963 # That's not 100% ideal, but about the best we can do easily.
17964 if test $enable_shared = yes; then
17965 link_itm="-litm %{static: $LIBS}"
17966 else
17967 link_itm="-litm $LIBS"
17968 fi
17969
17970
17971 if test "$ARCH" = arm; then
17972 ARCH_ARM_TRUE=
17973 ARCH_ARM_FALSE='#'
17974 else
17975 ARCH_ARM_TRUE='#'
17976 ARCH_ARM_FALSE=
17977 fi
17978
17979 if test "$ARCH" = x86; then
17980 ARCH_X86_TRUE=
17981 ARCH_X86_FALSE='#'
17982 else
17983 ARCH_X86_TRUE='#'
17984 ARCH_X86_FALSE=
17985 fi
17986
17987 if test "$libitm_cv_as_avx" = yes; then
17988 ARCH_X86_AVX_TRUE=
17989 ARCH_X86_AVX_FALSE='#'
17990 else
17991 ARCH_X86_AVX_TRUE='#'
17992 ARCH_X86_AVX_FALSE=
17993 fi
17994
17995 if test $enable_linux_futex = yes; then
17996 ARCH_FUTEX_TRUE=
17997 ARCH_FUTEX_FALSE='#'
17998 else
17999 ARCH_FUTEX_TRUE='#'
18000 ARCH_FUTEX_FALSE=
18001 fi
18002
18003
18004 # Determine what GCC version number to use in filesystem paths.
18005
18006 get_gcc_base_ver="cat"
18007
18008 # Check whether --with-gcc-major-version-only was given.
18009 if test "${with_gcc_major_version_only+set}" = set; then :
18010 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
18011 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
18012 fi
18013
18014 fi
18015
18016
18017
18018
18019 ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
18020
18021 cat >confcache <<\_ACEOF
18022 # This file is a shell script that caches the results of configure
18023 # tests run on this system so they can be shared between configure
18024 # scripts and configure runs, see configure's option --config-cache.
18025 # It is not useful on other systems. If it contains results you don't
18026 # want to keep, you may remove or edit it.
18027 #
18028 # config.status only pays attention to the cache file if you give it
18029 # the --recheck option to rerun configure.
18030 #
18031 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18032 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18033 # following values.
18034
18035 _ACEOF
18036
18037 # The following way of writing the cache mishandles newlines in values,
18038 # but we know of no workaround that is simple, portable, and efficient.
18039 # So, we kill variables containing newlines.
18040 # Ultrix sh set writes to stderr and can't be redirected directly,
18041 # and sets the high bit in the cache file unless we assign to the vars.
18042 (
18043 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18044 eval ac_val=\$$ac_var
18045 case $ac_val in #(
18046 *${as_nl}*)
18047 case $ac_var in #(
18048 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18049 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18050 esac
18051 case $ac_var in #(
18052 _ | IFS | as_nl) ;; #(
18053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18054 *) { eval $ac_var=; unset $ac_var;} ;;
18055 esac ;;
18056 esac
18057 done
18058
18059 (set) 2>&1 |
18060 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18061 *${as_nl}ac_space=\ *)
18062 # `set' does not quote correctly, so add quotes: double-quote
18063 # substitution turns \\\\ into \\, and sed turns \\ into \.
18064 sed -n \
18065 "s/'/'\\\\''/g;
18066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18067 ;; #(
18068 *)
18069 # `set' quotes correctly as required by POSIX, so do not add quotes.
18070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18071 ;;
18072 esac |
18073 sort
18074 ) |
18075 sed '
18076 /^ac_cv_env_/b end
18077 t clear
18078 :clear
18079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18080 t end
18081 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18082 :end' >>confcache
18083 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18084 if test -w "$cache_file"; then
18085 if test "x$cache_file" != "x/dev/null"; then
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18087 $as_echo "$as_me: updating cache $cache_file" >&6;}
18088 if test ! -f "$cache_file" || test -h "$cache_file"; then
18089 cat confcache >"$cache_file"
18090 else
18091 case $cache_file in #(
18092 */* | ?:*)
18093 mv -f confcache "$cache_file"$$ &&
18094 mv -f "$cache_file"$$ "$cache_file" ;; #(
18095 *)
18096 mv -f confcache "$cache_file" ;;
18097 esac
18098 fi
18099 fi
18100 else
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18102 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18103 fi
18104 fi
18105 rm -f confcache
18106
18107 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18108 # Let make expand exec_prefix.
18109 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18110
18111 DEFS=-DHAVE_CONFIG_H
18112
18113 ac_libobjs=
18114 ac_ltlibobjs=
18115 U=
18116 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18117 # 1. Remove the extension, and $U if already installed.
18118 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18119 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18120 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18121 # will be set to the directory where LIBOBJS objects are built.
18122 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18123 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18124 done
18125 LIBOBJS=$ac_libobjs
18126
18127 LTLIBOBJS=$ac_ltlibobjs
18128
18129
18130 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
18131 as_fn_error $? "conditional \"GENINSRC\" was never defined.
18132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18133 fi
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18135 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18136 if test -n "$am_sleep_pid"; then
18137 # Hide warnings about reused PIDs.
18138 wait $am_sleep_pid 2>/dev/null
18139 fi
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18141 $as_echo "done" >&6; }
18142 if test -n "$EXEEXT"; then
18143 am__EXEEXT_TRUE=
18144 am__EXEEXT_FALSE='#'
18145 else
18146 am__EXEEXT_TRUE='#'
18147 am__EXEEXT_FALSE=
18148 fi
18149
18150 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18151 as_fn_error $? "conditional \"AMDEP\" was never defined.
18152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18153 fi
18154 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18155 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18157 fi
18158 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18159 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18161 fi
18162 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
18163 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
18164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18165 fi
18166 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
18167 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
18168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18169 fi
18170 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18171 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18173 fi
18174
18175 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
18176 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
18177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18178 fi
18179 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
18180 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
18181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18182 fi
18183 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
18184 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
18185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18186 fi
18187 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
18188 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
18189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18190 fi
18191 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
18192 as_fn_error $? "conditional \"ARCH_ARM\" was never defined.
18193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18194 fi
18195 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
18196 as_fn_error $? "conditional \"ARCH_X86\" was never defined.
18197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18198 fi
18199 if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
18200 as_fn_error $? "conditional \"ARCH_X86_AVX\" was never defined.
18201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18202 fi
18203 if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
18204 as_fn_error $? "conditional \"ARCH_FUTEX\" was never defined.
18205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18206 fi
18207
18208 : "${CONFIG_STATUS=./config.status}"
18209 ac_write_fail=0
18210 ac_clean_files_save=$ac_clean_files
18211 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18213 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18214 as_write_fail=0
18215 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18216 #! $SHELL
18217 # Generated by $as_me.
18218 # Run this file to recreate the current configuration.
18219 # Compiler output produced by configure, useful for debugging
18220 # configure, is in config.log if it exists.
18221
18222 debug=false
18223 ac_cs_recheck=false
18224 ac_cs_silent=false
18225
18226 SHELL=\${CONFIG_SHELL-$SHELL}
18227 export SHELL
18228 _ASEOF
18229 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18230 ## -------------------- ##
18231 ## M4sh Initialization. ##
18232 ## -------------------- ##
18233
18234 # Be more Bourne compatible
18235 DUALCASE=1; export DUALCASE # for MKS sh
18236 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18237 emulate sh
18238 NULLCMD=:
18239 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18240 # is contrary to our usage. Disable this feature.
18241 alias -g '${1+"$@"}'='"$@"'
18242 setopt NO_GLOB_SUBST
18243 else
18244 case `(set -o) 2>/dev/null` in #(
18245 *posix*) :
18246 set -o posix ;; #(
18247 *) :
18248 ;;
18249 esac
18250 fi
18251
18252
18253 as_nl='
18254 '
18255 export as_nl
18256 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18257 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18258 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18259 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18260 # Prefer a ksh shell builtin over an external printf program on Solaris,
18261 # but without wasting forks for bash or zsh.
18262 if test -z "$BASH_VERSION$ZSH_VERSION" \
18263 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18264 as_echo='print -r --'
18265 as_echo_n='print -rn --'
18266 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18267 as_echo='printf %s\n'
18268 as_echo_n='printf %s'
18269 else
18270 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18271 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18272 as_echo_n='/usr/ucb/echo -n'
18273 else
18274 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18275 as_echo_n_body='eval
18276 arg=$1;
18277 case $arg in #(
18278 *"$as_nl"*)
18279 expr "X$arg" : "X\\(.*\\)$as_nl";
18280 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18281 esac;
18282 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18283 '
18284 export as_echo_n_body
18285 as_echo_n='sh -c $as_echo_n_body as_echo'
18286 fi
18287 export as_echo_body
18288 as_echo='sh -c $as_echo_body as_echo'
18289 fi
18290
18291 # The user is always right.
18292 if test "${PATH_SEPARATOR+set}" != set; then
18293 PATH_SEPARATOR=:
18294 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18295 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18296 PATH_SEPARATOR=';'
18297 }
18298 fi
18299
18300
18301 # IFS
18302 # We need space, tab and new line, in precisely that order. Quoting is
18303 # there to prevent editors from complaining about space-tab.
18304 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18305 # splitting by setting IFS to empty value.)
18306 IFS=" "" $as_nl"
18307
18308 # Find who we are. Look in the path if we contain no directory separator.
18309 as_myself=
18310 case $0 in #((
18311 *[\\/]* ) as_myself=$0 ;;
18312 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18313 for as_dir in $PATH
18314 do
18315 IFS=$as_save_IFS
18316 test -z "$as_dir" && as_dir=.
18317 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18318 done
18319 IFS=$as_save_IFS
18320
18321 ;;
18322 esac
18323 # We did not find ourselves, most probably we were run as `sh COMMAND'
18324 # in which case we are not to be found in the path.
18325 if test "x$as_myself" = x; then
18326 as_myself=$0
18327 fi
18328 if test ! -f "$as_myself"; then
18329 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18330 exit 1
18331 fi
18332
18333 # Unset variables that we do not need and which cause bugs (e.g. in
18334 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18335 # suppresses any "Segmentation fault" message there. '((' could
18336 # trigger a bug in pdksh 5.2.14.
18337 for as_var in BASH_ENV ENV MAIL MAILPATH
18338 do eval test x\${$as_var+set} = xset \
18339 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18340 done
18341 PS1='$ '
18342 PS2='> '
18343 PS4='+ '
18344
18345 # NLS nuisances.
18346 LC_ALL=C
18347 export LC_ALL
18348 LANGUAGE=C
18349 export LANGUAGE
18350
18351 # CDPATH.
18352 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18353
18354
18355 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18356 # ----------------------------------------
18357 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18358 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18359 # script with STATUS, using 1 if that was 0.
18360 as_fn_error ()
18361 {
18362 as_status=$1; test $as_status -eq 0 && as_status=1
18363 if test "$4"; then
18364 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18365 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18366 fi
18367 $as_echo "$as_me: error: $2" >&2
18368 as_fn_exit $as_status
18369 } # as_fn_error
18370
18371
18372 # as_fn_set_status STATUS
18373 # -----------------------
18374 # Set $? to STATUS, without forking.
18375 as_fn_set_status ()
18376 {
18377 return $1
18378 } # as_fn_set_status
18379
18380 # as_fn_exit STATUS
18381 # -----------------
18382 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18383 as_fn_exit ()
18384 {
18385 set +e
18386 as_fn_set_status $1
18387 exit $1
18388 } # as_fn_exit
18389
18390 # as_fn_unset VAR
18391 # ---------------
18392 # Portably unset VAR.
18393 as_fn_unset ()
18394 {
18395 { eval $1=; unset $1;}
18396 }
18397 as_unset=as_fn_unset
18398 # as_fn_append VAR VALUE
18399 # ----------------------
18400 # Append the text in VALUE to the end of the definition contained in VAR. Take
18401 # advantage of any shell optimizations that allow amortized linear growth over
18402 # repeated appends, instead of the typical quadratic growth present in naive
18403 # implementations.
18404 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18405 eval 'as_fn_append ()
18406 {
18407 eval $1+=\$2
18408 }'
18409 else
18410 as_fn_append ()
18411 {
18412 eval $1=\$$1\$2
18413 }
18414 fi # as_fn_append
18415
18416 # as_fn_arith ARG...
18417 # ------------------
18418 # Perform arithmetic evaluation on the ARGs, and store the result in the
18419 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18420 # must be portable across $(()) and expr.
18421 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18422 eval 'as_fn_arith ()
18423 {
18424 as_val=$(( $* ))
18425 }'
18426 else
18427 as_fn_arith ()
18428 {
18429 as_val=`expr "$@" || test $? -eq 1`
18430 }
18431 fi # as_fn_arith
18432
18433
18434 if expr a : '\(a\)' >/dev/null 2>&1 &&
18435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18436 as_expr=expr
18437 else
18438 as_expr=false
18439 fi
18440
18441 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18442 as_basename=basename
18443 else
18444 as_basename=false
18445 fi
18446
18447 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18448 as_dirname=dirname
18449 else
18450 as_dirname=false
18451 fi
18452
18453 as_me=`$as_basename -- "$0" ||
18454 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18455 X"$0" : 'X\(//\)$' \| \
18456 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18457 $as_echo X/"$0" |
18458 sed '/^.*\/\([^/][^/]*\)\/*$/{
18459 s//\1/
18460 q
18461 }
18462 /^X\/\(\/\/\)$/{
18463 s//\1/
18464 q
18465 }
18466 /^X\/\(\/\).*/{
18467 s//\1/
18468 q
18469 }
18470 s/.*/./; q'`
18471
18472 # Avoid depending upon Character Ranges.
18473 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18474 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18475 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18476 as_cr_digits='0123456789'
18477 as_cr_alnum=$as_cr_Letters$as_cr_digits
18478
18479 ECHO_C= ECHO_N= ECHO_T=
18480 case `echo -n x` in #(((((
18481 -n*)
18482 case `echo 'xy\c'` in
18483 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18484 xy) ECHO_C='\c';;
18485 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18486 ECHO_T=' ';;
18487 esac;;
18488 *)
18489 ECHO_N='-n';;
18490 esac
18491
18492 rm -f conf$$ conf$$.exe conf$$.file
18493 if test -d conf$$.dir; then
18494 rm -f conf$$.dir/conf$$.file
18495 else
18496 rm -f conf$$.dir
18497 mkdir conf$$.dir 2>/dev/null
18498 fi
18499 if (echo >conf$$.file) 2>/dev/null; then
18500 if ln -s conf$$.file conf$$ 2>/dev/null; then
18501 as_ln_s='ln -s'
18502 # ... but there are two gotchas:
18503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18505 # In both cases, we have to default to `cp -pR'.
18506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18507 as_ln_s='cp -pR'
18508 elif ln conf$$.file conf$$ 2>/dev/null; then
18509 as_ln_s=ln
18510 else
18511 as_ln_s='cp -pR'
18512 fi
18513 else
18514 as_ln_s='cp -pR'
18515 fi
18516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18517 rmdir conf$$.dir 2>/dev/null
18518
18519
18520 # as_fn_mkdir_p
18521 # -------------
18522 # Create "$as_dir" as a directory, including parents if necessary.
18523 as_fn_mkdir_p ()
18524 {
18525
18526 case $as_dir in #(
18527 -*) as_dir=./$as_dir;;
18528 esac
18529 test -d "$as_dir" || eval $as_mkdir_p || {
18530 as_dirs=
18531 while :; do
18532 case $as_dir in #(
18533 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18534 *) as_qdir=$as_dir;;
18535 esac
18536 as_dirs="'$as_qdir' $as_dirs"
18537 as_dir=`$as_dirname -- "$as_dir" ||
18538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18539 X"$as_dir" : 'X\(//\)[^/]' \| \
18540 X"$as_dir" : 'X\(//\)$' \| \
18541 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18542 $as_echo X"$as_dir" |
18543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18544 s//\1/
18545 q
18546 }
18547 /^X\(\/\/\)[^/].*/{
18548 s//\1/
18549 q
18550 }
18551 /^X\(\/\/\)$/{
18552 s//\1/
18553 q
18554 }
18555 /^X\(\/\).*/{
18556 s//\1/
18557 q
18558 }
18559 s/.*/./; q'`
18560 test -d "$as_dir" && break
18561 done
18562 test -z "$as_dirs" || eval "mkdir $as_dirs"
18563 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18564
18565
18566 } # as_fn_mkdir_p
18567 if mkdir -p . 2>/dev/null; then
18568 as_mkdir_p='mkdir -p "$as_dir"'
18569 else
18570 test -d ./-p && rmdir ./-p
18571 as_mkdir_p=false
18572 fi
18573
18574
18575 # as_fn_executable_p FILE
18576 # -----------------------
18577 # Test if FILE is an executable regular file.
18578 as_fn_executable_p ()
18579 {
18580 test -f "$1" && test -x "$1"
18581 } # as_fn_executable_p
18582 as_test_x='test -x'
18583 as_executable_p=as_fn_executable_p
18584
18585 # Sed expression to map a string onto a valid CPP name.
18586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18587
18588 # Sed expression to map a string onto a valid variable name.
18589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18590
18591
18592 exec 6>&1
18593 ## ----------------------------------- ##
18594 ## Main body of $CONFIG_STATUS script. ##
18595 ## ----------------------------------- ##
18596 _ASEOF
18597 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18598
18599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18600 # Save the log message, to keep $0 and so on meaningful, and to
18601 # report actual input values of CONFIG_FILES etc. instead of their
18602 # values after options handling.
18603 ac_log="
18604 This file was extended by GNU TM Runtime Library $as_me 1.0, which was
18605 generated by GNU Autoconf 2.69. Invocation command line was
18606
18607 CONFIG_FILES = $CONFIG_FILES
18608 CONFIG_HEADERS = $CONFIG_HEADERS
18609 CONFIG_LINKS = $CONFIG_LINKS
18610 CONFIG_COMMANDS = $CONFIG_COMMANDS
18611 $ $0 $@
18612
18613 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18614 "
18615
18616 _ACEOF
18617
18618 case $ac_config_files in *"
18619 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18620 esac
18621
18622 case $ac_config_headers in *"
18623 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18624 esac
18625
18626
18627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18628 # Files that config.status was made for.
18629 config_files="$ac_config_files"
18630 config_headers="$ac_config_headers"
18631 config_commands="$ac_config_commands"
18632
18633 _ACEOF
18634
18635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18636 ac_cs_usage="\
18637 \`$as_me' instantiates files and other configuration actions
18638 from templates according to the current configuration. Unless the files
18639 and actions are specified as TAGs, all are instantiated by default.
18640
18641 Usage: $0 [OPTION]... [TAG]...
18642
18643 -h, --help print this help, then exit
18644 -V, --version print version number and configuration settings, then exit
18645 --config print configuration, then exit
18646 -q, --quiet, --silent
18647 do not print progress messages
18648 -d, --debug don't remove temporary files
18649 --recheck update $as_me by reconfiguring in the same conditions
18650 --file=FILE[:TEMPLATE]
18651 instantiate the configuration file FILE
18652 --header=FILE[:TEMPLATE]
18653 instantiate the configuration header FILE
18654
18655 Configuration files:
18656 $config_files
18657
18658 Configuration headers:
18659 $config_headers
18660
18661 Configuration commands:
18662 $config_commands
18663
18664 Report bugs to the package provider.
18665 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18666 General help using GNU software: <http://www.gnu.org/gethelp/>."
18667
18668 _ACEOF
18669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18670 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18671 ac_cs_version="\\
18672 GNU TM Runtime Library config.status 1.0
18673 configured by $0, generated by GNU Autoconf 2.69,
18674 with options \\"\$ac_cs_config\\"
18675
18676 Copyright (C) 2012 Free Software Foundation, Inc.
18677 This config.status script is free software; the Free Software Foundation
18678 gives unlimited permission to copy, distribute and modify it."
18679
18680 ac_pwd='$ac_pwd'
18681 srcdir='$srcdir'
18682 INSTALL='$INSTALL'
18683 MKDIR_P='$MKDIR_P'
18684 AWK='$AWK'
18685 test -n "\$AWK" || AWK=awk
18686 _ACEOF
18687
18688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18689 # The default lists apply if the user does not specify any file.
18690 ac_need_defaults=:
18691 while test $# != 0
18692 do
18693 case $1 in
18694 --*=?*)
18695 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18696 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18697 ac_shift=:
18698 ;;
18699 --*=)
18700 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18701 ac_optarg=
18702 ac_shift=:
18703 ;;
18704 *)
18705 ac_option=$1
18706 ac_optarg=$2
18707 ac_shift=shift
18708 ;;
18709 esac
18710
18711 case $ac_option in
18712 # Handling of the options.
18713 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18714 ac_cs_recheck=: ;;
18715 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18716 $as_echo "$ac_cs_version"; exit ;;
18717 --config | --confi | --conf | --con | --co | --c )
18718 $as_echo "$ac_cs_config"; exit ;;
18719 --debug | --debu | --deb | --de | --d | -d )
18720 debug=: ;;
18721 --file | --fil | --fi | --f )
18722 $ac_shift
18723 case $ac_optarg in
18724 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18725 '') as_fn_error $? "missing file argument" ;;
18726 esac
18727 as_fn_append CONFIG_FILES " '$ac_optarg'"
18728 ac_need_defaults=false;;
18729 --header | --heade | --head | --hea )
18730 $ac_shift
18731 case $ac_optarg in
18732 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18733 esac
18734 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18735 ac_need_defaults=false;;
18736 --he | --h)
18737 # Conflict between --help and --header
18738 as_fn_error $? "ambiguous option: \`$1'
18739 Try \`$0 --help' for more information.";;
18740 --help | --hel | -h )
18741 $as_echo "$ac_cs_usage"; exit ;;
18742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18743 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18744 ac_cs_silent=: ;;
18745
18746 # This is an error.
18747 -*) as_fn_error $? "unrecognized option: \`$1'
18748 Try \`$0 --help' for more information." ;;
18749
18750 *) as_fn_append ac_config_targets " $1"
18751 ac_need_defaults=false ;;
18752
18753 esac
18754 shift
18755 done
18756
18757 ac_configure_extra_args=
18758
18759 if $ac_cs_silent; then
18760 exec 6>/dev/null
18761 ac_configure_extra_args="$ac_configure_extra_args --silent"
18762 fi
18763
18764 _ACEOF
18765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18766 if \$ac_cs_recheck; then
18767 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18768 shift
18769 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18770 CONFIG_SHELL='$SHELL'
18771 export CONFIG_SHELL
18772 exec "\$@"
18773 fi
18774
18775 _ACEOF
18776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18777 exec 5>>config.log
18778 {
18779 echo
18780 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18781 ## Running $as_me. ##
18782 _ASBOX
18783 $as_echo "$ac_log"
18784 } >&5
18785
18786 _ACEOF
18787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18788 #
18789 # INIT-COMMANDS
18790 #
18791
18792 srcdir="$srcdir"
18793 host="$host"
18794 target="$target"
18795 with_multisubdir="$with_multisubdir"
18796 with_multisrctop="$with_multisrctop"
18797 with_target_subdir="$with_target_subdir"
18798 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18799 multi_basedir="$multi_basedir"
18800 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18801 CC="$CC"
18802 CXX="$CXX"
18803 GFORTRAN="$GFORTRAN"
18804 GDC="$GDC"
18805 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18806
18807
18808 # The HP-UX ksh and POSIX shell print the target directory to stdout
18809 # if CDPATH is set.
18810 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18811
18812 sed_quote_subst='$sed_quote_subst'
18813 double_quote_subst='$double_quote_subst'
18814 delay_variable_subst='$delay_variable_subst'
18815 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18816 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18817 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18818 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18819 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18820 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18821 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18822 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18823 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18824 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18825 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18826 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18827 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18828 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18829 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18830 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18831 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18832 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18833 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18834 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18835 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18836 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18837 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18838 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18839 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18840 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18841 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18842 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18843 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18844 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18845 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18846 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18847 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18848 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18849 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18850 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18851 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18852 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18853 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18854 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18855 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18856 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18857 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18858 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18859 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18860 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18861 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18862 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18863 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"`'
18864 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18865 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18866 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18867 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18868 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18869 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18870 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18871 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18872 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18873 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18874 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18875 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18876 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18877 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18878 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18879 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18880 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18881 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18882 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18883 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18884 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18885 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18886 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18887 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18888 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18889 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18890 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18891 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18892 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18893 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18894 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18895 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18896 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18897 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18898 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18899 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18900 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18901 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18902 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18903 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18904 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18905 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18906 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18907 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18908 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18909 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18910 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18911 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18912 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18913 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18914 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18915 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18916 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18917 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18918 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18919 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18920 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18921 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18922 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18923 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18924 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18925 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18926 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18927 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18928 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18929 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18930 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18931 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18932 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18933 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18934 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18935 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18936 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18937 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18938 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18939 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18940 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18941 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18942 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18943 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18944 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18945 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18946 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18947 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18948 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18949 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18950 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18951 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18952 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18953 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18954 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18955 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18956 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18957 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18958 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18959 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18960 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18961 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18962 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18963 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18964 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18965 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18966 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18967 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18968 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18969 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18970 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18971 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18972 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18973 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18974 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18975 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18976 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18977 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18978 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18979 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18980 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18981 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18982 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18983 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18984 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18985 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18986 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18987 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18988 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18989 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18990
18991 LTCC='$LTCC'
18992 LTCFLAGS='$LTCFLAGS'
18993 compiler='$compiler_DEFAULT'
18994
18995 # A function that is used when there is no print builtin or printf.
18996 func_fallback_echo ()
18997 {
18998 eval 'cat <<_LTECHO_EOF
18999 \$1
19000 _LTECHO_EOF'
19001 }
19002
19003 # Quote evaled strings.
19004 for var in SHELL \
19005 ECHO \
19006 SED \
19007 GREP \
19008 EGREP \
19009 FGREP \
19010 LD \
19011 NM \
19012 LN_S \
19013 lt_SP2NL \
19014 lt_NL2SP \
19015 reload_flag \
19016 OBJDUMP \
19017 deplibs_check_method \
19018 file_magic_cmd \
19019 AR \
19020 AR_FLAGS \
19021 STRIP \
19022 RANLIB \
19023 CC \
19024 CFLAGS \
19025 compiler \
19026 lt_cv_sys_global_symbol_pipe \
19027 lt_cv_sys_global_symbol_to_cdecl \
19028 lt_cv_sys_global_symbol_to_c_name_address \
19029 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19030 lt_prog_compiler_no_builtin_flag \
19031 lt_prog_compiler_wl \
19032 lt_prog_compiler_pic \
19033 lt_prog_compiler_static \
19034 lt_cv_prog_compiler_c_o \
19035 need_locks \
19036 DSYMUTIL \
19037 NMEDIT \
19038 LIPO \
19039 OTOOL \
19040 OTOOL64 \
19041 shrext_cmds \
19042 export_dynamic_flag_spec \
19043 whole_archive_flag_spec \
19044 compiler_needs_object \
19045 with_gnu_ld \
19046 allow_undefined_flag \
19047 no_undefined_flag \
19048 hardcode_libdir_flag_spec \
19049 hardcode_libdir_flag_spec_ld \
19050 hardcode_libdir_separator \
19051 fix_srcfile_path \
19052 exclude_expsyms \
19053 include_expsyms \
19054 file_list_spec \
19055 variables_saved_for_relink \
19056 libname_spec \
19057 library_names_spec \
19058 soname_spec \
19059 install_override_mode \
19060 finish_eval \
19061 old_striplib \
19062 striplib \
19063 compiler_lib_search_dirs \
19064 predep_objects \
19065 postdep_objects \
19066 predeps \
19067 postdeps \
19068 compiler_lib_search_path \
19069 LD_CXX \
19070 reload_flag_CXX \
19071 compiler_CXX \
19072 lt_prog_compiler_no_builtin_flag_CXX \
19073 lt_prog_compiler_wl_CXX \
19074 lt_prog_compiler_pic_CXX \
19075 lt_prog_compiler_static_CXX \
19076 lt_cv_prog_compiler_c_o_CXX \
19077 export_dynamic_flag_spec_CXX \
19078 whole_archive_flag_spec_CXX \
19079 compiler_needs_object_CXX \
19080 with_gnu_ld_CXX \
19081 allow_undefined_flag_CXX \
19082 no_undefined_flag_CXX \
19083 hardcode_libdir_flag_spec_CXX \
19084 hardcode_libdir_flag_spec_ld_CXX \
19085 hardcode_libdir_separator_CXX \
19086 fix_srcfile_path_CXX \
19087 exclude_expsyms_CXX \
19088 include_expsyms_CXX \
19089 file_list_spec_CXX \
19090 compiler_lib_search_dirs_CXX \
19091 predep_objects_CXX \
19092 postdep_objects_CXX \
19093 predeps_CXX \
19094 postdeps_CXX \
19095 compiler_lib_search_path_CXX; do
19096 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19097 *[\\\\\\\`\\"\\\$]*)
19098 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19099 ;;
19100 *)
19101 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19102 ;;
19103 esac
19104 done
19105
19106 # Double-quote double-evaled strings.
19107 for var in reload_cmds \
19108 old_postinstall_cmds \
19109 old_postuninstall_cmds \
19110 old_archive_cmds \
19111 extract_expsyms_cmds \
19112 old_archive_from_new_cmds \
19113 old_archive_from_expsyms_cmds \
19114 archive_cmds \
19115 archive_expsym_cmds \
19116 module_cmds \
19117 module_expsym_cmds \
19118 export_symbols_cmds \
19119 prelink_cmds \
19120 postinstall_cmds \
19121 postuninstall_cmds \
19122 finish_cmds \
19123 sys_lib_search_path_spec \
19124 sys_lib_dlsearch_path_spec \
19125 reload_cmds_CXX \
19126 old_archive_cmds_CXX \
19127 old_archive_from_new_cmds_CXX \
19128 old_archive_from_expsyms_cmds_CXX \
19129 archive_cmds_CXX \
19130 archive_expsym_cmds_CXX \
19131 module_cmds_CXX \
19132 module_expsym_cmds_CXX \
19133 export_symbols_cmds_CXX \
19134 prelink_cmds_CXX; do
19135 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19136 *[\\\\\\\`\\"\\\$]*)
19137 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19138 ;;
19139 *)
19140 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19141 ;;
19142 esac
19143 done
19144
19145 ac_aux_dir='$ac_aux_dir'
19146 xsi_shell='$xsi_shell'
19147 lt_shell_append='$lt_shell_append'
19148
19149 # See if we are running on zsh, and set the options which allow our
19150 # commands through without removal of \ escapes INIT.
19151 if test -n "\${ZSH_VERSION+set}" ; then
19152 setopt NO_GLOB_SUBST
19153 fi
19154
19155
19156 PACKAGE='$PACKAGE'
19157 VERSION='$VERSION'
19158 TIMESTAMP='$TIMESTAMP'
19159 RM='$RM'
19160 ofile='$ofile'
19161
19162
19163
19164
19165
19166
19167 GCC="$GCC"
19168 CC="$CC"
19169 acx_cv_header_stdint="$acx_cv_header_stdint"
19170 acx_cv_type_int8_t="$acx_cv_type_int8_t"
19171 acx_cv_type_int16_t="$acx_cv_type_int16_t"
19172 acx_cv_type_int32_t="$acx_cv_type_int32_t"
19173 acx_cv_type_int64_t="$acx_cv_type_int64_t"
19174 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
19175 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
19176 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
19177 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19178 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19179 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
19180 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19181 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19182 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
19183
19184
19185 _ACEOF
19186
19187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19188
19189 # Handling of arguments.
19190 for ac_config_target in $ac_config_targets
19191 do
19192 case $ac_config_target in
19193 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19194 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19195 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19196 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19197 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
19198 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19199 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
19200 "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
19201
19202 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19203 esac
19204 done
19205
19206
19207 # If the user did not use the arguments to specify the items to instantiate,
19208 # then the envvar interface is used. Set only those that are not.
19209 # We use the long form for the default assignment because of an extremely
19210 # bizarre bug on SunOS 4.1.3.
19211 if $ac_need_defaults; then
19212 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19213 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19214 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19215 fi
19216
19217 # Have a temporary directory for convenience. Make it in the build tree
19218 # simply because there is no reason against having it here, and in addition,
19219 # creating and moving files from /tmp can sometimes cause problems.
19220 # Hook for its removal unless debugging.
19221 # Note that there is a small window in which the directory will not be cleaned:
19222 # after its creation but before its name has been assigned to `$tmp'.
19223 $debug ||
19224 {
19225 tmp= ac_tmp=
19226 trap 'exit_status=$?
19227 : "${ac_tmp:=$tmp}"
19228 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19229 ' 0
19230 trap 'as_fn_exit 1' 1 2 13 15
19231 }
19232 # Create a (secure) tmp directory for tmp files.
19233
19234 {
19235 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19236 test -d "$tmp"
19237 } ||
19238 {
19239 tmp=./conf$$-$RANDOM
19240 (umask 077 && mkdir "$tmp")
19241 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19242 ac_tmp=$tmp
19243
19244 # Set up the scripts for CONFIG_FILES section.
19245 # No need to generate them if there are no CONFIG_FILES.
19246 # This happens for instance with `./config.status config.h'.
19247 if test -n "$CONFIG_FILES"; then
19248
19249
19250 ac_cr=`echo X | tr X '\015'`
19251 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19252 # But we know of no other shell where ac_cr would be empty at this
19253 # point, so we can use a bashism as a fallback.
19254 if test "x$ac_cr" = x; then
19255 eval ac_cr=\$\'\\r\'
19256 fi
19257 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19258 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19259 ac_cs_awk_cr='\\r'
19260 else
19261 ac_cs_awk_cr=$ac_cr
19262 fi
19263
19264 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19265 _ACEOF
19266
19267
19268 {
19269 echo "cat >conf$$subs.awk <<_ACEOF" &&
19270 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19271 echo "_ACEOF"
19272 } >conf$$subs.sh ||
19273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19274 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19275 ac_delim='%!_!# '
19276 for ac_last_try in false false false false false :; do
19277 . ./conf$$subs.sh ||
19278 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19279
19280 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19281 if test $ac_delim_n = $ac_delim_num; then
19282 break
19283 elif $ac_last_try; then
19284 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19285 else
19286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19287 fi
19288 done
19289 rm -f conf$$subs.sh
19290
19291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19292 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19293 _ACEOF
19294 sed -n '
19295 h
19296 s/^/S["/; s/!.*/"]=/
19297 p
19298 g
19299 s/^[^!]*!//
19300 :repl
19301 t repl
19302 s/'"$ac_delim"'$//
19303 t delim
19304 :nl
19305 h
19306 s/\(.\{148\}\)..*/\1/
19307 t more1
19308 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19309 p
19310 n
19311 b repl
19312 :more1
19313 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19314 p
19315 g
19316 s/.\{148\}//
19317 t nl
19318 :delim
19319 h
19320 s/\(.\{148\}\)..*/\1/
19321 t more2
19322 s/["\\]/\\&/g; s/^/"/; s/$/"/
19323 p
19324 b
19325 :more2
19326 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19327 p
19328 g
19329 s/.\{148\}//
19330 t delim
19331 ' <conf$$subs.awk | sed '
19332 /^[^""]/{
19333 N
19334 s/\n//
19335 }
19336 ' >>$CONFIG_STATUS || ac_write_fail=1
19337 rm -f conf$$subs.awk
19338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19339 _ACAWK
19340 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19341 for (key in S) S_is_set[key] = 1
19342 FS = "\a"
19343
19344 }
19345 {
19346 line = $ 0
19347 nfields = split(line, field, "@")
19348 substed = 0
19349 len = length(field[1])
19350 for (i = 2; i < nfields; i++) {
19351 key = field[i]
19352 keylen = length(key)
19353 if (S_is_set[key]) {
19354 value = S[key]
19355 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19356 len += length(value) + length(field[++i])
19357 substed = 1
19358 } else
19359 len += 1 + keylen
19360 }
19361
19362 print line
19363 }
19364
19365 _ACAWK
19366 _ACEOF
19367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19368 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19369 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19370 else
19371 cat
19372 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19373 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19374 _ACEOF
19375
19376 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19377 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19378 # trailing colons and then remove the whole line if VPATH becomes empty
19379 # (actually we leave an empty line to preserve line numbers).
19380 if test "x$srcdir" = x.; then
19381 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19382 h
19383 s///
19384 s/^/:/
19385 s/[ ]*$/:/
19386 s/:\$(srcdir):/:/g
19387 s/:\${srcdir}:/:/g
19388 s/:@srcdir@:/:/g
19389 s/^:*//
19390 s/:*$//
19391 x
19392 s/\(=[ ]*\).*/\1/
19393 G
19394 s/\n//
19395 s/^[^=]*=[ ]*$//
19396 }'
19397 fi
19398
19399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19400 fi # test -n "$CONFIG_FILES"
19401
19402 # Set up the scripts for CONFIG_HEADERS section.
19403 # No need to generate them if there are no CONFIG_HEADERS.
19404 # This happens for instance with `./config.status Makefile'.
19405 if test -n "$CONFIG_HEADERS"; then
19406 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19407 BEGIN {
19408 _ACEOF
19409
19410 # Transform confdefs.h into an awk script `defines.awk', embedded as
19411 # here-document in config.status, that substitutes the proper values into
19412 # config.h.in to produce config.h.
19413
19414 # Create a delimiter string that does not exist in confdefs.h, to ease
19415 # handling of long lines.
19416 ac_delim='%!_!# '
19417 for ac_last_try in false false :; do
19418 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19419 if test -z "$ac_tt"; then
19420 break
19421 elif $ac_last_try; then
19422 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19423 else
19424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19425 fi
19426 done
19427
19428 # For the awk script, D is an array of macro values keyed by name,
19429 # likewise P contains macro parameters if any. Preserve backslash
19430 # newline sequences.
19431
19432 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19433 sed -n '
19434 s/.\{148\}/&'"$ac_delim"'/g
19435 t rset
19436 :rset
19437 s/^[ ]*#[ ]*define[ ][ ]*/ /
19438 t def
19439 d
19440 :def
19441 s/\\$//
19442 t bsnl
19443 s/["\\]/\\&/g
19444 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19445 D["\1"]=" \3"/p
19446 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19447 d
19448 :bsnl
19449 s/["\\]/\\&/g
19450 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19451 D["\1"]=" \3\\\\\\n"\\/p
19452 t cont
19453 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19454 t cont
19455 d
19456 :cont
19457 n
19458 s/.\{148\}/&'"$ac_delim"'/g
19459 t clear
19460 :clear
19461 s/\\$//
19462 t bsnlc
19463 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19464 d
19465 :bsnlc
19466 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19467 b cont
19468 ' <confdefs.h | sed '
19469 s/'"$ac_delim"'/"\\\
19470 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19471
19472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19473 for (key in D) D_is_set[key] = 1
19474 FS = "\a"
19475 }
19476 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19477 line = \$ 0
19478 split(line, arg, " ")
19479 if (arg[1] == "#") {
19480 defundef = arg[2]
19481 mac1 = arg[3]
19482 } else {
19483 defundef = substr(arg[1], 2)
19484 mac1 = arg[2]
19485 }
19486 split(mac1, mac2, "(") #)
19487 macro = mac2[1]
19488 prefix = substr(line, 1, index(line, defundef) - 1)
19489 if (D_is_set[macro]) {
19490 # Preserve the white space surrounding the "#".
19491 print prefix "define", macro P[macro] D[macro]
19492 next
19493 } else {
19494 # Replace #undef with comments. This is necessary, for example,
19495 # in the case of _POSIX_SOURCE, which is predefined and required
19496 # on some systems where configure will not decide to define it.
19497 if (defundef == "undef") {
19498 print "/*", prefix defundef, macro, "*/"
19499 next
19500 }
19501 }
19502 }
19503 { print }
19504 _ACAWK
19505 _ACEOF
19506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19507 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19508 fi # test -n "$CONFIG_HEADERS"
19509
19510
19511 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19512 shift
19513 for ac_tag
19514 do
19515 case $ac_tag in
19516 :[FHLC]) ac_mode=$ac_tag; continue;;
19517 esac
19518 case $ac_mode$ac_tag in
19519 :[FHL]*:*);;
19520 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19521 :[FH]-) ac_tag=-:-;;
19522 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19523 esac
19524 ac_save_IFS=$IFS
19525 IFS=:
19526 set x $ac_tag
19527 IFS=$ac_save_IFS
19528 shift
19529 ac_file=$1
19530 shift
19531
19532 case $ac_mode in
19533 :L) ac_source=$1;;
19534 :[FH])
19535 ac_file_inputs=
19536 for ac_f
19537 do
19538 case $ac_f in
19539 -) ac_f="$ac_tmp/stdin";;
19540 *) # Look for the file first in the build tree, then in the source tree
19541 # (if the path is not absolute). The absolute path cannot be DOS-style,
19542 # because $ac_f cannot contain `:'.
19543 test -f "$ac_f" ||
19544 case $ac_f in
19545 [\\/$]*) false;;
19546 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19547 esac ||
19548 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19549 esac
19550 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19551 as_fn_append ac_file_inputs " '$ac_f'"
19552 done
19553
19554 # Let's still pretend it is `configure' which instantiates (i.e., don't
19555 # use $as_me), people would be surprised to read:
19556 # /* config.h. Generated by config.status. */
19557 configure_input='Generated from '`
19558 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19559 `' by configure.'
19560 if test x"$ac_file" != x-; then
19561 configure_input="$ac_file. $configure_input"
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19563 $as_echo "$as_me: creating $ac_file" >&6;}
19564 fi
19565 # Neutralize special characters interpreted by sed in replacement strings.
19566 case $configure_input in #(
19567 *\&* | *\|* | *\\* )
19568 ac_sed_conf_input=`$as_echo "$configure_input" |
19569 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19570 *) ac_sed_conf_input=$configure_input;;
19571 esac
19572
19573 case $ac_tag in
19574 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19575 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19576 esac
19577 ;;
19578 esac
19579
19580 ac_dir=`$as_dirname -- "$ac_file" ||
19581 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19582 X"$ac_file" : 'X\(//\)[^/]' \| \
19583 X"$ac_file" : 'X\(//\)$' \| \
19584 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19585 $as_echo X"$ac_file" |
19586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19587 s//\1/
19588 q
19589 }
19590 /^X\(\/\/\)[^/].*/{
19591 s//\1/
19592 q
19593 }
19594 /^X\(\/\/\)$/{
19595 s//\1/
19596 q
19597 }
19598 /^X\(\/\).*/{
19599 s//\1/
19600 q
19601 }
19602 s/.*/./; q'`
19603 as_dir="$ac_dir"; as_fn_mkdir_p
19604 ac_builddir=.
19605
19606 case "$ac_dir" in
19607 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19608 *)
19609 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19610 # A ".." for each directory in $ac_dir_suffix.
19611 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19612 case $ac_top_builddir_sub in
19613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19615 esac ;;
19616 esac
19617 ac_abs_top_builddir=$ac_pwd
19618 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19619 # for backward compatibility:
19620 ac_top_builddir=$ac_top_build_prefix
19621
19622 case $srcdir in
19623 .) # We are building in place.
19624 ac_srcdir=.
19625 ac_top_srcdir=$ac_top_builddir_sub
19626 ac_abs_top_srcdir=$ac_pwd ;;
19627 [\\/]* | ?:[\\/]* ) # Absolute name.
19628 ac_srcdir=$srcdir$ac_dir_suffix;
19629 ac_top_srcdir=$srcdir
19630 ac_abs_top_srcdir=$srcdir ;;
19631 *) # Relative name.
19632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19633 ac_top_srcdir=$ac_top_build_prefix$srcdir
19634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19635 esac
19636 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19637
19638
19639 case $ac_mode in
19640 :F)
19641 #
19642 # CONFIG_FILE
19643 #
19644
19645 case $INSTALL in
19646 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19647 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19648 esac
19649 ac_MKDIR_P=$MKDIR_P
19650 case $MKDIR_P in
19651 [\\/$]* | ?:[\\/]* ) ;;
19652 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19653 esac
19654 _ACEOF
19655
19656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19657 # If the template does not know about datarootdir, expand it.
19658 # FIXME: This hack should be removed a few years after 2.60.
19659 ac_datarootdir_hack=; ac_datarootdir_seen=
19660 ac_sed_dataroot='
19661 /datarootdir/ {
19662 p
19663 q
19664 }
19665 /@datadir@/p
19666 /@docdir@/p
19667 /@infodir@/p
19668 /@localedir@/p
19669 /@mandir@/p'
19670 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19671 *datarootdir*) ac_datarootdir_seen=yes;;
19672 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19674 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19675 _ACEOF
19676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19677 ac_datarootdir_hack='
19678 s&@datadir@&$datadir&g
19679 s&@docdir@&$docdir&g
19680 s&@infodir@&$infodir&g
19681 s&@localedir@&$localedir&g
19682 s&@mandir@&$mandir&g
19683 s&\\\${datarootdir}&$datarootdir&g' ;;
19684 esac
19685 _ACEOF
19686
19687 # Neutralize VPATH when `$srcdir' = `.'.
19688 # Shell code in configure.ac might set extrasub.
19689 # FIXME: do we really want to maintain this feature?
19690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19691 ac_sed_extra="$ac_vpsub
19692 $extrasub
19693 _ACEOF
19694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19695 :t
19696 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19697 s|@configure_input@|$ac_sed_conf_input|;t t
19698 s&@top_builddir@&$ac_top_builddir_sub&;t t
19699 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19700 s&@srcdir@&$ac_srcdir&;t t
19701 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19702 s&@top_srcdir@&$ac_top_srcdir&;t t
19703 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19704 s&@builddir@&$ac_builddir&;t t
19705 s&@abs_builddir@&$ac_abs_builddir&;t t
19706 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19707 s&@INSTALL@&$ac_INSTALL&;t t
19708 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19709 $ac_datarootdir_hack
19710 "
19711 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19712 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19713
19714 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19715 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19716 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19717 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19719 which seems to be undefined. Please make sure it is defined" >&5
19720 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19721 which seems to be undefined. Please make sure it is defined" >&2;}
19722
19723 rm -f "$ac_tmp/stdin"
19724 case $ac_file in
19725 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19726 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19727 esac \
19728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19729 ;;
19730 :H)
19731 #
19732 # CONFIG_HEADER
19733 #
19734 if test x"$ac_file" != x-; then
19735 {
19736 $as_echo "/* $configure_input */" \
19737 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19738 } >"$ac_tmp/config.h" \
19739 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19740 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19742 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19743 else
19744 rm -f "$ac_file"
19745 mv "$ac_tmp/config.h" "$ac_file" \
19746 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19747 fi
19748 else
19749 $as_echo "/* $configure_input */" \
19750 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19751 || as_fn_error $? "could not create -" "$LINENO" 5
19752 fi
19753 # Compute "$ac_file"'s index in $config_headers.
19754 _am_arg="$ac_file"
19755 _am_stamp_count=1
19756 for _am_header in $config_headers :; do
19757 case $_am_header in
19758 $_am_arg | $_am_arg:* )
19759 break ;;
19760 * )
19761 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19762 esac
19763 done
19764 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19765 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19766 X"$_am_arg" : 'X\(//\)[^/]' \| \
19767 X"$_am_arg" : 'X\(//\)$' \| \
19768 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19769 $as_echo X"$_am_arg" |
19770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19771 s//\1/
19772 q
19773 }
19774 /^X\(\/\/\)[^/].*/{
19775 s//\1/
19776 q
19777 }
19778 /^X\(\/\/\)$/{
19779 s//\1/
19780 q
19781 }
19782 /^X\(\/\).*/{
19783 s//\1/
19784 q
19785 }
19786 s/.*/./; q'`/stamp-h$_am_stamp_count
19787 ;;
19788
19789 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19790 $as_echo "$as_me: executing $ac_file commands" >&6;}
19791 ;;
19792 esac
19793
19794
19795 case $ac_file$ac_mode in
19796 "default-1":C)
19797 # Only add multilib support code if we just rebuilt the top-level
19798 # Makefile.
19799 case " $CONFIG_FILES " in
19800 *" Makefile "*)
19801 ac_file=Makefile . ${multi_basedir}/config-ml.in
19802 ;;
19803 esac ;;
19804 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19805 # Older Autoconf quotes --file arguments for eval, but not when files
19806 # are listed without --file. Let's play safe and only enable the eval
19807 # if we detect the quoting.
19808 case $CONFIG_FILES in
19809 *\'*) eval set x "$CONFIG_FILES" ;;
19810 *) set x $CONFIG_FILES ;;
19811 esac
19812 shift
19813 for mf
19814 do
19815 # Strip MF so we end up with the name of the file.
19816 mf=`echo "$mf" | sed -e 's/:.*$//'`
19817 # Check whether this is an Automake generated Makefile or not.
19818 # We used to match only the files named 'Makefile.in', but
19819 # some people rename them; so instead we look at the file content.
19820 # Grep'ing the first line is not enough: some people post-process
19821 # each Makefile.in and add a new line on top of each file to say so.
19822 # Grep'ing the whole file is not good either: AIX grep has a line
19823 # limit of 2048, but all sed's we know have understand at least 4000.
19824 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19825 dirpart=`$as_dirname -- "$mf" ||
19826 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19827 X"$mf" : 'X\(//\)[^/]' \| \
19828 X"$mf" : 'X\(//\)$' \| \
19829 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19830 $as_echo X"$mf" |
19831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19832 s//\1/
19833 q
19834 }
19835 /^X\(\/\/\)[^/].*/{
19836 s//\1/
19837 q
19838 }
19839 /^X\(\/\/\)$/{
19840 s//\1/
19841 q
19842 }
19843 /^X\(\/\).*/{
19844 s//\1/
19845 q
19846 }
19847 s/.*/./; q'`
19848 else
19849 continue
19850 fi
19851 # Extract the definition of DEPDIR, am__include, and am__quote
19852 # from the Makefile without running 'make'.
19853 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19854 test -z "$DEPDIR" && continue
19855 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19856 test -z "$am__include" && continue
19857 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19858 # Find all dependency output files, they are included files with
19859 # $(DEPDIR) in their names. We invoke sed twice because it is the
19860 # simplest approach to changing $(DEPDIR) to its actual value in the
19861 # expansion.
19862 for file in `sed -n "
19863 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19864 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19865 # Make sure the directory exists.
19866 test -f "$dirpart/$file" && continue
19867 fdir=`$as_dirname -- "$file" ||
19868 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19869 X"$file" : 'X\(//\)[^/]' \| \
19870 X"$file" : 'X\(//\)$' \| \
19871 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19872 $as_echo X"$file" |
19873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19874 s//\1/
19875 q
19876 }
19877 /^X\(\/\/\)[^/].*/{
19878 s//\1/
19879 q
19880 }
19881 /^X\(\/\/\)$/{
19882 s//\1/
19883 q
19884 }
19885 /^X\(\/\).*/{
19886 s//\1/
19887 q
19888 }
19889 s/.*/./; q'`
19890 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19891 # echo "creating $dirpart/$file"
19892 echo '# dummy' > "$dirpart/$file"
19893 done
19894 done
19895 }
19896 ;;
19897 "libtool":C)
19898
19899 # See if we are running on zsh, and set the options which allow our
19900 # commands through without removal of \ escapes.
19901 if test -n "${ZSH_VERSION+set}" ; then
19902 setopt NO_GLOB_SUBST
19903 fi
19904
19905 cfgfile="${ofile}T"
19906 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19907 $RM "$cfgfile"
19908
19909 cat <<_LT_EOF >> "$cfgfile"
19910 #! $SHELL
19911
19912 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19913 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19914 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19915 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19916 #
19917 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19918 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19919 # Written by Gordon Matzigkeit, 1996
19920 #
19921 # This file is part of GNU Libtool.
19922 #
19923 # GNU Libtool is free software; you can redistribute it and/or
19924 # modify it under the terms of the GNU General Public License as
19925 # published by the Free Software Foundation; either version 2 of
19926 # the License, or (at your option) any later version.
19927 #
19928 # As a special exception to the GNU General Public License,
19929 # if you distribute this file as part of a program or library that
19930 # is built using GNU Libtool, you may include this file under the
19931 # same distribution terms that you use for the rest of that program.
19932 #
19933 # GNU Libtool is distributed in the hope that it will be useful,
19934 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19935 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19936 # GNU General Public License for more details.
19937 #
19938 # You should have received a copy of the GNU General Public License
19939 # along with GNU Libtool; see the file COPYING. If not, a copy
19940 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19941 # obtained by writing to the Free Software Foundation, Inc.,
19942 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19943
19944
19945 # The names of the tagged configurations supported by this script.
19946 available_tags="CXX "
19947
19948 # ### BEGIN LIBTOOL CONFIG
19949
19950 # Which release of libtool.m4 was used?
19951 macro_version=$macro_version
19952 macro_revision=$macro_revision
19953
19954 # Whether or not to build shared libraries.
19955 build_libtool_libs=$enable_shared
19956
19957 # Whether or not to build static libraries.
19958 build_old_libs=$enable_static
19959
19960 # What type of objects to build.
19961 pic_mode=$pic_mode
19962
19963 # Whether or not to optimize for fast installation.
19964 fast_install=$enable_fast_install
19965
19966 # Shell to use when invoking shell scripts.
19967 SHELL=$lt_SHELL
19968
19969 # An echo program that protects backslashes.
19970 ECHO=$lt_ECHO
19971
19972 # The host system.
19973 host_alias=$host_alias
19974 host=$host
19975 host_os=$host_os
19976
19977 # The build system.
19978 build_alias=$build_alias
19979 build=$build
19980 build_os=$build_os
19981
19982 # A sed program that does not truncate output.
19983 SED=$lt_SED
19984
19985 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19986 Xsed="\$SED -e 1s/^X//"
19987
19988 # A grep program that handles long lines.
19989 GREP=$lt_GREP
19990
19991 # An ERE matcher.
19992 EGREP=$lt_EGREP
19993
19994 # A literal string matcher.
19995 FGREP=$lt_FGREP
19996
19997 # A BSD- or MS-compatible name lister.
19998 NM=$lt_NM
19999
20000 # Whether we need soft or hard links.
20001 LN_S=$lt_LN_S
20002
20003 # What is the maximum length of a command?
20004 max_cmd_len=$max_cmd_len
20005
20006 # Object file suffix (normally "o").
20007 objext=$ac_objext
20008
20009 # Executable file suffix (normally "").
20010 exeext=$exeext
20011
20012 # whether the shell understands "unset".
20013 lt_unset=$lt_unset
20014
20015 # turn spaces into newlines.
20016 SP2NL=$lt_lt_SP2NL
20017
20018 # turn newlines into spaces.
20019 NL2SP=$lt_lt_NL2SP
20020
20021 # An object symbol dumper.
20022 OBJDUMP=$lt_OBJDUMP
20023
20024 # Method to check whether dependent libraries are shared objects.
20025 deplibs_check_method=$lt_deplibs_check_method
20026
20027 # Command to use when deplibs_check_method == "file_magic".
20028 file_magic_cmd=$lt_file_magic_cmd
20029
20030 # The archiver.
20031 AR=$lt_AR
20032 AR_FLAGS=$lt_AR_FLAGS
20033
20034 # A symbol stripping program.
20035 STRIP=$lt_STRIP
20036
20037 # Commands used to install an old-style archive.
20038 RANLIB=$lt_RANLIB
20039 old_postinstall_cmds=$lt_old_postinstall_cmds
20040 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20041
20042 # Whether to use a lock for old archive extraction.
20043 lock_old_archive_extraction=$lock_old_archive_extraction
20044
20045 # A C compiler.
20046 LTCC=$lt_CC
20047
20048 # LTCC compiler flags.
20049 LTCFLAGS=$lt_CFLAGS
20050
20051 # Take the output of nm and produce a listing of raw symbols and C names.
20052 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20053
20054 # Transform the output of nm in a proper C declaration.
20055 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20056
20057 # Transform the output of nm in a C name address pair.
20058 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20059
20060 # Transform the output of nm in a C name address pair when lib prefix is needed.
20061 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20062
20063 # The name of the directory that contains temporary libtool files.
20064 objdir=$objdir
20065
20066 # Used to examine libraries when file_magic_cmd begins with "file".
20067 MAGIC_CMD=$MAGIC_CMD
20068
20069 # Must we lock files when doing compilation?
20070 need_locks=$lt_need_locks
20071
20072 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20073 DSYMUTIL=$lt_DSYMUTIL
20074
20075 # Tool to change global to local symbols on Mac OS X.
20076 NMEDIT=$lt_NMEDIT
20077
20078 # Tool to manipulate fat objects and archives on Mac OS X.
20079 LIPO=$lt_LIPO
20080
20081 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20082 OTOOL=$lt_OTOOL
20083
20084 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20085 OTOOL64=$lt_OTOOL64
20086
20087 # Old archive suffix (normally "a").
20088 libext=$libext
20089
20090 # Shared library suffix (normally ".so").
20091 shrext_cmds=$lt_shrext_cmds
20092
20093 # The commands to extract the exported symbol list from a shared archive.
20094 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20095
20096 # Variables whose values should be saved in libtool wrapper scripts and
20097 # restored at link time.
20098 variables_saved_for_relink=$lt_variables_saved_for_relink
20099
20100 # Do we need the "lib" prefix for modules?
20101 need_lib_prefix=$need_lib_prefix
20102
20103 # Do we need a version for libraries?
20104 need_version=$need_version
20105
20106 # Library versioning type.
20107 version_type=$version_type
20108
20109 # Shared library runtime path variable.
20110 runpath_var=$runpath_var
20111
20112 # Shared library path variable.
20113 shlibpath_var=$shlibpath_var
20114
20115 # Is shlibpath searched before the hard-coded library search path?
20116 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20117
20118 # Format of library name prefix.
20119 libname_spec=$lt_libname_spec
20120
20121 # List of archive names. First name is the real one, the rest are links.
20122 # The last name is the one that the linker finds with -lNAME
20123 library_names_spec=$lt_library_names_spec
20124
20125 # The coded name of the library, if different from the real name.
20126 soname_spec=$lt_soname_spec
20127
20128 # Permission mode override for installation of shared libraries.
20129 install_override_mode=$lt_install_override_mode
20130
20131 # Command to use after installation of a shared archive.
20132 postinstall_cmds=$lt_postinstall_cmds
20133
20134 # Command to use after uninstallation of a shared archive.
20135 postuninstall_cmds=$lt_postuninstall_cmds
20136
20137 # Commands used to finish a libtool library installation in a directory.
20138 finish_cmds=$lt_finish_cmds
20139
20140 # As "finish_cmds", except a single script fragment to be evaled but
20141 # not shown.
20142 finish_eval=$lt_finish_eval
20143
20144 # Whether we should hardcode library paths into libraries.
20145 hardcode_into_libs=$hardcode_into_libs
20146
20147 # Compile-time system search path for libraries.
20148 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20149
20150 # Run-time system search path for libraries.
20151 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20152
20153 # Whether dlopen is supported.
20154 dlopen_support=$enable_dlopen
20155
20156 # Whether dlopen of programs is supported.
20157 dlopen_self=$enable_dlopen_self
20158
20159 # Whether dlopen of statically linked programs is supported.
20160 dlopen_self_static=$enable_dlopen_self_static
20161
20162 # Commands to strip libraries.
20163 old_striplib=$lt_old_striplib
20164 striplib=$lt_striplib
20165
20166
20167 # The linker used to build libraries.
20168 LD=$lt_LD
20169
20170 # How to create reloadable object files.
20171 reload_flag=$lt_reload_flag
20172 reload_cmds=$lt_reload_cmds
20173
20174 # Commands used to build an old-style archive.
20175 old_archive_cmds=$lt_old_archive_cmds
20176
20177 # A language specific compiler.
20178 CC=$lt_compiler
20179
20180 # Is the compiler the GNU compiler?
20181 with_gcc=$GCC
20182
20183 # Compiler flag to turn off builtin functions.
20184 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20185
20186 # How to pass a linker flag through the compiler.
20187 wl=$lt_lt_prog_compiler_wl
20188
20189 # Additional compiler flags for building library objects.
20190 pic_flag=$lt_lt_prog_compiler_pic
20191
20192 # Compiler flag to prevent dynamic linking.
20193 link_static_flag=$lt_lt_prog_compiler_static
20194
20195 # Does compiler simultaneously support -c and -o options?
20196 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20197
20198 # Whether or not to add -lc for building shared libraries.
20199 build_libtool_need_lc=$archive_cmds_need_lc
20200
20201 # Whether or not to disallow shared libs when runtime libs are static.
20202 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20203
20204 # Compiler flag to allow reflexive dlopens.
20205 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20206
20207 # Compiler flag to generate shared objects directly from archives.
20208 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20209
20210 # Whether the compiler copes with passing no objects directly.
20211 compiler_needs_object=$lt_compiler_needs_object
20212
20213 # Create an old-style archive from a shared archive.
20214 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20215
20216 # Create a temporary old-style archive to link instead of a shared archive.
20217 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20218
20219 # Commands used to build a shared archive.
20220 archive_cmds=$lt_archive_cmds
20221 archive_expsym_cmds=$lt_archive_expsym_cmds
20222
20223 # Commands used to build a loadable module if different from building
20224 # a shared archive.
20225 module_cmds=$lt_module_cmds
20226 module_expsym_cmds=$lt_module_expsym_cmds
20227
20228 # Whether we are building with GNU ld or not.
20229 with_gnu_ld=$lt_with_gnu_ld
20230
20231 # Flag that allows shared libraries with undefined symbols to be built.
20232 allow_undefined_flag=$lt_allow_undefined_flag
20233
20234 # Flag that enforces no undefined symbols.
20235 no_undefined_flag=$lt_no_undefined_flag
20236
20237 # Flag to hardcode \$libdir into a binary during linking.
20238 # This must work even if \$libdir does not exist
20239 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20240
20241 # If ld is used when linking, flag to hardcode \$libdir into a binary
20242 # during linking. This must work even if \$libdir does not exist.
20243 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20244
20245 # Whether we need a single "-rpath" flag with a separated argument.
20246 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20247
20248 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20249 # DIR into the resulting binary.
20250 hardcode_direct=$hardcode_direct
20251
20252 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20253 # DIR into the resulting binary and the resulting library dependency is
20254 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20255 # library is relocated.
20256 hardcode_direct_absolute=$hardcode_direct_absolute
20257
20258 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20259 # into the resulting binary.
20260 hardcode_minus_L=$hardcode_minus_L
20261
20262 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20263 # into the resulting binary.
20264 hardcode_shlibpath_var=$hardcode_shlibpath_var
20265
20266 # Set to "yes" if building a shared library automatically hardcodes DIR
20267 # into the library and all subsequent libraries and executables linked
20268 # against it.
20269 hardcode_automatic=$hardcode_automatic
20270
20271 # Set to yes if linker adds runtime paths of dependent libraries
20272 # to runtime path list.
20273 inherit_rpath=$inherit_rpath
20274
20275 # Whether libtool must link a program against all its dependency libraries.
20276 link_all_deplibs=$link_all_deplibs
20277
20278 # Fix the shell variable \$srcfile for the compiler.
20279 fix_srcfile_path=$lt_fix_srcfile_path
20280
20281 # Set to "yes" if exported symbols are required.
20282 always_export_symbols=$always_export_symbols
20283
20284 # The commands to list exported symbols.
20285 export_symbols_cmds=$lt_export_symbols_cmds
20286
20287 # Symbols that should not be listed in the preloaded symbols.
20288 exclude_expsyms=$lt_exclude_expsyms
20289
20290 # Symbols that must always be exported.
20291 include_expsyms=$lt_include_expsyms
20292
20293 # Commands necessary for linking programs (against libraries) with templates.
20294 prelink_cmds=$lt_prelink_cmds
20295
20296 # Specify filename containing input files.
20297 file_list_spec=$lt_file_list_spec
20298
20299 # How to hardcode a shared library path into an executable.
20300 hardcode_action=$hardcode_action
20301
20302 # The directories searched by this compiler when creating a shared library.
20303 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20304
20305 # Dependencies to place before and after the objects being linked to
20306 # create a shared library.
20307 predep_objects=$lt_predep_objects
20308 postdep_objects=$lt_postdep_objects
20309 predeps=$lt_predeps
20310 postdeps=$lt_postdeps
20311
20312 # The library search path used internally by the compiler when linking
20313 # a shared library.
20314 compiler_lib_search_path=$lt_compiler_lib_search_path
20315
20316 # ### END LIBTOOL CONFIG
20317
20318 _LT_EOF
20319
20320 case $host_os in
20321 aix3*)
20322 cat <<\_LT_EOF >> "$cfgfile"
20323 # AIX sometimes has problems with the GCC collect2 program. For some
20324 # reason, if we set the COLLECT_NAMES environment variable, the problems
20325 # vanish in a puff of smoke.
20326 if test "X${COLLECT_NAMES+set}" != Xset; then
20327 COLLECT_NAMES=
20328 export COLLECT_NAMES
20329 fi
20330 _LT_EOF
20331 ;;
20332 esac
20333
20334
20335 ltmain="$ac_aux_dir/ltmain.sh"
20336
20337
20338 # We use sed instead of cat because bash on DJGPP gets confused if
20339 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20340 # text mode, it properly converts lines to CR/LF. This bash problem
20341 # is reportedly fixed, but why not run on old versions too?
20342 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20343 || (rm -f "$cfgfile"; exit 1)
20344
20345 case $xsi_shell in
20346 yes)
20347 cat << \_LT_EOF >> "$cfgfile"
20348
20349 # func_dirname file append nondir_replacement
20350 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20351 # otherwise set result to NONDIR_REPLACEMENT.
20352 func_dirname ()
20353 {
20354 case ${1} in
20355 */*) func_dirname_result="${1%/*}${2}" ;;
20356 * ) func_dirname_result="${3}" ;;
20357 esac
20358 }
20359
20360 # func_basename file
20361 func_basename ()
20362 {
20363 func_basename_result="${1##*/}"
20364 }
20365
20366 # func_dirname_and_basename file append nondir_replacement
20367 # perform func_basename and func_dirname in a single function
20368 # call:
20369 # dirname: Compute the dirname of FILE. If nonempty,
20370 # add APPEND to the result, otherwise set result
20371 # to NONDIR_REPLACEMENT.
20372 # value returned in "$func_dirname_result"
20373 # basename: Compute filename of FILE.
20374 # value retuned in "$func_basename_result"
20375 # Implementation must be kept synchronized with func_dirname
20376 # and func_basename. For efficiency, we do not delegate to
20377 # those functions but instead duplicate the functionality here.
20378 func_dirname_and_basename ()
20379 {
20380 case ${1} in
20381 */*) func_dirname_result="${1%/*}${2}" ;;
20382 * ) func_dirname_result="${3}" ;;
20383 esac
20384 func_basename_result="${1##*/}"
20385 }
20386
20387 # func_stripname prefix suffix name
20388 # strip PREFIX and SUFFIX off of NAME.
20389 # PREFIX and SUFFIX must not contain globbing or regex special
20390 # characters, hashes, percent signs, but SUFFIX may contain a leading
20391 # dot (in which case that matches only a dot).
20392 func_stripname ()
20393 {
20394 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20395 # positional parameters, so assign one to ordinary parameter first.
20396 func_stripname_result=${3}
20397 func_stripname_result=${func_stripname_result#"${1}"}
20398 func_stripname_result=${func_stripname_result%"${2}"}
20399 }
20400
20401 # func_opt_split
20402 func_opt_split ()
20403 {
20404 func_opt_split_opt=${1%%=*}
20405 func_opt_split_arg=${1#*=}
20406 }
20407
20408 # func_lo2o object
20409 func_lo2o ()
20410 {
20411 case ${1} in
20412 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20413 *) func_lo2o_result=${1} ;;
20414 esac
20415 }
20416
20417 # func_xform libobj-or-source
20418 func_xform ()
20419 {
20420 func_xform_result=${1%.*}.lo
20421 }
20422
20423 # func_arith arithmetic-term...
20424 func_arith ()
20425 {
20426 func_arith_result=$(( $* ))
20427 }
20428
20429 # func_len string
20430 # STRING may not start with a hyphen.
20431 func_len ()
20432 {
20433 func_len_result=${#1}
20434 }
20435
20436 _LT_EOF
20437 ;;
20438 *) # Bourne compatible functions.
20439 cat << \_LT_EOF >> "$cfgfile"
20440
20441 # func_dirname file append nondir_replacement
20442 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20443 # otherwise set result to NONDIR_REPLACEMENT.
20444 func_dirname ()
20445 {
20446 # Extract subdirectory from the argument.
20447 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
20448 if test "X$func_dirname_result" = "X${1}"; then
20449 func_dirname_result="${3}"
20450 else
20451 func_dirname_result="$func_dirname_result${2}"
20452 fi
20453 }
20454
20455 # func_basename file
20456 func_basename ()
20457 {
20458 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
20459 }
20460
20461
20462 # func_stripname prefix suffix name
20463 # strip PREFIX and SUFFIX off of NAME.
20464 # PREFIX and SUFFIX must not contain globbing or regex special
20465 # characters, hashes, percent signs, but SUFFIX may contain a leading
20466 # dot (in which case that matches only a dot).
20467 # func_strip_suffix prefix name
20468 func_stripname ()
20469 {
20470 case ${2} in
20471 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20472 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
20473 esac
20474 }
20475
20476 # sed scripts:
20477 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20478 my_sed_long_arg='1s/^-[^=]*=//'
20479
20480 # func_opt_split
20481 func_opt_split ()
20482 {
20483 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20484 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
20485 }
20486
20487 # func_lo2o object
20488 func_lo2o ()
20489 {
20490 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
20491 }
20492
20493 # func_xform libobj-or-source
20494 func_xform ()
20495 {
20496 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
20497 }
20498
20499 # func_arith arithmetic-term...
20500 func_arith ()
20501 {
20502 func_arith_result=`expr "$@"`
20503 }
20504
20505 # func_len string
20506 # STRING may not start with a hyphen.
20507 func_len ()
20508 {
20509 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20510 }
20511
20512 _LT_EOF
20513 esac
20514
20515 case $lt_shell_append in
20516 yes)
20517 cat << \_LT_EOF >> "$cfgfile"
20518
20519 # func_append var value
20520 # Append VALUE to the end of shell variable VAR.
20521 func_append ()
20522 {
20523 eval "$1+=\$2"
20524 }
20525 _LT_EOF
20526 ;;
20527 *)
20528 cat << \_LT_EOF >> "$cfgfile"
20529
20530 # func_append var value
20531 # Append VALUE to the end of shell variable VAR.
20532 func_append ()
20533 {
20534 eval "$1=\$$1\$2"
20535 }
20536
20537 _LT_EOF
20538 ;;
20539 esac
20540
20541
20542 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20543 || (rm -f "$cfgfile"; exit 1)
20544
20545 mv -f "$cfgfile" "$ofile" ||
20546 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20547 chmod +x "$ofile"
20548
20549
20550 cat <<_LT_EOF >> "$ofile"
20551
20552 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20553
20554 # The linker used to build libraries.
20555 LD=$lt_LD_CXX
20556
20557 # How to create reloadable object files.
20558 reload_flag=$lt_reload_flag_CXX
20559 reload_cmds=$lt_reload_cmds_CXX
20560
20561 # Commands used to build an old-style archive.
20562 old_archive_cmds=$lt_old_archive_cmds_CXX
20563
20564 # A language specific compiler.
20565 CC=$lt_compiler_CXX
20566
20567 # Is the compiler the GNU compiler?
20568 with_gcc=$GCC_CXX
20569
20570 # Compiler flag to turn off builtin functions.
20571 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20572
20573 # How to pass a linker flag through the compiler.
20574 wl=$lt_lt_prog_compiler_wl_CXX
20575
20576 # Additional compiler flags for building library objects.
20577 pic_flag=$lt_lt_prog_compiler_pic_CXX
20578
20579 # Compiler flag to prevent dynamic linking.
20580 link_static_flag=$lt_lt_prog_compiler_static_CXX
20581
20582 # Does compiler simultaneously support -c and -o options?
20583 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20584
20585 # Whether or not to add -lc for building shared libraries.
20586 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20587
20588 # Whether or not to disallow shared libs when runtime libs are static.
20589 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20590
20591 # Compiler flag to allow reflexive dlopens.
20592 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20593
20594 # Compiler flag to generate shared objects directly from archives.
20595 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20596
20597 # Whether the compiler copes with passing no objects directly.
20598 compiler_needs_object=$lt_compiler_needs_object_CXX
20599
20600 # Create an old-style archive from a shared archive.
20601 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20602
20603 # Create a temporary old-style archive to link instead of a shared archive.
20604 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20605
20606 # Commands used to build a shared archive.
20607 archive_cmds=$lt_archive_cmds_CXX
20608 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20609
20610 # Commands used to build a loadable module if different from building
20611 # a shared archive.
20612 module_cmds=$lt_module_cmds_CXX
20613 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20614
20615 # Whether we are building with GNU ld or not.
20616 with_gnu_ld=$lt_with_gnu_ld_CXX
20617
20618 # Flag that allows shared libraries with undefined symbols to be built.
20619 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20620
20621 # Flag that enforces no undefined symbols.
20622 no_undefined_flag=$lt_no_undefined_flag_CXX
20623
20624 # Flag to hardcode \$libdir into a binary during linking.
20625 # This must work even if \$libdir does not exist
20626 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20627
20628 # If ld is used when linking, flag to hardcode \$libdir into a binary
20629 # during linking. This must work even if \$libdir does not exist.
20630 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20631
20632 # Whether we need a single "-rpath" flag with a separated argument.
20633 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20634
20635 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20636 # DIR into the resulting binary.
20637 hardcode_direct=$hardcode_direct_CXX
20638
20639 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20640 # DIR into the resulting binary and the resulting library dependency is
20641 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20642 # library is relocated.
20643 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20644
20645 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20646 # into the resulting binary.
20647 hardcode_minus_L=$hardcode_minus_L_CXX
20648
20649 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20650 # into the resulting binary.
20651 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20652
20653 # Set to "yes" if building a shared library automatically hardcodes DIR
20654 # into the library and all subsequent libraries and executables linked
20655 # against it.
20656 hardcode_automatic=$hardcode_automatic_CXX
20657
20658 # Set to yes if linker adds runtime paths of dependent libraries
20659 # to runtime path list.
20660 inherit_rpath=$inherit_rpath_CXX
20661
20662 # Whether libtool must link a program against all its dependency libraries.
20663 link_all_deplibs=$link_all_deplibs_CXX
20664
20665 # Fix the shell variable \$srcfile for the compiler.
20666 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20667
20668 # Set to "yes" if exported symbols are required.
20669 always_export_symbols=$always_export_symbols_CXX
20670
20671 # The commands to list exported symbols.
20672 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20673
20674 # Symbols that should not be listed in the preloaded symbols.
20675 exclude_expsyms=$lt_exclude_expsyms_CXX
20676
20677 # Symbols that must always be exported.
20678 include_expsyms=$lt_include_expsyms_CXX
20679
20680 # Commands necessary for linking programs (against libraries) with templates.
20681 prelink_cmds=$lt_prelink_cmds_CXX
20682
20683 # Specify filename containing input files.
20684 file_list_spec=$lt_file_list_spec_CXX
20685
20686 # How to hardcode a shared library path into an executable.
20687 hardcode_action=$hardcode_action_CXX
20688
20689 # The directories searched by this compiler when creating a shared library.
20690 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20691
20692 # Dependencies to place before and after the objects being linked to
20693 # create a shared library.
20694 predep_objects=$lt_predep_objects_CXX
20695 postdep_objects=$lt_postdep_objects_CXX
20696 predeps=$lt_predeps_CXX
20697 postdeps=$lt_postdeps_CXX
20698
20699 # The library search path used internally by the compiler when linking
20700 # a shared library.
20701 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20702
20703 # ### END LIBTOOL TAG CONFIG: CXX
20704 _LT_EOF
20705
20706 ;;
20707 "gstdint.h":C)
20708 if test "$GCC" = yes; then
20709 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20710 else
20711 echo "/* generated for $CC */" > tmp-stdint.h
20712 fi
20713
20714 sed 's/^ *//' >> tmp-stdint.h <<EOF
20715
20716 #ifndef GCC_GENERATED_STDINT_H
20717 #define GCC_GENERATED_STDINT_H 1
20718
20719 #include <sys/types.h>
20720 EOF
20721
20722 if test "$acx_cv_header_stdint" != stdint.h; then
20723 echo "#include <stddef.h>" >> tmp-stdint.h
20724 fi
20725 if test "$acx_cv_header_stdint" != stddef.h; then
20726 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20727 fi
20728
20729 sed 's/^ *//' >> tmp-stdint.h <<EOF
20730 /* glibc uses these symbols as guards to prevent redefinitions. */
20731 #ifdef __int8_t_defined
20732 #define _INT8_T
20733 #define _INT16_T
20734 #define _INT32_T
20735 #endif
20736 #ifdef __uint32_t_defined
20737 #define _UINT32_T
20738 #endif
20739
20740 EOF
20741
20742 # ----------------- done header, emit basic int types -------------
20743 if test "$acx_cv_header_stdint" = stddef.h; then
20744 sed 's/^ *//' >> tmp-stdint.h <<EOF
20745
20746 #ifndef _UINT8_T
20747 #define _UINT8_T
20748 #ifndef __uint8_t_defined
20749 #define __uint8_t_defined
20750 #ifndef uint8_t
20751 typedef unsigned $acx_cv_type_int8_t uint8_t;
20752 #endif
20753 #endif
20754 #endif
20755
20756 #ifndef _UINT16_T
20757 #define _UINT16_T
20758 #ifndef __uint16_t_defined
20759 #define __uint16_t_defined
20760 #ifndef uint16_t
20761 typedef unsigned $acx_cv_type_int16_t uint16_t;
20762 #endif
20763 #endif
20764 #endif
20765
20766 #ifndef _UINT32_T
20767 #define _UINT32_T
20768 #ifndef __uint32_t_defined
20769 #define __uint32_t_defined
20770 #ifndef uint32_t
20771 typedef unsigned $acx_cv_type_int32_t uint32_t;
20772 #endif
20773 #endif
20774 #endif
20775
20776 #ifndef _INT8_T
20777 #define _INT8_T
20778 #ifndef __int8_t_defined
20779 #define __int8_t_defined
20780 #ifndef int8_t
20781 typedef $acx_cv_type_int8_t int8_t;
20782 #endif
20783 #endif
20784 #endif
20785
20786 #ifndef _INT16_T
20787 #define _INT16_T
20788 #ifndef __int16_t_defined
20789 #define __int16_t_defined
20790 #ifndef int16_t
20791 typedef $acx_cv_type_int16_t int16_t;
20792 #endif
20793 #endif
20794 #endif
20795
20796 #ifndef _INT32_T
20797 #define _INT32_T
20798 #ifndef __int32_t_defined
20799 #define __int32_t_defined
20800 #ifndef int32_t
20801 typedef $acx_cv_type_int32_t int32_t;
20802 #endif
20803 #endif
20804 #endif
20805 EOF
20806 elif test "$ac_cv_type_u_int32_t" = yes; then
20807 sed 's/^ *//' >> tmp-stdint.h <<EOF
20808
20809 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20810 #ifndef _INT8_T
20811 #define _INT8_T
20812 #endif
20813 #ifndef _INT16_T
20814 #define _INT16_T
20815 #endif
20816 #ifndef _INT32_T
20817 #define _INT32_T
20818 #endif
20819
20820 #ifndef _UINT8_T
20821 #define _UINT8_T
20822 #ifndef __uint8_t_defined
20823 #define __uint8_t_defined
20824 #ifndef uint8_t
20825 typedef u_int8_t uint8_t;
20826 #endif
20827 #endif
20828 #endif
20829
20830 #ifndef _UINT16_T
20831 #define _UINT16_T
20832 #ifndef __uint16_t_defined
20833 #define __uint16_t_defined
20834 #ifndef uint16_t
20835 typedef u_int16_t uint16_t;
20836 #endif
20837 #endif
20838 #endif
20839
20840 #ifndef _UINT32_T
20841 #define _UINT32_T
20842 #ifndef __uint32_t_defined
20843 #define __uint32_t_defined
20844 #ifndef uint32_t
20845 typedef u_int32_t uint32_t;
20846 #endif
20847 #endif
20848 #endif
20849 EOF
20850 else
20851 sed 's/^ *//' >> tmp-stdint.h <<EOF
20852
20853 /* Some systems have guard macros to prevent redefinitions, define them. */
20854 #ifndef _INT8_T
20855 #define _INT8_T
20856 #endif
20857 #ifndef _INT16_T
20858 #define _INT16_T
20859 #endif
20860 #ifndef _INT32_T
20861 #define _INT32_T
20862 #endif
20863 #ifndef _UINT8_T
20864 #define _UINT8_T
20865 #endif
20866 #ifndef _UINT16_T
20867 #define _UINT16_T
20868 #endif
20869 #ifndef _UINT32_T
20870 #define _UINT32_T
20871 #endif
20872 EOF
20873 fi
20874
20875 # ------------- done basic int types, emit int64_t types ------------
20876 if test "$ac_cv_type_uint64_t" = yes; then
20877 sed 's/^ *//' >> tmp-stdint.h <<EOF
20878
20879 /* system headers have good uint64_t and int64_t */
20880 #ifndef _INT64_T
20881 #define _INT64_T
20882 #endif
20883 #ifndef _UINT64_T
20884 #define _UINT64_T
20885 #endif
20886 EOF
20887 elif test "$ac_cv_type_u_int64_t" = yes; then
20888 sed 's/^ *//' >> tmp-stdint.h <<EOF
20889
20890 /* system headers have an u_int64_t (and int64_t) */
20891 #ifndef _INT64_T
20892 #define _INT64_T
20893 #endif
20894 #ifndef _UINT64_T
20895 #define _UINT64_T
20896 #ifndef __uint64_t_defined
20897 #define __uint64_t_defined
20898 #ifndef uint64_t
20899 typedef u_int64_t uint64_t;
20900 #endif
20901 #endif
20902 #endif
20903 EOF
20904 elif test -n "$acx_cv_type_int64_t"; then
20905 sed 's/^ *//' >> tmp-stdint.h <<EOF
20906
20907 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20908 #ifndef _INT64_T
20909 #define _INT64_T
20910 #ifndef int64_t
20911 typedef $acx_cv_type_int64_t int64_t;
20912 #endif
20913 #endif
20914 #ifndef _UINT64_T
20915 #define _UINT64_T
20916 #ifndef __uint64_t_defined
20917 #define __uint64_t_defined
20918 #ifndef uint64_t
20919 typedef unsigned $acx_cv_type_int64_t uint64_t;
20920 #endif
20921 #endif
20922 #endif
20923 EOF
20924 else
20925 sed 's/^ *//' >> tmp-stdint.h <<EOF
20926
20927 /* some common heuristics for int64_t, using compiler-specific tests */
20928 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20929 #ifndef _INT64_T
20930 #define _INT64_T
20931 #ifndef __int64_t_defined
20932 #ifndef int64_t
20933 typedef long long int64_t;
20934 #endif
20935 #endif
20936 #endif
20937 #ifndef _UINT64_T
20938 #define _UINT64_T
20939 #ifndef uint64_t
20940 typedef unsigned long long uint64_t;
20941 #endif
20942 #endif
20943
20944 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20945 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20946 does not implement __extension__. But that compiler doesn't define
20947 __GNUC_MINOR__. */
20948 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20949 # define __extension__
20950 # endif
20951
20952 # ifndef _INT64_T
20953 # define _INT64_T
20954 # ifndef int64_t
20955 __extension__ typedef long long int64_t;
20956 # endif
20957 # endif
20958 # ifndef _UINT64_T
20959 # define _UINT64_T
20960 # ifndef uint64_t
20961 __extension__ typedef unsigned long long uint64_t;
20962 # endif
20963 # endif
20964
20965 #elif !defined __STRICT_ANSI__
20966 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20967
20968 # ifndef _INT64_T
20969 # define _INT64_T
20970 # ifndef int64_t
20971 typedef __int64 int64_t;
20972 # endif
20973 # endif
20974 # ifndef _UINT64_T
20975 # define _UINT64_T
20976 # ifndef uint64_t
20977 typedef unsigned __int64 uint64_t;
20978 # endif
20979 # endif
20980 # endif /* compiler */
20981
20982 #endif /* ANSI version */
20983 EOF
20984 fi
20985
20986 # ------------- done int64_t types, emit intptr types ------------
20987 if test "$ac_cv_type_uintptr_t" != yes; then
20988 sed 's/^ *//' >> tmp-stdint.h <<EOF
20989
20990 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20991 #ifndef __uintptr_t_defined
20992 #ifndef uintptr_t
20993 typedef u$acx_cv_type_intptr_t uintptr_t;
20994 #endif
20995 #endif
20996 #ifndef __intptr_t_defined
20997 #ifndef intptr_t
20998 typedef $acx_cv_type_intptr_t intptr_t;
20999 #endif
21000 #endif
21001 EOF
21002 fi
21003
21004 # ------------- done intptr types, emit int_least types ------------
21005 if test "$ac_cv_type_int_least32_t" != yes; then
21006 sed 's/^ *//' >> tmp-stdint.h <<EOF
21007
21008 /* Define int_least types */
21009 typedef int8_t int_least8_t;
21010 typedef int16_t int_least16_t;
21011 typedef int32_t int_least32_t;
21012 #ifdef _INT64_T
21013 typedef int64_t int_least64_t;
21014 #endif
21015
21016 typedef uint8_t uint_least8_t;
21017 typedef uint16_t uint_least16_t;
21018 typedef uint32_t uint_least32_t;
21019 #ifdef _UINT64_T
21020 typedef uint64_t uint_least64_t;
21021 #endif
21022 EOF
21023 fi
21024
21025 # ------------- done intptr types, emit int_fast types ------------
21026 if test "$ac_cv_type_int_fast32_t" != yes; then
21027 sed 's/^ *//' >> tmp-stdint.h <<EOF
21028
21029 /* Define int_fast types. short is often slow */
21030 typedef int8_t int_fast8_t;
21031 typedef int int_fast16_t;
21032 typedef int32_t int_fast32_t;
21033 #ifdef _INT64_T
21034 typedef int64_t int_fast64_t;
21035 #endif
21036
21037 typedef uint8_t uint_fast8_t;
21038 typedef unsigned int uint_fast16_t;
21039 typedef uint32_t uint_fast32_t;
21040 #ifdef _UINT64_T
21041 typedef uint64_t uint_fast64_t;
21042 #endif
21043 EOF
21044 fi
21045
21046 if test "$ac_cv_type_uintmax_t" != yes; then
21047 sed 's/^ *//' >> tmp-stdint.h <<EOF
21048
21049 /* Define intmax based on what we found */
21050 #ifndef intmax_t
21051 #ifdef _INT64_T
21052 typedef int64_t intmax_t;
21053 #else
21054 typedef long intmax_t;
21055 #endif
21056 #endif
21057 #ifndef uintmax_t
21058 #ifdef _UINT64_T
21059 typedef uint64_t uintmax_t;
21060 #else
21061 typedef unsigned long uintmax_t;
21062 #endif
21063 #endif
21064 EOF
21065 fi
21066
21067 sed 's/^ *//' >> tmp-stdint.h <<EOF
21068
21069 #endif /* GCC_GENERATED_STDINT_H */
21070 EOF
21071
21072 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
21073 rm -f tmp-stdint.h
21074 else
21075 mv -f tmp-stdint.h gstdint.h
21076 fi
21077
21078 ;;
21079
21080 esac
21081 done # for ac_tag
21082
21083
21084 as_fn_exit 0
21085 _ACEOF
21086 ac_clean_files=$ac_clean_files_save
21087
21088 test $ac_write_fail = 0 ||
21089 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21090
21091
21092 # configure is writing to config.log, and then calls config.status.
21093 # config.status does its own redirection, appending to config.log.
21094 # Unfortunately, on DOS this fails, as config.log is still kept open
21095 # by configure, so config.status won't be able to write to it; its
21096 # output is simply discarded. So we exec the FD to /dev/null,
21097 # effectively closing config.log, so it can be properly (re)opened and
21098 # appended to by config.status. When coming back to configure, we
21099 # need to make the FD available again.
21100 if test "$no_create" != yes; then
21101 ac_cs_success=:
21102 ac_config_status_args=
21103 test "$silent" = yes &&
21104 ac_config_status_args="$ac_config_status_args --quiet"
21105 exec 5>/dev/null
21106 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21107 exec 5>>config.log
21108 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21109 # would make configure fail if this is the last instruction.
21110 $ac_cs_success || as_fn_exit 1
21111 fi
21112 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21114 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21115 fi
21116